Fix last ChangeLog entry.
[gnulib.git] / ChangeLog
blobff927578e899e6f438e0038ec6a57f4fe2c41b56
1 2021-01-04  Simon Josefsson  <simon@josefsson.org>
3         doc: Repeat warning that --with-tests cannot be used twice.
4         * doc/gnulib-tool.texi (Multiple instances): Remind reader of
5         --with-tests limitation.
7 2021-01-03  Bruno Haible  <bruno@clisp.org>
9         iconv, iconv_open: Improve documentation.
10         Reported by Noah Misch <noah@leadboat.com> in
11         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00172.html>.
12         * doc/posix-functions/iconv_open.texi: Add new paragraph "Portability
13         problems handled by Gnulib".
14         * doc/posix-functions/iconv.texi: Likewise. Update info about AIX.
15         * m4/iconv.m4 (AM_ICONV_LINK): Improve comments.
17 2021-01-03  Bruno Haible  <bruno@clisp.org>
19         iconv-h: Fix module description.
20         * modules/iconv-h (Include): Check HAVE_ICONV_H.
22 2021-01-03  Noah Misch  <noah@leadboat.com>
24         iconv_open: Fix module description.
25         * modules/iconv_open (Include): Check HAVE_ICONV, like modules/iconv.
27 2021-01-03  Bruno Haible  <bruno@clisp.org>
29         stddef: Override wrong max_align_t on AIX 7 with xlc in 64-bit mode.
30         * m4/stddef_h.m4 (gl_STDDEF_H): Make check for good max_align_t
31         stricter: Add tests for offsetof-based alignof.
32         * lib/stddef.in.h (max_align_t): Override on AIX in 64-bit mode.
33         * doc/posix-headers/stddef.texi: Document the AIX max_align_t bug.
35 2021-01-03  Bruno Haible  <bruno@clisp.org>
37         free-posix: Work around GCC mis-optimization bug.
38         Code by Bernhard Voelker <mail@bernhard-voelker.de>.
39         * lib/free.c (rpl_free): Add alternative complicated code for GCC.
41 2021-01-02  Bruno Haible  <bruno@clisp.org>
43         valgrind-tests: Disable valgrind if it would cause all tests to fail.
44         Suggested by Simon Josefsson <simon@josefsson.org> in
45         <https://lists.gnu.org/archive/html/help-gsasl/2021-01/msg00004.html>.
46         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Test $VALGRIND on an
47         executable produced by the current compiler. Set VALGRIND to empty if it
48         does not work. Don't set VALGRIND to empty if it merely does not accept
49         the --error-exitcode=1 --leak-check=full options.
51 2021-01-02  Bruno Haible  <bruno@clisp.org>
53         valgrind-tests: Really enable the valgrind options test.
54         * m4/valgrind-tests.m4 (gl_VALGRIND_TESTS): Don't assume that the
55         valgrind options --error-exitcode=1 --leak-check=full always work.
57 2021-01-02  Bruno Haible  <bruno@clisp.org>
59         utimensat: Fix test failures on macOS 10.13.
60         * lib/utimensat.c: Include <string.h>, <sys/stat.h>.
61         (rpl_utimensat): Check against invalid tv_nsec values. Before calling
62         utimensat, recognize a filename ending in a slash that does not point
63         to a directory.
65 2021-01-02  Bruno Haible  <bruno@clisp.org>
67         utimens: Fix test failure on macOS 10.13.
68         * lib/utimens.c: Include <string.h>.
70         utimens: Fix test failure on macOS 10.13.
71         * lib/utimens.c (fdutimens): Before calling utimensat, recognize a
72         filename ending in a slash that does not point to a directory.
74 2021-01-02  Bruno Haible  <bruno@clisp.org>
76         utimens: Avoid test failures on macOS 10.13.
77         Reported by Martin Storsjö <martin@martin.st> in
78         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
79         * tests/test-utimens-common.h (check_ctime): Define to -1 on macOS.
80         * tests/test-utimens.h (test_utimens): Don't expect a ctime change when
81         only the atime is requested to change.
82         * tests/test-futimens.h (test_futimens): Likewise.
83         * tests/test-lutimens.h (test_lutimens): Likewise.
85 2021-01-02  Bruno Haible  <bruno@clisp.org>
87         renameatu: Fix test failures on macOS.
88         Reported by Martin Storsjö <martin@martin.st> in
89         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
90         * lib/renameatu.c (renameatu): Don't call renameatx_np right away.
91         Instead, treat it as a variant of renameat, with all possible bugs that
92         renameat might have.
94 2021-01-02  Bruno Haible  <bruno@clisp.org>
96         getgroups test: Avoid warning with glibc >= 2.32 and gcc >= 10.
97         Reported by Bernhard Voelker <mail@bernhard-voelker.de> in
98         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00090.html>.
99         * tests/test-getgroups.c: Silence gcc warnings of type
100         -Wstringop-overflow.
102 2021-01-02  Bruno Haible  <bruno@clisp.org>
104         timespec_get: Add tests.
105         * tests/test-timespec_get.c: New file.
106         * modules/timespec_get-tests: New file.
108         timespec_get: New module.
109         * lib/time.in.h (timespec_get): New declaration.
110         * lib/timespec_get.c: New file.
111         * m4/timespec_get.m4: New file.
112         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
113         GNULIB_TIMESPEC_GET, HAVE_TIMESPEC_GET.
114         * modules/time (Makefile.am): Substitute GNULIB_TIMESPEC_GET,
115         HAVE_TIMESPEC_GET.
116         * modules/timespec_get: New file.
117         * tests/test-time-c++.cc (timespec_get): Check signature.
118         * doc/glibc-functions/timespec_get.texi: Mention the new module.
120 2021-01-01  Bruno Haible  <bruno@clisp.org>
122         time: Define TIME_UTC.
123         * lib/time.in.h (TIME_UTC, GNULIB_defined_TIME_UTC): New macros.
124         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Set TIME_H_DEFINES_TIME_UTC.
125         * modules/time (Makefile.am): Substitute TIME_H_DEFINES_TIME_UTC.
126         * tests/test-time.c: Check that TIME_UTC is defined and a positive
127         integer.
128         * doc/posix-headers/time.texi: Mention TIME_UTC.
130 2021-01-01  Bruno Haible  <bruno@clisp.org>
132         stddef: Try harder to get max_align_t defined on OpenBSD, part 2.
133         * modules/stddef (Depends-on): Add extensions.
135 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
137         canonicalize: remove NARROW_ADDRESSES optimization
138         * lib/canonicalize-lgpl.c, lib/canonicalize.c (NARROW_ADDRESSES):
139         Remove, and remove all uses, as the optimization is arguably not
140         worth the extra complexity.  Suggested by Adhemerval Zanella in:
141         https://sourceware.org/pipermail/libc-alpha/2020-December/121203.html
143 2021-01-01  Bruno Haible  <bruno@clisp.org>
145         stddef: Try harder to get max_align_t defined on OpenBSD.
146         * m4/stddef_h.m4 (gl_STDDEF_H): Require gl_USE_SYSTEM_EXTENSIONS.
148 2021-01-01  Bruno Haible  <bruno@clisp.org>
150         aligned_alloc: Fix test failure on OpenBSD 6.8.
151         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): On OpenBSD, define
152         _ISOC11_SOURCE.
153         * m4/aligned_alloc.m4 (gl_FUNC_ALIGNED_ALLOC): Require it. Update
154         comment.
156 2021-01-01  Bruno Haible  <bruno@clisp.org>
158         posixtm tests: Disable part of the test on plaforms where it fails.
159         * tests/test-posixtm.c (T): Disable two tests on macOS as well.
161 2021-01-01  Bruno Haible  <bruno@clisp.org>
163         c32isgraph/c32isprint/c32ispunct tests: Avoid test failures on OmniOS.
164         * tests/test-c32isgraph.c (main): On Solaris, disable tests that fail on
165         Solaris 11 OmniOS.
166         * tests/test-c32isprint.c (main): Likewise.
167         * tests/test-c32ispunct.c (main): Likewise.
169 2021-01-01  Paul Eggert  <eggert@cs.ucla.edu>
171         libc-config: port to Sun C 5.9
172         * lib/libc-config.h (libc_hidden_proto): Omit ", ..." in macro
173         definition.  It’s not needed for Gnulib and elicits a diagnostic
174         from Sun C 5.9 Patch 124867-12 2009/11/22.
176 2021-01-01  Bruno Haible  <bruno@clisp.org>
178         quotearg tests: Avoid test failures on Solaris 11.
179         * modules/quotearg-tests (Makefile.am): Set host_os in
180         TESTS_ENVIRONMENT.
181         * tests/test-quotearg.sh: On Solaris 11 systems, make a copy of the fr/
182         directory that contains the .mo file.
184 2021-01-01  Bruno Haible  <bruno@clisp.org>
186         maint: Update copyright notices in --version output.
187         List the most recent year in which changes were made, per
188         <https://www.gnu.org/prep/standards/html_node/_002d_002dversion.html>.
189         * build-aux/declared.sh (func_version): Say 2019.
190         * build-aux/libtool-next-version (func_version): Likewise.
191         * build-aux/run-test (func_version): Likewise.
192         * check-module (COPYRIGHT_NOTICE): Say 2012.
193         * lib/git-merge-changelog.c (main): Say 2020.
195 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
197         filename: change filename.h comment to LGPLv2.1+
198         * lib/filename.h: Change license notice to match what should be in
199         glibc, and what modules/filename specifies.  This is to simplify
200         syncing with glibc.
202         doc: mention year-0 bugs in Solaris etc.
203         * doc/posix-functions/gmtime.texi, doc/posix-functions/gmtime_r.texi:
204         * doc/posix-functions/localtime.texi:
205         * doc/posix-functions/localtime_r.texi:
206         * doc/posix-functions/mktime.texi:
207         Mention year-0 bugs in localtime etc.
209 2020-12-31  Bruno Haible  <bruno@clisp.org>
211         ptsname_r: Fix test failure on Solaris.
212         * lib/ptsname_r.c (__ptsname_r) [__sun]: Don't test the major number of
213         the device.
215 2020-12-31  Bruno Haible  <bruno@clisp.org>
217         posixtm tests: Disable part of the test on plaforms where it fails.
218         * tests/test-posixtm.c (T): Disable two tests on Solaris.
220 2020-12-31  Bruno Haible  <bruno@clisp.org>
222         poll tests: Avoid test failure on AIX.
223         * tests/test-poll.c (test_pipe): Disable the "expecting POLLHUP after
224         shutdown" test on AIX.
225         * doc/posix-functions/poll.texi: Mention the AIX bug.
227 2020-12-31  Bruno Haible  <bruno@clisp.org>
229         poll tests: Avoid test failure on BSD and Solaris systems.
230         * tests/test-poll.c (test_accept_first, test_socket_pair): Disable the
231         "expecting POLLHUP after shutdown" test on all platforms except Linux.
233 2020-12-31  Paul Eggert  <eggert@cs.ucla.edu>
235         fnmatch: merge from glibc + proposal
236         This merges the change proposed by Adhemerval Zanella in:
237         https://sourceware.org/pipermail/libc-alpha/2020-December/121212.html
238         which fixes a Gnulib bug that led to a failed assert.
239         * lib/fnmatch_loop.c (EXT): Use signed level, not unsigned, and
240         check that it stays nonnegative.  Use __flexarr instead of
241         FLEXIBLE_ARRAY_MEMBER, to port better to glibc.
242         * tests/test-fnmatch.c (main): New test cases, taken from glibc.
244         glob: merge proposed glibc changes
245         This merges the change proposed by Adhemerval Zanella in:
246         https://sourceware.org/pipermail/libc-alpha/2020-December/121211.html
247         * lib/glob.c (__lstat64, __stat64) [_LIBC]: Remove.
249 2020-12-31  Bruno Haible  <bruno@clisp.org>
251         memalign: Work around Solaris bug.
252         * lib/memalign.c: New file.
253         * m4/memalign.m4: New file.
254         * modules/memalign (Files): Add them.
255         (Depends-on): Add malloc-h.
256         (configure.ac): Invoke gl_FUNC_MEMALIGN. Conditionally compile
257         memalign.c. Set module indicator.
258         (Include): Include <malloc.h> unconditionally.
259         * doc/glibc-functions/memalign.texi: Mention the Solaris issues.
261         malloc-h: Add tests.
262         * tests/test-malloc-h.c: New file.
263         * modules/malloc-h-tests: New file.
264         * tests/test-malloc-h-c++.cc: New file.
265         * modules/malloc-h-c++-tests: New file.
267         malloc-h: New module.
268         * lib/malloc.in.h: New file.
269         * m4/malloc_h.m4: New file.
270         * modules/malloc-h: New file.
271         * doc/glibc-headers/malloc.texi: New file.
272         * doc/gnulib.texi (Glibc Header File Substitutes): Include it.
274 2020-12-31  Bruno Haible  <bruno@clisp.org>
276         unistd: Fix portability warnings.
277         * lib/unistd.in.h (fchownat, unlinkat): Fix module name in warning.
279 2020-12-31  Bruno Haible  <bruno@clisp.org>
281         utime: Fix compilation error on macOS and Solaris 9 (regr. 2020-12-24).
282         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
283         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00295.html>.
284         * lib/utime.c: Include <errno.h>.
286 2020-12-30  Karl Berry  <karl@freefriends.org>
288         config: srclistvars doc.
289         * config/srclistvars.sh: doc a couple of unusual source repo urls.
291 2020-12-30  Bruno Haible  <bruno@clisp.org>
293         getlogin tests, getlogin_r tests: Avoid failure on Solaris OpenIndiana.
294         * tests/test-getlogin.c (main): Don't fail if getlogin() returns NULL
295         with no errno.
296         * tests/test-getlogin_r.c (main): Don't fail if getlogin_r() returns
297         EINVAL.
299 2020-12-29  Jim Meyering  <meyering@fb.com>
301         regex-tests: tweak to avoid a clang-10 warning
302         * tests/test-regex.c: Compare with explicit zero, rather than
303         as boolean to avoid this from clang-10:
304         test-regex.c:315:9: error: converting the result of '<<' to a \
305           boolean always evaluates to true \
306           [-Werror,-Wtautological-constant-compare]
307         if (! REG_STARTEND)
309         hash: add casts-to-float to avoid clang-10 warnings
310         * lib/hash.c (compute_bucket_size): Cast SIZE_MAX to float
311         to avoid this warning from clang-10 (for use in grep):
312           hash.c:501:11: error: implicit conversion from 'unsigned long' \
313             to 'float' changes value from 18446744073709551615 to \
314             18446744073709551616 [-Werror,-Wimplicit-int-float-conversion]
315           if (SIZE_MAX <= new_candidate)
316         (hash_insert_if_absent): Likewise.
318 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
320         canonicalize: fix size overflow treatment
321         This also has some minor cleanups.
322         * lib/canonicalize-lgpl.c, lib/canonicalize.c: No need to include
323         stddef.h, since the code no longer refers directly to ptrdiff_t.
324         * lib/canonicalize-lgpl.c (realpath_stk):
325         * lib/canonicalize.c (canonicalize_filename_mode_stk):
326         Treat size overflow like other out-of-memory.
327         * lib/canonicalize.c: No need to include stdlib.h, since
328         the code no longer refers to stdlib.h functions (other
329         than those that canonicalize.h must declare).
330         * lib/canonicalize.c (canonicalize_filename_mode_stk):
331         Do not bother terminating the string result on error.
333 2020-12-29  Bruno Haible  <bruno@clisp.org>
335         list-c++, [o]map-c++, [o]set-c++: Fix conflict with 'free-posix' module.
336         * lib/gl_list.hh: Include <stdlib.h>.
337         * lib/gl_map.hh: Likewise.
338         * lib/gl_omap.hh: Likewise.
339         * lib/gl_set.hh: Likewise.
340         * lib/gl_oset.hh: Likewise.
342 2020-12-29  Paul Eggert  <eggert@cs.ucla.edu>
344         canonicalize: fix ptrdiff_t overflow bug
345         Problem reported by Adhemerval Zanella in:
346         https://sourceware.org/pipermail/libc-alpha/2020-December/121182.html
347         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
348         Include intprops.h.
349         (NARROW_ADDRESSES): New constant.
350         * lib/canonicalize-lgpl.c (realpath_stk):m
351         * lib/canonicalize.c (canonicalize_filename_mode_stk):
352         Work even if strlen (END) does not fit in idx_t, or if adding
353         N to it overflows.
354         * modules/canonicalize, modules/canonicalize-lgpl (Depends-on):
355         Add intprops.
357 2020-12-28  Bruno Haible  <bruno@clisp.org>
359         havelib: Fix for Solaris 11 OpenIndiana and Solaris 11 OmniOS.
360         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): In
361         acl_is_expected_elfclass, use 'expr', not 'test'.
363 2020-12-28  Bruno Haible  <bruno@clisp.org>
365         ptsname_r: Fix a compiler warning on Solaris.
366         * lib/ptsname_r.c (__ptsname_r): Reduce the scope of variable 'err'.
368 2020-12-28  Bruno Haible  <bruno@clisp.org>
370         gnulib-tool: Fix logic whether to add a dummy.c.
371         * gnulib-tool (func_remove_if_blocks): New function.
372         (func_modules_add_dummy): Use it to eliminate all conditional statements
373         from the automake snippet.
375 2020-12-28  Paul Eggert  <eggert@cs.ucla.edu>
377         faccessat: revert recent EOVERFLOW change
378         I misunderstood the glibc source code.  Deduced from
379         Adhemerval Zanella’s proposed glibc patch in:
380         https://sourceware.org/pipermail/libc-alpha/2020-December/121131.html
381         * doc/posix-functions/faccessat.texi: It is not a problem.
382         * lib/canonicalize-lgpl.c, lib/canonicalize.c, lib/faccessat.c:
383         (FACCESSAT_NEVER_OVERFLOWS): Remove. All uses removed.
384         * lib/faccessat.c: Revert to simpler version now that
385         LSTAT_FOLLOWS_SLASHED_SYMLINK must be false.
386         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW):
387         Remove.  All uses removed.
388         * modules/canonicalize, modules/canonicalize-lgpl (Files):
389         Remove m4/faccessat.m4.
391         canonicalize-lgpl: accommodate picky cpp
392         * lib/canonicalize-lgpl.c: Use "defined FUNC_REALPATH_WORKS" in
393         case preprocessor is picky.  Reported by Adhemerval Zanella in:
394         https://sourceware.org/pipermail/libc-alpha/2020-December/121130.html
396         canonicalize: simplify via scratch_buffer_dupfree
397         * config/srclist.txt: Adjust accordingly.
398         * lib/canonicalize-lgpl.c (realpath_stk):
399         * lib/canonicalize.c (canonicalize_filename_mode_stk):
400         Simplify by using scratch_buffer_dupfree.
401         * lib/malloc/scratch_buffer.h (scratch_buffer_dupfree): New function.
402         * lib/malloc/scratch_buffer_dupfree.c: New file.
403         * modules/scratch_buffer (Files, Depends-on):
404         Add malloc/scratch_buffer_dupfree.c.
406 2020-12-27  Paul Eggert  <eggert@cs.ucla.edu>
408         regex: remove glibc21.m4
409         It doesn’t seem to be needed any more; at least, I couldn’t
410         reproduce the circa-2013 problem.  Perhaps the recent
411         --conditional-dependencies fixes have removed the need for it.
412         * m4/glibc21.m4: Remove.  All uses removed.
414 2020-12-26  Bruno Haible  <bruno@clisp.org>
416         gnulib-tool: Make --conditional-dependencies work with --with-tests.
417         Reported by Paul Eggert in
418         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00236.html>.
419         * gnulib-tool (func_emit_tests_Makefile_am): Handle conditional
420         dependencies like func_emit_lib_Makefile_am.
422 2020-12-26  Bruno Haible  <bruno@clisp.org>
424         execvpe: Make dependency to stdbool explicit.
425         * lib/execvpe.c: Include <stdbool.h>.
426         * modules/execvpe (Depends-on): Add stdbool.
428         execlp: Add tests.
429         * tests/test-execlp-main.c: New file.
430         * tests/test-execlp.sh: New file.
431         * modules/execlp-tests: New file.
433         execlp: New module.
434         * lib/execlp.c: New file.
435         * m4/execlp.m4: New file.
436         * modules/execlp: New file.
437         * doc/posix-functions/execlp.texi: Mention more Windows problems and the
438         new module.
440         execle: Add tests.
441         * tests/test-execle-main.c: New file.
442         * tests/test-execle.sh: New file.
443         * modules/execle-tests: New file.
445         execle: New module.
446         * lib/execle.c: New file.
447         * m4/execle.m4: New file.
448         * modules/execle: New file.
449         * doc/posix-functions/execle.texi: Mention more Windows problems and the
450         new module.
452         execl: Add tests.
453         * tests/test-execl-main.c: New file.
454         * tests/test-execl.sh: New file.
455         * modules/execl-tests: New file.
457         execl: New module.
458         * lib/execl.c: New file.
459         * m4/execl.m4: New file.
460         * modules/execl: New file.
461         * doc/posix-functions/execl.texi: Mention more Windows problems and the
462         new module.
464         execv: Add tests.
465         * tests/test-execv-main.c: New file.
466         * tests/test-execv.sh: New file.
467         * modules/execv-tests: New file.
469         execv: New module.
470         * lib/execv.c: New file.
471         * m4/execv.m4: New file.
472         * modules/execv: New file.
473         * doc/posix-functions/execv.texi: Mention more Windows problems and the
474         new module.
476         execvp: Add tests.
477         * tests/test-execvp-main.c: New file.
478         * tests/test-execvp.sh: New file.
479         * modules/execvp-tests: New file.
481         execvp: New module.
482         * lib/execvp.c: New file.
483         * m4/execvp.m4: New file.
484         * modules/execvp: New file.
485         * doc/posix-functions/execvp.texi: Mention more Windows problems and the
486         new module.
488         execvpe: Add tests.
489         * tests/test-execvpe-main.c: New file.
490         * tests/test-execvpe.sh: New file.
491         * modules/execvpe-tests: New file.
493         execvpe: New module.
494         * lib/execvpe.c: New file.
495         * m4/execvpe.m4: New file.
496         * modules/execvpe: New file.
497         * doc/glibc-functions/execvpe.texi: Mention the Windows problems and the
498         new module.
500         execve: Add tests.
501         * tests/test-exec-child.c: New file.
502         * tests/test-execve-main.c: New file.
503         * tests/test-execve.sh: New file.
504         * modules/execve-tests: New file.
506         execve: New module.
507         * lib/execve.c: New file.
508         * m4/execve.m4: New file.
509         * modules/execve: New file.
510         * doc/posix-functions/execve.texi: Mention more Windows problems and the
511         new module.
513         execve, execvpe, execvp, execv, execl, execle, execlp: Prepare modules.
514         * lib/unistd.in.h (execl, execle, execlp, execv, execve, execvp,
515         execvpe): Add declarations for the new modules.
516         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether execl, execle, execlp,
517         execv, execve, execvp, execvpe are declared.
518         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EXEC*, HAVE_EXECVPE,
519         REPLACE_EXEC*.
520         * modules/unistd (Makefile.am): Substitute GNULIB_EXEC*, HAVE_EXECVPE,
521         REPLACE_EXEC*.
522         * tests/test-unistd-c++.cc: Check the signature of execl, execle,
523         execlp, execv, execve, execvp, execvpe.
525 2020-12-26  Bruno Haible  <bruno@clisp.org>
527         stack: Fix typo in comments.
528         * lib/stack.h: Fix typo in comments.
530 2020-12-26  Bruno Haible  <bruno@clisp.org>
532         bitset: Fix conflict with 'free-posix' module.
533         * lib/bitset/base.h: Include <stdlib.h>.
535 2020-12-25  Paul Eggert  <eggert@cs.ucla.edu>
537         idx: change idx.h comment to LGPLv2.1+
538         * lib/idx.h: Change license notice to match what should be in glibc.
539         gnulib-tool will change it as appropriate anyway, so this is just
540         to simplify syncing with glibc.
542 2020-12-25  Thien-Thi Nguyen  <ttn@gnu.org>
544         MODULES.html.sh: Update after 2020-12-19 change.
545         * MODULES.html.sh (func_all_modules): Do s/free/free-posix/.
547 2020-12-25  Bruno Haible  <bruno@clisp.org>
549         Make it possible to turn off the mkdir override on Windows.
550         * lib/sys_stat.in.h (mkdir): Conditionalize through GNULIB_MKDIR and
551         GNULIB_MDA_MKDIR. Also support GNULIB_POSIXCHECK.
552         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_MKDIR,
553         GNULIB_MDA_MKDIR.
554         * modules/sys_stat (Makefile.am): Substitute GNULIB_MKDIR,
555         GNULIB_MDA_MKDIR.
556         * modules/mkdir (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
557         * doc/posix-functions/mkdir.texi: Mention also the 'sys_stat' module.
559         Make it possible to turn off each of the Windows oldnames workarounds.
560         * lib/fcntl.in.h (creat, open):  Conditionalize each of the Windows
561         oldnames workarounds through a GNULIB_MDA_<func> symbol.
562         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
563         * lib/search.in.h (lfind, lsearch): Likewise.
564         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
565         Likewise.
566         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
567         * lib/string.in.h (memccpy, strdup): Likewise.
568         * lib/sys_stat.in.h (chmod, umask): Likewise.
569         * lib/time.in.h (tzset): Likewise.
570         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
571         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
572         read, rmdir, swab, unlink, write): Likewise.
573         * lib/utime.in.h (utime): Likewise.
574         * lib/wchar.in.h (wcsdup): Likewise.
575         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize these
576         GNULIB_MDA_<func> symbols.
577         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Likewise.
578         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Likewise.
579         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
580         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
581         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
582         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
583         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Likewise.
584         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
585         * m4/utime_h.m4 (gl_UTIME_H_DEFAULTS): Likewise.
586         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Likewise.
587         * modules/fcntl-h (Makefile.am): Substitute these GNULIB_MDA_<func>
588         symbols.
589         * modules/math (Makefile.am): Likewise.
590         * modules/search (Makefile.am): Likewise.
591         * modules/stdio (Makefile.am): Likewise.
592         * modules/stdlib (Makefile.am): Likewise.
593         * modules/string (Makefile.am): Likewise.
594         * modules/sys_stat (Makefile.am): Likewise.
595         * modules/time (Makefile.am): Likewise.
596         * modules/unistd (Makefile.am): Likewise.
597         * modules/utime-h (Makefile.am): Likewise.
598         * modules/wchar (Makefile.am): Likewise.
600 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
602         canonicalize, canonicalize-lgpl: remove lint
603         Pacify GCC.  Some of these problems were reported by Bruno Haible in:
604         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00217.html
605         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
606         Sort shared include directives, for consistency.
607         (IF_LINT): New macro.
608         (suffix_requires_dir_check): Mark with _GL_ATTRIBUTE_PURE.
609         * lib/canonicalize-lgpl.c (GCC_LINT, _GL_ATTRIBUTE_PURE) [_LIBC]:
610         New macros.
611         (realpath_stk): Suppress bogus -Wmaybe-uninitialized warning.
612         * lib/canonicalize.c (canonicalize_filename_mode_stk):
613         Omit unused local.  Suppress bogus -Wmaybe-uninitialized warning.
615 2020-12-24  Bruno Haible  <bruno@clisp.org>
617         spawn-pipe: Use posix_spawn by default on native Windows.
618         * lib/spawn-pipe.c (SPAWN_PIPE_IMPL_AVOID_POSIX_SPAWN): New macro.
619         (create_pipe): Use it to decide among the two possible implementations.
620         * modules/spawn-pipe (Depends-on): Add posix_spawnattr_setpgroup.
622 2020-12-24  Bruno Haible  <bruno@clisp.org>
624         unistd-safer: Implement pipe_safer on native Windows.
625         * lib/pipe-safer.c (pipe_safer): Don't test HAVE_PIPE.
626         * modules/unistd-safer (Depends-on): Add pipe-posix.
628 2020-12-24  Bruno Haible  <bruno@clisp.org>
630         execute: Use posix_spawn by default on native Windows.
631         * lib/execute.c (EXECUTE_IMPL_AVOID_POSIX_SPAWN): New macro.
632         (execute): Use it to decide among the two possible implementations.
634 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
636         canonicalize-lgpl: merge proposed libc changes
637         This merges the changes proposed for glibc in:
638         https://sourceware.org/pipermail/libc-alpha/2020-December/121085.html
639         https://sourceware.org/pipermail/libc-alpha/2020-December/121086.html
640         * lib/canonicalize-lgpl.c: Include idx.h and filename.h
641         unconditionally.
642         (idx_t, IDX_MAX, FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME)
643         (ISSLASH) [_LIBC]: Remove.
645 2020-12-24  Bruno Haible  <bruno@clisp.org>
647         posix_spawn-internal: Implement for native Windows.
648         * lib/spawni.c (grow_inheritable_handles, shrink_inheritable_handles,
649         close_inheritable_handles, memiszero, sigisempty, open_handle, do_open,
650         do_dup2, do_close): New functions.
651         (__spawni): Implement on native Windows.
652         * modules/posix_spawn-internal (Depends-on): Add filename,
653         concat-filename, findprog-in, malloca, windows-spawn.
654         * doc/posix-functions/posix_spawn.texi: Update.
655         * doc/posix-functions/posix_spawnp.texi: Likewise.
657 2020-12-24  Bruno Haible  <bruno@clisp.org>
659         windows-spawn: Export another auxiliary function.
660         * lib/windows-spawn.h (convert_CreateProcess_error): New declaration.
661         * lib/windows-spawn.c (convert_CreateProcess_error): New function,
662         extracted from spawnpvech.
663         (spawnpvech): Use it.
665 2020-12-24  Bruno Haible  <bruno@clisp.org>
667         windows-spawn: Export some more auxiliary functions.
668         * lib/windows-spawn.h: Include <stdbool.h>.
669         (struct inheritable_handles): New type.
670         (init_inheritable_handles, compose_handles_block,
671         free_inheritable_handles): New declarations.
672         * lib/windows-spawn.c (init_inheritable_handles, compose_handles_block):
673         New functions, based on spawnvech.
674         (free_inheritable_handles): New function.
675         (spawnpvech): Use them.
677 2020-12-24  Bruno Haible  <bruno@clisp.org>
679         windows-spawn: Export another auxiliary function.
680         * lib/windows-spawn.h (compose_envblock): New declaration.
681         * lib/windows-spawn.c (compose_envblock): New function, extracted from
682         spawnpvech.
683         (spawnpvech): Use it.
685 2020-12-24  Bruno Haible  <bruno@clisp.org>
687         windows-spawn: Export an auxiliary function.
688         * lib/windows-spawn.h (compose_command): New declaration.
689         * lib/windows-spawn.c (compose_command): New function, extracted from
690         spawnpvech.
691         (spawnpvech): Use it.
693 2020-12-24  Bruno Haible  <bruno@clisp.org>
695         posix_spawn* tests: Add support for native Windows.
696         * tests/test-posix_spawn-open1.c (DATA_FILENAME): Treat native Windows
697         like Cygwin.
698         * tests/test-posix_spawn-dup2-stdin.c (main): Don't assume the signals
699         SIGHUP and SIGPIPE. On native Windows, don't call
700         posix_spawnattr_setsigmask.
701         * tests/test-posix_spawn-dup2-stdout.c (main): Likewise.
702         * tests/test-posix_spawn-fchdir.c (main): Likewise.
703         * tests/test-posix_spawn-chdir.c (test): Likewise. Accept the child
704         output from Cygwin's 'pwd' program.
705         * tests/test-posix_spawn-script.c (main): On native Windows, skip the
706         executable-shell-script part of the test.
707         * tests/test-posix_spawnp-script.c (main): Likewise.
708         * modules/posix_spawn-tests (Depends-on): Add freopen, waitpid.
709         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
710         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
711         * modules/posix_spawnp-tests (Depends-on): Add  waitpid.
712         (configure.ac): Don't define the POSIX_SPAWN_PORTED conditional.
713         (Makefile.am): Don't test the POSIX_SPAWN_PORTED conditional.
714         * modules/posix_spawn_file_actions_addchdir-tests (Makefile.am): Don't
715         test the POSIX_SPAWN_PORTED conditional.
716         * modules/posix_spawn_file_actions_addfchdir-tests (configure.ac):
717         Define the POSIX_SPAWN_PORTED conditional here.
719 2020-12-24  Bruno Haible  <bruno@clisp.org>
721         sh-filename: Add support for native Windows.
722         * m4/sh-filename.m4 (gl_SH_FILENAME): Treat native Windows like Cygwin.
724 2020-12-24  Paul Eggert  <eggert@cs.ucla.edu>
726         careadlinkat: improve warning line number
727         This propagates an idea first used in canonicalize-lgpl.
728         * lib/careadlinkat.c (GCC_BOGUS_WRETURN_LOCAL_ADDR):
729         New macro.
730         (careadlinkat): Use it.
732         linkat: use eloop-threshold
733         * lib/linkat.c: Include eloop-threshold.h.
734         Do not include sys/param.h.
735         (MAXSYMLINKS): Remove.
736         (link_follow, linkat_follow): Use __eloop_threshold instead
737         of MAXSYMLINKS.
738         * m4/linkat.m4 (gl_FUNC_LINKAT): Omit sys/param.h check.
739         * modules/linkat (Depends-on): Add eloop-threshold.  Sort.
741         canonicalize-lgpl: use eloop-threshold
742         * lib/canonicalize-lgpl.c [!_LIBC]: Include eloop-threshold.h.
743         (MAXSYMLINKS, __eloop_threshold): Remove.
744         * modules/canonicalize-lgpl (Depends-on): Add eloop-threshold.
746         eloop-threshold: new module
747         * config/srclist.txt: Add a comment about it.
748         * lib/eloop-threshold.h, modules/eloop-threshold: New files.
750         canonicalize: prefer faccessat to stat
751         A proper faccessat doesn't have the EOVERFLOW problem, and can be
752         more efficient as it needn't gather data from the filesystem to
753         fill in struct stat.  So use stat only if faccessat is absent,
754         or when checking for symlink loops in canonicalize.c.
755         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
756         Include fcntl.h, for AT_EACCESS.
757         (FACCESSAT_NEVER_EOVERFLOWS): Default to false.
758         (file_accessible): New function, based on faccessat but with
759         a fallback to stat and with an EOVERFLOW workaround.
760         (dir_check): Use it.
761         (dir_suffix): New static constant.
762         * lib/canonicalize-lgpl.c (FACCESSAT_NEVER_EOVERFLOWS) [_LIBC]:
763         Use __ASSUME_FACCESSAT2 to set FACCESSAT_NEVER_EOVERFLOWS
764         (__faccessat) [!_LIBC]: Define.
765         (realpath_stk): Use dir_suffix now.
766         * lib/canonicalize.c (canonicalize_filename_mode_stk):
767         If logical, don't check each component's existence; just check
768         at the end, as that's enough.
769         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
770         (gl_CANONICALIZE_LGPL_SEPARATE):
771         Require gl_FUNC_FACCESSAT_EOVERFLOW,
772         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and check for faccessat.
773         (gl_CANONICALIZE_LGPL_SEPARATE): Do not check for readlink,
774         as the code does not use HAVE_READLINK.
775         * modules/canonicalize, modules/canonicalize-lgpl (Files):
776         Add m4/faccessat.m4, m4/lstat.m4.
777         (Depends-on): Add fcntl-lh.
779         faccessat: work around F_OK EOVERFLOW bug
780         * doc/posix-functions/faccessat.texi: Mention the problem.
781         * lib/faccessat.c (FACCESSAT_NEVER_EOVERFLOWS): Default to 0.
782         (rpl_faccessat): If !FACCESSAT_NEVER_EOVERFLOWS, check
783         for F_OK and EOVERFLOW, which means we can return 0.
784         * m4/faccessat.m4 (gl_FUNC_FACCESSAT_EOVERFLOW): New macro.
785         (gl_FUNC_FACCESSAT): Use it.
787         stat failing with EOVERFLOW implies existence
788         * lib/euidaccess.c (euidaccess):
789         * lib/file-has-acl.c (file_has_acl):
790         * lib/link.c (link, rpl_link):
791         * lib/mkdir.c (rpl_mkdir):
792         * lib/mkfifo.c (rpl_mkfifo):
793         * lib/mknod.c (rpl_mknod):
794         * lib/ptsname_r.c (__ptsname_r):
795         * lib/symlink.c (rpl_symlink):
796         * lib/symlinkat.c (rpl_symlinkat):
797         * lib/unlink.c (rpl_unlink):
798         * lib/unlinkat.c (rpl_unlinkat):
799         * lib/utime.c (utime):
800         If stat fails with EOVERFLOW the file exists, so treat it that way
801         in file-existence tests that do not need struct stat values.
803         canonicalize-lgpl: remove freea macro
804         * lib/canonicalize-lgpl.c (freea) [_LIBC]: Remove; not needed.
806         canonicalize, canonicalize-lgpl: fix symlink bug
807         Problem reported by Adhemerval Zanella in:
808         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00155.html
809         * lib/canonicalize-lgpl.c, lib/canonicalize.c:
810         (suffix_requires_dir_check, dir_check): New functions.
811         (GCC_BOGUS_WRETURN_LOCAL_ADDR): New macro, to put the diagnostic
812         closer to the related GCC diagnostics.
813         * lib/canonicalize-lgpl.c (realpath_stk):
814         * lib/canonicalize.c (canonicalize_file_mode_stk):
815         Use them to fix a bug with .../symlink-to-regular-file/ etc.
816         * lib/canonicalize-lgpl.c (__stat) [!_LIBC]: New macro.
817         (realpath_stk): New function,
818         with the contents of the old __realpath and a new scratch buffer arg.
819         This is needed to pacify GCC 10.1, as canonicalize.c is already doing.
820         (__realpath): Use it.
821         * tests/test-canonicalize-lgpl.c, tests/test-canonicalize.c:
822         Add test cases for the bugs.
824 2020-12-24  Bruno Haible  <bruno@clisp.org>
826         execute: Treat signalled processes like wait-process does.
827         * lib/execute.c: Include <sys/types.h>, <sys/wait.h>.
828         (execute): Recognize the case where the exit code indicates a signalled
829         child process.
830         * tests/test-execute-main.c (main): Update expected test result.
831         * modules/execute (Depends-on): Add sys_wait.
833 2020-12-24  Bruno Haible  <bruno@clisp.org>
835         windows-spawn: Improve errno upon failure on native Windows.
836         * lib/windows-spawn.c (spawnpvech): Map the CreateProcess errors
837         ERROR_BAD_FORMAT and ERROR_BAD_EXE_FORMAT to ENOEXEC.
838         * tests/executable-script.sh: New file.
839         * tests/test-posix_spawn-script.c (main): Also try executing
840         executable-script.sh.
841         * tests/test-posix_spawnp-script.c (main): Likewise.
842         * tests/test-execute-script.c (main): Likewise.
843         * tests/test-spawn-pipe-script.c (main): Likewise.
844         * modules/posix_spawn-tests (Files): Add tests/executable-script.sh.
845         * modules/posix_spawnp-tests (Files): Likewise.
846         * modules/execute-tests (Files): Likewise.
847         * modules/spawn-pipe-tests (Files): Likewise.
849 2020-12-24  Bruno Haible  <bruno@clisp.org>
851         findprog-in: Improve errno upon failure on native Windows.
852         * lib/findprog-in.c (find_in_given_path): If the file basename has no
853         dot and the search with a suffix returned no result, do also a search
854         without a suffix, and set errno = ENOEXEC if we find a file in this way.
855         * tests/test-spawn-pipe-script.c (main): Update expected errno.
857 2020-12-23  Bruno Haible  <bruno@clisp.org>
859         posix_spawn, posix_spawnp: Fix execution of scripts.
860         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_SECURE): New macro.
861         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if posix_spawn
862         or posix_spawnp allows unsecure execution of scripts.
863         * doc/posix-functions/posix_spawn.texi: Document the script execution
864         problem.
865         * doc/posix-functions/posix_spawnp.texi: Likewise.
867 2020-12-23  Bruno Haible  <bruno@clisp.org>
869         Add unit tests regarding execution of scripts.
870         * tests/executable-script: New file.
871         * tests/executable-shell-script: New file.
872         * tests/test-posix_spawn-script.c: New file.
873         * tests/test-posix_spawnp-script.c: New file.
874         * tests/test-execute-script.c: New file.
875         * tests/test-spawn-pipe-script.c: New file.
876         * modules/posix_spawn-tests (Files): Add
877         tests/test-posix_spawn-script.c, tests/executable-script,
878         tests/executable-shell-script.
879         (Makefile.am): Compile and run test-posix_spawn-script.
880         * modules/posix_spawnp-tests (Files): Add
881         tests/test-posix_spawnp-script.c, tests/executable-script,
882         tests/executable-shell-script.
883         (Makefile.am): Compile and run test-posix_spawnp-script.
884         * modules/execute-tests (Files): Add tests/test-execute-script.c,
885         tests/executable-script, tests/executable-shell-script.
886         (Makefile.am): Compile and run test-execute-script.
887         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-script.c,
888         tests/executable-script, tests/executable-shell-script.
889         (Makefile.am): Compile and run test-spawn-pipe-script.
891 2020-12-23  Bruno Haible  <bruno@clisp.org>
893         Don't execute scripts without '#!' marker through /bin/sh.
894         This reflects the change done in glibc through
895         <https://sourceware.org/bugzilla/show_bug.cgi?id=13134> and
896         <https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=d96de9634a334af16c0ac711074c15ac1762b23c>.
897         * lib/spawni.c (internal_function): Remove macro.
898         (script_execute): Remove function.
899         (__spawni): Don't invoke script_execute.
900         * lib/execute.c (execute): Disable the ENOEXEC handling.
901         * lib/spawn-pipe.c (create_pipe): Likewise.
902         * NEWS: Mention the change.
904 2020-12-23  Bruno Haible  <bruno@clisp.org>
906         posix_spawn[p]: Fix compilation error on Windows (regr. 2020-12-14).
907         Reported by Adrian Ebeling <devl@adrian-ebeling.de> in
908         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00189.html>.
909         * lib/spawni.c (__spawni): Update function parameters.
911 2020-12-23  Bruno Haible  <bruno@clisp.org>
913         posix_spawn tests: Add two more tests.
914         * tests/test-posix_spawn-inherit0.c: New file, based on
915         tests/test-posix_spawn-open2.c.
916         * tests/test-posix_spawn-inherit1.c: New file, based on
917         tests/test-posix_spawn-open2.c.
918         * modules/posix_spawn-tests (Files): Add them.
919         (Depends-on): Add fflush.
920         (Makefile.am): Compile and run test-posix_spawn-inherit0 and
921         test-posix_spawn-inherit1.
923 2020-12-23  Bruno Haible  <bruno@clisp.org>
925         posix_spawn tests: Add another test.
926         * tests/test-posix_spawn-open2.c: New file, based on
927         tests/test-posix_spawn-open1.c.
928         * modules/posix_spawn-tests (Files): Add it.
929         (Makefile.am): Compile and run test-posix_spawn-open1.
931 2020-12-20  Bruno Haible  <bruno@clisp.org>
933         Remove support for broken <wchar.h> in AIX 3.
934         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify test programs.
936 2020-12-20  Bruno Haible  <bruno@clisp.org>
938         Remove support for broken <wchar.h> in BSD/OS and OSF/1.
939         * lib/wchar.in.h: Don't include <stdio.h>, <time.h>.
940         * lib/mbchar.h: Likewise.
941         * lib/mbiter.h: Likewise.
942         * lib/mbuiter.h: Likewise.
943         * m4/stdint.m4 (gl_STDINT_INCLUDES): Likewise.
944         * lib/mbfile.h: Don't include <time.h>.
945         * lib/mbswidth.h: Update comment.
946         * lib/stdint.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> before
947         <wchar.h>.
948         * lib/wctype.in.h: Likewise.
949         * m4/btowc.m4 (gl_FUNC_BTOWC): Simplify test programs.
950         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Likewise.
951         * m4/iswdigit.m4 (gl_FUNC_ISWDIGIT): Likewise.
952         * m4/iswxdigit.m4 (gl_FUNC_ISWXDIGIT): Likewise.
953         * m4/mbrlen.m4 (gl_FUNC_MBRLEN, gl_MBRLEN_INCOMPLETE_STATE,
954         gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL): Likewise.
955         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Likewise.
956         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_MBRTOWC_INCOMPLETE_STATE,
957         gl_MBRTOWC_SANITYCHECK, gl_MBRTOWC_NULL_ARG1, gl_MBRTOWC_NULL_ARG2,
958         gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL, gl_MBRTOWC_STORES_INCOMPLETE,
959         AC_FUNC_MBRTOWC): Likewise.
960         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Likewise.
961         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE):
962         Likewise.
963         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS, gl_MBSRTOWCS_WORKS): Likewise.
964         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
965         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
966         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Likewise.
967         * m4/wchar_h.m4 (gl_WCHAR_H, gl_WCHAR_H_INLINE_OK): Likewise.
968         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
969         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Likewise.
970         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE):
971         Likewise.
972         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS, gl_WCSRTOMBS_TERMINATION,
973         gl_WCSRTOMBS_NULL): Likewise.
974         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
975         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
976         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
977         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
978         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
979         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Likewise.
980         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
981         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
982         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
983         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
985 2020-12-20  Bruno Haible  <bruno@clisp.org>
987         isnanf: Fix autoconf test.
988         * m4/isnanf.m4 (gl_ISNANF_WORKS): Fix one of the NaN tests.
990 2020-12-20  Bruno Haible  <bruno@clisp.org>
992         Remove some of the support for obsolete IRIX 4 and 5.
993         * m4/mountlist.m4 (AC_FUNC_GETMNTENT): Don't test for getmntent in
994         libsun.
995         * tests/init.sh (setup_): Don't talk about IRIX 5.
997 2020-12-20  Bruno Haible  <bruno@clisp.org>
999         filemode: Remove Cray support.
1000         * lib/filemode.c (IS_MIGRATED_FILE): Remove macro.
1001         (filemodestring): Don't produce an 'M' type.
1002         * m4/filemode.m4 (gl_FILEMODE): Don't invoke AC_STRUCT_ST_DM_MODE.
1003         * m4/st_dm_mode.m4: Remove file.
1004         * modules/filemode (Files): Remove it.
1006 2020-12-20  Paul Eggert  <eggert@cs.ucla.edu>
1008         free-posix: assume glibc 2.33 fixes this.
1009         * m4/free.m4 (gl_FUNC_FREE): Assume glibc 2.33+ is fixed.
1010         Use compile-time test rather than guessing for cross-builds.
1012 2020-12-20  Bruno Haible  <bruno@clisp.org>
1014         backupfile: Fix compilation error on native Windows (regr. 2018-10-23).
1015         Reported by Adrian Ebeling <adrianebeling@gmx.de> in
1016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00156.html>.
1017         * lib/backupfile.c (fpathconf): Define fallback, like for pathconf.
1019 2020-12-20  Bruno Haible  <bruno@clisp.org>
1021         float: Fix compilation error when gnulib's float.h exists twice.
1022         Reported by Santiago Vila <sanvila@unex.es>.
1023         * lib/float.in.h (GNULIB_defined_long_double_union): New macro.
1025 2020-12-19  Bruno Haible  <bruno@clisp.org>
1027         free-posix: Assume future POSIX compliance only on OpenBSD and Solaris.
1028         * m4/free.m4 (gl_FUNC_FREE): Guess yes only on OpenBSD and Solaris.
1029         Don't trust _POSIX_VERSION for this test.
1031 2020-12-19  Paul Eggert  <eggert@cs.ucla.edu>
1033         free-posix: port to GNU/Linux
1034         * m4/free.m4 (gl_FUNC_FREE): Don’t assume GNU hosts are free of
1035         the bug, as it occurs on Ubuntu 20.10 x86-64 and, I assume, on
1036         other GNU/Linux hosts.
1038 2020-12-19  Bruno Haible  <bruno@clisp.org>
1040         free-posix: Add tests.
1041         * tests/test-free.c: New file.
1042         * tests/macros.h (ASSERT_NO_STDIO,
1043         WRITE_MACROEXPANDED_INTEGER_TO_STDERR, WRITE_INTEGER_TO_STDERR,
1044         WRITE_TO_STDERR): New macros.
1045         * modules/free-posix-tests: New file.
1047 2020-12-18  Bruno Haible  <bruno@clisp.org>
1049         free-posix: Add C++ declaration test.
1050         * tests/test-stdlib-c++.cc (free): New declaration.
1052 2020-12-18  Bruno Haible  <bruno@clisp.org>
1054         free-posix: New module, renamed from 'free'.
1055         * modules/free-posix: Renamed from modules/free.
1056         (configure.ac): Update gl_STDLIB_MODULE_INDICATOR invocation.
1057         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE_POSIX,
1058         not GNULIB_FREE.
1059         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE_POSIX, not
1060         GNULIB_FREE.
1061         * lib/stdlib.in.h (free): Test GNULIB_FREE_POSIX, not GNULIB_FREE.
1062         * doc/posix-functions/free.texi: Mention the module 'free-posix' and
1063         what it does.
1064         * NEWS: Mention that module 'free' no longer exists.
1065         * modules/canonicalize (Depends-on): Add free-posix. Remove free.
1066         * modules/canonicalize-lgpl (Depends-on): Likewise.
1068 2020-12-18  Bruno Haible  <bruno@clisp.org>
1070         free: Remove support for obsolete platforms.
1071         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works. Don't define
1072         CANNOT_FREE_NULL.
1073         * lib/free.c (rpl_free): Don't test CANNOT_FREE_NULL.
1074         * modules/free (Description): Update.
1075         * doc/posix-functions/free.texi: Don't mention SunOS 4 any more.
1077 2020-12-18  Paul Eggert  <eggert@cs.ucla.edu>
1079         intprops: port to ICC 2021.1 Beta 20201112
1080         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P):
1081         Port to ICC 2021.1, which has a non-working __builtin_mul_overflow_p.
1082         Add a clause for other compilers that claim to support
1083         __builtin_mul_overflow_p, since we might as well find out about
1084         slackers other than Clang and ICC.
1085         (INT_MULTIPLY_WRAPV): ICC 2021 has GCC bug 91450, so treat it
1086         like older GCCs even when it claims to be a newer one.
1088 2020-12-18  Bruno Haible  <bruno@clisp.org>
1090         intprops: Avoid potentially buggy __builtin_add_overflow in GCC 5, 6.
1091         Reported by Stefan Liebler <stli@linux.ibm.com> in
1092         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00152.html>.
1093         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Don't define for
1094         GCC 5.x and 6.x.
1095         * lib/glob.c (size_add_wrapv): Don't use __builtin_add_overflow for
1096         GCC 5.x and 6.x.
1098 2020-12-17  Bruno Haible  <bruno@clisp.org>
1100         free: Fix warning.
1101         Reported by Pádraig Brady <P@draigBrady.com> in
1102         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00148.html>.
1103         * lib/stdlib.in.h (free): New declaration.
1104         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether 'free' is declared.
1105         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_FREE, REPLACE_FREE.
1106         * modules/stdlib (Makefile.am): Substitute GNULIB_FREE, REPLACE_FREE.
1107         * m4/free.m4 (gl_FUNC_FREE): Set REPLACE_FREE, instead of defining
1108         'free' as a macro here.
1109         * modules/free (Depends-on): Add stdlib.
1110         (configure.ac): Test REPLACE_FREE. Invoke gl_STDLIB_MODULE_INDICATOR.
1112 2020-12-17  Paul Eggert  <eggert@cs.ucla.edu>
1114         canonicalize-lgpl: fix AIX test failures
1115         This merges the recent canonicalize.c fix into canonicalize-lgpl.c.
1116         Problem reported by Bruno Haible in:
1117         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00138.html
1118         * lib/canonicalize-lgpl.c: Include sys/stat.h.
1119         (__realpath): When testing a file name ending in '/', use stat
1120         rather than readlink, so that it does the right thing on AIX.
1121         * modules/canonicalize-lgpl (Depends-on): Add stat, sys_stat.
1123         canonicalize: omit second readlink when not needed
1124         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1125         Omit second readlink when (can_exist != CAN_MISSING
1126         && startlen != 0 && !logical).  Simplify.
1128         canonicalize: remove arbitrary 8192-byte limit
1129         Remove canonicalize.c’s arbitrary 8192-byte limit on platforms
1130         like GNU Hurd that do not define the PATH_MAX macro, and similarly
1131         for canonicalize-lgpl.c’s arbitrary 1024-byte limit.  Do this by
1132         using scratch buffers.  Lessen the number of differences between
1133         the two source files, to simplify this and future maintenance.
1134         * lib/canonicalize-lgpl.c (__realpath):
1135         * lib/canonicalize.c (canonicalize_filename_mode_stk):
1136         Use scratch buffers instead of malloc and malloca.  This avoids
1137         the need for alloca, and avoids the need for malloc in most cases.
1138         * lib/canonicalize-lgpl.c, lib/canonicalize.c: Make these files
1139         easier to compare, e.g., by sorting include files and by switching
1140         to the GNU convention of calling file names "file names", not
1141         "path names".  Include stdbool.h, scratch_buffer.h.
1142         * lib/canonicalize-lgpl.c (IDX_MAX) [_LIBC]: New macro.
1143         (malloca) [_LIBC]: Remove.
1144         [!_LIBC]: Do not include malloca.h.
1145         (get_path_max): New function, so that pathconf is called only in
1146         the rare and dubious case when when RESOLVED is not null and
1147         PATH_MAX is not defined.  Invoke pathconf on "/" not the input
1148         file name, as we care about the longest file name starting from
1149         "/" (not from the input file name), and POSIX does not specify
1150         what pathconf does on a non-directory file anyway.  If PATH_MAX is
1151         not defined, do not worry about overriding a path_max of 0, and do
1152         not let path_max exceed IDX_MAX.
1153         (__realpath): Remove an assumption that file name components
1154         cannot exceed 1024 bytes when PATH_MAX is not defined (wrong for
1155         the Hurd, presumably).
1156         When allocating the result, allocate it to just the right size;
1157         this costs nothing when the result is smaller than 1023 bytes,
1158         and for larger results it's probably worth the CPU to call realloc,
1159         as canonicalize.c already does.
1160         * lib/canonicalize.c: Include attribute.h.
1161         Do not include pathmax.h or xgetcwd.h.
1162         (PATH_MAX): Do not define, so file names longer than 8192 bytes
1163         work on platforms with no fixed limit.
1164         (canonicalize_filename_mode_stk): New function, with
1165         the content of the old canonicalize_filename_mode.
1166         Use getcwd instead of xgetcwd, and readlink instead of areadlink,
1167         since the scratch buffers now do memory management for us.
1168         Use rawmemchr instead of adding strlen.
1169         Use mempcpy instead of mempcpy + size.
1170         Assume free preserves errno.
1171         (canonicalize_filename_mode): Use it.
1172         * modules/canonicalize (Depends-on): Remove areadlink, pathmax,
1173         xgetcwd.  Add attribute, free, getcwd, mempcpy, rawmemchr,
1174         scratch_buffer, stdbool, xalloc-die.
1175         * modules/canonicalize-lgpl (Depends-on): Remove alloca-opt,
1176         malloca, realloc-posix.  Add scratch_buffer, stdbool.
1178         canonicalize-lgpl: simplify merge to glibc
1179         This patch lessens the differences between git glibc
1180         stdlib/canonicalize.c and lib/canonicalize-lgpl.c.
1181         The (perhaps wishful) goal is to make them identical.
1182         * lib/canonicalize-lgpl.c [!_LIBC]:
1183         Include <libc-config.h>, not config.h.
1184         Omit an unnecessary (!HAVE_CANONICALIZE_FILE_NAME ||
1185         !FUNC_REALPATH_WORKS || defined _LIBC) #if.
1186         Do not include alloca.h, since we use malloca now.
1187         [_LIBC]: Include <eloop-threshold.h>, and define dummy macros
1188         FILE_SYSTEM_PREFIX_LEN, IS_ABSOLUTE_FILE_NAME, ISSLASH, malloca,
1189         freea so that the mainline code can be kept #ifdef free.
1190         [!_LIBC]: Remove dummy macros for SHLIB_COMPAT, versioned_symbol,
1191         compat_symbol, weak_alias, __set_errno since libc-config.h does that.
1192         Add redirecting macros __mempcpy, __pathconf, __rawmemchr,
1193         __eloop_threshold.  All uses of their definiens changed.
1194         (SIZE_MAX): Remove; no longer needed.
1195         (alloc_failed): Remove, and remove all instances.
1196         No need for alloc_failed now that free preserves errno.
1197         (__realpath): Default path_max to 1024 instead of 8192, as that’s
1198         the glibc tradition and is safer when the 2nd argument is null.
1199         Use __rawmemchr instead of strchr.
1200         Use __mempcpy where appropriate.
1201         Simplify test for overflow so that it does not need SIZE_MAX.
1202         Do not preserve errno around free or freea calls; no longer needed.
1203         Mark __realpath with libc_hidden_def.
1204         * modules/canonicalize-lgpl (Depends-on): Add free, libc-config,
1205         malloc-posix, mempcpy, realloc-posix, rawmemchr.
1206         * modules/free: Now LGPLv2+, for canonicalize-lgpl.
1208         free: preserve errno
1209         * lib/free.c (rpl_free): Preserve errno.  Check for null only if
1210         CANNOT_FREE_NULL is defined, as an optimization for POSIX 2008
1211         platforms that do not preserve errno.
1212         * m4/free.m4 (gl_FUNC_FREE): Check whether free preserves errno.
1213         Also, define CANNOT_FREE_NULL if free cannot free NULL.
1214         * modules/free (configure.ac): Also replace 'free' if
1215         it does not preserve errno.
1217         idx: simplify IDX_MAX, remove IDX_WIDTH
1218         * lib/idx.h (IDX_MAX): Simplify by removing obsolete reference
1219         to UNSIGNED_IDX_T.
1220         (IDX_WIDTH): Remove, since it’s not used and its value
1221         arguably should be PTRDIFF_WIDTH anyway.
1223 2020-12-16  Bruno Haible  <bruno@clisp.org>
1225         posix_spawn_file_actions_addfchdir-tests: Rename test.
1226         * tests/test-posix_spawn-fchdir.c: Renamed from
1227         tests/test-posix_spawn5.c.
1228         * modules/posix_spawn_file_actions_addfchdir-tests (Files, Makefile.am):
1229         Update.
1231         posix_spawn_file_actions_addchdir-tests: Rename test.
1232         * tests/test-posix_spawn-chdir.c: Renamed from
1233         tests/test-posix_spawn4.c.
1234         * modules/posix_spawn_file_actions_addchdir-tests (Files, Makefile.am):
1235         Update.
1237         posix_spawn-tests: Rename test.
1238         * tests/test-posix_spawn-open1.c: Renamed from
1239         tests/test-posix_spawn3.c.
1240         * modules/posix_spawn-tests (Files, Makefile.am): Update.
1242         posix_spawnp-tests: Rename test.
1243         * tests/test-posix_spawn-dup2-stdin.c: Renamed from
1244         tests/test-posix_spawn2.c.
1245         * tests/test-posix_spawn-dup2-stdin.in.sh: Renamed from
1246         tests/test-posix_spawn2.in.sh.
1247         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1249         posix_spawnp-tests: Rename test.
1250         * tests/test-posix_spawn-dup2-stdout.c: Renamed from
1251         tests/test-posix_spawn1.c.
1252         * tests/test-posix_spawn-dup2-stdout.in.sh: Renamed from
1253         tests/test-posix_spawn1.in.sh.
1254         * modules/posix_spawnp-tests (Files, Makefile.am): Update.
1256 2020-12-14  Bruno Haible  <bruno@clisp.org>
1258         findprog-in: Allow overriding the current directory.
1259         * lib/findprog.h (find_in_given_path): Add directory argument.
1260         * lib/findprog-in.c (find_in_given_path): Likewise.
1261         * lib/execute.c (execute): Update caller.
1262         * lib/spawn-pipe.c (create_pipe): Likewise.
1263         * lib/windows-spawn.c (spawnpvech): Likewise.
1264         * NEWS: Mention the change.
1266 2020-12-14  Bruno Haible  <bruno@clisp.org>
1268         posix_spawn-internal: Make better use of 'const'.
1269         * lib/spawn_int.h (__spawni): Does not need write access to the elements
1270         of argv and envp.
1271         * lib/spawni.c (__spawni, script_execute): Likewise.
1272         * lib/spawn.c (posix_spawn): Update caller.
1273         * lib/spawnp.c (posix_spawnp): Likewise.
1275 2020-12-14  Bruno Haible  <bruno@clisp.org>
1277         spawn: Make it compile on native Windows.
1278         * modules/spawn (Depends-on): Add signal-h.
1280 2020-12-14  Bruno Haible  <bruno@clisp.org>
1282         windows-spawn: Avoid shadowing a variable.
1283         * lib/windows-spawn.c (spawnpvech): Rename local variable 'flags'.
1285 2020-12-13  Paul Eggert  <eggert@cs.ucla.edu>
1287         string: port memchr macro to AIX 7.2 XLC
1288         Its <string.h> defines a memchr macro to help inlining.
1289         * lib/string.in.h (memchr): #undef before #defining.
1291         canonicalize: fix AIX test failures
1292         Problem reported by Bruno Haible in:
1293         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00109.html
1294         * lib/canonicalize.c (canonicalize_filename_mode):
1295         When testing a file name ending in '/', use stat rather than
1296         readlink, so that it does the right thing on AIX.
1297         * modules/canonicalize (Depends-on): Add readlink, to pull in the
1298         recent changes in the Gnulib readlink module.
1300         Assume readlink/readlinkat ERANGE fix
1301         * lib/areadlink-with-size.c (areadlink_with_size):
1302         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
1303         * lib/careadlinkat.c (readlink_stk):
1304         Do not worry about readlink or readlinkat failing with errno == ERANGE,
1305         since the Gnulib readlink and readlinkat modules now fix that.
1307         getcwd: port to AIX
1308         * lib/getcwd.c [!_LIBC]: Undef stat64 before #defining it,
1309         in case our sys/stat.h #defined a function macro with the same name.
1311         readlink, readlinkat: add ERANGE portability
1312         Fix some portability issues with Gnulib's readlink and readlinkat,
1313         notably mostly working around the ERANGE problem in AIX and HP-UX.
1314         * doc/posix-functions/readlink.texi:
1315         * doc/posix-functions/readlinkat.texi:
1316         ERANGE problem is mostly fixed now.  Mention AIX problem with
1317         trailing / and EINVAL.  Lessen differences between these two files.
1318         * lib/readlink.c (rpl_readlink):
1319         * lib/readlinkat.c (rpl_readlinkat):
1320         If stat ("FILE/", ...) reports EOVERFLOW, treat FILE/ as an
1321         existing directory.  Mostly work around READLINK_TRUNCATE BUG.
1322         Lessen spurious differences between the readlink and readlinkat code.
1323         * lib/readlinkat.c (rpl_readlinkat):
1324         Fix bug where stat was used where fstatat was intended.
1325         * m4/readlink.m4 (gl_FUNC_READLINK):
1326         Rename gl_cv_func_readlink_works to gl_cv_func_readlink_trailing_slash
1327         to identify readlink problems more precisely.  All uses changed.
1328         Guess no on AIX or HP-UX for this variable.
1329         Add check for whether readlink truncates results,
1330         and define new macro READLINK_TRUCATE_BUG accordingly.
1331         * m4/readlinkat.m4 (gl_FUNC_READLINKAT):
1332         Also check gl_cv_func_readlink_trailing_slash when deciding
1333         whether to replace readlinkat.
1334         * modules/readlinkat (Depends-on): Most dependencies are also
1335         needed if replacing readlinkat.  fstatat is different, as it
1336         is needed only if replacing an existing readlinkat.
1338 2020-12-13  Bruno Haible  <bruno@clisp.org>
1340         spawn-pipe: Fix hanging processes on Windows (regression 2020-11-30).
1341         * lib/spawn-pipe.c (create_pipe): After spawning the subprocess, close
1342         the stdin_handle and/or stdout_handle.
1344 2020-12-12  Bruno Haible  <bruno@clisp.org>
1346         Fix gnulib-tool error when some modules occur in tests/.
1347         * doc/gnulib.texi (Specification): Update statistics.
1348         (Autoconf macros): Don't suggest to use AC_LIBOBJ in a .m4 file.
1349         (Using AC_LIBOBJ): New section.
1350         * check-AC_LIBOBJ: New file.
1351         * modules/fnmatch-gnu (Files): Add lib/fnmatch.c.
1352         * modules/fopen-gnu (Files): Add lib/fopen.c.
1353         * modules/memmem (Files): Add lib/memmem.c.
1354         * modules/renameat (Files): Add lib/at-func2.c.
1355         * modules/strcasestr (Files): Add lib/strcasestr.c.
1356         * modules/strstr (Files): Add lib/strstr.c.
1358 2020-12-11  Bruno Haible  <bruno@clisp.org>
1360         sh-quote, execute, spawn-pipe, etc.: Make better use of 'const'.
1361         * lib/sh-quote.h (shell_quote_argv): Does not need write access to the
1362         elements of argv.
1363         * lib/sh-quote.c (shell_quote_argv): Likewise.
1364         * lib/windows-spawn.h (prepare_spawn): Add 'const' the argument type and
1365         the return type.
1366         * lib/windows-spawn.c (prepare_spawn): Likewise.
1367         * lib/os2-spawn.h (prepare_spawn): Likewise.
1368         * lib/os2-spawn.c (prepare_spawn): Likewise.
1369         * lib/execute.h (execute): Does not need write access to the elements of
1370         prog_argv.
1371         * lib/execute.c (execute): Likewise.
1372         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1373         Likewise.
1374         * lib/spawn-pipe.c (create_pipe, create_pipe_bidi, create_pipe_in,
1375         create_pipe_out): Likewise.
1376         * lib/pipe-filter.h (pipe_filter_ii_execute, pipe_filter_gi_create):
1377         Likewise.
1378         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Likewise.
1379         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Likewise.
1380         * lib/javaexec.h (execute_fn): Does not need write access to the
1381         elements of prog_argv.
1382         * lib/javaexec.c (execute_java_class): Update variable types and remove
1383         casts to 'char *'.
1384         * lib/csharpexec.h (execute_fn): Does not need write access to the
1385         elements of prog_argv.
1386         * lib/csharpexec.c (execute_csharp_using_mono,
1387         execute_csharp_using_sscli): Update variable types and remove casts to
1388         'char *'.
1389         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1390         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
1391         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
1392         is_jikes_present): Update variable types and remove casts to 'char *'.
1393         * lib/javaversion.c (execute_and_read_line): Does not need write access
1394         to the elements of prog_argv.
1395         * lib/csharpcomp.c (compile_csharp_using_mono,
1396         compile_csharp_using_sscli): Update variable types and remove casts to
1397         'char *'.
1398         * tests/test-sh-quote.c (main): Update variable types and remove casts
1399         to 'char *'.
1400         * tests/test-execute-main.c (main): Update variable types and remove
1401         casts to 'char *'.
1402         * tests/test-spawn-pipe-main.c (test_pipe): Update variable types and
1403         remove casts to 'char *'.
1404         * NEWS: Mention the changes.
1406 2020-12-11  Bruno Haible  <bruno@clisp.org>
1408         execute-tests: Fix compilation error with MSVC.
1409         * tests/test-execute-child.c (is_device): With _fstat, use
1410         'struct _stat', not 'struct stat'.
1412 2020-12-11  Paul Eggert  <eggert@cs.ucla.edu>
1414         vararrays: just use 2.70
1415         * m4/vararrays.m4 (AC_C_VARARRAYS): Do not override Autoconf 2.70
1416         and later, since Autoconf 2.70 matches Gnulib now.
1418         sys_types: just use 2.70
1419         * m4/sys_types_h.m4 (AC_HEADER_MAJOR):
1420         Reindent to match Autoconf sources.
1421         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1423         stdint: port to Autoconf 2.70
1424         * m4/stdint.m4 (gl_STDINT_H): Check for inttypes.h and sys/types.h
1425         instead of assuming that AC_INCLUDES_DEFAULT does it.
1426         The old code relied on AC_INCLUDES_DEFAULT being called
1427         and setting ac_cv_header_inttypes_h and ac_cv_header_sys_types_h,
1428         but this does not occur in Autoconf 2.70.
1430         pid_t.m4: just use 2.70
1431         * m4/pid_t.m4 (AC_TYPE_PID_T):
1432         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1434         largefile: just use 2.70
1435         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
1436         Use Autoconf 2.70 as a prerequisite, not 2.69c.
1438         AC_C_RESTRICT: update from Autoconf
1439         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use Autoconf 2.70
1440         as a prerequisite, not 2.69c, since 2.70 is now out.
1441         (AC_C_RESTRICT): Define only for 2.70 or earlier.
1442         Try __restrict__ before __restrict.
1444         extensions: update from Autoconf
1445         * m4/extensions.m4 (AC_CHECK_INCLUDES_DEFAULT):
1446         Provide a default implementation for Autoconf 2.69 or earlier.
1447         (AC_USE_SYSTEM_EXTENSIONS): Copy from Autoconf git.  Define only
1448         if Autoconf 2.70 or earlier, since 2.70.1 or later should be OK.
1450         alloca: update from Autoconf
1451         * m4/alloca.m4 (gl_PREREQ_ALLOCA):
1452         Trivial update to match Autoconf 2.70.
1454 2020-12-11  Bruno Haible  <bruno@clisp.org>
1456         memchr: Work around memory overrun bug on AIX 7.2.
1457         * m4/memchr.m4 (gl_FUNC_MEMCHR): Test against AIX 7.2 bug.
1458         * doc/posix-functions/memchr.texi: Mention the AIX bug.
1460 2020-12-11  Bruno Haible  <bruno@clisp.org>
1462         execute-tests: Fix compilation error on AIX in 32-bit mode.
1463         * tests/test-execute-child.c: In order to get the original definition of
1464         fstat, don't use '#undef fstat' and '#undef stat'. Instead, arrange to
1465         include the system's <sys/stat.h> and use it before including other
1466         header files.
1468 2020-12-10  Bruno Haible  <bruno@clisp.org>
1470         windows-spawn: Relicense under LGPLv2+.
1471         * modules/windows-spawn (License): Change to LGPLv2+.
1473 2020-12-10  Bruno Haible  <bruno@clisp.org>
1475         execute, spawn-pipe: Fix memory leak on native Windows.
1476         * lib/windows-spawn.h (prepare_spawn): Add a second parameter.
1477         * lib/windows-spawn.c: Don't include xalloc.h.
1478         (quoted_arg_length, quoted_arg_string): New functions, extracted from
1479         prepare_spawn.
1480         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1481         elements of *new_argv together.
1482         * modules/windows-spawn (Depends-on): Remove xalloc. Add malloc-posix.
1483         * lib/os2-spawn.h (prepare_spawn): Add a second parameter.
1484         * lib/os2-spawn.c: Don't include xalloc.h.
1485         (prepare_spawn): Use malloc instead of XNMALLOC. Allocate memory for all
1486         elements of *new_argv together.
1487         * lib/execute.c: Include xalloc.h.
1488         (execute): Check return value of prepare_spawn. Free the memory
1489         allocated by prepare_spawn.
1490         * modules/execute (Depends-on): Add xalloc-die.
1491         * lib/spawn-pipe.c: Include xalloc.h.
1492         (create_pipe): Check return value of prepare_spawn. Free the memory
1493         allocated by prepare_spawn.
1494         * modules/spawn-pipe (Depends-on): Add xalloc-die.
1496 2020-12-10  Bruno Haible  <bruno@clisp.org>
1498         findprog-in: Relicense under LGPLv2+.
1499         Paul Smith's approval is in
1500         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00072.html>.
1501         * modules/findprog-in (License): Change to LGPLv2+.
1503 2020-12-10  Bruno Haible  <bruno@clisp.org>
1505         findprog-in: Don't exit upon out-of-memory.
1506         * lib/findprog.h (find_in_given_path): Document ENOMEM as possible error
1507         code.
1508         * lib/findprog-in.c: Don't include xalloc.h.
1509         (find_in_given_path): Call concatenated_filename, not
1510         xconcatenated_filename. Call strdup, not xstrdup. Upon out-of-memory,
1511         return NULL with errno set.
1512         * modules/findprog-in (Depends-on): Remove xconcat-filename, xalloc. Add
1513         concat-filename, strdup-posix, malloc-posix.
1515 2020-12-09  Bruno Haible  <bruno@clisp.org>
1517         fmaf: Work around a bug on FreeBSD 12.2/arm.
1518         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Add one more test.
1519         * doc/posix-functions/fmaf.texi: Mention the FreeBSD bug.
1521 2020-12-09  Bruno Haible  <bruno@clisp.org>
1523         threadlib: Fix test-fstrcmp failure on FreeBSD 11.
1524         * m4/threadlib.m4 (gl_THREADLIB_BODY): When weak symbols are not present
1525         on FreeBSD, define PTHREAD_IN_USE_DETECTION_HARD.
1526         * lib/glthread/threadlib.c: Include <errno.h>.
1527         (glthread_in_use): For FreeBSD, provide an alternative implementation
1528         that uses pthread_key_create.
1530 2020-12-09  Bruno Haible  <bruno@clisp.org>
1532         math C++ tests: Fix compilation error in with clang >= 7 on FreeBSD.
1533         * lib/math.in.h (isnan): For clang >= 7 on FreeBSD, declare 'rpl_isnan',
1534         not 'isnan'.
1536 2020-12-08  Bruno Haible  <bruno@clisp.org>
1538         std-gnu11: Make compatible with Autoconf 2.70.
1539         * m4/std-gnu11.m4: Disable the entire file if Autoconf >= 2.70 is in
1540         use.
1542 2020-12-08  Bruno Haible  <bruno@clisp.org>
1544         argp: Avoid undefined behaviour when invoking qsort().
1545         This fixes a test-argp-2.sh test failure on macOS and FreeBSD.
1546         Reported by Jeffrey Walton <noloader@gmail.com> in
1547         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00085.html>.
1548         * lib/argp-help.c (group_cmp): Remove third argument.
1549         (hol_sibling_cluster_cmp, hol_cousin_cluster_cmp): New functions, based
1550         upon hol_cluster_cmp.
1551         (hol_cluster_cmp): Use hol_cousin_cluster_cmp.
1552         (hol_entry_cmp): Rewritten to implement a total order.
1554 2020-12-08  Bruno Haible  <bruno@clisp.org>
1556         argp: Improve comments.
1557         * lib/argp-help.c: Add sectioning comments. Write NULL to designate a
1558         null pointer.
1559         (struct hol_entry): Fix comment regarding sort order of group.
1560         (hol_entry_short_iterate, hol_entry_long_iterate): Add comment.
1561         (until_short, canon_doc_option, hol_entry_qcmp): Improve comment.
1562         (hol_cluster_is_child, argp_hol): Move functions.
1563         (HOL_ENTRY_PTRCMP): Remove unused macro.
1565 2020-12-08  Bruno Haible  <bruno@clisp.org>
1567         argp: Don't pass invalid arguments to isspace() and isalnum().
1568         * lib/argp-help.c (canon_doc_option): Cast character to 'unsigned int'
1569         before passing it to isspace() or isalnum().
1571 2020-12-08  Bruno Haible  <bruno@clisp.org>
1573         argp: Don't rely on undefined behaviour of _tolower().
1574         Patch by Eric Blake
1575         <https://lists.gnu.org/archive/html/bug-gnulib/2009-09/msg00287.html>.
1576         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values that are
1577         not upper-case.  Pass correct range to tolower.
1579 2020-12-07  Bruno Haible  <bruno@clisp.org>
1581         unicodeio: Fix wrong result on FreeBSD.
1582         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
1583         characters on all platforms.
1585 2020-12-07  Bruno Haible  <bruno@clisp.org>
1587         get-rusage-data tests: Avoid test failure on FreeBSD/x86_64.
1588         * tests/test-get-rusage-data.c (main): Don't expect a strict increase on
1589         FreeBSD systems.
1591 2020-12-07  Bruno Haible  <bruno@clisp.org>
1593         get-rusage-data: Fix link error on FreeBSD 12.2/arm64.
1594         * modules/get-rusage-data (configure.ac): Test whether sbrk exists.
1595         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit): Define
1596         trivially of sbrk is not available.
1597         * doc/glibc-functions/sbrk.texi: Mention that the function does not
1598         exist in FreeBSD 12.2/arm64.
1599         * doc/glibc-functions/brk.texi: Likewise.
1601 2020-12-07  Bruno Haible  <bruno@clisp.org>
1603         Correct interaction between gl_ANSI_CXX and AC_PROG_CXX.
1604         Suggested by Zack Weinberg in
1605         <https://savannah.gnu.org/support/?110294>.
1606         * m4/ansi-c++.m4 (gl_ANSI_CXX): Mark AC_PROG_CXX as provided.
1607         * modules/uchar-c++-tests: Revert the workaround from 2020-08-18.
1609 2020-12-07  Bruno Haible  <bruno@clisp.org>
1611         Tweak the Windows oldnames workaround.
1612         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1613         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00073.html>.
1614         * lib/unistd.in.h: On native Windows, include <io.h> and <direct.h>
1615         always.
1616         (getcwd): Use _GL_CXXALIAS_MDA_CAST.
1617         * lib/stdlib.in.h (putenv): Likewise.
1619 2020-12-06  Paul Eggert  <eggert@cs.ucla.edu>
1621         doc: fix flat address space discussion
1622         * doc/gnulib-readme.texi (Other portability assumptions):
1623         Move the all-bits-zero assumption outside the flat address space
1624         section, since the two issues are independent.
1626         doc: document -static-libubsan more
1627         * doc/gnulib-readme.texi (High Quality): Document pros and cons of
1628         -static-libubsan a bit more.  Mostly cons.
1630 2020-12-06  Bruno Haible  <bruno@clisp.org>
1632         doc: Add more details regarding the undefined behaviour sanitizer.
1633         * doc/gnulib-readme.texi (High Quality): Describe
1634         -fsanitize-undefined-trap-on-error better.
1636 2020-12-06  Bruno Haible  <bruno@clisp.org>
1638         Do the Windows oldnames workaround through the C++ GNULIB_NAMESPACE.
1639         Reported by Daniel R. Hurtmans <Daniel.Hurtmans@ulb.ac.be> in
1640         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00029.html>.
1641         * lib/c++defs.h (_GL_CXXALIAS_MDA_CAST): New macro.
1642         * lib/fcntl.in.h (creat, open):  In C++ mode, when GNULIB_NAMESPACE is
1643         defined: 1. Define a symbol in this namespace. 2. Don't redirect using
1644         a preprocessor #define.
1645         * lib/math.in.h (j0, j1, jn, y0, y1, yn): Likewise.
1646         * lib/search.in.h (lfind, lsearch): Likewise.
1647         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
1648         Likewise.
1649         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
1650         * lib/string.in.h (memccpy, strdup): Likewise.
1651         * lib/sys_stat.in.h (chmod, umask): Likewise.
1652         * lib/time.in.h (tzset): Likewise.
1653         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
1654         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
1655         read, rmdir, swab, unlink, write): Likewise.
1656         * lib/utime.in.h (utime): Likewise.
1657         * lib/wchar.in.h (wcsdup): Likewise.
1658         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FCLOSEALL.
1659         (gl_STDIO_H): Set HAVE_DECL_FCLOSEALL.
1660         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FCLOSEALL.
1661         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_ECVT,
1662         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1663         (gl_STDLIB_H): Set HAVE_DECL_ECVT, HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1664         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_ECVT,
1665         HAVE_DECL_FCVT, HAVE_DECL_GCVT.
1666         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_EXECVPE.
1667         (gl_UNISTD_H): Set HAVE_DECL_EXECVPE.
1668         * modules/unistd (Makefile.am): Substitute HAVE_DECL_EXECVPE.
1669         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCSDUP.
1670         (gl_WCHAR_H): Set HAVE_DECL_WCSDUP.
1671         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCSDUP.
1673 2020-12-06  Bruno Haible  <bruno@clisp.org>
1675         doc: Mention some missing function declarations.
1676         * doc/glibc-functions/execvpe.texi: Mention the missing declaration on
1677         AIX.
1678         * doc/glibc-functions/fcloseall.texi: Mention the missing declaration on
1679         FreeBSD.
1680         * doc/pastposix-functions/ecvt.texi: Mention the missing declaration on
1681         Cygwin.
1682         * doc/pastposix-functions/fcvt.texi: Likewise.
1683         * doc/pastposix-functions/gcvt.texi: Likewise.
1685 2020-12-06  Bruno Haible  <bruno@clisp.org>
1687         doc: Tweak example.
1688         * doc/intprops.texi (Checking Integer Overflow): Use 'printf', not
1689         'print'.
1691 2020-12-06  Bruno Haible  <bruno@clisp.org>
1693         filenamecat-tests: Use idx_t for nonnegative ptrdiff_t variables.
1694         * tests/test-filenamecat.c: Include idx.h.
1695         (main): Mark prefixlen as nonnegative.
1696         * modules/filenamecat-tests (Depends-on): Add idx.
1698 2020-12-06  Bruno Haible  <bruno@clisp.org>
1700         time_rz: Use idx_t for nonnegative ptrdiff_t variables.
1701         * lib/time_rz.c: Include idx.h.
1702         (save_abbr): Mark zone_size as nonnegative.
1703         * modules/time_rz (Depends-on): Add idx.
1705 2020-12-06  Bruno Haible  <bruno@clisp.org>
1707         parse-datetime: Use idx_t for nonnegative ptrdiff_t variables.
1708         * lib/parse-datetime.y: Include idx.h.
1709         (textint): Mark digits as nonnegative.
1710         (parser_control): Mark dates_seen, days_seen, local_zones_seen,
1711         dsts_seen, times_seen, zones_seen as nonnegative.
1712         (lookup_word): Mark wordlen as nonnegative.
1713         (yylex): Mark count as nonnegative.
1714         (parse_datetime2): Mark tzsize as nonnegative.
1715         * modules/parse-datetime (Depends-on): Add idx.
1717 2020-12-06  Bruno Haible  <bruno@clisp.org>
1719         fnmatch: Use idx_t for nonnegative ptrdiff_t variables.
1720         * lib/fnmatch.c: Include idx.h. In glibc, define idx_t directly.
1721         * lib/fnmatch_loop.c (EXT): Mark slen, new_used, plensize as
1722         nonnegative.
1723         * modules/fnmatch (Depends-on): Add idx.
1725 2020-12-06  Bruno Haible  <bruno@clisp.org>
1727         c-stack: Use idx_t for nonnegative ptrdiff_t variables.
1728         * lib/c-stack.c: Include idx.h.
1729         (die): Mark buflen as nonnegative.
1730         * modules/c-stack (Depends-on): Add idx.
1732 2020-12-06  Bruno Haible  <bruno@clisp.org>
1734         backupfile: Use idx_t for nonnegative ptrdiff_t variables.
1735         * lib/backupfile.c: Include idx.h.
1736         (numbered_backup): Mark base_offset as nonnegative.
1737         (backupfile_internal): Likewise.
1738         * modules/backup-rename (Depends-on): Add idx.
1739         * modules/backupfile (Depends-on): Likewise.
1741 2020-12-05  Paul Eggert  <eggert@cs.ucla.edu>
1743         doc: fix curved quotes issue
1744         * doc/gnulib.texi: Set txicodequoteundirected and
1745         txicodequotebacktick so that ` and ' in examples do not generate
1746         curved single quotes that do the wrong thing when cut and pasted.
1748         doc: mention static and dynamic checking
1749         * doc/gnulib-readme.texi (High Quality): Add a bit of advice
1750         for static and dynamic checking.
1752         intprops: Add INT_ADD_OK etc.
1753         * doc/intprops.texi (Checking Integer Overflow): New section.
1754         * lib/intprops.h: From a suggestion by Bruno Haible in:
1755         https://lists.gnu.org/r/bug-gnulib/2020-12/msg00051.html
1756         (SAFE_INT_ADD, SAFE_INT_SUBTRACT, SAFE_INT_MULTIPLY): New macros.
1758         doc: move exotic platfroms to Target Platforms
1759         * doc/gnulib-intro.texi (Supported Platforms)
1760         (Formerly Supported Platforms, Unsupported Platforms):
1761         New subsections, split off from Target Platforms.
1762         (Unsupported Platforms): Move the exotic-platform stuff here ...
1763         * doc/gnulib-readme.texi (Exotic platforms): ... from this removed
1764         section.
1766         doc: mention intptr_t etc. and IBM i
1767         * doc/gnulib-readme.texi (Other portability assumptions):
1768         Mention intptr_t and uintptr_t, and that arithmetic on them
1769         works in the usual way.
1770         (Exotic platforms): New section, containing material from
1771         the old 'Integer Portability' section.  Also mention IBM i.
1772         * doc/intprops.texi (Wraparound Arithmetic):
1773         Say that the macros work on unsigned integers too.
1774         (Integer Portability): Remove.
1776 2020-12-04  Bruno Haible  <bruno@clisp.org>
1778         utime: Fix a test failure on macOS 10.13.
1779         Reported by Martin Storsjö <martin@martin.st> in
1780         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1781         * m4/utime.m4 (gl_FUNC_UTIME): Test whether utime handles trailing
1782         slashes on files.
1783         * lib/utime.c (utime): Add alternative implementation for Unix
1784         platforms.
1785         * modules/utime (Depends-on): Add stat.
1786         * doc/posix-functions/utime.texi: Mention the macOS 10.13 bug.
1787         * doc/posix-functions/lstat.texi: Mention that macOS 10.13 also has the
1788         trailing-slash bug.
1789         * doc/posix-functions/open.texi: Likewise.
1790         * doc/posix-functions/stat.texi: Likewise.
1791         * doc/posix-functions/symlink.texi: Likewise.
1793 2020-12-04  Paul Eggert  <eggert@cs.ucla.edu>
1795         intprops: update doc and mention Unisys
1796         * doc/gnulib-readme.texi (Other portability assumptions):
1797         Also mention ptrdiff_t when talking about widths and overflow.
1798         * doc/intprops.texi (Integer Properties): Summarize new section.
1799         (Arithmetic Type Properties): Document that EXPR_SIGNED no longer
1800         evaluates its argument.
1801         (Integer Bounds): Fix typo.
1802         (Wraparound Arithmetic): Remove obsolete comment about efficiency.
1803         Document that the _WRAPV macros now support pointers to unsigned
1804         integers.
1805         (Integer Range Overflow): Update SEI CERT citation.
1806         (Integer Portability): New subsection, which mentions
1807         the oddball Unisys platforms as non-Gnulib targets.
1809 2020-12-03  Bruno Haible  <bruno@clisp.org>
1811         idx: Clarify that idx_t always behaves like a signed type.
1812         Suggested by Paul Eggert in
1813         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00034.html>.
1814         * lib/idx.h: Clarify that idx_t always behaves like a signed type.
1815         Don't test UNSIGNED_IDX_T.
1817 2020-12-03  Bruno Haible  <bruno@clisp.org>
1819         idx: New module.
1820         * lib/idx.h: New file.
1821         * modules/idx: New file.
1822         * lib/canonicalize-lgpl.c: Include idx.h. Use idx_t instead of
1823         ptrdiff_t.
1824         * lib/canonicalize.c: Likewise.
1825         * modules/canonicalize-lgpl (Depends-on): Add idx.
1826         * modules/canonicalize (Depends-on): Likewise.
1828 2020-12-03  Bruno Haible  <bruno@clisp.org>
1830         fprintf-posix-tests: Avoid a test failure on macOS 10.13.
1831         Reported by Martin Storsjö <martin@martin.st> in
1832         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1833         * tests/test-fprintf-posix3.c: Skip the test on macOS.
1834         (main): Return a different exit code at each point. Allow 100 KB extra
1835         memory consumption.
1836         * tests/test-fprintf-posix3.sh: Update. Remove the "get_rusage_as()
1837         doesn't work" diagnostic.
1839 2020-12-02  Paul Eggert  <eggert@cs.ucla.edu>
1841         canonicalize: refactor can_mode flag
1842         * lib/canonicalize.c (MULTIPLE_BITS_SET): Remove, replacing with ...
1843         (multiple_bits_set): ... this new static function.  Uses changed.
1844         (canonicalize_filename_mode): Refactor for clarity to avoid
1845         modifying the CAN_MODE argument.
1847         canonicalize: prefer signed integer types
1848         * lib/canonicalize.c: Include stddef.h, for ptrdiff_t.
1849         (seen_triple, canonicalize_filename_mode): Prefer signed to
1850         unsigned types where either will do, as they avoid some glitches
1851         in comparisons and can trap on overflow when debugging.
1853         canonicalize: fix most of another EOVERFLOW issue
1854         * lib/canonicalize.c (canonicalize_filename_mode):
1855         Do not call stat if fewer than 20 symlinks have been traversed.
1856         This avoids EOVERFLOW failure in the common case where there
1857         are not that many symlinks, while continuing to catch loops
1858         (or fail due to EOVERFLOW) in the unusual case when there
1859         are many symlinks to traverse.
1861         canonicalize: do not assume symlinks have st_ino
1862         * lib/canonicalize.c (canonicalize_filename_mode):
1863         When checking for loops, use st_dev and st_ino from the parent
1864         directory not from the symlink, as pre-2017 POSIX says these
1865         members are not reliable for symlinks.  Couple this with START
1866         (the remaining file name to be resolved), not NAME (the whole file
1867         name with START as its suffix).
1868         * modules/canonicalize (Depends-on): Depend on stat, not lstat.
1870         canonicalize: fix EOVERFLOW bug
1871         * lib/canonicalize.c (canonicalize_filename_mode):
1872         When testing whether a directory entry is a symbolic link, or a
1873         directory or other, do not use lstat or stat or
1874         areadlink_with_size.  Just use areadlink, as this suffices and it
1875         avoids the EOVERFLOW problem that lstat and stat have.
1876         * modules/canonicalize (Depends-on): Depend on areadlink instead
1877         of areadlink-with-size and stat.
1879         canonicalize-lgpl: fix EOVERFLOW bug
1880         * lib/canonicalize-lgpl.c: Do not include <sys/stat.h>.
1881         (__realpath): Do not use lstat.  Just use readlink, as this
1882         suffices and it avoids the EOVERFLOW problem that lstat has.
1883         * modules/canonicalize-lgpl (Depends-on): Remove lstat, sys_stat.
1885 2020-12-02  Bruno Haible  <bruno@clisp.org>
1887         strsignal-tests: Fix test failure on macOS 10.13.
1888         Reported by Martin Storsjö <martin@martin.st> in
1889         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1890         * tests/test-strsignal.c (ASSERT_DESCRIPTION): Allow the actual result
1891         to be longer than the expected result.
1893 2020-12-02  Bruno Haible  <bruno@clisp.org>
1895         Fix compilation errors in test-math-c++.cc on FreeBSD 12.2/arm64.
1896         * lib/math.in.h (_GL_INCLUDING_MATH_H): New macro, to work around
1897         recursive self-include problem on FreeBSD 12.2 in C++ mode.
1899 2020-12-02  Bruno Haible  <bruno@clisp.org>
1901         spawn-pipe: Allow caller to specify directory for the subprocess.
1902         * lib/spawn-pipe.h (create_pipe_out, create_pipe_in, create_pipe_bidi):
1903         Add directory argument.
1904         * lib/spawn-pipe.c: Include canonicalize.h, filename.h, findprog.h.
1905         (create_pipe): Add directory argument. If specified, resolve the program
1906         file name and make it absolute, first. Pass the directory to spawnpvech
1907         and posix_spawn_file_actions_addchdir.
1908         (create_pipe_bidi, create_pipe_in, create_pipe_out): Add directory
1909         argument.
1910         * modules/spawn-pipe (Depends-on): Add canonicalize, filename,
1911         findprog-in, posix_spawn, posix_spawn_file_actions_addchdir.
1912         * tests/test-spawn-pipe-main.c (test_pipe): Update.
1913         * NEWS: Mention the change.
1914         * lib/csharpcomp.c (compile_csharp_using_mono,
1915         compile_csharp_using_sscli): Update.
1916         * lib/javacomp.c (is_envjavac_gcj, is_envjavac_gcj43, is_gcj_present,
1917         is_gcj_43): Update.
1918         * lib/javaversion.c (execute_and_read_line): Update.
1919         * lib/pipe-filter-gi.c (pipe_filter_gi_create): Update.
1920         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Update.
1922 2020-12-02  Bruno Haible  <bruno@clisp.org>
1924         execute: Allow caller to specify directory for the subprocess.
1925         * lib/execute.h (execute): Add directory argument.
1926         * lib/execute.c: Include canonicalize.h, filename.h, findprog.h.
1927         (execute): Add directory argument. If specified, resolve the program
1928         file name and make it absolute, first. Pass the directory to spawnpvech
1929         and posix_spawn_file_actions_addchdir.
1930         * modules/execute (Depends-on): Add canonicalize, filename, findprog-in,
1931         posix_spawn, posix_spawn_file_actions_addchdir.
1932         * tests/test-execute-main.c: Add test for passing a directory.
1933         * tests/test-execute-child.c: Likewise.
1934         * tests/test-execute.sh: Update.
1935         * modules/execute-tests (Depends-on): Add mkdir.
1936         * NEWS: Mention the change.
1937         * lib/csharpcomp.c (compile_csharp_using_sscli): Update.
1938         * lib/csharpexec.c (execute_csharp_using_mono,
1939         execute_csharp_using_sscli): Update.
1940         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
1941         compile_using_javac, compile_using_jikes, is_javac_present,
1942         is_jikes_present): Update.
1943         * lib/javaexec.c (execute_java_class): Update.
1945 2020-12-01  Bruno Haible  <bruno@clisp.org>
1947         vma-iter: Add support for macOS11/arm64.
1948         Patch suggested by Hill Ma <maahiuzeon@gmail.com> in
1949         <https://gitlab.com/gnu-clisp/clisp/-/issues/27>
1950         and by Martin Storsjö <martin@martin.st> in
1951         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00003.html>.
1952         * lib/vma-iter.c (vma_iterate): On arm64, use 64-bit type definitions.
1954 2020-12-01  Bruno Haible  <bruno@clisp.org>
1956         spawn-pipe: Fix handling of OS/2 kLIBC.
1957         Reported by KO Myung-Hun <komh78@gmail.com> in
1958         <https://lists.gnu.org/archive/html/bug-gnulib/2020-12/msg00005.html>.
1959         * modules/spawn-pipe (configure.ac): Use the common idiom for
1960         recognizing the OS/2 operating system.
1962 2020-11-30  Bruno Haible  <bruno@clisp.org>
1964         execute: Fix uninitialized use of errno.
1965         * lib/execute.c (execute): Preserve errno across several system calls.
1967 2020-11-30  Bruno Haible  <bruno@clisp.org>
1969         access tests: Fix test failure on native Windows.
1970         * tests/test-access.c (main): Change permissions of f2 file before
1971         attempting to remove it.
1973 2020-11-30  Paul Eggert  <eggert@cs.ucla.edu>
1975         faccessat: link with $(LIB_EACCESS)
1976         * modules/faccessat (Link:): Add $(LIB_EACCESS), since this
1977         module depends on euidaccess.
1979 2020-11-30  Bruno Haible  <bruno@clisp.org>
1981         execute, spawn-pipe: Make multithread-safe on native Windows.
1982         * lib/windows-spawn.h: Include <stdint.h>, <windows.h>.
1983         (dup_safer_noinherit, undup_safer_noinherit): Remove declarations.
1984         (spawnpvech): New declaration.
1985         * lib/windows-spawn.c: Include <stdio.h>, <process.h>, findprog.h.
1986         Don't include <unistd.h>, cloexec.h, error.h, gettext.h.
1987         (_): Remove macro.
1988         (dup_noinherit, fd_safer_noinherit, dup_safer_noinherit,
1989         undup_safer_noinherit): Remove functions.
1990         (spawnpvech): New function.
1991         * modules/windows-spawn (Depends-on): Add findprog-in, stdint. Remove
1992         cloexec, dup2, error, gettext-h.
1993         * lib/execute.c: Include msvc-nothrow.h.
1994         (execute) [WIN32]: Use _get_osfhandle, spawnpvech instead of _spawnvpe.
1995         * lib/spawn-pipe.c: Include msvc-nothrow.h.
1996         (create_pipe) [WIN32]: Use _get_osfhandle, DuplicateHandle, spawnpvech
1997         instead of _spawnvpe.
1998         * modules/execute (Depends-on): Add msvc-nothrow.
1999         * modules/spawn-pipe (Depends-on): Likewise.
2001 2020-11-30  Bruno Haible  <bruno@clisp.org>
2003         execute, spawn-pipe: Improve documentation.
2004         * lib/execute.h: Describe progname, prog_path, prog_argv.
2005         * lib/spawn-pipe.h: Likewise.
2007 2020-11-30  Bruno Haible  <bruno@clisp.org>
2009         execute tests: Add more tests.
2010         * tests/test-execute-main.c: Add tests for reading, writing, isatty on
2011         inherited file descriptors >= 3.
2012         * tests/test-execute-child.c: Likewise.
2013         * tests/test-execute.sh: Update.
2015 2020-11-30  Bruno Haible  <bruno@clisp.org>
2017         havelib: Fix for non-ELF platforms (regression 2019-11-17).
2018         Reported by comex <comexk@gmail.com> in
2019         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00188.html>.
2020         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On non-ELF platforms,
2021         don't expect an ELF header.
2023 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2025         bitset: use integer_length in table implementation
2026         * lib/bitset/table.c (tbitset_list_reverse): Use
2027         BITSET_FOR_EACH_BIT_REVERSE.
2029 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2031         bitset: use integer_length in list implementation
2032         * lib/bitset/list.c (lbitset_list_reverse): Use
2033         BITSET_FOR_EACH_BIT_REVERSE.
2035 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2037         bitset: use integer_length in vector implementation
2038         * lib/bitset/array.c (vbitset_list_reverse): Use
2039         BITSET_FOR_EACH_BIT_REVERSE.
2041 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2043         bitset: use integer_length in array implementation
2044         * modules/bitset (Depends-on): Add integer_length_l.
2045         * lib/bitset/base.h (bitset_fls_, BITSET_FOR_EACH_BIT_REVERSE): New.
2046         * lib/bitset/array.c (abitset_list_reverse): Use it.
2048 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2050         bitset: style: use consistent names
2051         * bitset/list.c (lbitset_list_reverse): Rename 'bcount' as 'bitcnt',
2052         and 'boffset' as 'bitoff', for consistency with the other
2053         implementations.
2054         * bitset/table.c (tbitset_list_reverse): Likewise.
2056 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2058         bitset: style: sort header
2059         * lib/bitset/base.h (bitset_ffs): Rename as...
2060         (bitset_ffs_): this.
2061         (bitset_ffs_, BITSET_FOR_EACH_BIT): Move to better places.
2063 2020-11-29  Akim Demaille  <akim@lrde.epita.fr>
2065         bitset: tests: check BITSET_FOR_EACH_REVERSE
2066         * tests/test-bitset.c (compare, check_zero, check_one_bit, check_ones):
2067         Check BITSET_FOR_EACH_REVERSE.
2069 2020-11-29  Bruno Haible  <bruno@clisp.org>
2071         spawn-pipe tests: Fix test failure with MSVC.
2072         * tests/test-spawn-pipe-child.c: Include <stdint.h>.
2073         (gl_msvc_invalid_parameter_handler): New function.
2074         (main): Set a global invalid-parameter handler.
2075         * modules/spawn-pipe-tests (Depends-on): Add msvc-inval, stdint.
2077 2020-11-29  Bruno Haible  <bruno@clisp.org>
2079         execute: Add tests.
2080         * tests/test-execute.sh: New file.
2081         * tests/test-execute-main.c: New file.
2082         * tests/test-execute-child.c: New file.
2083         * modules/execute-tests: New file.
2085 2020-11-29  Bruno Haible  <bruno@clisp.org>
2087         fcntl: Work around NetBSD bug with F_DUPFD_CLOEXEC.
2088         * m4/fcntl.m4 (gl_FUNC_FCNTL): Test whether F_DUPFD_CLOEXEC actually
2089         works.
2090         * lib/fcntl.c (rpl_fcntl_DUPFD_CLOEXEC): On NetBSD, use the same
2091         fallback implementation as on Haiku.
2092         * tests/test-fcntl.c (main): Add a test whether F_DUPFD_CLOEXEC is
2093         effective.
2094         * doc/posix-functions/fcntl.texi: Mention the NetBSD bug.
2096 2020-11-29  Bruno Haible  <bruno@clisp.org>
2098         spawn-pipe: Fix build on OS/2 kLIBC (regression 2020-11-28).
2099         * lib/os2-spawn.h: New file, based on lib/windows-spawn.h.
2100         * lib/os2-spawn.c: New file, based on lib/windows-spawn.c.
2101         * lib/spawn-pipe.c: On OS/2 kLIBC, include "os2-spawn.h".
2102         * lib/windows-spawn.c: Remove modifications for kLIBC.
2103         * modules/spawn-pipe (Files): Add the new files.
2104         (configure.ac): Arrange to compile os2-spawn.c on OS/2.
2106 2020-11-28  Bruno Haible  <bruno@clisp.org>
2108         asyncsafe-spin: Fix compilation error with GCC on 32-bit SPARC.
2109         Reported by Paul Eggert in
2110         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00066.html>.
2111         * m4/sparcv8+.m4: New file.
2112         * modules/sparcv8+: New file.
2113         * modules/asyncsafe-spin (Depends-on): Add sparcv8+.
2115 2020-11-28  Bruno Haible  <bruno@clisp.org>
2117         asyncsafe-spin: Fix build error with GCC on 32-bit SPARC.
2118         * lib/asyncsafe-spin.c: Don't use GCC >= 4.1 primitives on SPARC.
2120 2020-11-28  Bruno Haible  <bruno@clisp.org>
2122         windows-spawn: New module.
2123         * lib/windows-spawn.h: Renamed from lib/w32spawn.h. Remove
2124         implementations.
2125         * lib/windows-spawn.c: Renamed from lib/w32spawn.h.
2126         * modules/windows-spawn: New file.
2127         * lib/execute.c: Include "windows-spawn.h" instead of "w32spawn.h".
2128         * lib/spawn-pipe.c: Likewise.
2129         * modules/execute (Files): Remove lib/w32spawn.h.
2130         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2131         xalloc.
2132         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2133         * modules/spawn-pipe (Files): Remove lib/w32spawn.h.
2134         (Depends-on): Add windows-spawn. Remove cloexec, msvc-nothrow, strpbrk,
2135         xalloc.
2136         (Makefile.am): Remove w32spawn.h from lib_SOURCES.
2138 2020-11-27  Bruno Haible  <bruno@clisp.org>
2140         ssfmalloc tests: Port to macOS 11.
2141         * tests/test-ssfmalloc.c (PAGESIZE_MAX): Set to 16384, not 8192.
2143 2020-11-26  Bruno Haible  <bruno@clisp.org>
2145         Fix dependencies of modules that use '_exit' on native Windows.
2146         Reported by Jim Meyering in
2147         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00159.html>.
2148         * modules/_Exit (Depends-on): Add unistd.
2149         * modules/closein (Depends-on): Likewise.
2150         * modules/closeout (Depends-on): Likewise.
2151         * modules/forkpty (Depends-on): Likewise.
2152         * modules/posix_spawn-internal (Depends-on): Likewise.
2153         * modules/savewd (Depends-on): Likewise.
2154         * modules/stat-time-tests (Depends-on): Likewise.
2156 2020-11-26  Bruno Haible  <bruno@clisp.org>
2158         raise-tests: Fix compilation error on MSVC (regression 2020-11-25).
2159         * modules/raise-tests (Depends-on): Add unistd.
2160         * doc/posix-functions/_exit.texi: Mention the 'unistd' module.
2162 2020-11-25  Jim Meyering  <meyering@fb.com>
2164         setlocale-tests: do not trigger gcc's -Wanalyzer-possible-null-argument
2165         * tests/test-setlocale1.c (main): Assert that each strcmp argument is
2166         non-NULL, since we don't bother handing strdup failure.
2168         raise-tests: avoid GCC 11's new exit-from-signal-handler warning
2169         gcc's -Wanalyzer-unsafe-call-within-signal-handler exposed this.
2170         * tests/test-raise.c: Include unistd.h.
2171         (handler): Use _exit, not exit.
2173 2020-11-23  Bruno Haible  <bruno@clisp.org>
2175         Use the correct printf format attribute for mingw.
2176         Reported by Reuben Thomas <rrt@sc3d.org> in
2177         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00133.html>.
2179         * modules/vfprintf-posix (configure.ac): Define GNULIB_VFPRINTF_POSIX.
2180         * modules/vprintf-posix (configure.ac): Define GNULIB_VPRINTF_POSIX.
2182         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF_STANDARD,
2183         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM): New macros.
2184         (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2185         _GL_ATTRIBUTE_FORMAT_PRINTF. Use _GL_ATTRIBUTE_SPEC_PRINTF_STANDARD.
2186         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use
2187         _GL_ATTRIBUTE_SPEC_PRINTF_SYSTEM.
2189         * modules/vasnprintf (Depends-on): Add stdio.
2190         * lib/vasnprintf.h: Include <stdio.h>.
2191         (asnprintf, vasnprintf): Use the standard printf format attribute.
2193         * modules/xvasprintf (Depends-on): Add stdio.
2194         * lib/xvasprintf.h: Include <stdio.h>.
2195         (xasprintf, xvasprintf): Use the standard printf format attribute.
2197         * modules/xprintf (Depends-on): List stdio first.
2198         * lib/xprintf.h (xprintf, xvprintf): Use a printf format attribute that
2199         depends on GNULIB_VPRINTF_POSIX.
2200         (xfprintf, xvfprintf): Use a printf format attribute that depends on
2201         GNULIB_VFPRINTF_POSIX.
2203         * modules/c-vasnprintf (Depends-on): Add stdio.
2204         * lib/c-vasnprintf.h: Include <stdio.h>.
2205         (c_vasnprintf): Use the standard printf format attribute.
2207         * modules/c-vasprintf (Depends-on): Add stdio.
2208         * lib/c-vasprintf.h: Include <stdio.h>.
2209         (c_asprintf, c_vasprintf): Use the standard printf format attribute.
2211         * modules/c-vsnprintf (Depends-on): Add stdio.
2212         * lib/c-vsnprintf.h: Include <stdio.h>.
2213         (c_vsnprintf): Use the standard printf format attribute.
2215         * modules/c-snprintf (Depends-on): Add stdio.
2216         * lib/c-snprintf.h: Include <stdio.h>.
2217         (c_snprintf): Use the standard printf format attribute.
2219         * modules/c-xvasprintf (Depends-on): Add stdio.
2220         * lib/c-xvasprintf.h: Include <stdio.h>.
2221         (c_xasprintf, c_xvasprintf): Use the standard printf format attribute.
2223         * modules/error (Depends-on): Depend on stdio always.
2224         * lib/error.h: Include <stdio.h>.
2225         (_GL_ATTRIBUTE_SPEC_PRINTF): Remove macro.
2226         (error, error_at_line): Use a printf format attribute that depends on
2227         GNULIB_VFPRINTF_POSIX.
2228         * lib/error.c (_GL_ATTRIBUTE_FORMAT_PRINTF_STANDARD): Renamed from
2229         _GL_ATTRIBUTE_FORMAT_PRINTF.
2231         * modules/verror (Depends-on): Add stdio.
2232         * lib/verror.h: Include <stdio.h>. Don't include "error.h".
2233         (verror, verror_at_line): Use the standard printf format attribute.
2234         * lib/verror.c: Include "error.h".
2236         * modules/argp (Depends-on): Add stdio.
2237         * lib/argp.h (argp_error, __argp_error, argp_failure, __argp_failure):
2238         Use a printf format attribute that depends on GNULIB_VFPRINTF_POSIX.
2240         * modules/libtextstyle-optional (Depends-on): Add stdio.
2241         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Use the standard
2242         printf format attribute.
2244         * tests/test-nonblocking-misc.h (dbgfprintf): Use the standard printf
2245         format attribute.
2247 2020-11-23  Pádraig Brady  <P@draigBrady.com>
2249         selinux-at, selinux-h: use const correct declarations
2250         * lib/se-selinux.in.h: Use const for "set" functions,
2251         to match current selinux, and support cleaner user code.
2252         * lib/selinux-at.c: Likewise.
2253         * lib/selinux-at.h: Likewise.
2255 2020-11-22  Paul Eggert  <eggert@cs.ucla.edu>
2257         canonicalize-lgpl: fix memory leak
2258         * lib/canonicalize-lgpl.c (__realpath): Fix unlikely memory leak,
2259         which could have occurred if BUF was so large that malloc was
2260         called.  Do this by allocating EXTRA_BUF and BUF at the same time;
2261         this eliminates the need to free BUF separately.
2263 2020-11-22  Bruno Haible  <bruno@clisp.org>
2265         Fix missing module dependencies to 'xalloc' (regression 2020-10-19).
2266         * modules/xvasprintf (Depends-on): Add xalloc.
2267         * modules/pipe-filter-gi (Depends-on): Likewise.
2268         * modules/execute (Depends-on): Likewise, for w32spawn.h.
2269         * modules/spawn-pipe (Depends-on): Likewise.
2271 2020-11-22  Jose E. Marchesi  <jemarch@gnu.org>
2273         bootstrap: add option hooks
2274         * build-aux/bootstrap (bootstrap_print_option_usage_hook): Define.
2275         (bootstrap_option_hook): Likewise.
2276         (usage): Call bootstrap_print_option_usage_hook.
2278 2020-11-22  Bruno Haible  <bruno@clisp.org>
2280         argp: Don't break getprogname on non-glibc systems.
2281         * m4/argp.m4 (gl_ARGP): Don't expect <argp.h> to exist when testing for
2282         program_invocation_name and program_invocation_short_name.
2284 2020-11-22  Bruno Haible  <bruno@clisp.org>
2286         doc: Document <link.h>.
2287         * doc/glibc-headers/link.texi: New file.
2288         * doc/gnulib.texi: Include it.
2290 2020-11-22  Bruno Haible  <bruno@clisp.org>
2292         doc: Add references to the LSB.
2293         * doc/glibc-functions/*.texi: Add references to LSB 5.0.
2294         * doc/posix-functions/*.texi: Likewise.
2296 2020-11-22  Bruno Haible  <bruno@clisp.org>
2298         doc: Fix a makeinfo warning (regression 2020-11-03).
2299         * doc/posix-functions/aligned_alloc.texi: Add missing @item.
2301 2020-11-21  Paul Eggert  <eggert@cs.ucla.edu>
2303         parse-datetime: fix printf format typo
2304         * lib/parse-datetime.y (parse_datetime2): Fix format typo in
2305         previous patch to this file.  Problem reported by Chris Elvidge in
2306         <https://bugs.gnu.org/44763#32>.
2308         setlocale-null-tests: work around GCC bug 44511
2309         * tests/test-setlocale_null-mt-all.c:
2310         * tests/test-setlocale_null-mt-one.c:
2311         Ignore -Wreturn-type, to work around GCC bug 44511.
2313         nl_langinfo-tests: work around GCC bug 44511
2314         * tests/test-nl_langinfo-mt.c: Ignore -Wreturn-type, to work
2315         around a GCC bug <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=44511>.
2316         Problem reported for GNU grep by Andreas Schwab
2317         <https://bugs.gnu.org/44535>.
2319         selinux-h: add stubs for selabel_open etc.
2320         Coreutils with --enable-gcc-warnings does not build on Ubuntu 20.10
2321         because matchpathcon is deprecated in favor of selabel_open etc.,
2322         so this patch adds stubs for these functions.
2323         * lib/se-label.c, lib/se-label.in.h, m4/selinux-label-h.m4: New files.
2324         * lib/se-selinux.in.h (struct selinux_opt): Add incomplete decl,
2325         as it is needed for selabel_open and selinux/selinux.h declares
2326         this type here.
2327         * modules/selinux-h (Files): Add the new files.
2328         (configure.ac): Add gl_HEADERS_SELINUX_LABEL_H.
2329         (lib_SOURCES): Add se-label.in.h, se-label.c.
2330         (BUILT_SOURCES): Add $(SELINUX_LABEL_H).
2331         (selinux/label.h): New rule, mimicking selinux/context.h.
2332         (MOSTLYCLEANFILES): Add selinux/label.h, selinux/label.h-t.
2333         (Include): Add selinux/label.h.
2335 2020-11-21  Bruno Haible  <bruno@clisp.org>
2337         Update after 'test-driver' in Automake changed.
2338         * build-aux/test-driver.diff: Rebase.
2340 2020-11-21  Daiki Ueno  <ueno@gnu.org>
2342         read-file: remove dead assignment
2343         * lib/read-file.c (fread_file): Remove dead assignment when
2344         RF_SENSITIVE is set, flagged by clang-analyzer.
2346 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2348         bitset: tests: exercise the stats too
2350         * tests/test-bitset.c: Display the stats at the end of the test.
2351         * lib/bitset/stats.c (bitset_log_histogram_print): When diplaying the
2352         last bin, display "256-..." rather that "256-511", since the last bin
2353         does count item greater than or equal to 256.
2355 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2357         bitset: tests: try harder to break it
2358         * tests/test-bitset.c (compare): Be ready to use bitsets larger than
2359         BITSET_LIST_SIZE.
2360         (main): Likewise.
2361         While at it, also exercise super small bitsets.
2363 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2365         bitset: use ffs where possible in the vector implementation
2366         * lib/bitset/vector.c (vbitset_list): Use BITSET_FOR_EACH_BIT.
2368 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2370         bitset: use ffs where possible in the table implementation
2371         * lib/bitset/table.c (tbitset_list): Use BITSET_FOR_EACH_BIT.
2373 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2375         bitset: check empty and full bitsets
2376         * tests/test-bitset.c (check_zero, check_ones): New.
2377         (check_attributes): Use them.
2379 2020-11-19  Akim Demaille  <akim@lrde.epita.fr>
2381         bitset: be sure to always return a value
2382         * lib/bitset/array.c (abitset_small_list): Always update *next and
2383         return a value.
2385 2020-11-19  Siddhesh Poyarekar  <siddhesh@gotplt.org>
2387         vcs-to-changelog: Expect spaces in file names
2388         Reported by Thierry Bothorel <thierry.bothorel@zaclys.net> in
2389         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00040.html>,
2390         * build-aux/vcstocl/vcs_git.py (exec_git_cmd): Do not transform
2391         tabs to spaces.
2392         (list_changes): Use tabs to identify file names.
2394 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2396         bitset: strengthen tests
2397         * tests/test-bitset.c (compare): Also check count.
2398         Deal only with random values, move the one-bit tests to...
2399         (check_one_bit): this new function.
2400         (check_attributes): Call it.
2402 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2404         bitset: fix iteration over table bitsets
2405         * lib/bitset/table.c (tbitset_list): Update bitno when windex is.
2407 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2409         bitset: rename internal details for consistency
2410         * lib/bitset/table.c: Rename all the EBITSET_ symbols as TBITSET_.
2412 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2414         bitset: test: run deterministic tests on several bitset sizes
2415         * tests/test-bitset.c (check_attributes): Run it with small and large
2416         sizes.
2418 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2420         bitset: use ffs where possible in the list implementation
2421         * lib/bitset/list.c (lbitset_list): Use BITSET_FOR_EACH_BIT.
2423 2020-11-17  Akim Demaille  <akim@lrde.epita.fr>
2425         bitset: use ffs where possible in array implementation
2426         * lib/bitset/array.c (abitset_small_list): Use BITSET_FOR_EACH_BIT.
2428 2020-11-17  Bruno Haible  <bruno@clisp.org>
2430         posixcheck: Don't enable GNULIB_POSIXCHECK in C++ mode.
2431         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2432         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2433         * m4/posixcheck.m4 (gl_POSIXCHECK): Don't define GNULIB_POSIXCHECK in
2434         C++ mode.
2436 2020-11-17  Bruno Haible  <bruno@clisp.org>
2438         Fix error when GNULIB_POSIXCHECK is enabled (regression 2019-06-04).
2439         * lib/unistd.in.h (copy_file_range): Don't assume that copy_file_range
2440         is always declared.
2441         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether copy_file_range is
2442         declared.
2444 2020-11-17  Bruno Haible  <bruno@clisp.org>
2446         Fix link errors on AIX.
2447         * modules/clean-temp (Link): Link with $(LIBTHREAD).
2448         * modules/getumask (Link): Link with $(LIBTHREAD).
2449         * modules/getumask-tests (Makefile.am): Link test-getumask with
2450         $(LIBTHREAD).
2451         * modules/supersede (Link): Link with $(LIBTHREAD).
2452         * modules/supersede-tests (Makefile.am): Link test-supersede with
2453         $(LIBTHREAD).
2454         * modules/fatal-signal (Link): New section.
2455         * modules/execute (Link): New section.
2456         * modules/csharpexec (Link): Link with $(LIBTHREAD).
2457         * modules/javaexec (Link): Link with $(LIBTHREAD).
2458         * modules/spawn-pipe (Link): New section.
2459         * modules/spawn-pipe-tests (Makefile.am): Link test-spawn-pipe-main with
2460         $(LIBTHREAD).
2461         * modules/csharpcomp (Link): Link with $(LIBTHREAD).
2462         * modules/javacomp (Link): Link with $(LIBTHREAD).
2463         * modules/javaversion (Link): Link with $(LIBTHREAD).
2464         * modules/pipe-filter-gi (Link): New section.
2465         * modules/pipe-filter-gi-tests (Makefile.am): Link test-pipe-filter-gi1,
2466         test-pipe-filter-gi2-main with $(LIBTHREAD).
2467         * modules/pipe-filter-ii (Link): New section.
2468         * modules/pipe-filter-ii-tests (Makefile.am): Link test-pipe-filter-ii1,
2469         test-pipe-filter-ii2-main with $(LIBTHREAD).
2470         * modules/term-style-control (Link): New section.
2471         * modules/term-style-control-tests (Makefile.am): Link
2472         test-term-style-control-hello, test-term-style-control-yes with
2473         $(LIBTHREAD).
2474         * modules/wait-process (Link): New section.
2475         * modules/nonblocking-pipe-tests (Makefile.am): Link
2476         test-nonblocking-pipe-main with $(LIBTHREAD).
2477         * modules/nonblocking-socket-tests (Makefile.am): Link
2478         test-nonblocking-socket-main with $(LIBTHREAD).
2480 2020-11-16  Bruno Haible  <bruno@clisp.org>
2482         Fix link errors on platforms with libunistring.
2483         * modules/c32isalnum (Link): New section.
2484         * modules/c32isalnum-tests (Makefile.am): Link test-c32isalnum with
2485         $(LIBUNISTRING).
2486         * modules/c32isalpha (Link): New section.
2487         * modules/c32isalpha-tests (Makefile.am): Link test-c32isalpha with
2488         $(LIBUNISTRING).
2489         * modules/c32isblank (Link): New section.
2490         * modules/c32isblank-tests (Makefile.am): Link test-c32isblank with
2491         $(LIBUNISTRING).
2492         * modules/c32iscntrl (Link): New section.
2493         * modules/c32iscntrl-tests (Makefile.am): Link test-c32iscntrl with
2494         $(LIBUNISTRING).
2495         * modules/c32isdigit (Link): New section.
2496         * modules/c32isdigit-tests (Makefile.am): Link test-c32isdigit with
2497         $(LIBUNISTRING).
2498         * modules/c32isgraph (Link): New section.
2499         * modules/c32isgraph-tests (Makefile.am): Link test-c32isgraph with
2500         $(LIBUNISTRING).
2501         * modules/c32islower (Link): New section.
2502         * modules/c32islower-tests (Makefile.am): Link test-c32islower with
2503         $(LIBUNISTRING).
2504         * modules/c32isprint (Link): New section.
2505         * modules/c32isprint-tests (Makefile.am): Link test-c32isprint with
2506         $(LIBUNISTRING).
2507         * modules/c32ispunct (Link): New section.
2508         * modules/c32ispunct-tests (Makefile.am): Link test-c32ispunct with
2509         $(LIBUNISTRING).
2510         * modules/c32isspace (Link): New section.
2511         * modules/c32isspace-tests (Makefile.am): Link test-c32isspace with
2512         $(LIBUNISTRING).
2513         * modules/c32isupper (Link): New section.
2514         * modules/c32isupper-tests (Makefile.am): Link test-c32isupper with
2515         $(LIBUNISTRING).
2516         * modules/c32isxdigit (Link): New section.
2517         * modules/c32isxdigit-tests (Makefile.am): Link test-c32isxdigit with
2518         $(LIBUNISTRING).
2519         * modules/unicodeio (Link): Mention $(LIBUNISTRING).
2520         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2521         $(LIBUNISTRING).
2523 2020-11-16  Bruno Haible  <bruno@clisp.org>
2525         Fix link errors on platforms with libintl (e.g. Solaris and AIX).
2526         Reported by Tom G. Christensen <tgc@jupiterrise.com> in
2527         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00062.html>.
2528         * modules/getumask-tests (Makefile.am): Link test-getumask with
2529         $(LIBINTL).
2530         * modules/stack-tests (Makefile.am): Link test-stack with $(LIBINTL).
2531         * modules/supersede-tests (Makefile.am): Link test-supersede with
2532         $(LIBINTL).
2533         * modules/unicodeio-tests (Makefile.am): Link test-unicodeio with
2534         $(LIBINTL).
2536 2020-11-16  Bruno Haible  <bruno@clisp.org>
2538         getumask: Document link dependencies.
2539         * modules/getumask (Link): New section.
2541 2020-11-16  Bruno Haible  <bruno@clisp.org>
2543         Update link dependencies in modules after 2020-09-09 change.
2544         * modules/tempname (Link): Add $(LIB_CLOCK_GETTIME).
2545         * modules/mkdtemp (Link): Likewise.
2546         * modules/mkostemp (Link): Likewise.
2547         * modules/mkostemps (Link): Likewise.
2548         * modules/mkstemp (Link): Likewise.
2549         * modules/mkstemps (Link): Likewise.
2550         * modules/supersede (Link): Likewise.
2551         * modules/tmpfile (Link): Likewise.
2552         * modules/tmpfile-safer (Link): Likewise.
2554 2020-11-15  Paul Eggert  <eggert@cs.ucla.edu>
2556         getumask-tests: port to Solaris 10 etc.
2557         Problem reported by Tom Christensen in:
2558         https://lists.gnu.org/r/bug-gnulib/2020-11/msg00062.html
2559         * modules/getumask-tests (test_getumask_LDADD):
2560         Add $(LIB_CLOCK_GETTIME).
2562 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2564         bitset: use ffsl to accelerate iterations over set bits
2565         Suggested by Bruno Haible.
2566         * modules/bitset: Depend upon ffsl.
2567         * lib/bitset/base.h (bitset_ffs, BITSET_FOR_EACH_BIT): New.
2568         * lib/bitset/array.c (abitset_list): Use BITSET_FOR_EACH_BIT.
2570 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2572         bitset: more tests
2573         * tests/test-bitset.c (compare): Make it clear that the random values
2574         should not be modified.
2575         Check bitset_first, bitset_last and BITSET_FOR_EACH.
2577 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2579         bitset: fix the copy from lbitset to other types
2580         * lib/bitset/list.c (lbitset_copy): Rename as...
2581         (lbitset_copy_): this.
2582         (lbitset_copy): New.
2583         Dispatch to heterogeneous/homogeneous copy.
2585 2020-11-15  Akim Demaille  <akim@lrde.epita.fr>
2587         bitset: making debug traces more useful
2588         * lib/bitset.c (bitset_print): Print the bitset type in verbose mode.
2590         bitset: comment changes
2591         * lib/bitset.c: Move some documenting comments to...
2592         * lib/bitset.h: here.
2593         * lib/bitset/array.c: Fix some comments.
2595 2020-11-14  Paul Eggert  <eggert@cs.ucla.edu>
2597         careadlinkat: warn better about GCC bug 93644
2598         * lib/careadlinkat.c (readlink_stk): When --enable-gcc-warnings is
2599         not in effect, use "#warning" to let builders know more clearly
2600         about GCC bug 93644, because the bug triggers even if no -W option
2601         is given to GCC.
2603 2020-11-13  Jim Meyering  <meyering@fb.com>
2605         hard-locale-tests: avoid a -Wstrict-prototypes warning
2606         * tests/locale.c (main): Placate gcc's -Wstrict-prototypes by
2607         changing "main ()" to "main (void)". This was the only case that
2608         triggered a warning when building grep with --enable-gcc-warnings.
2610 2020-11-11  Paul Eggert  <eggert@cs.ucla.edu>
2612         time_rz: simplify CVE-2017-7476 fix
2613         * lib/time_rz.c: Do not include limits.h; I think it was included
2614         under the mistaken impression that limits.h defines SIZE_MAX.
2615         (SIZE_MAX): Remove.
2616         (save_abbr): Put string length into a ptrdiff_t variable,
2617         so that the size comparison works naturally.  This
2618         fixes CVE-2017-7476 in a cleaner way.
2620         parse-datetime: streamline overflow checking
2621         When parse-datetime.y’s overflow code was written, INT_ADD_WRAPV
2622         did not work for unsigned destinations, and since time_t might
2623         be unsigned that meant it did not work for time_t destinations.
2624         This limitation of INT_ADD_WRAPV has been fixed, so we can
2625         now streamline parse-datetime.y a bit.
2626         * lib/parse-datetime.y: Do not include limits.h, as LONG_MAX
2627         has not been used for a while.
2628         (yylex, parse_datetime2): Assume C99 declarations after statements.
2629         (yyles): Use INT_SUBTRACT_WRAPV instead of an explicit comparison
2630         to TYPE_MINIMUM.
2631         (parse_datetime2): No need for time_overflow now that
2632         INT_ADD_WRAPV works for unsigned results.
2634         parse-datetime-tests: port to Alpine Linux 3.12.1
2635         * tests/test-parse-datetime.c: Include errno.h for errno,
2636         and unistd.h for _SC_TZNAME_MAX and sysconf.
2637         (main): In the outlandishly-long time zone abbreviation test,
2638         do not exceed TZNAME_MAX as this has undefined behavior,
2639         and on Alpine Linux 3.12.1 it makes the test fail.
2641 2020-11-09  Pádraig Brady  <P@draigBrady.com>
2643         mgetgroups: avoid warning with clang
2644         * lib/mgetgroups.c: Xcode-12.1 identifies as GCC 4.2.1,
2645         so disable -Wpointer-sign for all clang versions.
2647 2020-11-07  Bruno Haible  <bruno@clisp.org>
2649         gnulib-tool: Fix link error with 'version-etc' (regression 2020-05-29).
2650         Reported by Simon Josefsson in
2651         <https://lists.gnu.org/archive/html/bug-gnulib/2020-11/msg00032.html>.
2652         * gnulib-tool (func_emit_tests_Makefile_am): Add libtests.a to
2653         LDADD a third time, after the second occurrence of ../lib/libgnu.a.
2654         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
2656 2020-11-04  Paul Eggert  <eggert@cs.ucla.edu>
2658         tests: pacify Sun C 5.9
2659         Without these changes, Sun C 5.9 (2009/11/22) issues complaints like
2660         “"test-nl_langinfo-mt.c", line 75: warning: statement not reached”.
2661         * tests/test-nl_langinfo-mt.c (thread1_func, thread2_func)
2662         (thread3_func, thread4_func, thread5_func, thread6_func, threadN_func):
2663         * tests/test-setlocale_null-mt-all.c (thread1_func, thread2_func):
2664         * tests/test-setlocale_null-mt-one.c (thread1_func, thread2_func):
2665         Remove unreachable ‘return NULL;’s.
2667         tests: port better to XLC 12.01
2668         * tests/test-argmatch.c (CHECK): Do not use -1 as a subscript,
2669         even in code that is not executed, as IBM XLC 12.01 complains "The
2670         subscript -1 is less than zero."
2671         * tests/test-stdint.c (verify_width): Pass an (unused) 3rd
2672         argument to _GL_VERIFY, as ISO C requires.  Otherwise, IBM XLC
2673         12.01 complains "The invocation of macro _GL_VERIFY contains fewer
2674         arguments than are required by the macro definition."
2676 2020-11-03  Bruno Haible  <bruno@clisp.org>
2678         aligned-malloc: Use fixes from the new modules.
2679         * modules/aligned-malloc (Depends-on): Add posix_memalign,
2680         aligned_alloc, memalign.
2681         (configure.ac): Use AC_CHECK_FUNCS_ONCE.
2683 2020-11-03  Bruno Haible  <bruno@clisp.org>
2685         aligned_alloc: Add tests.
2686         * tests/test-aligned_alloc.c: New file.
2687         * modules/aligned_alloc-tests: New file.
2689         aligned_alloc: New module.
2690         * lib/stdlib.in.h (aligned_alloc): New declaration.
2691         * lib/aligned_alloc.c: New file.
2692         * m4/aligned_alloc.m4: New file.
2693         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether aligned_alloc is declared.
2694         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ALIGNED_ALLOC,
2695         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2696         * modules/stdlib (Makefile.am): Substitute GNULIB_ALIGNED_ALLOC,
2697         HAVE_ALIGNED_ALLOC, REPLACE_ALIGNED_ALLOC.
2698         * modules/aligned_alloc: New file.
2699         * tests/test-stdlib-c++.cc (aligned_alloc): Check signature.
2700         * doc/posix-functions/aligned_alloc.texi: Mention the new module and the
2701         AIX bug.
2703 2020-11-03  Bruno Haible  <bruno@clisp.org>
2705         posix_memalign: Add tests.
2706         * tests/test-posix_memalign.c: New file.
2707         * modules/posix_memalign-tests: New file.
2709         posix_memalign: New module.
2710         * lib/stdlib.in.h (posix_memalign): New declaration.
2711         * lib/posix_memalign.c: New file.
2712         * m4/posix_memalign.m4: New file.
2713         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether posix_memalign is declared.
2714         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_POSIX_MEMALIGN,
2715         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2716         * modules/stdlib (Makefile.am): Substitute GNULIB_POSIX_MEMALIGN,
2717         HAVE_POSIX_MEMALIGN, REPLACE_POSIX_MEMALIGN.
2718         * modules/posix_memalign: New file.
2719         * tests/test-stdlib-c++.cc (posix_memalign): Check signature.
2720         * doc/posix-functions/posix_memalign.texi: Mention the new module and
2721         the OpenBSD bug.
2723 2020-11-03  Bruno Haible  <bruno@clisp.org>
2725         memalign: Add tests.
2726         * tests/test-memalign.c: New file.
2727         * modules/memalign-tests: New file.
2729         memalign: New module.
2730         * modules/memalign: New file.
2731         * doc/glibc-functions/memalign.texi: Mention the new module.
2733 2020-11-03  Bruno Haible  <bruno@clisp.org>
2735         verify tests: Fix crash with GCC (regression 2020-11-02).
2736         * tests/test-verify.c (main): Fix initializer of s.
2738 2020-11-03  Pádraig Brady  <P@draigBrady.com>
2740         mountlist: recognize more file system types as remote
2742         * lib/mountlist.c (ME_REMOTE): Sync previously unconsidered
2743         "remote" file systems from stat.c in coreutils.
2745 2020-11-02  Bernhard Voelker  <mail@bernhard-voelker.de>
2747         verify tests: Fix -Wuninitialized warning (regression 2020-10-30).
2748         * tests/test-verify.c (main): Initialize state variable.
2749         Reported by Bruno Haible for GCC 5.4.0.
2751 2020-11-02  Paul Eggert  <eggert@cs.ucla.edu>
2753         dfa.h: support inclusion from C++
2754         * lib/dfa.h: Allow multiple inclusion, and inclusion from
2755         C++ code.  The latter was suggested by Arnold Robbins.
2757 2020-11-01  Bruno Haible  <bruno@clisp.org>
2759         ssfmalloc tests: Portability to Linux/PowerPC and Linux/SPARC.
2760         * tests/test-ssfmalloc.c: Include <limits.h>.
2761         (PAGESIZE_MAX): Set to 65536 on Linux/PowerPC.
2763 2020-11-01  Bruno Haible  <bruno@clisp.org>
2765         verify tests: Fix compilation error with MSVC (regression 2020-10-30).
2766         * tests/test-verify.c (test_assume_noreturn): Fix declaration.
2768 2020-11-01  Jim Meyering  <meyering@fb.com>
2770         dfa-tests: test for today's invalid-merge fix
2771         * tests/test-dfa-invalid-merge.sh: New file.
2772         * modules/dfa-tests (Files): Add it.
2773         (TESTS): Add it.
2775 2020-11-01  Norihiro Tanaka  <noritnk@kcn.ne.jp>
2777         dfa: retain sequences of similar nodes in optimization
2778         DFA was merging similar nodes when it should not.  For example,
2779         it would convert a+a+a to a+a.  Now, a sequence of similar nodes
2780         is not merged.  Problem reported by Gonzalo Padrino in
2781         https://bugs.gnu.org/44351
2782         * lib/dfa.c (merge_nfa_state): Skip the follow for repetition in
2783         optimization.
2785 2020-11-01  Jim Meyering  <meyering@fb.com>
2787         test-dfa-match-aux.c: accept EREs, not BREs
2788         * tests/test-dfa-match-aux.c (main): Specify RE_SYNTAX_EGREP, not
2789         RE_SYNTAX_GREP, so tests can use ERE syntax rather than BRE.
2791 2020-10-30  Bernhard Voelker  <mail@bernhard-voelker.de>
2793         verify tests: avoid -Wmissing-declarations warnings
2794         * tests/test-verify.c (test_assume_expressions): Add declaration.
2795         (test_assume_optimization): Likewise.
2796         (test_assume_noreturn): Likewise.
2797         (main): Move down after all other definitions.  While at it, also
2798         call test_assume_expressions and test_assume_optimization as a
2799         runtime check.
2801 2020-10-26  Paul Eggert  <eggert@cs.ucla.edu>
2803         sys_stat: update comments for S_IRWXUGO, S_IXUGO
2804         * lib/sys_stat.in.h (S_IXUGO, S_IRWXUGO): Update comments.
2805         Perhaps these macros should be removed, as they’re not in either
2806         POSIX or GNU.  They could be moved to stat-macros.h, which would
2807         be cleaner in some sense.
2809 2020-10-25  Bruno Haible  <bruno@clisp.org>
2811         ssfmalloc tests: Small tweaks.
2812         * tests/test-ssfmalloc.c: Add comments.
2813         (alloc_pages): Don't require PROT_EXEC bits.
2814         (block_sizes): Add more small sizes, for better coverage of
2815         ssfmalloc-bitmap.h.
2817         ssfmalloc tests: Portability to Minix.
2818         * modules/ssfmalloc-tests (Files): Add m4/mmap-anon.m4.
2819         (configure.ac): Invoke gl_FUNC_MMAP_ANON.
2820         * m4/mmap-anon.m4: Update comment.
2822         ssfmalloc: Portability to AIX.
2823         * modules/ssfmalloc (Include): Add ssfmalloc.h.
2824         (Link): New section.
2825         * modules/ssfmalloc-tests (Makefile.am): Link test-ssfmalloc with
2826         $(LIBTHREAD).
2828         ssfmalloc: Portability to Cygwin.
2829         * lib/ssfmalloc.h: Add parameter PAGESIZE_MAX.
2830         (pg_offset_t): Define depending on PAGESIZE_MAX.
2831         * tests/test-ssfmalloc.c: Undefine PAGESIZE.
2832         (PAGESIZE_MAX): New macro.
2834         ssfmalloc: Fix buffer overrun in bitmap search.
2835         * lib/ssfmalloc-bitmap.h (find_first_packet_set): Don't access the
2836         word *words_end.
2838 2020-10-24  Paul Eggert  <eggert@cs.ucla.edu>
2840         doc: mention ‘restrict’ and C++
2841         * doc/gnulib-readme.texi (C99 features assumed): Document
2842         that ‘restrict’ should be avoided in C++ code.
2844 2020-10-20  Bernhard Voelker  <mail@bernhard-voelker.de>
2846         selinux-at, selinux-h: port to SELinux 3.1
2847         The new release finally deprecated the typedef 'security_context_t',
2848         see <https://github.com/SELinuxProject/selinux/commit/7a124ca275>.
2849         Use the simpler 'char *' instead.
2850         * lib/getfilecon.c (getfilecon): Adjust type of context parameter.
2851         (lgetfilecon): Likewise.
2852         (fgetfilecon): Likewise.
2853         (map_to_failure): Likewise.
2854         (rpl_getfilecon): Likewise.
2855         (rpl_lgetfilecon): Likewise.
2856         (rpl_fgetfilecon): Likewise.
2857         * lib/se-selinux.in.h (security_context_t): Remove typedef.
2858         (getcon): Adjust type of context parameter.
2859         (freecon): Likewise.
2860         (getfscreatecon): Likewise.
2861         (setfscreatecon): Likewise.
2862         (matchpathcon): Likewise.
2863         (getfilecon): Likewise.
2864         (lgetfilecon): Likewise.
2865         (fgetfilecon): Likewise.
2866         (setfilecon): Likewise.
2867         (lsetfilecon): Likewise.
2868         (fsetfilecon): Likewise.
2869         (security_check_context): Likewise.
2870         (security_check_context_raw): Likewise.
2871         (setexeccon): Likewise.
2872         (security_compute_create): Likewise.
2873         * lib/selinux-at.c (getfileconat): Likewise.
2874         (lgetfileconat): Likewise.
2875         (setfileconat): Likewise.
2876         (lsetfileconat): Likewise.
2877         * lib/selinux-at.h: Likewise.
2879 2020-10-19  Bruno Haible  <bruno@clisp.org>
2881         xalloc-die: Fix link error with Solaris cc (regression 2020-07-27).
2882         * lib/xalloc.h (xalloc_die): Don't declare if GNULIB_XALLOC_DIE is 0.
2883         (xmalloc, xzalloc, xcalloc, xrealloc, x2realloc, xmemdup, xstrdup,
2884         XMALLOC, XNMALLOC, XZALLOC, XCALLOC, xnmalloc, xnrealloc, x2nrealloc,
2885         xcharalloc): Don't declare/define if GNULIB_XALLOC is 0.
2886         * modules/xalloc (configure.ac): Define GNULIB_XALLOC.
2887         * modules/xalloc-die (configure.ac): Define GNULIB_XALLOC_DIE.
2889 2020-10-18  Bruno Haible  <bruno@clisp.org>
2891         ssfmalloc: Add tests.
2892         * tests/test-ssfmalloc.c: New file.
2893         * modules/ssfmalloc-tests: New file.
2895         ssfmalloc: New module.
2896         * lib/ssfmalloc.h: New file.
2897         * lib/ssfmalloc-bitmap.h: New file.
2898         * modules/ssfmalloc: New file.
2900 2020-10-18  Bruno Haible  <bruno@clisp.org>
2902         wchar: Fix configure test result on some versions of AIX.
2903         Reported by Clément Chigot <clement.chigot@atos.net> in
2904         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00115.html>.
2905         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Execute the test only on glibc
2906         systems.
2908 2020-10-18  Bruno Haible  <bruno@clisp.org>
2910         time: Fix warning about asctime when asctime is not used.
2911         * lib/time.in.h (asctime_r, ctime, ctime_r): Fix _GL_WARN_ON_USE
2912         invocation.
2914 2020-10-18  Bruno Haible  <bruno@clisp.org>
2916         *-list, *-oset, *-omap: Avoid a GCC warning (regression 2020-10-10).
2917         * lib/gl_anylinked_list2.h (gl_linked_iterator_free): Remove
2918         '_GL_ATTRIBUTE_CONST'.
2919         * lib/gl_anytree_list2.h (gl_tree_iterator_free): Likewise.
2920         * lib/gl_anytree_omap.h (gl_tree_iterator_free): Likewise.
2921         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
2922         * lib/gl_array_list.c (gl_array_iterator_free): Likewise.
2923         * lib/gl_array_omap.c (gl_array_iterator_free): Likewise.
2924         * lib/gl_array_oset.c (gl_array_iterator_free): Likewise.
2925         * lib/gl_carray_list.c (gl_carray_iterator_free): Likewise.
2927 2020-10-18  Bruno Haible  <bruno@clisp.org>
2929         obstack: Fix a clang warning.
2930         * lib/obstack.c (print_and_abort): Mark as __attribute_noreturn__.
2932 2020-10-16  Bruno Haible  <bruno@clisp.org>
2934         hash: Rename hash_delete to hash_remove.
2935         * lib/hash.h (hash_remove): Renamed from hash_delete.
2936         (hash_delete): New declaration.
2937         * lib/hash.c (hash_remove): Renamed from hash_delete.
2938         (hash_delete): New function.
2939         * tests/test-hash.c (main): Update.
2940         * lib/fts-cycle.c (leave_dir): Likewise.
2941         * NEWS: Mention the change.
2943 2020-10-16  Bruno Haible  <bruno@clisp.org>
2945         hash, xhash: Make usable from C++.
2946         * lib/hash.h: Add extern "C".
2948 2020-10-16  Bruno Haible  <bruno@clisp.org>
2950         hash, xhash: Move comments to the .h file.
2951         * lib/hash.c: Move comments meant for the user from here...
2952         * lib/xhash.c: ... and here...
2953         * lib/hash.h: ... to here.
2955 2020-10-13  Philipp Klaus Krause  <pkk@spth.de>  (tiny change)
2957         Don't declare an intention to modify the return value of strerror.
2958         * tests/test-perror2.c (main): Assign the return value of strerror to a
2959         'const char *' variable.
2961 2020-10-11  Bruno Haible  <bruno@clisp.org>
2963         *printf: Avoid "expanded before it was required" warning.
2964         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99): Define through
2965         AC_DEFUN_ONCE.
2967 2020-10-11  Benji Wiebe  <benjiwiebe14@gmail.com>
2969         getprogname: Add support for OpenServer 6 and UnixWare 7.
2970         * lib/getprogname.c: Include <fcntl.h>, <stdlib.h>, <string.h>.
2971         (getprogname): On OpenServer6 and UnixWare, read /proc/<pid>/cmdline.
2973 2020-10-11  Bruno Haible  <bruno@clisp.org>
2975         tests: Avoid a name clash on UnixWare.
2976         Reported by Tim Rice <tim@multitalents.net> in
2977         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00025.html>.
2978         * tests/nap.h (nap): Define as gl_nap on OpenServer and UnixWare.
2980 2020-10-11  Bruno Haible  <bruno@clisp.org>
2982         stdioext: Update comments regarding UnixWare.
2983         Reported by Tim Rice <tim@multitalents.net> in
2984         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
2985         * lib/fbufmode.c: Update comments.
2986         * lib/fflush.c: Likewise.
2987         * lib/fpending.c: Likewise.
2988         * lib/fpurge.c: Likewise.
2989         * lib/freadable.h: Likewise.
2990         * lib/freadable.c: Likewise.
2991         * lib/freadahead.c: Likewise.
2992         * lib/freading.h: Likewise.
2993         * lib/freading.c: Likewise.
2994         * lib/freadptr.c: Likewise.
2995         * lib/freadseek.c: Likewise.
2996         * lib/fseeko.c: Likewise.
2997         * lib/fseterr.c: Likewise.
2998         * lib/fwritable.h: Likewise.
2999         * lib/fwritable.c: Likewise.
3000         * lib/fwriting.h: Likewise.
3001         * lib/fwriting.c: Likewise.
3003 2020-10-11  Bruno Haible  <bruno@clisp.org>
3005         stdioext: Treat OpenServer 6 and UnixWare 7 like OpenServer 5.
3006         Reported by Tim Rice <tim@multitalents.net> in
3007         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00005.html>.
3008         Uses the info from
3009         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00028.html>.
3010         * lib/stdio-impl.h: Test also __SCO_VERSION__ and __sysv5__.
3012 2020-10-11  Bruno Haible  <bruno@clisp.org>
3014         stdioext: Avoid compilation errors on UnixWare 7.
3015         Reported by Tim Rice <tim@multitalents.net> in
3016         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00127.html>.
3017         * lib/fbufmode.c: Don't include <stdio_ext.h> if it does not exist.
3018         * lib/fpurge.c: Likewise.
3019         * lib/freadable.h: Likewise.
3020         * lib/freading.h: Likewise.
3021         * lib/fwritable.h: Likewise.
3022         * lib/fwriting.h: Likewise.
3023         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether <stdio_ext.h> exists.
3024         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
3025         * m4/freadable.m4 (gl_FUNC_FREADABLE): Likewise.
3026         * m4/freading.m4 (gl_FUNC_FREADING): Likewise.
3027         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Likewise.
3028         * m4/fwriting.m4 (gl_FUNC_FWRITING): Likewise.
3030 2020-10-11  Bruno Haible  <bruno@clisp.org>
3032         stdioext: Update comments regarding Cygwin.
3033         * lib/fpending.c: Update comments.
3034         * lib/fpurge.c: Likewise.
3035         * lib/freadable.h: Likewise.
3036         * lib/freadable.c: Likewise.
3037         * lib/freading.h: Likewise.
3038         * lib/freading.c: Likewise.
3039         * lib/fwritable.h: Likewise.
3040         * lib/fwritable.c: Likewise.
3041         * lib/fwriting.h: Likewise.
3042         * lib/fwriting.c: Likewise.
3044 2020-10-11  KO Myung-Hun  <komh78@gmail.com>
3046         Fix "warning: implicit declaration of function 'pthread_sigmask'".
3047         * lib/signal.in.h [__KLIBC__]: Include <pthread.h>.
3048         * lib/sys_select.in.h [__KLIBC__]: Do not include <signal.h>.
3050 2020-10-10  Bruno Haible  <bruno@clisp.org>
3052         *-list, *-oset, *-omap: Avoid possible compiler warnings.
3053         Reported by Marc Nieper-Wißkirchen in
3054         <https://lists.gnu.org/r/bug-gnulib/2020-10/msg00025.html>.
3055         * lib/gl_anylinked_list2.h (gl_linked_iterator,
3056         gl_linked_iterator_from_to): Mark as 'pure'.
3057         (gl_linked_iterator_free): Mark as 'const'.
3058         * lib/gl_anytree_list2.h (gl_tree_size, gl_tree_node_value,
3059         gl_tree_search_from_to, gl_tree_indexof_from_to, gl_tree_iterator,
3060         gl_tree_iterator_from_to, gl_tree_sortedlist_search,
3061         gl_tree_sortedlist_search_from_to, gl_tree_sortedlist_indexof,
3062         gl_tree_sortedlist_indexof_from_to): Mark as 'pure'.
3063         (gl_tree_iterator_free): Mark as 'const'.
3064         * lib/gl_anytree_omap.h (gl_tree_size, gl_tree_iterator): Mark as
3065         'pure'.
3066         (gl_tree_iterator_free): Mark as 'const'.
3067         * lib/gl_anytree_oset.h (gl_tree_size, gl_tree_next_node,
3068         gl_tree_prev_node, gl_tree_iterator): Mark as 'pure'.
3069         (gl_tree_iterator_free): Mark as 'const'.
3070         * lib/gl_anytreehash_list1.h (node_position, compare_by_position,
3071         compare_position_threshold): Mark as 'pure'.
3072         * lib/gl_array_list.c (gl_array_size, gl_array_indexof_from_to,
3073         gl_array_search_from_to, gl_array_iterator, gl_array_iterator_from_to,
3074         gl_array_sortedlist_indexof_from_to, gl_array_sortedlist_indexof,
3075         gl_array_sortedlist_search_from_to, gl_array_sortedlist_search): Mark as
3076         'pure'.
3077         (gl_array_iterator_free): Mark as 'const'.
3078         * lib/gl_array_omap.c (gl_array_size, gl_array_indexof, gl_array_search,
3079         gl_array_search_atleast, gl_array_iterator): Mark as 'pure'.
3080         (gl_array_iterator_free): Mark as 'const'.
3081         * lib/gl_array_oset.c (gl_array_size, gl_array_indexof, gl_array_search,
3082         gl_array_indexof_atleast, gl_array_search_atleast, gl_array_iterator,
3083         gl_array_iterator_atleast): Mark as 'pure'.
3084         (gl_array_iterator_free): Mark as 'const'.
3085         * lib/gl_carray_list.c (gl_carray_size, gl_carray_node_value,
3086         gl_carray_next_node, gl_carray_previous_node, gl_carray_get_at,
3087         gl_carray_indexof_from_to, gl_carray_search_from_to, gl_carray_iterator,
3088         gl_carray_iterator_from_to, gl_carray_sortedlist_indexof_from_to,
3089         gl_carray_sortedlist_indexof, gl_carray_sortedlist_search_from_to,
3090         gl_carray_sortedlist_search): Mark as 'pure'.
3091         (gl_carray_iterator_free): Mark as 'const'.
3093 2020-10-10  Bruno Haible  <bruno@clisp.org>
3095         rbtree-list: Avoid possible compiler warnings.
3096         This mirrors the change of avltree-list on 2014-09-16.
3097         * lib/gl_rbtree_list.c (gl_rbtree_list_check_invariants): Add extern
3098         declaration. Add cast to void for ignored value of check_invariants.
3100 2020-10-10  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
3102         stack: New module.
3103         * MODULES.html.sh: Add entry for the stack module.
3104         * modules/stack: New file.
3105         * modules/stack-tests: New file.
3106         * lib/stack.h: New file.
3107         * tests/test-stack.c: New file.
3109 2020-10-10  Paul Eggert  <eggert@cs.ucla.edu>
3111         attribute: improve const, pure doc
3112         Problem reported by Marc Nieper-Wißkirchen in:
3113         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00035.html
3114         * lib/attribute.h (ATTRIBUTE_CONST, ATTRIBUTE_PURE): Improv doc.  See:
3115         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=51971#c1
3117 2020-10-05  Paul Eggert  <eggert@cs.ucla.edu>
3119         thread: pacify GCC on Solaris 10
3120         Problem reported by Kiyoshi KANAZAWA for grep (Bug#43666#29).
3121         * lib/glthread/thread.h (gl_thread_self): Use ‘(pthread_t) 0’
3122         instead of ‘(pthread_t) NULL’, to pacify GCC on Solaris 10
3123         where pthread_t is unsigned int.
3125 2020-10-04  Paul Eggert  <eggert@cs.ucla.edu>
3127         c-stack: avoid AS_IF
3128         Problem reported by Bruno Haible in:
3129         https://lists.gnu.org/r/bug-gnulib/2020-10/msg00018.html
3130         * m4/c-stack.m4 (gl_PREREQ_C_STACK): No need for AS_IF.
3132         c-stack: pacify GCC 9.3.1 when using libsigsegv
3133         * lib/c-stack.c [USE_LIBSIGSEGV]: Disable --suggest-attribute=pure.
3135 2020-10-04  Bruno Haible  <bruno@clisp.org>
3137         localename: Fix a couple of "unused parameter" warnings.
3138         Reported by Marc Nieper-Wißkirchen <marc@nieper-wisskirchen.de> in
3139         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00014.html>.
3140         * lib/localename.c (gl_locale_name_thread_unsafe, gl_locale_name_thread,
3141         gl_locale_name_posix, gl_locale_name_environ): Add _GL_UNUSED in
3142         parameter list.
3144 2020-10-04  Bruno Haible  <bruno@clisp.org>
3146         vasnprintf: Don't use %n on modern, ISO C 99 compliant platforms.
3147         Suggested by Jeremie Courreges-Anglas <jca@wxcvbn.org> in
3148         <https://lists.gnu.org/archive/html/bug-gnulib/2020-10/msg00010.html>.
3149         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Define
3150         HAVE_SNPRINTF_TRUNCATION_C99.
3151         * lib/vasnprintf.c (VASNPRINTF): Don't use %n if
3152         HAVE_SNPRINTF_RETVAL_C99 && HAVE_SNPRINTF_TRUNCATION_C99.
3154 2020-10-03  Paul Eggert  <eggert@cs.ucla.edu>
3156         c-stack: streamline Solaris configuration
3157         * lib/c-stack.c: Omit mention of HAVE_SIGALTSTACK, since
3158         the code is used only if a test for sigaltstack worked
3159         in some other way.
3160         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Do not require gl_LIBSIGSEGV;
3161         instead, execute gl_LIBSIGSEGV only if needed (because the XSI
3162         heuristic does not work).
3163         * modules/c-stack (Files): Add m4/libsigsegv.m4, since
3164         we no longer require the libsigsegv module.
3165         (Depends-on): Depend on havelib, not libsigsegv.
3167         c-stack: stop using SIGSTKSZ
3168         It’s been proposed to stop making SIGSTKSZ an integer constant:
3169         https://sourceware.org/pipermail/libc-alpha/2020-September/118028.html
3170         Also, using SIGSTKSZ in #if did not conform to current POSIX.
3171         Also, avoiding SIGSTKSZ makes the code simpler and easier to grok.
3172         * lib/c-stack.c (SIGSTKSZ): Remove.
3173         (alternate_signal_stack): Now a 64 KiB array, for simplicity.
3174         All uses changed.
3176         c-stack: fix libsigsegv typo
3177         Problem reported by Bruno Haible in:
3178         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00175.html
3179         * lib/c-stack.c (USE_LIBSIGSEGV): Fix typo that caused libsigsegv
3180         to be used only on Solaris (exactly where it is not needed!).
3182 2020-10-03  Thien-Thi Nguyen  <ttn@gnuvola.org>
3184         MODULES.html.sh: Fix typo.
3185         * MODULES.html.sh (Numeric conversion functions <stdlib.h>): Fix typo.
3187 2020-09-28  Paul Eggert  <eggert@cs.ucla.edu>
3189         version-etc: pacify Oracle Studio 12.6
3190         Without this patch, it complains: "version-etc.h", line 64:
3191         warning: token-less macro argument (E_TOKENLESS_MACRO)" when in
3192         pedantic mode.
3193         * lib/version-etc.h (version_etc): Port to C89 macro rules.
3195 2020-09-27  Bruno Haible  <bruno@clisp.org>
3197         Avoid "warning: The macro `AC_DECL_SYS_SIGLIST' is obsolete".
3198         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3199         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3200         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check for sys_siglist
3201         ourselves; don't use AC_DECL_SYS_SIGLIST.
3203 2020-09-27  Bruno Haible  <bruno@clisp.org>
3205         Avoid "warning: The macro `_AC_COMPUTE_INT' is obsolete".
3206         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3207         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3208         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Use AC_COMPUTE_INT
3209         instead of _AC_COMPUTE_INT.
3211 2020-09-27  Bruno Haible  <bruno@clisp.org>
3213         Avoid "warning: The macro `AC_HEADER_STDC' is obsolete".
3214         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3215         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00154.html>.
3216         Based on a patch by Paul Eggert.
3217         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Don't require AC_HEADER_STDC. Don't
3218         test STDC_HEADERS. Assume <stdlib.h> exists.
3219         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
3221 2020-09-27  Bruno Haible  <bruno@clisp.org>
3223         Enable testing of prereleases of Autoconf 2.70.
3224         Suggested by Paul Eggert in
3225         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00160.html>.
3226         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Test for Autoconf >= 2.69c, not
3227         >= 2.70.
3228         * m4/largefile.m4 (AC_SYS_LARGEFILE): Likewise.
3229         * m4/pid_t.m4 (AC_TYPE_PID_T): Likewise.
3230         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Likewise.
3232 2020-09-27  Bruno Haible  <bruno@clisp.org>
3234         Avoid "warning: The macro `AC_PROG_CC_STDC' is obsolete".
3235         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3236         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3237         * m4/gnulib-common.m4 (gl_PROG_CC_C99): Use AC_PROG_CC_C99 or
3238         AC_PROG_CC, depending on the Autoconf version.
3240 2020-09-27  Gavin Smith  <gavinsmith0123@gmail.com>
3242         Avoid "warning: The macro `AC_HELP_STRING' is obsolete".
3243         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Use AS_HELP_STRING instead
3244         of AC_HELP_STRING.
3245         * m4/libgcrypt.m4 (AM_PATH_LIBGCRYPT): Likewise.
3247 2020-09-27  Bruno Haible  <bruno@clisp.org>
3249         Avoid "warning: $as_echo_n is obsolete" from autoconf 2.69c.
3250         Reported by Gavin Smith <gavinsmith0123@gmail.com> in
3251         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00151.html>.
3252         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): Use gl_SILENT.
3254 2020-09-27  Bruno Haible  <bruno@clisp.org>
3256         extensions: Simplify last commit.
3257         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't require
3258         AC_GNU_SOURCE ever.
3260 2020-09-26  Paul Eggert  <eggert@cs.ucla.edu>
3262         extensions: require AC_GNU_SOURCE only for <=2.63
3263         Problem reported by Gavin Smith in:
3264         https://lists.gnu.org/r/autoconf/2020-09/msg00012.html
3265         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS):
3266         Require AC_GNU_SOURCE only for Autoconf 2.63 and earlier, since it
3267         shouldn’t be needed after that, and Autoconf 2.70 complains about
3268         it being obsolete.
3270 2020-09-26  Bruno Haible  <bruno@clisp.org>
3272         regex-tests: Make test more robust.
3273         * tests/test-regex.c (main): Make sure to revert the locale to "C" after
3274         the test in "tr_TR.UTF-8" locale. Exit if we can't revert it.
3276 2020-09-25  Paul Eggert  <eggert@cs.ucla.edu>
3278         regex-tests: fix possible Turkish false-alarm
3279         * modules/regex-tests (Depends-on): Add wctype-h.
3280         * tests/test-regex.c: Include wctype.h.
3281         (main): Check that ‘i’ uppercases to ‘İ’ in Turkish,
3282         as the Turkish regex test assumes this.
3284         regex-tests: fix test and add debug output
3285         Perhaps this will fix the recent grep test failure reported at:
3286         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/199
3287         At least, the debug output should help narrow down the failure.
3288         * tests/test-regex.c: Include stdarg.h, stdio.h.
3289         (exit_status): New var.
3290         (report_error): New function.
3291         (main): Use it to report failures to stdout instead of merely
3292         exiting with some nonzero status.  The status info alone isn’t
3293         enough to do remote debugging.  In the new tr_TR.UTF-8 test, clear
3294         regex before calling re_compile_pattern, fixing a portability bug.
3296         regex: no longer match glibc
3297         * config/srclist.txt: Comment out regex_internal.c for now.
3299 2020-09-23  Paul Eggert  <eggert@cs.ucla.edu>
3301         regex: fix ignore-case Turkish bug
3302         * lib/regex_internal.c (build_wcs_upper_buffer):
3303         Do not assume that converting single-byte character to upper
3304         yields a single-byte character.  This is not true for Turkish,
3305         where towupper (L'i') yields L'İ', which is not single-byte.
3306         * tests/test-regex.c (main): Test for this bug.
3308         regex: port to weird isascii platforms
3309         * lib/regex_internal.h (isascii) [!_LIBC]: Supply glibc version.
3311 2020-09-20  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3313         dfa: make dfasupported a global function
3314         * lib/dfa.c (dfasupported): Rename, and make it global.
3315         Update caller.
3316         * lib/dfa.h (dfasupported): Add prototype.
3318 2020-09-20  Bruno Haible  <bruno@clisp.org>
3320         canonicalize: Add support for UNC file names on native Windows.
3321         Reported and initial patch by Vaclav Slavik <vaclav@slavik.io> in
3322         <https://savannah.gnu.org/bugs/?59079>.
3323         * lib/canonicalize.c (canonicalize_filename_mode): For UNC file names,
3324         extend the prefix to include the server.
3326 2020-09-20  Bruno Haible  <bruno@clisp.org>
3328         supersede: Fix test failures on native Windows.
3329         * lib/supersede.c (open_supersede): Handle non-regular files on native
3330         Windows like on Solaris.
3331         * tests/test-supersede-open.h (test_open_supersede): Use O_BINARY flag.
3333 2020-09-20  Paul Eggert  <eggert@cs.ucla.edu>
3335         test-stdalign: test Oracle Studio better
3336         * doc/posix-headers/stdalign.texi (stdalign.h):
3337         * tests/test-stdalign.c (main):
3338         Sun Studio Bug #2125432 seems to be fixed.
3340         c-stack: output diagnostic in single 'write'
3341         * lib/c-stack.c (die): In the typical case, use just one 'write'
3342         syscall to output the diagnostic, as this lessens interleaving.
3343         (die, c_stack_action): Assume C99.
3344         * modules/c-stack (Depends-on): Add c99, mempcpy.
3346         c-stack: improve checking if !libsigsegv
3347         If SIGINFO_WORKS, do not treat a null pointer dereference as if it
3348         were a stack overflow.  Use uintptr_t and INT_ADD_WRAPV to avoid
3349         unlikely pointer overflow.  Also, fix some obsolete code and typos.
3350         I found these problems while looking into this bug report:
3351         https://lists.gnu.org/r/grep-devel/2020-09/msg00053.html
3352         * lib/c-stack.c: Include c-stack.h first, to test interface.
3353         Include inttypes.h for UINTPTR_MAX, stdbool.h, stddef.h for
3354         max_align_t, intprops.h for INT_ADD_WRAPV.
3355         (USE_LIBSIGSEGV): New macro; use it to simplify later code.
3356         (SIGSTKSZ): Simplify setup.  Work around libsigsegv bug only
3357         for libsigsegv 2.8 and earlier since the bug should be fixed
3358         after that.
3359         (alternate_signal_stack): Use max_align_t instead of doing it by hand.
3360         (segv_handler, overflow_handler, segv_handler) [DEBUG]:
3361         Assume sprintf returns byte count; this assumption is safe now.
3362         (page_size): New static volatile variable, since sysconf isn’t
3363         documented to be async-signal-safe on Solaris.  This variable is
3364         present and used if (!USE_LIBSIGSEGV && HAVE_SIGALTSTACK &&
3365         HAVE_DECL_SIGALTSTACK && HAVE_STACK_OVERFLOW_HANDLING &&
3366         SIGINFO_WORKS).
3367         (segv_handler): Use it if present.  Never report null pointer
3368         dereference as a stack overflow.  Check for (unlikely) unsigned
3369         and/or pointer overflow.
3370         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
3371         Rename cache variables to gl_cv_sys_stack_overflow_works
3372         and gl_cv_sys_xsi_stack_overflow_heuristic.
3373         All uses changed.
3374         (gl_PREREQ_C_STACK): Do not require AC_FUNC_ALLOCA, since
3375         c-stack no longer uses STACK_DIRECTION.
3376         Do not check for unistd.h, since we depend on unistd.
3377         Fix shell typo ‘$"ac_cv_sys_xsi_stack_overflow_heuristic"’.
3378         * modules/c-stack (Depends-on): Sort.  Add intprops, inttypes,
3379         stdbool, stddef.
3381 2020-09-20  Bruno Haible  <bruno@clisp.org>
3383         Revert now-unnecessary override of config.guess on Alpine Linux 3.10.
3384         * m4/musl.m4: Revert 2020-09-19 patch.
3385         * m4/setlocale_null.m4: Likewise.
3386         * modules/setlocale-null: Likewise.
3388 2020-09-19  Ben Pfaff  <blp@cs.stanford.edu>
3389             Bruno Haible  <bruno@clisp.org>
3391         relocatable-prog: Fix for multiple relocatable library directories.
3392         * build-aux/reloc-ldflags: Fix handling of multiple relocatable library
3393         directories.  Each one needs its own -Wl,-rpath,$dir option, instead of
3394         being attached to a single one.
3396 2020-09-19  Jim Meyering  <meyering@fb.com>
3398         test-verify.c: avoid -Wshadow warnings
3399         * tests/test-verify.c (gx): Rename global from "x". Adjust use.
3400         (enum): Capitalize member names. Adjust uses.
3402 2020-09-19  Bruno Haible  <bruno@clisp.org>
3404         havelib: Avoid linking with libc.a on GNU systems.
3405         Reported by Bruce Dubbs <bruce.dubbs@gmail.com> in
3406         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00052.html>.
3407         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When processing the
3408         dependency_libs value of a .la file, ignore '-lc' options on GNU
3409         systems.
3411 2020-09-19  Bruno Haible  <bruno@clisp.org>
3413         Fix recognition of musl libc on Alpine Linux 3.10.
3414         Reported by Jeffrey Walton <noloader@gmail.com> in
3415         <https://lists.gnu.org/archive/html/grep-devel/2020-09/msg00020.html>.
3416         * m4/musl.m4 (gl_MUSL_CANONICAL_HOST): New macro.
3417         (gl_MUSL_LIBC): Require it.
3418         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Likewise.
3419         * modules/setlocale-null (Files): Add m4/musl.m4.
3421 2020-09-19  Bruno Haible  <bruno@clisp.org>
3423         nl_langinfo: Make multithread-safe on Solaris 10 and Solaris 11.3.
3424         Reported for Solaris 10 by Dagobert Michelsen via Paul Eggert in
3425         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00023.html>
3426         and for Solaris 11.3 by Jeffrey Walton <noloader@gmail.com> in
3427         <https://lists.gnu.org/archive/html/bug-grep/2020-06/msg00013.html>.
3428         * lib/nl_langinfo-lock.c: New file, based on lib/setlocale_null-lock.c.
3429         * lib/nl_langinfo.c: Include <stdlib.h> and <windows.h> or <pthread.h>
3430         or <threads.h>.
3431         (ITEMS, MAX_RESULT_LEN): New macros.
3432         (nl_langinfo_unlocked): New function.
3433         (gl_get_nl_langinfo_lock): New declaration.
3434         (nl_langinfo_with_lock): New function, based on lib/setlocale_null.c.
3435         (rpl_nl_langinfo): Use nl_langinfo_with_lock instead of nl_langinfo.
3436         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require gl_PTHREADLIB. Define
3437         HAVE_THREADS_H. Set NL_LANGINFO_MTSAFE. If setting it to 0, also set
3438         REPLACE_NL_LANGINFO.
3439         (gl_PREREQ_NL_LANGINFO_LOCK): New macro.
3440         * modules/nl_langinfo (Files): Add lib/nl_langinfo-lock.c,
3441         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
3442         (configure.ac): Compile nl_langinfo-lock.c when NL_LANGINFO_MTSAFE is 0.
3443         * doc/posix-functions/nl_langinfo.texi: Mention the Solaris bug.
3445 2020-09-18  Bruno Haible  <bruno@clisp.org>
3447         fsusage, getaddrinfo: Produce more regular configure output.
3448         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove AC_MSG_CHECKING without
3449         corresponding AC_MSG_RESULT.
3450         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
3452 2020-09-18  Bruno Haible  <bruno@clisp.org>
3454         Add back gl_SILENT.
3455         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): New macros.
3457 2020-09-18  Paul Eggert  <eggert@cs.ucla.edu>
3459         c-stack-tests: fix -fsanitize=undefined false alarm
3460         * tests/test-c-stack2.sh: Skip the test-harness self-test
3461         if ‘gcc -fsanitize=undefined’ is in use.
3463 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3465         signalblocking: simplify and remove gl_SILENT
3466         gl_SILENT was problematic because if a trap was sprung, stderr
3467         generated during the trap was lost.  Avoid the problem by
3468         removing the need for gl_SILENT.
3469         * m4/gnulib-common.m4 (GL_TMP_FD, gl_SILENT): Remove.
3470         * m4/signalblocking.m4 (gl_SIGNALBLOCKING):
3471         Simplify, avoiding the need for gl_SILENT while preserving the
3472         ability of the user to override the value of the cache variable,
3473         now ac_cv_func_sigprocmask.
3475 2020-09-17  Bruno Haible  <bruno@clisp.org>
3477         sigprocmask: Fix configuration failure on Solaris 10 (regr. 2020-07-25).
3478         * m4/gnulib-common.m4 (GL_TMP_FD): New macro.
3479         (gl_SILENT): Use 'exec', not a compound statement, to redirect
3480         AS_MESSAGE_FD.
3482 2020-09-17  Paul Eggert  <eggert@cs.ucla.edu>
3484         intprops, xalloc: avoid __builtin_mul_overflow_p with Clang
3485         Problem reported by Nelson H. F. Beebe for clang 9.0.1 in:
3486         https://lists.gnu.org/r/grep-devel/2020-09/msg00028.html
3487         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P) [__clang__]:
3488         Define to 0.
3489         * lib/xalloc-oversized.h (xalloc_oversized) [__clang__]:
3490         Do not use __builtin_mul_overflow_p.
3492         libc-config: port __THROW to Ubuntu 4
3493         * lib/cdefs.h (__THROW): Do not use __attribute__ ((__nothrow__))
3494         for GCC 3.3.  Problem reported by Jeffrey Walton in:
3495         https://lists.gnu.org/r/bug-gnulib/2019-07/msg00058.html
3496         The GCC 3.3.4 documentation says the attribute should work, but
3497         apparently it does not work on Ubuntu 4’s GCC 3.3.  There seems
3498         little point or desire to research this circa-2004 platform further,
3499         so just avoid the attribute there.
3501 2020-09-17  Jim Meyering  <meyering@fb.com>
3503         test-dfa-match.sh: port timeout work-around to newer Busybox
3504         * tests/test-dfa-match.sh: Update timeout -t portability test to
3505         accommodate Busybox 1.30.0 and newer.
3507 2020-09-16  Paul Eggert  <eggert@cs.ucla.edu>
3509         fnmatch: adjust to match glibc fix
3510         This fixes handling of collating symbols in fnmatch (glibc bug 26620).
3511         This does not affect Gnulib; it merely keeps Gnulib and glibc
3512         closer together, to help with any eventual merge, by incorporating
3513         a recent glibc patch.  The patch and the following commentary is
3514         by Andreas Schwab.
3515         * lib/fnmatch_loop.c (FCT) [WIDE_CHAR_VERSION]: The variable idx
3516         contains the index into the extra array, whereas wextra points
3517         into the extra array at this index, containing the length of the
3518         following collating sequence in the wide character representation.
3520 2020-09-16  Bruno Haible  <bruno@clisp.org>
3522         stat, fstat: Fix compilation error with old mingw headers.
3523         Reported by Eli Zaretskii <eliz@gnu.org> in
3524         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3525         * lib/stat-w32.c (VOLUME_NAME_NONE): Define if the Windows headers don't
3526         define it.
3528 2020-09-16  Bruno Haible  <bruno@clisp.org>
3530         stat, fstat: Fix when compiling for versions older than Windows Vista.
3531         Reported by Eli Zaretskii <eliz@gnu.org> in
3532         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00027.html>.
3533         * lib/stat-w32.c: Include <sdkddkver.h>. Test the value of _WIN32_WINNT
3534         that was originally set before we redefined it.
3535         * m4/stat.m4 (gl_PREREQ_STAT_W32): New macro.
3536         (gl_PREREQ_STAT): Require it.
3537         * m4/fstat.m4 (gl_PREREQ_FSTAT): Likewise.
3539 2020-09-15  Paul Eggert  <eggert@cs.ucla.edu>
3541         dfa: remove dfa-heap-overrun workaround
3542         * lib/dfa.c (reorder_tokens): Go back to a single pass that
3543         both sets map[*] and does other things.  This reverts
3544         2020-09-14T01:20:01Z!eggert@cs.ucla.edu, which is no longer
3545         neeeded now that 2020-09-14T13:21:05Z!noritnk@kcn.ne.jp
3546         fixed the underlying problem.
3548 2020-09-13  Paul Eggert  <eggert@cs.ucla.edu>
3550         dfa: avoid use of uninitialized constraint
3551         * lib/dfa.c (merge_nfa_state): Do not initialize the constraint
3552         to zero here.
3553         (dfaoptimize): Do it here instead, via xcalloc.  This prevents the
3554         use of an uninitialized constraint by later code when ! (flags[i]
3555         & OPT_QUEUED) means merge_nfa_state was not called to initialize
3556         the constraint.  Problem found by running 'valgrind src/grep -E
3557         '(^| )*(a|b)*(c|d)*( |$)' < /dev/null' on Ubuntu 18.04.5 x86-64.
3559         dfa: assume C99 in reorder_tokens
3560         * lib/dfa.c (reorder_tokens): Assume C99 and simplify.
3562         dfa: fix dfa-heap-overrun failure
3563         * lib/dfa.c (reorder_tokens): When setting
3564         map[d->follows[i].elems[j].index], instead of incorrectly assuming
3565         that (i < d->follows[i].elems[j].index), use two loops, one to set
3566         the map array and the other to use it.  The incorrect assumption
3567         caused some elements to be missed, and this in turn caused grep's
3568         dfa-heap-overrun test to fail on Solaris 10 sparc when compiled
3569         with GCC.  I found this bug while investigating
3570         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/183
3571         and I think the bug also occurs on GNU/Linux but with more-subtle
3572         symptoms.  The bug predates the recent dfa.c changes; perhaps the
3573         recent changes make the bug more likely.
3575 2020-09-13  Bruno Haible  <bruno@clisp.org>
3577         parse-datetime: Make the build rule work with parallel 'make'.
3578         Reported by Daiki Ueno <ueno@gnu.org> in
3579         <https://lists.gnu.org/archive/html/bug-gnulib/2020-09/msg00036.html>.
3580         * modules/parse-datetime (Makefile.am): Use a phony target and the
3581         general idiom for rules that produce multiple files.
3583 2020-09-13  Ben Pfaff  <blp@cs.stanford.edu>
3585         getpass: Check for nonnull prompt argument while avoiding warnings.
3586         * lib/getpass.c (_GL_ARG_NONNULL): Define to empty.
3587         (getpass) [!_WIN32]: Print prompt only if nonnull.
3589 2020-09-12  Paul Eggert  <eggert@cs.ucla.edu>
3591         dfa: epsilon-closure tweaks (Bug#40634)
3592         Rename BACKWORD to BACKWARD consistently.
3593         * lib/dfa.c (struct dfa): Reorder members to reduce fragmentation.
3594         (addtok_mb): Redo slightly to make it act more like a state machine.
3595         Check depth only when it increases.
3596         (epsclosure): Let the switch test the tokens.
3597         (dfaanalyze): Cache tindex.  Simplify position loops.
3598         Prefer xcalloc to xnmalloc + explicit zeroing.  Free BACKWARD
3599         only if it is not null, since we're testing that anyway.
3600         (dfaanalyze, build_state): Use merge2 instead of doing it by hand.
3602 2020-09-12  Norihiro Tanaka  <noritnk@kcn.ne.jp>
3604         dfa: use backward set in removal of epsilon closure
3605         When removing in epsilon closure, the code searched all nodes
3606         sequentially, and this was slow for some cases.  Build a backward
3607         set before search, and only check previous position with the set.
3608         Problem reported in <https://bugs.gnu.org/40634>.
3609         * lib/dfa.c (struct dfa): New member 'epsilon'.
3610         (addtok_mb): Check whether a pattern has epsilon node or not.
3611         (epsclosure): New arg BACKWORD; caller changed.  When removing
3612         epsilon node and reconnecting, check only previous positions.
3613         Treat BEG as if it were character.
3614         (dfaanalyze): Build backward set.
3616 2020-09-10  Paul Eggert  <eggert@cs.ucla.edu>
3618         canonicalize: fix pointer indexing bugs
3619         Problem reported by Florian Weimer in:
3620         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00025.html
3621         * lib/canonicalize-lgpl.c (__realpath):
3622         * lib/canonicalize.c (canonicalize_filename_mode):
3623         Do not generate a pointer past the end of the array.
3624         * lib/canonicalize.c (canonicalize_filename_mode):
3625         Do not use a pointer after passing it to realloc.
3627 2020-09-09  Paul Eggert  <eggert@cs.ucla.edu>
3629         tempname: help merge with glibc
3630         Inspired by draft patches by Adhemerval Zanella in:
3631         https://sourceware.org/pipermail/libc-alpha/2020-September/117501.html
3632         https://sourceware.org/pipermail/libc-alpha/2020-September/117502.html
3633         * lib/tempname.c: Include stdalign.h, time.h.
3634         If _LIBC, do not include random-bits.h.
3635         (__getrandom, __clock_gettime64, __timespec64) [!_LIBC]: New macros.
3636         (RANDOM_BITS): Remove, replacing with ...
3637         (random_bits): ... this new static function.  All uses changed.
3638         Add entropy each time if getrandom is not supported.
3639         (RANDOM_VALUE, BASE_62_DIGITS, BASE_62_POWER):
3640         Assume 64-bit support a la C99.
3641         (try_tempname_len): Take advantage of ASLR when initializing
3642         random value.
3643         * modules/tempname (Depends-on): Add clock-time, stdalign, time.
3645         getcwd: merge recent glibc changes
3646         * lib/getcwd.c (GETCWD_RETURN_TYPE) [!_LIBC]: New macro.
3647         (__getcwd, getcwd) [_LIBC && !GETCWD_RETURN_TYPE]: Add aliases.
3649 2020-09-06  Bruno Haible  <bruno@clisp.org>
3651         attribute: Clarify which file to include.
3652         * modules/attribute (Include): Add "attribute.h".
3654 2020-09-06  Bruno Haible  <bruno@clisp.org>
3656         pipe-filter-ii, pipe-filter-gi: Fix warnings on native Windows.
3657         * lib/pipe-filter-ii.c: Include <process.h>.
3658         * lib/pipe-filter-gi.c: Likewise.
3660 2020-09-05  Paul Eggert  <eggert@cs.ucla.edu>
3662         verify: avoid __builtin_assume
3663         Our latest attempt to use Clang’s __builtin_assume caused a crash
3664         in GNU Emacs that we spent quite some time tracking down as being
3665         caused by the switch to __builtin_assume.  It’s not known whether
3666         the crash is due is a Clang bug or a portability bug in GNU Emacs.
3667         For now, play it safe and avoid __builtin_assume.
3668         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): Remove.
3669         (assume): Simplify by not trying to use Clang’s __builtin_assume.
3671 2020-09-05  Bruno Haible  <bruno@clisp.org>
3673         Fix several "warning: no previous prototype for function".
3674         * modules/unicase/locale-language (Makefile.am): Add a 'static' keyword
3675         in front of the declaration of the lookup function in
3676         unicase/locale-languages.h.
3677         * modules/unictype/bidiclass-byname (Makefile.am): Likewise in
3678         unictype/bidi_byname.h.
3679         * modules/unictype/category-byname (Makefile.am): Likewise in
3680         unictype/categ_byname.h.
3681         * modules/unictype/combining-class-byname (Makefile.am): Likewise in
3682         unictype/combiningclass_byname.h.
3683         * modules/unictype/joininggroup-byname (Makefile.am): Likewise in
3684         unictype/joininggroup_byname.h.
3685         * modules/unictype/joiningtype-byname (Makefile.am): Likewise in
3686         unictype/joiningtype_byname.h.
3687         * modules/unictype/property-byname (Makefile.am): Likewise in
3688         unictype/pr_byname.h.
3689         * modules/unictype/scripts (Makefile.am): Likewise in
3690         unictype/scripts_byname.h.
3691         * modules/uninorm/composition (Makefile.am): Likewise in
3692         uninorm/composition-table.h.
3694 2020-09-05  Bruno Haible  <bruno@clisp.org>
3696         select: Fix "warning: no previous prototype for function".
3697         * lib/select.c: Include <sys/select.h>.
3699 2020-09-05  Bruno Haible  <bruno@clisp.org>
3701         Use module 'c99' when needed for variadic macros with '...' syntax.
3702         * modules/crypto/sm3 (Depends-on): Add c99.
3704 2020-09-05  Bruno Haible  <bruno@clisp.org>
3706         Use module 'c99' when needed for subobject initializer syntax.
3707         * modules/tempname (Depends-on): Add c99.
3708         * modules/nstrftime-tests (Depends-on): Likewise.
3710 2020-09-05  Bruno Haible  <bruno@clisp.org>
3712         Use module 'c99' when needed for declaration-after-statement syntax.
3713         * modules/backup-rename (Depends-on): Add c99.
3714         * modules/backupfile (Depends-on): Likewise.
3715         * modules/bitset-tests (Depends-on): Likewise.
3716         * modules/bitsetv (Depends-on): Likewise.
3717         * modules/c-strtod (Depends-on): Likewise.
3718         * modules/c-strtold (Depends-on): Likewise.
3719         * modules/clean-temp (Depends-on): Likewise.
3720         * modules/copy-file (Depends-on): Likewise.
3721         * modules/crypto/hmac-md5-tests (Depends-on): Likewise.
3722         * modules/crypto/hmac-sha1-tests (Depends-on): Likewise.
3723         * modules/crypto/hmac-sha256-tests (Depends-on): Likewise.
3724         * modules/crypto/hmac-sha512-tests (Depends-on): Likewise.
3725         * modules/crypto/md5-buffer (Depends-on): Likewise.
3726         * modules/crypto/md5-tests (Depends-on): Likewise.
3727         * modules/crypto/sha1-buffer (Depends-on): Likewise.
3728         * modules/crypto/sha1-tests (Depends-on): Likewise.
3729         * modules/crypto/sha256-buffer (Depends-on): Likewise.
3730         * modules/crypto/sha256-tests (Depends-on): Likewise.
3731         * modules/crypto/sha512-buffer (Depends-on): Likewise.
3732         * modules/crypto/sha512-tests (Depends-on): Likewise.
3733         * modules/diffseq (Depends-on): Likewise.
3734         * modules/fatal-signal (Depends-on): Likewise.
3735         * modules/fchmodat (Depends-on): Likewise.
3736         * modules/fstrcmp (Depends-on): Likewise.
3737         * modules/fsusage (Depends-on): Likewise.
3738         * modules/fts (Depends-on): Likewise.
3739         * modules/fts-tests (Depends-on): Likewise.
3740         * modules/getumask (Depends-on): Likewise.
3741         * modules/git-merge-changelog (Depends-on): Likewise.
3742         * modules/hash-map (Depends-on): Likewise.
3743         * modules/hash-set (Depends-on): Likewise.
3744         * modules/lchmod (Depends-on): Likewise.
3745         * modules/libgmp-tests (Depends-on): Likewise.
3746         * modules/libtextstyle-optional-tests (Depends-on): Likewise.
3747         * modules/linkedhash-map (Depends-on): Likewise.
3748         * modules/linkedhash-set (Depends-on): Likewise.
3749         * modules/long-options (Depends-on): Likewise.
3750         * modules/mbrtoc32 (Depends-on): Likewise.
3751         * modules/memchr2-tests (Depends-on): Likewise.
3752         * modules/memmem-tests (Depends-on): Likewise.
3753         * modules/memrchr-tests (Depends-on): Likewise.
3754         * modules/mktime-internal (Depends-on): Likewise.
3755         * modules/nstrftime (Depends-on): Likewise.
3756         * modules/opendirat (Depends-on): Likewise.
3757         * modules/parse-datetime (Depends-on): Likewise.
3758         * modules/quotearg-simple-tests (Depends-on): Likewise.
3759         * modules/same (Depends-on): Likewise.
3760         * modules/supersede (Depends-on): Likewise.
3761         * modules/supersede-tests (Depends-on): Likewise.
3762         * modules/time_rz (Depends-on): Likewise.
3763         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
3764         * modules/unistr/u32-chr-tests (Depends-on): Likewise.
3765         * modules/unistr/u8-chr-tests (Depends-on): Likewise.
3766         * modules/xalloc (Depends-on): Likewise.
3767         * modules/xnanosleep (Depends-on): Likewise.
3769 2020-09-05  Bruno Haible  <bruno@clisp.org>
3771         Fix "warning: array initialized from parenthesized string constant".
3772         * tests/test-memmem.c (main): Remove parentheses around string constant.
3773         * tests/test-c-strcasestr.c (main): Likewise.
3774         * tests/test-strcasestr.c (main): Likewise.
3776 2020-09-05  Bruno Haible  <bruno@clisp.org>
3778         argmatch tests: Fix ISO C compliance warning.
3779         * tests/test-argmatch.c: Omit semicolon after ARGMATCH_DEFINE_GROUP
3780         invocation.
3782 2020-09-05  Bruno Haible  <bruno@clisp.org>
3784         uniname/uniname: Fix -Wshadow warning.
3785         * lib/uniname/uniname.c (unicode_name_word): Don't declare i upfront.
3786         * modules/uniname/uniname (Depends-on): Add c99.
3788 2020-09-05  Bruno Haible  <bruno@clisp.org>
3790         uniname/uniname: Fix -Wshorten-64-to-32 warnings.
3791         * lib/uniname/uniname.c (unicode_name_word_lookup): Change type of last
3792         argument to size_t.
3793         (unicode_name_character): Change type of len, n1, n2, n3, words_length,
3794         n to size_t.
3796 2020-09-05  Bruno Haible  <bruno@clisp.org>
3798         unistr/u{8,16,32}-uctomb: Avoid possible trouble with huge strings.
3799         * lib/unistr.in.h (u8_uctomb_aux, u8_uctomb, u16_uctomb_aux, u16_uctomb,
3800         u32_uctomb): Change type of last argument to ptrdiff_t.
3801         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
3802         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
3803         * lib/unistr/u16-uctomb.c (u16_uctomb): Likewise.
3804         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise.
3805         * lib/unistr/u32-uctomb.c (u32_uctomb): Likewise.
3807 2020-09-01  Paul Eggert  <eggert@cs.ucla.edu>
3809         manywarnings: remove -Wchkp and -Wabi from C++ too
3810         Suggested by Reuben Thomas in:
3811         https://lists.gnu.org/r/bug-gnulib/2020-09/msg00001.html
3812         At some point somebody should merge the many other manywarnings-c.m4
3813         changes into manywarnings-c++.m4 too, e.g.,
3814         2020-07-02T00:00:51Z!eggert@cs.ucla.edu.
3815         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
3816         Remove -Wchkp, -Wabi.
3818 2020-08-30  Bruno Haible  <bruno@clisp.org>
3820         strerrorname_np: Add tests.
3821         * tests/test-strerrorname_np.c: New file.
3822         * modules/strerrorname_np-tests: New file.
3824         strerrorname_np: New module.
3825         * lib/string.in.h (strerrorname_np): New declaration.
3826         * lib/strerrorname_np.c: New file.
3827         * m4/strerrorname_np.m4: New file.
3828         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether strerrorname_np
3829         is declared.
3830         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERRORNAME_NP,
3831         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3832         * modules/string (Makefile.am): Substitute GNULIB_STRERRORNAME_NP,
3833         HAVE_STRERRORNAME_NP, REPLACE_STRERRORNAME_NP.
3834         * modules/strerrorname_np: New file.
3835         * tests/test-string-c++.cc: Verify the signature of strerrorname_np.
3836         * doc/glibc-functions/strerrorname_np.texi: Mention the new module and
3837         the glibc 2.32 bug.
3839 2020-08-27  Paul Eggert  <eggert@cs.ucla.edu>
3841         perror, strerror_r: remove unportable tests
3842         Problem reported by Florian Weimer in:
3843         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00220.html
3844         * tests/test-perror2.c (main):
3845         * tests/test-strerror_r.c (main): Omit unportable tests.
3847 2020-08-26  Bruno Haible  <bruno@clisp.org>
3849         stdint, wchar, wctype-h: Change configure message.
3850         * m4/wint_t.m4 (gt_TYPE_WINT_T): Say "checking whether wint_t is large
3851         enough..." instead of "checking whether wint_t is too small...".
3853 2020-08-26  Bruno Haible  <bruno@clisp.org>
3855         time_rz: Change configure message.
3856         * m4/time_rz.m4 (gl_TIME_RZ): Say "checking whether localtime works even
3857         near extrema..." instead of "checking whether localtime loops forever
3858         near extrema...".
3860 2020-08-26  Bruno Haible  <bruno@clisp.org>
3862         stdint: Change configure message.
3863         * m4/stdint.m4 (gl_STDINT_H): Say "checking whether stdint.h works
3864         without ISO C predefines..." instead of "checking whether stdint.h
3865         predates C++11...".
3867 2020-08-26  Bruno Haible  <bruno@clisp.org>
3869         socketlib: Change configure message.
3870         * m4/socketlib.m4 (gl_SOCKETLIB): Say "checking for WSAStartup..."
3871         instead of "checking if we need to call WSAStartup in winsock2.h and
3872         -lws2_32...".
3874 2020-08-26  Bruno Haible  <bruno@clisp.org>
3876         include_next: Change configure message.
3877         * m4/include_next.m4 (gl_INCLUDE_NEXT): Say "checking whether source
3878         code line length is unlimited..." instead of "checking whether system
3879         header files limit the line length...".
3881 2020-08-26  Bruno Haible  <bruno@clisp.org>
3883         getcwd: Change configure message.
3884         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Say "checking
3885         whether getcwd succeeds when 4k < cwd_length < 16k..." instead of
3886         "checking whether getcwd aborts when 4k < cwd_length < 16k...".
3888 2020-08-26  Bruno Haible  <bruno@clisp.org>
3890         chdir-long: Change configure message.
3891         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Say "checking whether this
3892         system supports file names of any length..." instead of "checking
3893         whether this system has an arbitrary file name length limit...".
3894         Set gl_cv_have_unlimited_file_name_length instead of
3895         gl_cv_have_arbitrary_file_name_length_limit.
3896         * modules/chdir-long (Depends-on, configure.ac): Update accordingly.
3898 2020-08-26  Bruno Haible  <bruno@clisp.org>
3900         ceill: Change configure message.
3901         * m4/ceill.m4 (gl_FUNC_CEILL): Say "checking whether ceill() works..."
3902         instead of "checking whether ceill() breaks with small values...".
3904 2020-08-26  Bruno Haible  <bruno@clisp.org>
3906         iconv: Change configure message.
3907         * m4/iconv.m4 (AM_ICONV): Say "checking whether iconv is compatible
3908         with its POSIX signature..." instead of "checking for iconv
3909         declaration...". Remove K&R C support.
3911 2020-08-26  Paul Eggert  <eggert@cs.ucla.edu>
3913         getcwd: help the merge back into glibc
3914         This patch was inspired by Adhemerval Zanella’s proposed glibc patches:
3915         https://sourceware.org/pipermail/libc-alpha/2020-August/117294.html
3916         The idea is to make it easier for Gnulib lib/getcwd.c to match
3917         glibc io/getcwd-generic.c.
3918         * lib/getcwd.c [_LIBC]: Do not include pathmax.h.
3919         Include not-cancel.h.
3920         (HAVE_OPENAT, D_INO_IN_DIRENT, HAVE_MSVC_INVALID_PARAMETER_HANDLER)
3921         (HAVE_MINIMALLY_WORKING_GETCWD): Define for the _LIBC case.
3922         (__getcwd, __lstat, __readdir) [!_LIBC]: Remove these macros.
3923         (__close_nocancel_nostatus, __getcwd_generic, stat64, __fstat64)
3924         (__fstatat64, __lstat64, __readdir64, __fdopendir, __openat)
3925         (__rewinddir, __openat64, dirent64) [_LIBC]: New macros.
3926         (__getcwd_generic): Rename from __getcwd.
3927         Use the abovementioned macros for consistency with glibc.
3928         (weak_alias): Remove.
3930 2020-08-25  Bruno Haible  <bruno@clisp.org>
3932         verify: Avoid warnings when assume(0) is used.
3933         Reported by Mattias Engdegård <mattiase@acm.org> via Paul Eggert in
3934         <https://lists.gnu.org/archive/html/emacs-devel/2020-08/msg00838.html>.
3935         * lib/verify.h (assume): Use __builtin_unreachable if the argument is
3936         the constant 0.
3937         * tests/test-verify.c (f): New function.
3938         (state): New type.
3939         (test_assume_expressions, test_assume_optimization,
3940         test_assume_noreturn): New functions.
3942 2020-08-25  Bruno Haible  <bruno@clisp.org>
3944         fstrcmp: Clarification regarding NOTE_ORDERED.
3945         * lib/fstrcmp.c (NOTE_ORDERED): Define to false.
3947 2020-08-24  Paul Eggert  <eggert@cs.ucla.edu>
3949         diffseq: new option NOTE_ORDERED
3950         Problem reported by Phil Sainty <https://bugs.gnu.org/42931>.
3951         * NEWS: Mention this.
3952         * lib/diffseq.h (NOTE_ORDERED): New macro.
3953         (IF_LINT2): Remove; no longer needed.
3954         (compareseq): If (!NOTE_ORDERED), recurse on the smaller
3955         subproblem and iterate to do the larger.
3957 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3959         sys_types: let Autoconf 2.70 do pid_t
3960         * m4/pid_t.m4 (AC_TYPE_PID_T): Redefine this Autoconf macro
3961         only for Autoconf versions 2.69 and earlier, since 2.70
3962         will be fixed.
3964 2020-08-23  Bruno Haible  <bruno@clisp.org>
3966         tests: Don't assume that pid_t fits in an 'int'.
3967         * tests/test-nonblocking-pipe-main.c (main): Use type 'pid_t' instead
3968         of 'int'.
3969         * tests/test-nonblocking-socket-main.c (main): Likewise.
3971         sys_types: Fix definition of pid_t on 64-bit MSVC.
3972         * m4/pid_t.m4: New file.
3973         * modules/sys_types (Files): Add it.
3974         * modules/dirent (Files): Likewise.
3975         * modules/fcntl-h (Files): Likewise.
3976         * modules/sched (Files): Likewise.
3977         * modules/signal-h (Files): Likewise.
3978         * modules/spawn (Files): Likewise.
3979         * modules/sys_stat (Files): Likewise.
3980         * modules/sys_wait (Files): Likewise.
3981         * modules/termios (Files): Likewise.
3982         * modules/unistd (Files): Likewise.
3984 2020-08-23  Bruno Haible  <bruno@clisp.org>
3986         inttypes: Fix {PRI,SCN}*PTR on 32-bit native Windows (regr. 2020-07-21).
3987         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Fix syntax error in test
3988         program.
3990 2020-08-23  Paul Eggert  <eggert@cs.ucla.edu>
3992         intprops: be consistent about +X vs X+0
3993         * lib/intprops.h (_GL_SIGNED_INT_MAXIMUM): Simplify.
3995         intprops: fix INT_MULTIPLY_WRAPV bit-field bug
3996         The bug occurs when using INT_MULTIPLY_WRAPV (a, b, c) where B
3997         is a bit-field, on older GCC or non-GCC compilers where we do
3998         things ourselves instead of using __builtin_mul_overflow.
3999         Without this fix, INT_MULTIPLY_WRAPV would not compile, due
4000         to applying sizeof to a bit-field.
4001         * lib/intprops.h (_GL_INT_MULTIPLY_RANGE_OVERFLOW):
4002         Promote B before giving it to TYPE_WIDTH, in case B is a bit-field.
4004 2020-08-23  Bruno Haible  <bruno@clisp.org>
4006         supersede: Avoid a failure when writing to /dev/null in Solaris zones.
4007         Reported by Jörg Sonnenberger <joerg@netbsd.org>
4008         via Thomas Klausner <tk@giga.or.at> in
4009         <https://pkgsrc.se/files.php?messageId=20200812233110.30230FB28@cvs.NetBSD.org>.
4010         * lib/supersede.c (open_supersede): When opening an existing non-regular
4011         file on Solaris, use O_CREAT although it should not be necessary.
4013 2020-08-23  Bruno Haible  <bruno@clisp.org>
4015         verify: Make assume work on bit field expressions (regr. 2020-08-22).
4016         Reported by Benno Schulenberg <bensberg@telfort.nl> in
4017         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00202.html>.
4018         * lib/verify.h (assume): Use '_Bool' or 'bool' as type of the temporary
4019         variable.
4021 2020-08-23  Bruno Haible  <bruno@clisp.org>
4023         libc-config: Improve comments.
4024         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Explain why we
4025         cannot use clang's __diagnose_if__ here.
4027 2020-08-22  Bruno Haible  <bruno@clisp.org>
4029         verify: Do use __builtin_assume on clang.
4030         * lib/verify.h (assume): Use clang’s __builtin_assume, with a temporary
4031         variable in a statement expression.
4033 2020-08-22  Bruno Haible  <bruno@clisp.org>
4035         sig2str: Add more signals.
4036         * lib/sig2str.c (numname_table): Add SIGCPUFAIL, SIGTHR, SIGBREAK.
4038 2020-08-22  Bruno Haible  <bruno@clisp.org>
4040         doc: Update for OpenBSD 6.0, 6.7.
4041         * doc/*/*.texi: Update.
4042         * m4/printf.m4: Update comments and cross-compilation guesses.
4043         * m4/ceill.m4: Update comments.
4044         * m4/getcwd-abort-bug.m4: Likewise.
4045         * m4/ilogb.m4: Likewise.
4046         * m4/ilogbf.m4: Likewise.
4047         * m4/langinfo_h.m4: Likewise.
4048         * m4/modf.m4: Likewise.
4049         * m4/modff.m4: Likewise.
4051 2020-08-22  Bruno Haible  <bruno@clisp.org>
4053         doc: Mention sig2str module.
4054         * doc/glibc-functions/sigabbrev_np.texi: Mention the sig2str module.
4056 2020-08-21  Bruno Haible  <bruno@clisp.org>
4058         sigdescr_np: Add tests.
4059         * tests/test-sigdescr_np.c: New file.
4060         * modules/sigdescr_np-tests: New file.
4062         sigdescr_np: New module.
4063         * lib/string.in.h (sigdescr_np): New declaration.
4064         * lib/sigdescr_np.c: New file.
4065         * m4/sigdescr_np.m4: New file.
4066         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigdescr_np is
4067         declared.
4068         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGDESCR_NP,
4069         HAVE_SIGDESCR_NP.
4070         * modules/string (Makefile.am): Substitute GNULIB_SIGDESCR_NP,
4071         HAVE_SIGDESCR_NP.
4072         * modules/sigdescr_np: New file.
4073         * tests/test-string-c++.cc: Verify the signature of sigdescr_np.
4074         * doc/glibc-functions/sigdescr_np.texi: Mention the new module.
4076 2020-08-20  Bruno Haible  <bruno@clisp.org>
4078         sigabbrev_np: Add tests.
4079         * tests/test-sigabbrev_np.c: New file.
4080         * modules/sigabbrev_np-tests: New file.
4082         sigabbrev_np: New module.
4083         * lib/string.in.h (sigabbrev_np): New declaration.
4084         * lib/sigabbrev_np.c: New file.
4085         * m4/sigabbrev_np.m4: New file.
4086         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Test whether sigabbrev_np is
4087         declared.
4088         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_SIGABBREV_NP,
4089         HAVE_SIGABBREV_NP.
4090         * modules/string (Makefile.am): Substitute GNULIB_SIGABBREV_NP,
4091         HAVE_SIGABBREV_NP.
4092         * modules/sigabbrev_np: New file.
4093         * tests/test-string-c++.cc: Verify the signature of sigabbrev_np.
4094         * doc/glibc-functions/sigabbrev_np.texi: Mention the new module.
4096 2020-08-20  Bruno Haible  <bruno@clisp.org>
4098         stdalign tests: Skip test with AIX xlclang.
4099         * tests/test-stdalign.c (main): Skip alignas tests with AIX xlclang.
4101 2020-08-20  Bruno Haible  <bruno@clisp.org>
4103         stdalign: Fix test failures on 32-bit platforms with clang versions < 8.
4104         * lib/stdalign.in.h (_Alignof): For clang versions < 8, use the same
4105         workaround as for GCC versions < 4.9.
4107 2020-08-20  Siddhesh Poyarekar  <siddhesh@gotplt.org>
4109         Sync up ProjectQuirks comments and documentation
4110         Transform the ProjectQuirks comments into a docstring so that it can
4111         be accessed from python as ProjectQuirks.__doc__ and harmonize
4112         descriptions with the documentation.
4113         * build-aux/vcstocl/projectquirks.py (ProjectQuirks):
4114         Transform comments into a docstring.
4115         * doc/vcs-to-changelog.texi: Sync up description with comments.
4117         Split ProjectQuirks out into its own file
4118         ProjectQuirks is used by external quirks files and importing it from
4119         vcs-to-changelog.py is broken since it was renamed to use hyphens.  It
4120         is cleaner to put it in its own file anyway.
4121         * build-aux/vcstocl/projectquirks.py: A new file...
4122         * build-aux/vcs-to-changelog.py (ProjectQuirks): ...to which
4123         we move ProjectQuirks and import the file.
4125 2020-08-19  Bruno Haible  <bruno@clisp.org>
4127         uchar: Fix compilation errors in C++ mode on macOS.
4128         * m4/uchar.m4 (gl_UCHAR_H): Require gl_ANSI_CXX if present. Include some
4129         system header file before attempting to use 'char16_t' and 'char32_t'.
4131 2020-08-19  Bruno Haible  <bruno@clisp.org>
4133         ansi-c++-opt: Work around an autoconf macro reordering problem.
4134         * modules/ansi-c++-opt: Require gl_ANSI_CXX already in the early
4135         section.
4137 2020-08-19  Bruno Haible  <bruno@clisp.org>
4139         math C++ tests: Fix compilation error in with GCC 10.
4140         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
4141         hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder, rint,
4142         round, trunc): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
4144 2020-08-19  Bruno Haible  <bruno@clisp.org>
4146         uchar: Fix compilation errors in C++ mode on OpenBSD.
4147         * lib/uchar.in.h (char16_t, char32_t): Don't define in C++ mode if
4148         CXX_HAS_UCHAR_TYPES is 1.
4149         * m4/uchar.m4 (gl_UCHAR_H): Determine whether the C++ compiler
4150         predefines char16_t and char32_t. Substitute CXX_HAS_UCHAR_TYPES.
4151         * modules/uchar (Makefile.am): Substitute CXX_HAS_UCHAR_TYPES.
4153 2020-08-19  Bruno Haible  <bruno@clisp.org>
4155         Fix compilation errors in C++ mode on OpenBSD.
4156         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on
4157         OpenBSD with clang, use the approach without C preprocessor macro.
4159 2020-08-18  Bruno Haible  <bruno@clisp.org>
4161         uchar C++ tests: Fix side effect on math modules (regr. 2020-08-17).
4162         * modules/uchar-c++-tests (configure.ac): Don't use AC_LANG_PUSH and
4163         AC_LANG_POP.
4165 2020-08-17  Paul Eggert  <eggert@cs.ucla.edu>
4167         verify: avoid __built_assume on Clang
4168         * lib/verify.h (assume): Do not use Clang’s __builtin_assume, as
4169         Clang 9 incorrectly diagnoses arguments as having side effects
4170         even when they do not.  I guess Clang 9 considers any function
4171         call as if it had a side effect here.
4173         libc-config: avoid Clang’s __diagnose_if__
4174         * lib/cdefs.h (__warndecl, __warnattr, __errordecl):
4175         For now, do not use __diagnose_if__ here, as this fails
4176         on Fedora 31 with Clang 9.0.1, with diagnostic
4177         "/usr/include/bits/stdio2.h:263:9: error: fgets called with bigger
4178         size than length of destination buffer
4179         [-Werror,-Wuser-defined-warnings]".  I guess Clang 9 warns even
4180         for functions that are not called?
4182         careadlinkat: speedup for GCC 10 with GCC_LINT
4183         Inspired by a suggestion by Bruno Haible in:
4184         https://lists.gnu.org/r/bug-gnulib/2020-08/msg00155.html
4185         * lib/careadlinkat.c (STACK_BUF_SIZE): New constant.
4186         (readlink_stk): New function, with most of the old careadlinkat
4187         contents and with a new STACK_BUF arg.  Inline it in GCC 10
4188         if GCC_LINT.
4189         (careadlinkat): Use the new function for everything but the
4190         stack buffer.
4192         * build-aux/gcc-warning.spec: Update comments.
4194 2020-08-17  Bruno Haible  <bruno@clisp.org>
4196         Assume autoconf >= 2.64.
4197         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO_LIMIT always.
4199 2020-08-17  Bruno Haible  <bruno@clisp.org>
4201         Revert autoupdate's revert.
4202         * config/srclist.txt: Mark regcomp.c as needing sync with glibc.
4204 2020-08-17  Bruno Haible  <bruno@clisp.org>
4206         uchar C++ tests: Fix build error on FreeBSD 12.
4207         * modules/uchar-c++-tests (configure.ac): Test whether <cuchar> exists.
4208         (Makefile.am): Don't include test-uchar-c++2.cc in the compilation if
4209         <cuchar> does not exist.
4211 2020-08-16  Paul Eggert  <eggert@cs.ucla.edu>
4213         time_rz: remove unused functions
4214         * lib/time_rz.c (isdst_differ, equal_tm): Remove; no longer used.
4216         time_rz: fix issues with mktime_z failures
4217         * lib/time_rz.c (mktime_z): Do not update *TM if revert_tz fails.
4218         Use a cheaper tm_yday test for failed mktime.
4220 2020-08-16  Bruno Haible  <bruno@clisp.org>
4222         intprops test: Strengthen on clang.
4223         * tests/test-intprops.c (VERIFY): Use verify_stmt.
4225 2020-08-16  Bruno Haible  <bruno@clisp.org>
4227         nstrftime: Guide inlining also on clang.
4228         * lib/nstrftime.c (iso_week_days): Inline also on clang.
4230 2020-08-16  Bruno Haible  <bruno@clisp.org>
4232         intprops: Avoid bogus "warning: division by zero is undefined" on clang.
4233         * lib/intprops.h (_GL__GENERIC_BOGUS): Define to 1 on clang.
4235 2020-08-16  Bruno Haible  <bruno@clisp.org>
4237         log2l: Disable MSVC workaround on clang.
4238         * lib/log2l.c (log2l): On clang, use the expression 0.0L/0.0L.
4240 2020-08-16  Bruno Haible  <bruno@clisp.org>
4242         argp: Emit a warning also with clang.
4243         * lib/argp-help.c (__argp_short_program_name): Use #warning also on
4244         clang.
4246 2020-08-16  Bruno Haible  <bruno@clisp.org>
4248         libc-config: Enable __REDIRECT macro also on clang.
4249         * lib/cdefs.h (__REDIRECT, __REDIRECT_NTH, __REDIRECT_NTHNL, __ASMNAME,
4250         __ASMNAME2): Define on clang like on GCC.
4252 2020-08-16  Bruno Haible  <bruno@clisp.org>
4254         regex: Use initializer shorthand syntax also with clang.
4255         * lib/regcomp.c (utf8_sb_map): Use the initializer shorthand syntax also
4256         with clang.
4258 2020-08-16  Bruno Haible  <bruno@clisp.org>
4260         regex: Use space optimization also with clang.
4261         * lib/regex_internal.h (re_token_t): Use a single byte for the type also
4262         with clang.
4264 2020-08-16  Bruno Haible  <bruno@clisp.org>
4266         Use _Static_assert and static_assert primitives when present on clang.
4267         * lib/cdefs.h (_Static_assert): Don't define as a macro on clang.
4268         * lib/verify.h (_GL_HAVE__STATIC_ASSERT, _GL_HAVE__STATIC_ASSERT1,
4269         _GL_HAVE_STATIC_ASSERT1): Define as appropriate on clang.
4271 2020-08-16  Bruno Haible  <bruno@clisp.org>
4273         Use 'throw ()' for optimization in C++ mode also on clang.
4274         * lib/cdefs.h (__THROW): Define to 'throw ()' also on clang.
4275         * lib/getopt-cdefs.in.h (__THROW): Likewise.
4276         * lib/md5.h (__THROW): Likewise.
4278 2020-08-16  Bruno Haible  <bruno@clisp.org>
4280         absolute-header: Add support for clang.
4281         * modules/absolute-header (Makefile.am): Include '__clang__' in the
4282         HAVE_INCLUDE_NEXT expression.
4284 2020-08-16  Bruno Haible  <bruno@clisp.org>
4286         Fix "warning: implicitly declaring library function 'strcasecmp'".
4287         * lib/argp-help.c: Include <strings.h>.
4289 2020-08-16  Bruno Haible  <bruno@clisp.org>
4291         stdio: Don't break attribute 'scanf' on clang.
4292         * lib/stdio.in.h (scanf): Treat clang like GCC.
4294 2020-08-16  Bruno Haible  <bruno@clisp.org>
4296         Use __restrict also on clang.
4297         * lib/argp.h (__restrict): Don't define as a macro on clang >= 3.
4298         * lib/glob.in.h (_Restrict_): Use __restrict on clang >= 3.
4299         * lib/unitypes.in.h (_UC_RESTRICT): Likewise.
4301 2020-08-16  Bruno Haible  <bruno@clisp.org>
4303         pthread-spin: Use GCC built-ins also on clang.
4304         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
4305         pthread_spin_trylock, pthread_spin_unlock): Use the newer GCC built-ins
4306         also on clang.
4308 2020-08-16  Bruno Haible  <bruno@clisp.org>
4310         asyncsafe-spin tests: Update.
4311         * tests/test-asyncsafe-spin2.c: Update to match the change in
4312         lib/asyncsafe-spin.c from 2020-08-11.
4314 2020-08-16  Bruno Haible  <bruno@clisp.org>
4316         setenv: Use tree code also with clang.
4317         * lib/setenv.c (USE_TSEARCH): Treat clang like GCC.
4319 2020-08-16  Bruno Haible  <bruno@clisp.org>
4321         math: Optimize signbit also on clang.
4322         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Optimize also
4323         on clang.
4325 2020-08-16  Bruno Haible  <bruno@clisp.org>
4327         avltreehash-list, rbtreehash-list: Optimize also on clang.
4328         * lib/gl_anytreehash_list1.h (add_nodes_to_buckets): Use
4329         __builtin_expect also on clang.
4331 2020-08-16  Bruno Haible  <bruno@clisp.org>
4333         Fix "warning: 'WSASocketA' is deprecated: Use WSASocketW() instead".
4334         * lib/socket.c: Use WSASocketW, not WSASocketA.
4336         Fix "warning: format specifies type 'unsigned long'".
4337         * tests/test-nonblocking-writer.h (main_writer_loop): Cast dbgfprintf
4338         argument to match the format directive.
4340         Fix "warning: no case matching constant switch condition '0'".
4341         * tests/test-fcntl.c (check_flags): Add a 'default' case.
4343         Fix "warning: integer overflow in expression".
4344         * tests/test-strtol.c (main): Use an 'unsigned long' expression to
4345         remove a 'long' overflow.
4347         Fix "warning: "getpagesize" redefined".
4348         * tests/test-getcwd.c (getpagesize): Don't redefine if defined as a
4349         macro.
4351         Fix "warning: implicitly declaring library function 'strncasecmp'".
4352         * lib/strptime.c: Include <strings.h>.
4354         Fix "warning: 'snprintf' macro redefined".
4355         * lib/strerror_r.c (snprintf): Undefine before redefining.
4357         Fix "warning: address of array 'locale' will always evaluate to 'true'".
4358         * lib/nl_langinfo.c (ctype_codeset): Remove redundant NULL test.
4360         Fix "warning: '__stat64' macro redefined".
4361         * lib/glob.c (__stat64): Undefine also on MSVC/clang.
4363         Fix "warning: 'format' attribute argument not supported: rpl_printf".
4364         * lib/stdio.in.h (printf): Treat clang like GCC.
4366         Fix "warning: attribute declaration must precede definition" with clang.
4367         * lib/math.in.h (acosl, asinl, atanl, ceill, cosl, expl, fabsf, fabsl,
4368         floorl, fmodl, frexpf, frexpl, hypotf, hypotl, ldexpf, ldexpl, logl,
4369         log10l, modfl, sinl, sqrtl, tanl): Disable _GL_CXXALIASWARN invocation
4370         on non-glibc systems.
4371         * lib/netdb.in.h (gai_strerror): Likewise.
4372         * lib/stdio.in.h (snprintf, vfscanf, vscanf, vsnprintf): Likewise.
4373         * lib/sys_stat.in.h (fstat): Likewise.
4374         * lib/utime.in.h (utime): Likewise.
4376         Fix undesired warnings.
4377         * lib/sys_select.in.h: Disable all _GL_WARN_ON_USE invocations with
4378         clang.
4380 2020-08-16  Bruno Haible  <bruno@clisp.org>
4382         C++ tests: Fix link errors on MSVC (regression from 2020-05-31).
4383         * modules/stdio-c++-tests (Makefile.am): Link test-stdio-c++ with
4384         $(LIB_GETRANDOM), needed for the rpl_tmpfile symbol.
4385         * modules/stdlib-c++-tests (Makefile.am): Link test-stdlib-c++ with
4386         $(LIB_GETRANDOM), needed for the mkdtemp and mkstemp symbols.
4388 2020-08-16  Bruno Haible  <bruno@clisp.org>
4390         Don't use Autoconf quadrigraphs.
4391         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Use '#' instead of the corresponding
4392         Autoconf quadrigraph.
4393         * m4/free.m4 (gl_FUNC_FREE): Likewise.
4394         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
4395         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES,
4396         _AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
4397         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
4398         * m4/math_h.m4 (gl_MATH_H): Likewise.
4399         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4401 2020-08-16  Bruno Haible  <bruno@clisp.org>
4403         Fix quoting of AC_LANG_PROGRAM arguments.
4404         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Quote the AC_LANG_PROGRAM
4405         arguments through [[...]].
4406         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
4407         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
4408         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
4409         * m4/ld-output-def.m4 (gl_LD_OUTPUT_DEF): Likewise.
4410         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Likewise.
4411         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4412         * m4/mountlist.m4 (gl_MOUNTLIST): Likewise.
4413         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
4414         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
4415         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4416         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4417         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Likewise.
4418         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
4420 2020-08-16  Bruno Haible  <bruno@clisp.org>
4422         Assume autoconf >= 2.64.
4423         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Set to 2.64.
4424         * DEPENDENCIES: Require Autoconf 2.64 or newer.
4425         * NEWS: Mention the changed requirement.
4426         * m4/00gnulib.m4 (_m4_divert_diversion, AC_DEFUN_ONCE): Remove macros.
4427         * m4/gnulib-common.m4 (AS_VAR_IF, AS_VAR_COPY): Remove macros.
4428         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Quote pushdef'ed
4429         variables.
4430         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
4431         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Likewise.
4432         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Likewise.
4433         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C), gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++),
4434         gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): Define through AC_DEFUN.
4435         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C), gl_MANYWARN_ALL_GCC(C++)):
4436         Likewise.
4437         * m4/iconv.m4 (AM_ICONV): Define through AC_DEFUN_ONCE directly.
4438         * m4/libunistring.m4 (gl_LIBUNISTRING): Likewise.
4439         * m4/configmake.m4: Update comment.
4441 2020-08-16  Bruno Haible  <bruno@clisp.org>
4443         sys_ioctl: Simplify.
4444         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Remove confusing use of
4445         AC_INCLUDES_DEFAULT.
4447 2020-08-16  Bruno Haible  <bruno@clisp.org>
4449         Fix quoting of AC_LANG_SOURCE arguments.
4450         * m4/printf.m4 (gl_PRINTF_ENOMEM): Fix an m4 quoting bug in the
4451         GL_NOCRASH expansion.
4452         * m4/locale-ar.m4 (gt_LOCALE_AR): Simplify m4 quoting.
4453         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
4454         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
4455         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
4456         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
4458 2020-08-15  Paul Eggert  <eggert@cs.ucla.edu>
4460         nstrftime: be more predictable about errno
4461         This aligns nstrftime better with draft POSIX 202x strftime.
4462         * lib/nstrftime.c: Include errno.h.
4463         (width_add, __strftime_internal): Set errno on failure,
4464         and preserve it on success.  Check for mktime_z failure.
4465         * modules/nstrftime (Depends-on): Add errno.
4466         * modules/nstrftime-tests (Depends-on): Add atoll, intprops.
4467         * tests/test-nstrftime.c: Include intprops.h, limits.h.
4468         (errno_test): New test function.
4469         (main): Call it.
4471 2020-08-15  Bruno Haible  <bruno@clisp.org>
4473         canonicalize: Fix a problem of the autoconf test on MSVC/clang.
4474         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Remove undesired file
4475         from dependency analysis first.
4477 2020-08-15  Bruno Haible  <bruno@clisp.org>
4479         Determine asm output option and filename suffix for MSVC/clang.
4480         * m4/asm-underscore.m4 (gl_C_ASM): Distinguish clang from cl and
4481         clang-cl.
4483 2020-08-15  Bruno Haible  <bruno@clisp.org>
4485         doc: Update for MSVC/clang.
4486         * doc/*-functions/*printf.texi: Mention that MSVC/clang has two bugs
4487         that MSVC 14 does not have.
4489 2020-08-15  Bruno Haible  <bruno@clisp.org>
4491         Revert autoupdate's revert.
4492         * config/srclist.txt: Mark mktime.c as needing sync with glibc.
4494 2020-08-15  Bruno Haible  <bruno@clisp.org>
4496         frexpl: Fix configuration test result on MSVC.
4497         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Avoid a division by a constant
4498         zero.
4500 2020-08-15  Bruno Haible  <bruno@clisp.org>
4502         Support compiling without -loldnames on native Windows.
4503         * m4/gnulib-common.m4 (GL_MDA_DEFINES, _GL_MDA_DEFINES): New macros.
4504         * m4/chown.m4 (AC_FUNC_CHOWN): In the test programs, use GL_MDA_DEFINES.
4505         (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
4506         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
4507         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
4508         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
4509         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Likewise.
4510         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Likewise.
4511         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
4512         * m4/fcntl.m4 (gl_FUNC_FCNTL): Likewise.
4513         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
4514         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
4515         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
4516         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): Likewise.
4517         * m4/freopen.m4 (gl_FUNC_FREOPEN): Likewise.
4518         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
4519         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
4520         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4521         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL, gl_FUNC_GETCWD_SIGNATURE):
4522         Likewise.
4523         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Likewise.
4524         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
4525         * m4/lseek.m4 (gl_FUNC_LSEEK): Likewise.
4526         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
4527         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
4528         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
4529         * m4/open-slash.m4 (gl_OPEN_TRAILING_SLASH_BUG): Likewise.
4530         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
4531         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
4532         * m4/pread.m4 (gl_FUNC_PREAD): Likewise.
4533         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
4534         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Likewise.
4535         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
4536         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
4537         * m4/pwrite.m4 (gl_FUNC_PWRITE): Likewise.
4538         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
4539         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
4540         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
4541         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
4542         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
4543         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
4544         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
4545         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
4546         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
4547         * m4/utimens.m4 (gl_UTIMENS): Likewise.
4548         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
4549         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
4550         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): On native Windows, don't
4551         test for getcwd.
4552         * m4/utime.m4 (gl_FUNC_UTIME): On native Windows, don't test for utime.
4553         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): To test for wcsdup, use a test program
4554         with GL_MDA_DEFINES.
4555         * lib/c++defs.h (_GL_CXXALIAS_MDA): New macro.
4556         * lib/fcntl.in.h (creat, open):  On native Windows, use the underscore-
4557         prefixed symbol.
4558         * lib/search.in.h (lfind, lsearch): Likewise.
4559         * lib/stdio.in.h (fcloseall, fdopen, fileno, getw, putw, tempnam):
4560         Likewise.
4561         * lib/stdlib.in.h (ecvt, fcvt, gcvt, mktemp, putenv): Likewise.
4562         * lib/string.in.h (memccpy, strdup): Likewise.
4563         * lib/sys_stat.in.h (chmod, umask): Likewise.
4564         * lib/time.in.h (tzset): Likewise.
4565         * lib/unistd.in.h (access, chdir, close, dup, dup2, execl, execle,
4566         execlp, execv, execve, execvp, execvpe, getcwd, getpid, isatty, lseek,
4567         read, rmdir, swab, unlink, write): Likewise.
4568         * lib/utime.in.h (utime): Likewise.
4569         * lib/wchar.in.h (wcsdup): Likewise.
4570         * lib/math.in.h (j0, j1, jn, y0, y1, yn):  Likewise.
4571         (isfinite, isinf, isnan, signbit): On native Windows, don't define as an
4572         rpl_-prefixed macro.
4573         * lib/canonicalize-lgpl.c (__getcwd): On native Windows, use _getcwd.
4574         * lib/close.c (close_nothrow): On native Windows, use _close.
4575         * lib/creat.c (orig_creat): On native Windows, use _creat.
4576         * lib/dup.c (dup_nothrow): On native Windows, use _dup.
4577         * lib/dup2.c (dup2_nothrow): Use _dup2.
4578         * lib/fdopen.c (fdopen_nothrow): On native Windows, use _fdopen.
4579         * lib/getcwd-lgpl.c: On native Windows, use _getcwd.
4580         * lib/getcwd.c (getcwd_nothrow): Use _getcwd also on mingw.
4581         * lib/open.c (orig_open): On native Windows, use _open.
4582         * lib/read.c (read_nothrow): Use _read.
4583         * lib/rmdir.c: On native Windows, use _rmdir.
4584         * lib/unlink.c: On native Windows, use _unlink.
4585         * lib/write.c (write_nothrow): Use _write.
4586         * lib/sys_select.in.h (close): With clang, don't attach a warning on an
4587         undefined symbol.
4588         * lib/sys_socket.in.h (close): Likewise.
4589         * lib/sys_time.in.h (close): Likewise.
4590         * tests/test-spawn-pipe-child.c: On native Windows, use _fdopen.
4592 2020-08-15  Bruno Haible  <bruno@clisp.org>
4594         Fix "unknown pragma ignored" warnings with clang on native Windows.
4595         * lib/cbrt.c: Don't use '#pragma fenv_access (off)' with clang.
4596         * lib/cbrtf.c: Likewise.
4597         * lib/ceil.c: Likewise.
4598         * lib/floor.c: Likewise.
4599         * lib/fma.c: Likewise.
4600         * lib/fmod.c: Likewise.
4601         * lib/rint.c: Likewise.
4602         * lib/round.c: Likewise.
4603         * lib/trunc.c: Likewise.
4604         * tests/test-ceil2.c: Likewise.
4605         * tests/test-ceilf2.c: Likewise.
4606         * tests/test-floor2.c: Likewise.
4607         * tests/test-floorf2.c: Likewise.
4608         * tests/test-trunc2.c: Likewise.
4609         * tests/test-truncf2.c: Likewise.
4610         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4611         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4613 2020-08-15  Bruno Haible  <bruno@clisp.org>
4615         Fix compilation errors in C++ mode with clang on native Windows.
4616         * lib/pthread.in.h (pthread_*): Disable _GL_CXXALIASWARN invocation on
4617         non-glibc systems.
4618         * lib/sched.in.h (sched_yield): Likewise.
4620 2020-08-14  Bruno Haible  <bruno@clisp.org>
4622         stdnoreturn: Work around problem with MSVC/clang.
4623         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On native Windows, include some
4624         system header after <stdnoreturn.h>.
4625         * doc/posix-headers/stdnoreturn.texi: Mention the issue.
4627 2020-08-14  Bruno Haible  <bruno@clisp.org>
4629         utime-h: Generate an utime.h file always.
4630         * modules/utime-h (Makefile.am): Generate utime.h always.
4631         * m4/utime_h.m4 (gl_UTIME_H): Don't set UTIME_H. Don't define
4632         GL_GENERATE_UTIME_H.
4634 2020-08-14  Bruno Haible  <bruno@clisp.org>
4636         mktime, mktime-internal: Remove obsolete code.
4637         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't #undef putenv.
4639 2020-08-14  Bruno Haible  <bruno@clisp.org>
4641         getcwd: Remove obsolete code.
4642         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't #undef mkdir.
4643         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
4645 2020-08-14  Bruno Haible  <bruno@clisp.org>
4647         tzset: Assume the function exists.
4648         * lib/time.in.h (tzset): Assume HAVE_TZSET is 1.
4649         * lib/tzset.c: Define rpl_tzset, not tzset. Assume HAVE_TZSET is 1.
4650         * modules/tzset (configure.ac): Don't test HAVE_TZSET.
4651         * m4/tzset.m4 (gl_FUNC_TZSET): Don't test for tzset. Don't set
4652         HAVE_TZSET.
4653         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Don't initialize HAVE_TZSET.
4654         * modules/time (Makefile.am): Don't substitute HAVE_TZSET.
4656         nstrftime: Assume tzset exists.
4657         * lib/nstrftime.c (HAVE_TZSET): Remove macro.
4658         (__strftime_internal): Test my_strftime, not HAVE_TZSET.
4659         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Don't test for tzset.
4661         mktime, mktime-internal: Assume tzset exists.
4662         * lib/mktime.c (my_tzset): Assume HAVE_TZSET is 1.
4663         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Don't test for tzset.
4665 2020-08-14  Bruno Haible  <bruno@clisp.org>
4667         strdup: Assume the function exists.
4668         * m4/strdup.m4 (gl_FUNC_STRDUP, gl_FUNC_STRDUP_POSIX): Don't test
4669         whether strdup exists.
4670         * modules/strdup (Files): Remove lib/strdup.c.
4671         (configure.ac): Don't compile strdup.c.
4672         * modules/strdup-posix (Depends-on, configure.ac): Don't test
4673         ac_cv_func_strdup.
4674         * doc/posix-functions/strdup.texi: Update.
4675         * lib/unistr/u8-strdup.c: Assume HAVE_STRDUP is 1.
4676         * modules/unistr/u8-strdup (Files): Remove lib/unistr/u-strdup.h.
4677         (Depends-on): Remove unistr/u8-strlen.
4679 2020-08-13  Bruno Haible  <bruno@clisp.org>
4681         sys_random: Work around an uClibc bug.
4682         Reported by akater <nuclearspace@gmail.com>
4683         via Stefan Kangas <stefan@marxist.se>
4684         in <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=42236>.
4685         * lib/sys_random.in.h: On uClibc, include <stddef.h> first.
4686         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Update comment.
4687         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
4688         * doc/glibc-headers/sys_random.texi: Mention the uClibc bug.
4690 2020-08-12  Bruno Haible  <bruno@clisp.org>
4692         Avoid implicit conversion from 'unsigned int' to 'int' in initializers.
4693         Reported by Florian Weimer in
4694         <https://lists.gnu.org/archive/html/bug-gnulib/2020-08/msg00086.html>.
4695         * lib/gen-uni-tables.c (output_predicate): Change the element type of
4696         the level3 array to 'unsigned int'.
4697         * lib/unictype/bitmap.h (bitmap_lookup): Access an 'unsigned int'.
4698         * lib/unictype/categ_*.h: Regenerated.
4699         * lib/unictype/ctype_*.h: Regenerated.
4700         * lib/unictype/pr_*.h: Regenerated.
4701         * lib/unictype/sy_*.h: Regenerated.
4702         * lib/unicase/cased.h: Regenerated.
4703         * lib/unicase/ignorable.h: Regenerated.
4705 2020-08-12  Paul Eggert  <eggert@cs.ucla.edu>
4707         stdint: port intptr_t to more-recent MinGW
4708         Problem reported by Eli Zaretskii in <https://bugs.gnu.org/36597#106>.
4709         * lib/stdint.in.h (intptr_t, uintptr_t): Do not define on MinGW,
4710         even if _INTPTR_T_DEFINED and _UINTPTR_T_DEFINED are not defined.
4711         Apparently those two macros were removed in mingwrt-3.22
4712         dated 2016-07-14.
4714 2020-08-12  Bruno Haible  <bruno@clisp.org>
4716         thread-optim: Export function-like macros only.
4717         Suggested by Paul Eggert.
4718         * lib/thread-optim.h (gl_multithreaded): New macro.
4719         (IF_MT_DECL, IF_MT): Remove macros.
4720         * doc/multithread.texi (Multithreading Optimizations): Add a small
4721         example.
4722         * lib/fatal-signal.c: Update all uses.
4723         * lib/clean-temp.c: Likewise.
4724         * lib/localename.c: Likewise.
4725         * modules/localename (Depends-on): Add stdbool.
4727 2020-08-12  Bruno Haible  <bruno@clisp.org>
4729         Revert autoupdate's revert.
4730         * config/srclist.txt: Mark regex.h as needing sync with glibc.
4732 2020-08-11  Bruno Haible  <bruno@clisp.org>
4734         thread-optim: Fix a compiler warning.
4735         * lib/thread-optim.h (IF_MT_DECL): Define differently.
4737 2020-08-11  Bruno Haible  <bruno@clisp.org>
4739         Use __restrict also on clang.
4740         * lib/cdefs.h (__restrict): Don't define as a macro on clang.
4741         (__restrict_arr): On clang, define like on GCC.
4742         * lib/regex.h (_Restrict_): Use '__restrict' also on clang.
4743         (_Restrict_arr_): Use _Restrict_ also on clang.
4744         * lib/spawn.in.h (_Restrict_): Use '__restrict' also on clang.
4745         (_Restrict_arr_): Use _Restrict_ also on clang.
4747 2020-08-11  Bruno Haible  <bruno@clisp.org>
4749         Use flexible array syntax also on clang.
4750         * lib/cdefs.h (__flexarr, __glibc_c99_flexarr_available): For clang,
4751         define like for GCC 3.
4753 2020-08-11  Bruno Haible  <bruno@clisp.org>
4755         fcntl: On native Windows, use _setmode, not setmode.
4756         * lib/fcntl.c (dupfd): Use _setmode, not setmode.
4757         * lib/binary-io.h: Update comment.
4758         * tests/test-cloexec.c: Call set_binary_mode, not setmode.
4759         * tests/test-dup2.c: Likewise.
4760         * tests/test-dup-safer.c: Likewise.
4761         * tests/test-fcntl.c: Likewise.
4763 2020-08-11  Bruno Haible  <bruno@clisp.org>
4765         execute, spawn-pipe: Use _spawnvpe, not spawnvpe.
4766         * lib/execute.c (execute): Use _spawnvpe, not spawnvpe.
4767         * lib/spawn-pipe.c (create_pipe): Likewise.
4768         * tests/test-nonblocking-pipe-main.c (main): Likewise.
4769         * tests/test-nonblocking-socket-main.c (main): Likewise.
4770         * lib/wait-process.c: Update comment.
4771         * doc/posix-functions/fork.texi: Update.
4773 2020-08-11  Bruno Haible  <bruno@clisp.org>
4775         asyncsafe-spin: Use GCC built-ins also on clang.
4776         * lib/asyncsafe-spin.c (asyncsafe_spin_init, do_lock, do_unlock): Use
4777         the newer GCC built-ins also on clang.
4779 2020-08-11  Bruno Haible  <bruno@clisp.org>
4781         Use expression statements also on clang.
4782         * lib/cdefs.h (__extension__): Don't define to empty on clang.
4783         * lib/obstack.h (__extension__): Likewise.
4784         (obstack_object_size, obstack_room, obstack_make_room, obstack_empty_p,
4785         obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
4786         obstack_int_grow, obstack_ptr_grow_fast, obstack_int_grow_fast,
4787         obstack_blank, obstack_alloc, obstack_copy, obstack_copy0,
4788         obstack_finish, obstack_free): Enable as optimized macros also on clang.
4789         * lib/fpucw.h (fpucw_t etc.): Enable the definitions also on clang.
4791 2020-08-10  Bruno Haible  <bruno@clisp.org>
4793         Use many __attribute__s with clang.
4794         * m4/gnulib-common.m4 (_Noreturn): Use __attribute__ __noreturn__ also
4795         on clang.
4796         * lib/cdefs.h (__glibc_clang_has_attribute, __glibc_clang_has_builtin):
4797         New macros.
4798         (__THROW, __THROWNL, __NTH, __NTHNL): Use __attribute__ __nothrow__ also
4799         on clang.
4800         (__warndecl, __warnattr, __errordecl): Use __attribute__ __diagnose_if__
4801         also on older clang versions.
4802         (__attribute__): Don't define to empty on clang.
4803         (__attribute_malloc__): Use __attribute__ __malloc__ also on clang.
4804         (__attribute_pure__): Use __attribute__ __pure__ also on clang.
4805         (__attribute_const__): Use __attribute__ __const__ also on clang.
4806         (__attribute_used__): Use __attribute__ __used__ also on clang.
4807         (__attribute_noinline__): Use __attribute__ __noinline__ also on clang.
4808         (__attribute_deprecated__): Use __attribute__ __deprecated__ also on
4809         clang.
4810         (__attribute_format_arg__): Use __attribute__ __format_arg__ also on
4811         clang.
4812         (__attribute_format_strfmon__): Use __attribute__ __format__ __strfmon__
4813         also on clang.
4814         (__nonnull): Use __attribute__ __nonnull__ also on clang.
4815         (__attribute_warn_unused_result__): Use __attribute__
4816         __warn_unused_result__ also on clang.
4817         (__always_inline): Use __attribute__ __always_inline__ also on clang.
4818         (__attribute_artificial__): Use __attribute__ __artificial__ also on
4819         clang >= 7.
4820         (__glibc_unlikely, __glibc_likely): Use __builtin_expect also on older
4821         clang versions.
4822         (_Noreturn): Don't redefine on clang >= 3.5.
4823         * lib/arg-nonnull.h (_GL_ARG_NONNULL): Use __attribute__ __nonnull__
4824         also on clang.
4825         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Use __attribute__ __pure__ also
4826         on clang.
4827         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4828         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4829         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
4830         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Use __attribute__ __format__
4831         also on clang.
4832         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
4833         * lib/textstyle.in.h (ostream_printf, ostream_vprintf): Likewise.
4834         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST): Use __attribute__ __const__
4835         also on clang.
4836         (_UC_ATTRIBUTE_PURE): Use __attribute__ __pure__ also on clang.
4837         * lib/noreturn.h (_GL_NORETURN_FUNC, _GL_NORETURN_FUNCPTR): Use
4838         __attribute__ __noreturn__ also on clang.
4839         * lib/obstack.h (__attribute_noreturn__): Likewise.
4840         * lib/file-set.h (record_file): Use __attribute__ __nonnull__ also on
4841         clang.
4842         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__
4843         always_inline also on clang.
4844         * tests/test-printf-posix.c (func1, func2, func3, func4): Test also on
4845         clang.
4847 2020-08-10  Bruno Haible  <bruno@clisp.org>
4849         c-ldtoastr tests: Fix test failure.
4850         * tests/test-c-ldtoastr.c (main): Support platforms where 'long double'
4851         is longer than 'double'.
4853 2020-08-10  Bruno Haible  <bruno@clisp.org>
4855         Revert autoupdate's revert.
4856         * config/srclist.txt: Mark intprops.h as needing sync with glibc.
4858 2020-08-09  Bruno Haible  <bruno@clisp.org>
4860         string: Fix build error in C++ mode with clang (regression from today).
4861         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): Expect two rettype
4862         parameters, one for GCC, one for clang.
4863         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Update.
4864         * lib/string.in.h (strchr, strpbrk, strrchr): For clang, pass 'char *'
4865         as return type.
4867 2020-08-09  Bruno Haible  <bruno@clisp.org>
4869         ftruncate: Use _chsize, not chsize.
4870         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Test for _chsize, not chsize.
4871         * lib/ftruncate.c: Test HAVE__CHSIZE.
4872         (chsize_nothrow): Use _chsize, not chsize.
4874 2020-08-09  Bruno Haible  <bruno@clisp.org>
4876         Silence warnings from clang 10 with -Wimplicit-fallthrough.
4877         * lib/dfa.c (FALLTHROUGH): Use __attribute__ __fallthrough__ also on
4878         clang >= 10.
4879         * lib/fnmatch.c (FALLTHROUGH): Likewise.
4880         * lib/fts.c (FALLTHROUGH): Likewise.
4881         * tests/macros.h (FALLTHROUGH): Likewise.
4882         * lib/regex_internal.h (FALLTHROUGH): Likewise.
4883         * config/srclist.txt: Mark it as needing sync with glibc.
4885 2020-08-09  Bruno Haible  <bruno@clisp.org>
4887         stdbool tests: Enable the stricter tests also on clang.
4888         * tests/test-stdbool.c (ADDRESS_CHECK_OKAY): Define also on clang.
4889         (e): Enable the address-to-bool conversion test also on clang.
4891 2020-08-09  Bruno Haible  <bruno@clisp.org>
4893         count-one-bits: Use __builtin_popcount{,l,ll} on clang.
4894         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the GCC built-in.
4896 2020-08-09  Bruno Haible  <bruno@clisp.org>
4898         Use attribute __aligned__ with clang.
4899         * lib/stdalign.in.h (_Alignas): Treat clang like GCC.
4900         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS): Likewise.
4902 2020-08-09  Bruno Haible  <bruno@clisp.org>
4904         Use __alignof__ with clang.
4905         * m4/stddef_h.m4 (gl_STDDEF_H): Test the alignment of max_align_t also
4906         on clang.
4907         * lib/alignof.h (alignof_type): Use __alignof__ also on clang.
4908         * lib/stdalign.in.h (_Alignof): Don't activate the GCC workaround on
4909         clang.
4910         * lib/malloca.h (sa_alignof): Use __alignof__ also on clang.
4911         * lib/bitset/list.c (lbitset_elt_alloc): Use __alignof__ also on clang.
4912         * lib/bitset/table.c (tbitset_elt_alloc): Likewise.
4913         * tests/test-stddef.c: Very the behaviour of __alignof__ also on clang.
4915 2020-08-09  Bruno Haible  <bruno@clisp.org>
4917         ignore-value: Simplify on clang.
4918         * lib/ignore-value.h (ignore_value): With clang, no need to use the GCC
4919         workaround.
4921 2020-08-09  Bruno Haible  <bruno@clisp.org>
4923         Use __typeof__ with clang.
4924         * m4/stdint.m4 (gl_STDINT_H): Check for SIZE_MAX also on
4925         "clang -std=gnu99".
4926         * lib/intprops.h (_GL_HAVE___TYPEOF__): Define to 1 also on clang.
4927         * tests/test-stdint.c (verify_same_types): Enable the check also on
4928         clang.
4930 2020-08-09  Bruno Haible  <bruno@clisp.org>
4932         Add ability to emit user-defined warnings and errors with clang.
4933         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _GL_ATTRIBUTE_ERROR,
4934         _GL_ATTRIBUTE_WARNING using an attribute for clang.
4935         * lib/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_ATTRIBUTE,
4936         _GL_WARN_ON_USE_CXX): Define using an attribute for clang.
4937         * lib/cdefs.h (__warndecl, __warnattr, __errordecl): Define using an
4938         attribute for clang.
4940 2020-08-09  Bruno Haible  <bruno@clisp.org>
4942         intprops: Fix typo in comment.
4943         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_P): Fix typo in comment.
4945 2020-08-09  Bruno Haible  <bruno@clisp.org>
4947         Use __builtin_signbit* with clang.
4948         * lib/math.in.h (signbit): Use __builtin_signbit{,f,l} also on clang.
4949         * m4/signbit.m4 (gl_SIGNBIT): Use __builtin_signbit{,f,l} also on clang.
4950         Set REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4951         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
4952         REPLACE_SIGNBIT_USING_BUILTINS, not REPLACE_SIGNBIT_USING_GCC.
4953         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_BUILTINS,
4954         not REPLACE_SIGNBIT_USING_GCC.
4956 2020-08-09  Bruno Haible  <bruno@clisp.org>
4958         Use __builtin_isnan with clang.
4959         * lib/isnanf-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4960         not __builtin_isnanf. Also on clang.
4961         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Use the GCC
4962         built-in __builtin_isnan, not __builtin_isnanf. Also on clang.
4963         * lib/isnand-nolibm.h (isnand): With clang, use the GCC built-in.
4964         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): With clang, use the GCC
4965         built-in.
4966         * lib/isnanl-nolibm.h (isnanf): Use the GCC built-in __builtin_isnan,
4967         not __builtin_isnanl. Also on clang.
4968         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_FUNC_ISNANL_WORKS): Use the
4969         GCC built-in __builtin_isnan, not __builtin_isnanl. Also on clang.
4970         * lib/math.in.h (__has_builtin): Remove macro.
4971         (isnanf, gl_isnan_f): Use the GCC built-in __builtin_isnan, not
4972         __builtin_isnanf. Also on clang.
4973         (isnand, gl_isnan_d): With clang, use the GCC built-in.
4974         (isnanl, gl_isnan_l): Use the GCC built-in __builtin_isnan, not
4975         __builtin_isnanl. Also on clang.
4976         (isnan): Use the GCC built-in __builtin_isnan in all three cases. Also
4977         on clang.
4979 2020-08-09  Bruno Haible  <bruno@clisp.org>
4981         thread-optim: Fix logic error.
4982         Reported by Paul Eggert.
4983         * lib/thread-optim.h (IF_MT): Fix logic error.
4985 2020-08-08  Bruno Haible  <bruno@clisp.org>
4987         localename: Use module 'thread-optim'.
4988         * lib/localename.c: Include thread-optim.h.
4989         (struniq): Use IF_MT macro.
4990         * modules/localename (Depends-on): Add thread-optim.
4992         clean-temp: Use module 'thread-optim'.
4993         * lib/clean-temp.c: Include thread-optim.h.
4994         (register_temporary_file, unregister_temporary_file, create_temp_dir,
4995         register_temp_file, unregister_temp_file, register_temp_subdir,
4996         unregister_temp_subdir, cleanup_temp_dir_contents, register_fd,
4997         close_temp, fclose_variant_temp): Use IF_MT macro.
4998         * modules/clean-temp (Depends-on): Add thread-optim.
5000         fatal-signal: Use module 'thread-optim'.
5001         * lib/fatal-signal.c: Include thread-optim.h.
5002         (at_fatal_signal, block_fatal_signals, unblock_fatal_signals): Use IF_MT
5003         macro.
5004         * modules/fatal-signal (Depends-on): Add thread-optim.
5006 2020-08-08  Bruno Haible  <bruno@clisp.org>
5008         New module 'thread-optim'.
5009         * lib/thread-optim.h: New file.
5010         * modules/thread-optim: New file.
5011         * doc/multithread.texi (Multithreading Optimizations): New section.
5013 2020-08-07  Paul Eggert  <eggert@cs.ucla.edu>
5015         doc: more updates for glibc 2.32
5016         * doc/glibc-functions/lchmod.texi, doc/posix-functions/faccessat.texi:
5017         * doc/posix-functions/fchmodat.texi: Update.
5019 2020-08-07  Bruno Haible  <bruno@clisp.org>
5021         doc: Update for glibc 2.32.
5022         * doc/glibc-functions/__libc_single_threaded.texi: New file.
5023         * doc/glibc-functions/pthread_attr_getsigmask_np.texi: New file.
5024         * doc/glibc-functions/pthread_attr_setsigmask_np.texi: New file.
5025         * doc/glibc-functions/sigabbrev_np.texi: New file.
5026         * doc/glibc-functions/sigdescr_np.texi: New file.
5027         * doc/glibc-functions/strerrordesc_np.texi: New file.
5028         * doc/glibc-functions/strerrorname_np.texi: New file.
5029         * doc/gnulib.texi: Include them.
5030         (Glibc sys/single_threaded.h): New section.
5031         * doc/pastposix-functions/h_errno.texi: Update.
5032         * doc/posix-functions/*.texi: Likewise.
5033         * doc/glibc-functions/*.texi: Likewise.
5035 2020-08-07  Bruno Haible  <bruno@clisp.org>
5037         alloca: No need to compile alloca.c with clang.
5038         * lib/alloca.c: Skip all code with clang.
5040         Use __builtin_alloca with clang.
5041         * lib/alloca.in.h (alloca): Define as __builtin_alloca on clang.
5043 2020-08-06  Bruno Haible  <bruno@clisp.org>
5045         Use __builtin_assume with clang.
5046         * lib/verify.h (_GL_HAS_BUILTIN_ASSUME): New macro.
5047         (assume): Use __builtin_assume when available.
5049 2020-08-06  Paul Eggert  <eggert@cs.ucla.edu>
5051         libgmp: add <gmp/gmp.h> support
5052         * m4/libgmp.m4 (gl_LIBGMP):
5053         * modules/libgmp (configure.ac, Makefile.am):
5054         Support platforms requiring ‘#include <gmp/gmp.h>’ instead of
5055         ‘#include <gmp.h>’.
5057 2020-08-06  Bruno Haible  <bruno@clisp.org>
5059         Consider that clang defines __OPTIMIZE__ like GCC does.
5060         * lib/streq.h: Define the inline functions also on clang.
5061         * lib/c-strcaseeq.h: Likewise.
5062         * lib/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't enable
5063         the GCC workaround to clang.
5065 2020-08-06  Bruno Haible  <bruno@clisp.org>
5067         safe-alloc: Remove unused code.
5068         * lib/safe-alloc.h (__GNUC_PREREQ): Remove macro.
5070 2020-08-06  Bruno Haible  <bruno@clisp.org>
5072         Use __builtin_expect with clang everywhere.
5073         * lib/cdefs.h (__glibc_unlikely, __glibc_likely): Use the GCC built-in
5074         also on clang.
5076 2020-08-05  Bruno Haible  <bruno@clisp.org>
5078         Use __builtin_ctz{,l,ll} and __builtin_ffs{,l,ll} with clang everywhere.
5079         * lib/count-trailing-zeros.h (COUNT_TRAILING_ZEROS): Use the GCC
5080         built-in also on clang.
5081         * lib/ffs.c: With clang, use the GCC built-in, not <intrin.h>.
5082         * lib/ffsl.h: Likewise. Assume GCC_BUILTIN is defined.
5084 2020-08-05  Bruno Haible  <bruno@clisp.org>
5086         Use __builtin_clz{,l,ll} with clang, also on Windows.
5087         * lib/integer_length.c: With clang, use the GCC built-in, not
5088         <intrin.h>.
5089         * lib/integer_length_l.c: Likewise.
5090         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS): Use the GCC built-in
5091         also on clang.
5092         * lib/vasnprintf.c (divide): Likewise.
5094 2020-08-04  Paul Eggert  <eggert@cs.ucla.edu>
5096         Update srclist.txt as per recent glibc changes
5097         * config/srclist.txt: Uncomment lines to reflect recent merges
5098         from Gnulib to glibc.
5100 2020-08-03  Bruno Haible  <bruno@clisp.org>
5102         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5103         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Use m4_if instead of ifelse.
5105 2020-08-03  Bruno Haible  <bruno@clisp.org>
5107         integer_length_ll: Optimize for MSVC in 64-bit mode.
5108         * lib/integer_length_l.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5109         (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5111 2020-08-03  Bruno Haible  <bruno@clisp.org>
5113         integer_length_ll: Optimize for MSVC in 32-bit mode.
5114         * lib/integer_length_l.c: Include <intrin.h>.
5115         (integer_length): Define as inline function, like in
5116         lib/integer_length.c.
5118 2020-08-03  Bruno Haible  <bruno@clisp.org>
5120         integer_length: Optimize for MSVC.
5121         * lib/integer_length.c: Include <intrin.h>.
5122         (integer_length): With MSVC, use the _BitScanReverse built-in.
5124 2020-08-03  Bruno Haible  <bruno@clisp.org>
5126         ffsll: Optimize for MSVC in 64-bit mode.
5127         * lib/ffsl.h (FUNC): On MSVC, use MSVC_BUILTIN if defined.
5128         * lib/ffsll.c (MSVC_BUILTIN): Define for MSVC in 64-bit mode.
5129         * lib/ffsl.c (MSVC_BUILTIN): Define for MSVC.
5131 2020-08-03  Bruno Haible  <bruno@clisp.org>
5133         ffsll: Optimize for MSVC in 32-bit mode.
5134         * lib/ffsl.h: Include <intrin.h>.
5135         (ffs): Define as inline function, like in lib/ffs.c.
5137 2020-08-03  Bruno Haible  <bruno@clisp.org>
5139         ffs: Optimize for MSVC.
5140         * lib/ffs.c: Include <intrin.h>.
5141         (ffs): With MSVC, use the _BitScanForward built-in.
5143 2020-08-03  Bruno Haible  <bruno@clisp.org>
5145         sigprocmask: Try to avoid breakage for people who use an Autoconf cache.
5146         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Change the name of the cache
5147         variable.
5149 2020-08-03  Harald van Dijk  <harald@gigawatt.nl>  (tiny change)
5151         fopen: Avoid undesired interactions with glibc headers.
5152         * lib/fopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this instead of
5153         __need_FILE, as the latter does not work with glibc.
5155 2020-08-02  Paul Eggert  <eggert@cs.ucla.edu>
5157         fcntl: document some F_SETLK errno variations
5158         * doc/posix-functions/fcntl.texi (fcntl): Document
5159         OpenIndiana, GNU/Linux, FreeBSD on NFS files.
5161 2020-08-02  Bruno Haible  <bruno@clisp.org>
5163         oset: Add an 'iterator_atleast' operation.
5164         * lib/gl_array_oset.c (gl_array_indexof_atleast): New function,
5165         extracted from gl_array_search_atleast.
5166         (gl_array_search_atleast): Use it.
5167         (gl_array_iterator_atleast): New function.
5168         (gl_array_oset_implementation): Use it.
5169         * lib/gl_anytree_oset.h (gl_tree_iterator_atleast): New function.
5170         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Use it.
5171         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Likewise.
5172         * lib/gl_oset.h (struct gl_oset_implementation): Add 'iterator_atleast'
5173         member.
5174         (gl_oset_iterator_atleast): New function.
5175         * lib/gl_oset.hh (gl_OSet): Add 'begin_atleast' member.
5176         (gl_OSet::iterator): Add another auxiliary constructor.
5177         * tests/test-array_oset.c (is_at_least, gl_sortedlist_indexof_atleast):
5178         New functions.
5179         (main): Test also gl_oset_iterator_atleast.
5180         * tests/test-avltree_oset.c (is_at_least): New function.
5181         (main): Test also gl_oset_iterator_atleast.
5182         * tests/test-rbtree_oset.c (is_at_least): New function.
5183         (main): Test also gl_oset_iterator_atleast.
5184         * tests/test-oset-c++.cc (is_at_most): New function.
5185         (main): Test also gl_OSet::begin_atleast.
5187 2020-08-02  Bruno Haible  <bruno@clisp.org>
5189         oset-c++, omap-c++: Remove restriction for search_atleast method.
5190         * lib/gl_oset.hh (gl_OSet::search_atleast): Allow the threshold to be of
5191         a different type than the element.
5192         * lib/gl_omap.hh (gl_OMap::search_atleast): Allow the threshold to be of
5193         a different type than the key.
5195 2020-08-01  Paul Eggert  <eggert@cs.ucla.edu>
5197         gnumakefile: say ‘$(MAKE)’ not ‘make’
5198         * top/GNUmakefile (abort-due-to-no-makefile):
5199         Prefer ‘$(MAKE)’ to ‘make’ in a diagnostic.
5200         This change is backported from Autoconf.
5202 2020-08-01  Bruno Haible  <bruno@clisp.org>
5204         Prefer documented autoconf macro 'm4_if' over 'ifelse'.
5205         * m4/autobuild.m4 (AB_INIT): Use m4_if instead of ifelse.
5206         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
5207         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
5208         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
5209         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Likewise.
5211 2020-08-01  Bruno Haible  <bruno@clisp.org>
5213         libtextstyle-optional: Update tests.
5214         * modules/libtextstyle-optional-tests (configure.ac): Invoke
5215         gl_LIBTEXTSTYLE_OPTIONAL.
5217 2020-08-01  Bruno Haible  <bruno@clisp.org>
5219         parse-datetime: Fix wrong #line statements.
5220         * modules/parse-datetime (Makefile.am): Correct #line statements also in
5221         parse-datetime-gen.h.
5223 2020-08-01  Bruno Haible  <bruno@clisp.org>
5225         libtextstyle[-optional]: Allow requesting a minimum version.
5226         * m4/libtextstyle.m4 (gl_LIBTEXTSTYLE): Allow an optional argument.
5227         (gl_LIBTEXTSTYLE_NEWEST_VERSION, gl_LIBTEXTSTYLE_INITIALIZE,
5228         gl_LIBTEXTSTYLE_SEARCH): New macros.
5229         * modules/libtextstyle (configure.ac): Don't invoke gl_LIBTEXTSTYLE.
5230         * m4/libtextstyle-optional.m4 (gl_LIBTEXTSTYLE_OPTIONAL): Allow an
5231         optional argument. Invoke, not require, gl_LIBTEXTSTYLE.
5232         * modules/libtextstyle-optional (configure.ac): Don't invoke
5233         gl_LIBTEXTSTYLE_OPTIONAL.
5234         * NEWS: Mention the changes.
5236 2020-07-31  Bruno Haible  <bruno@clisp.org>
5238         _GL_CMP: Improve documentation.
5239         Reported by Paul Eggert in
5240         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00188.html>.
5241         * m4/gnulib-common.m4 (gl_COMMON_BODY): Clarify what arguments can be
5242         passed.
5244 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5246         largefile: sync with Autoconf master
5247         * m4/largefile.m4 (_AC_SYS_LARGEFILE_TEST_INCLUDES):
5248         Avoid undefined behavior on platforms where off_t is 32 bits.
5249         See: https://bugs.debian.org/742780
5251         alloca: sync with Autoconf master
5252         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
5253         Do not define if Autoconf 2.70 or later, since Autoconf master
5254         now matches us.
5256 2020-07-30  Bruno Haible  <bruno@clisp.org>
5258         unicodeio: Add comment.
5259         * lib/unicodeio.c (unicode_to_mb): Clarify why the code distinguishes
5260         different iconv behaviours.
5262 2020-07-30  Paul Eggert  <eggert@cs.ucla.edu>
5264         Work around some Oracle Studio attribute bugs
5265         These were discovered when building bleeding-edge Emacs with
5266         Oracle Studio.
5267         * m4/gnulib-common.m4 (_GL_ATTRIBUTE_COLD, _GL_ATTRIBUTE_MAY_ALIAS):
5268         Port to Oracle Studio 12.6, which mishandles __attribute__
5269         ((__cold__)) and __attribute__ ((__may_alias__)) even though
5270         __has_attribute says they work.
5272 2020-07-29  Bruno Haible  <bruno@clisp.org>
5274         unicodeio: Fix wrong result on musl libc.
5275         Reported by A. Wilcox <awilfox@adelielinux.org> in
5276         <https://www.openwall.com/lists/musl/2020/07/29/2>.
5277         * lib/unicodeio.c (unicode_to_mb): Handle asterisk fallback characters
5278         on musl libc.
5279         * m4/unicodeio.m4 (gl_UNICODEIO): Invoke gl_MUSL_LIBC.
5280         * modules/unicodeio (Files): Add m4/musl.m4.
5282 2020-07-29  Paul Eggert  <eggert@cs.ucla.edu>
5284         fsusage, regex, stat-size: remove Cray support
5285         As near as I can make out this is actually support for UNICOS/mp,
5286         last released 2005, and Cray hasn’t supported that for years.
5287         * config/srclist.txt: Comment out regex.h for now.
5288         * lib/fsusage.c (get_fs_usage):
5289         * lib/regex.h (re_comp, re_exec):
5290         * lib/stat-size.h (ST_NBLOCKSIZE):
5291         Don’t worry about _CRAY.
5293 2020-07-29  Bruno Haible  <bruno@clisp.org>
5295         parse-datetime: Fix compilation error with bison 3.7.
5296         * modules/parse-datetime (Makefile.am): Create a generated header file
5297         parse-datetime-gen.h in the source directory. Correct #include and
5298         #line statements during preprocessing.
5300 2020-07-28  Bruno Haible  <bruno@clisp.org>
5302         fopen-gnu: Create files correctly (regression from 2020-05-24).
5303         * lib/fopen.c (rpl_open): Pass a third argument to open().
5305 2020-07-27  Paul Eggert  <eggert@cs.ucla.edu>
5307         xalloc-die: don’t depend on xalloc
5308         This removes a circular dependency, as xalloc depends on xalloc-die.
5309         * modules/xalloc-die (Files): Add lib/xalloc.h.
5310         (Depends-on): Remove xalloc.
5311         Add extern-inline, stdint, xalloc-oversized (this is for xalloc.h).
5313         dfa-tests: port to MSVC
5314         Problem reported by Gisle Vanem in:
5315         https://lists.gnu.org/r/bug-gnulib/2020-07/msg00159.html
5316         Also, remove an unnecessary dependency on getprogname.
5317         * modules/dfa-tests (Depends-on): Remove getprogname.
5318         * tests/test-dfa-match-aux.c: Do not include getprogname.h.
5319         (exit_status): New static var.
5320         (dfawarn): Set it instead of exiting.
5321         Do not declare as _Noreturn, to pacify MSVC.
5322         (main): Return exit_status.
5324 2020-07-26  Paul Eggert  <eggert@cs.ucla.edu>
5326         argz: pacify MSVC
5327         * lib/argz.in.h: Avoid "*/*" to pacify MSVC.
5328         Problem reported by Gisle Vanem.
5330         libgmp: remove dependency on havelib
5331         * m4/libgmp.m4 (gl_LIBGMP): If gl_HAVE_MODULE_HAVELIB is not defined,
5332         use the more-traditional AC_SEARCH_LIBS approach.
5333         This should work better with GNU Emacs configuration,
5334         which uses pkg-config instead of a havelib-style approach.
5335         * modules/havelib (gl_HAVE_MODULE_HAVELIB): New witness macro.
5336         * modules/libgmp (Depends-on): Remove havelib.
5338         libgmp: remove HAVE_GMP, LIB_GMP
5339         * m4/libgmp.m4 (gl_LIBGMP): Do not define HAVE_GMP and LIB_GMP, as
5340         they’re redundant.  I’ll adjust GNU Coreutils accordingly.
5342 2020-07-26  Bruno Haible  <bruno@clisp.org>
5344         inttypes: Remove support for AIX 4.
5345         * lib/inttypes.in.h: Assume that PRI_MACROS_BROKEN is 0.
5346         * m4/inttypes-pri.m4: Remove file.
5347         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): Don't require gt_INTTYPES_PRI.
5348         (gl_INTTYPES_H_DEFAULTS): Don't initialize PRI_MACROS_BROKEN.
5349         * modules/inttypes-incomplete (Makefile.am): Don't substitute
5350         PRI_MACROS_BROKEN.
5351         * modules/inttypes (Files): Remove m4/inttypes-pri.m4.
5353 2020-07-26  Bruno Haible  <bruno@clisp.org>
5355         gettimeofday: Remove workaround for Mac OS X 10.0.
5356         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Remove macro.
5357         (gl_FUNC_GETTIMEOFDAY): Don't invoke it.
5358         * lib/gettimeofday.c: Don't include localtime-buffer.h.
5359         (gettimeofday): Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5360         * lib/localtime.c: Don't test GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5361         * modules/gettimeofday (Depends-on): Remove localtime-buffer.
5362         * modules/localtime-buffer: Remove file.
5363         * lib/localtime-buffer.h: Remove file.
5364         * lib/localtime-buffer.c: Remove file.
5365         * m4/localtime-buffer.m4: Remove file.
5366         * MODULES.html.sh (Date and time <time.h>): Remove localtime-buffer.
5368 2020-07-26  Bruno Haible  <bruno@clisp.org>
5370         tzset: Remove workaround for Solaris 2.6.
5371         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Remove macro.
5372         (gl_FUNC_TZSET): Don't invoke it. Don't define TZSET_CLOBBERS_LOCALTIME.
5373         Don't require gl_LOCALTIME_BUFFER_DEFAULTS.
5374         * lib/localtime-buffer.h: Don't test TZSET_CLOBBERS_LOCALTIME.
5375         * lib/localtime-buffer.c: Likewise.
5376         * lib/localtime.c: Likewise.
5377         * lib/tzset.c: Don't include localtime-buffer.h.
5378         (tzset): Don't test TZSET_CLOBBERS_LOCALTIME.
5379         * lib/nstrftime.c (__strftime_internal): Assume HAVE_RUN_TZSET_TEST
5380         is 1.
5381         * modules/tzset (Depends-on): Remove localtime-buffer.
5383 2020-07-26  Bruno Haible  <bruno@clisp.org>
5385         expl: Simplify autoconf test.
5386         * m4/expl.m4 (gl_FUNC_EXPL): Merge the "checking whether expl() breaks
5387         with small values..." test into the "checking whether expl works..."
5388         test.
5390 2020-07-26  Bruno Haible  <bruno@clisp.org>
5392         alloca: Remove Cray-2 and Cray Y-MP support.
5393         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA): Don't define CRAY_STACKSEG_END.
5394         Enable also on Autoconf >= 2.69.
5395         * lib/alloca.c (ADDRESS_FUNCTION, struct stack_control_header,
5396         struct stack_segment_linkage, struct stk_stat, struct stk_trailer,
5397         i00afunc): Remove.
5399 2020-07-25  Bruno Haible  <bruno@clisp.org>
5401         multiarch: Prepare for x86_64+arm64 universal binaries in macOS 11.
5402         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the ARM architectures.
5404 2020-07-25  Bruno Haible  <bruno@clisp.org>
5406         sigprocmask: Small autoconf macro improvement.
5407         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Make it possible for the
5408         user to override the value of gl_cv_func_sigprocmask.
5409         * m4/gnulib-common.m4 (gl_SILENT): New macro.
5411 2020-07-25  Bruno Haible  <bruno@clisp.org>
5413         Small autoconf macro improvements.
5414         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Make it possible for the user to
5415         override the value of gl_cv_func_working_mktime.
5416         * m4/multiarch.m4 (gl_MULTIARCH): Show a line "checking whether the
5417         compiler produces multi-arch binaries..." in the configure output.
5418         * m4/size_max.m4 (gl_SIZE_MAX): When not found, say "no".
5419         * m4/parse-datetime.m4 (gl_C_COMPOUND_LITERALS): Improve indentation.
5421 2020-07-25  Bruno Haible  <bruno@clisp.org>
5423         doc: Update for NetBSD 7.1, 8.0, 9.0.
5424         * doc/*/*.texi: Update.
5425         * m4/exp2l.m4: Update comments.
5426         * m4/expl.m4: Likewise.
5427         * m4/ilogb.m4: Likewise.
5428         * m4/ilogbf.m4: Likewise.
5429         * m4/log10l.m4: Likewise.
5430         * m4/logl.m4: Likewise.
5431         * m4/printf.m4: Likewise.
5432         * m4/rintl.m4: Likewise.
5433         * m4/wcwidth.m4: Likewise.
5435 2020-07-24  Bruno Haible  <bruno@clisp.org>
5437         doc: Update for Mac OS X 10.13.
5438         * doc/*/*.texi: Update.
5439         * m4/expm1l.m4: Update comments.
5440         * m4/getgroups.m4: Likewise.
5441         * m4/getlogin_r.m4: Likewise.
5442         * m4/linkat.m4: Likewise.
5443         * m4/printf.m4: Likewise.
5445 2020-07-24  Bruno Haible  <bruno@clisp.org>
5447         doc: Update for Cygwin 2.9.0.
5448         * doc/*/*.texi: Update.
5450 2020-07-24  Paul Eggert  <eggert@cs.ucla.edu>
5452         parse-datetime: modernize doc
5453         * doc/parse-datetime.texi: Use more-current examples.
5454         Don’t lead with 32-bit time_t, as it’s on its way out.
5455         Capitalize “Epoch” to be consistent with POSIX.
5457         timespec: remove dependence on ‘verify’
5458         * lib/timespec.h: Do not include verify.h; no longer needed.
5459         * modules/timespec (Depends-on): Remove ‘verify’.
5461         Optimize a few more three-valued comparisons
5462         * lib/timespec.h (timespec_cmp, timespec_sign):
5463         * lib/utimecmp.c (utimecmpat):
5464         Avoid conditional branches by using _GL_CMP.
5466         Fix _GL_CMP parenthesization typo
5467         * m4/gnulib-common.m4 (_GL_CMP): Properly parenthesize.
5469 2020-07-24  Bruno Haible  <bruno@clisp.org>
5471         dfa: Revert breaking gawk.
5472         Reported by Arnold Robbins <arnold@skeeve.com>.
5473         * lib/dfa.c (compare): Don't reference the _GL_CMP macro.
5475 2020-07-23  Bruno Haible  <bruno@clisp.org>
5477         Optimize three-valued comparison between integers.
5478         (a > b ? 1 : a < b ? -1 : 0) is the same as (a > b) - (a < b).
5479         * m4/gnulib-common.m4 (gl_COMMON): Define _GL_CMP.
5480         * lib/c-strcasecmp.c (c_strcasecmp): Use _GL_CMP.
5481         * lib/c-strncasecmp.c (c_strncasecmp): Likewise.
5482         * lib/dfa.c (compare): Likewise.
5483         * lib/fts.c (fts_compare_ino): Likewise.
5484         * lib/mbmemcasecmp.c (mbmemcasecmp): Likewise.
5485         * lib/mbscasecmp.c (mbscasecmp): Likewise.
5486         * lib/mbsncasecmp.c (mbsncasecmp): Likewise.
5487         * lib/memcasecmp.c (memcasecmp): Likewise.
5488         * lib/memcmp2.c (memcmp2): Likewise.
5489         * lib/savedir.c (direntry_cmp_inode): Likewise.
5490         * lib/strcasecmp.c (strcasecmp): Likewise.
5491         * lib/strncasecmp.c (strncasecmp): Likewise.
5492         * lib/unistr/u-cmp2.h (FUNC): Likewise.
5494 2020-07-23  Bruno Haible  <bruno@clisp.org>
5496         lchmod: Use /proc on Cygwin.
5497         * lib/lchmod.c (lchmod): Use /proc on Cygwin.
5499 2020-07-23  Ken Brown  <kbrown@cornell.edu>
5501         fchmodat: Use /proc on Cygwin
5502         * lib/fchmodat.c (fchmodat): Use /proc on Cygwin.
5504 2020-07-21  Bruno Haible  <bruno@clisp.org>
5506         aligned-malloc: Optionally use aligned_alloc.
5507         * lib/aligned-malloc.h: Verify the alignment.
5508         (aligned_malloc): Use aligned_alloc as an alternative.
5509         * modules/aligned-malloc (configure.ac): Test for aligned_alloc.
5510         * doc/posix-functions/aligned_alloc.texi: Mention the modules
5511         'aligned-malloc' and 'pagealign_alloc'.
5513 2020-07-21  Bruno Haible  <bruno@clisp.org>
5515         aligned-malloc: Add tests.
5516         * tests/test-aligned-malloc.c: New file.
5517         * modules/aligned-malloc-tests: New file.
5519         aligned-malloc: New module.
5520         * lib/aligned-malloc.h: New file.
5521         * m4/malloc-align.m4: New file.
5522         * modules/aligned-malloc: New file.
5523         * doc/posix-functions/posix_memalign.texi: Mention the new module.
5524         * doc/glibc-functions/memalign.texi: Likewise.
5526 2020-07-21  Bruno Haible  <bruno@clisp.org>
5528         inttypes: Fix PRI*PTR and SCN*PTR on 64-bit native Windows.
5529         * m4/inttypes.m4 (gl_INTTYPES_PRI_SCN): On 64-bit native Windows, make
5530         sure PRIPTR_PREFIX is defined to "ll", not "l".
5532 2020-07-21  Bruno Haible  <bruno@clisp.org>
5534         printf-posix: Make an autoconf test more future-proof.
5535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): Include <inttypes.h> before
5536         using uintptr_t.
5538 2020-07-20  Bruno Haible  <bruno@clisp.org>
5540         list, oset, omap: Relicense some of the container modules under LGPLv2+.
5541         * modules/list (License): Change to LGPLv2+.
5542         * modules/array-list (License): Likewise.
5543         * modules/carray-list (License): Likewise.
5544         * modules/linked-list (License): Likewise.
5545         * modules/avltree-list (License): Likewise.
5546         * modules/rbtree-list (License): Likewise.
5547         * modules/oset (License): Likewise.
5548         * modules/array-oset (License): Likewise.
5549         * modules/avltree-oset (License): Likewise.
5550         * modules/rbtree-oset (License): Likewise.
5551         * modules/omap (License): Likewise.
5552         * modules/array-omap (License): Likewise.
5553         * modules/avltree-omap (License): Likewise.
5554         * modules/rbtree-omap (License): Likewise.
5556 2020-07-20  Bruno Haible  <bruno@clisp.org>
5558         oset: Add an 'update' operation.
5559         * lib/gl_array_oset.c (gl_array_update): New function.
5560         (gl_array_oset_implementation): Use it.
5561         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5562         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5563         * lib/gl_avltree_ordered.h (gl_tree_add_node_before): New function,
5564         extracted from gl_tree_nx_add_before.
5565         (gl_tree_nx_add_before): Invoke it.
5566         (gl_tree_add_node_after): New function, extracted from
5567         gl_tree_nx_add_after.
5568         (gl_tree_nx_add_after): Invoke it.
5569         (gl_tree_remove_node_no_free): New function, extracted from
5570         gl_tree_remove_node.
5571         (gl_tree_remove_node): Invoke it.
5572         * lib/gl_rbtree_ordered.h (gl_tree_add_node_before): New function,
5573         extracted from gl_tree_nx_add_before.
5574         (gl_tree_nx_add_before): Invoke it.
5575         (gl_tree_add_node_after): New function, extracted from
5576         gl_tree_nx_add_after.
5577         (gl_tree_nx_add_after): Invoke it.
5578         (gl_tree_remove_node_no_free): New function, extracted from
5579         gl_tree_remove_node.
5580         (gl_tree_remove_node): Invoke it.
5581         * lib/gl_anytree_oset.h (gl_tree_next_node): New function, extracted
5582         from gl_tree_iterator_next.
5583         (gl_tree_iterator_next): Invoke it.
5584         (gl_tree_prev_node, gl_tree_update): New functions.
5585         * lib/gl_avltree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5586         (gl_avltree_oset_implementation): Use gl_tree_update.
5587         * lib/gl_rbtree_oset.c (NODE_PAYLOAD_DISPOSE): Add parameters.
5588         (gl_rbtree_oset_implementation): Use gl_tree_update.
5589         * lib/gl_oset.h (struct gl_oset_implementation): Add 'update' member.
5590         (gl_oset_update): New function.
5591         * lib/gl_oset.hh (gl_OSet): Add 'update' member.
5592         * modules/avltree-oset (configure.ac): Require AC_C_INLINE.
5593         * modules/rbtree-oset (configure.ac): Likewise.
5594         * tests/test-oset-update.h: New file.
5595         * tests/test-array_oset.c: Include test-oset-update.h.
5596         (main): Invoke test_update.
5597         * tests/test-avltree_oset.c: Likewise.
5598         * tests/test-rbtree_oset.c: Likewise.
5599         * modules/array-oset-tests (Files): Add tests/test-oset-update.h.
5600         * modules/avltree-oset-tests (Files): Likewise.
5601         * modules/rbtree-oset-tests (Files): Likewise.
5602         * tests/test-oset-c++.cc (action): New function.
5603         (main): Test the 'update' member function.
5605 2020-07-15  Paul Eggert  <eggert@cs.ucla.edu>
5607         md5, sha1, sha256, sha512: pacify Autoconf 2.70
5608         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Use m4_if rather than a
5609         shell if, so that the argument to AC_CHECK_HEADERS is
5610         a simple string that does not require shell evaluation.
5611         This fixes a warning generated by Autoconf 2.69b.
5613 2020-07-12  Bruno Haible  <bruno@clisp.org>
5615         libgmp: Avoid warning when --without-libgmp is used.
5616         * lib/mini-gmp-gnulib.c: Ignore -Wsuggest-attribute=malloc only for
5617         GCC >= 8, not for GCC >= 4.6.
5619 2020-07-12  Bruno Haible  <bruno@clisp.org>
5621         libgmp: Link to the correct shared library.
5622         * m4/libgmp.m4 (gl_LIBGMP): Invoke AC_LIB_HAVE_LINKFLAGS.
5623         * modules/libgmp (Depends-on): Add havelib.
5624         (Link): Mention $(LIBGMP) and $(LTLIBGMP).
5625         * modules/libgmp-tests (Makefile.am): Link test-libgmp with $(LIBGMP).
5627 2020-07-12  Bruno Haible  <bruno@clisp.org>
5629         libgmp tests: Add some safety checks.
5630         * modules/libgmp-tests (Depends-on): Add verify.
5631         * tests/test-libgmp.c: Verify GMP_NUMB_BITS value.
5632         (main): Verify that gmp.h and libgmp versions match.
5634 2020-07-10  Bruno Haible  <bruno@clisp.org>
5636         unicodeio: Fix wrong result on NetBSD.
5637         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5638         characters also on NetBSD.
5640 2020-07-09  Bruno Haible  <bruno@clisp.org>
5642         unicodeio: Fix wrong result on Solaris 11.
5643         Reported by Kiyoshi Kanazawa <yoi_no_myoujou@yahoo.co.jp>
5644         via Akim Demaille <akim.demaille@gmail.com> in
5645         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00036.html>.
5646         * lib/unicodeio.c (unicode_to_mb): Handle question mark fallback
5647         characters on Solaris.
5648         * tests/test-unicodeio.c (main): In the "C" locale, expect either the
5649         UTF-8 output or the specified fallback.
5651 2020-07-08  Bruno Haible  <bruno@clisp.org>
5653         unicodeio: Add tests.
5654         * tests/test-unicodeio.c: New file.
5655         * tests/test-unicodeio1.sh: New file.
5656         * tests/test-unicodeio2.sh: New file.
5657         * tests/test-unicodeio3.sh: New file.
5658         * modules/unicodeio-tests: New file.
5660 2020-07-08  Bruno Haible  <bruno@clisp.org>
5662         unicodeio: Document link requirements.
5663         * modules/unicodeio (Link): New section.
5665 2020-07-07  Bruno Haible  <bruno@clisp.org>
5667         doc: Remove support for some very old platforms.
5668         * doc/posix-functions/memcmp.texi: Don't mention "older platforms".
5669         * doc/posix-functions/memcpy.texi: Likewise.
5670         * doc/posix-functions/memmove.texi: Likewise.
5671         * doc/posix-functions/memset.texi: Likewise.
5672         * doc/posix-functions/getcwd.texi: Likewise.
5674         memchr: Remove support for some very old platforms.
5675         * m4/memchr-obsolete.m4: Remove file.
5676         * modules/memchr-obsolete: Remove file.
5677         * m4/memchr.m4 (gl_FUNC_MEMCHR): Assume module 'memchr-obsolete' is
5678         absent. Don't define HAVE_MEMCHR.
5679         * lib/string.in.h (memchr): Assume HAVE_MEMCHR is 1.
5680         * modules/memchr (Depends-on): Remove memchr-obsolete.
5681         (configure.ac): Assume HAVE_MEMCHR is 1.
5682         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
5683         HAVE_MEMCHR.
5684         * modules/string (Makefile.am): Don't substitute HAVE_MEMCHR.
5685         * doc/posix-functions/memchr.texi: Don't mention module
5686         'memchr-obsolete'.
5687         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5688         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Assume HAVE_MEMCHR is 1.
5689         * modules/strnlen (Depends-on): Remove memchr-obsolete.
5691         dup2: Remove support for some very old platforms.
5692         * m4/dup2-obsolete.m4: Remove file.
5693         * modules/dup2-obsolete: Remove file.
5694         * m4/dup2.m4 (gl_FUNC_DUP2): Assume module 'dup2-obsolete' is absent.
5695         Don't define HAVE_DUP2.
5696         * lib/unistd.in.h (dup2): Assume HAVE_DUP2 is 1.
5697         * lib/dup2.c: Likewise.
5698         * modules/dup2 (Depends-on, configure.ac): Likewise.
5699         (Depends-on): Remove dup2-obsolete.
5700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize HAVE_DUP2.
5701         * modules/unistd (Makefile.am): Don't substitute HAVE_DUP2.
5702         * doc/posix-functions/dup2.texi: Don't mention module 'dup2-obsolete'.
5704 2020-07-07  Bruno Haible  <bruno@clisp.org>
5706         canonicalize: Trim module dependencies.
5707         * lib/hash-triple.h: Group declarations.
5708         * lib/hash-triple-simple.c: New file, extracted from lib/hash-triple.c.
5709         * lib/hash-triple.c: Don't include <stdlib.h>, <string.h>, hash-pjw.h.
5710         (STREQ): Remove macro.
5711         (triple_hash, triple_compare_ino_str, triple_free): Remove functions.
5712         * modules/hash-triple-simple: New file, based on modules/hash-triple.
5713         * modules/hash-triple (Files): Remove lib/hash-triple.h.
5714         (Depends-on): Add hash-triple-simple. Remove hash-pjw.
5715         * modules/canonicalize (Depends-on): Remove hash-triple. Add
5716         hash-triple-simple.
5717         * modules/file-set (Depends-on): Likewise.
5719 2020-07-07  Bruno Haible  <bruno@clisp.org>
5721         Clarify dependencies to double-slash-root.
5722         * modules/canonicalize (Files): Remove m4/double-slash-root.m4.
5723         (Depends-on): Add double-slash-root.
5724         * modules/canonicalize-lgpl (Depends-on): Add double-slash-root.
5725         * modules/dirname-lgpl (Depends-on): Add double-slash-root.
5727 2020-07-06  Paul Eggert  <eggert@cs.ucla.edu>
5729         libgmp: new module
5730         The idea is to let programs simply include <gmp.h>, and
5731         so long as they live within the mini-gmp subset they need
5732         not worry about whether the GMP libraries are installed.
5733         * MODULES.html.sh: Mention it.
5734         * config/srclist.txt: Mention files copied from GMP source.
5735         * config/srclistvars.sh (GMP): New var.
5736         * lib/mini-gmp-gnulib.c, m4/libgmp.m4, modules/libgmp:
5737         * modules/libgmp-tests, tests/test-libgmp.c: New files.
5738         * lib/mini-gmp.c, lib/mini-gmp.h: New files, copied from GMP.
5740 2020-07-05  Bruno Haible  <bruno@clisp.org>
5742         mkancesdirs: Trim module dependencies.
5743         * lib/mkancesdirs.c: Include filename.h instead of dirname.h.
5744         * modules/mkancesdirs (Depends-on): Remove dirname-lgpl. Add filename.
5746 2020-07-05  Bruno Haible  <bruno@clisp.org>
5748         getprogname: Trim module dependencies.
5749         * lib/getprogname.c: Include basename-lgpl.h instead of dirname.h.
5750         * modules/getprogname (Depends-on): Remove dirname-lgpl. Add
5751         basename-lgpl.
5753 2020-07-05  Bruno Haible  <bruno@clisp.org>
5755         filenamecat-lgpl: Trim module dependencies.
5756         * lib/filenamecat-lgpl.c: Include basename-lgpl.h, filename.h instead of
5757         dirname.h.
5758         * modules/filenamecat-lgpl (Depends-on): Remove dirname-lgpl. Add
5759         basename-lgpl, filename.
5761 2020-07-05  Bruno Haible  <bruno@clisp.org>
5763         backupfile, backup-rename: Trim module dependencies.
5764         * lib/backupfile.c: Include basename-lgpl.h instead of dirname.h.
5765         * modules/backupfile (Depends-on): Remove dirname-lgpl. Add
5766         basename-lgpl.
5767         * modules/backup-rename (Depends-on): Likewise.
5769 2020-07-05  Bruno Haible  <bruno@clisp.org>
5771         argp: Trim module dependencies.
5772         * lib/argp-namefrob.h: Include basename-lgpl.h instead of dirname.h.
5773         * modules/argp (Depends-on): Remove dirname-lgpl. Add basename-lgpl.
5775 2020-07-05  Bruno Haible  <bruno@clisp.org>
5777         basename-lgpl: New module.
5778         * lib/basename-lgpl.h: New file, based on lib/dirname.h and
5779         lib/basename-lgpl.c.
5780         * lib/basename-lgpl.c: Include basename-lgpl.h, not dirname.h. Include
5781         <stdbool.h>, filename.h.
5782         (last_component): Rename a local variable.
5783         * lib/dirname.h: Include basename-lgpl.h.
5784         (DOUBLE_SLASH_IS_DISTINCT_ROOT): Remove macro.
5785         (last_component, base_len): Remove declarations.
5786         * modules/basename-lgpl: New file.
5787         * modules/dirname-lgpl (Files): Remove lib/basename-lgpl.c.
5788         (Depends-on): Add basename-lgpl. Remove double-slash-root.
5789         (Makefile.am): Don't compile basename-lgpl.c.
5790         * doc/posix-functions/basename.texi: Mention the module 'basename-lgpl',
5791         not 'dirname'.
5793 2020-07-05  Bruno Haible  <bruno@clisp.org>
5795         dirname, dirname-lgpl: Simplify.
5796         * m4/dirname.m4: Remove file.
5797         * modules/dirname (configure.ac): Don't invoke gl_DIRNAME.
5798         * modules/dirname-lgpl (Files): Remove m4/dirname.m4.
5799         (configure.ac): Don't invoke gl_DIRNAME_LGPL.
5801 2020-07-05  Bernhard Voelker  <mail@bernhard-voelker.de>
5803         tests: avoid shadowing warning
5804         * tests/test-memchr.c (main): Give page_boundary variable a tight scope.
5806 2020-07-05  Bruno Haible  <bruno@clisp.org>
5808         supersede: Add tests.
5809         * tests/test-supersede.c: New file.
5810         * tests/test-supersede-open.h: New file.
5811         * tests/test-supersede-fopen.h: New file.
5812         * modules/supersede-tests: New file.
5814         supersede: New module.
5815         * lib/supersede.h: New file.
5816         * lib/supersede.c: New file.
5817         * m4/supersede.m4: New file.
5818         * modules/supersede: New file.
5820 2020-07-05  Bruno Haible  <bruno@clisp.org>
5822         Add some copyright headers.
5823         * lib/dev-ino.h: Add copyright header.
5824         * lib/di-set.h: Likewise.
5825         * lib/fchown-stub.c: Likewise.
5826         * lib/file-set.h: Likewise.
5827         * lib/hash-triple.h: Likewise.
5828         * lib/idcache.h: Likewise.
5829         * lib/ino-map.h: Likewise.
5830         * lib/mkancesdirs.h: Likewise.
5831         * lib/scratch_buffer.h: Likewise.
5832         * lib/se-context.in.h: Likewise.
5833         * lib/stdopen.h: Likewise.
5834         * lib/userspec.h: Likewise.
5836 2020-07-04  Bruno Haible  <bruno@clisp.org>
5838         getrandom: Relicense under LGPLv2+.
5839         Paul Eggert's approval is in
5840         <https://lists.gnu.org/archive/html/bug-gnulib/2020-07/msg00023.html>.
5841         * modules/getrandom (License): Change to LGPLv2+.
5843 2020-07-04  Bruno Haible  <bruno@clisp.org>
5845         getumask: Add tests.
5846         * tests/test-getumask.c: New file.
5847         * modules/getumask-tests: New file.
5849         getumask: New module.
5850         * lib/sys_stat.in.h (getumask): New declaration.
5851         * lib/getumask.c: New file.
5852         * m4/getumask.m4: New file.
5853         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether getumask is
5854         declared.
5855         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_GETUMASK, HAVE_GETUMASK.
5856         * modules/sys_stat (Makefile.am): Substitute GNULIB_GETUMASK,
5857         HAVE_GETUMASK.
5858         * modules/getumask: New file.
5859         * tests/test-sys_stat-c++.cc (getumask): Check signature.
5860         * doc/glibc-functions/getumask.texi: New file.
5861         * doc/gnulib.texi (Glibc sys/stat.h): Include it.
5863 2020-07-04  Bruno Haible  <bruno@clisp.org>
5865         clean-temp: Add support for temporary files with given mode.
5866         * lib/clean-temp.h (gen_register_open_temp): Add mode argument.
5867         * lib/clean-temp.c (struct try_create_file_params): New type.
5868         (try_create_file): New function.
5869         (gen_register_open_temp): Add mode argument. Use try_tempname instead of
5870         gen_tempname.
5872 2020-07-04  Bruno Haible  <bruno@clisp.org>
5874         clean-temp: Document limitations.
5875         * lib/clean-temp.h: Document limitations.
5877 2020-07-04  Bruno Haible  <bruno@clisp.org>
5879         clean-temp: Add support for temporary files with unpredictable names.
5880         * lib/clean-temp.h (gen_register_open_temp): New declaration.
5881         * lib/clean-temp.c: Include tempname.h.
5882         (gen_register_open_temp): New function.
5883         * modules/tempname (configure.ac): Define a module indicator.
5885 2020-07-04  Bruno Haible  <bruno@clisp.org>
5887         clean-temp: Add support for temporary files anywhere in the file system.
5888         * lib/clean-temp.h (register_temporary_file, unregister_temporary_file,
5889         cleanup_temporary_file): New declarations.
5890         * lib/clean-temp.c (file_cleanup_list_lock, file_cleanup_list): New
5891         variables.
5892         (dir_cleanup_list_lock): Renamed from cleanup_list_lock.
5893         (dir_cleanup_list): Renamed from cleanup_list.
5894         (cleanup_action): Process the file_cleanup_list as well.
5895         (do_init_clean_temp): New function.
5896         (clean_temp_once): New variable.
5897         (init_clean_temp): New function.
5898         (create_temp_dir): Invoke it.
5899         (register_temporary_file, unregister_temporary_file,
5900         cleanup_temporary_file): New functions.
5901         (do_unlink, do_rmdir): Remove 'dir' argument. Add 'cleanup_verbose'
5902         argument.
5904 2020-07-04  Bruno Haible  <bruno@clisp.org>
5906         clean-temp: Improve comments.
5907         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
5908         fwriteerror_temp, close_stream_temp): Clarify intended use.
5909         * lib/clean-temp.c: Likewise.
5911 2020-07-04  Bruno Haible  <bruno@clisp.org>
5913         clean-temp: Make multithread-safe, part 2.
5914         * lib/fatal-signal.h: Include <signal.h>.
5915         (get_fatal_signal_set): New declaration.
5916         * lib/fatal-signal.c (get_fatal_signal_set): New function.
5917         * lib/clean-temp.c: Include asyncsafe-spin.h, gl_linked_list.h.
5918         (struct closeable_fd): New type.
5919         (fatal_signal_set): New variable.
5920         (init_fatal_signal_set): New function.
5921         (asyncsafe_close, asyncsafe_fclose_variant): New functions.
5922         (cleanup_action): Invoke asyncsafe_close instead of close.
5923         (create_temp_dir): Invoke init_fatal_signal_set.
5924         (register_fd): Use a plain linked list. Add a 'struct closeable_fd *'
5925         element.
5926         (unregister_fd): Remove function.
5927         (close_temp): Cleanup descriptors list on the fly. Invoke
5928         init_fatal_signal_set. Invoke asyncsafe_close instead of close.
5929         (fclose_variant_temp): New function.
5930         (fclose_temp, fwriteerror_temp, close_stream_temp): Use it.
5931         * modules/clean-temp (Depends-on): Add asyncsafe-spin, linked-list.
5933 2020-07-04  Bruno Haible  <bruno@clisp.org>
5935         clean-temp: Make multithread-safe, part 1.
5936         * lib/clean-temp.c: Include glthread/lock.h.
5937         (cleanup_list_lock): New variable.
5938         (register_temp_file, unregister_temp_file, register_temp_subdir,
5939         unregister_temp_subdir, cleanup_temp_dir_contents): Use it.
5940         (create_temp_dir): Likewise. Don't free the old array.
5941         (descriptors_lock): New variable.
5942         (register_fd, unregister_fd): Use it.
5943         * modules/clean-temp (Depends-on): Add lock.
5945 2020-07-04  Bruno Haible  <bruno@clisp.org>
5947         fatal-signal: Make multithread-safe.
5948         * lib/fatal-signal.c (init_fatal_signals): Add comment.
5949         (do_init_fatal_signal_set): New function, extracted from
5950         init_fatal_signal_set.
5951         (fatal_signal_set_once): New variable.
5952         (init_fatal_signal_set): Use gl_once.
5954 2020-07-03  Bruno Haible  <bruno@clisp.org>
5956         getrandom: Fix compilation error on native Windows (regr. 2020-06-28).
5957         * lib/getrandom.c: Don't include <ntdef.h>. Instead, define NTSTATUS.
5958         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Include <windows.h> before
5959         <bcrypt.h>.
5961 2020-07-03  Bruno Haible  <bruno@clisp.org>
5963         dfa tests: Follow common file naming conventions.
5964         * tests/test-dfa-match-aux.c: Renamed from tests/dfa-match-aux.c.
5965         * tests/test-dfa-match.sh: Renamed from tests/dfa-match.sh. Update.
5966         * tests/test-dfa-invalid-char-class.sh: Renamed from
5967         tests/dfa-invalid-char-class.sh. Update.
5968         * modules/dfa-tests (Files, Makefile.am): Update.
5970 2020-07-03  Bruno Haible  <bruno@clisp.org>
5972         asyncsafe-spin: Use GCC extended asm syntax for SunStudio 12 compiler.
5973         * lib/asyncsafe-spin.c (memory_barrier, atomic_compare_and_swap): Use
5974         the GCC extended asm syntax also for the Sun Studio 12 compilers.
5976 2020-07-03  Bruno Haible  <bruno@clisp.org>
5978         asyncsafe-spin: Reduce code duplication.
5979         * lib/asyncsafe-spin.c (do_lock, do_unlock): New functions.
5980         (asyncsafe_spin_lock, asyncsafe_spin_unlock): Use them.
5981         * modules/asyncsafe-spin (configure.ac): Require AC_C_INLINE.
5983 2020-07-03  Bruno Haible  <bruno@clisp.org>
5985         lchmod: Simplify after 2020-02-22 change.
5986         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Don't require AC_C_INLINE.
5988 2020-07-03  Bruno Haible  <bruno@clisp.org>
5990         gen-uni-tables: Make sure the compiler does not barf on 'inline'.
5991         * modules/gen-uni-tables (configure.ac): Require AC_C_INLINE.
5993 2020-07-03  Bruno Haible  <bruno@clisp.org>
5995         dfa: Make sure the compiler does not barf on 'inline'.
5996         * modules/dfa (configure.ac): Require AC_C_INLINE.
5998 2020-07-03  Bruno Haible  <bruno@clisp.org>
6000         bitset: Make sure the compiler does not barf on 'inline'.
6001         * modules/bitset (configure.ac): New section.
6003 2020-07-01  Paul Eggert  <eggert@cs.ucla.edu>
6005         manywarnings: improve port to GCC 10.1
6006         * build-aux/gcc-warning.spec: Also list warnings that are default
6007         or are enabled by already-given flags.  This lets us speed up
6008         checking for attributes, and makes the generated compilation
6009         commands shorter.  Add -Wanalyzer-too-complex (too much noise).
6010         * m4/manywarnings.m4 (gl_MANYWARN_COMPLEMENT)
6011         (gl_MANYWARN_ALL_GCC): Use gl_AS_VAR_APPEND to append
6012         to shell variables that may have long values.
6013         (gl_MANYWARN_ALL_GCC): Omit flags that are default or are
6014         consequences of other flags, to speed up checking and
6015         shorten commands.
6017         tests: pacify gcc -fanalyzer on zerosize_ptr
6018         * tests/test-memcasecmp.c (main):
6019         * tests/test-memchr.c (main):
6020         * tests/test-memchr2.c (main):
6021         * tests/test-memcmp.c (main):
6022         * tests/test-memmem.c (main):
6023         * tests/test-memrchr.c (main):
6024         * tests/unistr/test-chr.h (main):
6025         * tests/unistr/test-cmp.h (test_cmp):
6026         Check whether zerosize_ptr returns NULL before using it.
6027         This pacifies GCC 10.1’s new fanalyzer option, and matches
6028         other uses of zerosize_ptr.
6030 2020-07-01  Bruno Haible  <bruno@clisp.org>
6032         asyncsafe-spin: Add tests.
6033         * tests/test-asyncsafe-spin1.c: New file.
6034         * tests/test-asyncsafe-spin2.c: New file, based on tests/test-lock.c and
6035         tests/test-pthread-spin.c.
6036         * modules/asyncsafe-spin-tests: New file.
6038 2020-07-01  Bruno Haible  <bruno@clisp.org>
6040         asyncsafe-spin: New module.
6041         * lib/asyncsafe-spin.h: New file.
6042         * lib/asyncsafe-spin.c: New file, based on lib/pthread-spin.c.
6043         * modules/asyncsafe-spin: New file.
6045 2020-07-01  Bruno Haible  <bruno@clisp.org>
6047         windows-spin: Fix race condition on multiprocessor systems.
6048         * lib/windows-spin.c (glwthread_spin_init): Add a memory barrier.
6050 2020-07-01  Bruno Haible  <bruno@clisp.org>
6052         pthread-spin: Add optimized fallback for GCC versions >= 4.1, < 4.7.
6053         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6054         pthread_spin_trylock, pthread_spin_unlock): For GCC >= 4.1, < 4.7, use
6055         an implementation based on other GCC built-ins.
6057 2020-07-01  Bruno Haible  <bruno@clisp.org>
6059         pthread-spin: Optimize fallback for GCC versions >= 4.7.
6060         * lib/pthread-spin.c (pthread_spin_init, pthread_spin_lock,
6061         pthread_spin_trylock, pthread_spin_unlock): Use a lock word instead of a
6062         lock byte.
6064 2020-07-01  Bruno Haible  <bruno@clisp.org>
6066         pthread-spin: Add error checking.
6067         * lib/pthread-spin.c: Include <stdbool.h>.
6068         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock,
6069         pthread_spin_unlock) [GCC>=4.7]: Prefer an implementation that verifies
6070         the unlocks.
6071         * modules/pthread-spin (Depends-on): Add stdbool.
6073 2020-07-01  Bruno Haible  <bruno@clisp.org>
6075         pthread-spin: Add tests.
6076         * tests/test-pthread-spin.c: New file, based on tests/test-lock.c.
6077         * modules/pthread-spin-tests: New file.
6079 2020-07-01  Bruno Haible  <bruno@clisp.org>
6081         tests: Reduce code duplication.
6082         * tests/atomic-int-posix.h: New file, extracted from
6083         tests/test-pthread-mutex.c.
6084         * tests/test-pthread-mutex.c: Include it. Remove the corresponding code.
6085         * tests/test-pthread-rwlock.c: Likewise.
6086         * modules/pthread-mutex-tests (Files): Add tests/atomic-int-posix.h.
6087         * modules/pthread-rwlock-tests (Files): Likewise.
6089 2020-07-01  Bruno Haible  <bruno@clisp.org>
6091         tests: Refactor.
6092         * tests/atomic-int-isoc.h: New file, extracted from tests/test-mtx.c.
6093         * tests/test-mtx.c: Include it. Remove the corresponding code.
6094         * modules/mtx-tests (Files): Add tests/atomic-int-isoc.h.
6096 2020-07-01  Bruno Haible  <bruno@clisp.org>
6098         tests: Refactor.
6099         * tests/atomic-int-gnulib.h: New file, extracted from tests/test-lock.c.
6100         * tests/test-lock.c: Include it. Remove the corresponding code.
6101         * modules/lock-tests (Files): Add tests/atomic-int-gnulib.h.
6103 2020-06-29  Bruno Haible  <bruno@clisp.org>
6105         sys_socket: Don't define socklen_t if it is already defined on mingw.
6106         Reported by Keith Marshall <keith.d.marshall@ntlworld.com> in
6107         <https://savannah.gnu.org/bugs/?57725>,
6108         by Rahul Das <bokul_4u@yahoo.com> in
6109         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00081.html>,
6110         and by Eli Zaretskii <eliz@gnu.org> in
6111         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00068.html>.
6112         * lib/sys_socket.in.h (socklen_t): Remove definition.
6114 2020-06-29  Bruno Haible  <bruno@clisp.org>
6116         alloca-opt: Fix warning on mingw.
6117         Reported and solution by Eli Zaretskii <eliz@gnu.org> in
6118         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00069.html>.
6119         * lib/alloca.in.h: On mingw, include <alloca.h> and then test again
6120         whether alloca is defined.
6122 2020-06-28  Paul Eggert  <eggert@cs.ucla.edu>
6124         getrandom: do not depend on ‘open’ on mingw
6125         Similarly for at-internal, getloadavg.  These modules do not call
6126         the ‘open’ function when they are compiled on mingw.  On mingw,
6127         this avoids having to compile open.c when building Emacs, which
6128         does its own thing with ‘open’.
6129         * modules/at-internal, modules/getloadavg, modules/getrandom:
6130         (Depends-on): Don’t depend on ‘open’ on mingw.
6131         (Depends-on): Require AC_CANONICAL_HOST, for host_os.
6132         * modules/getloadavg (Depends-on):
6133         Depend on intprops, open, stdbool, stdlib only if compiling
6134         getloadavg.c.
6136 2020-06-28  Bruno Haible  <bruno@clisp.org>
6138         doc: Add a note about sigprocmask vs. pthread_sigmask.
6139         * doc/posix-functions/sigprocmask.texi: Add note.
6141 2020-06-28  Bruno Haible  <bruno@clisp.org>
6143         getrandom: Fix compilation errors on older versions of mingw.
6144         Reported by Eli Zaretskii <eliz@gnu.org> in
6145         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00059.html>.
6146         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Test whether <bcrypt.h> exists.
6147         * lib/getrandom.c: If <bcrypt.h> is not available, include <ntdef.h> and
6148         define/declare BCRYPT_ALG_HANDLE, BCRYPT_USE_SYSTEM_PREFERRED_RNG,
6149         BCryptGenRandom ourselves.
6151 2020-06-28  Bruno Haible  <bruno@clisp.org>
6153         clean-temp: Fix wrong errno in error message.
6154         * lib/clean-temp.c (create_temp_dir): Save errno around
6155         unblock_fatal_signals call.
6157 2020-06-27  Bruno Haible  <bruno@clisp.org>
6159         fatal-signal: Make multithread-safe.
6160         * lib/fatal-signal.c (at_fatal_signal): Don't free the old actions array.
6162 2020-06-27  Bruno Haible  <bruno@clisp.org>
6164         clean-temp: Don't force deletion of temporary files on native Windows.
6165         * lib/clean-temp.h (open_temp, fopen_temp): Add delete_on_close
6166         argument.
6167         * lib/clean-temp.c (open_temp, fopen_temp): Likewise.
6168         * NEWS: Mention the change.
6169         * lib/javacomp.c (write_temp_file): Update.
6171 2020-06-27  Bruno Haible  <bruno@clisp.org>
6173         fatal-signal: Make multithread-safe.
6174         * lib/fatal-signal.c: Include glthread/lock.h.
6175         (at_fatal_signal_lock): New variable.
6176         (at_fatal_signal): Use it.
6177         (fatal_signals_block_lock, fatal_signals_block_counter): New variables.
6178         (block_fatal_signals, unblock_fatal_signals): Use them.
6179         * modules/fatal-signal (Depends-on): Add lock.
6181 2020-06-27  Paul Eggert  <eggert@cs.ucla.edu>
6183         getloadavg: don’t depend on fopen-gnu
6184         This is for Emacs, which does not need fopen-gnu for anything else,
6185         and which would need it only on a NetBSD platform where getloadavg
6186         does not work (does that even happen?).
6187         * lib/getloadavg.c (getloadavg) [__NetBSD__]: Use open, not fopen.
6188         * modules/getloadavg (Depends-on): Remove fopen-gnu.
6190         * tests/test-getloadavg.c (main): Fix typo.
6192 2020-06-27  Bruno Haible  <bruno@clisp.org>
6194         tempname et al.: Fix link errors on MSVC (regression from 2020-05-31).
6195         * modules/tempname (Link): New section.
6196         * modules/mkdtemp (Link): Likewise.
6197         * modules/clean-temp (Link): Likewise.
6198         * modules/mkstemp (Link): Likewise.
6199         * modules/stdlib-safer (Link): Likewise.
6200         * modules/mkstemps (Link): Likewise.
6201         * modules/mkostemp (Link): Likewise.
6202         * modules/mkostemps (Link): Likewise.
6203         * modules/tmpfile (Link): Likewise.
6204         * modules/tmpfile-safer (Link): Likewise.
6205         * modules/javacomp (Link): Add $(LIB_GETRANDOM).
6206         * modules/argv-iter-tests (Makefile.am): Link test-argv-iter with
6207         $(LIB_GETRANDOM).
6208         * NEWS: Mention the changes.
6210 2020-06-27  Bruno Haible  <bruno@clisp.org>
6212         fopen-gnu: Simplify code.
6213         * lib/fopen.c: Include <stdbool.h>.
6214         (rpl_fopen): Use a single variable open_flags instead of
6215         open_flags_standard and open_flags_gnu. Make open_flags_gnu a bool.
6216         * modules/fopen (Depends-on): Add stdbool.
6218 2020-06-26  Bruno Haible  <bruno@clisp.org>
6220         canonicalize: Improve documentation.
6221         * lib/canonicalize.h (canonicalize_filename_mode): Document the failure
6222         return convention.
6224 2020-06-26  Bruno Haible  <bruno@clisp.org>
6226         xgetcwd: Improve documentation.
6227         * lib/xgetcwd.c (xgetcwd): Document the failure return convention.
6229 2020-06-26  Bruno Haible  <bruno@clisp.org>
6231         getcwd: Improve documentation.
6232         * lib/getcwd.c (__getcwd): Document the failure return convention.
6234 2020-06-26  Bruno Haible  <bruno@clisp.org>
6236         fchdir: Improve documentation.
6237         * lib/fchdir.c (get_name, _gl_register_fd): Document the failure return
6238         convention.
6240 2020-06-26  Bruno Haible  <bruno@clisp.org>
6242         filenamecat-lgpl: Set errno upon failure.
6243         * lib/filenamecat-lgpl.c (mfile_name_concat): Document the failure
6244         return convention.
6245         * modules/filenamecat-lgpl (Depends-on): Add malloc-posix.
6247 2020-06-26  Bruno Haible  <bruno@clisp.org>
6249         areadlink-with-size: Set errno upon failure.
6250         * lib/areadlink-with-size.c (areadlink_with_size): Set errno when malloc
6251         fails.
6252         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Add comment.
6254 2020-06-26  Bruno Haible  <bruno@clisp.org>
6256         copy-file: Shrink dependencies.
6257         * modules/copy-file (Depends-on): Remove acl. Add acl-permissions,
6258         qcopy-acl.
6260 2020-06-26  Bruno Haible  <bruno@clisp.org>
6262         doc: Mention declaration fixes implemented by some modules.
6263         * doc/posix-functions/chdir.texi: Mention the module 'chdir'.
6264         * doc/posix-functions/close.texi: Mention that Gnulib makes the function
6265         declaration appear in <unistd.h>.
6266         * doc/posix-functions/dup.texi: Likewise.
6267         * doc/posix-functions/dup2.texi: Likewise.
6268         * doc/posix-functions/gethostname.texi: Likewise.
6269         * doc/posix-functions/isatty.texi: Likewise.
6270         * doc/posix-functions/lseek.texi: Likewise.
6271         * doc/posix-functions/unlink.texi: Likewise.
6272         * doc/posix-functions/read.texi: Mention the module 'read'.
6273         * doc/posix-functions/write.texi: Mention the effects of the module
6274         'write'.
6276 2020-06-25  Marc Nieper-Wißkirchen  <marc@nieper-wisskirchen.de>
6278         c-dtoastr, c-ldtoastr: new modules
6279         These modules provide the same functionality as the modules
6280         dtoastr and ldtoastr except for the formatting taking place in the
6281         C locale.
6282         * MODULES.html.sh: Add c-dtoastr and c-ldtoastr.
6283         * lib/c-dtoastr.c, lib/c-ldtoastr.c: New files.
6284         * lib/ftoastr.c: Prefix exported functions when the macro C_LOCALE is
6285         defined.  Use c_snprintf and c_strtod/c_strtold instead of
6286         snprintf and strtod/strtold whhen the macro C_LOCALE is defined.
6287         * lib/ftoastr.h: Add prototypes for c_dtoastr and c_ldtoastr.
6288         * modules/c-dtoastr, modules/c-dtoastr-tests, modules/c-ldtoastr,
6289         modules/c-ldtoastr-tests: New files.
6290         * tests/test-c-dtoastr.c, tests/test-c-dtoastr.sh,
6291         tests-c-ldtoastr.c tests-c-ldtoastr.sh: New files.
6293 2020-06-21  Bruno Haible  <bruno@clisp.org>
6295         tzset: Fix compilation warnings on mingw (regression from 2017-05-01).
6296         * lib/tzset.c: Include <stdlib.h>, <string.h>.
6298 2020-06-16  Bruno Haible  <bruno@clisp.org>
6300         thread: Avoid possible compiler warnings in uses of gl_thread_exit.
6301         * lib/glthread/thread.h (gl_thread_exit): Add a cast to void.
6303 2020-06-16  Bruno Haible  <bruno@clisp.org>
6305         thread, thrd: Avoid a compiler warning.
6306         * lib/windows-thread.h (glwthread_thread_exit): Mark as non-returning.
6308 2020-06-16  Biswapriyo Nath  <nathbappai@gmail.com>  (tiny change)
6310         windows-thread: Avoid a compiler warning.
6311         * lib/windows-thread.h (glwthread_thread_exit): Change return type to
6312         void.
6313         * lib/windows-thread.c (glwthread_thread_exit): Likewise.
6315 2020-06-15  Bruno Haible  <bruno@clisp.org>
6317         unictype/joininggroup-name: Fix warning on 64-bit mingw.
6318         Reported by Biswapriyo Nath <nathbappai@gmail.com> in
6319         <https://lists.gnu.org/archive/html/bug-gnulib/2020-06/msg00036.html>.
6320         * lib/unictype/joininggroup_name.c (ELEM): Cast struct offset to size_t
6321         first.
6323 2020-06-06  Bruno Haible  <bruno@clisp.org>
6325         calloc-gnu tests: Avoid a test failure with clang.
6326         * tests/test-calloc-gnu.c (main): Mark the pointer variable as
6327         'volatile', to defeat compiler optimizations.
6329 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6331         getloadavg: fix double-increment bug
6332         * lib/getloadavg.c (getloadavg): Fix double-increment typo on
6333         Linux without glibc, Android, Cygwin.  This fixes a bug I
6334         introduced in 2011-02-08T20:23:29Z!eggert@cs.ucla.edu.
6335         Problem and fix reported by Semen Verchenko in:
6336         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00007.html
6338         tempname: use getrandom, not getentropy
6339         This removes a dependency, as getentropy depends on getrandom.
6340         * lib/tempname.c: Include sys/random.h instead of unistd.h.
6341         (RANDOM_BITS) [!_LIBC]: Use getrandom, not getentropy.
6342         * modules/tempname (Depends-on): Depend on getrandom, not getentropy.
6344 2020-06-01  Bruno Haible  <bruno@clisp.org>
6346         doc: New chapter 'Multithreading'.
6347         * doc/multithread.texi: New file.
6348         * doc/gnulib.texi: Include it.
6350 2020-06-01  Bruno Haible  <bruno@clisp.org>
6352         doc: Move 'Running self-tests under valgrind' section.
6353         * doc/gnulib.texi (Build Infrastructure Modules): Include
6354         valgrind-tests.texi here...
6355         (Miscellaneous Notes): ... not here.
6357 2020-06-01  Bruno Haible  <bruno@clisp.org>
6359         doc: Move 'Visual Studio Compatibility' section.
6360         * doc/gnulib.texi (Native Windows Support): Include ld-output-def.texi
6361         here...
6362         (Build Infrastructure Modules): ... not here.
6364 2020-06-01  Paul Eggert  <eggert@cs.ucla.edu>
6366         doc: improve randomness discussion
6367         Inspired by comments from Jeffrey Walton in:
6368         https://lists.gnu.org/r/bug-gnulib/2020-06/msg00002.html
6369         * doc/glibc-functions/getentropy.texi (getentropy):
6370         * doc/glibc-functions/getrandom.texi (getrandom):
6371         Improve discussion of problems with "random" data,
6372         and cite Ristenpart & Yilek.  Also, mention GRND_INSECURE.
6374 2020-06-01  Bruno Haible  <bruno@clisp.org>
6376         doc: Fix Texinfo syntax error.
6377         * doc/glibc-functions/getrandom.texi: Add missing '@item'.
6379 2020-06-01  Asher Gordon  <AsDaGo@posteo.net>
6381         doc: Change '.' to '@.' where appropriate.
6382         * doc/c-ctype.texi: Change '.' to '@.' where appropriate.
6383         * doc/glibc-functions/fstatfs.texi: Likewise.
6384         * doc/glibc-functions/fts_children.texi: Likewise.
6385         * doc/glibc-functions/fts_read.texi: Likewise.
6386         * doc/glibc-functions/getdirentries.texi: Likewise.
6387         * doc/glibc-functions/mkostemp.texi: Likewise.
6388         * doc/glibc-functions/mkostemps.texi: Likewise.
6389         * doc/glibc-functions/mkstemps.texi: Likewise.
6390         * doc/glibc-functions/preadv.texi: Likewise.
6391         * doc/glibc-functions/pwritev.texi: Likewise.
6392         * doc/glibc-functions/sendfile.texi: Likewise.
6393         * doc/glibc-functions/statfs.texi: Likewise.
6394         * doc/gnulib-intro.texi: Likewise.
6395         * doc/gnulib-tool.texi: Likewise.
6396         * doc/intprops.texi: Likewise.
6397         * doc/lib-symbol-visibility.texi: Likewise.
6398         * doc/licenses-texi.texi: Likewise.
6399         * doc/pastposix-functions/bcmp.texi: Likewise.
6400         * doc/pastposix-functions/bcopy.texi: Likewise.
6401         * doc/pastposix-functions/bzero.texi: Likewise.
6402         * doc/pastposix-functions/ecvt.texi: Likewise.
6403         * doc/pastposix-functions/fcvt.texi: Likewise.
6404         * doc/pastposix-functions/ftime.texi: Likewise.
6405         * doc/pastposix-functions/gcvt.texi: Likewise.
6406         * doc/pastposix-functions/getwd.texi: Likewise.
6407         * doc/pastposix-functions/index.texi: Likewise.
6408         * doc/pastposix-functions/mktemp.texi: Likewise.
6409         * doc/pastposix-functions/rindex.texi: Likewise.
6410         * doc/pastposix-functions/wcswcs.texi: Likewise.
6411         * doc/posix-functions/aio_cancel.texi: Likewise.
6412         * doc/posix-functions/aio_error.texi: Likewise.
6413         * doc/posix-functions/aio_fsync.texi: Likewise.
6414         * doc/posix-functions/aio_read.texi: Likewise.
6415         * doc/posix-functions/aio_return.texi: Likewise.
6416         * doc/posix-functions/aio_suspend.texi: Likewise.
6417         * doc/posix-functions/aio_write.texi: Likewise.
6418         * doc/posix-functions/creat.texi: Likewise.
6419         * doc/posix-functions/ctime.texi: Likewise.
6420         * doc/posix-functions/daylight.texi: Likewise.
6421         * doc/posix-functions/fgetpos.texi: Likewise.
6422         * doc/posix-functions/fopen.texi: Likewise.
6423         * doc/posix-functions/freopen.texi: Likewise.
6424         * doc/posix-functions/fseeko.texi: Likewise.
6425         * doc/posix-functions/fsetpos.texi: Likewise.
6426         * doc/posix-functions/fstatat.texi: Likewise.
6427         * doc/posix-functions/fstatvfs.texi: Likewise.
6428         * doc/posix-functions/ftello.texi: Likewise.
6429         * doc/posix-functions/ftruncate.texi: Likewise.
6430         * doc/posix-functions/getrlimit.texi: Likewise.
6431         * doc/posix-functions/lio_listio.texi: Likewise.
6432         * doc/posix-functions/localtime.texi: Likewise.
6433         * doc/posix-functions/lseek.texi: Likewise.
6434         * doc/posix-functions/mkstemp.texi: Likewise.
6435         * doc/posix-functions/mktime.texi: Likewise.
6436         * doc/posix-functions/open.texi: Likewise.
6437         * doc/posix-functions/openat.texi: Likewise.
6438         * doc/posix-functions/opendir.texi: Likewise.
6439         * doc/posix-functions/pread.texi: Likewise.
6440         * doc/posix-functions/pwrite.texi: Likewise.
6441         * doc/posix-functions/readdir.texi: Likewise.
6442         * doc/posix-functions/readdir_r.texi: Likewise.
6443         * doc/posix-functions/scandir.texi: Likewise.
6444         * doc/posix-functions/seekdir.texi: Likewise.
6445         * doc/posix-functions/setrlimit.texi: Likewise.
6446         * doc/posix-functions/statvfs.texi: Likewise.
6447         * doc/posix-functions/strftime.texi: Likewise.
6448         * doc/posix-functions/telldir.texi: Likewise.
6449         * doc/posix-functions/timezone.texi: Likewise.
6450         * doc/posix-functions/tmpfile.texi: Likewise.
6451         * doc/posix-functions/truncate.texi: Likewise.
6452         * doc/posix-functions/tzname.texi: Likewise.
6453         * doc/posix-functions/wcsftime.texi: Likewise.
6454         * doc/windows-sockets.texi: Likewise.
6456 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6458         getrandom-tests: do not assume GRND_RANDOM yields short read
6459         * tests/test-getrandom.c (main): Omit assertion that
6460         getrandom (b, sizeof b, GRND_RANDOM | GRND_NONBLOCK) < sizeof b
6461         when b’s size is 100000.  This assertion fails with Linux kernel
6462         5.6.13, as that kernel ignores the GRND_RANDOM flag.
6463         The separate blocking pool is going away in the Linux kernel, and
6464         they’ve added a flag GRND_INSECURE instead; see:
6465         https://lore.kernel.org/linux-api/705c5a091b63cc5da70c99304bb97e0109be0a26.1577088521.git.luto@kernel.org/
6466         The assertion was iffy anyway; what’s to prevent a kernel from
6467         lazily filling a large buffer with random bytes?
6469         read-file-test: pacify --enable-gcc-warnings
6470         * tests/test-read-file.c (test_read_file): Now static.
6472         tempname: merge from glibc and coreutils
6473         Also, merge in Gnulib’s more-recent methods of making it easier
6474         to share between Gnulib and glibc, and fix a few randomness
6475         glitches.
6476         * lib/tempname.c: Include libc-config.h, not config.h, if !_LIBC.
6477         (__set_errno): Remove; libc-config.h does that for us.
6478         Do not include <sys/time.h>.
6479         (__secure_getenv) [_LIBC]: New macro.
6480         (__try_tempname, __getpid, __gettimeofday) [!_LIBC]: Remove macros.
6481         (RANDOM_BITS): Rewrite.
6482         (RANDOM_VALUE_MAX, BASE_62_DIGITS, BASE_62_POWER): New macros.
6483         (random_value): New typedef.
6484         (try_file, try_dir, try_nocreate): Move up.
6485         (gen_tempname_len, try_tempname_len): New functions.
6486         (gen_tempname_len): Use a constant array rather than a switch.
6487         (try_tempname_len): Don’t assume string length fits in int.
6488         Generalize use of RANDOM_BITS.  If _LIBC, don’t assume RANDOM_BITS
6489         has enough entropy (it’s a bit short).
6490         (__gen_tempname): Rewrite in terms of gen_tempname_len.
6491         (__try_tempname): Rewrite in terms of try_tempname_len.
6492         * lib/tempname.h (gen_tempname_len, try_tempname_len): New decls.
6493         * modules/tempname (Depends-on): Remove gettimeofday, sys_time.
6494         Add getentropy, libc-config.
6496 2020-05-31  Bruno Haible  <bruno@clisp.org>
6498         getrandom, getentropy: Mention the crypto/gc-random module.
6499         Suggested by Simon Josefsson in
6500         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00400.html>.
6501         * doc/glibc-functions/getrandom.texi: Mention the quality issues and the
6502         crypto/gc-random module.
6503         * doc/glibc-functions/getentropy.texi: Likewise.
6505 2020-05-31  Bruno Haible  <bruno@clisp.org>
6507         getentropy: Enhance tests.
6508         * tests/test-getentropy.c (main): Add one more test.
6509         * tests/test-unistd-c++.cc: Check the signature of getentropy.
6511 2020-05-31  Bruno Haible  <bruno@clisp.org>
6513         getentropy: Work around a macOS and Solaris problem.
6514         * lib/unistd.in.h: Include <sys/random.h>, when needed for the
6515         'getentropy' module.
6516         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
6517         UNISTD_H_HAVE_SYS_RANDOM_H.
6518         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Set
6519         UNISTD_H_HAVE_SYS_RANDOM_H.
6520         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_SYS_RANDOM_H.
6521         * doc/glibc-functions/getentropy.texi: Document the macOS and Solaris
6522         problem. List more platforms.
6524 2020-05-31  Paul Eggert  <eggert@cs.ucla.edu>
6526         fnmatch: merge from glibc
6527         Also, merge in Gnulib’s more-recent methods of making it easier
6528         to share between Gnulib and glibc.
6529         * lib/fnmatch.c: Reorder includes to match glibc better.
6530         Include libc-config.h instead of config.h.
6531         Include alloca.h only if _LIBC || HAVE_ALLOCA.
6532         Do not include "../locale/elem-hash.h" if _LIBC.
6533         Define macros for btowc, etc. if _LIBC.  All uses simplified.
6534         Define FALLTHROUGH if _LIBC, instead of including attribute.h.
6535         Include intprops.h, since glibc has it now.
6536         (SIZE_MAX): Remove; use (size_t) -1 instead.
6537         Omit the "Comment out all this code" ifdef, since Gnulib
6538         has never really needed it.
6539         (STREQ): Remove; no longer used.
6540         (__libc_use_alloca, alloca, alloca_account): Define as
6541         needed if !_LIBC.
6542         (ISWCTYPE): Remove; all uses replaced by iswctype.
6543         (HANDLE_MULTIBYTE): Remove.  All uses removed by assuming true.
6544         (internal_function): Remove.  All uses removed.
6545         (STRUCT): New macro.
6546         (WIDE_CHAR_VERSION): Define to 0 instead of leaving undefined.
6547         (WMEMCMP): New macro.
6548         (FINDIDX): Define if _LIBC, and include <locale/weight.h>
6549         and <locale/weightwc.h>.
6550         (fnmatch): Prefer __glibc_likely and __glibc_unlikely to
6551         __builtin_expect.  Check for integer overflow more
6552         systematically.  Account for alloca storage better when
6553         recursive.  Use strnlen instead of strlen for efficiency.
6554         * lib/fnmatch_loop.c: Include stdint.h if _LIBC, for int32_t etc.
6555         (struct STRUCT): New type.
6556         (FCT, EXT): New ENDS and ALLOCA_USED args.
6557         All callers changed.
6558         (FCT): Prefer __glibc_unlikely to __builtin_expect.
6559         Simplify by assuming WIDE_CHAR_SUPPORT.
6560         Copy _LIBC code from glibc without worrying Gnulib compatibility.
6561         Cast cold to UCHAR to avoid signedness warning.
6562         (END): Check for invalid pattern.
6563         (EXT): Improve alloca/malloc checking (taken from glibc),
6564         and improve it some more by using intprops.h and checking
6565         for integer overflow and using bool for booleans.
6566         * lib/libc-config.h (compat_symbol): New macro.
6567         (versioned_symbol): Make it ‘extern int dummy’ so that it’s
6568         acceptable to non-GCC when a trailing semicolon is added.
6569         * modules/fnmatch (Depends-on): Add alloca-opt, intprops,
6570         libc-config, strnlen.  Remove alloca.
6572 2020-05-31  Bruno Haible  <bruno@clisp.org>
6574         getrandom: Doc and test tweaks.
6575         * lib/getrandom.c (getrandom): Mention that it never returns 0, and that
6576         it sets errno when failing.
6577         * tests/test-getrandom.c (main): Disable the high-quality check on those
6578         platforms on which it fails.
6579         * doc/glibc-functions/getrandom.texi: Add Minix, AIX, HP-UX, IRIX,
6580         Cygwin to the list of platforms that don't have the function. Add a note
6581         about the quality of the result.
6582         * doc/glibc-headers/sys_random.texi: Don't mention the 'getrandom'
6583         declaration; this is fixed by module 'getrandom'.
6585 2020-05-31  Bruno Haible  <bruno@clisp.org>
6587         getrandom: Add support for native Windows.
6588         * lib/getrandom.c: Include <errno.h>, <windows.h>, <bcrypt.h>,
6589         <wincrypt.h>.
6590         (CRYPT_VERIFY_CONTEXT): New macro.
6591         (LoadLibrary, CryptAcquireContext): Redirect to the variant with suffix
6592         'A'.
6593         (GetProcAddress): New macro.
6594         (BCryptGenRandomFuncType): New type.
6595         (BCryptGenRandomFunc, initialized): New variables.
6596         (initialize): New function.
6597         (getrandom): On native Windows, use <bcrypt.h> API when available, and
6598         <wincrypt.h> API as fallback.
6599         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set LIB_GETRANDOM.
6600         * modules/getrandom (Link): New section.
6601         * modules/getentropy (Link): Likewise.
6602         * modules/getrandom-tests (Makefile.am): Link test-getrandom against
6603         $(LIB_GETRANDOM).
6604         * modules/getentropy-tests (Makefile.am): Link test-getentropy against
6605         $(LIB_GETRANDOM).
6606         * modules/sys_random-c++-tests (Makefile.am): Link test-sys_random-c++
6607         against $(LIB_GETRANDOM).
6608         * doc/glibc-functions/getrandom.texi: Mention the native Windows
6609         support.
6611 2020-05-31  Bruno Haible  <bruno@clisp.org>
6613         getrandom: Simplify the determination of the random number devices.
6614         Suggested by Paul Eggert in
6615         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00383.html>.
6616         * lib/getrandom.c (NAME_OF_RANDOM_DEVICE, NAME_OF_NONCE_DEVICE): New
6617         macros.
6618         * modules/getrandom (Depends-on): Remove crypto/gc-random.
6620 2020-05-31  Bruno Haible  <bruno@clisp.org>
6622         crypto/gc-random: Fix list of crypto devices for Solaris.
6623         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case Solaris.
6625 2020-05-31  Akim Demaille  <akim@lrde.epita.fr>
6627         list: fix GCC warnings
6628         * lib/gl_anytree_list2.h (gl_tree_iterator_free)
6629         (gl_tree_next_node, gl_tree_node_nx_set_value)
6630         (gl_tree_previous_node, gl_tree_next_node):
6631         Mark unused arguments.
6632         * lib/gl_anytree_oset.h (gl_tree_iterator_free): Likewise.
6633         * lib/gl_anylinked_list2.h (gl_linked_node_value)
6634         (gl_linked_node_nx_set_value, gl_linked_iterator_free): Likewise.
6636         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Avoid using
6637         the same variable name in nested scopes.
6639 2020-05-31  Bruno Haible  <bruno@clisp.org>
6641         list-c++, set-c++, oset-c++, map-c++, omap-c++: Don't fool the compiler.
6642         Reported by Akim Demaille in
6643         <https://lists.gnu.org/archive/html/bug-bison/2020-05/msg00102.html>.
6644         * lib/gl_list.hh (gl_List::iterator::next): Avoid a reinterpret_cast.
6645         * lib/gl_set.hh (gl_Set::iterator::next): Likewise.
6646         * lib/gl_oset.hh (gl_OSet::iterator::next): Likewise.
6647         * lib/gl_map.hh (gl_Map::iterator::next): Likewise.
6648         * lib/gl_omap.hh (gl_OMap::iterator::next): Likewise.
6650 2020-05-30  Bruno Haible  <bruno@clisp.org>
6652         wmemchr: Relicense under LGPLv2+.
6653         * modules/wmemchr (License): Set to LGPLv2+.
6655 2020-05-30  Bruno Haible  <bruno@clisp.org>
6657         wmempcpy: New module.
6658         Reported by Paul Eggert in
6659         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00387.html>.
6660         * lib/wchar.in.h (wmempcpy): New declaration.
6661         * lib/wmempcpy.c: New file.
6662         * m4/wmempcpy.m4: New file.
6663         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmempcpy is declared.
6664         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMPCPY, HAVE_WMEMPCPY.
6665         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMPCPY,
6666         HAVE_WMEMPCPY.
6667         * modules/wmempcpy: New file.
6668         * tests/test-wchar-c++.cc: Check the signature of wmempcpy.
6669         * doc/glibc-functions/wmempcpy.texi: Mention the new module.
6670         * modules/mempcpy (Description): Fix typo.
6672 2020-05-30  Bruno Haible  <bruno@clisp.org>
6674         crypto/gc-random: Fix list of crypto devices for NetBSD, OpenBSD.
6675         * m4/gc-random.m4 (gl_GC_RANDOM): Don't special-case NetBSD and OpenBSD.
6677 2020-05-30  Bruno Haible  <bruno@clisp.org>
6679         sys_random: Work around macOS bug.
6680         * m4/sys_random_h.m4 (gl_HEADER_SYS_RANDOM): Include <sys/types.h> and
6681         <stdlib.h> before <sys/random.h>.
6682         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Likewise.
6683         * lib/sys_random.in.h: On macOS, include <sys/types.h> and <stdlib.h>
6684         first.
6685         * doc/glibc-headers/sys_random.texi: Mention the macOS problem.
6687 2020-05-30  Bruno Haible  <bruno@clisp.org>
6689         getrandom: Override incompatible system function on Solaris 11.
6690         * lib/sys_random.in.h (getrandom): Override if REPLACE_GETRANDOM is 1.
6691         * lib/getrandom.c (getrandom): When the system has getrandom, just
6692         invoke it.
6693         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Set REPLACE_GETRANDOM if the
6694         system's getrandom function's prototype is not the expected one.
6695         * m4/sys_random_h.m4 (gl_SYS_RANDOM_H_DEFAULTS): Initialize
6696         REPLACE_GETRANDOM.
6697         * modules/sys_random (Makefile.am): Substitute REPLACE_GETRANDOM.
6698         * modules/getrandom (modules/getrandom): Consider REPLACE_GETRANDOM.
6699         * tests/test-getrandom.c (main): Allow error EINVAL as an alternative to
6700         EAGAIN.
6701         * doc/glibc-functions/getrandom.texi: Mention the new module and the
6702         Solaris problem.
6704 2020-05-30  Bruno Haible  <bruno@clisp.org>
6706         sys_random: Add C++ tests.
6707         * tests/test-sys_random-c++.cc: New file.
6708         * modules/sys_random-c++-tests: New file.
6709         * modules/sys_random-tests (Depends-on): Depend on it.
6711         sys_random: Add tests.
6712         * tests/test-sys_random.c: New file.
6713         * modules/sys_random-tests: New file.
6715         sys_random: New module.
6716         * lib/sys_random.in.h: Use the common idioms for overridable header
6717         files.
6718         * m4/sys_random_h.m4: New file.
6719         * m4/getrandom.m4 (gl_FUNC_GETRANDOM): Require gl_SYS_RANDOM_H_DEFAULTS.
6720         * modules/sys_random: New file.
6721         * modules/getrandom (Files): Remove lib/sys_random.in.h.
6722         (Depends-on): Add sys_random.
6723         (configure.ac): Use gl_SYS_RANDOM_MODULE_INDICATOR, not
6724         gl_UNISTD_MODULE_INDICATOR.
6725         (Makefile.am): Don't generate sys/random.h here.
6726         * doc/glibc-headers/sys_random.texi: New file.
6727         * doc/gnulib.texi: Include it.
6729 2020-05-30  Bruno Haible  <bruno@clisp.org>
6731         unistd: Remove conflicting declaration of getrandom().
6732         * lib/unistd.in.h (getrandom): Remove declaration.
6733         * m4/unistd_h.m4 (gl_UNISTD_H): Don't test whether getrandom is
6734         declared.
6735         (gl_UNISTD_H_DEFAULTS): Don't initialize GNULIB_GETRANDOM,
6736         HAVE_GETRANDOM.
6737         * modules/unistd (Makefile.am): Don't substitute GNULIB_GETRANDOM,
6738         HAVE_GETRANDOM.
6740 2020-05-30  Bruno Haible  <bruno@clisp.org>
6742         getrandom: Add tests.
6743         * tests/test-getrandom.c: New file.
6744         * modules/getrandom-tests: New file.
6746 2020-05-30  Bruno Haible  <bruno@clisp.org>
6748         crypto/gc-random: Fix link error on MSVC.
6749         * m4/gc-random.m4 (gl_GC_RANDOM): Set LIB_GC_RANDOM.
6750         * modules/crypto/gc-random (Link): New section.
6751         * modules/crypto/gc-tests (Makefile.am): Link test-gc against
6752         $(LIB_GC_RANDOM).
6754 2020-05-30  Bruno Haible  <bruno@clisp.org>
6756         Don't assume that UNICODE is not defined.
6757         Many Windows API functions are defined differently (redirecting to a
6758         function with suffix 'W') if the application defines the macro UNICODE
6759         than by default (redirecting to a function with suffix 'A').
6760         * lib/clean-temp.c (OSVERSIONINFO, GetVersionEx): Redirect to the
6761         variant with suffix 'A'.
6762         * lib/dirent-private.h (WIN32_FIND_DATA): Likewise.
6763         * lib/gc-gnulib.c (CryptAcquireContext): Likewise.
6764         * lib/getaddrinfo.c (GetModuleHandle): Likewise.
6765         * lib/getlogin.c (GetUserName): Likewise.
6766         * lib/getlogin_r.c (GetUserName): Likewise.
6767         * lib/gettimeofday.c (LoadLibrary): Likewise.
6768         * lib/isatty.c (LoadLibrary, QueryFullProcessImageName): Likewise.
6769         * lib/link.c (GetModuleHandle, CreateHardLink): Likewise.
6770         * lib/localename.c (GetLocaleInfo, EnumSystemLocales): Likewise.
6771         * lib/mountlist.c (GetDriveType): Likewise.
6772         * lib/nonblocking.c (GetNamedPipeHandleState): Likewise.
6773         * lib/opendir.c (WIN32_FIND_DATA, GetFullPathName, FindFirstFile):
6774         Likewise.
6775         * lib/physmem.c (GetModuleHandle): Likewise.
6776         * lib/poll.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6777         PeekMessage, DispatchMessage): Likewise.
6778         * lib/progreloc.c (GetModuleFileName): Likewise.
6779         * lib/putenv.c (SetEnvironmentVariable): Likewise.
6780         * lib/read.c (GetNamedPipeHandleState): Likewise.
6781         * lib/readdir.c (FindNextFile): Likewise.
6782         * lib/relocatable.c (GetModuleFileName): Likewise.
6783         * lib/rename.c (MoveFileEx): Likewise.
6784         * lib/rewinddir.c (FindFirstFile): Likewise.
6785         * lib/select.c (GetModuleHandle, PeekConsoleInput, CreateEvent,
6786         PeekMessage, DispatchMessage): Likewise.
6787         * lib/sethostname.c (GetComputerNameEx, SetComputerNameEx): Likewise.
6788         * lib/socket.c (WSASocket): Likewise.
6789         * lib/stat-w32.c (LoadLibrary, GetFinalPathNameByHandle): Likewise.
6790         * lib/stat.c (WIN32_FIND_DATA, CreateFile, FindFirstFile): Likewise.
6791         * lib/stdio-read.c (GetNamedPipeHandleState): Likewise.
6792         * lib/stdio-write.c (GetNamedPipeHandleState): Likewise.
6793         * lib/tmpdir.c (GetTempPath): Likewise.
6794         * lib/tmpfile.c (OSVERSIONINFO, GetVersionEx, GetTempPath): Likewise.
6795         * lib/uname.c (OSVERSIONINFO, GetVersionEx): Likewise.
6796         * lib/utime.c (CreateFile, GetFileAttributes): Likewise.
6797         * lib/windows-cond.c (CreateEvent): Likewise.
6798         * lib/windows-rwlock.c (CreateEvent): Likewise.
6799         * lib/windows-timedmutex.c (CreateEvent): Likewise.
6800         * lib/windows-timedrecmutex.c (CreateEvent): Likewise.
6801         * lib/windows-timedrwlock.c (CreateEvent): Likewise.
6802         * lib/write.c (GetNamedPipeHandleState): Likewise.
6804 2020-05-30  Bruno Haible  <bruno@clisp.org>
6806         physmem: Fix compilation errors on MSVC.
6807         * lib/physmem.c (PFN_MS_EX): Use BOOL, not WINBOOL.
6808         * modules/physmem (Depends-on): Add unistd.
6810 2020-05-29  Bruno Haible  <bruno@clisp.org>
6812         gnulib-tool: Fix link errors with a particular set of modules on mingw.
6813         * gnulib-tool (func_emit_tests_Makefile_am): Add ../lib/libgnu.a to
6814         LDADD a second time, after the second occurrence of libtests.a.
6815         * pygnulib/GLEmiter.py (tests_Makefile_am): Likewise.
6817 2020-05-29  Bruno Haible  <bruno@clisp.org>
6819         fnmatch: Rely on more gnulib modules.
6820         * modules/fnmatch (Depends-on): Add btowc, isblank, iswctype, wmemchr,
6821         wmempcpy, mempcpy.
6822         * lib/fnmatch.c: Assume that HAVE_WCTYPE_H, HAVE_BTOWC, HAVE_ISWCTYPE,
6823         HAVE_WMEMCHR, HAVE_WMEMPCPY, HAVE_ISBLANK, HAVE_DECL_ISBLANK,
6824         HAVE_MEMPCPY are all 1.
6825         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't test for btowc, isblank,
6826         iswctype, mempcpy, wmemchr, wmemcpy, wmempcpy, <wctype.h>.
6828 2020-05-29  Bruno Haible  <bruno@clisp.org>
6830         Avoid dynamic lookup of Windows API functions when possible.
6831         * lib/getaddrinfo.c (GetProcAddress, getaddrinfo_func,
6832         freeaddrinfo_func, getnameinfo_func, getaddrinfo_ptr, freeaddrinfo_ptr,
6833         getnameinfo_ptr): Don't define in a build for Windows XP or higher.
6834         (use_win32_p): Define differently.
6835         * lib/link.c (GetProcAddress, CreateHardLinkFuncType,
6836         CreateHardLinkFunc, initialized, initialize): Don't define in a build
6837         for Windows XP or higher.
6839 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6841         read-file: disable buffering if RF_SENSITIVE is set
6842         * lib/read-file.c (read_file): Call setvbuf if RF_SENSITIVE.
6843         Suggested by Glenn Strauss.
6844         (fread_file): Suggest calling setvbuf before calling this
6845         function.  Suggested by Bruno Haible.
6847 2020-05-29  Bruno Haible  <bruno@clisp.org>
6849         wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset: Fix autoconf test.
6850         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Link, not only compile, the test
6851         program.
6852         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Likewise.
6853         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Likewise.
6854         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Likewise.
6855         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Likewise.
6857 2020-05-29  Bruno Haible  <bruno@clisp.org>
6859         Fix compilation error on native Windows (regression from 2020-05-28).
6860         Reported by Daiki Ueno.
6861         * lib/gettimeofday.c (GetSystemTimePreciseAsFileTimeFunc): Define as
6862         macro when not using dynamic loading.
6863         * lib/isatty.c (GetNamedPipeClientProcessIdFunc,
6864         QueryFullProcessImageNameFunc): Likewise.
6865         * lib/stat-w32.c (GetFileInformationByHandleExFunc,
6866         GetFinalPathNameByHandleFunc): Likewise.
6868 2020-05-29  Daiki Ueno  <ueno@gnu.org>
6870         fopen-gnu-tests: fix "\x" escape usage
6871         * tests/test-fopen-gnu.c (DATA): Use safer escape sequence.
6873 2020-05-28  Bruno Haible  <bruno@clisp.org>
6875         Avoid dynamic loading of Windows API functions when possible.
6876         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
6877         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00182.html>.
6878         * lib/gettimeofday.c (GetProcAddress,
6879         GetSystemTimePreciseAsFileTimeFuncType,
6880         GetSystemTimePreciseAsFileTimeFunc, initialized, initialize): Don't
6881         define in a build for Windows 8 or higher.
6882         * lib/isatty.c (GetProcAddress, GetNamedPipeClientProcessIdFuncType,
6883         GetNamedPipeClientProcessIdFunc, QueryFullProcessImageNameFuncType,
6884         QueryFullProcessImageNameFunc, initialized, initialize): Don't define
6885         in a build for Windows Vista or higher.
6886         * lib/stat-w32.c (GetProcAddress, GetFileInformationByHandleExFuncType,
6887         GetFileInformationByHandleExFunc, GetFinalPathNameByHandleFuncType,
6888         GetFinalPathNameByHandleFunc, initialized, initialize): Likewise.
6890 2020-05-28  Paul Eggert  <eggert@cs.ucla.edu>
6892         explicit_bzero-tests: improve -Wmissing-declarations pacification
6893         * tests/test-explicit_bzero.c: Now noinline.
6894         Suggested by Bruno Haible in:
6895         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00300.html
6897 2020-05-28  Bruno Haible  <bruno@clisp.org>
6899         Fix build errors due to read-file changes (regression from 2020-05-27).
6900         * lib/git-merge-changelog.c (read_changelog_file): Update read_file
6901         invocation.
6902         * tests/test-sameacls.c (main): Likewise.
6903         * tests/test-pipe-filter-gi1.c (main): Call read_file instead of
6904         read_binary_file.
6905         * tests/test-pipe-filter-ii1.c (main): Likewise.
6907 2020-05-28  Bruno Haible  <bruno@clisp.org>
6909         fts: Make more robust in multithreaded applications.
6910         * lib/fts.c (fts_open): Pass an O_CLOEXEC flag to open().
6911         * modules/fts (Depends-on): Add 'open'.
6913 2020-05-28  Bruno Haible  <bruno@clisp.org>
6915         relocatable-prog: Make more robust in multithreaded applications.
6916         * lib/progreloc.c (O_CLOEXEC): Define fallback to 0 when use from module
6917         relocatable-prog-wrapper.
6918         (find_executable): Pass an O_CLOEXEC flag to open().
6919         * modules/relocatable-prog (Depends-on): Add 'open'.
6921 2020-05-28  Bruno Haible  <bruno@clisp.org>
6923         getloadavg: Make more robust in multithreaded applications.
6924         * lib/getloadavg.c (getloadavg): Pass an O_CLOEXEC flag to open().
6925         Simplify use of O_CLOEXEC.
6926         * modules/getloadavg (Depends-on): Add 'open'.
6928 2020-05-28  Bruno Haible  <bruno@clisp.org>
6930         vma-iter: Make more robust in multithreaded applications.
6931         * lib/vma-iter.c (rof_open, vma_iterate): Pass an O_CLOEXEC flag to
6932         open().
6933         * modules/vma-iter (Depends-on): Add 'open'.
6935 2020-05-28  Bruno Haible  <bruno@clisp.org>
6937         truncate: Make more robust in multithreaded applications.
6938         * lib/truncate.c (truncate): Pass an O_CLOEXEC flag to open().
6940 2020-05-28  Bruno Haible  <bruno@clisp.org>
6942         pagealign_alloc: Make more robust in multithreaded applications.
6943         * lib/pagealign_alloc.c (pagealign_alloc): Pass an O_CLOEXEC flag to
6944         open().
6945         * modules/pagealign_alloc (Depends-on): Add 'open'.
6947 2020-05-28  Bruno Haible  <bruno@clisp.org>
6949         openat: Make more robust in multithreaded applications.
6950         * lib/openat.c (openat_needs_fchdir): Pass an O_CLOEXEC flag to open().
6952 2020-05-28  Bruno Haible  <bruno@clisp.org>
6954         at-internal: Make more robust in multithreaded applications.
6955         * lib/openat-proc.c (openat_proc_name): Pass an O_CLOEXEC flag to
6956         open().
6958 2020-05-28  Bruno Haible  <bruno@clisp.org>
6960         mountlist: Make more robust in multithreaded applications.
6961         * lib/mountlist.c (read_file_system_list): Pass an O_CLOEXEC flag to
6962         open().
6963         * modules/mountlist (Depends-on): Add 'open'.
6965 2020-05-28  Bruno Haible  <bruno@clisp.org>
6967         login_tty: Make more robust in multithreaded applications.
6968         * lib/login_tty.c (login_tty): Pass an O_CLOEXEC flag to open().
6969         * modules/login_tty (Depends-on): Add 'open'.
6971 2020-05-28  Bruno Haible  <bruno@clisp.org>
6973         javacomp: Make more robust in multithreaded applications.
6974         * lib/javacomp.c (get_classfile_version): Pass an O_CLOEXEC flag to
6975         open().
6976         * modules/javacomp (Depends-on): Add 'open'.
6978 2020-05-28  Bruno Haible  <bruno@clisp.org>
6980         getprogname: Make more robust in multithreaded applications.
6981         * lib/getprogname.c (getprogname): Pass an O_CLOEXEC flag to open().
6982         * modules/getprogname (Depends-on): Add 'open'.
6984 2020-05-28  Bruno Haible  <bruno@clisp.org>
6986         get_progname_of: Make more robust in multithreaded applications.
6987         * lib/get_progname_of.c (get_progname_of): Pass an O_CLOEXEC flag to
6988         open().
6989         * modules/get_progname_of (Depends-on): Add 'open'.
6991 2020-05-28  Bruno Haible  <bruno@clisp.org>
6993         get_ppid_of: Make more robust in multithreaded applications.
6994         * lib/get_ppid_of.c (get_ppid_of): Pass an O_CLOEXEC flag to open().
6995         * modules/get_ppid_of (Depends-on): Add 'open'.
6997 2020-05-28  Bruno Haible  <bruno@clisp.org>
6999         get-rusage-as: Make more robust in multithreaded applications.
7000         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Pass an O_CLOEXEC
7001         flag to open().
7002         * modules/get-rusage-as (Depends-on): Add 'open'.
7004 2020-05-28  Bruno Haible  <bruno@clisp.org>
7006         crypto/gc: Make more robust in multithreaded applications.
7007         * lib/gc-gnulib.c (randomize): Pass an O_CLOEXEC flag to open().
7008         * modules/crypto/gc (Depends-on): Add 'open'.
7010 2020-05-28  Bruno Haible  <bruno@clisp.org>
7012         copy-file: Make more robust in multithreaded applications.
7013         * lib/copy-file.c (qcopy_file_preserving): Pass an O_CLOEXEC flag to
7014         open().
7016 2020-05-28  Bruno Haible  <bruno@clisp.org>
7018         chown: Make more robust in multithreaded applications.
7019         * lib/chown.c (rpl_chown): Pass an O_CLOEXEC flag to open().
7021 2020-05-28  Bruno Haible  <bruno@clisp.org>
7023         doc: Fix statement about O_CLOEXEC (wrong since 2017-08-14).
7024         * doc/posix-headers/fcntl.texi: Gnulib no longer defines O_CLOEXEC to 0.
7026 2020-05-28  Daiki Ueno  <ueno@gnu.org>
7028         fopen-gnu: make 'b' flag can be used with 'e' on Windows
7029         * lib/fopen.c (rpl_fopen): Pass O_BINARY to open, if a 'b' flag is
7030         specified on Windows.
7031         * tests/test-fopen-gnu.c (DATA): New define.
7032         (main): Add test for reading binary files with an 'e' flag.
7034 2020-05-27  Bruno Haible  <bruno@clisp.org>
7036         Don't assume that UNICODE is not defined.
7037         Some Windows types, such as TCHAR, LPTSTR, LPCTSTR, are defined
7038         differently if the application defines the macro UNICODE.
7039         Reported by Steve Lhomme <robux4@ycbcr.xyz> in
7040         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00184.html>.
7041         * lib/link.c (CreateHardLinkFuncType): Use LPCSTR, not LPCTSTR.
7042         * lib/localename.c (enum_locales_fn): Use LPSTR, not LPTSTR.
7043         * lib/stat-w32.c (GetFinalPathNameByHandleFuncType): Likewise.
7045 2020-05-27  Bruno Haible  <bruno@clisp.org>
7047         Improve pattern for defining _WIN32_WINNT.
7048         Newer versions of the Windows API may not only add, but also remove API
7049         functions. Therefore, when the user is e.g. building for Windows 10, we
7050         should not set _WIN32_WINNT to e.g. Windows 8, as this may enable the
7051         use of APIs that were present in Windows 8 but removed in Windows 10.
7052         Suggested by Steve Lhomme <robux4@ycbcr.xyz> in
7053         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00318.html>.
7054         * lib/ftruncate.c (_WIN32_WINNT): Don't set to a smaller value.
7055         * lib/sethostname.c (_WIN32_WINNT): Likewise.
7056         * lib/stat-w32.c (_WIN32_WINNT): Likewise.
7058 2020-05-27  Bruno Haible  <bruno@clisp.org>
7060         javacomp: Make more robust in multithreaded applications.
7061         * lib/javacomp.c (write_temp_file): Pass an 'e' flag to fopen_temp.
7062         * modules/javacomp (Depends-on): Add fopen-gnu.
7064 2020-05-27  Bruno Haible  <bruno@clisp.org>
7066         mountlist: Make more robust in multithreaded applications.
7067         * lib/mountlist.c (setmntent, read_file_system_list): Pass an 'e' flag
7068         to fopen.
7069         * modules/mountlist (Depends-on): Add fopen-gnu.
7071 2020-05-27  Bruno Haible  <bruno@clisp.org>
7073         sethostname: Make more robust in multithreaded applications.
7074         * lib/sethostname.c (sethostname): Pass an 'e' flag to fopen.
7075         * modules/sethostname (Depends-on): Add fopen-gnu.
7077 2020-05-27  Bruno Haible  <bruno@clisp.org>
7079         readutmp: Make more robust in multithreaded applications.
7080         * lib/readutmp.c (read_utmp): Pass an 'e' flag to fopen.
7081         * modules/readutmp (Depends-on): Add fopen-gnu.
7083 2020-05-27  Bruno Haible  <bruno@clisp.org>
7085         getpass: Make more robust in multithreaded applications.
7086         * lib/getpass.c (getpass): Pass an 'e' flag to fopen.
7087         * modules/getpass (Depends-on): Add fopen-gnu.
7089 2020-05-27  Bruno Haible  <bruno@clisp.org>
7091         getloadavg: Make more robust in multithreaded applications.
7092         * lib/getloadavg.c (getloadavg): Pass an 'e' flag to fopen.
7093         * modules/getloadavg (Depends-on): Add fopen-gnu.
7095 2020-05-27  Bruno Haible  <bruno@clisp.org>
7097         exclude: Make more robust in multithreaded applications.
7098         * lib/exclude.c (add_exclude_file): Pass an 'e' flag to fopen.
7099         * modules/exclude (Depends-on): Add fopen-gnu.
7101 2020-05-27  Bruno Haible  <bruno@clisp.org>
7103         bitset: Make more robust in multithreaded applications.
7104         * lib/bitset/stats.c (bitset_stats_read, bitset_stats_write): Pass an
7105         'e' flag to fopen.
7106         * modules/bitset (Depends-on): Add fopen-gnu.
7108 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7110         read-file: add RF_SENSITIVE flag
7111         * lib/read-file.h (RF_SENSITIVE): New define.
7112         * lib/read-file.c (fread_file, read_file): Take into account of
7113         RF_SENSITIVE flag.
7114         * modules/read-file (Depends-on): Add explicit_bzero.
7115         This adds an alternative behavior of those functions to explicitly
7116         clear the internal memory block when it becomes unused.  This is
7117         useful for reading sensitive information from a file.
7119 2020-05-27  Daiki Ueno  <ueno@gnu.org>
7121         read-file: add flags to modify reading behavior
7122         * lib/read-file.h (RF_BINARY): New define.
7123         (fread_file, read_file): Take FLAGS argument.
7124         (read_binary_file): Remove.
7125         * lib/read-file.c (internal_read_file): Merge into ...
7126         (read_file): ... here.
7127         * modules/read-file-tests (Files): Add "tests/macros.h".
7128         * tests/test-read-file.c (main): Refactor using ASSERT macro.
7129         * NEWS: Mention this change.
7131 2020-05-26  Bernhard Voelker  <mail@bernhard-voelker.de>
7133         doc/gnulib-intro.texi: add missing "to" in sentence
7134         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
7135         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00316.html>.
7136         * doc/gnulib-intro.texi (Collaborative Development): Add "to".
7138 2020-05-26  Bruno Haible  <bruno@clisp.org>
7140         count-one-bits: Fix MSVC specific code.
7141         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7142         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00309.html>.
7143         * lib/count-one-bits.h (COUNT_ONE_BITS_GENERIC): Don't define if we're
7144         using GCC.
7145         [_MSC_VER]: Use correct syntax for #pragma intrinsic.
7146         (__popcnt64): In 32-bit mode, define as an inline function.
7147         (COUNT_ONE_BITS): Rename first argument to GCC_BUILTIN.
7149 2020-05-26  Bruno Haible  <bruno@clisp.org>
7151         argz: Avoid name clashes through argz.h.
7152         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
7153         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00308.html>.
7154         * lib/argz.h: Don't use __ prefixed identifiers.
7155         (const): Remove definition.
7156         (argz_next): Remove inline definitions.
7158 2020-05-26  Daiki Ueno  <ueno@gnu.org>
7160         read-file: make use of fopen-gnu
7161         * lib/read-file.c (read_file): Pass an 'e' flag to fopen.
7162         (read_binary_file): Likewise.
7163         * modules/read-file (Depends-on): Add fopen-gnu.
7165 2020-05-25  Paul Eggert  <eggert@cs.ucla.edu>
7167         getentropy, getrandom: new modules
7168         * MODULES.html.sh (func_all_modules):
7169         * lib/unistd.in.h (getentropy, getrandom):
7170         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS):
7171         * modules/unistd (unistd.h):
7172         Add support for getentropy, getrandom.
7173         * doc/glibc-functions/getentropy.texi (getentropy):
7174         * doc/glibc-functions/getrandom.texi (getrandom):
7175         These are now fixed on some platforms.
7176         * lib/getentropy.c, lib/getrandom.c, lib/sys_random.in.h:
7177         * m4/getentropy.m4, m4/getrandom.m4:
7178         * modules/getentropy, modules/getentropy-tests:
7179         * modules/getrandom, modules/getrandom-tests:
7180         * tests/test-getentropy.c, tests/test-getrandom.c:
7181         New files.
7183 2020-05-25  Bruno Haible  <bruno@clisp.org>
7185         Add missing C99 dependencies.
7186         Reported by Paul Smith <psmith@gnu.org> in
7187         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00290.html>.
7188         * modules/assert (Depends-on): Add c99.
7189         * modules/filenamecat-lgpl (Depends-on): Likewise.
7190         * modules/libc-config (Depends-on): Likewise.
7191         * modules/mktime (Depends-on): Likewise.
7192         * modules/random_r (Depends-on): Likewise.
7193         * modules/regex (Depends-on): Likewise.
7194         * modules/scratch_buffer (Depends-on): Likewise.
7195         * modules/timespec-add (Depends-on): Likewise.
7196         * modules/timespec-sub (Depends-on): Likewise.
7197         * modules/verify (Depends-on): Likewise.
7199 2020-05-24  Paul Eggert  <eggert@cs.ucla.edu>
7201         explicit_bzero-tests: pacify -Wmissing-declarations
7202         * tests/test-explicit_bzero.c (do_secret_stuff, test_stack):
7203         Now static.
7205 2020-05-24  Bruno Haible  <bruno@clisp.org>
7207         fopen-gnu: Add tests.
7208         * tests/test-fopen-gnu.c: New file.
7209         * modules/fopen-gnu-tests: New file.
7211         fopen-gnu: New module.
7212         Suggested by Tim Rühsen <tim.ruehsen@gmx.de> in
7213         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00119.html>.
7214         * lib/fopen.c (rpl_fopen): When the fopen-gnu module is enabled and the
7215         mode contains an 'x' or 'e' flag, use open() followed by fdopen().
7216         * m4/fopen.m4 (gl_FUNC_FOPEN_GNU): New macro.
7217         * modules/fopen-gnu: New file.
7218         * doc/posix-functions/fopen.texi: Document the 'fopen-gnu' module.
7220 2020-05-24  Bruno Haible  <bruno@clisp.org>
7222         open, openat: Really support O_CLOEXEC.
7223         * lib/open.c (open): When have_cloexec is still undecided, do pass a
7224         O_CLOEXEC flag to orig_open.
7225         * lib/openat.c (rpl_openat): When have_cloexec is still undecided, do
7226         pass a O_CLOEXEC flag to orig_openat.
7227         * tests/test-open.h (test_open): Verify that O_CLOEXEC is honoured.
7228         * modules/open-tests (Depends-on): Add fcntl.
7229         * modules/openat-tests (Depends-on): Likewise.
7230         * modules/fcntl-safer-tests (Depends-on): Likewise.
7232 2020-05-24  Bruno Haible  <bruno@clisp.org>
7234         fopen: Fix the trailing slash workaround.
7235         * lib/fopen.c (rpl_fopen): Parse the mode string. Recognize "r+" as a
7236         write access. Pass the right flags to open().
7237         * tests/test-fopen.h (test_fopen): Add a few more tests on directories.
7239 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7241         assure: new macro ‘affirm’
7242         * lib/assure.h: Include verify.h.
7243         (affirm): New macro, after a suggestion by Marc Nieper-Wißkirchen in:
7244         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00263.html
7245         and commentary by Bruno Haible in:
7246         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00278.html
7247         * modules/assure (Depends-on:): Add verify.
7249 2020-05-23  Bruno Haible  <bruno@clisp.org>
7251         calloc-gnu: Make test work in non-flat address spaces.
7252         Uses code by Paul Eggert.
7253         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Allow a calloc() implementation
7254         to return more than SIZE_MAX bytes, but only without wrap-around bugs.
7256 2020-05-23  Bruno Haible  <bruno@clisp.org>
7258         calloc-gnu: Avoid wrong configure results with GCC's AddressSanitizer.
7259         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Split the AC_RUN_IFELSE into two
7260         AC_RUN_IFELSE invocations.
7262 2020-05-23  Bruno Haible  <bruno@clisp.org>
7264         isnanf, isnanl, isnan: Don't use nonexistent builtins with clang.
7265         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM,
7266         gl_ISNANF_WORKS): Don't use __builtin_isnanf on clang versions that
7267         don't have it.
7268         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
7269         gl_FUNC_ISNANL_WORKS): Don't use __builtin_isnanl on clang versions that
7270         don't have it.
7271         * lib/isnanf-nolibm.h (__has_builtin): New macro.
7272         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7273         it.
7274         * lib/isnanl-nolibm.h (__has_builtin): New macro.
7275         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7276         it.
7277         * lib/math.in.h (__has_builtin): New macro.
7278         (isnanf): Don't use __builtin_isnanf on clang versions that don't have
7279         it.
7280         (isnanl): Don't use __builtin_isnanl on clang versions that don't have
7281         it.
7282         (isnan): Don't use the builtins on clang versions that don't have
7283         __builtin_isnanf and __builtin_isnanl.
7285 2020-05-23  Bruno Haible  <bruno@clisp.org>
7287         calloc-gnu: Avoid wrong configure results with clang.
7288         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Mark the pointer variable as
7289         'volatile', to defeat compiler optimizations.
7291 2020-05-23  Bruno Haible  <bruno@clisp.org>
7293         isnanl, isnanl-nolibm: Make a test work better with "gcc -O2" on x86_64.
7294         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Pass the
7295         'long double' values by reference, with values taken from a statically
7296         allocated array.
7298 2020-05-23  Bruno Haible  <bruno@clisp.org>
7300         findprog-in: Ignore directories.
7301         Reported by Frederick Eaton via Dmitry Goncharov in
7302         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
7303         * lib/findprog-in.c (find_in_given_path): When the file found is a
7304         directory, set errno to EACCES and, during a PATH search, continue
7305         searching.
7306         * modules/findprog-in (Depends-on): Add sys_stat, stat.
7308 2020-05-23  Paul Eggert  <eggert@cs.ucla.edu>
7310         verify: document ‘assume’ better
7311         * lib/verify.h (assume): Say it’s for static analysis, not dynamic.
7313 2020-05-22  Asher Gordon  <AsDaGo@posteo.net>
7315         gendocs: Clarify licenses for templates.
7316         * doc/gendocs_template: Add a GNU All-Permissive license notice
7317         and bump Parent-Version.
7318         * doc/gendocs_template_min: Add a GNU All-Permissive license
7319         notice and copy the explanatory comment about the license notice
7320         at the bottom from gendocs_template.
7322 2020-05-21  Bruno Haible  <bruno@clisp.org>
7324         group-member: Relicense under LGPLv2+.
7325         Jim Meyering's approval is in
7326         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00218.html>.
7327         Paul Eggert's approval is in
7328         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00225.html>.
7329         Eric Blake's approval is in
7330         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00217.html>.
7331         * modules/group-member (License): Change to LGPLv2+.
7333 2020-05-21  Bruno Haible  <bruno@clisp.org>
7335         memmem: Avoid wrong configure results with "clang -fsanitize=undefined".
7336         Reported by Tim Rühsen in
7337         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7338         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Use NULL + 1, not NULL.
7340 2020-05-21  Bruno Haible  <bruno@clisp.org>
7342         regex: Avoid wrong configure results with "clang -fsanitize=leak".
7343         Reported by Tim Rühsen in
7344         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7345         * m4/regex.m4 (gl_REGEX): Free compiled regexes and allocated registers
7346         before returning with status 0.
7348 2020-05-21  Bruno Haible  <bruno@clisp.org>
7350         glob: Avoid wrong configure results with "clang -fsanitize=leak".
7351         Reported by Tim Rühsen in
7352         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7353         * m4/glob.m4 (gl_GLOB): Free allocated memory before returning.
7355 2020-05-21  Bruno Haible  <bruno@clisp.org>
7357         fchownat: Support clang -fsanitize=implicit-integer-sign-change better.
7358         Reported by Tim Rühsen in
7359         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00207.html>.
7360         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
7361         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Cast -1 to uid_t or git_t,
7362         respectively.
7364 2020-05-18  Tim Rühsen  <tim.ruehsenqgmx.de>
7366         getdelim: Avoid wrong configure results with gcc -fsanitize=address.
7367         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Fix memleak.
7369 2020-05-19  Paul Eggert  <eggert@cs.ucla.edu>
7371         ftoastr: fix ifndef typo
7372         * lib/ftoastr.h (_GL_FTOASTR_H): Define.
7374 2020-05-19  Bruno Haible  <bruno@clisp.org>
7376         havelib: Tweak documentation.
7377         * doc/havelib.texi (Searching for Libraries): Fix typo.
7379 2020-05-18  Siddhesh Poyarekar  <siddhesh@gotplt.org>
7381         vcs-to-changelog: Rename vcs_to_changelog.py to use hyphens.
7382         This was needed earlier because modules had to import the main script,
7383         but that is no longer true.  Rename the script so that it is
7384         consistent with all other scripts in gnulib and uses hyphens.
7385         * build-aux/vcs_to_changelog.py: Rename to...
7386         * build-aux/vcs-to-changelog.py: ... this.
7387         * doc/vcs-to-changelog.texi (VCS To ChangeLog): Update reference.
7388         * modules/vcs-to-changelog: Likewise.
7390 2020-05-17  Bruno Haible  <bruno@clisp.org>
7392         Clarify intended usage of the license file modules.
7393         Reported by Asher Gordon <AsDaGo@posteo.net> in
7394         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00126.html>.
7395         * doc/licenses-texi.texi (License Texinfo sources): Mention the
7396         GNU AGPL. Explain the intended usage of the modules.
7397         * modules/fdl (Notice): Discourage use as a module.
7398         * modules/fdl-1.3 (Notice): Likewise.
7400 2020-05-17  Akim Demaille  <akim@lrde.epita.fr>
7402         hash: add hash_xinsert
7403         * lib/hash.h, lib/xhash.c (hash_xinsert): New.
7405 2020-05-16  Bruno Haible  <bruno@clisp.org>
7407         findprog-lgpl: Fix link error (existing since 2008-09-02).
7408         * modules/findprog-lgpl (Makefile.am): Arrange to compile
7409         findprog-lgpl.c, not findprog.c.
7410         * lib/findprog.c (find_in_path): Add LGPLed replacement code for
7411         XNMALLOC.
7413 2020-05-15  Paul Eggert  <eggert@cs.ucla.edu>
7415         c-stack: pacify -Wunused-result when DEBUG
7416         Problem reported by Marc Nieper-Wißkirchen in:
7417         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00132.html
7418         * lib/c-stack.c (segv_handler, overflow_handler, segv_handler) [DEBUG]:
7419         Explicitly ignore write failures.
7421 2020-05-13  Jim Meyering  <meyering@fb.com>
7423         announce-gen: improve a comment
7424         * build-aux/announce-gen: Improve comment.
7426 2020-05-12  Paul Eggert  <eggert@cs.ucla.edu>
7428         xalloc: pacify -Wanalyzer-possible-null-argument
7429         Problem reported for GCC 10.1.0 by Bruno Haible in:
7430         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00118.html
7431         * lib/xmalloc.c (HAVE_GNU_MALLOC, HAVE_GNU_REALLOC): New constants.
7432         (xmalloc): Suppress unnecessary check if HAVE_GNU_MALLOC.
7433         (xrealloc): Suppress unnecssary check if HAVE_GNU_REALLOC.
7435 2020-05-11  Paul Eggert  <eggert@cs.ucla.edu>
7437         careadlinkat: fix GCC 10 workaround
7438         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7439         Massage the code so that it’s closer to what it was before
7440         the GCC 10.1.0 workaround was introduced.  This fixes
7441         a loop when !buffer and the bug workaround is in effect.
7442         Remove unnecessary casts.  Defend in a different way
7443         against (buffer && !buffer_size), by adding at least 1
7444         to buf_size each time through the loop.
7446 2020-05-10  Bruno Haible  <bruno@clisp.org>
7448         doc: Mark HP-UX as unsupported.
7449         * doc/gnulib-intro.texi (Target Platforms): List HP-UX as unsupported.
7451 2020-05-10  Paul Eggert  <eggert@cs.ucla.edu>
7453         careadlinkat: limit GCC workaround
7454         * lib/careadlinkat.c (careadlinkat): Limit workaround to GCC
7455         10.1.0 and later, since the workaround is pretty bad and the GCC
7456         bug should get fixed.
7458 2020-05-10  Bruno Haible  <bruno@clisp.org>
7460         havelib: Enhance documentation.
7461         * doc/havelib.texi (Searching for Libraries): Mention the bad
7462         consequences of using LIBxxx instead of LTLIBxxx and vice versa.
7464 2020-05-10  Bruno Haible  <bruno@clisp.org>
7466         attribute: Clarify list of attributes.
7467         * lib/attribute.h: Reorder the list of attributes, and group them by
7468         purpose.
7470 2020-05-10  Bruno Haible  <bruno@clisp.org>
7472         string: Fix compilation error in C++ mode.
7473         * lib/warn-on-use.h (_GL_WARN_ON_USE_CXX): In C mode, use plain
7474         _GL_WARN_ON_USE.
7475         * lib/string.in.h (strchr, strpbrk, strrchr): Use _GL_WARN_ON_USE_CXX
7476         instead of _GL_WARN_ON_USE.
7478 2020-05-10  Akim Demaille  <akim@lrde.epita.fr>
7480         announce-gen: add support for dist-lzip
7481         * build-aux/announce-gen (@archive_suffixes): Add tar.lz.
7483 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7485         manywarnings: port to GCC 10.1
7486         * build-aux/gcc-warning.spec:
7487         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)):
7488         Add GCC 10.1.0 warnings.
7490         careadlinkat: pacify -Wreturn-local-addr
7491         * lib/careadlinkat.c (careadlinkat) [GCC_LINT]:
7492         Pacify gcc 10’s -Wreturn-local-addr option.
7493         Simplify some of the later code.
7495 2020-05-09  Paul Eggert  <eggert@cs.ucla.edu>
7497         attribute: remove ATTRIBUTE_DEPRECATED
7498         * lib/attribute.h: Improve recently-added comments, mostly
7499         by shortening them (use active voice, etc.).
7500         (ATTRIBUTE_DEPRECATED): Remove, as it duplicates DEPRECATED.
7501         Problem reported by Bruno Haible in:
7502         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00089.html
7504 2020-05-09  Bruno Haible  <bruno@clisp.org>
7506         attribute: Add comments.
7507         * lib/attribute.h: Document each macro.
7509 2020-05-09  Akim Demaille  <akim@lrde.epita.fr>
7511         bitset: use the attribute module
7512         * modules/bitset: Depend on 'attribute'.
7513         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Remove.
7514         * lib/bitset.c, lib/bitset/array.c, lib/bitset/list.c,
7515         * lib/bitset/stats.c, lib/bitset/table.c, lib/bitset/vector.c:
7516         Use MAYBE_UNUSED instead of ATTRIBUTE_UNUSED.
7518 2020-05-09  Bruno Haible  <bruno@clisp.org>
7520         c-stack: Fix warning when DEBUG is enabled.
7521         Patch suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7522         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00081.html>.
7523         * lib/c-stack.c: Include <stdio.h>.
7525 2020-05-09  Bruno Haible  <bruno@clisp.org>
7527         Remove redundant definitions of _GL_ATTRIBUTE_FORMAT.
7528         * lib/argp.h (_GL_ATTRIBUTE_FORMAT): Remove macro.
7529         * lib/argp-fmtstream.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7530         * lib/c-snprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7531         * lib/c-vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7532         * lib/c-vasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7533         * lib/c-vsnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7534         * lib/c-xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7535         * lib/error.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7536         * lib/parse-datetime.y (_GL_ATTRIBUTE_FORMAT): Likewise.
7537         * lib/vasnprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7538         * lib/xprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7539         * lib/xvasprintf.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7541 2020-05-09  Bruno Haible  <bruno@clisp.org>
7543         Remove redundant definitions of _GL_ATTRIBUTE_ALLOC_SIZE.
7544         Reported by Akim Demaille in
7545         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00077.html>.
7546         * lib/eealloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Remove macro.
7547         * lib/pagealign_alloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7548         * lib/xalloc.h (_GL_ATTRIBUTE_ALLOC_SIZE): Likewise.
7550 2020-05-09  Bruno Haible  <bruno@clisp.org>
7552         stdio, monetary: Don't redefine _GL_ATTRIBUTE_FORMAT.
7553         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT): Don't override the definition
7554         that usually comes from m4/gnulib-common.m4.
7555         * lib/monetary.in.h (_GL_ATTRIBUTE_FORMAT): Likewise.
7557 2020-05-09  Bruno Haible  <bruno@clisp.org>
7559         dirent, stdlib, wchar, string: Don't redefine _GL_ATTRIBUTE_PURE.
7560         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Don't override the definition
7561         that usually comes from m4/gnulib-common.m4.
7562         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7563         * lib/string.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7564         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Likewise.
7566 2020-05-09  Bruno Haible  <bruno@clisp.org>
7568         uchar: Work around incorrect char16_t, char32_t types on Haiku 2020.
7569         * lib/uchar.in.h (char16_t): Define as macro if
7570         GNULIB_OVERRIDES_CHAR16_T.
7571         (char32_t): Define as macro if GNULIB_OVERRIDES_CHAR32_T.
7572         * m4/uchar.m4 (gl_TYPE_CHAR16_T, gl_TYPE_CHAR32_T): New macros.
7573         (gl_UCHAR_H): Invoke them.
7574         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_OVERRIDES_CHAR16_T,
7575         GNULIB_OVERRIDES_CHAR32_T.
7576         * m4/mbrtoc32.m4 (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Require
7577         gl_TYPE_CHAR32_T and test GNULIB_OVERRIDES_CHAR32_T.
7578         * modules/uchar (Makefile.am): Substitute GNULIB_OVERRIDES_CHAR16_T,
7579         GNULIB_OVERRIDES_CHAR32_T.
7581 2020-05-09  Bruno Haible  <bruno@clisp.org>
7583         Macro tweaks.
7584         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Correct config.h comment.
7585         * m4/wint_t.m4 (gt_TYPE_WINT_T): Correct indentation.
7587 2020-05-08  Bruno Haible  <bruno@clisp.org>
7589         c32rtomb: Avoid compilation failure on Haiku.
7590         * m4/c32rtomb.m4 (gl_FUNC_C32RTOMB): Test for c32rtomb without excluding
7591         inline definitions.
7592         * doc/posix-functions/c32rtomb.texi: Mention the Haiku problem.
7594 2020-05-08  Bruno Haible  <bruno@clisp.org>
7596         mbrtoc32: Avoid compilation failure on Haiku.
7597         * m4/mbrtoc32.m4 (gl_CHECK_FUNC_MBRTOC32): New macro.
7598         (gl_FUNC_MBRTOC32, gl_MBRTOC32_SANITYCHECK): Use it instead of
7599         AC_CHECK_FUNCS_ONCE.
7600         * doc/posix-functions/mbrtoc32.texi: Mention the Haiku problem.
7602 2020-05-08  Bruno Haible  <bruno@clisp.org>
7604         limits-h: Define LONG_BIT correctly on Haiku/x86_64.
7605         * lib/limits.in.h: Define and test _GL_ALREADY_INCLUDING_LIMITS_H.
7607 2020-05-08  Bruno Haible  <bruno@clisp.org>
7609         list: Update documentation.
7610         Reported by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7611         <https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00062.html>.
7612         * doc/containers.texi (Container data types): Document the new list
7613         operations and their complexity.
7615 2020-05-08  Bruno Haible  <bruno@clisp.org>
7617         ignore-value tests: Use module 'attribute'.
7618         * m4/gnulib-common.m4 (gl_COMMON_BODY): Fix a typo.
7619         * tests/test-ignore-value.c: Include attribute.h.
7620         (_GL_ATTRIBUTE_RETURN_CHECK): Remove macro. Use NODISCARD instead.
7621         * modules/ignore-value-tests (Depends-on): Add attribute.
7623 2020-05-08  Bruno Haible  <bruno@clisp.org>
7625         uniname/uniname: Use module 'attribute'.
7626         * lib/uniname/gen-uninames.lisp: Emit a reference to ATTRIBUTE_PACKED.
7627         * lib/uniname/uninames.h: Regenerated.
7628         * lib/uniname/uniname.c: Include attribute.h.
7629         * modules/uniname/uniname (Depends-on): Add attribute.
7631 2020-05-08  Bruno Haible  <bruno@clisp.org>
7633         c32rtomb: Use module 'attribute'.
7634         * lib/c32rtomb.c: Include attribute.h.
7635         (FALLTHROUGH): Remove macro.
7636         * modules/c32rtomb (Depends-on): Add attribute.
7638 2020-05-08  Bruno Haible  <bruno@clisp.org>
7640         xsize: Use module 'attribute'.
7641         * lib/xsize.h: Include attribute.h. Use ATTRIBUTE_PURE.
7642         * modules/xsize (Depends-on): Add attribute.
7644 2020-05-06  Paul Eggert  <eggert@cs.ucla.edu>
7646         * m4/gnulib-common.m4 (gl_COMMON_BODY): Minor style fixes.
7648         * lib/attribute.h: Minor style fixes.
7650         Fix version-etc glitch on OpenIndiana
7651         Problem reported by Mats Erik Andersson in:
7652         https://lists.gnu.org/r/bug-gnulib/2020-05/msg00067.html
7653         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Remove defn
7654         that now clashes with gnulib-common.h.  All uses changed.
7656 2020-05-03  Paul Eggert  <eggert@cs.ucla.edu>
7658         attribute: new module
7659         This simplifies use of GCC and C2X attributes like ‘deprecated’.
7660         * MODULES.html.sh: Add attribute.
7661         * doc/attribute.texi, lib/attribute.h, modules/attribute: New files.
7662         * doc/gnulib.texi (Particular Modules): Add Attributes.
7663         * lib/backupfile.c, lib/fnmatch.c, lib/freopen-safer.c:
7664         * lib/mbrtoc32.c, lib/mbrtowc.c, lib/nstrftime.c, lib/quotearg.c:
7665         * lib/savewd.c, lib/unistr/u8-uctomb-aux.c, lib/unistr/u8-uctomb.c:
7666         * lib/vasnprintf.c:
7667         Include attribute.h, and let it define FALLTHROUGH.
7668         * lib/bitset/base.h, lib/c-stack.c (__attribute__): Remove macro.
7669         * lib/bitset/base.h (ATTRIBUTE_UNUSED): Define in terms of
7670         _GL_ATTRIBUTE_MAYBE_UNUSED, for forwards compatibility to C2X.
7671         * lib/dfa.c (FALLTHROUGH): Define consistently with gl_COMMON_BODY.
7672         This is a copy since Gawk doesn’t use Gnulib.
7673         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Remove definition that
7674         is incompatible with gl_COMMON_BODY’s.  All uses changed.
7675         * lib/fts.c: Include attribte.h, for FALLTHROUGH.
7676         Keep the existing FALLTHROUGH definition since Glibc might use it,
7677         and it does no harm to Gnulib’s FALLTHROUGH.
7678         * lib/fts_.h, lib/inttostr.h:
7679         (__GNUC_PREREQ): Remove; no longer needed.
7680         (__attribute_warn_unused_result__): Remove.  All uses
7681         replaced by _GL_ATTRIBUTE_NODISCARD.
7682         * lib/gl_list.h, lib/gl_map.h, lib/gl_omap.h, lib/gl_oset.h:
7683         * lib/gl_set.h: Prefer _GL_ATTRIBUTE_NODISCARD to an ifdeffed
7684         __attribute__ ((__warn_unused_result__)), for forward
7685         compatibility to C2X.
7686         * lib/hash.h (_GL_ATTRIBUTE_WUR): Remove.  All uses replaced by
7687         _GL_ATTRIBUTE_NODISCARD.
7688         (_GL_ATTRIBUTE_DEPRECATED): Remove, since gl_COMMON_BODY defines it.
7689         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Remove.  All uses
7690         replaced by gl_COMMON_BODY’s implementation, which has a
7691         slightly different signature.
7692         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK):
7693         Remove.  All uses replaced by _GL_ATTRIBUTE_NODISCARD.
7694         * lib/unused-parameter.h (_GL_UNUSED_PARAMETER):
7695         Define in terms of _GL_ATTRIBUTE_MAYBE_UNUSED.
7696         No doubt all uses should be replaced, at some point.
7697         * m4/gnulib-common.m4 (_GL_GNUC_PREREQ): New macro.
7698         (_Noreturn): Use it.
7699         (_GL_HAS_ATTRIBUTE, _GL_ATTRIBUTE_ALLOC_SIZE)
7700         (_GL_ATTRIBUTE_ALWAYS_INLINE, _GL_ATTRIBUTE_ARTIFICIAL)
7701         (_GL_ATTRIBUTE_COLD)
7702         (_GL_ATTRIBUTE_DEPRECATED, _GL_ATTRIBUTE_ERROR)
7703         (_GL_ATTRIBUTE_WARNING, _GL_ATTRIBUTE_EXTERNALLY_VISIBLE)
7704         (_GL_ATTRIBUTE_FALLTHROUGH, _GL_ATTRIBUTE_FORMAT)
7705         (_GL_ATTRIBUTE_LEAF, _GL_ATTRIBUTE_MAY_ALIAS)
7706         (_GL_ATTRIBUTE_MAYBE_UNUSED)
7707         (_GL_ATTRIBUTE_NODISCARD, _GL_ATTRIBUTE_NOINLINE)
7708         (_GL_ATTRIBUTE_NONNULL, _GL_ATTRIBUTE_NONSTRING)
7709         (_GL_ATTRIBUTE_NOTHROW, _GL_ATTRIBUTE_PACKED, _GL_ATTRIBUTE_PURE)
7710         (_GL_ATTRIBUTE_RETURNS_NONNULL)
7711         (_GL_ATTRIBUTE_SENTINEL): New macros.
7712         * modules/backup-rename, modules/backupfile, modules/c-vasnprintf:
7713         * modules/fnmatch, modules/freopen-safer, modules/fts:
7714         * modules/mbrtoc32, modules/mbrtowc, modules/nstrftime:
7715         * modules/quotearg, modules/savewd:
7716         * modules/unistdio/u16-u16-vasnprintf:
7717         * modules/unistdio/u16-vasnprintf:
7718         * modules/unistdio/u32-u32-vasnprintf:
7719         * modules/unistdio/u32-vasnprintf:
7720         * modules/unistdio/u8-u8-vasnprintf:
7721         * modules/unistdio/u8-vasnprintf:
7722         * modules/unistdio/ulc-vasnprintf:
7723         * modules/unistr/u8-uctomb, modules/vasnprintf:
7724         (Depends-on:): Add attribute module.
7726 2020-05-03  Bruno Haible  <bruno@clisp.org>
7728         bison: Fix today's commit.
7729         * m4/bison.m4 (gl_PROG_BISON): Set ac_verc_fail to 'yes', not 'true'.
7731 2020-05-03  Bruno Haible  <bruno@clisp.org>
7733         list-c++: Add get_first, get_last, set_first, set_last operations.
7734         * lib/gl_list.hh (class gl_List): Add methods get_first, get_last,
7735         set_first, set_last.
7736         * lib/gl_list.h: Tweak comments.
7738 2020-05-03  Akim Demaille  <akim@lrde.epita.fr>
7740         bison: rely on bison's %require to check a version requirement
7741         See https://lists.gnu.org/archive/html/bug-gnulib/2020-05/msg00021.html.
7742         * m4/bison.m4 (gl_PROG_BISON): Let bison itself decide if it it recent
7743         enough of not.
7744         So far it is the only know Yacc tool that supports '%require'.
7745         Other yaccs will actually even choke on seeing the -o option after the
7746         input file name.
7747         * m4/parse-datetime.m4: Simplify gl_PROG_BISON invocation.
7749 2020-05-02  Bruno Haible  <bruno@clisp.org>
7751         list: Add get_first, get_last, set_first, set_last operations.
7752         * lib/gl_list.h (gl_list_get_first, gl_list_get_last,
7753         gl_list_nx_set_first, gl_list_nx_set_last): New functions.
7754         * lib/gl_xlist.h (gl_list_set_first, gl_list_set_last): New functions.
7756 2020-05-02  Bruno Haible  <bruno@clisp.org>
7758         list: Remove redundant code for remove_first and remove_last operations.
7759         * lib/gl_list.h (struct gl_list_implementation): Remove fields
7760         remove_first, remove_last.
7761         (gl_list_remove_first, gl_list_remove_last): Implement in a generic way.
7762         * lib/gl_array_list.c: Revert last change.
7763         * lib/gl_carray_list.c: Likewise.
7764         * lib/gl_anylinked_list2.h: Likewise.
7765         * lib/gl_linked_list.c: Likewise.
7766         * lib/gl_linkedhash_list.c: Likewise.
7767         * lib/gl_anytree_list2.h: Likewise.
7768         * lib/gl_avltree_list.c: Likewise.
7769         * lib/gl_avltreehash_list.c: Likewise.
7770         * lib/gl_rbtree_list.c: Likewise.
7771         * lib/gl_rbtreehash_list.c: Likewise.
7772         * lib/gl_sublist.c: Likewise.
7774 2020-05-02  Bruno Haible  <bruno@clisp.org>
7776         bison-i18n: Add support for cross-compilation.
7777         Reported by Hongxu Jia <hongxu.jia@windriver.com> in
7778         <https://lists.gnu.org/archive/html/bison-patches/2016-02/msg00000.html>
7779         via Akim Demaille <akim@lrde.epita.fr>.
7780         * m4/bison-i18n.m4 (BISON_I18N): Accept a configure option
7781         --with-bison-prefix=PREFIX and use it to determine BISON_LOCALEDIR.
7782         Don't use bison's --print-localedir option when cross-compiling.
7783         Also, fix an error message and a comment.
7785 2020-05-01  Bruno Haible  <bruno@clisp.org>
7787         list: Add remove_first and remove_last operations.
7788         Suggested by Marc Nieper-Wißkirchen <marc.nieper+gnu@gmail.com> in
7789         <https://lists.gnu.org/archive/html/bug-gnulib/2020-04/msg00092.html>.
7790         * lib/gl_list.h (struct gl_list_implementation): Add fields
7791         remove_first, remove_last.
7792         (gl_list_remove_first, gl_list_remove_last): New functions.
7793         * lib/gl_array_list.c (gl_array_remove_first, gl_array_remove_last): New
7794         functions, based on gl_array_remove_at.
7795         (gl_array_list_implementation): Implement the new operations.
7796         * lib/gl_carray_list.c (gl_carray_remove_first, gl_carray_remove_last):
7797         New functions, based on gl_carray_remove_at.
7798         (gl_carray_list_implementation): Implement the new operations.
7799         * lib/gl_anylinked_list2.h (gl_linked_remove_first,
7800         gl_linked_remove_last): New functions, based on gl_linked_remove_at.
7801         * lib/gl_linked_list.c (gl_linked_list_implementation): Implement the
7802         new operations.
7803         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation):
7804         Likewise.
7805         * lib/gl_anytree_list2.h (gl_tree_remove_first, gl_tree_remove_last):
7806         New functions, based on gl_tree_remove_at.
7807         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Implement the
7808         new operations.
7809         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7810         Likewise.
7811         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Likewise.
7812         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation):
7813         Likewise.
7814         * lib/gl_sublist.c (gl_sublist_remove_first, gl_sublist_remove_last):
7815         New functions, based on gl_sublist_remove_at.
7816         (gl_sublist_list_implementation): Implement the new operations.
7817         * lib/gl_list.hh (class gl_List): Add methods remove_first,
7818         remove_last.
7819         * tests/test-array_list.c (main): Test also gl_list_remove_first and
7820         gl_list_remove_last.
7821         * tests/test-avltree_list.c (main): Likewise.
7822         * tests/test-avltreehash_list.c (main): Likewise.
7823         * tests/test-carray_list.c (main): Likewise.
7824         * tests/test-linked_list.c (main): Likewise.
7825         * tests/test-linkedhash_list.c (main): Likewise.
7826         * tests/test-rbtree_list.c (main): Likewise.
7827         * tests/test-rbtreehash_list.c (main): Likewise.
7829 2020-05-01  Bruno Haible  <bruno@clisp.org>
7831         parse-datetime: Fix a build failure with an older bison version.
7832         * modules/parse-datetime (Makefile.am): Don't do the post-processing of
7833         parse-datetime.tab.c if a suitable version of bison was not found.
7835 2020-05-01  Bruno Haible  <bruno@clisp.org>
7837         bison: New module.
7838         * m4/bison.m4 (gl_PROG_BISON): New macro, extracted from
7839         m4/parse-datetime.m4.
7840         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Invoke gl_PROG_BISON.
7841         * modules/bison: New file.
7842         * modules/parse-datetime (Files): Remove m4/bison.m4.
7843         (Depends-on): Add bison.
7845 2020-05-01  Jose E. Marchesi  <jemarch@gnu.org>
7847         Update users.txt.
7848         * users.txt: Add poke.
7850 2020-04-28  Bruno Haible  <bruno@clisp.org>
7852         posix_spawn_file_actions_addfchdir tests: Enhance test.
7853         * tests/test-posix_spawn5.c: Include findprog.h.
7854         (test): New function, extracted from main.
7855         (main): Invoke it. Also, invoke it with a program name such as
7856         "bin/pwd".
7857         * modules/posix_spawn_file_actions_addfchdir-tests (Depends-on): Add
7858         findprog.
7860 2020-04-28  Bruno Haible  <bruno@clisp.org>
7862         posix_spawn_file_actions_addchdir tests: Enhance test.
7863         * tests/test-posix_spawn4.c: Include findprog.h.
7864         (test): New function, extracted from main.
7865         (main): Invoke it. Also, invoke it with a program name such as
7866         "bin/pwd".
7867         * modules/posix_spawn_file_actions_addchdir-tests (Depends-on): Add
7868         findprog.
7870 2020-04-28  Bruno Haible  <bruno@clisp.org>
7872         posix_spawn_file_actions_destroy: Fix a crash (bug from 2019-06-10).
7873         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Don't
7874         access elements of the wrong union member.
7876 2020-04-27  Bruno Haible  <bruno@clisp.org>
7878         getdate: Remove deprecated module.
7879         * modules/getdate: Remove file.
7880         * doc/getdate.texi: Remove file.
7881         * lib/getdate.h: Remove file.
7882         * NEWS: Mention the removal.
7884 2020-04-27  Bruno Haible  <bruno@clisp.org>
7886         realloc: Remove deprecated module.
7887         * modules/realloc: Remove file.
7888         * NEWS: Mention the removal.
7890 2020-04-27  Bruno Haible  <bruno@clisp.org>
7892         calloc: Remove deprecated module.
7893         * modules/calloc: Remove file.
7894         * NEWS: Mention the removal.
7896 2020-04-27  Bruno Haible  <bruno@clisp.org>
7898         malloc: Remove deprecated module.
7899         * modules/malloc: Remove file.
7900         * NEWS: Mention the removal.
7902 2020-04-27  Bruno Haible  <bruno@clisp.org>
7904         fnmatch-posix: Remove deprecated module.
7905         * modules/fnmatch-posix: Remove file.
7906         * MODULES.html.sh (Enhancements for POSIX:2008 functions): Update.
7907         * NEWS: Mention the removal.
7909 2020-04-27  Bruno Haible  <bruno@clisp.org>
7911         pipe: Remove deprecated module.
7912         * modules/pipe: Remove file.
7913         * lib/pipe.h: Remove file.
7914         * NEWS: Mention the removal.
7916 2020-04-27  Bruno Haible  <bruno@clisp.org>
7918         getopt: Remove deprecated module.
7919         * modules/getopt: Remove file.
7920         * NEWS: Mention the removal.
7922 2020-04-27  Bruno Haible  <bruno@clisp.org>
7924         remove-dest-slash: Remove deprecated module.
7925         * modules/rename-dest-slash: Remove file.
7926         * MODULES.html.sh (Compatibility checks for POSIX:2008 functions):
7927         Update.
7928         * NEWS: Mention the removal.
7930 2020-04-27  Bruno Haible  <bruno@clisp.org>
7932         unictype/bidicategory-*: Remove deprecated modules.
7933         * modules/unictype/bidicategory-all: Remove file.
7934         * modules/unictype/bidicategory-byname: Remove file.
7935         * modules/unictype/bidicategory-name: Remove file.
7936         * modules/unictype/bidicategory-of: Remove file.
7937         * modules/unictype/bidicategory-test: Remove file.
7938         * MODULES.html.sh (Unicode string functions): Update.
7939         * NEWS: Mention the removals.
7941 2020-04-25  Paul Eggert  <eggert@cs.ucla.edu>
7943         Tune fts for FTS_LOGICAL+FTS_NOSTAT
7944         From a suggestion by Askar Safin in:
7945         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00074.html
7946         * lib/fts.c (fts_build): If file types are known, optimize
7947         FTS_LOGICAL+FTS_NOSTAT for non-symlinks and non-directories the
7948         same way that we already optimize FTS_PHYSICAL+FTS_NOSTAT for
7949         non-directories.
7951 2020-04-19  Bruno Haible  <bruno@clisp.org>
7953         vasnprintf: Add support for printing wide characters using escapes.
7954         * lib/vasnprintf.c (ENABLE_WCHAR_FALLBACK): Document optional macro.
7955         (wctomb_fallback): New function.
7956         (local_wctomb): New function.
7957         (local_wcrtomb): New function or macro.
7958         (MAX_ROOM_NEEDED): Adjust estimate for %lc.
7959         (VASNPRINTF): Simplify %ls code by use of local_wcrtomb. Add code for
7960         %lc.
7962 2020-04-15  Paul Eggert  <eggert@cs.ucla.edu>
7964         fts: remove NOSTAT_LEAF_OPTIMIZATION
7965         It caused ‘find’ and ‘du’ to dump core, and it was useful
7966         only for obsolescent Linux filesystems anyway.  Problem reported in:
7967         https://lists.gnu.org/r/bug-gnulib/2020-04/msg00068.html
7968         Quite possibly there is still a serious underlying fts bug with
7969         tight-loop-check and mutating file systems, but if so this patch
7970         should cause the bug to be triggered less often.
7971         * lib/fts.c (enum leaf_optimization): Remove
7972         NOSTAT_LEAF_OPTIMIZATION, as it’s problematic.
7973         (S_MAGIC_REISERFS, S_MAGIC_XFS): Remove; no longer needed.
7974         (leaf_optimization): Remove special cases for ReiserFS and XFS.
7975         (fts_read): Remove NOSTAT_LEAF_OPTIMIZATION code.
7976         * lib/fts_.h (struct _ftsent.fts_n_dirs_remaining):
7977         Remove.  All uses removed.
7979 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7981         explicit_bzero: Improve code style.
7982         * lib/explicit_bzero.c (explicit_bzero): Use '\0' instead of 0.
7984 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7986         explicit_bzero: On native Windows, use SecureZeroMemory().
7987         * lib/explicit_bzero.c: Include <windows.h>.
7988         (explicit_bzero): On native Windows, use SecureZeroMemory.
7990 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7992         explicit_bzero: Use memset_s() when available.
7993         * lib/explicit_bzero.c (__STDC_WANT_LIB_EXT1__): Define.
7994         (explicit_bzero): Use memset_s when available.
7995         * m4/explicit_bzero.m4 (gl_PREREQ_EXPLICIT_BZERO): Test for memset_s.
7997 2020-04-13  Bastien Roucariès  <rouca@debian.org>
7999         explicit_bzero tests: Fix test failure on OpenBSD 6.5.
8000         * tests/test-explicit_bzero.c (test_heap): Handle implementations of
8001         free() that overwrite the memory with canaries.
8003 2020-04-13  Akim Demaille  <akim@lrde.epita.fr>
8005         bootstrap: recommend git submodule update --init
8006         Reported by Bruno Haible.
8007         <https://lists.gnu.org/r/bug-gnulib/2020-03/msg00101.html>
8008         * build-aux/bootstrap: recommand "git submodule update --init"
8009         rather than "git submodule init".
8011 2020-04-12  Bruno Haible  <bruno@clisp.org>
8013         explicit_bzero: Add tests.
8014         * tests/test-explicit_bzero.c: New file.
8015         * modules/explicit_bzero-tests: New file.
8017 2020-04-11  Bruno Haible  <bruno@clisp.org>
8019         explicit_bzero: Relicense under LGPLv2+.
8020         Approved by Paul Eggert.
8021         * modules/explicit_bzero (License): Change to LGPLv2+.
8023 2020-04-10  Bruno Haible  <bruno@clisp.org>
8025         findprog, relocatable-prog: Ignore directories during PATH search.
8026         Reported by Frederick Eaton via Dmitry Goncharov in
8027         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00003.html>.
8029         * lib/findprog.c (find_in_path): When the file found in a PATH element
8030         is a directory, continue searching.
8031         * modules/findprog (Depends-on): Add sys_stat, stat.
8032         * modules/findprog-lgpl (Depends-on): Likewise.
8034         * lib/progreloc.c (maybe_executable): When the file found in a PATH
8035         element is a directory, continue searching.
8036         * lib/relocwrapper.c: Update comments.
8037         * modules/relocatable-prog-wrapper (Files): Add m4/largefile.m4.
8038         (configure.ac-early): New section.
8040 2020-04-10  Bruno Haible  <bruno@clisp.org>
8042         MODULES.html.sh: Support for reproducible builds from git-less tarballs.
8043         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8044         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00061.html>.
8045         * MODULES.html.sh: In a git-less tarball, use the date of the first
8046         ChangeLog entry.
8048 2020-04-04  Bruno Haible  <bruno@clisp.org>
8050         Fix comments: The gettext library is under LGPL 2.1, not LGPL 2.0.
8051         * m4/gettext.m4: Fix comments regarding the gettext library.
8052         * m4/intl-thread-locale.m4: Likewise.
8053         * m4/intlmacosx.m4: Likewise.
8054         * m4/lcmessage.m4: Likewise.
8055         * m4/nls.m4: Likewise.
8056         * m4/po.m4: Likewise.
8057         * m4/progtest.m4: Likewise.
8059 2020-04-04  Jim Meyering  <meyering@fb.com>
8061         maint: remove a stray inter-word space in a 6x-repeated comment
8062         Induce the changes by running this:
8063           re='by  perl'; git grep -l "$re"|xargs perl -pi -e "s/$re/by perl/"
8064         * build-aux/announce-gen: Change "by  perl" to "by perl".
8065         * build-aux/gitlog-to-changelog: Likewise.
8066         * build-aux/prefix-gnulib-mk: Likewise.
8067         * build-aux/update-copyright: Likewise.
8068         * build-aux/useless-if-before-free: Likewise.
8069         * tests/test-update-copyright.sh: Likewise.
8071 2020-03-28  Bruno Haible  <bruno@clisp.org>
8073         Use module 'filename' instead of module 'dosname'.
8075         * lib/at-func.c: Include filename.h instead of dosname.h.
8076         * lib/unlinkat.c: Likewise.
8077         * modules/areadlinkat (Depends-on): Add filename. Remove dosname.
8078         * modules/areadlinkat-with-size (Depends-on): Likewise.
8079         * modules/faccessat (Depends-on): Likewise.
8080         * modules/fchmodat (Depends-on): Likewise.
8081         * modules/fchownat (Depends-on): Likewise.
8082         * modules/fstatat (Depends-on): Likewise.
8083         * modules/mkdirat (Depends-on): Likewise.
8084         * modules/mkfifoat (Depends-on): Likewise.
8085         * modules/readlinkat (Depends-on): Likewise.
8086         * modules/selinux-at (Depends-on): Likewise.
8087         * modules/symlinkat (Depends-on): Likewise.
8088         * modules/unlinkat (Depends-on): Likewise.
8089         * modules/utimensat (Depends-on): Likewise.
8091         * lib/at-func2.c: Include filename.h instead of dosname.h.
8092         * modules/linkat (Depends-on): Add filename. Remove dosname.
8093         * modules/renameatu (Depends-on): Likewise.
8095         * lib/canonicalize.c: Include filename.h instead of dosname.h.
8096         * lib/canonicalize-lgpl.c: Likewise.
8097         * modules/canonicalize (Depends-on): Add filename.
8098         * modules/canonicalize-lgpl (Depends-on): Likewise.
8100         * lib/dirname.h: Include filename.h instead of dosname.h.
8101         * modules/dirname-lgpl (Depends-on): Add filename. Remove dosname.
8103         * lib/fchdir.c: Include filename.h instead of dosname.h.
8104         * modules/fchdir (Depends-on): Add filename. Remove dosname.
8106         * lib/openat.c: Include filename.h instead of dosname.h.
8107         * modules/openat (Depends-on): Add filename. Remove dosname.
8109         * lib/rmdir.c: Include filename.h instead of dosname.h.
8110         * modules/rmdir (Depends-on): Add filename. Remove dosname.
8112         * lib/savewd.c: Include filename.h instead of dosname.h.
8113         * modules/savewd (Depends-on): Add filename. Remove dosname.
8115         * lib/unlink.c: Include filename.h instead of dosname.h.
8116         * modules/unlink (Depends-on): Add filename. Remove dosname.
8118         * modules/relocatable-prog-wrapper (Depends-on): Add filename.
8119         * lib/relocwrapper.c: Update comments.
8121         * modules/lstat (Depends-on): Remove dosname.
8123 2020-03-28  Bruno Haible  <bruno@clisp.org>
8125         dosname: Redirect to 'filename'.
8126         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8127         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00042.html>.
8128         * lib/dosname.h: Remove all definitions. Just include filename.h.
8129         * modules/dosname (Status, Notice): Mark as deprecated.
8130         (Depends-on): Add 'filename'.
8132 2020-03-28  Bruno Haible  <bruno@clisp.org>
8134         dosname: Change IS_RELATIVE_FILE_NAME.
8135         * lib/dosname.h (IS_RELATIVE_FILE_NAME): On native Windows, OS/2, DOS,
8136         change the definition so that IS_RELATIVE_FILE_NAME("c:") is false.
8137         * NEWS: Mention the change.
8139 2020-03-28  Bruno Haible  <bruno@clisp.org>
8141         filename: Copy some definitions from module 'dosname'.
8142         * lib/filename.h: Include <string.h>, for IS_FILE_NAME_WITH_DIR.
8143         (HAS_DEVICE): Document macro.
8144         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New macro.
8145         (IS_ABSOLUTE_FILE_NAME): Consider
8146         FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE.
8147         (IS_RELATIVE_FILE_NAME, IS_FILE_NAME_WITH_DIR): New macros.
8148         (IS_ABSOLUTE_PATH, IS_PATH_WITH_DIR): Define as deprecated aliases.
8149         * lib/relocatable.c (IS_FILE_NAME_WITH_DIR): Renamed from
8150         IS_PATH_WITH_DIR.
8151         (DllMain): Update.
8152         * lib/progreloc.c (IS_FILE_NAME_WITH_DIR): Renamed from
8153         IS_PATH_WITH_DIR.
8154         (find_executable): Update.
8155         * NEWS: Document the deprecations.
8157 2020-03-25  Paul Eggert  <eggert@cs.ucla.edu>
8159         getopt-posix: port __GETOPT_PREFIX to macOS
8160         * lib/getopt-pfx-core.h (_GETOPT) [__APPLE__ && __GETOPT_PREFIX]:
8161         Define to work around a problem with asm on macOS (Bug#40205).
8163 2020-03-22  Bruno Haible  <bruno@clisp.org>
8165         MODULES.html.sh: Add support for reproducible builds.
8166         Reported by Bernhard M. Wiedemann <bwiedemann@suse.de> in
8167         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00024.html>.
8168         * MODULES.html.sh: Print the date of the last gnulib commit, not the
8169         current date.
8171 2020-03-22  Bruno Haible  <bruno@clisp.org>
8173         Several modules: Depend on stat.
8174         * modules/acl-permissions (Depends-on): Add stat.
8175         * modules/canonicalize (Depends-on): Likewise.
8176         * modules/file-has-acl (Depends-on): Likewise.
8177         * modules/fstat (Depends-on): Likewise.
8178         * modules/fstatat (Depends-on): Likewise.
8179         * modules/glob (Depends-on): Likewise.
8180         * modules/javacomp (Depends-on): Likewise.
8181         * modules/linkat (Depends-on): Likewise.
8182         * modules/mkdir (Depends-on): Likewise.
8183         * modules/pt_chown (Depends-on): Likewise.
8184         * modules/ptsname_r (Depends-on): Likewise.
8185         * modules/readlinkat (Depends-on): Likewise.
8186         * modules/rename (Depends-on): Likewise.
8187         * modules/renameatu (Depends-on): Likewise.
8188         * modules/tmpdir (Depends-on): Likewise.
8189         * modules/utimens (Depends-on): Likewise.
8190         * modules/relocatable-prog-wrapper (Depends-on): Add largefile.
8191         * modules/same (Depends-on): Remove stat.
8193 2020-03-22  Bruno Haible  <bruno@clisp.org>
8195         acl-permissions: Improve autoconf macro.
8196         * m4/acl.m4 (gl_FUNC_ACL): Test the value of gl_need_lib_has_acl
8197         more reliably.
8199 2020-03-22  Bruno Haible  <bruno@clisp.org>
8201         file-has-acl: Fix module description.
8202         * modules/file-has-acl (Files): Add lib/acl-internal.h, m4/acl.m4.
8203         (Depends-on): Depend on acl-permissions unconditionally.
8205 2020-03-21  Bruno Haible  <bruno@clisp.org>
8207         unlink: Ensure errno also on native Windows.
8208         * modules/unlink (Depends-on): Add malloc-posix.
8210 2020-03-21  Paul Eggert  <eggert@cs.ucla.edu>
8212         unlink: fix malloc errno typo
8213         Problem reported by Tim Rühsen in:
8214         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00044.html
8215         * lib/unlink.c (rpl_unlink): Don’t mask malloc errno.
8217 2020-03-16  Bruno Haible  <bruno@clisp.org>
8219         *printf-posix: Fix m4 error (regression from 2020-03-08).
8220         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): Enable interpretation of
8221         brackets in AC_COMPILE_IFELSE invocation.
8223 2020-03-08  Bruno Haible  <bruno@clisp.org>
8225         crypto/af_alg, renameatu, same, term-style-control: Depend on fstat.
8226         * modules/crypto/af_alg (Depends-on): Add fstat.
8227         * modules/renameatu (Depends-on): Likewise.
8228         * modules/same (Depends-on): Likewise.
8229         * modules/term-style-control (Depends-on): Likewise.
8231 2020-03-08  Bruno Haible  <bruno@clisp.org>
8233         *printf-posix: Document why it's overridden on some glibc systems.
8234         Reported by Adrian Bunk <bunk@stusta.de> in
8235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00011.html>.
8236         * doc/posix-functions/*printf.texi: Document the problem with the %n
8237         directive on some glibc systems.
8238         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Adjust
8239         the cross-compilation guesses accordingly.
8241 2020-03-07  Paul Eggert  <eggert@cs.ucla.edu>
8243         open, openat: port to (O_RDWR | O_RDONLY) != 0
8244         Potential portability problem reported by Dan Gohman in:
8245         https://lists.gnu.org/r/bug-gnulib/2020-03/msg00000.html
8246         * lib/open.c (open):
8247         * lib/openat.c (rpl_openat):
8248         Don’t assume O_RDONLY is disjoint from O_RDWR.
8250 2020-03-07  Bruno Haible  <bruno@clisp.org>
8252         openat: Fix theoretically possible issue on GNU/Hurd.
8253         Reported by Dan Gohman <sunfish@mozilla.com> in
8254         <https://lists.gnu.org/archive/html/bug-gnulib/2020-03/msg00000.html>.
8255         * lib/openat.c (rpl_openat): When testing whether flags contains O_RDWR,
8256         ignore the bits that are also set in O_RDONLY.
8258 2020-02-24  Bruno Haible  <bruno@clisp.org>
8260         getloadavg: Don't use /usr/local when cross-compiling on AIX.
8261         Reported by Jens Rehsack <sno@netbsd.org> in
8262         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00136.html>.
8263         * m4/getloadavg.m4 (gl_GETLOADAVG): Don't look in /usr/local/lib when
8264         cross-compiling.
8266 2020-02-24  Bruno Haible  <bruno@clisp.org>
8268         fcntl: Add witness of gnulib override.
8269         Reported by Jens Rehsack <sno@netbsd.org> in
8270         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00137.html>.
8271         * lib/fcntl.in.h (GNULIB_defined_rpl_fcntl, GNULIB_defined_fcntl): New
8272         macros.
8274 2020-02-23  Assaf Gordon  <assafgordon@gmail.com>
8276         Update users.txt.
8277         * users.txt: Add datamash, time.
8279 2020-02-23  Bruno Haible  <bruno@clisp.org>
8281         uni*/base: Use 'restrict'.
8282         * lib/unitypes.in.h (_UC_RESTRICT): New macro, based on '_Restrict_'
8283         from lib/regex.h.
8284         * lib/unistr.in.h (u8_cpy, u16_cpy, u32_cpy, u8_strcpy, u16_strcpy,
8285         u32_strcpy, u8_stpcpy, u16_stpcpy, u32_stpcpy, u8_strncpy, u16_strncpy,
8286         u32_strncpy, u8_stpncpy, u16_stpncpy, u32_stpncpy, u8_strcat,
8287         u16_strcat, u32_strcat, u8_strncat, u16_strncat, u32_strncat, u8_strtok,
8288         u16_strtok, u32_strtok): Use '_UC_RESTRICT'.
8289         * lib/uninorm.in.h (u8_normalize, u16_normalize, u32_normalize): Use
8290         '_UC_RESTRICT'.
8291         * lib/uniconv.in.h (u8_conv_to_encoding, u16_conv_to_encoding,
8292         u32_conv_to_encoding): Use '_UC_RESTRICT'.
8293         * lib/unicase.in.h (u8_toupper, u16_toupper, u32_toupper, u8_tolower,
8294         u16_tolower, u32_tolower, u8_totitle, u16_totitle, u32_totitle,
8295         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
8296         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
8297         u32_ct_totitle, u8_casefold, u16_casefold, u32_casefold, u8_ct_casefold,
8298         u16_ct_casefold, u32_ct_casefold, u8_casexfrm, u16_casexfrm,
8299         u32_casexfrm, ulc_casexfrm): Use '_UC_RESTRICT'.
8300         * lib/unilbrk.in.h (u8_possible_linebreaks, u16_possible_linebreaks,
8301         u32_possible_linebreaks, ulc_possible_linebreaks, u8_width_linebreaks,
8302         u16_width_linebreaks, u32_width_linebreaks, ulc_width_linebreaks): Use
8303         '_UC_RESTRICT'.
8304         * lib/uniwbrk.in.h (ulc_wordbreaks): Use '_UC_RESTRICT'.
8305         * lib/unistdio.in.h (ulc_sprintf, ulc_snprintf, ulc_asnprintf,
8306         ulc_vsprintf, ulc_vsnprintf, ulc_vasnprintf, u8_u8_sprintf,
8307         u8_u8_snprintf, u8_u8_asnprintf, u8_u8_vsprintf, u8_u8_vsnprintf,
8308         u8_u8_vasnprintf, u16_u16_sprintf, u16_u16_snprintf, u16_u16_asnprintf,
8309         u16_u16_vsprintf, u16_u16_vsnprintf, u16_u16_vasnprintf,
8310         u32_u32_sprintf, u32_u32_snprintf, u32_u32_asnprintf, u32_u32_vsprintf,
8311         u32_u32_vsnprintf, u32_u32_vasnprintf): Use '_UC_RESTRICT'.
8313 2020-02-23  Bruno Haible  <bruno@clisp.org>
8315         glob, spawn: Use improved '_Restrict_' definition.
8316         * lib/glob.in.h (_Restrict_): Use same definition as in lib/regex.h.
8317         * lib/spawn.in.h (_Restrict_, _Restrict_arr_): Likewise.
8319 2020-02-23  Bruno Haible  <bruno@clisp.org>
8321         crypto/gc: Use 'restrict'.
8322         * lib/gc.h (gc_pbkdf2_hmac, gc_pbkdf2_sha1): Use 'restrict'.
8323         * m4/gc.m4 (gl_GC): Require AC_C_RESTRICT.
8325         crypto/hmac-*: Use 'restrict'.
8326         * lib/hmac.h (hmac_md5, hmac_sha1, hmac_sha256, hmac_sha512): Use
8327         'restrict'.
8328         * modules/crypto/hmac-md5 (configure.ac): Require AC_C_RESTRICT.
8329         * modules/crypto/hmac-sha1 (configure.ac): Likewise.
8330         * modules/crypto/hmac-sha256 (configure.ac): Likewise.
8331         * modules/crypto/hmac-sha512 (configure.ac): Likewise.
8333         crypto/sm3: Use 'restrict'.
8334         * lib/sm3.h (sm3_finish_ctx, sm3_read_ctx, sm3_buffer): Use 'restrict'.
8335         * m4/sm3.m4 (gl_SM3): Require AC_C_RESTRICT.
8337         crypto/*-buffer: Use 'restrict'.
8338         * lib/gl_openssl.h (GL_CRYPTO_FN (_finish_ctx), GL_CRYPTO_FN (_buffer),
8339         GL_CRYPTO_FN (_read_ctx)): Use 'restrict'.
8341         crypto/sha512-buffer: Use 'restrict'.
8342         * lib/sha512.h (sha512_finish_ctx, sha384_finish_ctx, sha512_read_ctx,
8343         sha384_read_ctx, sha512_buffer, sha384_buffer): Use 'restrict'.
8344         * modules/crypto/sha512-buffer (configure.ac): Require AC_C_RESTRICT.
8346         crypto/sha256-buffer: Use 'restrict'.
8347         * lib/sha256.h (sha256_finish_ctx, sha224_finish_ctx, sha256_read_ctx,
8348         sha224_read_ctx, sha256_buffer, sha224_buffer): Use 'restrict'.
8349         * modules/crypto/sha256-buffer (configure.ac): Require AC_C_RESTRICT.
8351         crypto/sha1-buffer: Use 'restrict'.
8352         * lib/sha1.h (sha1_finish_ctx, sha1_read_ctx, sha1_buffer): Use
8353         'restrict'.
8354         * modules/crypto/sha1-buffer (configure.ac): Require AC_C_RESTRICT.
8356         crypto/md5-buffer: Use 'restrict'.
8357         * lib/md5.h (__md5_finish_ctx, __md5_read_ctx, __md5_buffer): Use
8358         'restrict'.
8359         * modules/crypto/md5-buffer (configure.ac): Require AC_C_RESTRICT.
8361         crypto/md4: Use 'restrict'.
8362         * lib/md4.h (md4_finish_ctx, md4_read_ctx, md4_buffer): Use 'restrict'.
8363         * modules/crypto/md4 (configure.ac): Require AC_C_RESTRICT.
8365         crypto/md2: Use 'restrict'.
8366         * lib/md2.h (md2_finish_ctx, md2_read_ctx, md2_buffer): Use 'restrict'.
8367         * modules/crypto/md2 (configure.ac): Require AC_C_RESTRICT.
8369         crypto/rijndael: Use 'restrict'.
8370         * lib/rijndael-api-fst.h (rijndaelBlockEncrypt, rijndaelPadEncrypt,
8371         rijndaelBlockDecrypt, rijndaelPadDecrypt): Use 'restrict'.
8372         * modules/crypto/rijndael (configure.ac): Require AC_C_RESTRICT.
8374         crypto/arctwo: Use 'restrict'.
8375         * lib/arctwo.h (arctwo_encrypt, arctwo_decrypt): Use 'restrict'.
8376         * modules/crypto/arctwo (configure.ac): Require AC_C_RESTRICT.
8378         crypto/arcfour: Use 'restrict'.
8379         * lib/arcfour.h (arcfour_stream): Use 'restrict'.
8380         * modules/crypto/arcfour (configure.ac): Require AC_C_RESTRICT.
8382         careadlinkat: Use 'restrict'.
8383         * lib/careadlinkat.h (careadlinkat): Use 'restrict'.
8384         * modules/careadlinkat (configure.ac): Require AC_C_RESTRICT.
8385         * modules/relocatable-prog-wrapper (configure.ac): Likewise.
8387         regex-quote: Use 'restrict'.
8388         * lib/regex-quote.h (regex_quote_copy): Use 'restrict'.
8389         * modules/regex-quote (configure.ac): Require AC_C_RESTRICT.
8391         system-quote: Use 'restrict'.
8392         * lib/system-quote.h (system_quote_copy): Use 'restrict'.
8393         * modules/system-quote (configure.ac): Require AC_C_RESTRICT.
8395         sh-quote: Use 'restrict'.
8396         * lib/sh-quote.h (shell_quote_copy): Use 'restrict'.
8397         * modules/sh-quote (configure.ac): Require AC_C_RESTRICT.
8399         quotearg: Use 'restrict'.
8400         * lib/quotearg.h (quotearg_buffer): Use 'restrict'.
8401         * m4/quotearg.m4 (gl_QUOTEARG): Require AC_C_RESTRICT.
8403         parse-datetime: Use 'restrict'.
8404         * lib/parse-datetime.h (parse_datetime, parse_datetime2): Use
8405         'restrict'.
8406         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Require AC_C_RESTRICT.
8408         nstrftime: Use 'restrict'.
8409         * lib/strftime.h (nstrftime): Use 'restrict'.
8410         * m4/nstrftime.m4 (gl_FUNC_GNU_STRFTIME): Require AC_C_RESTRICT.
8412         mbstok_r: Use 'restrict'.
8413         * lib/string.in.h (mbstok_r): Use 'restrict'.
8415         xmemcoll: Use 'restrict'.
8416         * lib/xmemcoll.h (xmemcoll): Use 'restrict'.
8417         * modules/xmemcoll (configure.ac): Require AC_C_RESTRICT.
8419         memcoll: Use 'restrict'.
8420         * lib/memcoll.h (memcoll): Use 'restrict'.
8421         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_C_RESTRICT.
8423         vasnprintf: Use 'restrict'.
8424         * lib/vasnprintf.h (asnprintf, vasnprintf): Use 'restrict'.
8425         * modules/vasnprintf (configure.ac): Require AC_C_RESTRICT.
8427         c-vasnprintf: Use 'restrict'.
8428         * lib/c-vasnprintf.h (c_vasnprintf): Use 'restrict'.
8429         * modules/c-vasnprintf (configure.ac): Require AC_C_RESTRICT.
8431         c-vsnprintf: Use 'restrict'.
8432         * lib/c-vsnprintf.h (c_vsnprintf): Use 'restrict'.
8433         * modules/c-vsnprintf (configure.ac): Require AC_C_RESTRICT.
8435         c-snprintf: Use 'restrict'.
8436         * lib/c-snprintf.h (c_snprintf): Use 'restrict'.
8437         * modules/c-snprintf (configure.ac): Require AC_C_RESTRICT.
8439         astrxfrm: Use 'restrict'.
8440         * lib/astrxfrm.h (astrxfrm): Use 'restrict'.
8441         * modules/astrxfrm (configure.ac): Require AC_C_RESTRICT.
8443         amemxfrm: Use 'restrict'.
8444         * lib/amemxfrm.h (amemxfrm): Use 'restrict'.
8445         * modules/amemxfrm (configure.ac): Require AC_C_RESTRICT.
8447 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8449         fchmodat, lchmod: simplify
8450         It appears that we may have overengineered lchmod and fchmodat,
8451         in that the code was prepared for some hypothetical platforms but
8452         was so complicated that it was hard to understand.  I attempted to
8453         improve the situation by simplifying the code when this
8454         simplification should not hurt on real platforms; we can re-add
8455         complexity later to port to platforms I didn’t know about.
8456         * lib/fchmodat.c (fchmodat):
8457         * lib/lchmod.c (lchmod):
8458         Put the ‘defined __linux__ || defined __ANDROID__’ #ifdef only
8459         around the /proc code that needs it.
8460         * lib/fchmodat.c (fchmodat): Coalese calls to orig_fchmodat.
8461         * lib/lchmod.c (__need_system_sys_stat_h): Omit; no longer needed.
8462         Do not include <config.h> twice.
8463         (orig_lchmod) [HAVE_LCHMOD]: Remove, since we need not wrap
8464         lchmod on any known hosts.
8465         (lchmod): Do not defer to fchmodat, so that the lchmod module
8466         need not depend on the fchmodat module (which is a circular
8467         dependency).  Do not use openat, since ‘open’ suffices.
8468         Coalesce calls to lchmod/chmod.
8469         * lib/lchmod.c, lib/sys_stat.in.h (lchmod):
8470         * m4/sys_stat_h.m4 (REPLACE_FSTAT):
8471         * modules/lchmod (Depends-on, configure.ac):
8472         * modules/sys_stat (Depends-on):
8473         Do not worry about replacing lchmod, since that shouldn’t happen.
8474         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Do not check for fchmodat.
8475         Do not worry about whether lchmod works on non-symlinks,
8476         since every known lchmod works on non-symlinks.
8477         * modules/lchmod (Depends-on):
8478         Remove circular dependency on fchmodat.
8480 2020-02-22  Bruno Haible  <bruno@clisp.org>
8482         lchmod: Fix link error on Solaris 10 (regression from 2020-02-16).
8483         * lib/lchmod.c (lchmod): Use the code with lstat and chmod also when
8484         NEED_LCHMOD_NONSYMLINK_FIX is not defined.
8486 2020-02-22  Bruno Haible  <bruno@clisp.org>
8488         Use 'restrict' in all POSIX function declarations.
8489         * lib/iconv.in.h (iconv): Use 'restrict'.
8490         * lib/inttypes.in.h (strtoimax, strtoumax): Likewise.
8491         * lib/monetary.in.h (strfmon_l): Likewise.
8492         * lib/pthread.in.h (pthread_create, pthread_mutex_init,
8493         pthread_mutexattr_gettype, pthread_mutexattr_getrobust,
8494         pthread_mutex_timedlock, pthread_rwlock_init,
8495         pthread_rwlock_timedrdlock, pthread_rwlock_timedwrlock,
8496         pthread_cond_init, pthread_cond_wait, pthread_cond_timedwait): Likewise.
8497         * lib/search.in.h (tdelete): Likewise.
8498         * lib/signal.in.h (pthread_sigmask, sigprocmask): Likewise.
8499         * lib/stdio.in.h (dprintf, fgets, fopen, fprintf, fputs, fread, freopen,
8500         fscanf, fwrite, getdelim, getline, printf, scanf, snprintf, sprintf,
8501         vdprintf, vfprintf, vfscanf, vprintf, vscanf, vsnprintf, vsprintf):
8502         Likewise.
8503         * lib/stdlib.in.h (mbtowc, realpath, strtod, strtold, strtoll,
8504         strtoull): Likewise.
8505         * lib/string.in.h (strncat): Likewise.
8506         * lib/sys_socket.in.h (accept, getpeername, getsockname, getsockopt,
8507         recvfrom): Likewise.
8508         * lib/sys_stat.in.h (fstatat, lstat, stat): Likewise.
8509         * lib/time.in.h (strftime): Likewise.
8510         * lib/unistd.in.h (readlink, readlinkat): Likewise.
8511         * lib/wchar.in.h (mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs, wcrtomb,
8512         wcsrtombs, wcsnrtombs, wmemcpy, wcscpy, wcpcpy, wcsncpy, wcpncpy,
8513         wcscat, wcsncat, wcsxfrm, wcsstr, wcstok, wcsftime): Likewise.
8514         * m4/iconv_h.m4 (gl_ICONV_H): Require AC_C_RESTRICT.
8515         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Likewise.
8516         * m4/monetary_h.m4 (gl_MONETARY_H): Likewise.
8517         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
8518         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
8519         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
8520         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
8521         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
8522         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
8523         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
8524         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
8525         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Make consistent with the
8526         other *_h.m4 files.
8527         * m4/time_h.m4 (gl_HEADER_TIME_H): Likewise.
8529 2020-02-22  Bruno Haible  <bruno@clisp.org>
8531         Update NEWS.
8532         * NEWS: Mention the last change.
8534 2020-02-22  Paul Eggert  <eggert@cs.ucla.edu>
8536         chmodat, chownat: new modules
8537         These are split from fchmodat, fchownat.  GNU Emacs needs the
8538         POSIX-specified fchmodat, but not the gnulib-specified chmodat and
8539         lchmodat.  Split the latter two into a new module chmodat.
8540         Similarly for fchownat.  This the same basic idea for why statat
8541         was split from fstatat on 2013-01-23.
8542         * lib/chmodat.c, lib/openat.h (CHMODAT_INLINE):
8543         Rename from FCHMODAT_INLINE.  All uses changed.
8544         * lib/chownat.c, lib/openat.h (CHOWNAT_INLINE):
8545         Rename from FCHOWNAT_INLINE.  All uses changed.
8546         * lib/openat.h:
8547         (chownat, lchownat): Define if GNULIB_CHOWNAT, not GNULIB_FCHOWNAT.
8548         (chmodat, lchmodat): Define if GNULIB_CHMODAT, not GNULIB_FCHMODAT.
8549         * modules/chmodat, modules/chownat, tests/test-chownat.c: New files.
8550         * modules/fchmodat (Files:): Remove lib/fchmodat.c.
8551         (configure.ac): Remove fchmodat module indicator.
8552         (Makefile.am): Omit chmodat.c.
8553         (Maintainer): Add self.
8554         * modules/fchownat: Similarly, but for chown.
8555         * tests/test-fchownat.c (BASE): Don't define if already defined.
8556         (do_chown, do_lchown) [!TEST_CHOWNAT]: Test fchownat instead.
8558 2020-02-22  Bruno Haible  <bruno@clisp.org>
8560         users.txt: Add groff.
8561         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is>.
8562         * users.txt: Add groff.
8564 2020-02-22  Bruno Haible  <bruno@clisp.org>
8566         gnulib-tool: Ensure copied files are writable.
8567         Reported by Benno Fünfstück <benno.fuenfstueck@gmail.com> in
8568         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00101.html>.
8569         * gnulib-tool (func_ensure_writable): New function.
8570         (func_ln_s, func_hardlink, func_lookup_file, func_import,
8571         func_create_testdir, copy-file): Invoke it after copying a file.
8573 2020-02-22  Bruno Haible  <bruno@clisp.org>
8575         users.txt: Update.
8576         * users.txt: Update URLs to projects that have moved or switched to git.
8577         Use canonical host names. Prefer gitweb over cgit. Prefer the tree view
8578         over the summary view. Add gawk.
8580 2020-02-21  Paul Eggert  <eggert@cs.ucla.edu>
8582         largefile: remove _DARWIN_USE_64_BIT_INODE
8583         It’s not needed in currently-supported macOS versions, and was
8584         problematic anyway in MacOS X 10.5 which was the only version that
8585         could use it.  Problem reported by Peter Eisentraut in:
8586         https://lists.gnu.org/r/bug-autoconf/2020-02/msg00004.html
8587         * m4/largefile.m4 (AC_SYS_LARGEFILE):
8588         Don’t define _DARWIN_USE_64_BIT_INODE.
8589         This syncs with Autoconf master.
8591         Add ‘extern "C"’ to count-one-bits.h etc.
8592         This ports these .h files to C++.
8593         Problem reported by Simon Marchi in:
8594         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00110.html
8595         * lib/count-leading-zeros.h, lib/count-one-bits.h:
8596         * lib/count-trailing-zeros.h: Add ‘extern "C"’.
8598 2020-02-19  Bruno Haible  <bruno@clisp.org>
8600         uninorm/decompose-internal: Avoid "no previous prototype" warning.
8601         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
8602         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00105.html>.
8603         * lib/array-mergesort.h: Accept an optional macro definition
8604         STATIC_FROMTO.
8605         * lib/uninorm/decompose-internal.c (STATIC_FROMTO): New macro.
8607 2020-02-16  Bruno Haible  <bruno@clisp.org>
8609         fchmodat: Make more future-proof.
8610         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Define
8611         NEED_FCHMODAT_NONSYMLINK_FIX.
8612         (gl_PREREQ_FCHMODAT): New macro.
8613         * lib/fchmodat.c (fchmodat): Test NEED_FCHMODAT_NONSYMLINK_FIX. Access
8614         /proc only on Linux. Return EOPNOTSUPP only on Linux and on platforms
8615         without lchmod function.
8616         * modules/fchmodat (configure.ac): Invoke gl_PREREQ_FCHMODAT.
8618 2020-02-16  Bruno Haible  <bruno@clisp.org>
8620         lchmod: Make more future-proof.
8621         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Define NEED_LCHMOD_NONSYMLINK_FIX.
8622         (gl_PREREQ_LCHMOD): New macro.
8623         * lib/lchmod.c (orig_lchmod): New function.
8624         (lchmod): Test NEED_LCHMOD_NONSYMLINK_FIX. Access /proc only on Linux.
8625         Return EOPNOTSUPP only on Linux and on platforms without lchmod
8626         function.
8627         * modules/lchmod (configure.ac): Invoke gl_PREREQ_LCHMOD.
8629         lchmod: Fix buggy override on macOS, HP-UX (regression from 2020-02-08).
8630         * modules/lchmod (Makefile.am): Don't add lchmod.c to lib_SOURCES.
8632 2020-02-16  Paul Eggert  <eggert@cs.ucla.edu>
8634         xnanosleep: prefer pause, and get remaining time
8635         Problem reported by Vladimir Panteleev in:
8636         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00052.html
8637         * lib/xnanosleep.c: Include intprops.h, unistd.h.
8638         (xnanosleep) [HAVE_PAUSE]: Prefer pause when sleeping infinitely.
8639         (xnanosleep): Obtain remaining time when nanosleep is interrupted.
8640         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Check for 'pause'.
8641         * modules/xnanosleep (Depends-on): Add intprops, unistd.
8643 2020-02-16  Bruno Haible  <bruno@clisp.org>
8645         lchmod: Improve cross-compilation guess.
8646         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require AC_CANONICAL_HOST. When
8647         cross-compiling, guess depending on the platform.
8649 2020-02-16  Bruno Haible  <bruno@clisp.org>
8651         fstrcmp: Add API to clean up resources.
8652         Reported by Akim Demaille <akim@lrde.epita.fr> in
8653         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00080.html>.
8654         * lib/fstrcmp.h (fstrcmp_free_resources): New declaration.
8655         * lib/fstrcmp.c (fstrcmp_free_resources): New function.
8657 2020-02-14  Bruno Haible  <bruno@clisp.org>
8659         wctype-h: Fix compilation errors in C++ (regression from 2020-01-25).
8660         Reported by Christian Biesinger in
8661         <https://lists.gnu.org/archive/html/bug-gnulib/2020-02/msg00064.html>.
8662         * lib/wctype.in.h (iswdigit, iswxdigit): Don't declare if the
8663         corresponding module is not enabled.
8664         * tests/test-wctype-h-c++.cc (iswdigit, iswxdigit): Don't check the
8665         prototype if the corresponding module is not enabled.
8667 2020-02-13  Paul Eggert  <eggert@cs.ucla.edu>
8669         fchmodat, lchmod: port to buggy Linux filesystems
8670         Problem reported by Florian Weimer in:
8671         https://www.sourceware.org/ml/libc-alpha/2020-02/msg00534.html
8672         * lib/fchmodat.c (fchmodat):
8673         * lib/lchmod.c (lchmod):
8674         Don’t assume that chmod on the O_PATH-opened fd will do
8675         the right thing on a symbolic link.
8676         * lib/fchmodat.c (fchmodat):
8677         Don’t attempt to special-case
8678         any flag value other than AT_SYMLINK_NOFOLLOW.
8680 2020-02-11  Paul Eggert  <eggert@cs.ucla.edu>
8682         lchmod: pacify Coverity CID 1491216
8683         * lib/lchmod.c (lchmod): Redo #if nesting so that Coverity does
8684         not complain about unreachable code at the ‘struct stat st;’
8685         declaration.
8687 2020-02-10  Bruno Haible  <bruno@clisp.org>
8689         copysignf: Fix link error on HP-UX with cc.
8690         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Require AC_CANONICAL_HOST. On
8691         HP-UX, set COPYSIGNF_LIBM to -lm.
8693 2020-02-10  Bruno Haible  <bruno@clisp.org>
8695         pthread-mutex-tests, pthread-rwlock-tests: Fix link errors on HP-UX.
8696         * modules/pthread-mutex-tests (Makefile.am): Link test-pthread-mutex
8697         with $(LIB_SEMAPHORE).
8698         * modules/pthread-rwlock-tests (Makefile.am): Link test-pthread-rwlock
8699         with $(LIB_SEMAPHORE).
8701 2020-02-10  Bruno Haible  <bruno@clisp.org>
8703         ptsname_r-tests: Avoid unused function warning.
8704         * tests/test-ptsname_r.c: Don't include null-ptr.h if we don't need it.
8706 2020-02-08  Bruno Haible  <bruno@clisp.org>
8708         lchmod: Add tests.
8709         * tests/test-lchmod.c: New file.
8710         * modules/lchmod-tests: New file.
8712 2020-02-08  Bruno Haible  <bruno@clisp.org>
8714         lchmod: Ensure declaration on HP-UX.
8715         * lib/sys_stat.in.h (lchown): Declare also on HP-UX.
8716         * doc/glibc-functions/lchmod.texi: Mention the HP-UX problem.
8718 2020-02-08  Bruno Haible  <bruno@clisp.org>
8720         fchmodat: Strengthen tests.
8721         * tests/test-fchmodat.c (BASE): New macro.
8722         (main): Use it, to avoid conflicts with other unit tests. Verify that
8723         fchmodat changed the file permission bits.
8725 2020-02-08  Bruno Haible  <bruno@clisp.org>
8727         fchmodat: Fix endless recursion on Cygwin (regression from 2020-02-07).
8728         * lib/fchmodat.c (orig_fchmodat): Move definition to immediately after
8729         '#undef __need_system_sys_stat_h'.
8731 2020-02-08  Bruno Haible  <bruno@clisp.org>
8733         fchmodat: Improve cross-compilation guesses.
8734         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): Require AC_CANONICAL_HOST. When
8735         cross-compiling, guess depending on the platform.
8736         * doc/posix-functions/fchmodat.texi: Clarify.
8738 2020-02-08  Bruno Haible  <bruno@clisp.org>
8740         Fix compilation errors in a testdir created with --with-c++-tests.
8741         * lib/c++defs.h (_GL_CXXALIASWARN1_2): Do not use __typeof__ (func),
8742         since it does not work any more with g++ >= 4.4.
8744 2020-02-08  Bruno Haible  <bruno@clisp.org>
8746         doc: Update for glibc 2.31.
8747         * doc/glibc-functions/pthread_clockjoin_np.texi: New file.
8748         * doc/gnulib.texi: Include it.
8749         * doc/pastposix-functions/h_errno.texi: Update.
8750         * doc/posix-functions/*.texi: Likewise.
8752 2020-02-08  Kenneth D'souza  <kdsouza@redhat.com>
8754         mountlist: consider smb3 file systems as remote
8755         * lib/mountlist.c (ME_REMOTE): Recognize file systems of type
8756         "smb3" as remote.
8758 2020-02-07  Paul Eggert  <eggert@cs.ucla.edu>
8760         fchmodat: AT_SYMLINK_NOFOLLOW fix for non-symlinks
8761         Fix lchmod, and fchmodat with AT_SYMLINK_NOFOLLOW, so that
8762         they act like chmod on non-symlinks.
8763         * NEWS:
8764         * doc/glibc-functions/lchmod.texi (lchmod):
8765         * doc/posix-functions/fchmodat.texi (fchmodat):
8766         Mention this.
8767         * lib/fchmodat.c: Define __need_system_sys_stat_h before including
8768         config.h, and undef it after including sys/stat.h the first time.
8769         Include fcntl.h, stdio.h, unistd.h, intprops.h, and include
8770         sys/stat.h a second time after defining orig_fchmodat.
8771         (orig_fchmodat) [HAVE_FCHMODAT]: New function.
8772         (fchmodat) [HAVE_FCHMODAT]: Work around the AT_SYMLINK_NOFOLLOW bug.
8773         * lib/lchmod.c: New file.
8774         * lib/sys_stat.in.h (fchmodat, lchmod):
8775         Support replacing these functions.
8776         * m4/fchmodat.m4 (gl_FUNC_FCHMODAT): If fchmodat exists,
8777         test that AT_SYMLINK_NOFOLLOW works on non-symlinks.
8778         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Check for lstat.
8779         Test that lchmod works on non-symlinks.
8780         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS):
8781         Default REPLACE_FCHMODAT and REPLACE_LCHMOD to 0.
8782         * modules/fchmodat (Depends-on): Add fstatat, intprops, lchmod, unistd.
8783         (Depends-on, configure.ac): Check REPLACE_FCHMODAT too.
8784         * modules/lchmod (Files): Add lib/lchmod.c.
8785         (Depends-on): Add errno, fcntl-h, fchmodat, intprops, lstat, unistd.
8786         (configure.ac): Compile lchmod.c if needed.
8787         (lib_SOURCES): Add lchmod.c.
8788         * modules/sys_stat (sys/stat.h): Substitute REPLACE_FCHMODAT
8789         and REPLACE_LCHMOD.
8790         * tests/test-fchmodat.c: Include fcntl.h, sys/stat.h.
8791         (main): Test fchmodat with AT_SYMLINK_NOFOLLOW on non-symlinks.
8793 2020-02-05  Marc Dionne  <marc.dionne@auristor.com>  (tiny change)
8795         mountlist: Consider AFS filesystems as remote
8796         df --local relies on the ME_REMOTE macro to determine if a given
8797         mount entry should be considered "local".  There is special logic
8798         for nfs and smb/cifs mounts, but /afs as mounted by OpenAFS, the
8799         kernel's kafs module or AuriStorFS is treated as a local mount.
8800         * lib/mountlist.c (ME_REMOTE): Treat mounts of type 'afs'
8801         (OpenAFS, kernel kafs) and 'auristorfs' (AuriStorFS) as remote.
8803 2020-02-04  Paul Eggert  <eggert@cs.ucla.edu>
8805         Port _Noreturn to older Clang
8806         Problem reported by Jeffery Walton in:
8807         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00013.html
8808         * lib/_Noreturn.h (_Noreturn):
8809         * m4/gnulib-common.m4 (gl_COMMON_BODY):
8810         Assume _Noreturn works in Clang 3.5 and later.
8811         It is documented to work in Clang 3.5:
8812         http://releases.llvm.org/3.5.0/tools/clang/docs/AttributeReference.html
8813         and is not documented in Clang 3.4:
8814         https://releases.llvm.org/3.4/tools/clang/docs/LanguageExtensions.html
8815         Apple sets __clang_version__ to a different value, so use
8816         __apple_build_version__ there.  See:
8817         https://lists.gnu.org/r/bug-gnulib/2020-02/msg00017.html
8819 2020-02-04  Pádraig Brady  <P@draigBrady.com>
8821         test-canonicalize: avoid unused function warning
8822         * tests/test-canonicalize.c: Protect the inclusion of null-ptr.h
8823         with the same guard as that used to protect usage of the null_ptr
8824         function, so that one doesn't get a -Wunused warning.
8825         * tests/test-canonicalize-lgpl.c: Likewise.
8827 2020-02-03  Paul Eggert  <eggert@cs.ucla.edu>
8829         libc-config: port to Apple’s Clang variant
8830         * lib/libc-config.h (__glibc_clang_prereq):
8831         Port to Apple’s Clang variant, which uses a different
8832         numbering scheme for __clang_major__.
8834 2020-02-02  Bruno Haible  <bruno@clisp.org>
8836         Document the new modules list-c++, set-c++, oset-c++, map-c++, omap-c++.
8837         * doc/containers.texi: Document these new modules.
8839 2020-02-02  Bruno Haible  <bruno@clisp.org>
8841         omap-c++: Add tests.
8842         * tests/test-omap-c++.cc: New file.
8843         * modules/omap-c++-tests: New file.
8845         omap-c++: New module.
8846         * lib/gl_omap.hh: New file, based on lib/gl_omap.h.
8847         * modules/omap-c++: New file.
8849 2020-02-02  Bruno Haible  <bruno@clisp.org>
8851         map-c++: Add tests.
8852         * tests/test-map-c++.cc: New file.
8853         * modules/map-c++-tests: New file.
8855         map-c++: New module.
8856         * lib/gl_map.hh: New file, based on lib/gl_map.h.
8857         * modules/map-c++: New file.
8859 2020-02-02  Bruno Haible  <bruno@clisp.org>
8861         oset-c++: Add tests.
8862         * tests/test-oset-c++.cc: New file.
8863         * modules/oset-c++-tests: New file.
8865         oset-c++: New module.
8866         * lib/gl_oset.hh: New file, based on lib/gl_oset.h.
8867         * modules/oset-c++: New file.
8869 2020-02-02  Bruno Haible  <bruno@clisp.org>
8871         set-c++: Add tests.
8872         * tests/test-set-c++.cc: New file.
8873         * modules/set-c++-tests: New file.
8875         set-c++: New module.
8876         * lib/gl_set.hh: New file, based on lib/gl_set.h.
8877         * modules/set-c++: New file.
8879 2020-02-02  Bruno Haible  <bruno@clisp.org>
8881         list-c++: Add tests.
8882         * tests/test-list-c++.cc: New file.
8883         * modules/list-c++-tests: New file.
8885         list-c++: New module.
8886         * lib/gl_list.hh: New file, based on lib/gl_list.h.
8887         * modules/list-c++: New file.
8889 2020-02-02  Bruno Haible  <bruno@clisp.org>
8891         xalloc: Fix compilation error in C++ mode on FreeBSD 12.
8892         * lib/xalloc.h (xalloc_die): Comment out 'extern' keyword before
8893         '_Noreturn'.
8894         * lib/sigpipe-die.h (sigpipe_die): Likewise.
8896 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8898         read-file: reduce max size from SIZE_MAX to PTRDIFF_MAX
8899         On x86_64 with glibc-2.30, gcc 9.2 is giving:
8900           error: argument 2 value '18446744073709551615'
8901           exceeds maximum object size 9223372036854775807
8902           [-Werror=alloc-size-larger-than=]
8903         The details of this restriction are discussed at:
8904         https://stackoverflow.com/q/42574890/4421
8905         * lib/read-file.c: s/SIZE_MAX/PTRDIFF_MAX/
8907 2020-02-02  Pádraig Brady  <P@draigBrady.com>
8909         sysctl.h: avoid including on glibc
8910         * lib/nproc.c: Avoid including deprecated and unneeded header on GLIBC.
8911         * lib/physmem.c: Likewise.
8913 2020-02-02  Bruno Haible  <bruno@clisp.org>
8915         list, set, oset, map, omap: Avoid imperative voice in documentation.
8916         * lib/gl_list.h: Use descriptive sentences instead of imperative voice
8917         in the specification of functions.
8918         * lib/gl_set.h: Likewise.
8919         * lib/gl_oset.h: Likewise.
8920         * lib/gl_map.h: Likewise.
8921         * lib/gl_omap.h: Likewise.
8922         * lib/gl_*.h: Likewise.
8924 2020-02-01  Bruno Haible  <bruno@clisp.org>
8926         ansi-c++-opt: Set CXXFLAGS to "-g -O2" by default.
8927         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Determine CXXFLAGS like AC_PROG_CXX
8928         does.
8930 2020-01-29  Bruno Haible  <bruno@clisp.org>
8932         array-map, hash-map, linkedhash-map: Fix module description.
8933         * modules/array-map (Description): Fix description.
8934         * modules/hash-map (Description): Likewise.
8935         * modules/linkedhash-map (Description): Likewise.
8937 2020-01-29  Paul Eggert  <eggert@cs.ucla.edu>
8939         dfa: do not depend on isblank
8940         This removes a difference between Gawk dfa.c and Gnulib dfa.c.
8941         * lib/dfa.c (isblank): Define if neither system nor Gnulib does.
8942         * modules/dfa (Depends-on): Remove isblank.
8943         * modules/isblank: Add a module indicator, for lib/dfa.c.
8945         dfa: do not assume 64-bit int
8946         Problem reported for VAX/VMS C (!) by Arnold Robbins in:
8947         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00173.html
8948         * lib/dfa.c (CHARCLASS_PAIR): Bring back this macro.
8949         (CHARCLASS_WORD_BITS, charclass_word) [!UINT_LEAST64_MAX]:
8950         Fall back to 32-bit words.
8951         (CHARCLASS_INIT): Go back to having 8 32-bit args instead
8952         of 4 64-bit args.  All uses changed.
8954 2020-01-27  Paul Eggert  <eggert@cs.ucla.edu>
8956         regex: remove limits-h dependency
8957         * modules/regex (Depends-on): Remove limits-h, since the
8958         code no longer depends on ULONG_WIDTH already being defined.
8960         regex: port to non-GCC pre-IEC-60559
8961         Problem reported by Arnold Robbins in:
8962         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00154.html
8963         * lib/regex_internal.h (ULONG_WIDTH): Make this usable in #if.
8965 2020-01-25  Bruno Haible  <bruno@clisp.org>
8967         c32isxdigit: Add tests.
8968         * tests/test-c32isxdigit.c: New file, based on tests/test-iswxdigit.c.
8969         * tests/test-c32isxdigit.sh: New file.
8970         * modules/c32isxdigit-tests: New file.
8972         c32isxdigit: New module.
8973         * lib/c32isxdigit.c: New file.
8974         * modules/c32isxdigit: New file.
8975         * doc/posix-functions/iswxdigit.texi: Mention the new module.
8977 2020-01-25  Bruno Haible  <bruno@clisp.org>
8979         c32isupper: Add tests.
8980         * tests/test-c32isupper.c: New file.
8981         * tests/test-c32isupper.sh: New file.
8982         * modules/c32isupper-tests: New file.
8984         c32isupper: New module.
8985         * lib/c32isupper.c: New file.
8986         * modules/c32isupper: New file.
8987         * doc/posix-functions/iswupper.texi: Mention the new module.
8989 2020-01-25  Bruno Haible  <bruno@clisp.org>
8991         c32isspace: Add tests.
8992         * tests/test-c32isspace.c: New file.
8993         * tests/test-c32isspace.sh: New file.
8994         * modules/c32isspace-tests: New file.
8996         c32isspace: New module.
8997         * lib/c32isspace.c: New file.
8998         * modules/c32isspace: New file.
8999         * doc/posix-functions/iswspace.texi: Mention the new module.
9001 2020-01-25  Bruno Haible  <bruno@clisp.org>
9003         c32ispunct: Add tests.
9004         * tests/test-c32ispunct.c: New file.
9005         * tests/test-c32ispunct.sh: New file.
9006         * modules/c32ispunct-tests: New file.
9008         c32ispunct: New module.
9009         * lib/c32ispunct.c: New file.
9010         * modules/c32ispunct: New file.
9011         * doc/posix-functions/iswpunct.texi: Mention the new module.
9013 2020-01-25  Bruno Haible  <bruno@clisp.org>
9015         c32isprint: Add tests.
9016         * tests/test-c32isprint.c: New file.
9017         * tests/test-c32isprint.sh: New file.
9018         * modules/c32isprint-tests: New file.
9020         c32isprint: New module.
9021         * lib/c32isprint.c: New file.
9022         * modules/c32isprint: New file.
9023         * doc/posix-functions/iswprint.texi: Mention the new module.
9025 2020-01-25  Bruno Haible  <bruno@clisp.org>
9027         c32islower: Add tests.
9028         * tests/test-c32islower.c: New file.
9029         * tests/test-c32islower.sh: New file.
9030         * modules/c32islower-tests: New file.
9032         c32islower: New module.
9033         * lib/c32islower.c: New file.
9034         * modules/c32islower: New file.
9035         * doc/posix-functions/iswlower.texi: Mention the new module.
9037 2020-01-25  Bruno Haible  <bruno@clisp.org>
9039         c32isgraph: Add tests.
9040         * tests/test-c32isgraph.c: New file.
9041         * tests/test-c32isgraph.sh: New file.
9042         * modules/c32isgraph-tests: New file.
9044         c32isgraph: New module.
9045         * lib/c32isgraph.c: New file.
9046         * modules/c32isgraph: New file.
9047         * doc/posix-functions/iswgraph.texi: Mention the new module.
9049 2020-01-25  Bruno Haible  <bruno@clisp.org>
9051         c32isdigit: Add tests.
9052         * tests/test-c32isdigit.c: New file, based on tests/test-iswdigit.c.
9053         * tests/test-c32isdigit.sh: New file.
9054         * modules/c32isdigit-tests: New file.
9056         c32isdigit: New module.
9057         * lib/c32isdigit.c: New file.
9058         * modules/c32isdigit: New file.
9059         * doc/posix-functions/iswdigit.texi: Mention the new module.
9061 2020-01-25  Bruno Haible  <bruno@clisp.org>
9063         c32iscntrl: Add tests.
9064         * tests/test-c32iscntrl.c: New file.
9065         * tests/test-c32iscntrl.sh: New file.
9066         * modules/c32iscntrl-tests: New file.
9068         c32iscntrl: New module.
9069         * lib/c32iscntrl.c: New file.
9070         * modules/c32iscntrl: New file.
9071         * doc/posix-functions/iswcntrl.texi: Mention the new module.
9073 2020-01-25  Bruno Haible  <bruno@clisp.org>
9075         c32isblank: Add tests.
9076         * tests/test-c32isblank.c: New file.
9077         * tests/test-c32isblank.sh: New file.
9078         * modules/c32isblank-tests: New file.
9080         c32isblank: New module.
9081         * lib/c32isblank.c: New file.
9082         * modules/c32isblank: New file.
9083         * doc/posix-functions/iswblank.texi: Mention the new module.
9085 2020-01-25  Bruno Haible  <bruno@clisp.org>
9087         c32isalpha: Add tests.
9088         * tests/test-c32isalpha.c: New file.
9089         * tests/test-c32isalpha.sh: New file.
9090         * modules/c32isalpha-tests: New file.
9092         c32isalpha: New module.
9093         * lib/c32isalpha.c: New file.
9094         * modules/c32isalpha: New file.
9095         * doc/posix-functions/iswalpha.texi: Mention the new module.
9097 2020-01-25  Bruno Haible  <bruno@clisp.org>
9099         c32isalnum: Add tests.
9100         * tests/test-c32isalnum.c: New file.
9101         * tests/test-c32isalnum.sh: New file.
9102         * modules/c32isalnum-tests: New file.
9104         c32isalnum: New module.
9105         * lib/c32isalnum.c: New file.
9106         * lib/c32is-impl.h: New file.
9107         * modules/c32isalnum: New file.
9108         * doc/posix-functions/iswalnum.texi: Mention the new module.
9110 2020-01-25  Bruno Haible  <bruno@clisp.org>
9112         uchar: Preparations for modules c32isalnum, ..., c32isxdigit.
9113         * lib/uchar.in.h (c32isalnum, c32isalpha, c32isblank, c32iscntrl,
9114         c32isdigit, c32isgraph, c32islower, c32isprint, c32ispunct, c32isspace,
9115         c32isupper, c32isxdigit): New declarations.
9116         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32ISALNUM,
9117         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9118         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9119         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9120         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9121         * modules/uchar (Makefile.am): Substitute GNULIB_C32ISALNUM,
9122         GNULIB_C32ISALPHA, GNULIB_C32ISBLANK, GNULIB_C32ISCNTRL,
9123         GNULIB_C32ISDIGIT, GNULIB_C32ISGRAPH, GNULIB_C32ISLOWER,
9124         GNULIB_C32ISPRINT, GNULIB_C32ISPUNCT, GNULIB_C32ISSPACE,
9125         GNULIB_C32ISUPPER, GNULIB_C32ISXDIGIT.
9126         * tests/test-uchar-c++.cc: Test the signature of c32isalnum, c32isalpha,
9127         c32isblank, c32iscntrl, c32isdigit, c32isgraph, c32islower, c32isprint,
9128         c32ispunct, c32isspace, c32isupper, c32isxdigit.
9130 2020-01-25  Bruno Haible  <bruno@clisp.org>
9132         mbchar, wctype: Use the corrected iswxdigit function.
9133         * modules/mbchar (Depends-on): Add iswxdigit.
9134         * modules/wctype (Depends-on): Likewise.
9136         iswxdigit: Add tests.
9137         * tests/test-iswxdigit.c: New file.
9138         * tests/test-iswxdigit.sh: New file.
9139         * modules/iswxdigit-tests: New file.
9141         iswxdigit: New module.
9142         * m4/iswxdigit.m4: New file.
9143         * lib/wctype.in.h (iswxdigit): Potentially override.
9144         (iswxdigit, rpl_iswxdigit): Test REPLACE_ISWXDIGIT, not
9145         REPLACE_ISWCNTRL. Rely on ISO C compliant definition.
9146         * lib/iswxdigit.c: New file.
9147         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWXDIGIT,
9148         REPLACE_ISWXDIGIT.
9149         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWXDIGIT,
9150         REPLACE_ISWXDIGIT.
9151         * modules/iswxdigit: New file.
9152         * doc/posix-functions/iswxdigit.texi: Mention the portability problem.
9154 2020-01-25  Bruno Haible  <bruno@clisp.org>
9156         lseek: Fix the override to not undo the effects of AC_SYS_LARGEFILE.
9157         Reported by John Donoghue <john.david.donoghue@gmail.com> in
9158         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00146.html>.
9159         * lib/lseek.c (rpl_lseek): When AC_SYS_LARGEFILE has enabled a 64-bit
9160         off_t on mingw, invoke _lseeki64 instead of lseek.
9162 2020-01-25  Bruno Haible  <bruno@clisp.org>
9164         iswdigit tests: Avoid test failure on Cygwin.
9165         * tests/test-iswdigit.c (for_character): If mbrtowc cannot convert the
9166         byte sequence, return 0.
9168         iswdigit: Fix test failure on native Windows.
9169         * lib/wctype.in.h (rpl_iswdigit): Rely on ISO C compliant definition.
9171         mbchar, wctype: Use the corrected iswdigit function.
9172         * modules/mbchar (Depends-on): Add iswdigit.
9173         * modules/wctype (Depends-on): Likewise.
9175         iswdigit: Add tests.
9176         * tests/test-iswdigit.c: New file.
9177         * tests/test-iswdigit.sh: New file.
9178         * modules/iswdigit-tests: New file.
9180         iswdigit: New module.
9181         * m4/iswdigit.m4: New file.
9182         * lib/wctype.in.h (iswdigit): Potentially override.
9183         (iswdigit, rpl_iswdigit): Test REPLACE_ISWDIGIT, not REPLACE_ISWCNTRL.
9184         * lib/iswdigit.c: New file.
9185         * m4/wctype_h.m4 (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWDIGIT,
9186         REPLACE_ISWDIGIT.
9187         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWDIGIT,
9188         REPLACE_ISWDIGIT.
9189         * modules/iswdigit: New file.
9190         * doc/posix-functions/iswdigit.texi: Mention the portability problem.
9192 2020-01-25  Bruno Haible  <bruno@clisp.org>
9194         hard-locale tests: Make it easy to reuse the musl test.
9195         * m4/musl.m4: New file, extracted from modules/hard-locale-tests.
9196         * modules/hard-locale-tests (Files): Add it.
9197         (configure.ac): Invoke gl_MUSL_LIBC.
9199 2020-01-24  Paul Eggert  <eggert@cs.ucla.edu>
9201         regex: port to Gawk on nonstandard platforms
9202         * lib/regex_internal.h (ULONG_WIDTH): Define if not already defined.
9203         This is useful for Gawk, which does not use the Gnulib stdlib-h
9204         module.  Problem reported by Arnold Robbins in:
9205         https://lists.gnu.org/r/bug-gnulib/2020-01/msg00138.html
9207 2020-01-21  Paul Eggert  <eggert@cs.ucla.edu>
9209         regex: fix bug with >=16 subexpressions
9210         * lib/regex_internal.h (struct re_backref_cache_entry):
9211         Use bitset_word_t as the type of eps_reachable_subexps_map,
9212         instead of unsigned short int.  This fixes a bug I introduced
9213         to glibc in 2005-09-28T17:33:18Z!drepper@redhat.com (glibc commit
9214         2c05d33f90861d074dc12808dafbde30f487b1a0, BZ #1302).
9215         Remove unused member 'unused'.
9217         regex: simplify definition of BITSET_WORD_BITS
9218         * config/srclist.txt: Remove regex.c, regex_internal.h temporarily.
9219         * lib/regex.c (__STDC_WANT_IEC_60559_BFP_EXT__): Define.
9220         * lib/regex_internal.h (BITSET_WORD_BITS):
9221         * modules/regex (Depends-on): Add limits-h.
9222         Simplify now that we can use ULONG_WIDTH.
9224 2020-01-20  Bruno Haible  <bruno@clisp.org>
9226         mbrtoc32: Add note about FreeBSD 12.
9227         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): Guess no also on FreeBSD.
9228         * doc/posix-functions/mbrtoc32.texi: Mention that FreeBSD 12 is also
9229         affected.
9231 2020-01-20  Bruno Haible  <bruno@clisp.org>
9233         unistr/u8-uctomb: Fix warning.
9234         Reported by Andreas Schwab <schwab@suse.de> in
9235         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00127.html>.
9236         * lib/unistr/u8-uctomb.c (FALLTHROUGH): New macro.
9237         (u8_uctomb): Add FALLTHROUGH markers.
9239 2020-01-20  Bruno Haible  <bruno@clisp.org>
9241         lock: Fix test-once1 failure on FreeBSD 11 (regression from 2020-01-19).
9242         * lib/glthread/lock.c (glthread_once_multithreaded): New function.
9243         * lib/glthread/lock.h (glthread_once_multithreaded): New declaration.
9244         (glthread_once): Use it.
9246 2020-01-19  Bruno Haible  <bruno@clisp.org>
9248         threadlib: Disable use of weak symbols on FreeBSD 11.
9249         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9250         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00061.html>.
9251         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): Require AC_CANONICAL_HOST. Test
9252         against a bug in FreeBSD 11.
9254 2020-01-19  Bruno Haible  <bruno@clisp.org>
9256         iconv_open: Improve z/OS support.
9257         * lib/iconv_open-zos.gperf: Choose better aliases. Add mapping for
9258         ISO-8859-3, KOI8-R, KOI8-U, CP775, CP857, CP865, CP1129, CP1131, CP1257.
9259         Remove mapping for EUC-TW.
9261 2020-01-18  Bruno Haible  <bruno@clisp.org>
9263         Rename ~~gnulib.m4 to zzgnulib.m4.
9264         Suggested by Paul Eggert.
9265         * m4/zzgnulib.m4: Renamed from m4/~~gnulib.m4.
9266         * gnulib-tool (func_get_filelist): Update.
9267         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9269 2020-01-18  Bruno Haible  <bruno@clisp.org>
9271         doc: Update license notices.
9272         * doc/*.texi: Reference the GFDL 1.3 through a URL, rather than by
9273         reference to a section or to a "file as part of this distribution".
9275 2020-01-18  Bruno Haible  <bruno@clisp.org>
9277         Avoid error "m4_require: circular dependency of AC_LANG_COMPILER(C)".
9278         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9279         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00109.html>.
9280         * m4/00gnulib.m4 (gl_COMPILER_CLANG): Use _AC_COMPILE_IFELSE, not
9281         AC_EGREP_CPP.
9283 2020-01-18  Bruno Haible  <bruno@clisp.org>
9285         Ensure Automake does not drop ~~gnulib.m4.
9286         * m4/~~gnulib.m4 (gl_ZZGNULIB): New macro.
9287         * m4/gnulib-common.m4 (gl_COMMON): Require it.
9289 2020-01-18  Bruno Haible  <bruno@clisp.org>
9291         Fix major regression from 2020-01-10.
9292         Reported by Paul Eggert in
9293         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00079.html>.
9294         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9295         Don't AC_REQUIRE anything.
9296         (gl_COMPILER_PREPARE_CHECK_DECL): Define through AC_DEFUN, not
9297         AC_DEFUN_ONCE. Use _AC_COMPILE_IFELSE, not AC_COMPILE_IFELSE.
9298         (_AC_CHECK_DECL_BODY): If ac_compile_for_check_decl has not been set,
9299         use ac_compile instead.
9300         (AC_CHECK_DECL): Remove override.
9301         * m4/~~gnulib.m4: New file.
9302         * gnulib-tool (func_get_filelist): Add also ~~gnulib.m4.
9303         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
9305 2020-01-17  Bruno Haible  <bruno@clisp.org>
9306             Paul Eggert  <eggert@cs.ucla.edu>
9308         glob: Fix use-after-free bug.
9309         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
9310         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00102.html>.
9311         * lib/glob.c (__glob): Delay freeing dirname until after the use of
9312         end_name.
9314 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9316         vcs-to-changelog: Fix parsing of fndecl without args.
9317         * build-aux/vcstocl/frontend_c.py (FNDECL_RE): Fix regular expression
9318         for empty arguments.
9320 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9322         vcs-to-changelog: Add documentation.
9323         * doc/vcs-to-changelog.texi: New file.
9324         * doc/gnulib.texi (Build Infrastructure Modules): Add vcs-to-changelog
9325         section.
9327 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9329         vcs-to-changelog: Allow loading of custom quirks file.
9330         * build-aux/vcs_to_changelog.py: New commandline option -q.
9332 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9334         vcs-to-changelog: Fix formatting of ChangeLog output.
9335         * build-aux/vcstocl/vcs_git.py (list_changes): Add newline in print
9336         output.
9338 2020-01-16  Siddhesh Poyarekar  <siddhesh@gotplt.org>
9340         vcs-to-changelog: Drop python3 shebang from frontend_c.py.
9341         Reported in
9342         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00050.html>.
9343         * build-aux/vcstocl/frontend_c.py: Remove shebang.
9345 2020-01-15  Simon Josefsson  <simon@josefsson.org>
9347         crypto/gc-pbkdf2: New module.
9348         * MODULES.html.sh (func_all_modules): Add gc-pbkdf2.
9349         * NEWS: Deprecated gc-pbkdf2-sha1 in favor of gc-pbkdf2.
9350         * lib/gc-pbkdf2.c: New file.
9351         * lib/gc-pbkdf2-sha1.c: Use new interface.
9352         * lib/gc.h (GC_MAX_DIGEST_SIZE, gc_pbkdf2_hmac): Add.
9353         * modules/crypto/gc-pbkdf2: New file.
9354         * modules/crypto/gc-pbkdf2-tests: New file.
9355         * tests/test-gc-pbkdf2.c: New file.
9357 2020-01-12  Bruno Haible  <bruno@clisp.org>
9359         c32stombs: Add tests.
9360         * tests/test-c32stombs.c: New file, based on tests/test-c32srtombs.c.
9361         * tests/test-c32stombs-1.sh: New file, based on
9362         tests/test-c32srtombs-1.sh.
9363         * tests/test-c32stombs-2.sh: New file, based on
9364         tests/test-c32srtombs-2.sh.
9365         * tests/test-c32stombs-3.sh: New file, based on
9366         tests/test-c32srtombs-3.sh.
9367         * tests/test-c32stombs-4.sh: New file, based on
9368         tests/test-c32srtombs-4.sh.
9369         * modules/c32stombs-tests: New file, based on modules/c32srtombs-tests.
9371         c32stombs: New module.
9372         * lib/uchar.in.h (c32stombs): New declaration.
9373         * lib/c32stombs.c: New file.
9374         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32STOMBS.
9375         * modules/uchar (Makefile.am): Substitute GNULIB_C32STOMBS.
9376         * modules/c32stombs: New file.
9377         * tests/test-uchar-c++.cc: Test the signature of c32stombs.
9378         * doc/posix-functions/wcstombs.texi: Mention the new module.
9380 2020-01-11  Jim Meyering  <meyering@fb.com>
9382         perl: require the "warnings" module
9383         * m4/perl.m4: Also "use warnings", so we reject the perl found
9384         on at least one IRIX 6.5 system. Reported by Bruno Haible in
9385         https://lists.gnu.org/r/sed-devel/2020-01/msg00004.html
9387 2020-01-10  Bruno Haible  <bruno@clisp.org>
9389         Fix major regression from 2020-01-04.
9390         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se> in
9391         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00072.html>.
9392         * m4/00gnulib.m4 (gl_COMPILER_PREPARE_CHECK_DECL): Define through
9393         AC_DEFUN_ONCE.
9394         (AC_CHECK_DECL): Invoke, not require, it.
9396 2020-01-10  Bruno Haible  <bruno@clisp.org>
9398         c32snrtombs: Add tests.
9399         * tests/test-c32snrtombs.c: New file, based on tests/test-wcsnrtombs.c.
9400         * tests/test-c32snrtombs-1.sh: New file, based on
9401         tests/test-wcsnrtombs1.sh.
9402         * tests/test-c32snrtombs-2.sh: New file, based on
9403         tests/test-wcsnrtombs2.sh.
9404         * tests/test-c32snrtombs-3.sh: New file, based on
9405         tests/test-wcsnrtombs3.sh.
9406         * tests/test-c32snrtombs-4.sh: New file, based on
9407         tests/test-wcsnrtombs4.sh.
9408         * modules/c32snrtombs-tests: New file, based on
9409         modules/wcsnrtombs-tests.
9411         c32snrtombs: New module.
9412         * lib/uchar.in.h (c32snrtombs): New declaration.
9413         * lib/wcsnrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9414         INTERNAL_STATE, WCRTOMB.
9415         * lib/wcsnrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9416         * lib/c32snrtombs.c: New file.
9417         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SNRTOMBS.
9418         * modules/uchar (Makefile.am): Substitute GNULIB_C32SNRTOMBS.
9419         * modules/c32snrtombs: New file.
9420         * tests/test-uchar-c++.cc: Test the signature of c32snrtombs.
9421         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9423 2020-01-09  Bruno Haible  <bruno@clisp.org>
9425         c32srtombs: Add tests.
9426         * tests/test-c32srtombs.c: New file, based on tests/test-wcsrtombs.c.
9427         * tests/test-c32srtombs-1.sh: New file, based on
9428         tests/test-wcsrtombs1.sh.
9429         * tests/test-c32srtombs-2.sh: New file, based on
9430         tests/test-wcsrtombs2.sh.
9431         * tests/test-c32srtombs-3.sh: New file, based on
9432         tests/test-wcsrtombs3.sh.
9433         * tests/test-c32srtombs-4.sh: New file, based on
9434         tests/test-wcsrtombs4.sh.
9435         * modules/c32srtombs-tests: New file, based on modules/wcsrtombs-tests.
9437         c32srtombs: New module.
9438         * lib/uchar.in.h (c32srtombs): New declaration.
9439         * lib/wcsrtombs-impl.h: Parameterize: Use macros FUNC, SCHAR_T,
9440         INTERNAL_STATE, WCRTOMB.
9441         * lib/wcsrtombs.c (FUNC, SCHAR_T, INTERNAL_STATE, WCRTOMB): New macros.
9442         * lib/c32srtombs.c: New file.
9443         * lib/c32srtombs-state.c: New file, based on lib/wcsrtombs-state.c.
9444         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32SRTOMBS.
9445         * modules/uchar (Makefile.am): Substitute GNULIB_C32SRTOMBS.
9446         * modules/c32srtombs: New file.
9447         * tests/test-uchar-c++.cc: Test the signature of c32srtombs.
9448         * doc/posix-functions/wcsrtombs.texi: Mention the new module.
9450 2020-01-08  Bruno Haible  <bruno@clisp.org>
9452         c32tob: Make consistent with mbrtoc32.
9453         * lib/c32tob.c: Include <stdio.h>, <string.h>, <wchar.h>.
9454         (c32tob): If the char32_t encoding and the wchar_t encoding may differ,
9455         use c32rtomb, not wctob.
9456         * modules/c32tob (Files): Add m4/mbrtoc32.m4.
9457         (Depends-on): Add c32rtomb.
9458         (configure.ac): Require gl_MBRTOC32_SANITYCHECK.
9460 2020-01-08  Bruno Haible  <bruno@clisp.org>
9462         c32rtomb: Add tests.
9463         * tests/test-c32rtomb.c: New file, based on tests/test-wcrtomb.c.
9464         * tests/test-c32rtomb.sh: New file, based on tests/test-wcrtomb.sh.
9465         * tests/test-c32rtomb-w32.c: New file, based on
9466         tests/test-wcrtomb-w32.c.
9467         * tests/test-c32rtomb-w32-1.sh: New file, based on
9468         tests/test-wcrtomb-w32-1.sh.
9469         * tests/test-c32rtomb-w32-2.sh: New file, based on
9470         tests/test-wcrtomb-w32-2.sh.
9471         * tests/test-c32rtomb-w32-3.sh: New file, based on
9472         tests/test-wcrtomb-w32-3.sh.
9473         * tests/test-c32rtomb-w32-4.sh: New file, based on
9474         tests/test-wcrtomb-w32-4.sh.
9475         * tests/test-c32rtomb-w32-5.sh: New file, based on
9476         tests/test-wcrtomb-w32-5.sh.
9477         * tests/test-c32rtomb-w32-6.sh: New file, based on
9478         tests/test-wcrtomb-w32-6.sh.
9479         * tests/test-c32rtomb-w32-7.sh: New file, based on
9480         tests/test-wcrtomb-w32-7.sh.
9481         * modules/c32rtomb-tests: New file.
9483         c32rtomb: New module.
9484         * lib/uchar.in.h (c32rtomb): New declaration.
9485         * lib/c32rtomb.c: New file, based on lib/unistr/u8-uctomb-aux.c.
9486         * m4/c32rtomb.m4: New file.
9487         * m4/uchar.m4 (gl_UCHAR_H): Test whether c32rtomb is declared.
9488         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_C32RTOMB, HAVE_C32RTOMB,
9489         REPLACE_C32RTOMB.
9490         * modules/uchar (Makefile.am): Substitute GNULIB_C32RTOMB,
9491         HAVE_C32RTOMB, REPLACE_C32RTOMB.
9492         * modules/c32rtomb: New file.
9493         * tests/test-uchar-c++.cc: Test the signature of c32rtomb.
9494         * doc/posix-functions/c32rtomb.texi: Document the new module.
9495         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9497 2020-01-08  Bruno Haible  <bruno@clisp.org>
9499         mbrtoc32: Use the system's mbrtoc32 if it exists and basically works.
9500         * m4/mbrtoc32.m4 (gl_MBRTOC32_SANITYCHECK): New macro.
9501         (gl_FUNC_MBRTOC32): Require it. Set REPLACE_MBRTOC32 if mbrtoc32 exists
9502         but is not working.
9503         * lib/mbrtoc32.c: Include hard-locale.h, <locale.h>.
9504         (mbrtoc32): If the char32_t encoding and the wchar_t encoding may
9505         differ, use the system's mbrtoc32, adding workarounds.
9506         * modules/mbrtoc32 (Depends-on): Add hard-locale.
9507         * doc/posix-functions/mbrtoc32.texi: Mention the Solaris and native
9508         Windows problem.
9509         * lib/btoc32.c: Include <stdio.h>, <string.h>.
9510         (btoc32): If the char32_t encoding and the wchar_t encoding may differ,
9511         use mbrtoc32, not btowc.
9512         * modules/btoc32 (Depends-on): Add mbrtoc32.
9513         * lib/mbsrtoc32s.c (mbsrtoc32s): If the char32_t encoding and the
9514         wchar_t encoding may differ, use mbrtoc32, not mbsrtowcs.
9515         * modules/mbsrtoc32s (Depends-on): Update conditions.
9516         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9517         * lib/mbsnrtoc32s.c (mbsnrtoc32s): If the char32_t encoding and the
9518         wchar_t encoding may differ, use mbrtoc32, not mbsnrtowcs.
9519         * modules/mbsnrtoc32s (Depends-on): Update conditions.
9520         (configure.ac): Compile mbsrtoc32s-state.c unconditionally.
9522 2020-01-07  Bruno Haible  <bruno@clisp.org>
9524         wcrtomb: Make multithread-safe, except possibly on IRIX.
9525         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Don't set REPLACE_WCRTOMB to 1 when
9526         REPLACE_MBSTATE_T is set. Define WCRTOMB_C_LOCALE_BUG and
9527         WCRTOMB_RETVAL_BUG.
9528         * lib/wcrtomb.c (wcrtomb): Use original wcrtomb whenever available. Use
9529         wctomb only on IRIX.
9531 2020-01-05  Jim Meyering  <meyering@fb.com>
9533         tests: skip thread-using tests when threading is disabled
9534         sed's configure.ac specifies gl_DISABLE_THREADS, and that caused three
9535         thread-using gnulib tests to fail. Add an #if-guarded exit (77) to each
9536         of those, so they are skipped in this case.
9537         * tests/test-nl_langinfo-mt.c (main): Exit 77 when threading is disabled.
9538         * tests/test-setlocale_null-mt-all.c (main): Likewise.
9539         * tests/test-setlocale_null-mt-one.c (main): Likewise.
9541 2020-01-05  Bruno Haible  <bruno@clisp.org>
9543         tests: Avoid GCC over-optimization caused by _GL_ARG_NONNULL attributes.
9544         Reported by Jim Meyering in
9545         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00040.html>.
9546         * lib/stdlib.in.h (GNULIB_defined_canonicalize_file_name): New macro.
9547         (GNULIB_defined_ptsname_r): New macro.
9548         * tests/test-canonicalize.c (_GL_ARG_NONNULL): Define to empty.
9549         (main): Disable the NULL argument test if canonicalize_file_name does
9550         not come from gnulib.
9551         * tests/test-canonicalize-lgpl.c (_GL_ARG_NONNULL): Define to empty.
9552         (main): Disable the NULL argument test if canonicalize_file_name does
9553         not come from gnulib.
9554         * tests/test-ptsname_r.c (_GL_ARG_NONNULL): Define to empty.
9555         (test_errors): Disable the NULL argument test if ptsname_r does not come
9556         from gnulib.
9558 2020-01-04  Jim Meyering  <meyering@fb.com>
9560         update-copyright: reenable its always-skipped test
9561         * tests/test-update-copyright.sh: Restore the "-pi" options removed
9562         on 2019-06-15. Without those, an internal preliminary test would
9563         fail, causing this test always to be skipped.
9564         Verify that the test is now run and passes via this:
9565           ./gnulib-tool --test --dir /tmp/x --with-tests update-copyright
9567 2020-01-05  Bruno Haible  <bruno@clisp.org>
9569         mbstoc32s: Add tests.
9570         * tests/test-mbstoc32s.c: New file, based on tests/test-mbsrtoc32s.c.
9571         * tests/test-mbstoc32s-1.sh: New file, based on
9572         tests/test-mbsrtoc32s-1.sh.
9573         * tests/test-mbstoc32s-2.sh: New file, based on
9574         tests/test-mbsrtoc32s-2.sh.
9575         * tests/test-mbstoc32s-3.sh: New file, based on
9576         tests/test-mbsrtoc32s-3.sh.
9577         * tests/test-mbstoc32s-4.sh: New file, based on
9578         tests/test-mbsrtoc32s-4.sh.
9579         * modules/mbstoc32s-tests: New file, based on modules/mbsrtoc32s-tests.
9581         mbstoc32s: New module.
9582         * lib/uchar.in.h (mbstoc32s): New declaration.
9583         * lib/mbstoc32s.c: New file.
9584         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSTOC32S.
9585         * modules/uchar (Makefile.am): Substitute GNULIB_MBSTOC32S.
9586         * modules/mbstoc32s: New file.
9587         * tests/test-uchar-c++.cc: Test the signature of mbstoc32s.
9588         * doc/posix-functions/mbstowcs.texi: Mention the new module.
9590 2020-01-05  Bruno Haible  <bruno@clisp.org>
9592         Tweak recently added tests.
9593         * tests/test-mbrtoc32.c: Make signature consistent with uchar.in.h.
9594         * tests/test-mbsrtoc32s.c: Likewise.
9595         * tests/test-mbsnrtoc32s.c: Likewise.
9597 2020-01-04  Bruno Haible  <bruno@clisp.org>
9599         mbsnrtoc32s: Add tests.
9600         * tests/test-mbsnrtoc32s.c: New file, based on tests/test-mbsnrtowcs.c.
9601         * tests/test-mbsnrtoc32s-1.sh: New file, based on
9602         tests/test-mbsnrtowcs1.sh.
9603         * tests/test-mbsnrtoc32s-2.sh: New file, based on
9604         tests/test-mbsnrtowcs2.sh.
9605         * tests/test-mbsnrtoc32s-3.sh: New file, based on
9606         tests/test-mbsnrtowcs3.sh.
9607         * tests/test-mbsnrtoc32s-4.sh: New file, based on
9608         tests/test-mbsnrtowcs4.sh.
9609         * modules/mbsnrtoc32s-tests: New file, based on
9610         modules/mbsnrtowcs-tests.
9612         mbsnrtoc32s: New module.
9613         * lib/uchar.in.h (mbsnrtoc32s): New declaration.
9614         * lib/mbsnrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9615         INTERNAL_STATE, MBRTOWC.
9616         * lib/mbsnrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9617         * lib/mbsnrtoc32s.c: New file.
9618         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOC32S.
9619         * modules/uchar (Makefile.am): Substitute GNULIB_MBSNRTOC32S.
9620         * modules/mbsnrtoc32s: New file.
9621         * tests/test-uchar-c++.cc: Test the signature of mbsnrtoc32s.
9622         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module.
9624 2020-01-04  Bruno Haible  <bruno@clisp.org>
9626         mbsrtoc32s tests: Enhance test.
9627         * tests/test-mbsrtoc32s.c (main): Include a non-BMP character in the
9628         test strings for UTF-8 and GB18030.
9630 2020-01-04  Bruno Haible  <bruno@clisp.org>
9632         mbsrtoc32s: Fix bug.
9633         * modules/mbsrtoc32s (configure.ac): Require gl_UCHAR_H, to make sure
9634         that SMALL_WCHAR_T is defined.
9636 2020-01-04  Bruno Haible  <bruno@clisp.org>
9638         mbsrtoc32s: Add tests.
9639         * tests/test-mbsrtoc32s.c: New file, based on tests/test-mbsrtowcs.c.
9640         * tests/test-mbsrtoc32s-1.sh: New file, based on
9641         tests/test-mbsrtowcs1.sh.
9642         * tests/test-mbsrtoc32s-2.sh: New file, based on
9643         tests/test-mbsrtowcs2.sh.
9644         * tests/test-mbsrtoc32s-3.sh: New file, based on
9645         tests/test-mbsrtowcs3.sh.
9646         * tests/test-mbsrtoc32s-4.sh: New file, based on
9647         tests/test-mbsrtowcs4.sh.
9648         * modules/mbsrtoc32s-tests: New file, based on modules/mbsrtowcs-tests.
9650         mbsrtoc32s: New module.
9651         * lib/uchar.in.h (mbsrtoc32s): New declaration.
9652         * lib/mbsrtowcs-impl.h: Parameterize: Use macros FUNC, DCHAR_T,
9653         INTERNAL_STATE, MBRTOWC.
9654         * lib/mbsrtowcs.c (FUNC, DCHAR_T, INTERNAL_STATE, MBRTOWC): New macros.
9655         * lib/mbsrtoc32s.c: New file.
9656         * lib/mbsrtoc32s-state.c: New file, based on lib/mbsrtowcs-state.c.
9657         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOC32S.
9658         * modules/uchar (Makefile.am): Substitute GNULIB_MBSRTOC32S.
9659         * modules/mbsrtoc32s: New file.
9660         * tests/test-uchar-c++.cc: Test the signature of mbsrtoc32s.
9661         * doc/posix-functions/mbsrtowcs.texi: Mention the new module.
9663 2020-01-04  Bruno Haible  <bruno@clisp.org>
9665         mbrtowc, mbrtoc32: Tighten dependendies.
9666         * modules/mbrtowc (Depends-on): Disable hard-locale, mbsinit if
9667         REPLACE_MBSTATE_T is 1.
9668         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9669         REPLACE_MBSTATE_T is 0.
9670         * modules/mbrtoc32 (Depends-on): Remove hard-locale, mbsinit. Disable
9671         mbrtowc dependency if REPLACE_MBSTATE_T is 1.
9672         (configure.ac): Don't compile lc-charset-dispatch.c and mbtowc-lock.c if
9673         REPLACE_MBSTATE_T is 0.
9675 2020-01-04  Bruno Haible  <bruno@clisp.org>
9677         uchar: Decide about _GL_LARGE_CHAR32_T at configure time.
9678         * m4/uchar.m4 (gl_UCHAR_H): Set SMALL_WCHAR_T.
9679         * modules/uchar (Files): Add stdint.m4.
9680         (Makefile.am): Substitute SMALL_WCHAR_T.
9681         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): Rely on SMALL_WCHAR_T.
9683 2020-01-04  Bruno Haible  <bruno@clisp.org>
9685         Fix AC_CHECK_DECL so that it deactivates clang's built-in declarations.
9686         Reported by Martin Storsjö <martin@martin.st> in
9687         <https://lists.gnu.org/archive/html/bug-gnulib/2020-01/msg00016.html>.
9688         * m4/00gnulib.m4 (gl_COMPILER_CLANG, gl_COMPILER_PREPARE_CHECK_DECL):
9689         New macros.
9690         (_AC_CHECK_DECL_BODY, AC_CHECK_DECL): Augment.
9692 2020-01-04  Bruno Haible  <bruno@clisp.org>
9694         btoc32: Add tests.
9695         * tests/test-btoc32.c: New file, based on tests/test-btowc.c.
9696         * tests/test-btoc32-1.sh: New file, based on tests/test-btowc1.sh.
9697         * tests/test-btoc32-2.sh: New file, based on tests/test-btowc2.sh.
9698         * modules/btoc32-tests: New file, based on modules/btowc-tests.
9700         btoc32: New module.
9701         * lib/uchar.in.h (btoc32): New declaration.
9702         * lib/btoc32.c: New file.
9703         * m4/uchar.m4 (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_BTOC32.
9704         * modules/uchar (Makefile.am): Substitute GNULIB_BTOC32.
9705         * modules/btoc32: New file.
9706         * tests/test-uchar-c++.cc: Test the signature of btoc32.
9707         * doc/posix-functions/btowc.texi: Mention the new module.
9709 2020-01-03  Bruno Haible  <bruno@clisp.org>
9711         uchar tests: Avoid compilation error with HP cc.
9712         * tests/test-uchar.c: Disable a test when HP cc is in use.
9714 2020-01-03  Bruno Haible  <bruno@clisp.org>
9716         mbrtoc32: Add tests.
9717         * tests/test-mbrtoc32.c: New file, based on tests/test-mbrtowc.c.
9718         * tests/test-mbrtoc32-1.sh: New file, based on tests/test-mbrtowc1.sh.
9719         * tests/test-mbrtoc32-2.sh: New file, based on tests/test-mbrtowc2.sh.
9720         * tests/test-mbrtoc32-3.sh: New file, based on tests/test-mbrtowc3.sh.
9721         * tests/test-mbrtoc32-4.sh: New file, based on tests/test-mbrtowc4.sh.
9722         * tests/test-mbrtoc32-5.sh: New file, based on tests/test-mbrtowc5.sh.
9723         * tests/test-mbrtoc32-w32.c: New file, based on tests/test-mbrtowc-w32.c.
9724         * tests/test-mbrtoc32-w32-1.sh: New file, based on
9725         tests/test-mbrtowc-w32-1.sh.
9726         * tests/test-mbrtoc32-w32-2.sh: New file, based on
9727         tests/test-mbrtowc-w32-2.sh.
9728         * tests/test-mbrtoc32-w32-3.sh: New file, based on
9729         tests/test-mbrtowc-w32-3.sh.
9730         * tests/test-mbrtoc32-w32-4.sh: New file, based on
9731         tests/test-mbrtowc-w32-4.sh.
9732         * tests/test-mbrtoc32-w32-5.sh: New file, based on
9733         tests/test-mbrtowc-w32-5.sh.
9734         * tests/test-mbrtoc32-w32-6.sh: New file, based on
9735         tests/test-mbrtowc-w32-6.sh.
9736         * tests/test-mbrtoc32-w32-7.sh: New file, based on
9737         tests/test-mbrtowc-w32-7.sh.
9738         * modules/mbrtoc32-tests: New file, based on modules/mbrtowc-tests.
9740         mbrtoc32: New module.
9741         * lib/uchar.in.h (mbrtoc32): New declaration.
9742         * lib/mbrtoc32.c: New file, based on lib/mbrtowc.c.
9743         * m4/mbrtoc32.m4: New file, based on m4/mbrtowc.m4.
9744         * m4/uchar.m4 (gl_UCHAR_H): Test whether mbrtoc32 is declared.
9745         (gl_UCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOC32, HAVE_MBRTOC32,
9746         REPLACE_MBRTOC32.
9747         * modules/uchar (Makefile.am): Substitute GNULIB_MBRTOC32,
9748         HAVE_MBRTOC32, REPLACE_MBRTOC32.
9749         * modules/mbrtoc32: New file, based on modules/mbrtowc.
9750         * tests/test-uchar-c++.cc (mbrtoc32): Verify the signature.
9751         * modules/uchar-c++-tests (Makefile.am): Link test-uchar-c++ with
9752         $(LIB_MBRTOWC).
9753         * doc/posix-functions/mbrtoc32.texi: Document the new module.
9754         * doc/posix-functions/mbrtowc.texi: Mention the new module.
9756 2020-01-03  Bruno Haible  <bruno@clisp.org>
9758         mbrtowc: Refactor to share code with mbrtoc32.
9759         * lib/mbrtowc-impl.h: New file, extracted from lib/mbrtowc.c.
9760         * lib/mbrtowc-impl-utf8.h: Likewise.
9761         * lib/mbrtowc.c (mbrtowc): Define macro FITS_IN_CHAR_TYPE. Include
9762         mbrtowc-impl.h.
9763         * modules/mbrtowc (Files): Add the new files.
9765 2020-01-03  Jim Meyering  <meyering@fb.com>
9767         doc: fix time.texi wording
9768         * doc/posix-headers/time.texi (time.h): Typo.
9770 2020-01-03  Bruno Haible  <bruno@clisp.org>
9772         mbrtowc: Refactor locale charset dispatching.
9773         * lib/lc-charset-dispatch.h: New file, extracted from lib/mbrtowc.c.
9774         * lib/lc-charset-dispatch.c: New file, extracted from lib/mbrtowc.c.
9775         * lib/mbrtowc.c: Include lc-charset-dispatch.h. Don't include
9776         localcharset.h, streq.h.
9777         (enc_t): Remove type.
9778         (locale_enc): Remove function.
9779         (cached_locale_enc): Remove variable.
9780         (locale_enc_cached): Remove function.
9781         (mbrtowc): Invoke locale_encoding_classification.
9782         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Update comment.
9783         * modules/mbrtowc (Files): Add lc-charset-dispatch.h,
9784         lc-charset-dispatch.c.
9785         (configure.ac): Arrange to compile lc-charset-dispatch.c.
9787 2020-01-03  Paul Eggert  <eggert@cs.ucla.edu>
9789         doc: mention 32-bit time_t issue
9790         * doc/posix-headers/sys_stat.texi (sys/stat.h):
9791         * doc/posix-headers/time.texi (time.h): Mention 2038.
9793 2020-01-03  Bruno Haible  <bruno@clisp.org>
9795         mbrtowc: Ensure the mbtowc_lock is unique.
9796         * lib/mbtowc-lock.c: New file, based on lib/setlocale-lock.c.
9797         * lib/mbtowc-lock.h: New file, extracted from lib/mbrtowc.c and
9798         lib/setlocale_null.c.
9799         * lib/mbrtowc.c: Include headers needed for mbtowc-lock.h. Don't include
9800         glthread/lock.h. Include mbtowc-lock.h.
9801         (mbtowc_lock): Remove declaration.
9802         (mbrtowc): Use mbtowc_with_lock.
9803         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Require gl_PTHREADLIB. Check for
9804         threads.h. Set LIB_MBRTOWC.
9805         (gl_PREREQ_MBTOWC_LOCK): New macro.
9806         * modules/mbrtowc (Files): Add lib/mbtowc-lock.h, lib/mbtowc-lock.c,
9807         lib/windows-initguard.h, m4/threadlib.m4, m4/visibility.m4.
9808         (Depends-on): Remove lock.
9809         (configure.ac): Arrange to compile mbtowc-lock.c.
9810         (Link): Mention $(LIB_MBRTOWC) instead of $(LIBTHREAD).
9811         * modules/acl (Link): Likewise.
9812         * modules/argmatch (Link): Likewise.
9813         * modules/backup-rename (Link): Likewise.
9814         * modules/backupfile (Link): Likewise.
9815         * modules/closein (Link): Likewise.
9816         * modules/closeout (Link): Likewise.
9817         * modules/copy-file (Link): Likewise.
9818         * modules/csharpcomp (Link): Likewise.
9819         * modules/csharpexec (Link): Likewise.
9820         * modules/dfa (Link): Likewise.
9821         * modules/exclude (Link): Likewise.
9822         * modules/fnmatch (Link): Likewise.
9823         * modules/fnmatch-gnu (Link): Likewise.
9824         * modules/fnmatch-posix (Link): Likewise.
9825         * modules/glob (Link): Likewise.
9826         * modules/human (Link): Likewise.
9827         * modules/javacomp (Link): Likewise.
9828         * modules/javaexec (Link): Likewise.
9829         * modules/javaversion (Link): Likewise.
9830         * modules/mbfile (Link): Likewise.
9831         * modules/mbiter (Link): Likewise.
9832         * modules/mbmemcasecmp (Link): Likewise.
9833         * modules/mbmemcasecoll (Link): Likewise.
9834         * modules/mbrlen (Link): Likewise.
9835         * modules/mbscasecmp (Link): Likewise.
9836         * modules/mbscasestr (Link): Likewise.
9837         * modules/mbschr (Link): Likewise.
9838         * modules/mbscspn (Link): Likewise.
9839         * modules/mbsinit (Link): Likewise.
9840         * modules/mbslen (Link): Likewise.
9841         * modules/mbsncasecmp (Link): Likewise.
9842         * modules/mbsnlen (Link): Likewise.
9843         * modules/mbsnrtowcs (Link): Likewise.
9844         * modules/mbspbrk (Link): Likewise.
9845         * modules/mbspcasecmp (Link): Likewise.
9846         * modules/mbsrchr (Link): Likewise.
9847         * modules/mbsrtowcs (Link): Likewise.
9848         * modules/mbssep (Link): Likewise.
9849         * modules/mbsspn (Link): Likewise.
9850         * modules/mbsstr (Link): Likewise.
9851         * modules/mbstok_r (Link): Likewise.
9852         * modules/mbswidth (Link): Likewise.
9853         * modules/mbuiter (Link): Likewise.
9854         * modules/mkdir-p (Link): Likewise.
9855         * modules/propername (Link): Likewise.
9856         * modules/quote (Link): Likewise.
9857         * modules/quotearg (Link): Likewise.
9858         * modules/quotearg-simple (Link): Likewise.
9859         * modules/regex-quote (Link): Likewise.
9860         * modules/rpmatch (Link): Likewise.
9861         * modules/sh-quote (Link): Likewise.
9862         * modules/system-quote (Link): Likewise.
9863         * modules/trim (Link): Likewise.
9864         * modules/unistdio/ulc-asnprintf (Link): Likewise.
9865         * modules/unistdio/ulc-fprintf (Link): Likewise.
9866         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
9867         * modules/unistdio/ulc-vasprintf (Link): Likewise.
9868         * modules/unistdio/ulc-vfprintf (Link): Likewise.
9869         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
9870         * modules/unistdio/ulc-vsprintf (Link): Likewise.
9871         * modules/xfreopen (Link): Likewise.
9872         * modules/xmemcoll (Link): Likewise.
9873         * modules/yesno (Link): Likewise.
9874         * modules/regex (Link): Add $(LIB_MBRTOWC).
9875         * modules/acl-tests (Makefile.am): Link the programs with $(LIB_MBRTOWC)
9876         instead of $(LIBTHREAD).
9877         * modules/argmatch-tests (Makefile.am): Likewise.
9878         * modules/closein-tests (Makefile.am): Likewise.
9879         * modules/copy-file-tests (Makefile.am): Likewise.
9880         * modules/dfa-tests (Makefile.am): Likewise.
9881         * modules/fnmatch-tests (Makefile.am): Likewise.
9882         * modules/glob-tests (Makefile.am): Likewise.
9883         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
9884         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
9885         * modules/mbrtowc-tests (Makefile.am): Likewise.
9886         * modules/mbscasecmp-tests (Makefile.am): Likewise.
9887         * modules/mbscasestr-tests (Makefile.am): Likewise.
9888         * modules/mbschr-tests (Makefile.am): Likewise.
9889         * modules/mbscspn-tests (Makefile.am): Likewise.
9890         * modules/mbsinit-tests (Makefile.am): Likewise.
9891         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
9892         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
9893         * modules/mbspbrk-tests (Makefile.am): Likewise.
9894         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
9895         * modules/mbsrchr-tests (Makefile.am): Likewise.
9896         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
9897         * modules/mbsspn-tests (Makefile.am): Likewise.
9898         * modules/mbsstr-tests (Makefile.am): Likewise.
9899         * modules/quotearg-simple-tests (Makefile.am): Likewise.
9900         * modules/quotearg-tests (Makefile.am): Likewise.
9901         * modules/readtokens-tests (Makefile.am): Likewise.
9902         * modules/sh-quote-tests (Makefile.am): Likewise.
9903         * modules/system-quote-tests (Makefile.am): Likewise.
9904         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
9905         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
9906         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
9907         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
9908         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
9909         * modules/yesno-tests (Makefile.am): Likewise.
9910         * modules/exclude-tests (Makefile.am): Link the programs with
9911         $(LIB_MBRTOWC).
9912         * modules/regex-tests (Makefile.am): Likewise.
9913         * modules/regex-quote-tests (Makefile.am): Likewise.
9915 2020-01-03  Bruno Haible  <bruno@clisp.org>
9917         getopt-posix: Fix compilation failure in testdirs.
9918         * lib/unistd.in.h: Include <getopt-cdefs.h> and <getopt-pfx-core.h> only
9919         when the gnulib module 'getopt-posix' is enabled.
9920         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETOPT_POSIX.
9921         * modules/getopt-posix (configure.ac): Set GNULIB_GETOPT_POSIX as a
9922         module indicator.
9923         * modules/unistd (Makefile.am): Substitute GNULIB_GETOPT_POSIX.
9925 2020-01-03  Bruno Haible  <bruno@clisp.org>
9927         doc: Mention the 64-bit inode number problem.
9928         * m4/largefile.m4 (AC_SYS_LARGEFILE): Mention that this macro fixes the
9929         64-bit inode number problem.
9930         * doc/posix-functions/stat.texi: Mention that this module fixes the
9931         64-bit inode number problem.
9932         * doc/posix-functions/lstat.texi: Likewise.
9933         * doc/posix-functions/fstat.texi: Likewise.
9934         * doc/posix-functions/readdir.texi: Add more details.
9935         * doc/posix-functions/readdir_r.texi: Likewise.
9937 2020-01-02  Bruno Haible  <bruno@clisp.org>
9939         wcrtomb: Add more tests.
9940         * tests/test-wcrtomb-w32.c: Include localcharset.h.
9941         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9942         locale_charset() returns the expected value; otherwise, skip the test.
9943         * tests/test-wcrtomb-w32-6.sh: Remove old comment.
9944         * tests/test-wcrtomb-w32-7.sh: Likewise.
9945         * modules/wcrtomb-tests (Files): Add these files.
9946         (Depends-on): Add localcharset.
9947         (TESTS): Add test-wcrtomb-w32-6.sh, test-wcrtomb-w32-7.sh.
9949 2020-01-02  Bruno Haible  <bruno@clisp.org>
9951         mbrtowc: Add more tests.
9952         * tests/test-mbrtowc-w32.c: Include localcharset.h.
9953         (test_one_locale): For the GB18030 and UTF-8 tests, verify that
9954         locale_charset() returns the expected value; otherwise, skip the test.
9955         * tests/test-mbrtowc-w32-6.sh: Remove old comment.
9956         * tests/test-mbrtowc-w32-7.sh: Likewise.
9957         * modules/mbrtowc-tests (Files): Add these files.
9958         (Depends-on): Add localcharset.
9959         (TESTS): Add test-mbrtowc-w32-6.sh, test-mbrtowc-w32-7.sh.
9961 2020-01-02  Bruno Haible  <bruno@clisp.org>
9963         mbrtowc: Fix test failures on MSVC (regression by previous commit).
9964         * m4/mbrtowc.m4 (gl_MBRTOWC_STORES_INCOMPLETE): New macro.
9965         (gl_FUNC_MBRTOWC): Invoke it. Define MBRTOWC_STORES_INCOMPLETE_BUG.
9966         * lib/mbrtowc.c (rpl_mbrtowc): Add workaround for
9967         MBRTOWC_STORES_INCOMPLETE_BUG.
9968         * doc/posix-functions/mbrtowc.texi: Mention the MSVC bug.
9970 2020-01-02  Paul Eggert  <eggert@cs.ucla.edu>
9972         doc: mention glibc bug 24269
9973         * doc/regex.texi (Back-reference Operator): Add glibc bug 24269.
9974         Reformat slightly so that it looks nicer in the Grep manual.
9976 2020-01-02  Bruno Haible  <bruno@clisp.org>
9978         mbrtowc: Don't replace mbstate_t on MSVC.
9979         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN): Require AC_CANONICAL_HOST. Ignore
9980         a missing mbsinit function on native Windows.
9981         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Likewise.
9982         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Strengthen the test, to detect an
9983         MSVC bug.
9984         * doc/posix-functions/wcrtomb.texi: Mention the MSVC bug.
9986 2020-01-02  Bruno Haible  <bruno@clisp.org>
9988         setlocale-null: Avoid crashing the MSVC linker.
9989         * lib/setlocale-lock.c: Don't define IMP(gl_get_setlocale_null_lock) on
9990         MSVC.
9992 2020-01-02  Bruno Haible  <bruno@clisp.org>
9994         wchar: Make the HP-UX workaround work on HP-UX 11.31.
9995         * modules/wchar (Depends-on): Add inttypes-incomplete.
9996         * lib/inttypes.in.h: Define _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H.
9997         * lib/wchar.in.h: Test _GL_FINISHED_INCLUDING_SYSTEM_INTTYPES_H instead
9998         of strtoimax.
10000 2020-01-02  Bruno Haible  <bruno@clisp.org>
10002         mbrtowc: Fix compilation error on IRIX (regression from 2019-12-26).
10003         * lib/mbrtowc.c: Include <stdint.h>.
10004         * modules/mbrtowc (Depends-on): Add stdint.
10006 2020-01-01  Pádraig Brady  <P@draigBrady.com>
10008         md5, sha1, sha256, sha512: support --with-openssl=auto-gpl-compat
10009         * m4/gl-openssl.m4: Add a new "auto-gpl-compat" mode,
10010         which will auto enable use of openssl, only for >= version 3,
10011         which is newly licensed under the Apache Software License.
10013 2020-01-01  Bruno Haible  <bruno@clisp.org>
10015         mbrtowc: Include function name in macro names.
10016         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Define
10017         MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not C_LOCALE_MAYBE_EILSEQ.
10018         (gl_MBRTOWC_C_LOCALE): Change cache variable name to
10019         gl_cv_func_mbrtowc_C_locale_sans_EILSEQ.
10020         * lib/mbrtowc.c: Test MBRTOWC_IN_C_LOCALE_MAYBE_EILSEQ, not
10021         C_LOCALE_MAYBE_EILSEQ.
10023 2020-01-01  Bruno Haible  <bruno@clisp.org>
10025         c32tob: New module.
10026         * lib/uchar.in.h (_GL_LARGE_CHAR32_T): New macro.
10027         (c32tob): New declaration.
10028         * lib/c32tob.c: New file.
10029         * m4/uchar.m4 (gl_UCHAR_MODULE_INDICATOR, gl_UCHAR_H_DEFAULTS): New
10030         macros.
10031         (gl_UCHAR_H): Require gl_UCHAR_H_DEFAULTS.
10032         * modules/uchar (Depends-on): Add snippet/c++defs.
10033         (Makefile.am): Include c++defs.h and substitute GNULIB_C32TOB in
10034         uchar.h.
10035         * modules/c32tob: New file.
10036         * tests/test-uchar.c: Verify that _GL_LARGE_CHAR32_T is correctly
10037         defined.
10038         * tests/test-uchar-c++.cc: Include signature.h. Test the signature of
10039         c32tob.
10040         * modules/uchar-c++-tests (Files): Add tests/signature.h.
10041         * doc/posix-functions/wctob.texi: Mention the new module.
10043 2020-01-01  Bruno Haible  <bruno@clisp.org>
10045         locale C++ tests: Fix link error on AIX (regression from 2019-12-18).
10046         * modules/locale-c++-tests (Makefile.am): Link test-locale-c++ with
10047         $(LIB_SETLOCALE).
10049 2020-01-01  Bruno Haible  <bruno@clisp.org>
10051         hard-locale tests: Fix a conflict with the C++ tests.
10052         * modules/hard-locale-tests (Makefile.am): Build a program named
10053         'current-locale', not 'locale'.
10055 2020-01-01  Bruno Haible  <bruno@clisp.org>
10057         doc: Update documentation about wchar_t.
10058         * doc/*/*wc*.texi: Clarify that 64-bit AIX does not have a too small
10059         wchar_t type.
10061 2020-01-01  Bruno Haible  <bruno@clisp.org>
10063         mbrtowc tests: Fix typos.
10064         * tests/test-mbrtowc.c (main): Fix typo.
10065         * tests/test-mbrtowc-w32.c (test_one_locale): Likewise.
10067 2019-12-31  Paul Eggert  <eggert@cs.ucla.edu>
10069         maint: update copyright notices
10070         Before doing the following changes done by hand, I also ran ‘make
10071         update-copyright’ and ‘config/srclist-update <config/srclist.txt’
10072         to do most of the copyright years automatically.  A few upstream
10073         sources are still in 2019 but these should eventually be changed
10074         automatically too.
10075         * build-aux/declared.sh (func_version):
10076         * build-aux/libtool-next-version (func_version):
10077         * build-aux/run-test (func_version):
10078         Update these notices by hand.  Put just the last year
10079         in output of programs, as per GNU coding standards.
10081 2019-12-31  Bruno Haible  <bruno@clisp.org>
10083         uchar: Add C++ tests.
10084         * tests/test-uchar-c++.cc: New file.
10085         * tests/test-uchar-c++2.cc: New file.
10086         * modules/uchar-c++-tests: New file.
10088         uchar: Add tests.
10089         * tests/test-uchar.c: New file.
10090         * modules/uchar-tests: New file.
10092         uchar: New module.
10093         * lib/uchar.in.h: New file.
10094         * m4/uchar.m4: New file.
10095         * modules/uchar: New file.
10096         * doc/posix-headers/uchar.texi: Mention the new module.
10098 2019-12-30  Jim Meyering  <meyering@fb.com>
10100         localeinfo: ->simple would be wrong for LC_ALL=C
10101         That would lead to using unnecessary and expensive code paths in dfa.c.
10102         * lib/localeinfo.c (using_simple_locale): Fix recently-introduced logic
10103         error that would have made grep many times slower in the C locale.
10104         With this change, and a file created like this:
10105           yes 00 | head -10000000 > in
10106         Running grep as follows becomes more than 40 times faster:
10107           LC_ALL=C grep -Fw 0 in
10109 2019-12-30  Paul Eggert  <eggert@cs.ucla.edu>
10111         doc: document trouble with back-references
10112         * doc/regex.texi (Back-reference Operator): Mention bugs etc.
10114 2019-12-29  Paul Eggert  <eggert@cs.ucla.edu>
10116         doc: use “back-reference” for \1 etc.
10117         * doc/regex.texi: Consistently spell “back-reference” with
10118         a hyphen, since that’s how POSIX does it.
10120 2019-12-26  Jim Meyering  <meyering@fb.com>
10122         test-framework-sh: tighten an internal grep regexp
10123         * tests/init.sh (gl_shell_test_script_): Tighten the grep regexp
10124         that helps test for a working printf.
10126 2019-12-26  Bruno Haible  <bruno@clisp.org>
10128         test-framework-sh: Avoid /bin/sh on AIX 7.2 due to its printf built-in.
10129         Reported by Paul Eggert in
10130         <https://lists.gnu.org/archive/html/grep-devel/2019-12/msg00020.html>.
10131         Simplification by Jim Meyering.
10132         * tests/init.sh (gl_shell_test_script_): Add a test of printf of an
10133         octal escape sequence in a UTF-8 locale.
10135 2019-12-26  Paul Eggert  <eggert@cs.ucla.edu>
10137         mbrtowc: port better to narrow-wchar_t platforms
10138         * lib/mbrtowc.c (mbrtowc): On platforms like AIX 7.2, where
10139         wchar_t is too narrow to represent all the Unicode characters,
10140         consider a byte sequence for an out-of-wchar_t-range character to
10141         be an encoding error.  This fixes grep’s surrogate-pair test
10142         failure on AIX 7.2.
10144 2019-12-24  Bruno Haible  <bruno@clisp.org>
10146         localcharset: Avoid referencing rpl_setlocale on native Windows.
10147         * lib/localcharset.c (setlocale): Undefine.
10149 2019-12-24  Bruno Haible  <bruno@clisp.org>
10151         lock tests: Fix link error on HP-UX/hppa (regression from 2019-12-21).
10152         * m4/semaphore.m4: New file.
10153         * modules/lock-tests (Files): Add it.
10154         (configure.ac): Require gl_SEMAPHORE.
10155         (Makefile.am): Link test-lock with $(LIB_SEMAPHORE).
10157 2019-12-24  Paul Eggert  <eggert@cs.ucla.edu>
10159         strptime: fix typo in previous patch
10160         Problem and fix reported by Bruno Haible in:
10161         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00202.html
10162         * lib/strptime.c (day_of_the_week): Fix paren bug.
10164 2019-12-24  Bruno Haible  <bruno@clisp.org>
10166         setlocale-null: Make it easy to rely on the lock in another library.
10167         * lib/setlocale-lock.c: Do not define anything if OMIT_SETLOCALE_LOCK is
10168         defined.
10170 2019-12-23  Paul Eggert  <eggert@cs.ucla.edu>
10172         gethrxtime, mktime, nstrftime, strptime: tweak division performance
10173         Performanced analyzed by Bruno Haible in:
10174         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00200.html
10175         * config/srclist.txt: Do not sync mktime.c for now.
10176         * lib/mktime.c (shr, ydhms_diff):
10177         * lib/nstrftime.c (SHR, tm_diff, __strftime_internal):
10178         * lib/strptime.c (day_of_the_week):
10179         * lib/xtime.h (xtime_sec):
10180         Redo with neither ‘%’ nor conditional branches.
10182 2019-12-23  Bruno Haible  <bruno@clisp.org>
10184         setlocale-null: Export the lock function also on non-Windows platforms.
10185         * lib/setlocale-lock.c (DLL_EXPORTED): New macro.
10186         (gl_get_setlocale_null_lock): Declare as DLL_EXPORTED.
10187         * m4/setlocale_null.m4 (gl_PREREQ_SETLOCALE_LOCK): New macro.
10188         * modules/setlocale-null (configure.ac): Invoke it.
10189         (Files): Add m4/visibility.m4.
10191 2019-12-22  Paul Eggert  <eggert@cs.ucla.edu>
10193         gethrxtime: fix rounding bug with negative args
10194         Problem reported by Bruno Haible in:
10195         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00192.html
10196         * lib/xtime.h (xtime_sec): Simplify calculation and correct bug
10197         with negative rounding.  Common platforms can compute / and % with
10198         a single instruction, so the simplified code should be shorter and
10199         faster on these platforms anyway.
10201 2019-12-22  Bruno Haible  <bruno@clisp.org>
10203         gethrxtime: remove incorrect overflow detection
10204         * lib/xtime.h (xtime_make): Remove attempt to prevent internal
10205         integer overflow, as it didn’t suffice.  This reverts the xtime.h
10206         part of 2018-10-12T04:46:09Z!akim.demaille@gmail.com, which I
10207         cannot now see the need for anyway (even in cases where it works),
10208         as the patch is helpful only when the signs of S and NS disagree,
10209         and all callers pass nonnegative values for S and NS.
10211 2019-12-22  Bruno Haible  <bruno@clisp.org>
10213         setlocale-null: Add standalone include file.
10214         * lib/setlocale_null.h: New file, extracted from lib/locale.in.h.
10215         * lib/locale.in.h: Include setlocale_null.h.
10216         (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r,
10217         setlocale_null): Remove declarations.
10218         * lib/setlocale_null.c: Include setlocale_null.h.
10219         * lib/localename.c: Likewise.
10220         * modules/setlocale-null (Files): Add lib/setlocale_null.h.
10221         (Depends-on): Add snippet/arg-nonnull.
10222         (Include): Allow either "setlocale_null.h" or <locale.h>.
10224 2019-12-22  Bruno Haible  <bruno@clisp.org>
10226         strfmon_l: Fix test failures on FreeBSD and Cygwin.
10227         * m4/strfmon_l.m4 (gl_FUNC_STRFMON_L): Require gt_LOCALE_FR_UTF8. Add an
10228         AC_RUN_IFELSE test.
10229         * modules/strfmon_l (Files): Add locale-fr.m4, codeset.m4.
10230         * doc/posix-functions/strfmon_l.texi: Mention the FreeBSD and Cygwin
10231         problem.
10233 2019-12-22  Bruno Haible  <bruno@clisp.org>
10235         Prefer lib_SOURCES to unconditional AC_LIBOBJ.
10236         * modules/at-internal: Prefer a lib_SOURCES augmentation to an
10237         unconditional AC_LIBOBJ.
10238         * modules/selinux-at: Likewise.
10239         * modules/xmemdup0: Likewise.
10240         * modules/xstrtoll: Likewise.
10242 2019-12-22  Bruno Haible  <bruno@clisp.org>
10244         longlong: Mark module obsolete.
10245         * modules/longlong (Status, Notice): New sections.
10247         stdint: Assume that the compiler supports 'long long'.
10248         * lib/stdint.in.h (int64_t, uint64_t, intmax_t, uintmax_t, INT64_C,
10249         UINT64_C, INTMAX_C, UINTMAX_C): Assume HAVE_LONG_LONG_INT and
10250         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10251         * m4/stdint.m4 (gl_STDINT_H): Don't require AC_TYPE_LONG_LONG_INT,
10252         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10253         * modules/stdint (Files): Remove longlong.m4.
10254         (Makefile.am): Don't substitute HAVE_LONG_LONG_INT,
10255         HAVE_UNSIGNED_LONG_LONG_INT.
10257         inttypes-incomplete: Assume that the compiler supports 'long long'.
10258         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
10259         _SCNu64_PREFIX): Assume HAVE_LONG_LONG_INT and
10260         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10261         * m4/inttypes.m4 (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): Assume
10262         HAVE_LONG_LONG_INT to be 1.
10263         * modules/inttypes-incomplete (Makefile.am): Don't substitute
10264         HAVE_LONG_LONG_INT, HAVE_UNSIGNED_LONG_LONG_INT.
10266         malloca: Assume that the compiler supports 'long long'.
10267         * lib/malloca.h: Assume HAVE_LONG_LONG_INT to be 1.
10268         * m4/malloca.m4 (gl_MALLOCA): Don't require AC_TYPE_LONG_LONG_INT.
10269         * modules/malloca (Files): Remove longlong.m4.
10270         * modules/relocatable-prog-wrapper (Files): Likewise.
10272         atoll: Assume that the compiler supports 'long long'.
10273         * m4/atoll.m4 (gl_FUNC_ATOLL): Don't require AC_TYPE_LONG_LONG_INT.
10274         * modules/atoll (Files): Remove longlong.m4.
10276         strtoll: Assume that the compiler supports 'long long'.
10277         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Don't require AC_TYPE_LONG_LONG_INT.
10278         * modules/strtoll (Files): Remove longlong.m4.
10280         strtoull: Assume that the compiler supports 'long long'.
10281         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Don't require
10282         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10283         * modules/strtoull (Files): Remove longlong.m4.
10285         strtoimax, strtoumax: Assume that the compiler supports 'long long'.
10286         * lib/strtoimax.c: Assume HAVE_LONG_LONG_INT and
10287         HAVE_UNSIGNED_LONG_LONG_INT to be 1.
10288         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Don't require
10289         AC_TYPE_LONG_LONG_INT.
10290         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't require
10291         AC_TYPE_UNSIGNED_LONG_LONG_INT.
10292         * modules/strtoimax (Files): Remove longlong.m4.
10293         * modules/strtoumax (Files): Likewise.
10295         xstrtoll: Assume that the compiler supports 'long long'.
10296         * lib/xstrtol.h (xstrtoll, xstrtoull): Declare unconditionally.
10297         * modules/xstrtoll (configure.ac): Don't invoke AC_TYPE_LONG_LONG_INT.
10299         vasnprintf: Assume that the compiler supports 'long long'.
10300         * lib/printf-args.h: Assume HAVE_LONG_LONG_INT to be 1.
10301         * lib/printf-args.c (PRINTF_FETCHARGS): Likewise.
10302         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
10303         * lib/vasnprintf.c (MAX_ROOM_NEEDED, VASNPRINTF): Likewise.
10304         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Don't
10305         require AC_TYPE_LONG_LONG_INT.
10306         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
10307         gl_PREREQ_VASNPRINTF): Likewise.
10308         * modules/vasnprintf (Files): Remove longlong.m4.
10309         * modules/c-vasnprintf (Files): Likewise.
10310         * modules/unistdio/u8-vasnprintf (Files): Likewise.
10311         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
10312         * modules/unistdio/u16-vasnprintf (Files): Likewise.
10313         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
10314         * modules/unistdio/u32-vasnprintf (Files): Likewise.
10315         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
10316         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
10318         gethrxtime: Assume that the compiler supports 'long long'.
10319         * lib/xtime.h (xtime_t): Define to 'long long int' always.
10320         (XTIME_PRECISION): Define to 1000000000 always.
10321         (xtime_make, xtime_sec): Optimize accordingly.
10322         * m4/gethrxtime.m4 (gl_XTIME): Don't require AC_TYPE_LONG_LONG_INT.
10323         * modules/gethrxtime (Files): Remove longlong.m4.
10325         integer_length*: Assume that the compiler supports 'long long'.
10326         * lib/integer_length.h (integer_length_ll): Declare unconditionally.
10327         * modules/integer_length (Files): Remove longlong.m4.
10328         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10329         * modules/integer_length_l (Files): Remove longlong.m4.
10330         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10331         * modules/integer_length_ll (Files): Remove longlong.m4.
10332         (configure.ac): Don't require AC_TYPE_UNSIGNED_LONG_LONG_INT.
10334         count-one-bits: Assume that the compiler supports 'long long'.
10335         * lib/count-one-bits.h (count_one_bits_ll): Define unconditionally.
10336         * m4/count-one-bits.m4: Remove file.
10337         * modules/count-one-bits (Files): Remove it.
10338         (configure.ac): Don't invoke gl_COUNT_ONE_BITS.
10339         * tests/test-count-one-bits.c (main): Test count_one_bits_ll
10340         unconditionally.
10342         count-trailing-zeros: Assume that the compiler supports 'long long'.
10343         * lib/count-trailing-zeros.h (count_trailing_zeros_ll): Define
10344         unconditionally.
10345         * m4/count-trailing-zeros.m4: Remove file.
10346         * modules/count-trailing-zeros (Files): Remove it.
10347         (configure.ac): Don't invoke gl_COUNT_TRAILING_ZEROS.
10348         * tests/test-count-trailing-zeros.c (main): Test count_trailing_zeros_ll
10349         unconditionally.
10351         count-leading-zeros: Assume that the compiler supports 'long long'.
10352         * lib/count-leading-zeros.h (count_leading_zeros_ll): Define
10353         unconditionally.
10354         * m4/count-leading-zeros.m4: Remove file.
10355         * modules/count-leading-zeros (Files): Remove it.
10356         (configure.ac): Don't invoke gl_COUNT_LEADING_ZEROS.
10357         * tests/test-count-leading-zeros.c (main): Test count_leading_zeros_ll
10358         unconditionally.
10360 2019-12-22  Bruno Haible  <bruno@clisp.org>
10362         localcharset: Update support for OpenBSD.
10363         * lib/localcharset.c (alias_table): Map "US-ASCII" to "ASCII".
10365 2019-12-21  Bruno Haible  <bruno@clisp.org>
10367         pthread_sigmask: Avoid test failure on NetBSD 8.0.
10368         * tests/test-pthread_sigmask2.c (main): Skip the error handling test on
10369         NetBSD.
10370         * doc/posix-functions/pthread_sigmask.texi: Mention the NetBSD problem.
10372 2019-12-21  Bruno Haible  <bruno@clisp.org>
10374         threadlib: Improve code structure.
10375         * m4/threadlib.m4: Reorder macros. Add comments.
10377 2019-12-21  Bruno Haible  <bruno@clisp.org>
10379         threadlib: Fix LIBMULTITHREAD on FreeBSD with --enable-threads=isoc.
10380         * m4/threadlib.m4 (gl_STDTHREADLIB_BODY): New macro (some code moved
10381         here from m4/threads.m4).
10382         (gl_THREADLIB_BODY): Don't test whether mtx_lock and cnd_timedwait exist
10383         in libc. Instead, rely on gl_STDTHREADLIB_BODY.
10384         (gl_STDTHREADLIB): New macro.
10385         * m4/threads.m4 (gl_THREADS_H): Require gl_STDTHREADLIB instead of
10386         gl_THREADLIB_BODY and gl_YIELD. Don't set LIBSTDTHREAD here.
10388 2019-12-21  Bruno Haible  <bruno@clisp.org>
10390         sched_yield: Don't depend on threadlib and yield.
10391         * m4/threadlib.m4 (gl_PTHREADLIB): Document that it sets
10392         LIB_SCHED_YIELD.
10393         (gl_PTHREADLIB_BODY): Set LIB_SCHED_YIELD (code moved here from
10394         m4/yield.m4).
10395         * m4/sched_yield.m4 (gl_FUNC_SCHED_YIELD): Require gl_PTHREADLIB, not
10396         gl_THREADLIB and gl_YIELD.
10397         * m4/yield.m4 (gl_YIELD): Require gl_PTHREADLIB. Determine YIELD_LIB
10398         based on $(LIB_SCHED_YIELD).
10399         * m4/threads.m4 (gl_THREADS_H): Don't require gl_YIELD. Use
10400         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10401         * modules/sched_yield (Files): Remove yield.m4. Add threadlib.m4.
10402         (Depends-on): Remove threadlib.
10403         (Link): Mention $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10404         * modules/threads-h (Files): Remove m4/yield.m4.
10405         * modules/pthread-cond-tests (Makefile.am): Link the programs against
10406         $(LIB_SCHED_YIELD), not $(YIELD_LIB).
10407         * modules/pthread-mutex-tests (Makefile.am): Likewise.
10408         * modules/pthread-once-tests (Makefile.am): Likewise.
10409         * modules/pthread-rwlock-tests (Makefile.am): Likewise.
10410         * modules/pthread-tss-tests (Makefile.am): Likewise.
10412 2019-12-21  Bruno Haible  <bruno@clisp.org>
10414         threads-h: Don't depend on threadlib.
10415         * modules/threads-h (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY,
10416         not gl_THREADLIB_EARLY.
10418 2019-12-21  Bruno Haible  <bruno@clisp.org>
10420         nl_langinfo tests: Fix link error (regression from 2019-12-18).
10421         * modules/nl_langinfo-tests (Makefile.am): Link also test-nl_langinfo
10422         with $(LIB_SETLOCALE).
10424 2019-12-21  Bruno Haible  <bruno@clisp.org>
10426         threadlib: Remove unused dependency (left over from 2019-07-06).
10427         * modules/threadlib (Depends-on): Remove havelib.
10429 2019-12-21  Bruno Haible  <bruno@clisp.org>
10431         New convention for multithread-safety tests.
10432         * tests/test-setlocale_null-mt-one.c: Renamed from
10433         tests/test-setlocale_null-one.c.
10434         * tests/test-setlocale_null-mt-all.c: Renamed from
10435         tests/test-setlocale_null-all.c.
10436         * modules/setlocale-null-tests (Files, Makefile.am): Update.
10438 2019-12-21  Bruno Haible  <bruno@clisp.org>
10440         quotearg tests: Fix conflict with hard-locale tests.
10441         * tests/testlocale: Renamed from tests/locale.
10442         * modules/quotearg-tests (Files): Update.
10443         * tests/test-quotearg.sh (LOCALEDIR): Likewise.
10445 2019-12-21  Bruno Haible  <bruno@clisp.org>
10447         pthread-thread, lock: On z/OS, use PTHREAD_RWLOCK_INITIALIZER_NP.
10448         Reported by Daniel Richard G. in
10449         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>
10450         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00167.html>
10451         * lib/pthread.in.h (PTHREAD_RWLOCK_INITIALIZER): Define to
10452         PTHREAD_RWLOCK_INITIALIZER_NP when possible.
10453         * lib/glthread/lock.h: Allow PTHREAD_RWLOCK_INITIALIZER_NP as an
10454         alternative to PTHREAD_RWLOCK_INITIALIZER.
10455         * lib/glthread/lock.c: Likewise.
10457 2019-12-21  Bruno Haible  <bruno@clisp.org>
10459         memcmp tests: Work around the clang bug.
10460         * tests/test-memcmp.c (main): Use a volatile function pointer to disable
10461         the clang optimization.
10463 2019-12-20  Bruno Haible  <bruno@clisp.org>
10465         localcharset: Add support for z/OS encoding names.
10466         * lib/localcharset.h: Mention which encodings are used as locale
10467         encodings on z/OS.
10469 2019-12-20  Bruno Haible  <bruno@clisp.org>
10471         iconv_open: Add support for z/OS encoding names.
10472         Reported by Daniel Richard G. in
10473         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00172.html>.
10474         * lib/iconv_open-zos.gperf: New file.
10475         * modules/iconv_open (Files): Add iconv_open-zos.gperf.
10476         (Makefile.am): Add rules for generating iconv_open-zos.h from it.
10477         * lib/iconv_open.c (ICONV_FLAVOR_ZOS): New macro.
10478         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): On z/OS, use ICONV_FLAVOR_ZOS.
10479         * doc/posix-functions/iconv_open.texi: Mention z/OS.
10481 2019-12-20  Bruno Haible  <bruno@clisp.org>
10483         doc: Document the problem of the per-thread locale functions on z/OS.
10484         * doc/posix-functions/uselocale.texi: Document the z/OS problem.
10485         * doc/posix-functions/newlocale.texi: Likewise.
10486         * doc/posix-functions/duplocale.texi: Likewise.
10487         * doc/posix-functions/freelocale.texi: Likewise.
10489 2019-12-20  Bruno Haible  <bruno@clisp.org>
10491         localename, gettext: Fix host_os value for z/OS.
10492         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Fix host_os value in
10493         cross-configuration code.
10495 2019-12-19  Jim Meyering  <meyering@fb.com>
10497         nstrftime: avoid a shadowing warning
10498         * lib/nstrftime.c (libc_hidden_def): Rename inner "i" to "j",
10499         to avoid shadowing an "i" declared hundreds of lines above.
10501 2019-12-19  Paul Eggert  <eggert@cs.ucla.edu>
10503         dfa: struct dfamust now uses flexible array
10504         * lib/dfa.c: Include flexmember.h.
10505         (dfamust, dfamustfree): Adjust to struct dfamust change.
10506         This saves a call to malloc+free.
10507         * lib/dfa.h (struct dfamust): Make the final member a
10508         flexible array member.
10509         * modules/dfa (Depends-on): Add flexmember.
10511         dfa: fast->small for array elements
10512         * lib/dfa.c (charclass_word): Use uint_least64_t not uint_fast64_t,
10513         since this type is used in arrays.  This change is more for
10514         documentation than for any practical effect, since the two types
10515         are the same on all known platforms.
10517 2019-12-19  Bruno Haible  <bruno@clisp.org>
10519         iconv tests: Test canonicalized, not system-dependent, encoding names.
10520         * tests/test-iconv.c (main): Revert part of the 2016-08-17 patch.
10521         * modules/iconv-tests (Depends-on): Add iconv_open.
10523 2019-12-18  Bruno Haible  <bruno@clisp.org>
10525         localename: Fix test failure on AIX 7.2.
10526         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Enable nameless
10527         locales on AIX.
10528         * lib/localename.c (gl_locale_name_thread_unsafe): Handle nameless
10529         locales on AIX.
10531 2019-12-18  Paul Eggert  <eggert@cs.ucla.edu>
10533         Improve port of AC_C_RESTRICT to Oracle C++
10534         Problem reported by Christian Biesinger in:
10535         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00159.html
10536         * m4/gnulib-common.m4 (AC_C_RESTRICT): Port better to
10537         Oracle Developer Studio C++ 12.5 or later.
10539 2019-12-18  Bruno Haible  <bruno@clisp.org>
10541         wchar: Fix test failures on AIX and MSVC (regression from 2019-12-07).
10542         * lib/wchar.in.h (GNULIB_defined_mbstate_t): Do define on AIX and MSVC.
10544 2019-12-18  Bruno Haible  <bruno@clisp.org>
10546         localename: Ensure multithread-safety in future changes.
10547         * lib/localename.c (setlocale): Reference the system's setlocale().
10548         (get_locale_t_name): Invoke setlocale_null instead of setlocale.
10549         (gl_locale_name_posix): Likewise.
10550         * modules/localename (Depends-on): Add setlocale-null.
10552 2019-12-18  Bruno Haible  <bruno@clisp.org>
10554         setlocale-null: Make API more useful.
10555         * lib/locale.in.h (setlocale_null_r): Renamed from setlocale_null. All
10556         callers changed.
10557         (setlocale_null): New declaration.
10558         * lib/setlocale_null.c (setlocale_null_androidfix): New function,
10559         extracted from setlocale_null_unlocked.
10560         (setlocale_null_unlocked): Invoke it.
10561         (setlocale_null_r): Renamed from setlocale_null.
10562         (setlocale_null): New function, extracted from setlocale_mtsafe in
10563         setlocale.c.
10564         * lib/setlocale.c: Don't include <errno.h>.
10565         (setlocale_mtsafe): Invoke setlocale_null.
10566         * lib/setlocale-lock.c: Update comments.
10567         * doc/posix-functions/setlocale.texi: Mention both functions.
10569 2019-12-18  Bruno Haible  <bruno@clisp.org>
10571         localename: Optimize code for native Windows.
10572         * lib/localename.c (gl_locale_name_posix): Remove handling of LC_ALL
10573         category (not allowed here).
10575 2019-12-18  Bruno Haible  <bruno@clisp.org>
10577         setlocale: Make calls with NULL argument multithread-safe.
10578         * lib/setlocale.c: Include <errno.h>.
10579         (setlocale_mtsafe): New function.
10580         (setlocale_unixlike): Invoke setlocale_mtsafe instead of setlocale.
10581         (setlocale_improved): Renamed from rpl_setlocale.
10582         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10583         Set and define NEED_SETLOCALE_IMPROVED and NEED_SETLOCALE_MTSAFE. Set
10584         LIB_SETLOCALE.
10585         * modules/setlocale (Depends-on): Add setlocale-null. Update conditions.
10586         (Link): New section.
10587         * tests/locale.c: Undefine setlocale.
10588         * tests/test-setlocale_null-one.c: Likewise.
10589         * tests/test-setlocale_null-all.c: Likewise.
10590         * modules/setlocale-tests (Makefile.am): Link the test programs with
10591         $(LIB_SETLOCALE).
10592         * modules/astrxfrm-tests (Makefile.am): Likewise.
10593         * modules/btowc-tests (Makefile.am): Likewise.
10594         * modules/c-ctype-tests (Makefile.am): Likewise.
10595         * modules/c-snprintf-tests (Makefile.am): Likewise.
10596         * modules/c-strcase-tests (Makefile.am): Likewise.
10597         * modules/c-vasprintf-tests (Makefile.am): Likewise.
10598         * modules/c-vsnprintf-tests (Makefile.am): Likewise.
10599         * modules/c-xvasprintf-tests (Makefile.am): Likewise.
10600         * modules/dfa-tests (Makefile.am): Likewise.
10601         * modules/duplocale-tests (Makefile.am): Likewise.
10602         * modules/hard-locale-tests (Makefile.am): Likewise.
10603         * modules/localcharset-tests (Makefile.am): Likewise.
10604         * modules/localename-tests (Makefile.am): Likewise.
10605         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
10606         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
10607         * modules/mbrtowc-tests (Makefile.am): Likewise.
10608         * modules/mbscasecmp-tests (Makefile.am): Likewise.
10609         * modules/mbscasestr-tests (Makefile.am): Likewise.
10610         * modules/mbschr-tests (Makefile.am): Likewise.
10611         * modules/mbscspn-tests (Makefile.am): Likewise.
10612         * modules/mbsinit-tests (Makefile.am): Likewise.
10613         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
10614         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
10615         * modules/mbspbrk-tests (Makefile.am): Likewise.
10616         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
10617         * modules/mbsrchr-tests (Makefile.am): Likewise.
10618         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
10619         * modules/mbsspn-tests (Makefile.am): Likewise.
10620         * modules/mbsstr-tests (Makefile.am): Likewise.
10621         * modules/nl_langinfo-tests (Makefile.am): Likewise.
10622         * modules/quotearg-tests (Makefile.am): Likewise.
10623         * modules/regex-tests (Makefile.am): Likewise.
10624         * modules/strfmon_l-tests (Makefile.am): Likewise.
10625         * modules/strtod-tests (Makefile.am): Likewise.
10626         * modules/strtold-tests (Makefile.am): Likewise.
10627         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
10628         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
10629         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
10630         * modules/unigbrk/ulc-grapheme-breaks-tests (Makefile.am): Likewise.
10631         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
10632         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
10633         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
10634         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
10635         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
10636         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
10637         * modules/wcrtomb-tests (Makefile.am): Likewise.
10638         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
10639         * modules/wcsrtombs-tests (Makefile.am): Likewise.
10640         * modules/wcwidth-tests (Makefile.am): Likewise.
10641         * doc/posix-functions/setlocale.texi: Mention that the multithread-
10642         safety fix is also available in module 'setlocale'.
10644 2019-12-18  Bruno Haible  <bruno@clisp.org>
10646         hard-locale: Make multithread-safe.
10647         * lib/hard-locale.h (hard_locale): Move documentation to here.
10648         * lib/hard-locale.c: Don't include <stdlib.h>.
10649         (GLIBC_VERSION): Remove macro.
10650         (hard_locale): Assume that all systems name the "C" and "POSIX" locales
10651         "C" or "POSIX". Invoke setlocale_null instead of setlocale.
10652         * modules/hard-locale (Depends-on): Remove strdup. Add setlocale-null.
10653         (configure.ac): Require gl_FUNC_SETLOCALE_NULL. Set LIB_HARD_LOCALE.
10654         (Link): New section.
10655         * modules/hard-locale-tests (Makefile.am): Link test-hard-locale against
10656         $(LIB_HARD_LOCALE).
10658 2019-12-18  Bruno Haible  <bruno@clisp.org>
10660         hard-locale: Avoid test failure on Haiku.
10661         * tests/test-hard-locale.c (test_one): Treat Haiku like recent OpenBSD.
10663 2019-12-18  Bruno Haible  <bruno@clisp.org>
10665         setlocale-null: Handle NULL result from setlocale.
10666         * lib/locale.in.h (setlocale_null): Document EINVAL return value.
10667         * lib/setlocale_null.c (setlocale_null_unlocked): Handle NULL result
10668         from setlocale or _wsetlocale.
10670 2019-12-18  Bruno Haible  <bruno@clisp.org>
10672         hard-locale: Add test.
10673         * tests/test-hard-locale.c: New file.
10674         * tests/locale.c: New file.
10675         * modules/hard-locale-tests: New file.
10677 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10679         dfa: do not match invalid UTF-8
10680         * lib/dfa.c (struct dfa): Grow utf8_anychar_classes member array
10681         from 5 to 9 tokens; this is needed due to the changes to
10682         add_utf8_anychar.
10683         (charclass_index): 2nd arg is now pointer-to-const.
10684         (add_utf8_anychar): Match only valid UTF-8 byte sequences
10685         instead of allowing overlong encodings or surrogate halves.
10687         dfa: simplify charclass by assuming C99
10688         * lib/dfa.c (CHARCLASS_WORD_BITS): Now always 64.
10689         (charclass_word): Now always uint_fast64_t.
10690         (CHARCLASS_PAIR): Remove.
10691         (CHARCLASS_INIT): Take 4 arguments instead of 8.  All uses changed.
10693         fts: tune via calloc
10694         * lib/fts.c (fts_open): Prefer calloc to malloc + memset.
10696         dfa: tune via xzalloc
10697         * lib/dfa.c (dfaoptimize): Prefer xzalloc to xmalloc + memset.
10699 2019-12-17  Bruno Haible  <bruno@clisp.org>
10701         localcharset: Fix multithread-safety bug on Windows and OS/2.
10702         * lib/localcharset.h (locale_charset): Clarify when the result becomes
10703         invalid.
10704         * lib/localcharset.c (locale_charset): Use a stack-allocated buffer to
10705         assemble the result.
10707 2019-12-17  Bruno Haible  <bruno@clisp.org>
10709         localcharset: Optimize code for native Windows.
10710         * lib/localcharset.c (locale_charset): Don't bother calling
10711         setlocale (LC_ALL, NULL) since we're not interested in its result.
10713 2019-12-17  Bruno Haible  <bruno@clisp.org>
10715         nl_langinfo: Fix multithread-safety bug on OpenBSD 3.8.
10716         * lib/nl_langinfo.c (ctype_codeset): Invoke setlocale_null instead of
10717         setlocale.
10718         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Require
10719         gl_FUNC_SETLOCALE_NULL. Set LIB_NL_LANGINFO.
10720         * modules/nl_langinfo (Depends-on): Add setlocale-null.
10722 2019-12-17  Bruno Haible  <bruno@clisp.org>
10724         nl_langinfo: Fix multithread-safety bug on mingw and MSVC.
10725         * lib/nl_langinfo.c (ctype_codeset, rpl_nl_langinfo): Use a
10726         stack-allocated buffer to assemble each result and different static
10727         buffers to return it.
10728         * tests/test-nl_langinfo-mt.c: New file.
10729         * modules/nl_langinfo-tests (Files): Add it.
10730         (Depends-on): Add thread, nanosleep.
10731         (Makefile.am): Build test-nl_langinfo-mt test.
10733 2019-12-17  Bruno Haible  <bruno@clisp.org>
10735         langinfo: Document more details.
10736         * doc/posix-headers/langinfo.texi: List platform details.
10737         * doc/posix-functions/nl_langinfo.texi: Likewise.
10739 2019-12-17  Bruno Haible  <bruno@clisp.org>
10741         mbsinit: Fix compilation error in mingw-w64 7.0 with _UCRT defined.
10742         Reported by Tom Kacvinsky <tom.kacvinsky@vector.com>
10743         and Martin Storsjö <martin@martin.st>
10744         in <https://savannah.gnu.org/bugs/?57406>.
10745         * lib/mbsinit.c: Accommodate an MSVC-like mbstate_t definition with
10746         mingw.
10748 2019-12-17  Bruno Haible  <bruno@clisp.org>
10750         glob: Avoid warning on mingw.
10751         Reported by Christian Biesinger <cbiesinger@google.com> in
10752         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00122.html>.
10753         * lib/glob.c (__stat64): Undefine first.
10755 2019-12-17  Paul Eggert  <eggert@cs.ucla.edu>
10757         xalloc: tune xzalloc for fresh allocations
10758         * lib/xmalloc.c (xzalloc): Use xcalloc rather than xmalloc+memset,
10759         because when the memory is freshly allocated from the OS via sbrk
10760         or mmap, calloc can avoid doing the memset.
10762         dfa: new function dfacopysyntax
10763         * lib/dfa.c (struct dfa): Move syntax member later so
10764         that dfacopysyntax can easily clear earlier members.
10765         (dfacopysyntax): New function, used by Gawk.
10767 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10769         dfa: port _GL_ATTRIBUTE_MALLOC to Gawk
10770         Gawk does not use Gnulib, and does not define _GL_ATTRIBUTE_MALLOC.
10771         * lib/dfa.h (_GL_ATTRIBUTE_MALLOC): Define to empty
10772         if not already defined.
10774         dfa: remove one dependency on MB_CUR_MAX
10775         * lib/dfa.c (dfamust): No need to refer to MB_CUR_MAX here.
10777         dfa: remove struct lexer_state.cur_mb_len
10778         * lib/dfa.c (struct lexer_state): Remove cur_mb_len member,
10779         as it’s not needed and the code is simpler without it.
10780         All uses removed.
10782 2019-12-16  Bruno Haible  <bruno@clisp.org>
10784         setlocale-null: Remove need for -lpthread on musl libc, *BSD, Haiku.
10785         Reported by Arnold Robbins <arnold@skeeve.com>.
10786         * lib/setlocale_null.c (c11_threads_in_use, pthread_in_use): New macros,
10787         copied from lib/glthread/lock.h.
10788         (pthread_mutex_lock, pthread_mutex_unlock): Mark as weak.
10789         (setlocale_null_with_lock): If pthread_in_use() is false, use
10790         setlocale_null_unlocked directly.
10791         * m4/threadlib.m4 (gl_WEAK_SYMBOLS): New macro, extracted from
10792         gl_THREADLIB_BODY. Define HAVE_WEAK_SYMBOLS.
10793         (gl_THREADLIB_BODY): Invoke gl_WEAK_SYMBOLS.
10794         * m4/setlocale_null.m4 (gl_FUNC_SETLOCALE_NULL): Invoke gl_WEAK_SYMBOLS.
10795         Set LIB_SETLOCALE_NULL to empty if weak symbols are supported.
10796         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Add comment.
10798 2019-12-16  Paul Eggert  <eggert@cs.ucla.edu>
10800         dfa: make dfasyntax thread-safe
10801         Problem reported by Bruno Haible in:
10802         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00099.html
10803         * lib/dfa.c: Do not include locale.h.
10804         (struct dfa): Remove simple_locale member.
10805         All uses replaced by localeinfo.simple.
10806         (using_simple_locale): Remove; now present (with some
10807         changes) in localeinfo.c.
10808         (dfasyntax): No need to initialize removed member.
10810         localeinfo: record whether locale is simple
10811         * lib/localeinfo.c (using_simple_locale): New function,
10812         copied here from lib/dfa.c but with a change: it uses
10813         strcoll for its heuristic, instead of using setlocale.
10814         This lets it be thread-safe.
10815         * lib/localeinfo.h (struct localeinfo): New member ‘simple’.
10817 2019-12-15  Bruno Haible  <bruno@clisp.org>
10819         duplocale: Fix multithread-safety bug on AIX.
10820         * lib/duplocale.c: Don't include <stdlib.h>.
10821         (rpl_duplocale): Invoke setlocale_null instead of setlocale.
10822         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Require gl_FUNC_SETLOCALE_NULL.
10823         Set LIB_DUPLOCALE.
10824         * modules/duplocale (Depends-on): Add setlocale-null.
10825         (Link): New section.
10826         * modules/duplocale-tests (Makefile.am): Link test-duplocale with
10827         $(LIB_DUPLOCALE).
10829 2019-12-15  Bruno Haible  <bruno@clisp.org>
10831         setlocale-null: Add tests.
10832         * tests/test-setlocale_null.c: New file.
10833         * tests/test-setlocale_null-one.c: New file.
10834         * tests/test-setlocale_null-all.c: New file.
10835         * modules/setlocale-null-tests: New file.
10837         setlocale-null: New module.
10838         * lib/locale.in.h (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX,
10839         setlocale_null): New declarations.
10840         * lib/setlocale_null.c: New file.
10841         * lib/setlocale-lock.c: New file.
10842         * m4/threadlib.m4 (gl_PTHREADLIB_BODY): Define C macro HAVE_PTHREAD_API.
10843         * m4/setlocale_null.m4: New file.
10844         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize
10845         GNULIB_SETLOCALE_NULL.
10846         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE_NULL.
10847         * modules/setlocale-null: New file.
10848         * doc/posix-functions/setlocale.texi: Mention the new module.
10850 2019-12-15  Bruno Haible  <bruno@clisp.org>
10852         lock tests: Skip test when no multithreading is enabled.
10853         * tests/test-rwlock1.c: Skip the test when no multithreading is enabled.
10855 2019-12-14  Bruno Haible  <bruno@clisp.org>
10857         locale, duplocale, localename: Fix last patch.
10858         Reported by Daniel Richard G. in
10859         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00093.html>.
10860         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE):
10861         Don't define if locale_t does not exist.
10863 2019-12-13  Bruno Haible  <bruno@clisp.org>
10865         locale, duplocale, localename: Fix errors if locale_t does not exist.
10866         Reported by Daniel Richard G. in
10867         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00078.html>.
10868         * lib/locale.in.h (HAVE_WORKING_NEWLOCALE, HAVE_WORKING_DUPLOCALE): New
10869         macros.
10870         * tests/test-locale.c: Test HAVE_WORKING_NEWLOCALE instead of
10871         HAVE_NEWLOCALE.
10872         * tests/test-localename.c: Likewise.
10873         * tests/test-duplocale.c: Test HAVE_WORKING_DUPLOCALE instead of
10874         HAVE_DUPLOCALE.
10875         * tests/test-locale-c++.cc: Likewise.
10877 2019-12-13  Bruno Haible  <bruno@clisp.org>
10879         wcstok: Fix test failure on HP-UX.
10880         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Set REPLACE_WCSTOK to 1 on HP-UX.
10881         * doc/posix-functions/wcstok.texi: Mention the HP-UX bug.
10883 2019-12-12  Bruno Haible  <bruno@clisp.org>
10885         strtod, strtold tests: Avoid test failure on AIX 7.2.
10886         * tests/test-strtod1.c (main): Allow implementations in which ',' and
10887         '.' both are radix characters.
10888         * tests/test-strtold1.c (main): Likewise.
10890 2019-12-12  Paul Eggert  <eggert@cs.ucla.edu>
10892         dfa: prefer ptrdiff_t for API, too
10893         Also, use ‘idx_t’ for ptrdiff_t values that must be nonnegative,
10894         but do this only for internal use for now.
10895         * NEWS: Mention the API change.
10896         * lib/dfa.c (idx_t, IDX_MAX): New type and max value, for internal
10897         use for now.  Use them instead of ptrdiff_t and PTRDIFF_MAX for
10898         values known to be nonnegative.
10899         (dfaparse, dfaexec_mb, dfaexec_sb, dfaexec_noop, dfaexec):
10900         Prefer idx_t or ptrdiff_t to size_t for API.
10901         * lib/dfa.h (dfaparse, dfacomp, dfaexec):
10902         Prefer ptrdiff_t to size_t for API.
10904         stdalign: port to xlclang 16.01
10905         Problem reportd by Bruno Haible in:
10906         https://lists.gnu.org/r/bug-gnulib/2019-12/msg00064.html
10907         * lib/stdalign.in.h (_Alignas): Do not use __attribute__
10908         ((__aligned__ (...))) with xlclang, as a top-level
10909         ‘char __attribute__ ((__aligned__ (8))) c;’ does not work with
10910         xlclang version 16.01.0000.0001; the alignment directive is ignored.
10912 2019-12-12  Bruno Haible  <bruno@clisp.org>
10914         duplocale: Fix test failure on AIX 7.2 with xlclang.
10915         * lib/duplocale.c: Include <stdlib.h>.
10916         (rpl_duplocale): Use a heap-allocated copy of the first setlocale return
10917         value.
10919 2019-12-12  Bruno Haible  <bruno@clisp.org>
10921         stddef: Document the AIX xlc issue.
10922         * doc/posix-headers/stddef.texi: Document the NULL issue with AIX xlc.
10924 2019-12-12  Bruno Haible  <bruno@clisp.org>
10926         duplocale: Don't attempt to override if locale_t does not exist.
10927         Reported by Daniel Richard G. in
10928         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00039.html>.
10929         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): If locale_t does not exist, set
10930         HAVE_DUPLOCALE to 0.
10932 2019-12-12  Bruno Haible  <bruno@clisp.org>
10934         wcwidth: Avoid test failure on AIX 7.2.
10935         * tests/test-wcwidth.c (main): Don't fail if wcwidth(0x200B) is
10936         negative.
10937         * doc/posix-functions/wcwidth.texi: Mention the AIX issue.
10939 2019-12-12  Bruno Haible  <bruno@clisp.org>
10941         ilogbl: Work around Cygwin bug.
10942         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Test whether ilogbl(0.0L) is
10943         correct.
10944         * doc/posix-functions/ilogbl.texi: Mention the Cygwin bug.
10946 2019-12-12  Bruno Haible  <bruno@clisp.org>
10948         strtold: Work around Cygwin bug.
10949         * m4/strtold.m4 (gl_FUNC_STRTOLD): Add test for the underflow problem.
10950         If it is present, define STRTOLD_HAS_UNDERFLOW_BUG.
10951         * lib/strtod.c (HAVE_UNDERLYING_STRTOD): Set to 0 if
10952         STRTOLD_HAS_UNDERFLOW_BUG is defined.
10953         * doc/posix-functions/strtold.texi: Mention the Cygwin bug.
10955 2019-12-12  Bruno Haible  <bruno@clisp.org>
10957         strtold: Fix autoconf test.
10958         * m4/strtold.m4 (gl_FUNC_STRTOLD): Test strtold, not strtod.
10960 2019-12-11  Bruno Haible  <bruno@clisp.org>
10962         fsync tests: Skip test that is known to fail.
10963         * doc/posix-functions/fsync.texi: Update list of platforms.
10964         * tests/test-fsync.c (main): Skip test with read-only file descriptors
10965         that is known to fail on AIX and Cygwin.
10967 2019-12-11  Bruno Haible  <bruno@clisp.org>
10969         getaddrinfo: Fix calling convention in 32-bit mode on native Windows.
10970         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Test whether getaddrinfo has a
10971         non-POSIX signature. If so, set REPLACE_GETADDRINFO. Define
10972         HAVE_GETADDRINFO as a C macro.
10973         * lib/netdb.in.h (getaddrinfo, freeaddrinfo): If REPLACE_GETADDRINFO,
10974         declare as replacement functions.
10975         * lib/getaddrinfo.c (getaddrinfo, freeaddrinfo): If HAVE_GETADDRINFO,
10976         define as no-op overrides.
10977         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize REPLACE_GETADDRINFO.
10978         * modules/netdb (Makefile.am): Substitute REPLACE_GETADDRINFO.
10979         * modules/getaddrinfo (Depends-on, configure.ac): Test
10980         REPLACE_GETADDRINFO.
10981         * doc/posix-functions/getaddrinfo.texi: Mention calling convention
10982         problem.
10983         * doc/posix-functions/freeaddrinfo.texi: Mention header file and calling
10984         convention problems.
10986 2019-12-11  Paul Eggert  <eggert@cs.ucla.edu>
10988         dfa: prefer signed integers for internals
10989         Signed integers can be checked more easily for integer overflow.
10990         * lib/dfa.c (position, struct lexer_state, struct parser_state)
10991         (struct dfa, mbs_to_wchar, fetch_wc, parse_bracket_exp)
10992         (struct lexptr, lex, addtok_mb, add_utf8_anychar, atom)
10993         (nsubtoks, copytoks, closure, alloc_position_set, delete)
10994         (replace, state_index, epsclosure, charclass_context)
10995         (state_separate_contexts, merge_nfa_state, dfaoptimize)
10996         (dfaanalyze, build_state, dfaexec_main, dfa_supported)
10997         (maybe_disable_superset_dfa, dfassbuild, dfafree, enlist)
10998         (comsubs, inboth, allocmust):
10999         Prefer a signed to an unsigned integer when calculating indexes,
11000         unless the integer is part of the external API (a bigger deal,
11001         and to be done later).
11003         dfa: fix index overflow
11004         * lib/dfa.c (compare): Avoid integer overflow when analyzing
11005         very large regular expressions.
11007         dfa: update commentary for previous change
11008         * NEWS: Mention the change.
11009         * lib/dfa.c, lib/dfa.h (dfaparse, dfamust, dfacomp): Update comments.
11011 2019-12-11  Norihiro Tanaka  <noritnk@kcn.ne.jp>
11013         dfa: separate parse and compile phase
11014         ‘dfamust’ must be called after parsing and before tokens are
11015         reordered, but both are executed in the compilation phase.
11016         Token reordering was introduced in Gnulib commit
11017         2018-10-22T15:01:08Z!noritnk@kcn.ne.jp
11018         (5c7a0371823876cca7a1347fa09ca26bbbff0c98).
11019         * lib/dfa.c (dfaparse): Change it to global function.
11020         (dfacomp): If first argument is NULL, skip parse.
11021         * lib/dfa.h: (dfaparse): Add a prototype.
11023 2019-12-11  Bruno Haible  <bruno@clisp.org>
11025         unistd tests: Fix link error on MSVC.
11026         * modules/unistd-c++-tests (Makefile.am): Link test-unistd-c++ against
11027         $(LIB_GETLOGIN).
11029 2019-12-11  Bruno Haible  <bruno@clisp.org>
11031         doc: Document that ISO C or POSIX substitutes are supported in C++ mode.
11032         * doc/gnulib-intro.texi (Various Kinds of Modules): Document that ISO C
11033         and POSIX substitutes are supported in C++ mode.
11034         * NEWS: Likewise.
11036 2019-12-11  Bruno Haible  <bruno@clisp.org>
11038         stddef: Fix compilation error in C++ mode on MSVC.
11039         * lib/stddef.in.h (max_align_t): With MSVC in C++ mode, don't define it;
11040         instead, include <cstddef>.
11042 2019-12-11  Bruno Haible  <bruno@clisp.org>
11044         unistd: Fix compilation error in C++ mode on MSVC.
11045         * lib/unistd.in.h: Don't do include[_next] <unistd.h> if the platform
11046         does not have <unistd.h>.
11048 2019-12-11  Bruno Haible  <bruno@clisp.org>
11050         locale: Fix compilation error in C++ mode on MSVC.
11051         * m4/locale_h.m4 (gl_LOCALE_H): Don't set REPLACE_STRUCT_LCONV on MSVC.
11052         * lib/locale.in.h (int_p_cs_precedes, int_p_sign_posn,
11053         int_p_sep_by_space, int_n_cs_precedes, int_n_sign_posn,
11054         int_n_sep_by_space): Define as macros on MSVC.
11056 2019-12-11  Bruno Haible  <bruno@clisp.org>
11058         wchar: Fix compilation error in C++ mode on MSVC.
11059         * lib/wchar.in.h (mbstate_t): Don't override on MSVC.
11061 2019-12-11  Bruno Haible  <bruno@clisp.org>
11063         pthread-thread: Fix compilation error in C++ mode on MSVC.
11064         * lib/pthread.in.h (pthread_exit): Don't use _Noreturn in the
11065         _GL_CXXALIAS_RPL invocation.
11067 2019-12-08  Bruno Haible  <bruno@clisp.org>
11069         Fix compilation errors in C++ mode on Haiku.
11070         * lib/stdio.in.h (vdprintf): Disable _GL_CXXALIASWARN invocation on
11071         non-glibc systems.
11072         * lib/spawn.in.h (posix_spawnattr_getschedpolicy,
11073         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
11074         posix_spawnattr_setschedparam): Likewise.
11075         * lib/stdlib.in.h (random, initstate_r, setstate_r): Use
11076         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11077         * lib/unistd.in.h (usleep): Likewise.
11079 2019-12-08  Bruno Haible  <bruno@clisp.org>
11081         Fix compilation errors in 32-bit C++ mode on HP-UX 11/ia64.
11082         * m4/largefile.m4 (gl_SET_LARGEFILE_SOURCE): New macro.
11083         * modules/fseeko (configure.ac-early): Require it instead of
11084         AC_FUNC_FSEEKO.
11085         * modules/ftello (configure.ac-early): Likewise.
11086         * modules/fflush (configure.ac-early): Likewise.
11088 2019-12-08  Bruno Haible  <bruno@clisp.org>
11090         Fix compilation error in C++ mode on HP-UX 11.
11091         * lib/unistd.in.h (getpagesize): Declare on HP-UX.
11092         * doc/glibc-functions/getpagesize.texi: Mention the HP-UX problem.
11094 2019-12-08  Bruno Haible  <bruno@clisp.org>
11096         Fix compilation errors on HP-UX 11/ia64.
11097         * lib/math.in.h (copysignf, fmaf, fma): Undefine before
11098         _GL_FUNCDECL_SYS.
11100 2019-12-08  Bruno Haible  <bruno@clisp.org>
11102         Fix compilation error in C++ mode on OpenBSD.
11103         * lib/signal.in.h (signal): Declare on OpenBSD.
11105 2019-12-08  Bruno Haible  <bruno@clisp.org>
11107         math tests: Don't fail if isfinite, isinf, isnan, signbit is a macro.
11108         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Use #warning
11109         instead of #error.
11111 2019-12-08  Bruno Haible  <bruno@clisp.org>
11113         Fix compilation errors in C++ mode on FreeBSD.
11114         * lib/pthread.in.h (pthread_exit): Remove _Noreturn from prototype.
11115         * tests/test-pthread-c++.cc (GNULIB_NAMESPACE::pthread_exit): Likewise.
11116         * lib/threads.in.h (thrd_exit): Likewise.
11117         * tests/test-threads-c++.cc (GNULIB_NAMESPACE::thrd_exit): Likewise.
11119 2019-12-08  Bruno Haible  <bruno@clisp.org>
11121         Fix compilation errors in C++ mode on macOS and FreeBSD.
11122         * lib/math.in.h (isfinite, isinf, isnan, signbit): In C++ mode on macOS
11123         or FreeBSD with clang, use the approach without C preprocessor macro.
11125 2019-12-07  Bruno Haible  <bruno@clisp.org>
11127         Fix compilation errors in C++ mode on AIX with xlclang++.
11128         Reported by Christian Biesinger <cbiesinger@google.com> in
11129         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11130         * lib/wchar.in.h (mbstate_t): Don't override on AIX.
11132 2019-12-07  Bruno Haible  <bruno@clisp.org>
11134         Document compilation error in C++ mode on NetBSD 8.0.
11135         * doc/posix-headers/monetary.texi: Mention the NetBSD bug.
11137 2019-12-07  Bruno Haible  <bruno@clisp.org>
11139         Fix compilation errors in C++ mode on Solaris 10.
11140         * m4/stdbool.m4 (AM_STDBOOL_H): Require AC_CANONICAL_HOST. Set STDBOOL_H
11141         to non-empty on Solaris with a non-GCC compiler.
11142         * doc/posix-headers/stdbool.texi: Mention the Solaris issue.
11144 2019-12-07  Bruno Haible  <bruno@clisp.org>
11146         Reword NEWS entry.
11147         * NEWS: Reword the latest NEWS entry.
11149 2019-12-05  Pino Toscano  <ptoscano@redhat.com>
11151         Move xstrtol_fatal to a new xstrtol-error module.
11152         * lib/xstrtol.h: Stop including <getopt.h>.
11153         (xstrtol_fatal): Move ...
11154         * lib/xstrtol-error.h: ... here.  New file.
11155         * lib/xstrtol-error.c: Include xstrtol-error.h instead of xstrtol.h.
11156         * tests/test-xstrtol.c: Likewise.
11157         * modules/xstrtol (Files): Remove lib/xstrtol-error.c.
11158         (Depends-on): Remove exitfail, error, getopt-gnu, and gettext-h.
11159         (Makefile.am): Remove xstrtol-error.c from lib_SOURCES.
11160         * modules/xstrtol-error: New file.
11161         * modules/xstrtol-tests (Depends-on): Add xstrtol-error.
11162         * MODULES.html.sh: Add xstrtol-error.
11163         * NEWS: Document the change.
11165 2019-12-06  Paul Eggert  <eggert@cs.ucla.edu>
11167         nstrftime: better width support for %N, %z
11168         * lib/nstrftime.c (width_add, width_add1, width_cpy):
11169         New macros, which generalize ‘add’, ‘add1’, ‘cpy’ by adding
11170         a new WIDTH parameter.
11171         (add, add1, cpy): Use these macros.
11172         (width_add): Do not treat digits == 0 as a special case,
11173         do not pad if padding is ‘-’, and do not use a negative width.
11174         (__strftime_internal): Redo formatting of nanoseconds and numeric
11175         timezones to avoid buffer misuse in unusual cases, and so that
11176         widths make more sense.  Add support for widths greater than 9 to
11177         the %N format; they are zero filled on the right.
11178         * tests/test-nstrftime.c (posixtm_test): Add a %12N test.
11180 2019-12-05  Bruno Haible  <bruno@clisp.org>
11182         Fix compilation errors in C++ mode on Solaris 10 and Solaris 11.
11183         * m4/isfinite.m4 (gl_ISFINITE): Require AC_CANONICAL_HOST. On Solaris,
11184         set REPLACE_ISFINITE to 1.
11185         * m4/isinf.m4 (gl_ISINF): Require AC_CANONICAL_HOST. On Solaris, set
11186         REPLACE_ISINF to 1.
11187         * m4/signbit.m4 (gl_SIGNBIT): On Solaris, set REPLACE_SIGNBIT to 1.
11188         * lib/pthread.in.h (pthread_create, pthread_once, pthread_key_create):
11189         Use _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
11190         * lib/threads.in.h (call_once): Likewise.
11191         * lib/iconv.in.h (iconv): Likewise.
11193 2019-12-05  Bruno Haible  <bruno@clisp.org>
11195         wchar: Add more C++ tests.
11196         Reported by Christian Biesinger <cbiesinger@google.com> in
11197         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00009.html>.
11198         * tests/test-wchar-c++3.cc: New file.
11199         * modules/wchar-c++-tests (Files): Add it.
11200         (Makefile.am): Compile it.
11202 2019-12-05  Bruno Haible  <bruno@clisp.org>
11204         Add more C++ tests.
11206         assert-h: Add C++ tests.
11207         * tests/test-assert-h-c++.cc: New file.
11208         * tests/test-assert-h-c++2.cc: New file.
11209         * modules/assert-h-c++-tests: New file.
11210         * modules/assert-h-tests: New file.
11212         ctype: Add C++ tests.
11213         * tests/test-ctype-c++.cc: New file.
11214         * tests/test-ctype-c++2.cc: New file.
11215         * modules/ctype-c++-tests: New file.
11216         * modules/ctype-tests (Depends-on): Add ctype-c++-tests.
11218         errno: Add C++ tests.
11219         * tests/test-errno-c++.cc: New file.
11220         * tests/test-errno-c++2.cc: New file.
11221         * modules/errno-c++-tests: New file.
11222         * modules/errno-tests (Depends-on): Add errno-c++-tests.
11224         float: Add C++ tests.
11225         * tests/test-float-c++.cc: New file.
11226         * tests/test-float-c++2.cc: New file.
11227         * modules/float-c++-tests: New file.
11228         * modules/float-tests (Depends-on): Add float-c++-tests.
11230         inttypes: Add more C++ tests.
11231         * tests/test-inttypes-c++2.cc: New file.
11232         * modules/inttypes-c++-tests (Files): Add it.
11233         (Makefile.am): Compile it.
11235         limits-h: Add C++ tests.
11236         * tests/test-limits-h-c++.cc: New file.
11237         * tests/test-limits-h-c++2.cc: New file.
11238         * modules/limits-h-c++-tests: New file.
11239         * modules/limits-h-tests (Depends-on): Add limits-h-c++-tests.
11241         stdarg: Add C++ tests.
11242         * tests/test-stdarg-c++.cc: New file.
11243         * tests/test-stdarg-c++2.cc: New file.
11244         * modules/stdarg-c++-tests: New file.
11245         * modules/stdarg-tests: New file.
11247         stdbool: Add C++ tests.
11248         * tests/test-stdbool-c++.cc: New file.
11249         * tests/test-stdbool-c++2.cc: New file.
11250         * modules/stdbool-c++-tests: New file.
11251         * modules/stdbool-tests (Depends-on): Add stdbool-c++-tests.
11253         stddef: Add C++ tests.
11254         * tests/test-stddef-c++.cc: New file.
11255         * tests/test-stddef-c++2.cc: New file.
11256         * modules/stddef-c++-tests: New file.
11257         * modules/stddef-tests (Depends-on): Add stddef-c++-tests.
11259         stdint: Add C++ tests.
11260         * tests/test-stdint-c++.cc: New file.
11261         * tests/test-stdint-c++2.cc: New file.
11262         * modules/stdint-c++-tests: New file.
11263         * modules/stdint-tests (Depends-on): Add stdint-c++-tests.
11265         wchar: Add more C++ tests.
11266         * tests/test-wchar-c++2.cc: New file.
11267         * modules/wchar-c++-tests (Files): Add it.
11268         (Makefile.am): Compile it.
11270         wctype-h: Add more C++ tests.
11271         * tests/test-wctype-h-c++2.cc: New file.
11272         * modules/wctype-h-c++-tests (Files): Add it.
11273         (Makefile.am): Compile it.
11275 2019-12-04  Bruno Haible  <bruno@clisp.org>
11277         Fix compilation errors in C++ mode with xlclang++ on AIX.
11278         * lib/math.in.h (expm1l, fmal, remainderl, roundl): Don't redeclare in
11279         C++ mode on AIX.
11280         (isfinite, signbit): In C++ mode on AIX with clang, use the approach
11281         without C preprocessor macro.
11282         * lib/pthread.in.h (pthread_exit): Use _GL_CXXALIAS_SYS_CAST instead of
11283         _GL_CXXALIAS_SYS.
11284         * lib/threads.in.h (thrd_exit): Likewise.
11286 2019-12-04  Bruno Haible  <bruno@clisp.org>
11288         Fix compilation error in C++ mode on Solaris 11 OpenIndiana.
11289         * lib/wchar.in.h (wcsnrtombs): Force declaration in C++ mode on Solaris.
11290         * doc/posix-functions/wcsnrtombs.texi: Mention the issue.
11292 2019-12-04  Bruno Haible  <bruno@clisp.org>
11294         Disable more _GL_CXXALIASWARN on all platforms other than glibc systems.
11295         * lib/wchar.in.h (wcsnrtombs, wcwidth, wcswidth): Disable
11296         _GL_CXXALIASWARN invocation on non-glibc systems.
11297         * lib/wctype.in.h (iswalnum, iswalpha, iswcntrl, iswdigit, iswgraph,
11298         iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit, wctype,
11299         iswctype, towlower, towupper): Likewise.
11301 2019-12-03  Bruno Haible  <bruno@clisp.org>
11303         Avoid hassles caused by [[noreturn]] in C++.
11304         Reported by Christian Biesinger <cbiesinger@google.com> in
11305         <https://lists.gnu.org/archive/html/bug-gnulib/2019-12/msg00010.html>.
11306         * m4/gnulib-common.m4 (gl_COMMON_BODY): Disable the use of [[noreturn]].
11307         * lib/_Noreturn.h: Likewise.
11309 2019-12-02  Bruno Haible  <bruno@clisp.org>
11311         Fix mistakes in --enable-threads=isoc fixes from 2019-12-01.
11312         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Use LIBPMULTITHREAD, not
11313         LIBMULTITHREAD.
11314         * m4/pthread-rwlock.m4 (gl_PTHREAD_RWLOCK): Likewise.
11315         * m4/pthread-thread.m4 (gl_PTHREAD_THREAD): Likewise.
11316         * m4/timer_time.m4 (gl_TIMER_TIME): Likewise. Require gl_PTHREADLIB, not
11317         gl_THREADLIB.
11318         * modules/timer-time (Depends-on): Add pthread-h. Remove threadlib.
11320 2019-12-02  Bruno Haible  <bruno@clisp.org>
11322         Fix some more link errors with --enable-threads=isoc.
11323         * modules/pthread-mutex (Depends-on): Test $gl_threads_api differently.
11324         * modules/pthread-rwlock (Depends-on): Likewise.
11326 2019-12-02  Bruno Haible  <bruno@clisp.org>
11328         Fix link errors with --enable-threads=posix on AIX.
11329         * modules/string-c++-tests (Makefile.am): Link the test-string-c++
11330         program with $(LIBTHREAD).
11331         * modules/wchar-c++-tests (Makefile.am): Link the test-wchar-c++
11332         program with $(LIBTHREAD).
11334 2019-12-02  Bruno Haible  <bruno@clisp.org>
11336         Fix link errors with --enable-threads=posix on AIX.
11337         * modules/mbrtowc (Link): New section.
11338         * modules/acl (Link): Likewise.
11339         * modules/argmatch (Link): Likewise.
11340         * modules/backup-rename (Link): Likewise.
11341         * modules/backupfile (Link): Likewise.
11342         * modules/closein (Link): Likewise.
11343         * modules/closeout (Link): Likewise.
11344         * modules/copy-file (Link): Likewise.
11345         * modules/csharpcomp (Link): Likewise.
11346         * modules/csharpexec (Link): Likewise.
11347         * modules/dfa (Link): Likewise.
11348         * modules/exclude (Link): Likewise.
11349         * modules/fnmatch (Link): Likewise.
11350         * modules/fnmatch-gnu (Link): Likewise.
11351         * modules/fnmatch-posix (Link): Likewise.
11352         * modules/glob (Link): Likewise.
11353         * modules/human (Link): Likewise.
11354         * modules/javacomp (Link): Likewise.
11355         * modules/javaexec (Link): Likewise.
11356         * modules/javaversion (Link): Likewise.
11357         * modules/mbfile (Link): Likewise.
11358         * modules/mbiter (Link): Likewise.
11359         * modules/mbmemcasecmp (Link): Likewise.
11360         * modules/mbmemcasecoll (Link): Likewise.
11361         * modules/mbrlen (Link): Likewise.
11362         * modules/mbscasecmp (Link): Likewise.
11363         * modules/mbscasestr (Link): Likewise.
11364         * modules/mbschr (Link): Likewise.
11365         * modules/mbscspn (Link): Likewise.
11366         * modules/mbsinit (Link): Likewise.
11367         * modules/mbslen (Link): Likewise.
11368         * modules/mbsncasecmp (Link): Likewise.
11369         * modules/mbsnlen (Link): Likewise.
11370         * modules/mbsnrtowcs (Link): Likewise.
11371         * modules/mbspbrk (Link): Likewise.
11372         * modules/mbspcasecmp (Link): Likewise.
11373         * modules/mbsrchr (Link): Likewise.
11374         * modules/mbsrtowcs (Link): Likewise.
11375         * modules/mbssep (Link): Likewise.
11376         * modules/mbsspn (Link): Likewise.
11377         * modules/mbsstr (Link): Likewise.
11378         * modules/mbstok_r (Link): Likewise.
11379         * modules/mbswidth (Link): Likewise.
11380         * modules/mbuiter (Link): Likewise.
11381         * modules/mkdir-p (Link): Likewise.
11382         * modules/propername (Link): Likewise.
11383         * modules/quote (Link): Likewise.
11384         * modules/quotearg (Link): Likewise.
11385         * modules/quotearg-simple (Link): Likewise.
11386         * modules/regex-quote (Link): Likewise.
11387         * modules/rpmatch (Link): Likewise.
11388         * modules/sh-quote (Link): Likewise.
11389         * modules/system-quote (Link): Likewise.
11390         * modules/trim (Link): Likewise.
11391         * modules/unistdio/ulc-asnprintf (Link): Likewise.
11392         * modules/unistdio/ulc-fprintf (Link): Likewise.
11393         * modules/unistdio/ulc-vasnprintf (Link): Likewise.
11394         * modules/unistdio/ulc-vasprintf (Link): Likewise.
11395         * modules/unistdio/ulc-vfprintf (Link): Likewise.
11396         * modules/unistdio/ulc-vsnprintf (Link): Likewise.
11397         * modules/unistdio/ulc-vsprintf (Link): Likewise.
11398         * modules/xfreopen (Link): Likewise.
11399         * modules/xmemcoll (Link): Likewise.
11400         * modules/yesno (Link): Likewise.
11401         * modules/acl-tests (Makefile.am): Link the programs with $(LIBTHREAD).
11402         * modules/argmatch-tests (Makefile.am): Likewise.
11403         * modules/closein-tests (Makefile.am): Likewise.
11404         * modules/copy-file-tests (Makefile.am): Likewise.
11405         * modules/dfa-tests (Makefile.am): Likewise.
11406         * modules/fnmatch-tests (Makefile.am): Likewise.
11407         * modules/glob-tests (Makefile.am): Likewise.
11408         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
11409         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
11410         * modules/mbrtowc-tests (Makefile.am): Likewise.
11411         * modules/mbscasecmp-tests (Makefile.am): Likewise.
11412         * modules/mbscasestr-tests (Makefile.am): Likewise.
11413         * modules/mbschr-tests (Makefile.am): Likewise.
11414         * modules/mbscspn-tests (Makefile.am): Likewise.
11415         * modules/mbsinit-tests (Makefile.am): Likewise.
11416         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
11417         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
11418         * modules/mbspbrk-tests (Makefile.am): Likewise.
11419         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
11420         * modules/mbsrchr-tests (Makefile.am): Likewise.
11421         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
11422         * modules/mbsspn-tests (Makefile.am): Likewise.
11423         * modules/mbsstr-tests (Makefile.am): Likewise.
11424         * modules/quotearg-tests (Makefile.am): Likewise.
11425         * modules/quotearg-simple-tests (Makefile.am): Likewise.
11426         * modules/readtokens-tests (Makefile.am): Likewise.
11427         * modules/regex-quote-tests (Makefile.am): Likewise.
11428         * modules/sh-quote-tests (Makefile.am): Likewise.
11429         * modules/system-quote-tests (Makefile.am): Likewise.
11430         * modules/unistdio/ulc-asnprintf-tests (Makefile.am): Likewise.
11431         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
11432         * modules/unistdio/ulc-vasprintf-tests (Makefile.am): Likewise.
11433         * modules/unistdio/ulc-vsnprintf-tests (Makefile.am): Likewise.
11434         * modules/unistdio/ulc-vsprintf-tests (Makefile.am): Likewise.
11435         * modules/yesno-tests (Makefile.am): Likewise.
11437 2019-12-02  Bruno Haible  <bruno@clisp.org>
11439         Simplify link sections.
11440         * modules/threadlib (Link): Stop mentioning LTLIBTHREAD.
11441         * modules/lock (Link): Likewise.
11442         * modules/cond (Link): Likewise.
11443         * modules/tls (Link): Likewise.
11444         * modules/yield (Link): Likewise.
11445         * modules/regex (Link): Likewise.
11446         * modules/localename (Link): Likewise.
11447         * modules/unicase/locale-language (Link): Likewise.
11448         * modules/thread (Link): Stop mentioning LTLIBMULTITHREAD.
11450 2019-12-02  Bruno Haible  <bruno@clisp.org>
11452         thread tests: Avoid link error with --enable-threads=isoc+posix on AIX.
11453         * tests/test-thread_self.c (main): Disable test on AIX.
11455 2019-12-01  Bruno Haible  <bruno@clisp.org>
11457         pthread-h: Fix link errors with --enable-threads=isoc on AIX.
11458         * m4/threadlib.m4 (gl_ANYTHREADLIB_EARLY): New macro, extracted from
11459         gl_THREADLIB_EARLY_BODY.
11460         (gl_THREADLIB_EARLY_BODY): Invoke it.
11461         (gl_PTHREADLIB_BODY): New macro, extracted from gl_THREADLIB_BODY.
11462         (gl_THREADLIB_BODY): Invoke it.
11463         (gl_PTHREADLIB): New macro.
11464         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_PTHREADLIB. Require
11465         gl_THREADLIB and test $gl_threads_api only if module 'threadlib' is
11466         present. Define LIB_PTHREAD using LIBPMULTITHREAD, not LIBMULTITHREAD.
11467         * modules/pthread-h (Files): Add threadlib.m4.
11468         (Depends-on): Remove threadlib.
11469         (configure.ac-early): Invoke gl_ANYTHREADLIB_EARLY. Don't set _REENTRANT
11470         and _THREAD_SAFE here.
11471         (Link): Use LIBPTHREAD, not LIBTHREAD.
11472         * modules/pthread-thread (Link): Use LIBPMULTITHREAD, not
11473         LIBMULTITHREAD.
11474         * modules/pthread-once (Link): Likewise.
11475         * modules/pthread-mutex (Link): Likewise.
11476         * modules/pthread-rwlock (Link): Likewise.
11477         * modules/pthread-cond (Link): Likewise.
11478         * modules/pthread-tss (Link): Likewise.
11479         * modules/pthread-spin (Link): Likewise.
11480         * modules/pthread (Link): Likewise.
11481         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Likewise.
11482         * modules/pthread-thread-tests (test_pthread_thread_LDADD): Likewise.
11483         * modules/pthread-once-tests (test_pthread_once1_LDADD,
11484         test_pthread_once2_LDADD): Likewise.
11485         * modules/pthread-mutex-tests (test_pthread_mutex_LDADD): Likewise.
11486         * modules/pthread-rwlock-tests (test_pthread_rwlock_LDADD): Likewise.
11487         * modules/pthread-cond-tests (test_pthread_cond_LDADD): Likewise.
11488         * modules/pthread-tss-tests (test_pthread_tss_LDADD): Likewise.
11490 2019-12-01  Bruno Haible  <bruno@clisp.org>
11492         cond: State linking requirements.
11493         * modules/cond (Link): New section.
11495 2019-12-01  Bruno Haible  <bruno@clisp.org>
11497         threadlib: Remove unnecessary file (left over from 2019-07-06).
11498         * modules/threadlib (Files): Remove config.rpath.
11500 2019-11-29  Tim Rühsen  <tim.ruehsen@gmx.de>
11502         gnulib-tool.py: Fix libgnu_la_LDFLAGS section in generated Makefile.am.
11503         Reported by Dagobert Michelsen <dam@opencsw.org> in
11504         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00086.html>.
11505         * pygnulib/GLModuleSystem.py (getLink): Don't join the parts. Return a
11506         list of strings instead of one string.
11507         * pygnulib/GLEmiter.py (lib_Makefile_am): Adapt accordingly.
11508         * pygnulib/GLImport.py (execute): Likewise.
11510 2019-11-27  Bruno Haible  <bruno@clisp.org>
11512         openpty, forkpty: Fix build error on Solaris 11.4.
11513         * m4/pty_h.m4 (gl_PTY_H): Test for termios.h. Look for the declarations
11514         also in <termios.h>.
11515         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Look for the declaration
11516         of the function also in <termios.h>.
11517         * doc/glibc-functions/openpty.texi: Mention the Solaris 11.4 problems.
11518         * doc/glibc-functions/forkpty.texi: Likewise.
11520 2019-11-27  Bruno Haible  <bruno@clisp.org>
11522         New options --enable-threads=isoc and --enable-threads=isoc+posix.
11523         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Accept the options
11524         --enable-threads=isoc and --enable-threads=isoc+posix.
11525         (gl_THREADLIB_BODY): Test whether the ISO C threads API is available.
11526         When both the ISO C and the POSIX threads API are available, choose
11527         USE_ISOC_AND_POSIX_THREADS instead of USE_POSIX_THREADS if
11528         --enable-threads=isoc+posix was specified. When only the ISO C threads
11529         API is available and --enable-threads=iso was specified, choose
11530         USE_ISOC_THREADS.
11531         * lib/glthread/lock.h: Add new code for USE_ISOC_THREADS ||
11532         USE_ISOC_AND_POSIX_THREADS.
11533         * lib/glthread/lock.c: Likewise.
11534         * lib/glthread/cond.h: Likewise.
11535         * lib/glthread/cond.c: Likewise.
11536         * lib/glthread/tls.h: Likewise.
11537         * lib/glthread/tls.c: Likewise.
11538         * lib/glthread/yield.h: Likewise.
11539         * lib/glthread/thread.h: Add new code for USE_ISOC_THREADS. Treat
11540         USE_ISOC_AND_POSIX_THREADS like USE_POSIX_THREADS.
11541         * lib/glthread/thread.c: Likewise.
11542         * lib/glthread/threadlib.c: Likewise.
11543         * tests/test-lock.c: Save and restore the values of USE_ISOC_THREADS and
11544         USE_ISOC_AND_POSIX_THREADS.
11545         * tests/test-cond.c: Consider USE_ISOC_THREADS and
11546         USE_ISOC_AND_POSIX_THREADS.
11547         * tests/test-tls.c: Likewise.
11548         * tests/test-thread_create.c (main): Likewise.
11549         * tests/test-pthread-cond.c: Likewise.
11550         * tests/test-pthread-mutex.c: Likewise.
11551         * tests/test-pthread-once2.c: Likewise.
11552         * tests/test-pthread-rwlock.c: Likewise.
11553         * tests/test-pthread-tss.c: Likewise.
11554         * tests/test-pthread_sigmask2.c: Treat USE_ISOC_AND_POSIX_THREADS like
11555         USE_POSIX_THREADS.
11557 2019-11-24  Bruno Haible  <bruno@clisp.org>
11559         mbrtowc: Modernize autoconf test.
11560         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Require
11561         gt_LOCALE_FR_UTF8. If a traditional Japanese locale is not available,
11562         try a UTF-8 locale.
11563         * doc/posix-functions/mbrtowc.texi: Update info about AIX.
11565 2019-11-24  Bruno Haible  <bruno@clisp.org>
11567         Fix errors in C++ mode on mingw.
11568         * lib/arpa_inet.in.h (inet_ntop, inet_pton): Use _GL_CXXALIAS_SYS_CAST
11569         instead of _GL_CXXALIAS_SYS.
11570         * lib/signal.in.h (pthread_sigmask): Likewise.
11571         * lib/spawn.in.h (posix_spawn_file_actions_addopen,
11572         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
11573         Likewise.
11574         * lib/wchar.in.h (btowc): Likewise.
11576 2019-11-24  Bruno Haible  <bruno@clisp.org>
11578         sys_time: Fix errors in C++ mode on mingw.
11579         * lib/sys_time.in.h (timeval): Restore the redirection
11580         '#define timeval rpl_timeval', for when the symbol timeval is being used
11581         outside the 'gnulib' namespace.
11582         * lib/sys_select.in.h (select): In C++, write 'timeval', not
11583         'struct timeval'.
11585 2019-11-24  Bruno Haible  <bruno@clisp.org>
11587         iswctype: Fix errors in C++ mode on mingw.
11588         * lib/wctype.in.h (rpl_iswctype): Override if GNULIB_OVERRIDES_WINT_T
11589         is 1.
11590         * lib/iswctype.c (iswctype): Add another implementation, for the
11591         GNULIB_defined_wint_t case.
11592         * modules/iswctype (configure.ac): Compile iswctype.c also if
11593         GNULIB_OVERRIDES_WINT_T is 1.
11595 2019-11-24  Bruno Haible  <bruno@clisp.org>
11597         windows-timedmutex: Fix errors in C++ mode on mingw.
11598         * lib/windows-timedmutex.h: Add closing brace.
11600 2019-11-24  Bruno Haible  <bruno@clisp.org>
11602         Fix errors in C++ mode on Cygwin.
11603         * lib/sys_wait.in.h (waitpid): Use _GL_CXXALIAS_SYS_CAST instead of
11604         _GL_CXXALIAS_SYS.
11606 2019-11-24  Bruno Haible  <bruno@clisp.org>
11608         time_r: Fix for mingw (regression from 2019-11-16).
11609         * m4/time_r.m4 (gl_TIME_R): Revert to using AC_CHECK_FUNCS_ONCE. Use the
11610         AC_LINK_IFELSE test only if the function does not appear to exist.
11612 2019-11-24  Bruno Haible  <bruno@clisp.org>
11614         wcstok: Add tests.
11615         * tests/test-wcstok.c: New file.
11616         * modules/wcstok-tests: New file.
11618 2019-11-24  Bruno Haible  <bruno@clisp.org>
11620         wcstok: Work around wrong signature on native Windows.
11621         * lib/wchar.in.h (wcstok): Override when REPLACE_WCSTOK is 1.
11622         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Check for signature of wcstok. Set
11623         REPLACE_WCSTOK.
11624         * m4/wchar_h.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSTOK.
11625         * modules/wchar (Makefile.am): Substitute REPLACE_WCSTOK.
11626         * modules/wcstok (Depends-on, configure.ac): Consider REPLACE_WCSTOK.
11627         * doc/posix-functions/wcstok.texi: Mention the problem.
11629 2019-11-22  Paul Eggert  <eggert@cs.ucla.edu>
11631         intprops: INT_MULTIPLY_WRAPV speedup for GCC 8.4+
11632         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 8.x where 4 <= x,
11633         remove workaround for GCC bug 91450 as the bug should be fixed
11634         there too.
11636 2019-11-21  Bruno Haible  <bruno@clisp.org>
11638         Disable many _GL_CXXALIASWARN on all platforms other than glibc systems.
11639         Reported by Christian Biesinger <cbiesinger@google.com> in
11640         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00066.html>.
11641         * lib/fnmatch.in.h (fnmatch): Disable _GL_CXXALIASWARN invocation on
11642         non-glibc systems.
11643         * lib/locale.in.h (localeconv, setlocale): Likewise.
11644         * lib/math.in.h (cbrt, ceil, copysign, exp2, expm1, floor, fma, fmod,
11645         frexp, hypot, ilogb, log, log10, log1p, log2, logb, modf, remainder,
11646         rint, round, trunc): Likewise.
11647         * lib/monetary.in.h (strfmon_l): Likewise.
11648         * lib/pthread.in.h (pthread_mutexattr_getrobust,
11649         pthread_mutexattr_setrobust, pthread_mutex_lock, pthread_spin_init,
11650         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock,
11651         pthread_spin_destroy): Likewise.
11652         * lib/signal.in.h (raise, signal): Likewise.
11653         * lib/stdio.in.h (fclose, fflush, fgetc, fgets, fopen, fprintf, fputc,
11654         fputs, fread, freopen, fscanf, fseek, ftell, fwrite, getc, getchar,
11655         perror, printf, putc, putchar, puts, remove, rename, scanf, sprintf,
11656         tmpfile, vfprintf, vprintf, vsprintf): Likewise.
11657         * lib/stdlib.in.h (calloc, malloc, mbtowc, realloc, strtod, wctomb):
11658         Likewise.
11659         * lib/string.in.h (memchr, strncat, strpbrk, strstr, strerror):
11660         Likewise.
11661         * lib/time.in.h (mktime, localtime, ctime, strftime): Likewise.
11662         * lib/wchar.in.h (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs,
11663         wcrtomb, wcsrtombs, wmemchr, wmemcmp, wmemcpy, wmemmove, wmemset,
11664         wcslen, wcscpy, wcsncpy, wcscat, wcsncat, wcscmp, wcsncmp, wcscoll,
11665         wcsxfrm, wcschr, wcsrchr, wcscspn, wcsspn, wcspbrk, wcsstr, wcstok,
11666         wcsftime): Likewise.
11667         * lib/wctype.in.h (iswblank, wctrans, towctrans): Likewise.
11669 2019-11-21  Bruno Haible  <bruno@clisp.org>
11671         Fix various errors in _GL_CXXALIAS_SYS invocations.
11672         * lib/locale.in.h (freelocale): Use _GL_CXXALIAS_SYS_CAST instead of
11673         _GL_CXXALIAS_SYS.
11674         * lib/pthread.in.h (pthread_mutexattr_gettype,
11675         pthread_mutexattr_getrobust): Likewise.
11676         * lib/stdlib.in.h (srandom, initstate, setstate): Likewise.
11677         * lib/sys_socket.in.h (recv, send): Likewise.
11678         * lib/unistd.in.h (getdtablesize): Likewise.
11679         * lib/sys_select.in.h (select): In C++, write 'timeval' instead of
11680         'struct timeval'.
11682 2019-11-21  Bruno Haible  <bruno@clisp.org>
11684         math tests: Update after 2019-08-28 change.
11685         * tests/test-math-c++.cc (isfinite, isinf, isnan, signbit): Expect a
11686         return type of 'bool', not 'int'.
11688 2019-11-21  Bruno Haible  <bruno@clisp.org>
11690         pthread-spin: Fix errors in C++ mode.
11691         * m4/pthread-spin.m4 (gl_PTHREAD_SPIN): Mark the pthread_spin_*
11692         functions as nonexistent when <pthread.h> exists but does not define
11693         the pthread_spinlock_t type.
11695 2019-11-21  Bruno Haible  <bruno@clisp.org>
11697         pthread-mutex: Fix errors in C++ mode.
11698         * m4/pthread-mutex.m4 (gl_PTHREAD_MUTEX): Test whether
11699         pthread_mutexattr_getrobust exists. If not, define
11700         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11701         * lib/pthread-mutex.c (pthread_mutexattr_getrobust,
11702         pthread_mutexattr_setrobust): Define also if <pthread.h> exists but
11703         PTHREAD_MUTEXATTR_ROBUST_UNIMPLEMENTED.
11704         * modules/pthread-mutex (configure.ac): Compile pthread-mutex.c also
11705         when <pthread.h> exists but pthread_mutexattr_getrobust needs a gnulib
11706         definition.
11708 2019-11-19  Bruno Haible  <bruno@clisp.org>
11710         threads-h tests: Fix typo.
11711         * tests/test-threads-c++.cc: Fix references to undefined type 'mtx'.
11713 2019-11-19  Bruno Haible  <bruno@clisp.org>
11715         pthread-thread: Fix prototype of pthread_attr_getdetachstate.
11716         * lib/pthread.in.h (pthread_attr_getdetachstate): Change first parameter
11717         to 'const pthread_attr_t *'.
11718         * lib/pthread-thread.c (pthread_attr_getdetachstate): Likewise.
11719         * tests/test-pthread-c++.cc (pthread_attr_getdetachstate): Likewise.
11721 2019-11-19  Paul Eggert  <eggert@cs.ucla.edu>
11723         intprops: speed up INT_MULTIPLY_WRAPV in GCC 9.3
11724         * lib/intprops.h (INT_MULTIPLY_WRAPV): If GCC 9.3 or later, do not
11725         work around GCC bug 91450 as the bug should be fixed there.
11727 2019-11-18  Paul Eggert  <eggert@cs.ucla.edu>
11729         glob: get closer to glibc glob.c
11730         Omit differences from glibc when the differences don’t matter.
11731         * lib/glob.c [_LIBC]: Include shlib-compat.h.
11732         (__glob) [!_LIBC]: New macro.  All uses of glob changed to __glob.
11733         (glob_lstat): New function.
11734         (glob_in_dir): Use it.
11735         (GLOB_ATTRIBUTE): Define to empty if not already defined.
11736         Use changed.
11738 2019-11-18  Bruno Haible  <bruno@clisp.org>
11740         stdint: Define [u]intptr_t correctly on 64-bit native Windows.
11741         * lib/stdint.in.h (gl_intptr_t, gl_uintptr_t, INTPTR_MIN, INTPTR_MAX,
11742         UINTPTR_MAX): Consider _WIN64.
11743         * tests/test-stdint.c: Verify that [u]intptr_t is large enough to hold
11744         a pointer.
11746 2019-11-18  Bruno Haible  <bruno@clisp.org>
11748         stdint: Fix value of WINT_MAX when we override wint_t.
11749         * lib/stdint.in.h (WINT_MIN, WINT_MAX): Don't override a second time
11750         when GNULIB_OVERRIDES_WINT_T is 1.
11752 2019-11-18  Bruno Haible  <bruno@clisp.org>
11754         vcs-to-changelog: New module.
11755         * modules/vcs-to-changelog: New file.
11756         * MODULES.html.sh (func_all_modules): Add it.
11758 2019-11-01  Siddhesh Poyarekar  <siddhesh@gotplt.org>
11760         vcs-to-changelog: New script to generate ChangeLog-like output.
11761         Discussion:
11762         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00062.html>
11763         * build-aux/vcs_to_changelog.py: New file.
11764         * build-aux/vcstocl/frontend_c.py: New file.
11765         * build-aux/vcstocl/misc_util.py: New file.
11766         * build-aux/vcstocl/vcs_git.py: New file.
11768 2019-11-18  Bruno Haible  <bruno@clisp.org>
11770         stdint: Avoid triggering a "conflicting types" error on mingw 5.22.
11771         Reported by Keith Marshall <keith@users.osdn.me> in
11772         <https://lists.gnu.org/archive/html/bug-gnulib/2019-10/msg00044.html>
11773         and <https://osdn.net/projects/mingw/ticket/39677>.
11774         * lib/stdint.in.h (intptr_t, uintptr_t): Don't define if the types have
11775         already been defined by mingw's <crtdefs.h>.
11777 2019-11-18  Bruno Haible  <bruno@clisp.org>
11779         gnulib-tool: Fix build error on macOS with --conditional-dependencies.
11780         * gnulib-tool (func_modules_add_dummy): Ignore modules that are
11781         conditionally enabled.
11783 2019-11-18  Bruno Haible  <bruno@clisp.org>
11785         gc: Mirror libgcrypt.m4 from libgcrypt.
11786         * config/srclistvars.sh (LIBGCRYPT): New variable.
11787         * config/srclist.txt: Use it to fetch m4/libgcrypt.m4.
11789 2019-11-17  Bruno Haible  <bruno@clisp.org>
11791         locale, localename: Improve z/OS support.
11792         Reported by Daniel Richard G. in
11793         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00001.html>.
11794         * m4/locale_h.m4 (gl_LOCALE_T): New macro, partially extracted from
11795         gl_LOCALE_H.
11796         (gl_LOCALE_H): Require it.
11797         * m4/localename.m4 (gl_LOCALENAME): Likewise. If locale_t is not
11798         defined, don't even check for newlocale, duplocale, freelocale.
11799         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): Make the test fail when
11800         locale_t is not defined.
11802 2019-11-17  Bruno Haible  <bruno@clisp.org>
11804         havelib: Make libdirstems processing more flexible.
11805         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Set 3 libdirstem
11806         variables: Consider 'lib' always, also on Solaris. Look for lib32 in
11807         addition to lib64. Don't invoke /usr/bin/gcc (reverting the second
11808         patch from 2017-02-19).
11809         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Consider up to 3 additional
11810         libdirs, even when the first one exists as a directory.
11812 2019-11-17  Bruno Haible  <bruno@clisp.org>
11814         havelib: Match the bitness when searching for libraries.
11815         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Define a function
11816         acl_is_expected_elfclass.
11817         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): When testing whether a library
11818         file exists, in ELF, also test whether it has the ELF class that
11819         corresponds to the host's bitness.
11821 2019-11-17  Bruno Haible  <bruno@clisp.org>
11823         host-cpu-c-abi: Add support for unknown CPUs.
11824         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): Set
11825         gl_cv_host_cpu_c_abi_32bit to 'unknown' if we don't know whether it's
11826         32-bit or 64-bit.
11828 2019-11-17  Bruno Haible  <bruno@clisp.org>
11830         havelib: Remove redundant code.
11831         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Remove Solaris specific
11832         test for 64-bit host. Use gl_HOST_CPU_C_ABI_32BIT result instead.
11834 2019-11-17  Bruno Haible  <bruno@clisp.org>
11836         havelib: Fix a bug in dependency processing.
11837         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): During dependency processing
11838         of .la files, don't overwrite the value of additional_libdir for the
11839         next rounds.
11841 2019-11-16  Bruno Haible  <bruno@clisp.org>
11843         wctype-h: When overriding wint_t, override also the related functions.
11844         Reported by Christian Biesinger <cbiesinger@google.com> in
11845         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00027.html>.
11846         * m4/wctype_h.m4 (gl_WCTYPE_H): When GNULIB_OVERRIDES_WINT_T is 1, set
11847         REPLACE_ISWCNTRL to 1.
11848         * lib/wctype.in.h (rpl_iswalnum, rpl_iswalpha, rpl_iswblank,
11849         rpl_iswcntrl, rpl_iswdigit, rpl_iswgraph, rpl_iswlower, rpl_iswprint,
11850         rpl_iswpunct, rpl_iswspace, rpl_iswupper, rpl_iswxdigit, rpl_towlower,
11851         rpl_towupper): New definitions when GNULIB_OVERRIDES_WINT_T is 1.
11852         * doc/posix-headers/wchar.texi: Mention that wint_t is also overridden
11853         on mingw.
11854         * doc/posix-headers/wctype.texi: Likewise.
11856 2019-11-16  Bruno Haible  <bruno@clisp.org>
11858         time_r: Fix for mingw.
11859         Reported by Christian Biesinger <cbiesinger@google.com> in
11860         <https://lists.gnu.org/archive/html/bug-gnulib/2019-11/msg00014.html>.
11861         * lib/time.in.h: On mingw, include <unistd.h>.
11862         * m4/time_r.m4 (gl_TIME_R): On mingw, include <unistd.h> before
11863         <time.h>. Test for localtime_r in a way that works when it is defined
11864         as an inline function.
11866 2019-11-13  Bruno Haible  <bruno@clisp.org>
11868         havelib: Revert last change.
11869         * build-aux/config.rpath: Revert last change. We can add msys2 support
11870         when it has been added to libtool.m4 upstream.
11872 2019-11-09  Paul Eggert  <eggert@cs.ucla.edu>
11874         config: add msys support
11875         Requested by Arnold Robbins in:
11876         https://lists.gnu.org/r/bug-gnulib/2019-11/msg00008.html
11877         He also requested a change to config.guess, which I’ll forward
11878         upstream.
11879         * build-aux/ar-lib (func_file_conv):
11880         * build-aux/compile (func_file_conv):
11881         * build-aux/config.rpath (wl, with_gnu_ld)
11882         (hardcode_libdir_flag_spec, libext, shrext, library_names_spec):
11883         Treat msys like cygwin.
11885 2019-11-06  Paul Eggert  <eggert@cs.ucla.edu>
11887         regex: now back in sync with glibc
11888         * config/srclist.txt: regcomp.c, regex_internal.c, regex_internal.h,
11889         regexec.c got merged into glibc and are now copies again.
11891 2019-10-27  Bruno Haible  <bruno@clisp.org>
11893         host-cpu-c-abi: Recognize i386 and a couple of other CPUs as 32-bit.
11894         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Include i386 in the case
11895         statement.
11896         (gl_HOST_CPU_C_ABI_32BIT): Likewise. Also recognize a couple of other
11897         32-bit CPUs.
11899 2019-10-24  Paul Eggert  <eggert@cs.ucla.edu>
11901         timespec-add, timespec-sub: simplify
11902         * lib/timespec-add.c (timespec_add):
11903         * lib/timespec-sub.c (timespec_sub):
11904         Simplify, now that INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
11905         work on unsigned integers.
11907 2019-10-23  Paul Eggert  <eggert@cs.ucla.edu>
11909         nstrftime: speed up integer overflow checking
11910         * lib/nstrftime.c: Include intprops.h.
11911         (INT_STRLEN_BOUND): Remove, as we can use intprops.h’s defn.
11912         (__strftime_internal): Use INT_MULTIPLY_WRAPV and INT_ADD_WRAPV
11913         instead of doing it by hand.
11914         * modules/nstrftime (Depends-on): Add intprops.
11916         Port better to GCC under macOS
11917         Work around macOS header that has ‘#define __has_builtin(x) 0’
11918         when compiled by GCC.  Apple really, really doesn’t want you to
11919         use GCC, apparently.  Rroblem reported by Akim Demaille in:
11920         https://lists.gnu.org/r/bug-bison/2019-10/msg00071.html
11921         The fix is to not trust __has_builtin when being compiled by
11922         recent-enough GCC.
11923         * lib/intprops.h (__has_builtin)
11924         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
11925         * lib/verify.h (__has_builtin, _GL_HAS___builtin_unreachable)
11926         (_GL_HAS___builtin_trap, _GL_TEMPDEF___has_builtin):
11927         Remove.  All uses removed.
11928         * lib/intprops.h (_GL_HAS_BUILTIN_ADD_OVERFLOW): Use __has_builtin
11929         directly, if defined and if not newer GCC.
11930         * lib/verify.h (_GL_HAS_BUILTIN_TRAP, _GL_HAS_BUILTIN_UNREACHABLE):
11931         New macro, that use __has_builtin directly, if defined and if
11932         not newer GCC.
11933         (assume): Use them.
11935 2019-10-22  Akim Demaille  <akim@lrde.epita.fr>
11937         maintainer-makefile: update rule for argmatch.
11938         * top/maint.mk (sc_prohibit_argmatch_without_use): Add ARGMATCH_DEFINE_GROUP.
11940 2019-10-21  Akim Demaille  <akim@lrde.epita.fr>
11942         bitset: let freeing functions accept NULL.
11943         * lib/bitset.c (bitset_free, bitset_obstack_free): Do nothing if
11944         given NULL.
11945         * lib/bitset.h: Document that.
11946         * doc/bitset.texi: Fix the example, and demonstrate bitset_free.
11948 2019-10-15  Paul Eggert  <eggert@cs.ucla.edu>
11950         inttypes: use more-robust test for int range
11951         This fixes Bison 3.4.2 when built with Oracle Solaris Studio 12.3.
11952         Problem reported by Dagobert Michelsen in:
11953         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00042.html
11954         * lib/inttypes.in.h: Rely only on limits.h when checking
11955         int range.
11957 2019-10-15  Bruno Haible  <bruno@clisp.org>
11959         libtextstyle-optional: Sync with current not-yet-released libtextstyle.
11960         * libtextstyle-optional (styled_ostream_get_hyperlink_ref,
11961         styled_ostream_get_hyperlink_id, styled_ostream_set_hyperlink,
11962         term_ostream_get_hyperlink_ref, term_ostream_get_hyperlink_id,
11963         term_ostream_set_hyperlink): New functions.
11964         (term_styled_ostream_get_hyperlink_ref,
11965         term_styled_ostream_get_hyperlink_id,
11966         term_styled_ostream_set_hyperlink): New function aliases.
11968 2019-10-14  Paul Eggert  <eggert@cs.ucla.edu>
11970         update-copyright: use en dashes in .texi ranges
11971         * build-aux/update-copyright: Match year ranges like "1998--2019",
11972         which are used in the Autoconf manual.  Also, update ranges in
11973         .tex, .texi, and .texinfo files to use en dashes instead of
11974         hyphens.
11976 2019-10-13  Paul Eggert  <eggert@cs.ucla.edu>
11978         * config/srclist.txt: Remove posix/regex_internal.c for now.
11980 2019-10-13  Bruno Haible  <bruno@clisp.org>
11982         git-version-gen: Allow 'snapshot' as .tarball-version contents.
11983         * build-aux/git-version-gen: Don't map non-numeric .tarball-version
11984         contents to the empty string.
11986 2019-10-12  Bruno Haible  <bruno@clisp.org>
11988         intprops tests: Fix compilation errors on HP-UX/ia64 with cc.
11989         * tests/test-intprops.c (main): Disable two more tests when using
11990         HP-UX cc.
11992 2019-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11994         Simplify and regularize regex use of ‘assert’
11995         Also, tell GCC about the asserts even when compiling without
11996         debugging, to give it further optimization opportunities.
11997         * lib/regex_internal.h (DEBUG_ASSERT): New macro.
11998         * lib/regcomp.c (link_nfa_nodes, calc_eclosure)
11999         (parse_expression, parse_bracket_exp):
12000         * lib/regex_internal.c (build_wcs_buffer)
12001         (build_wcs_upper_buffer, re_string_reconstruct)
12002         (re_string_context_at):
12003         * lib/regexec.c (re_search_stub, re_copy_regs)
12004         (re_search_internal, prune_impossible_nodes, check_matching)
12005         (check_halt_state_context, set_regs, sift_states_backward)
12006         (build_sifted_states, transit_state_mb, transit_state_bkref)
12007         (check_arrival_add_next_nodes, check_arrival_expand_ecl)
12008         (match_ctx_add_subtop):
12009         Use it instead of plain ‘assert’.
12011 2019-10-09  Paul Eggert  <eggert@cs.ucla.edu>
12013         regex: omit debug assignment when not debugging
12014         * lib/regexec.c (re_search_internal) [!DEBUG]:
12015         Remove unnecessary assignment.
12017         regex: tell compiler there’s at most 256 arcs out
12018         Partly this is to help the reader (and maybe help GCC);
12019         partly this is to pacify Coverity.
12020         * lib/regex_internal.h: Include verify.h.
12021         * lib/regexec.c (group_nodes_into_DFAstates):
12022         Tell the compiler that ndests cannot exceed SBC_MAX.
12023         * modules/regex (Depends-on): Add ‘verify’.
12025         regex: simplify by assuming C99
12026         * config/srclist.txt: Comment out regex_internal.h and regexec.c
12027         temporarily.
12028         * lib/regex_internal.h (lock_define, re_match_context_t):
12029         Simplify by assuming C99 macros and const.
12030         * lib/regexec.c (re_search_internal): Simplify by assuming C99
12031         initializers.  Remove unnecessary assignment, as mctx is now
12032         safely initialized earlier.
12034         regex: avoid copying of uninitialized storage
12035         * config/srclist.txt: Comment out regcomp.c temporarily.
12036         * lib/regcomp.c (build_charclass_op, create_tree) [! (GCC_LINT||lint)]:
12037         Initialize even when not checking for lint, as the behavior is
12038         arguably undefined otherwise and Coverity warns about it.
12040 2019-10-06  Bruno Haible  <bruno@clisp.org>
12042         access tests: Fix test failure when run as root.
12043         * tests/test-access.c: Include root-uid.h.
12044         (geteuid): Define fallback.
12045         (main): Don't expect that writing to a read-only file would fail when
12046         running as root. Also, remove the created files at the end.
12047         * modules/access-tests (Depends-on): Add root-uid.
12048         (configure.ac): Test whether geteuid exists.
12050 2019-10-06  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
12052         users.txt: add GNU nano
12053         Nano has been making use of gnulib since March 2017, version 2.8.0.
12055 2019-10-05  Paul Eggert  <eggert@cs.ucla.edu>
12057         bootstrap: simplify debugging of wget failures
12058         Problem reported by Tim Rühsen in:
12059         https://lists.gnu.org/r/bug-gnulib/2019-10/msg00000.html
12060         * build-aux/bootstrap (po_download_command_format):
12061         Invoke wget with -nv instead of -q, to make debugging easier.
12063 2019-09-29  Bruno Haible  <bruno@clisp.org>
12065         avltree-list: Fix compilation warning (introduced on 2014-09-16).
12066         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Remove
12067         'const' attribute.
12069 2019-09-29  Bruno Haible  <bruno@clisp.org>
12071         fbufmode: Fix compilation error on glibc >= 2.28 systems.
12072         * lib/stdio-impl.h (_IO_UNBUFFERED): Define fallback on glibc >= 2.28.
12074 2019-09-28  Bruno Haible  <bruno@clisp.org>
12076         Update comments that refer to POSIX.
12077         * lib/creat.c, lib/fopen.c, lib/open.c, lib/openat.c: Cite the relevant
12078         sentence about trailing slashes.
12079         * lib/fflush.c: Clarify the reasoning.
12080         * tests/test-fflush2.c: Cite the relevant sentence.
12082 2019-09-28  Bruno Haible  <bruno@clisp.org>
12084         access: Document limitations on Windows.
12085         Suggested by Zaretskii <eliz@gnu.org>.
12086         * doc/posix-functions/access.texi: Mention two limitations on Windows.
12088 2019-09-28  Bruno Haible  <bruno@clisp.org>
12090         findprog-in: Fix comment.
12091         Reported by Eli Zaretskii <eliz@gnu.org>.
12092         * lib/findprog.h (find_in_given_path): Extend description of EACCES
12093         condition.
12094         * lib/stat.c (rpl_stat): Fix typo in comment.
12095         * lib/utime.c (_gl_utimens_windows): Likewise.
12097 2019-09-23  Paul Eggert  <eggert@cs.ucla.edu>
12099         Update URLs and associated text
12100         (Thanks to Bruno Haible for proofreading this patch.)
12101         Prefer https: to http: in URLs where either will do, for the usual
12102         security reasons.  I also updated broken and/or moved URLs
12103         discovered during the process. In a few places I had to resort to
12104         archive.org, since I didn't find the originals elsewhere.
12106 2019-09-15  Paul Smith  <psmith@gnu.org>
12107             Bruno Haible  <bruno@clisp.org>
12109         findprog-in: Set errno when the search fails.
12110         * lib/findprog-in.c: Include <errno.h>.
12111         (find_in_given_path): Set errno before returning NULL.
12112         * lib/findprog.h (find_in_given_path): Update comment accordingly.
12113         Define the term "slash".
12115 2019-09-15  Bruno Haible  <bruno@clisp.org>
12117         findprog, findprog-lgpl, findprog-in: Fix crash on MSVC.
12118         * modules/findprog (Depends-on): Add access.
12119         * modules/findprog-lgpl (Depends-on): Likewise.
12120         * modules/findprog-in (Depends-on): Likewise.
12122 2019-09-15  Bruno Haible  <bruno@clisp.org>
12124         access: Add tests.
12125         * tests/test-access.c: New file.
12126         * modules/access-tests: New file.
12128         access: New module.
12129         * lib/unistd.in.h (access): New declaration.
12130         * lib/access.c: New file.
12131         * m4/access.m4: New file.
12132         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether access is declared.
12133         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ACCESS, REPLACE_ACCESS.
12134         * modules/unistd (Makefile.am): Substitute GNULIB_ACCESS,
12135         REPLACE_ACCESS.
12136         * modules/access: New file.
12137         * tests/test-unistd-c++.cc (access): Check signature.
12138         * doc/posix-functions/access.texi: Mention the new module.
12140 2019-09-15  Bruno Haible  <bruno@clisp.org>
12142         fcntl-h: Fix compilation error of creat.c on MSVC.
12143         * lib/fcntl.in.h: Include <io.h> also when __need_system_fcntl_h is
12144         defined.
12146 2019-09-15  Bruno Haible  <bruno@clisp.org>
12148         creat: Add tests.
12149         * tests/test-creat.c: New file, based on tests/test-open.h.
12150         * modules/creat-tests: New file.
12152         creat: New module.
12153         * lib/fcntl.in.h (creat): New declaration.
12154         * lib/creat.c: New file, based on lib/open.c.
12155         * m4/creat.m4: New file.
12156         * m4/open-slash.m4: New file, extracted from m4/open.m4.
12157         * m4/open.m4 (gl_FUNC_OPEN): Move trailing-slash test to open-slash.m4.
12158         Invoke gl_OPEN_TRAILING_SLASH_BUG.
12159         * modules/open (Files): Add m4/open-slash.m4.
12160         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_CREAT,
12161         REPLACE_CREAT.
12162         * modules/fcntl-h (Makefile.am): Substitute GNULIB_CREAT, REPLACE_CREAT.
12163         * modules/creat: New file.
12164         * tests/test-fcntl-h-c++.cc (creat): Check signature.
12165         * doc/posix-functions/creat.texi: Mention the new module.
12167 2019-09-15  Bruno Haible  <bruno@clisp.org>
12169         open tests: Enhance test.
12170         * tests/test-open.h (test_open): Test the creation of an executable
12171         regular file. Also improve initial cleanup.
12173 2019-09-15  Bruno Haible  <bruno@clisp.org>
12175         intprops tests: Avoid build failure with HP-UX cc.
12176         * tests/test-intprops.c: Disable a check that makes HP cc choke with
12177         "error 4018: Macro param too large after substitution - use -H option.".
12179 2019-09-14  Bruno Haible  <bruno@clisp.org>
12181         Make autoconf tests work with -Werror=implicit-function-declaration.
12182         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Include <wctype.h>, for
12183         towupper() declaration.
12184         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Include <stdlib.h>, for ptsname()
12185         declaration.
12187 2019-09-14  Bruno Haible  <bruno@clisp.org>
12189         findprog-in: Better mimic the system on native Windows.
12190         Reported by Paul Smith <psmith@gnu.org>.
12191         * lib/findprog-in.c (find_in_given_path): On native Windows, don't try
12192         non-empty suffixes when the file name already contains a '.'.
12194 2019-09-10  Bruno Haible  <bruno@clisp.org>
12196         wctob: Fix autoconf test.
12197         Based on patch by Florian Weimer <fweimer@redhat.com>.
12198         * m4/wctob.m4 (gl_FUNC_WCTOB): Include <stdlib.h> before using mbtowc.
12200 2019-09-09  Akim Demaille  <akim@lrde.epita.fr>
12202         xhash: provide hash_xinitialize.
12203         Suggested by Egor Pugin <egor.pugin@gmail.com>
12204         https://lists.gnu.org/archive/html/bison-patches/2019-09/msg00026.html
12205         * modules/xhash, lib/xhash.c: New.
12206         * lib/hash.h (hash_xinitialize): New.
12208 2019-09-09  Bruno Haible  <bruno@clisp.org>
12210         findprog-in: Make exec optimization optional.
12211         * lib/findprog.h: Add double-inclusion guard. Include <stdbool.h>.
12212         (find_in_given_path): Add optimize_for_exec parameter.
12213         * lib/findprog-in.c (find_in_given_path): Likewise.
12215 2019-09-08  Bruno Haible  <bruno@clisp.org>
12217         Add option to assume the best, not the worst, when cross-compiling.
12218         Suggested by Jonas Termansen <sortie@maxsi.org>.
12219         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add --enable-cross-guesses=...
12220         option. Set gl_cross_guess_normal and gl_cross_guess_inverted.
12221         * m4/argz.m4 (gl_FUNC_ARGZ): Obey --enable-cross-guesses for
12222         lt_cv_sys_argz_works.
12223         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Obey --enable-cross-guesses for
12224         ac_cv_func_calloc_0_nonnull.
12225         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Obey
12226         --enable-cross-guesses for gl_cv_func_realpath_works.
12227         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Obey --enable-cross-guesses for
12228         gl_cv_func_cbrtl_ieee.
12229         * m4/ceil.m4 (gl_FUNC_CEIL): Obey --enable-cross-guesses for
12230         gl_cv_func_ceil_ieee.
12231         * m4/ceilf.m4 (gl_FUNC_CEILF): Obey --enable-cross-guesses for
12232         gl_cv_func_ceilf_ieee.
12233         * m4/ceill.m4 (gl_FUNC_CEILL): Obey --enable-cross-guesses for
12234         gl_cv_func_ceill_ieee.
12235         * m4/chown.m4 (AC_FUNC_CHOWN): Obey --enable-cross-guesses for
12236         ac_cv_func_chown_works.
12237         (gl_FUNC_CHOWN): Obey --enable-cross-guesses for
12238         gl_cv_func_chown_slash_works, gl_cv_func_chown_ctime_works.
12239         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Obey
12240         --enable-cross-guesses for gl_cv_struct_dirent_d_ino.
12241         * m4/exp2l.m4 (gl_FUNC_EXP2L): Obey --enable-cross-guesses for
12242         gl_cv_func_exp2l_works, gl_cv_func_exp2l_ieee.
12243         * m4/expl.m4 (gl_FUNC_EXPL): Obey --enable-cross-guesses for
12244         gl_cv_func_expl_works.
12245         * m4/expm1.m4 (gl_FUNC_EXPM1): Obey --enable-cross-guesses for
12246         gl_cv_func_expm1_ieee.
12247         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Obey --enable-cross-guesses for
12248         gl_cv_func_expm1l_works.
12249         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Obey --enable-cross-guesses for
12250         gl_cv_func_open_directory_works.
12251         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Obey
12252         --enable-cross-guesses for gl_cv_func_fchownat_nofollow_works.
12253         (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Obey --enable-cross-guesses for
12254         gl_cv_func_fchownat_empty_filename_works.
12255         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Obey --enable-cross-guesses for
12256         gl_cv_func_fdopendir_works.
12257         * m4/floor.m4 (gl_FUNC_FLOOR): Obey --enable-cross-guesses for
12258         gl_cv_func_floor_ieee.
12259         * m4/floorf.m4 (gl_FUNC_FLOORF): Obey --enable-cross-guesses for
12260         gl_cv_func_floorf_ieee.
12261         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Obey --enable-cross-guesses for
12262         gl_cv_func_fma_works.
12263         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Obey --enable-cross-guesses for
12264         gl_cv_func_fmaf_works.
12265         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Obey --enable-cross-guesses for
12266         gl_cv_func_fmal_works.
12267         * m4/fmod.m4 (gl_FUNC_FMOD): Obey --enable-cross-guesses for
12268         gl_cv_func_fmod_ieee.
12269         * m4/fmodf.m4 (gl_FUNC_FMODF): Obey --enable-cross-guesses for
12270         gl_cv_func_fmodf_ieee.
12271         * m4/fmodl.m4 (gl_FUNC_FMODL): Obey --enable-cross-guesses for
12272         gl_cv_func_fmodl_ieee.
12273         * m4/fpurge.m4 (gl_FUNC_FPURGE): Obey --enable-cross-guesses for
12274         gl_cv_func_fpurge_works.
12275         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Obey
12276         --enable-cross-guesses for gl_cv_func_getcwd_path_max.
12277         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Obey --enable-cross-guesses for
12278         gl_cv_func_getcwd_null.
12279         (gl_FUNC_GETCWD): Update for getcwd-path-max.m4 change.
12280         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Obey --enable-cross-guesses for
12281         gl_cv_func_working_getdelim.
12282         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12283         ac_cv_func_getgroups_works. Keep this macro also in Autoconf >= 2.70.
12284         (gl_FUNC_GETGROUPS): Obey --enable-cross-guesses for
12285         gl_cv_func_getgroups_works.
12286         * m4/getline.m4 (gl_FUNC_GETLINE): Obey --enable-cross-guesses for
12287         am_cv_func_working_getline.
12288         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Obey --enable-cross-guesses
12289         for gl_cv_func_getopt_gnu.
12290         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Obey
12291         --enable-cross-guesses for gl_cv_func_gettimeofday_clobber.
12292         * m4/hypot.m4 (gl_FUNC_HYPOT): Obey --enable-cross-guesses for
12293         gl_cv_func_hypot_ieee.
12294         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Obey --enable-cross-guesses for
12295         gl_cv_func_hypotf_ieee.
12296         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Obey --enable-cross-guesses for
12297         gl_cv_func_hypotl_ieee.
12298         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Obey
12299         --enable-cross-guesses for gl_cv_func_iconv_supports_utf.
12300         * m4/link.m4 (gl_FUNC_LINK): Obey --enable-cross-guesses for
12301         gl_cv_func_link_works.
12302         * m4/linkat.m4 (gl_FUNC_LINKAT): Obey --enable-cross-guesses for
12303         gl_cv_func_linkat_slash.
12304         * m4/log.m4 (gl_FUNC_LOG): Obey --enable-cross-guesses for
12305         gl_cv_func_log_ieee.
12306         * m4/logf.m4 (gl_FUNC_LOGF): Obey --enable-cross-guesses for
12307         gl_cv_func_logf_ieee.
12308         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Obey --enable-cross-guesses for
12309         gl_cv_func_logl_works.
12310         * m4/log10.m4 (gl_FUNC_LOG10): Obey --enable-cross-guesses for
12311         gl_cv_func_log10_ieee.
12312         * m4/log10f.m4 (gl_FUNC_LOG10F): Obey --enable-cross-guesses for
12313         gl_cv_func_log10f_ieee.
12314         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Obey --enable-cross-guesses for
12315         gl_cv_func_log10l_works.
12316         * m4/log1p.m4 (gl_FUNC_LOG1P): Obey --enable-cross-guesses for
12317         gl_cv_func_log1p_ieee.
12318         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Obey --enable-cross-guesses for
12319         gl_cv_func_log1pf_ieee.
12320         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Obey --enable-cross-guesses for
12321         gl_cv_func_log1pl_ieee.
12322         * m4/log2.m4 (gl_FUNC_LOG2): Obey --enable-cross-guesses for
12323         gl_cv_func_log2_ieee.
12324         * m4/log2f.m4 (gl_FUNC_LOG2F): Obey --enable-cross-guesses for
12325         gl_cv_func_log2f_ieee.
12326         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Obey
12327         --enable-cross-guesses for
12328         gl_cv_func_lstat_dereferences_slashed_symlink.
12329         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Obey --enable-cross-guesses for
12330         ac_cv_func_malloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12331         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Obey --enable-cross-guesses for
12332         gl_cv_C_locale_sans_EILSEQ.
12333         * m4/memchr.m4 (gl_FUNC_MEMCHR): Obey --enable-cross-guesses for
12334         gl_cv_func_memchr_works.
12335         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Obey --enable-cross-guesses for
12336         gl_cv_func_memmem_works_always.
12337         (gl_FUNC_MEMMEM): Obey --enable-cross-guesses for
12338         gl_cv_func_memmem_works_fast.
12339         * m4/mkdir.m4 (gl_FUNC_MKDIR): Obey --enable-cross-guesses for
12340         gl_cv_func_mkdir_trailing_slash_works,
12341         gl_cv_func_mkdir_trailing_dot_works.
12342         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Obey --enable-cross-guesses for
12343         gl_cv_func_mkfifo_works.
12344         * m4/mknod.m4 (gl_FUNC_MKNOD): Obey --enable-cross-guesses for
12345         gl_cv_func_mknod_works.
12346         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Obey --enable-cross-guesses for
12347         gl_cv_func_working_mkstemp.
12348         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Obey --enable-cross-guesses for
12349         gl_cv_func_working_mktime.
12350         * m4/modf.m4 (gl_FUNC_MODF): Obey --enable-cross-guesses for
12351         gl_cv_func_modf_ieee.
12352         * m4/modff.m4 (gl_FUNC_MODFF): Obey --enable-cross-guesses for
12353         gl_cv_func_modff_ieee.
12354         * m4/modfl.m4 (gl_FUNC_MODFL): Obey --enable-cross-guesses for
12355         gl_cv_func_modfl_ieee.
12356         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Obey --enable-cross-guesses for
12357         gl_cv_func_nanosleep.
12358         * m4/perror.m4 (gl_FUNC_PERROR): Obey --enable-cross-guesses for
12359         gl_cv_func_perror_works.
12360         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Obey --enable-cross-guesses for
12361         gl_cv_func_printf_sizes_c99.
12362         (gl_PRINTF_INFINITE): Obey --enable-cross-guesses for
12363         gl_cv_func_printf_infinite.
12364         (gl_PRINTF_INFINITE_LONG_DOUBLE): Obey --enable-cross-guesses for
12365         gl_cv_func_printf_infinite_long_double.
12366         (gl_PRINTF_DIRECTIVE_A): Obey --enable-cross-guesses for
12367         gl_cv_func_printf_directive_a.
12368         (gl_PRINTF_DIRECTIVE_F): Obey --enable-cross-guesses for
12369         gl_cv_func_printf_directive_f.
12370         (gl_PRINTF_FLAG_ZERO): Obey --enable-cross-guesses for
12371         gl_cv_func_printf_flag_zero.
12372         (gl_PRINTF_ENOMEM): Obey --enable-cross-guesses for
12373         gl_cv_func_printf_enomem.
12374         (gl_SNPRINTF_TRUNCATION_C99): Obey --enable-cross-guesses for
12375         gl_cv_func_snprintf_truncation_c99.
12376         (gl_SNPRINTF_RETVAL_C99): Obey --enable-cross-guesses for
12377         gl_cv_func_snprintf_retval_c99.
12378         (gl_SNPRINTF_DIRECTIVE_N): Obey --enable-cross-guesses for
12379         gl_cv_func_snprintf_directive_n.
12380         (gl_VSNPRINTF_ZEROSIZE_C99): Obey --enable-cross-guesses for
12381         gl_cv_func_vsnprintf_zerosize_c99.
12382         * m4/pselect.m4 (gl_FUNC_PSELECT): Obey --enable-cross-guesses for
12383         gl_cv_func_pselect_detects_ebadf.
12384         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12385         Obey --enable-cross-guesses for
12386         gl_cv_pthread_rwlock_rdlock_prefer_writer.
12387         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Obey --enable-cross-guesses for
12388         gl_cv_func_ptsname_sets_errno.
12389         * m4/putenv.m4 (gl_FUNC_PUTENV): Obey --enable-cross-guesses for
12390         gl_cv_func_svid_putenv.
12391         * m4/readlink.m4 (gl_FUNC_READLINK): Obey --enable-cross-guesses for
12392         gl_cv_func_readlink_works.
12393         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Obey --enable-cross-guesses for
12394         ac_cv_func_realloc_0_nonnull. Keep this macro also in Autoconf >= 2.70.
12395         * m4/regex.m4 (gl_REGEX): Obey --enable-cross-guesses for
12396         gl_cv_func_re_compile_pattern_working.
12397         * m4/remainder.m4 (gl_FUNC_REMAINDER): Obey --enable-cross-guesses for
12398         gl_cv_func_remainder_ieee.
12399         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Obey --enable-cross-guesses for
12400         gl_cv_func_remainderf_ieee.
12401         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Obey --enable-cross-guesses for
12402         gl_cv_func_remainderl_ieee.
12403         * m4/rintl.m4 (gl_FUNC_RINTL): Obey --enable-cross-guesses for
12404         gl_cv_func_rintl_works.
12405         * m4/rmdir.m4 (gl_FUNC_RMDIR): Obey --enable-cross-guesses for
12406         gl_cv_func_rmdir_works.
12407         * m4/round.m4 (gl_FUNC_ROUND): Obey --enable-cross-guesses for
12408         gl_cv_func_round_ieee.
12409         * m4/roundf.m4 (gl_FUNC_ROUNDF): Obey --enable-cross-guesses for
12410         gl_cv_func_roundf_ieee.
12411         * m4/roundl.m4 (gl_FUNC_ROUNDL): Obey --enable-cross-guesses for
12412         gl_cv_func_roundl_ieee.
12413         * m4/select.m4 (gl_FUNC_SELECT): Obey --enable-cross-guesses for
12414         gl_cv_func_select_detects_ebadf.
12415         * m4/setenv.m4 (gl_FUNC_SETENV): Obey --enable-cross-guesses for
12416         gl_cv_func_setenv_works.
12417         (gl_FUNC_UNSETENV): Obey --enable-cross-guesses for
12418         gl_cv_func_unsetenv_works.
12419         * m4/signbit.m4 (gl_SIGNBIT): Obey --enable-cross-guesses for
12420         gl_cv_func_signbit, gl_cv_func_signbit_gcc.
12421         * m4/sleep.m4 (gl_FUNC_SLEEP): Obey --enable-cross-guesses for
12422         gl_cv_func_sleep_works.
12423         * m4/stat.m4 (gl_FUNC_STAT): Obey --enable-cross-guesses for
12424         gl_cv_func_stat_file_slash.
12425         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Obey --enable-cross-guesses for
12426         gl_cv_func_stpncpy.
12427         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Obey
12428         --enable-cross-guesses for gl_cv_func_strcasestr_works_always.
12429         (gl_FUNC_STRCASESTR): Obey --enable-cross-guesses for
12430         gl_cv_func_strcasestr_linear.
12431         * m4/strerror.m4 (gl_FUNC_STRERROR): Obey --enable-cross-guesses for
12432         gl_cv_func_working_strerror.
12433         (gl_FUNC_STRERROR_0): Obey --enable-cross-guesses for
12434         gl_cv_func_strerror_0_works.
12435         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Obey
12436         --enable-cross-guesses for gl_cv_func_strerror_r_works.
12437         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Obey --enable-cross-guesses for
12438         gl_cv_func_strstr_works_always.
12439         (gl_FUNC_STRSTR): Obey --enable-cross-guesses for
12440         gl_cv_func_strstr_linear.
12441         * m4/strtod.m4 (gl_FUNC_STRTOD): Obey --enable-cross-guesses for
12442         gl_cv_func_strtod_works.
12443         * m4/strtold.m4 (gl_FUNC_STRTOLD): Obey --enable-cross-guesses for
12444         gl_cv_func_strtold_works.
12445         * m4/symlink.m4 (gl_FUNC_SYMLINK): Obey --enable-cross-guesses for
12446         gl_cv_func_symlink_works.
12447         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Obey --enable-cross-guesses for
12448         gl_cv_func_symlinkat_works.
12449         * m4/trunc.m4 (gl_FUNC_TRUNC): Obey --enable-cross-guesses for
12450         gl_cv_func_trunc_ieee.
12451         * m4/truncf.m4 (gl_FUNC_TRUNCF): Obey --enable-cross-guesses for
12452         gl_cv_func_truncf_ieee.
12453         * m4/truncl.m4 (gl_FUNC_TRUNCL): Obey --enable-cross-guesses for
12454         gl_cv_func_truncl_ieee.
12455         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Obey --enable-cross-guesses for
12456         gl_cv_func_tzset_clobber.
12457         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Obey --enable-cross-guesses for
12458         gl_cv_func_ungetc_works.
12459         * m4/unlink.m4 (gl_FUNC_UNLINK): Obey --enable-cross-guesses for
12460         gl_cv_func_unlink_honors_slashes, gl_cv_func_unlink_parent_fails.
12461         * m4/usleep.m4 (gl_FUNC_USLEEP): Obey --enable-cross-guesses for
12462         gl_cv_func_usleep_works.
12463         * m4/utimens.m4 (gl_UTIMENS): Obey --enable-cross-guesses for
12464         gl_cv_func_futimesat_works.
12465         * m4/utimes.m4 (gl_FUNC_UTIMES): Obey --enable-cross-guesses for
12466         gl_cv_func_working_utimes.
12467         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Obey --enable-cross-guesses for
12468         gl_cv_func_wcwidth_works.
12469         * m4/glob.m4 (gl_GLOB): When cross-compiling, don't create symlinks for
12470         testing. Obey --enable-cross-guesses for gl_cv_glob_lists_symlinks.
12471         * m4/rename.m4 (gl_FUNC_RENAME): When cross-compiling, don't create
12472         links for testing. Obey --enable-cross-guesses for
12473         gl_cv_func_rename_slash_dst_works, gl_cv_func_rename_slash_src_works,
12474         gl_cv_func_rename_link_works, gl_cv_func_rename_dest_works.
12476 2019-09-08  Bruno Haible  <bruno@clisp.org>
12478         Clarify that cross-compilation guesses are guesses.
12479         * m4/threads.m4 (gl_THREADS_H): Say "guessing yes" or "guessing no" when
12480         cross-compiling.
12482 2019-09-08  Bruno Haible  <bruno@clisp.org>
12484         chown: Fix configure output (regression from 2019-03-23).
12485         * m4/chown.m4 (gl_FUNC_CHOWN): Fix reference to
12486         gl_cv_func_chown_follows_symlink variable.
12488 2019-09-08  Bruno Haible  <bruno@clisp.org>
12490         findprog-in: New module.
12491         Suggested by Paul Smith <psmith@gnu.org>.
12492         * lib/findprog.h (find_in_given_path): New declaration.
12493         * lib/findprog-in.c: New file, based on lib/findprog.c.
12494         * m4/findprog-in.m4: New file, based on m4/findprog.m4.
12495         * modules/findprog-in: New file.
12497 2019-09-08  Bruno Haible  <bruno@clisp.org>
12499         findprog: Remove unused dependency.
12500         * modules/findprog (Depends-on): Remove strdup.
12502 2019-09-08  Bruno Haible  <bruno@clisp.org>
12504         findprog: Remove test that is obsolete since 2006-04-24.
12505         * m4/findprog.m4 (gl_FINDPROG): Don't test for unistd.h.
12507 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12509         bitset: style changes
12510         * lib/bitset/vector.c (vbitset_resize): Factor computation.
12511         * lib/bitset.c, lib/bitset/stats.c, lib/bitsetv.c: Prefer
12512         xzalloc to xcalloc.
12513         Suggested by Paul Eggert.
12515 2019-09-06  Akim Demaille  <akim@lrde.epita.fr>
12517         bitset: check memory allocation
12518         Reported by 江 祖铭 (Zu-Ming Jiang).
12519         With help from Paul Eggert.
12520         https://lists.gnu.org/archive/html/bug-bison/2019-08/msg00016.html
12521         * lib/bitset/table.c (tbitset_resize): When growing, use xrealloc
12522         instead of realloc.
12523         When shrinking, accept failures.
12524         * lib/bitset/vector.c (vbitset_resize): Likewise.
12526 2019-09-07  Paul Eggert  <eggert@cs.ucla.edu>
12528         scratch_buffer: sync from glibc
12529         * config/srclist.txt: Add the scratch_buffer source
12530         code from glibc, since these should be in sync.
12531         Autoupdate.
12533 2019-09-07  Bruno Haible  <bruno@clisp.org>
12535         doc: Update for glibc 2.30.
12536         * doc/glibc-functions/gettid.texi: New file.
12537         * doc/glibc-functions/pthread_cond_clockwait.texi: New file.
12538         * doc/glibc-functions/pthread_mutex_clocklock.texi: New file.
12539         * doc/glibc-functions/pthread_rwlock_clockrdlock.texi: New file.
12540         * doc/glibc-functions/pthread_rwlock_clockwrlock.texi: New file.
12541         * doc/glibc-functions/sem_clockwait.texi: New file.
12542         * doc/glibc-functions/tgkill.texi: New file.
12543         * doc/glibc-functions/twalk_r.texi: New file.
12544         * doc/gnulib.texi: Include them.
12545         (Glibc semaphore.h): New section.
12546         * doc/pastposix-functions/h_errno.texi: Update.
12547         * doc/posix-functions/*.texi: Likewise.
12549 2019-09-06  Bruno Haible  <bruno@clisp.org>
12551         symlink tests: Avoid test failure on Linux with Lustre file system.
12552         Reported by Thomas C Oppe <Thomas.C.Oppe@erdc.dren.mil>
12553         at <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=37312>.
12554         * tests/test-symlink.h (test_symlink): Accept errno value ENOENT.
12556 2019-09-01  Bruno Haible  <bruno@clisp.org>
12558         gitsub.sh: Add support for shallow-cloning of subdirectories.
12559         * top/gitsub.sh (func_usage): Document allowed git options with
12560         'git pull'.
12561         (func_pull): Accept GIT_OPTIONS argument.
12562         (pull): Parse git options before complaining about too many arguments.
12563         Pass the git options to func_pull.
12565 2019-08-29  Bruno Haible  <bruno@clisp.org>
12567         lock: Fix cross-compilation guesses.
12568         * m4/pthread_rwlock_rdlock.m4 (gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER):
12569         Require AC_CANONICAL_HOST. When cross-compiling, guess no on most
12570         platforms.
12572 2019-08-28  Bruno Haible  <bruno@clisp.org>
12574         isfinite, isinf, isnan, signbit: Fix error in C++ mode on mingw.
12575         Reported by Martin Storsjö <martin@martin.st> in
12576         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00075.html>.
12577         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Add more arguments.
12578         (isfinite, isinf, isnan, signbit): On platforms that use C++ include
12579         files from GCC 6 or newer, use an override through '#define', because
12580         the inline definitions in the platform's <cmath> cannot be overridden
12581         in another way.
12583 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12585         Revert macOS INT_MULTIPLY_WRAPV patch
12586         Problem reported by Bruno Haible in:
12587         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00076.html
12588         * lib/intprops.h (_GL_HAS___builtin_mul_overflow): Remove.
12589         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12590         Go back to working around the Clang bug on macOS.
12592 2019-08-27  Bruno Haible  <bruno@clisp.org>
12594         libtool-next-version: Fix error output.
12595         * build-aux/libtool-next-version (func_fatal_error): Fix the program
12596         name.
12598 2019-08-27  Paul Eggert  <eggert@cs.ucla.edu>
12600         Speed up INT_MULTIPLY_WRAPV on macOS
12601         Assume that __builtin_mul_overflow works OK with Clang on macOS.
12602         Mattias Engdegård says it’s safe to assume the relevant library
12603         is always available there.
12604         * lib/intprops.h (_GL_HAS___builtin_mul_overflow):
12605         New temporary internal macro.
12606         (_GL_HAS_BUILTIN_MUL_OVERFLOW):
12607         No need to work around the Clang bug on macOS.
12609 2019-08-25  Paul Eggert  <eggert@cs.ucla.edu>
12611         intprops.h, verify.h: port better to clang
12612         Improve code generated by INT_ADD_WRAPV and INT_SUBTRACT_WRAPV
12613         with Clang.  Problem reported privately by Mattias Engdegård.
12614         Also, insulate intprops.h and verify.h better against each other’s
12615         definitions of __has_builtin on non-Clang hosts.
12616         * lib/intprops.h (__has_builtin): Define a temporary substitute
12617         if __has_builtin is not already defined.
12618         (_GL_HAS___builtin_add_overflow, _GL_TEMPDEF___has_builtin):
12619         New temporary internal macros.
12620         (_GL_HAS_BUILTIN_ADD_OVERFLOW, _GL_HAS_BUILTIN_MUL_OVERFLOW):
12621         Now two separate macros, replacing the old
12622         _GL_HAS_BUILTIN_OVERFLOW, since we no longer assume that
12623         __builtin_mul_overflow is like the rest.  All uses changed.
12624         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV):
12625         Adjust to above changes.
12626         (_GL_INT_OP_WRAPV): Remove ‘builtin’ arg, since it’s no
12627         longer relevant.  All uses changed.
12628         * lib/verify.h (__has_builtin): Treat like intprops.h,
12629         so that the two .h files do not collide with each other.
12630         (_GL_HAS___builtin_unreachable, _GL_HAS___builtin_trap)
12631         (_GL_TEMPDEF___has_builtin): New temporary internal macros.
12633 2019-08-24  Paul Eggert  <eggert@cs.ucla.edu>
12635         intprops: say why not Clang __builtin_add_overflow
12636         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW):
12637         Mention Clang in comment, responding to a query from
12638         Mattias Engdegård.
12640 2019-08-24  Bruno Haible  <bruno@clisp.org>
12642         doc: Document most of the files outside of modules.
12643         * doc/gnulib.texi (Build Infrastructure Files,
12644         Release Management Files): New chapters.
12646 2019-08-24  Bruno Haible  <bruno@clisp.org>
12648         bootstrap: Keep in sync with the 'gettext' module.
12649         Reported by Assaf Gordon in
12650         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00045.html>.
12651         * build-aux/po/Makefile.in.in: Update to gettext 0.20.
12652         * build-aux/po/remove-potcdate.sin: Likewise.
12654 2019-08-24  Bruno Haible  <bruno@clisp.org>
12656         crypto/gc-sha512: Add tests.
12657         * tests/test-gc-sha512.c: New file, based on tests/test-gc-sha1.c.
12658         * modules/crypto/gc-sha512-tests: New file.
12660         crypto/gc-sha256: Add tests.
12661         * tests/test-gc-sha256.c: New file, based on tests/test-gc-sha1.c.
12662         * modules/crypto/gc-sha256-tests: New file.
12664         crypto/gc-sha256, crypto/gc-sha512: New modules.
12665         * lib/gc.h (gc_sha256, gc_sha512): New declarations.
12666         * lib/gc-gnulib.c: Include sha256.h, sha512.h.
12667         (MAX_DIGEST_SIZE): Set to 64.
12668         (_gc_hash_ctx, gc_hash_open, gc_hash_digest_length, gc_hash_write,
12669         gc_hash_read, gc_hash_buffer): Add support for sha256 and sha512.
12670         (gc_sha256, gc_sha512): New functions.
12671         * lib/gc-libgcrypt.c (gc_sha256, gc_sha512): New functions.
12672         * modules/crypto/gc-sha256: New file, based on modules/crypto/gc-sha1.
12673         * modules/crypto/gc-sha512: New file, based on modules/crypto/gc-sha1.
12675 2019-08-24  Bruno Haible  <bruno@clisp.org>
12677         crypto/gc-sha1 tests: Improve output when the test fails.
12678         * tests/test-gc-sha1.c (main): In case of mismatch, print the entire
12679         output.
12681 2019-08-24  Bruno Haible  <bruno@clisp.org>
12683         crypto/gc-sm3: Fix compilation error with --with-libgcrypt.
12684         * m4/gc-sm3.m4 (gl_GC_SM3): Test whether libgcrypt supports SM3. Define
12685         LIBGCRYPT_HAS_MD_SM3.
12686         * lib/gc-libgcrypt.c: Include sm3.h.
12687         (_gc_hash_ctx, gc_hash_open, gc_hash_hmac_setkey, gc_hash_write,
12688         gc_hash_read, gc_hash_close, gc_hash_buffer, gc_sm3): Use the gnulib
12689         implementation if libgcrypt does not support SM3.
12691 2019-08-24  Bruno Haible  <bruno@clisp.org>
12693         crypto/gc-md2: Optimize and clarify code.
12694         * lib/gc-gnulib.c (gc_hash_open): Comment out md2_init_ctx invocation.
12695         * lib/gc-libgcrypt.c (gc_hash_open): Clarify why md2_init_ctx invocation
12696         is not needed.
12698 2019-08-24  Bruno Haible  <bruno@clisp.org>
12700         crypto/gc-md2: Add comment.
12701         * lib/gc-libgcrypt.c: Add comment.
12703 2019-08-24  Bruno Haible  <bruno@clisp.org>
12705         crypto/gc-{md[24],rijndael} tests: Fix link error with --with-libgcrypt.
12706         * modules/crypto/gc-md2-tests (test_gc_md2_LDADD): New variable.
12707         * modules/crypto/gc-md4-tests (test_gc_md4_LDADD): New variable.
12708         * modules/crypto/gc-rijndael-tests (test_gc_rijndael_LDADD): New
12709         variable.
12711 2019-08-24  Bruno Haible  <bruno@clisp.org>
12713         crypto/gc: Fix link error with --with-libgcrypt.
12714         * m4/gc.m4 (gl_GC): Set LIB_CRYPTO to the value found by the
12715         AC_LIB_HAVE_LINKFLAGS invocation.
12717 2019-08-24  Bruno Haible  <bruno@clisp.org>
12719         crypto/gc: Access the module indicators correctly.
12720         * lib/gc-gnulib.c: Use '#if GNULIB_GC_*', not '#ifdef GNULIB_GC_*'.
12721         * lib/gc-libgcrypt.c: Likewise.
12723 2019-08-24  Bruno Haible  <bruno@clisp.org>
12725         crypto/gc: Fix configuration with --with-libgcrypt.
12726         * m4/libgcrypt.m4: New file, copied from libgcrypt/src/libgcrypt.m4.
12727         * modules/crypto/gc (Files): Add it.
12728         * m4/gc.m4 (gl_GC): Assume AM_PATH_LIBGCRYPT is defined.
12730 2019-08-24  Bruno Haible  <bruno@clisp.org>
12732         Remove unused file.
12733         * m4/stat-macros.m4: Remove file.
12735 2019-08-21  Paul Eggert  <eggert@cs.ucla.edu>
12737         New strip-trailing-space option for srclist-update
12738         * config/srclist-update (fixfile): Support new option.
12739         * config/srclist.txt (texinfo.tex, maintain.texi, standards.texi):
12740         Use it.
12742 2019-08-20  Eric Blake  <eblake@redhat.com>
12744         accept4: Support SOCK_NONBLOCK, if defined
12745         * lib/accept4.c (accept4): If SOCK_NONBLOCK is defined, honor it.
12747         accept4: Fix compilation when native accept4() exists.
12748         Reported by Richard W.M. Jones <rjones@redhat.com> in
12749         https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00029.html
12750         * lib/accept4.c (accept4): Match witness symbol to m4 file update.
12752 2019-08-18  Bruno Haible  <bruno@clisp.org>
12754         Defeat -flto GCC optimization in math autoconf tests.
12755         Reported by Tomasz Kłoczko <kloczko.tomasz@gmail.com>
12756         at <https://savannah.gnu.org/bugs/?56109>.
12757         * m4/mathfunc.m4 (gl_MATHFUNC): Mark function pointer as 'volatile'.
12758         * m4/acosl.m4 (gl_FUNC_ACOSL): Likewise.
12759         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
12760         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
12761         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
12762         * m4/exp2.m4 (gl_FUNC_EXP2): Likewise.
12763         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
12764         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
12765         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
12766         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
12767         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
12768         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
12770 2019-08-17  Bruno Haible  <bruno@clisp.org>
12772         windows-spin: Implement declared functions.
12773         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
12774         <https://lists.gnu.org/archive/html/bug-gnulib/2019-08/msg00024.html>.
12775         * lib/windows-spin.c (glwthread_spin_trylock): Fix typo in function
12776         name.
12778 2019-08-17  Paul Eggert  <eggert@cs.ucla.edu>
12780         intprops: port to Oracle Developer Studio 12.6
12781         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix recently-introduced
12782         typos that were in a section not compiled by GCC.
12784 2019-08-14  Paul Eggert  <eggert@cs.ucla.edu>
12786         intprops: support uchar, ushort _WRAPV dests
12787         * lib/intprops.h (_GL_INT_OP_WRAPV_SMALLISH): New macro, defined
12788         when __builtin_add_overflow etc. and _Generic are not used.
12789         (_GL_INT_OP_WRAPV): Use it to support destinations that
12790         are unsigned char or unsigned short, even in compilers
12791         that lack __typeof__ and are not C11-compatible.
12793         intprops: pacify picky GCC
12794         * lib/intprops.h (_GL_BUILTIN_MUL_OVERFLOW):
12795         Pacify GCC’s complaints about ignoring __builtin_mul_overflow’s
12796         possibly-incorrect result.
12797         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): Pacify GCC’s complaints
12798         about (A) used as a boolean, when A is an expression like 3 * 4.
12800         intprops: support unsigned *_WRAPV results
12801         Add support for unsigned, unsigned long, and unsigned long long
12802         results to INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, and
12803         INT_MULTIPLY_WRAPV.  Also, work around GCC bug 91450, and fix a
12804         bug with unsigned inputs reported by Eli Zaretskii in:
12805         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00012.html
12806         * config/srclist.txt: Break the glibc connection for intprops.h
12807         temporarily, while more testing is done in Gnulib-using apps.
12808         * lib/intprops.h (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
12809         (INT_MULTIPLY_WRAPV, _GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH):
12810         Support unsigned results no narrower than unsigned int.  Report
12811         overflow correctly if some arguments are unsigned.
12812         (_GL_BUILTIN_MUL_OVERFLOW): New macro, to work around GCC bug 91450.
12813         (_GL_INT_OP_CALC): Simplify now that the OVERFLOW argument does
12814         the right thing with narrow args.
12815         (_GL_INT_OP_CALC1): Remove.  All callers removed.
12816         (_GL_INT_ADD_RANGE_OVERFLOW, _GL_INT_SUBTRACT_RANGE_OVERFLOW)
12817         (_GL_INT_MULTIPLY_RANGE_OVERFLOW): New macros.
12818         * tests/test-intprops.c: Check for bugs and test new behavior.
12820 2019-08-14  Bruno Haible  <bruno@clisp.org>
12822         get_progname_of: New module.
12823         * lib/get_progname_of.h: New file.
12824         * lib/get_progname_of.c: New file, based on lib/getprogname.c.
12825         * lib/getprogname.c (getprogname): Tweak coding style.
12826         * lib/vma-iter.c (vma_iterate_bsd): Update comment.
12827         * modules/get_progname_of: New file.
12829 2019-08-14  Bruno Haible  <bruno@clisp.org>
12831         get_ppid_of: New module.
12832         * lib/get_ppid_of.h: New file.
12833         * lib/get_ppid_of.c: New file.
12834         * modules/get_ppid_of: New file.
12836 2019-08-13  Bruno Haible  <bruno@clisp.org>
12838         libtextstyle-optional tests: Support the NO_COLOR environment variable.
12839         * tests/test-libtextstyle.c (main): Do not emit styling when the
12840         environment variable NO_COLOR is set.
12842 2019-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12844         verify: improve diagnostic quality in recent GCC
12845         If ‘verify’ fails in a deeply-nested macro, GCC does not output a
12846         useful line number containing the top-level caller of the macro.
12847         So, bring back the older way of issuing a diagnostic containing
12848         the top-level call’s arg, so that it is easier to diagnose
12849         ‘verify’ failures with recent GCC.
12850         * lib/verify.h (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE):
12851         Bring back DIAGNOSTIC arg.  All callers changed.
12852         (verify): Just use _GL_VERIFY.
12854 2019-08-11  Bruno Haible  <bruno@clisp.org>
12856         localcharset: Add more aliases for OS/2.
12857         Based on patch by KO Myung-Hun <komh78@gmail.com> in
12858         <https://lists.gnu.org/archive/html/bug-gnu-libiconv/2019-08/msg00004.html>.
12859         * lib/localcharset.c (alias_table) [OS2]: Add more aliases.
12861 2019-08-10  Eric Blake  <eblake@redhat.com>
12863         configmake: Update advice on usage.
12864         * modules/configmake (Include): No longer necessary to include
12865         last, since configmake.h itself worries about collision avoidance.
12867 2019-08-10  Assaf Gordon <assafgordon@gmail.com>
12869         parse-datetime: fix 'T' military timezone handling
12870         * lib/parse-datetime.y (zone):
12871         follow-up to the previous commit: the 'T' case is handled outside the
12872         conversion table (used as either military timezone UTC-7 or ISO8601
12873         separator). Change it from "HOUR(7)" to "-HOUR(7)" to match other
12874         timezone letters.
12876 2019-08-09  Paul Eggert  <eggert@cs.ucla.edu>
12878         parse-datetime: fix military timezone letters
12879         Problem and trivial fix reported by Neil Hoggarth in:
12880         https://lists.gnu.org/r/bug-gnulib/2019-08/msg00005.html
12881         * lib/parse-datetime.y (military_table):
12882         Do it the right way, not the RFC 822 way.
12884 2019-08-08  Eric Blake  <eblake@redhat.com>
12886         configmake: Avoid namespace pollution issue on mingw.
12887         * modules/configmake (Makefile.am): If the project uses
12888         <winsock2.h>, include that header before defining DATADIR.
12890 2019-07-28  Bruno Haible  <bruno@clisp.org>
12892         mbrtowc tests: Fix regression on mingw (regression from 2018-02-24).
12893         * tests/test-mbrtowc.c (main): Fix expected value of wc.
12895 2019-07-24  Bruno Haible  <bruno@clisp.org>
12897         pthread-h: Fix definitions of types and macros on mingw.
12898         * lib/pthread.in.h (pthread_t, pthread_attr_t, PTHREAD_CREATE_JOINABLE,
12899         PTHREAD_CREATE_DETACHED): Define also when module 'pthread-thread' is
12900         not in use.
12901         (pthread_once_t, PTHREAD_ONCE_INIT): Define also when module
12902         'pthread-once' is not in use.
12903         (pthread_mutex_t, pthread_mutexattr_t, PTHREAD_MUTEX_INITIALIZER,
12904         PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL, PTHREAD_MUTEX_ERRORCHECK,
12905         PTHREAD_MUTEX_RECURSIVE): Define also when module 'pthread-mutex' is not
12906         in use.
12907         (pthread_rwlock_t, pthread_rwlockattr_t, PTHREAD_RWLOCK_INITIALIZER):
12908         Define also when module 'pthread-rwlock' is not in use.
12909         (pthread_cond_t, pthread_condattr_t, PTHREAD_COND_INITIALIZER): Define
12910         also when module 'pthread-cond' is not in use.
12911         (pthread_key_t, PTHREAD_DESTRUCTOR_ITERATIONS): Define also when module
12912         'pthread-tss' is not in use.
12913         (pthread_spinlock_t): Define also when module 'pthread-spin' is not in
12914         use.
12916 2019-07-24  Simon Josefsson  <simon@josefsson.org>
12918         crypto/gc: Cope with libgcrypt without SM3.
12919         * lib/gc-libgcrypt.c (gc_hash_open): Guard SM3 usage.
12921 2019-07-23  Paul Eggert  <eggert@cs.ucla.edu>
12923         backupfile: fix resource leak on memory failure
12924         Problem found by Coverity (CID 1484214).
12925         * lib/backupfile.c (backupfile_internal): Don’t leak dirp.
12927 2019-07-22  Bruno Haible  <bruno@clisp.org>
12929         Avoid missing-declarations warning in various tests.
12930         * tests/test-argp.c (fail, test1, test2, test_file, test3, test4, test5,
12931         test6, test_optional, test7, test8, test9, test10, test11, test12,
12932         test13, test14, test15, test_fun): Declare static.
12933         * tests/test-cnd.c (test_cnd_wait): Likewise.
12934         * tests/test-cond.c (test_cond): Likewise.
12936 2019-07-22  Bernhard Voelker  <mail@bernhard-voelker.de>
12938         pthread tests: Avoid missing-declarations warning.
12939         * tests/test-pthread-cond.c (test_pthread_cond_wait): Declare static.
12941 2019-07-19  Bruno Haible  <bruno@clisp.org>
12943         parse-datetime: Avoid warnings from bison versions >= 3.3.
12944         Reported by Bernhard Voelker <mail@bernhard-voelker.de>.
12945         * modules/parse-datetime (Makefile.am): Don't pass option '-y' to bison.
12947 2019-07-19  Bruno Haible  <bruno@clisp.org>
12949         parse-datetime: Require Bison 2.4 or newer.
12950         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Set PARSE_DATETIME_BISON.
12951         Code taken from gettext's intl.m4.
12952         * modules/parse-datetime (Makefile.am): Use PARSE_DATETIME_BISON instead
12953         of YACC.
12955 2019-07-19  Bruno Haible  <bruno@clisp.org>
12957         areadlink-with-size, xgethostname, xgetdomainname: Fix GCC warning.
12958         * lib/areadlink-with-size.c: Include <string.h>.
12959         * lib/areadlinkat-with-size.c: Likewise.
12960         * lib/xgethostname.c: Likewise.
12961         * lib/xgetdomainname.c: Likewise.
12963 2019-07-19  Bernhard Voelker  <mail@bernhard-voelker.de>
12965         parse-datetime: avoid "%pure-parser" deprecation warning from Bison 3.4
12966         * lib/parse-datetime.y: Use "%define api.pure" rather than obsolescent
12967         "%pure-parser".  The former is available since Bison 2.3b (2008),
12968         while the latter is marked as obsolete since version 3.4 (May 2019).
12970 2019-07-16  Bruno Haible  <bruno@clisp.org>
12972         update-copyright: Make it work again (regression from 2019-06-15).
12973         Reported by Brian C. Lane <bcl@redhat.com>.
12974         * build-aux/update-copyright: Add back the -0777, -p, -i options.
12976 2019-07-14  Bruno Haible  <bruno@clisp.org>
12978         doc: Update info about <pthread.h>.
12979         * doc/posix-headers/pthread.texi: Mention the module 'pthread-h' instead
12980         of 'pthread'.
12982 2019-07-14  Bruno Haible  <bruno@clisp.org>
12984         pthread_sigmask tests: Use new multithread modules.
12985         * tests/test-pthread_sigmask2.c: Include <pthread.h> instead of
12986         glthread/thread.h.
12987         (main_thread, killer_thread): Change type to pthread_t.
12988         (main): Update accordingly.
12989         * modules/pthread_sigmask-tests (Depends-on): Add pthread-thread. Remove
12990         thread.
12992 2019-07-14  Bruno Haible  <bruno@clisp.org>
12994         pthread-tss: Add tests.
12995         * tests/test-pthread-tss.c: New file, based on tests/test-tls.c and
12996         tests/test-tss.c.
12997         * modules/pthread-tss-tests: New file.
12999 2019-07-14  Bruno Haible  <bruno@clisp.org>
13001         pthread-cond: Add tests.
13002         * tests/test-pthread-cond.c: New file, based on tests/test-cond.c and
13003         tests/test-cnd.c.
13004         * modules/pthread-cond-tests: New file.
13006 2019-07-14  Bruno Haible  <bruno@clisp.org>
13008         pthread-rwlock: Add tests.
13009         * tests/test-pthread-rwlock.c: New file, based on tests/test-lock.c.
13010         * modules/pthread-rwlock-tests: New file.
13012 2019-07-14  Bruno Haible  <bruno@clisp.org>
13014         pthread-mutex: Add tests.
13015         * tests/test-pthread-mutex.c: New file, based on tests/test-lock.c and
13016         tests/test-mtx.c.
13017         * modules/pthread-mutex-tests: New file.
13019 2019-07-14  Bruno Haible  <bruno@clisp.org>
13021         pthread-once: Add tests.
13022         * tests/test-pthread-once1.c: New file, based on tests/test-once.c and
13023         tests/test-call_once.c.
13024         * tests/test-pthread-once2.c: New file, based on tests/test-lock.c and
13025         tests/test-mtx.c.
13026         * modules/pthread-once-tests: New file.
13028 2019-07-14  Bruno Haible  <bruno@clisp.org>
13030         pthread-thread: Add tests.
13031         * tests/test-pthread-thread.c: New file, based on
13032         tests/test-thread_create.c and tests/test-thrd_create.c.
13033         * modules/pthread-thread-tests: New file.
13035 2019-07-14  Bruno Haible  <bruno@clisp.org>
13037         pthread: Turn into a convenience module.
13038         * lib/pthread.in.h: Remove declarations for extern inline functions.
13039         * lib/pthread.c: Remove file.
13040         * modules/pthread (Files): Remove it.
13041         (Depends-on): Add pthread-thread, pthread-once, pthread-mutex,
13042         pthread-rwlock, pthread-cond, pthread-tss, pthread-spin.
13043         (configure.ac): Don't compile lib/pthread.c. Don't set GNULIB_PTHREAD.
13044         * m4/pthread_h.m4 (gl_PTHREAD_H_DEFAULTS): Don't initialize
13045         GNULIB_PTHREAD.
13046         * modules/pthread-h (Makefile.am): Don't substitute GNULIB_PTHREAD.
13048 2019-07-14  Bruno Haible  <bruno@clisp.org>
13050         pthread-spin: New module.
13051         * lib/pthread.in.h (pthread_spin_init, pthread_spin_destroy,
13052         pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock): Remove
13053         inline definitions.
13054         * lib/pthread-spin.c: New file.
13055         * m4/pthread-spin.m4: New file.
13056         * modules/pthread-spin: New file.
13057         * doc/posix-functions/pthread_spin_init.texi: Mention the new module.
13058         * doc/posix-functions/pthread_spin_lock.texi: Likewise.
13059         * doc/posix-functions/pthread_spin_trylock.texi: Likewise.
13060         * doc/posix-functions/pthread_spin_unlock.texi: Likewise.
13061         * doc/posix-functions/pthread_spin_destroy.texi: Likewise.
13063 2019-07-14  Bruno Haible  <bruno@clisp.org>
13065         pthread-tss: New module.
13066         * lib/pthread-tss.c: New file.
13067         * m4/pthread-tss.m4: New file.
13068         * modules/pthread-tss: New file.
13069         * doc/posix-functions/pthread_key_create.texi: Mention the new module.
13070         * doc/posix-functions/pthread_setspecific.texi: Likewise.
13071         * doc/posix-functions/pthread_getspecific.texi: Likewise.
13072         * doc/posix-functions/pthread_key_delete.texi: Likewise.
13074 2019-07-14  Bruno Haible  <bruno@clisp.org>
13076         pthread-cond: New module.
13077         * lib/pthread.in.h (pthread_cond_destroy, pthread_cond_init,
13078         pthread_cond_signal, pthread_cond_wait): Remove inline definitions.
13079         * lib/pthread-cond.c: New file.
13080         * m4/pthread-cond.m4: New file.
13081         * modules/pthread-cond: New file.
13082         * doc/posix-functions/pthread_cond_init.texi: Mention the new module.
13083         * doc/posix-functions/pthread_condattr_init.texi: Likewise.
13084         * doc/posix-functions/pthread_condattr_destroy.texi: Likewise.
13085         * doc/posix-functions/pthread_cond_wait.texi: Likewise.
13086         * doc/posix-functions/pthread_cond_timedwait.texi: Likewise.
13087         * doc/posix-functions/pthread_cond_signal.texi: Likewise.
13088         * doc/posix-functions/pthread_cond_broadcast.texi: Likewise.
13089         * doc/posix-functions/pthread_cond_destroy.texi: Likewise.
13091 2019-07-14  Bruno Haible  <bruno@clisp.org>
13093         pthread-rwlock: New module.
13094         * lib/pthread-rwlock.c: New file, based on lib/glthread/lock.c.
13095         * m4/pthread-rwlock.m4: New file.
13096         * modules/pthread-rwlock: New file.
13097         * doc/posix-functions/pthread_rwlock_init.texi: Mention the new module
13098         and the Android problem.
13099         * doc/posix-functions/pthread_rwlockattr_init.texi: Likewise.
13100         * doc/posix-functions/pthread_rwlockattr_destroy.texi: Likewise.
13101         * doc/posix-functions/pthread_rwlock_rdlock.texi: Likewise.
13102         * doc/posix-functions/pthread_rwlock_wrlock.texi: Likewise.
13103         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likewise.
13104         * doc/posix-functions/pthread_rwlock_trywrlock.texi: Likewise.
13105         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
13106         * doc/posix-functions/pthread_rwlock_timedwrlock.texi: Likewise.
13107         * doc/posix-functions/pthread_rwlock_unlock.texi: Likewise.
13108         * doc/posix-functions/pthread_rwlock_destroy.texi: Likewise.
13110 2019-07-14  Bruno Haible  <bruno@clisp.org>
13112         pthread-mutex: New module.
13113         * lib/pthread.in.h (pthread_mutexattr_destroy, pthread_mutexattr_init,
13114         pthread_mutexattr_settype, pthread_mutex_destroy, pthread_mutex_init,
13115         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_timedlock,
13116         pthread_mutex_unlock): Remove inline definitions.
13117         * lib/pthread-mutex.c: New file.
13118         * m4/pthread-mutex.m4: New file.
13119         * modules/pthread-mutex: New file.
13120         * doc/posix-functions/pthread_mutex_init.texi: Mention the new module.
13121         * doc/posix-functions/pthread_mutexattr_init.texi: Likewise.
13122         * doc/posix-functions/pthread_mutexattr_gettype.texi: Likewise.
13123         * doc/posix-functions/pthread_mutexattr_settype.texi: Likewise.
13124         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
13125         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
13126         * doc/posix-functions/pthread_mutexattr_destroy.texi: Likewise.
13127         * doc/posix-functions/pthread_mutex_lock.texi: Likewise.
13128         * doc/posix-functions/pthread_mutex_trylock.texi: Likewise.
13129         * doc/posix-functions/pthread_mutex_timedlock.texi: Likewise.
13130         * doc/posix-functions/pthread_mutex_unlock.texi: Likewise.
13131         * doc/posix-functions/pthread_mutex_destroy.texi: Likewise.
13133 2019-07-14  Bruno Haible  <bruno@clisp.org>
13135         pthread-once: New module.
13136         * lib/pthread-once.c: New file.
13137         * m4/pthread-once.m4: New file.
13138         * modules/pthread-once: New file.
13139         * doc/posix-functions/pthread_once.texi: Mention the new module.
13141 2019-07-14  Bruno Haible  <bruno@clisp.org>
13143         pthread-thread: New module.
13144         * lib/pthread.in.h (pthread_create, pthread_exit, pthread_join): Remove
13145         inline definitions.
13146         * lib/pthread-thread.c: New file.
13147         * m4/pthread-thread.m4: New file.
13148         * modules/pthread-thread: New file.
13149         * doc/posix-functions/pthread_create.texi: Mention the new module.
13150         * doc/posix-functions/pthread_attr_init.texi: Likewise.
13151         * doc/posix-functions/pthread_attr_getdetachstate.texi: Likewise.
13152         * doc/posix-functions/pthread_attr_setdetachstate.texi: Likewise.
13153         * doc/posix-functions/pthread_attr_destroy.texi: Likewise.
13154         * doc/posix-functions/pthread_self.texi: Likewise.
13155         * doc/posix-functions/pthread_equal.texi: Likewise.
13156         * doc/posix-functions/pthread_detach.texi: Likewise.
13157         * doc/posix-functions/pthread_join.texi: Likewise.
13158         * doc/posix-functions/pthread_exit.texi: Likewise.
13160 2019-07-14  Bruno Haible  <bruno@clisp.org>
13162         pthread-h: Prepare for adding new modules.
13163         * lib/pthread.in.h: Define the types and macros for each of the
13164         facilities separately.
13165         * m4/pthread_h.m4 (gl_PTHREAD_H): Set HAVE_PTHREAD_CREATE_DETACHED,
13166         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13167         HAVE_PTHREAD_PROCESS_SHARED.
13168         (gl_PTHREAD_H_DEFAULTS): Initialize HAVE_PTHREAD_CREATE_DETACHED,
13169         HAVE_PTHREAD_MUTEX_RECURSIVE, HAVE_PTHREAD_MUTEX_ROBUST,
13170         HAVE_PTHREAD_PROCESS_SHARED.
13171         * modules/pthread-h (Makefile.am): Substitute
13172         HAVE_PTHREAD_CREATE_DETACHED, HAVE_PTHREAD_MUTEX_RECURSIVE,
13173         HAVE_PTHREAD_MUTEX_ROBUST, HAVE_PTHREAD_PROCESS_SHARED.
13175 2019-07-14  Bruno Haible  <bruno@clisp.org>
13177         pthread-h: Add declarations of essential pthread functions.
13178         * lib/pthread.in.h: Include snippets.
13179         (pthread_create, pthread_attr_init, pthread_attr_getdetachstate,
13180         pthread_attr_setdetachstate, pthread_attr_destroy, pthread_self,
13181         pthread_equal, pthread_detach, pthread_join, pthread_exit, pthread_once,
13182         pthread_mutex_init, pthread_mutexattr_init, pthread_mutexattr_gettype,
13183         pthread_mutexattr_settype, pthread_mutexattr_getrobust,
13184         pthread_mutexattr_setrobust, pthread_mutexattr_destroy,
13185         pthread_mutex_lock, pthread_mutex_trylock, pthread_mutex_unlock,
13186         pthread_mutex_destroy, pthread_rwlock_init, pthread_rwlockattr_init,
13187         pthread_rwlockattr_destroy, pthread_rwlock_rdlock,
13188         pthread_rwlock_wrlock, pthread_rwlock_tryrdlock,
13189         pthread_rwlock_trywrlock, pthread_rwlock_timedrdlock,
13190         pthread_rwlock_timedwrlock, pthread_rwlock_unlock,
13191         pthread_rwlock_destroy, pthread_cond_init, pthread_condattr_init,
13192         pthread_condattr_destroy, pthread_cond_wait, pthread_cond_timedwait,
13193         pthread_cond_signal, pthread_cond_broadcast, pthread_cond_destroy,
13194         pthread_key_create, pthread_setspecific, pthread_getspecific,
13195         pthread_key_delete, pthread_spin_init, pthread_spin_lock,
13196         pthread_spin_trylock, pthread_spin_unlock, pthread_spin_destroy): New
13197         declarations.
13198         (pthread_mutex_timedlock): Move declaration.
13199         * m4/pthread_h.m4 (gl_PTHREAD_H): Check whether the new functions are
13200         declared.
13201         (gl_PTHREAD_H_DEFAULTS): Initialize GNULIB_PTHREAD_THREAD,
13202         GNULIB_PTHREAD_ONCE, GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK,
13203         GNULIB_PTHREAD_COND, GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the
13204         HAVE_* and REPLACE_* variables for the new functions.
13205         * modules/pthread-h (Depends-on): Add snippet/c++defs,
13206         snippet/_Noreturn, snippet/arg-nonnull, snippet/warn-on-use.
13207         (Makefile.am): Substitute GNULIB_PTHREAD_THREAD, GNULIB_PTHREAD_ONCE,
13208         GNULIB_PTHREAD_MUTEX, GNULIB_PTHREAD_RWLOCK, GNULIB_PTHREAD_COND,
13209         GNULIB_PTHREAD_TSS, GNULIB_PTHREAD_SPIN and the HAVE_* and REPLACE_*
13210         variables for the new functions. Split the sed script, to avoid the
13211         limit of 99 commands of HP-UX sed.
13212         * tests/test-pthread-c++.cc: Check the signature of the new functions.
13214 2019-07-14  Bruno Haible  <bruno@clisp.org>
13216         pthread-h: Respect --enable-threads={posix|windows} option on mingw.
13217         * m4/pthread_h.m4 (gl_PTHREAD_H): Require gl_THREADLIB. Set
13218         HAVE_PTHREAD_H if gl_threads_api is 'windows'.
13219         (LIB_PTHREAD): Rely on $LIBMULTITHREAD from threadlib.m4.
13220         * modules/pthread (Link): Change to $(LIBMULTITHREAD).
13221         * modules/pthread-h (Depends-on): Add threadlib.
13222         (Link): Change to $(LIBTHREAD).
13223         * modules/pthread-h-c++-tests (test_pthread_c___LDADD): Use
13224         $(LIBMULTITHREAD) instead of $(LIB_PTHREAD).
13226 2019-07-14  Bruno Haible  <bruno@clisp.org>
13228         pthread-h: Add C++ tests.
13229         * tests/test-pthread-c++.cc: New file.
13230         * modules/pthread-h-c++-tests: New file.
13232 2019-07-14  Bruno Haible  <bruno@clisp.org>
13234         pthread-h: Add tests.
13235         * tests/test-pthread.c: New file.
13236         * modules/pthread-h-tests: New file.
13238 2019-07-14  Bruno Haible  <bruno@clisp.org>
13240         pthread-h: New module.
13241         * lib/pthread.in.h: Define replacement functions only if GNULIB_PTHREAD
13242         is 1.
13243         * m4/pthread_h.m4: Renamed from m4/pthread.m4.
13244         (gl_PTHREAD_H): Renamed from gl_PTHREAD_CHECK. Don't test whether
13245         <pthread.h> pollutes the namespace; instead, prepare for generating a
13246         pthread.h always. Substitute HAVE_PTHREAD_H here.
13247         (gl_PTHREAD_H_DEFAULTS): Renamed from gl_PTHREAD_DEFAULTS. Initialize
13248         GNULIB_PTHREAD. Don't initialize HAVE_PTHREAD_H here.
13249         * modules/pthread-h: New file, based on modules/pthread.
13250         * modules/pthread: Rely on 'pthread-h'.
13251         * m4/pthread_mutex_timedlock.m4 (gl_FUNC_PTHREAD_MUTEX_TIMEDLOCK):
13252         Update.
13253         * modules/pthread_mutex_timedlock (Depends-on): Add pthread-h. Remove
13254         pthread.
13256 2019-07-14  Bruno Haible  <bruno@clisp.org>
13258         sched_yield: New module.
13259         * lib/sched.in.h: Add _GL_FUNCDECL_RPL, _GL_WARN_ON_USE placeholders.
13260         (sched_yield): New declaration.
13261         * lib/sched_yield.c: New file.
13262         * m4/sched_yield.m4: New file.
13263         * m4/sched_h.m4 (gl_SCHED_H): Require gl_SCHED_H_DEFAULTS. Arrange to
13264         provide a replacement sched.h always. Test whether sched_yield is
13265         declared.
13266         (gl_SCHED_MODULE_INDICATOR, gl_SCHED_H_DEFAULTS): New macros.
13267         * modules/sched (Depends-on): Add snippet/c++defs, snippet/warn-on-use.
13268         (Makefile.am): Provide a replacement sched.h always. Substitute
13269         GNULIB_SCHED_YIELD, HAVE_SCHED_YIELD, REPLACE_SCHED_YIELD,
13270         _GL_FUNCDECL_RPL, _GL_WARN_ON_USE.
13271         * modules/sched_yield: New file.
13272         * doc/posix-functions/sched_yield.texi: Mention the new module.
13274 2019-07-14  Bruno Haible  <bruno@clisp.org>
13276         windows-spin: New module.
13277         * lib/windows-spin.h: New file.
13278         * lib/windows-spin.c: New file.
13279         * modules/windows-spin: New file.
13281 2019-07-14  Bruno Haible  <bruno@clisp.org>
13283         windows-timedrwlock: New module.
13284         * lib/windows-timedrwlock.h: New file, based on windows-rwlock.h.
13285         * lib/windows-timedrwlock.c: New file, based on windows-rwlock.c and
13286         windows-cond.c.
13287         * lib/windows-cond.h (struct glwthread_waitqueue_link): Protect against
13288         redefinition conflict with windows-timedrwlock.h.
13289         * modules/windows-timedrwlock: New file.
13291 2019-07-14  Bruno Haible  <bruno@clisp.org>
13293         windows-rwlock: New module.
13294         * lib/windows-rwlock.h: New file, extracted from lib/glthread/lock.h.
13295         * lib/windows-rwlock.c: New file, extracted from lib/glthread/lock.c.
13296         * lib/glthread/lock.h: Include windows-rwlock.h. Don't include
13297         windows-initguard.h.
13298         (gl_rwlock_t): Define using glwthread_rwlock_t.
13299         (gl_rwlock_initializer): Define using GLWTHREAD_RWLOCK_INIT.
13300         (glthread_rwlock_init): Define using glwthread_rwlock_init.
13301         (glthread_rwlock_rdlock): Define using glwthread_rwlock_rdlock.
13302         (glthread_rwlock_wrlock): Define using glwthread_rwlock_wrlock.
13303         (glthread_rwlock_unlock): Define using glwthread_rwlock_unlock.
13304         (glthread_rwlock_destroy): Define using glwthread_rwlock_destroy.
13305         (glthread_rwlock_init_func, glthread_rwlock_rdlock_func,
13306         glthread_rwlock_wrlock_func, glthread_rwlock_unlock_func,
13307         glthread_rwlock_destroy_func): Remove declarations.
13308         * lib/glthread/lock.c (gl_waitqueue_t): Remove type.
13309         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_notify_first,
13310         gl_waitqueue_notify_all, glthread_rwlock_init_func,
13311         glthread_rwlock_rdlock_func, glthread_rwlock_wrlock_func,
13312         glthread_rwlock_unlock_func, glthread_rwlock_destroy_func): Remove
13313         functions.
13314         * modules/windows-rwlock: New file.
13315         * modules/lock (Depends-on): Add windows-rwlock.
13317 2019-07-14  Bruno Haible  <bruno@clisp.org>
13319         windows-thread: Add support for creating a thread in detached state.
13320         * lib/windows-thread.h (GLWTHREAD_ATTR_DETACHED): New macro.
13321         (glwthread_thread_create): Add attr argument.
13322         * lib/windows-thread.c (glwthread_thread_create): Likewise.
13323         * lib/glthread/thread.h (glthread_create): Update.
13324         * lib/thrd.c (thrd_create): Update.
13326 2019-07-14  Bruno Haible  <bruno@clisp.org>
13328         windows-*: Rename glwthread_spinlock_t to glwthread_initguard_t.
13329         * lib/windows-initguard.h: Renamed from lib/windows-spinlock.h.
13330         (glwthread_initguard_t): Renamed from glwthread_spinlock_t.
13331         (GLWTHREAD_INITGUARD_INIT): Renamed from GLWTHREAD_SPINLOCK_INIT.
13332         * lib/windows-mutex.h: Update.
13333         * lib/windows-recmutex.h: Likewise.
13334         * lib/windows-timedmutex.h: Likewise.
13335         * lib/windows-timedrecmutex.h: Likewise.
13336         * lib/windows-cond.h: Likewise.
13337         * lib/glthread/lock.h: Likewise.
13338         * modules/windows-mutex (Files): Add lib/windows-initguard.h. Remove
13339         lib/windows-spinlock.h.
13340         * modules/windows-recmutex (Files): Likewise.
13341         * modules/windows-timedmutex (Files): Likewise.
13342         * modules/windows-timedrecmutex (Files): Likewise.
13343         * modules/windows-cond (Files): Likewise.
13344         * modules/threads-h (Files): Likewise.
13346 2019-07-14  Bruno Haible  <bruno@clisp.org>
13348         doc: Fix info about pthread API in HP-UX.
13349         * doc/posix-functions/pthread_*.texi: Fix info about HP-UX 11.
13351 2019-07-14  Bruno Haible  <bruno@clisp.org>
13353         threads-h: Fix generation of threads.h.
13354         * modules/threads-h (Makefile.am): Insert the required header file
13355         snippets.
13357 2019-07-09  Bruno Haible  <bruno@clisp.org>
13359         striconveh test: Fix a compilation failure when iconv is not available.
13360         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13361         * tests/test-striconveh.c (main): Move iconv_close invocations inside
13362         HAVE_ICONV.
13364 2019-07-07  Akim Demaille  <akim@lrde.epita.fr>
13366         argmatch: adjust columns for help2man.
13367         * lib/argmatch.h (argmatch_##Name##_doc_col): If some argument
13368         requires column 20 or more, return 20.
13370 2019-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13372         areadlink-with-size: avoid realloc when size==0
13373         * lib/areadlink-with-size.c (areadlink_with_size):
13374         * lib/areadlinkat-with-size.c (areadlinkat_with_size):
13375         Reallocate at the end to the actual size, to avoid memory waste,
13376         as suggested by Bruno Haible.  But when the guessed size is zero -
13377         useful when the size is unknown - do the initial small readlink
13378         into the stack, to avoid that realloc in the usual case.
13380 2019-07-06  Pádraig Brady  <P@draigBrady.com>
13382         areadlink-with-size: guess a buffer size with 0 size
13383         The size is usually taken from st_size, which can be zero,
13384         resulting in inefficient operation.
13385         Instead let zero select an initial memory allocation
13386         of 128 bytes, which most symlinks fit within.
13387         * lib/areadlink-with-size.c (areadlink_with_size):
13388         Start with a 128 byte buffer, for SIZE == 0.
13389         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Likewise.
13391 2019-07-06  Konstantin Kharlamov  <Hi-Angel@yandex.ru>
13393         Replace manually crafted hex regexes with [:xdigit:]
13394         * build-aux/gitlog-to-changelog (parse_amend_file)
13395         (git_dir_option):
13396         Replace various combinations of [0-9a-fA-F] with [[:xdigit:]].
13397         This patch is backported from Emacs (Bug#36167).
13399 2019-07-06  Bruno Haible  <bruno@clisp.org>
13401         error: Fix documentation.
13402         * doc/glibc-functions/error_at_line.texi: Document what the 'error'
13403         module provides.
13404         * doc/glibc-functions/error_message_count.texi: Likewise.
13405         * doc/glibc-functions/error_one_per_line.texi: Likewise.
13406         * doc/glibc-functions/error_print_progname.texi: Likewise.
13408 2019-07-06  Bruno Haible  <bruno@clisp.org>
13410         doc: Remove documentation of glibc <= 2.1.x as a supported platform.
13411         * doc/gnulib-intro.texi (Target Platforms): Mention that glibc 2.1.x
13412         and older is unsupported.
13413         * doc/**/*.texi: Update.
13415 2019-07-06  Bruno Haible  <bruno@clisp.org>
13417         doc: Remove documentation of Linux libc5 as a supported platform.
13418         * doc/posix-functions/iswalnum.texi: Don't mention workarounds specific
13419         to Linux libc5.
13420         * doc/posix-functions/iswalpha.texi: Likewise.
13421         * doc/posix-functions/iswblank.texi: Likewise.
13422         * doc/posix-functions/iswcntrl.texi: Likewise.
13423         * doc/posix-functions/iswdigit.texi: Likewise.
13424         * doc/posix-functions/iswgraph.texi: Likewise.
13425         * doc/posix-functions/iswlower.texi: Likewise.
13426         * doc/posix-functions/iswprint.texi: Likewise.
13427         * doc/posix-functions/iswpunct.texi: Likewise.
13428         * doc/posix-functions/iswspace.texi: Likewise.
13429         * doc/posix-functions/iswupper.texi: Likewise.
13430         * doc/posix-functions/iswxdigit.texi: Likewise.
13431         * doc/posix-functions/snprintf.texi: Likewise.
13432         * doc/posix-functions/vsnprintf.texi: Likewise.
13434 2019-07-06  Bruno Haible  <bruno@clisp.org>
13436         doc: Remove documentation of Tandem/NSK as a supported platform.
13437         * doc/posix-headers/stdlib.texi: Don't mention workarounds specific to
13438         Tandem/NSK.
13439         * doc/**/*.texi: Update.
13441 2019-07-06  Bruno Haible  <bruno@clisp.org>
13443         doc: Remove documentation of Mac OS X <= 10.4 as a supported platform.
13444         * doc/gnulib-intro.texi (Target Platforms): Mention that Mac OS X 10.4
13445         and older is unsupported.
13446         * doc/posix-functions/acosl.texi: Don't mention workarounds specific to
13447         Mac OS X 10.4 and older.
13448         * doc/posix-functions/asinl.texi: Likewise.
13449         * doc/posix-functions/atanl.texi: Likewise.
13450         * doc/posix-functions/cosl.texi: Likewise.
13451         * doc/posix-functions/expl.texi: Likewise.
13452         * doc/posix-functions/frexpl.texi: Likewise.
13453         * doc/posix-functions/gettimeofday.texi: Likewise.
13454         * doc/posix-functions/logl.texi: Likewise.
13455         * doc/posix-functions/mkstemp.texi: Likewise.
13456         * doc/posix-functions/sinl.texi: Likewise.
13457         * doc/posix-functions/sqrtl.texi: Likewise.
13458         * doc/posix-functions/tanl.texi: Likewise.
13459         * doc/posix-functions/wcswidth.texi: Likewise.
13460         * doc/**/*.texi: Update.
13462 2019-07-06  Bruno Haible  <bruno@clisp.org>
13464         doc: Remove documentation of AIX 4 as a supported platform.
13465         * doc/gnulib-intro.texi (Target Platforms): Mention that AIX 4 is
13466         unsupported.
13467         * doc/posix-functions/nanosleep.texi: Don't mention AIX 4 specific
13468         workarounds.
13469         * doc/posix-functions/strnlen.texi: Likewise.
13470         * doc/posix-headers/inttypes.texi: Likewise.
13471         * doc/**/*.texi: Update.
13473 2019-07-06  Bruno Haible  <bruno@clisp.org>
13475         doc: Remove documentation of HP-UX 10 as a supported platform.
13476         * doc/gnulib-intro.texi (Target Platforms): Mention that HP-UX 10 is
13477         unsupported.
13478         * doc/*-functions/*printf.texi: Don't mention HP-UX 10 specific
13479         workarounds.
13480         * doc/posix-functions/gmtime_r.texi: Likewise.
13481         * doc/posix-functions/localtime_r.texi: Likewise.
13482         * doc/posix-functions/mkstemp.texi: Likewise.
13483         * doc/**/*.texi: Update.
13485 2019-07-06  Bruno Haible  <bruno@clisp.org>
13487         doc: Remove documentation of Interix 3.5 as a supported platform.
13488         * doc/gnulib-intro.texi (Target Platforms): Mention that Interix is
13489         unsupported.
13490         * doc/posix-functions/select.texi: Don't mention Interix specific
13491         workarounds.
13492         * doc/posix-headers/signal.texi: Likewise.
13493         * doc/**/*.texi: Update.
13495 2019-07-06  Bruno Haible  <bruno@clisp.org>
13497         doc: Remove documentation of IRIX 6.4 and older as supported platforms.
13498         * doc/gnulib-intro.texi (Target Platforms): Mention that IRIX <= 6.4 is
13499         unsupported.
13500         * doc/pastposix-functions/usleep.texi: Don't mention IRIX specific
13501         workarounds.
13502         * doc/posix-functions/nl_langinfo.texi: Likewise.
13503         * doc/posix-functions/remainder.texi: Likewise.
13504         * doc/posix-functions/towlower.texi: Likewise.
13505         * doc/posix-functions/towupper.texi: Likewise.
13506         * doc/posix-functions/vsnprintf.texi: Likewise.
13507         * doc/posix-functions/wcscat.texi: Likewise.
13508         * doc/posix-functions/wcschr.texi: Likewise.
13509         * doc/posix-functions/wcscmp.texi: Likewise.
13510         * doc/posix-functions/wcscpy.texi: Likewise.
13511         * doc/posix-functions/wcscspn.texi: Likewise.
13512         * doc/posix-functions/wcslen.texi: Likewise.
13513         * doc/posix-functions/wcsncat.texi: Likewise.
13514         * doc/posix-functions/wcsncmp.texi: Likewise.
13515         * doc/posix-functions/wcsncpy.texi: Likewise.
13516         * doc/posix-functions/wcspbrk.texi: Likewise.
13517         * doc/posix-functions/wcsrchr.texi: Likewise.
13518         * doc/posix-functions/wcsspn.texi: Likewise.
13519         * doc/posix-headers/langinfo.texi: Likewise.
13520         * doc/posix-headers/signal.texi: Likewise.
13521         * doc/posix-headers/wchar.texi: Likewise.
13522         * doc/posix-headers/wctype.texi: Likewise.
13523         * doc/**/*.texi: Update.
13525 2019-07-05  Bruno Haible  <bruno@clisp.org>
13527         doc: Remove documentation of OSF/1 as supported platform.
13528         * doc/gnulib-intro.texi (Target Platforms): Mention that OSF/1 is
13529         unsupported.
13530         * doc/glibc-functions/getdomainname.texi: Don't mention OSF/1 specific
13531         workarounds.
13532         * doc/glibc-functions/pthread_setname_np.texi: Likewise.
13533         * doc/glibc-functions/ptsname_r.texi: Likewise.
13534         * doc/posix-functions/ceil.texi: Likewise.
13535         * doc/posix-functions/ceilf.texi: Likewise.
13536         * doc/posix-functions/ceill.texi: Likewise.
13537         * doc/posix-functions/fchdir.texi: Likewise.
13538         * doc/posix-functions/floor.texi: Likewise.
13539         * doc/posix-functions/floorf.texi: Likewise.
13540         * doc/posix-functions/fmod.texi: Likewise.
13541         * doc/posix-functions/fmodf.texi: Likewise.
13542         * doc/posix-functions/fmodl.texi: Likewise.
13543         * doc/posix-functions/log.texi: Likewise.
13544         * doc/posix-functions/logf.texi: Likewise.
13545         * doc/posix-functions/logl.texi: Likewise.
13546         * doc/posix-functions/log10.texi: Likewise.
13547         * doc/posix-functions/log10f.texi: Likewise.
13548         * doc/posix-functions/log10l.texi: Likewise.
13549         * doc/posix-functions/log2.texi: Likewise.
13550         * doc/posix-functions/log2f.texi: Likewise.
13551         * doc/posix-functions/log2l.texi: Likewise.
13552         * doc/posix-functions/mbrtowc.texi: Likewise.
13553         * doc/posix-functions/recv.texi: Likewise.
13554         * doc/posix-functions/recvfrom.texi: Likewise.
13555         * doc/posix-functions/remainder.texi: Likewise.
13556         * doc/posix-functions/remainderf.texi: Likewise.
13557         * doc/posix-functions/remainderl.texi: Likewise.
13558         * doc/posix-functions/round.texi: Likewise.
13559         * doc/posix-functions/roundf.texi: Likewise.
13560         * doc/posix-functions/roundl.texi: Likewise.
13561         * doc/posix-functions/send.texi: Likewise.
13562         * doc/posix-functions/sendto.texi: Likewise.
13563         * doc/posix-functions/setenv.texi: Likewise.
13564         * doc/posix-functions/snprintf.texi: Likewise.
13565         * doc/posix-functions/tcgetsid.texi: Likewise.
13566         * doc/posix-functions/trunc.texi: Likewise.
13567         * doc/posix-functions/truncf.texi: Likewise.
13568         * doc/posix-functions/truncl.texi: Likewise.
13569         * doc/posix-functions/ttyname_r.texi: Likewise.
13570         * doc/posix-functions/unsetenv.texi: Likewise.
13571         * doc/posix-functions/wcsrtombs.texi: Likewise.
13572         * doc/posix-headers/sys_select.texi: Likewise.
13573         * doc/posix-headers/wchar.texi: Likewise.
13574         * doc/posix-headers/wctype.texi: Likewise.
13575         * doc/**/*.texi: Update.
13577 2019-07-05  Bruno Haible  <bruno@clisp.org>
13579         doc: Remove documentation of BSDI and BSD/OS as supported platforms.
13580         * doc/**/*.texi: Update.
13582 2019-07-05  Bruno Haible  <bruno@clisp.org>
13584         doc: Remove documentation of Solaris 8 and older as supported platforms.
13585         * doc/gnulib-intro.texi (Target Platforms): Mention that Solaris <= 8 is
13586         unsupported.
13587         * doc/posix-functions/mbrtowc.texi: Don't mention Solaris specific
13588         workarounds.
13589         * doc/posix-functions/memcmp.texi: Likewise.
13590         * doc/posix-functions/rename.texi: Likewise.
13591         * doc/posix-functions/tzset.texi: Likewise.
13592         * doc/posix-headers/wctype.texi: Likewise.
13593         * doc/**/*.texi: Update.
13595 2019-07-05  Bruno Haible  <bruno@clisp.org>
13597         doc: Remove documentation of Interix 3.5 as a supported platform.
13598         * doc/**/*.texi: Update.
13600 2019-07-05  Bruno Haible  <bruno@clisp.org>
13602         doc: Remove documentation of BeOS as a supported platform.
13603         * doc/gnulib-intro.texi (Target Platforms): Mention that BeOS is
13604         unsupported.
13605         * doc/*-functions/*printf.texi: Don't mention BeOS specific workarounds.
13606         * doc/posix-functions/getdelim.texi: Likewise.
13607         * doc/**/*.texi: Update.
13609 2019-07-05  Bruno Haible  <bruno@clisp.org>
13611         thread, lock, cond, tls: Remove support for Pth threads.
13612         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13613         --enable-threads=pth any more.
13614         (gl_THREADLIB_BODY): Don't set USE_PTH_THREADS any more.
13615         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Update comment.
13616         * m4/threads.m4 (gl_THREADS_H): Remove test for conflict between Pth
13617         threads and ISO C11 threads.
13618         * lib/glthread/thread.h: Remove code for USE_PTH_THREADS.
13619         * lib/glthread/lock.h: Likewise.
13620         * lib/glthread/lock.c: Likewise.
13621         * lib/glthread/cond.h: Likewise.
13622         * lib/glthread/cond.c: Likewise.
13623         * lib/glthread/tls.h: Likewise.
13624         * lib/glthread/tls.c: Likewise.
13625         * lib/glthread/yield.h: Likewise.
13626         * lib/regex_internal.h: Likewise.
13627         * tests/test-thread_create.c: Likewise.
13628         * tests/test-lock.c: Likewise.
13629         * tests/test-cond.c: Likewise.
13630         * tests/test-tls.c: Likewise.
13631         * tests/test-rwlock1.c: Don't include glthread/yield.h.
13632         (main): Sleep without calling gl_thread_yield.
13634 2019-07-05  Bruno Haible  <bruno@clisp.org>
13636         thread, lock, cond, tls: Remove support for old Solaris threads.
13637         Solaris >= 2.5.1 has POSIX threads.
13638         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Don't document
13639         --enable-threads=solaris any more.
13640         (gl_THREADLIB_BODY): Don't set USE_SOLARIS_THREADS any more.
13641         * lib/glthread/thread.c: Update comment.
13642         * lib/glthread/thread.h: Remove code for USE_SOLARIS_THREADS.
13643         * lib/glthread/lock.h: Likewise.
13644         * lib/glthread/lock.c: Likewise.
13645         * lib/glthread/cond.h: Likewise.
13646         * lib/glthread/cond.c: Likewise.
13647         * lib/glthread/tls.h: Likewise.
13648         * lib/glthread/tls.c: Likewise.
13649         * lib/glthread/yield.h: Likewise.
13650         * lib/regex_internal.h: Likewise.
13651         * tests/test-thread_create.c: Likewise.
13652         * tests/test-lock.c: Likewise.
13653         * tests/test-cond.c: Likewise.
13654         * tests/test-tls.c: Likewise.
13656 2019-07-05  Bruno Haible  <bruno@clisp.org>
13658         getcwd-lgpl, getcwd: Don't call realloc when it is pointless.
13659         * lib/getcwd-lgpl.c (rpl_getcwd): Don't call realloc if the result's
13660         needed size is equal to the allocated size.
13661         * lib/getcwd.c (__getcwd): Likewise.
13663 2019-07-05  Bruno Haible  <bruno@clisp.org>
13665         xgetdomainname: Don't return an excessive memory allocation.
13666         * lib/xgetdomainname.c (xgetdomainname): Shrink the domainname buffer
13667         before returning it.
13669 2019-07-05  Bruno Haible  <bruno@clisp.org>
13671         xgethostname: Don't return an excessive memory allocation.
13672         * lib/xgethostname.c (xgethostname): Shrink the hostname buffer before
13673         returning it.
13675 2019-07-05  Bruno Haible  <bruno@clisp.org>
13677         areadlinkat-with-size: Don't return an excessive memory allocation.
13678         * lib/areadlinkat-with-size.c (areadlinkat_with_size): Shrink the buffer
13679         before returning it.
13681 2019-07-05  Bruno Haible  <bruno@clisp.org>
13683         areadlink-with-size: Don't return an excessive memory allocation.
13684         Reported by Andreas Dilger <adilger@whamcloud.com>.
13685         * lib/areadlink-with-size.c (areadlink_with_size): Shrink the buffer
13686         before returning it.
13688 2019-07-03  Bruno Haible  <bruno@clisp.org>
13690         renameatu: Fix test failure on MSVC.
13691         * lib/at-func2.c (at_func2): Fail with ENOENT if file1 or file2 is the
13692         empty string.
13694 2019-07-03  Bruno Haible  <bruno@clisp.org>
13696         mbrtowc: Fix invalid use of mbtowc() on MSVC.
13697         * lib/mbrtowc.c: Include glthread/lock.h.
13698         (mbtowc_lock): New variable.
13699         (mbrtowc): Treat UTF-8 encoding without locking. For the other
13700         encodings, explicitly reset the internal state of mbtowc, and protect
13701         this through a lock.
13702         * modules/mbrtowc (Depends-on): Add lock.
13704 2019-07-03  Akim Demaille  <akim@lrde.epita.fr>
13706         argmatch: don't define _ in the header.
13707         Reported by Jim Meyering.
13708         * lib/argmatch.h (N_, _): Don't define.
13709         Use gettext instead.
13710         * lib/argmatch.h (_): Define.
13711         * tests/test-argmatch.c (N_): Define.
13713 2019-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13715         verify: document ‘assume’ better
13716         * lib/verify.h: Reword doc (Bug#36370).
13718 2019-07-02  Bruno Haible  <bruno@clisp.org>
13720         localcharset, nl_langinfo: Fix return value for UTF-8 locales on MSVC.
13721         * lib/localcharset.c (locale_charset): Return "UTF-8" instead of
13722         "CPutf8".
13723         * lib/nl_langinfo.c (ctype_codeset): Likewise.
13725 2019-07-02  Bruno Haible  <bruno@clisp.org>
13727         getcwd: Fix crash when invoked with size = 0 on MSVC.
13728         * lib/getcwd.c: Include msvc-inval.h.
13729         (getcwd_nothrow): New function/macro.
13730         (getcwd_system): New macro.
13731         (__getcwd): Use it instead of getcwd.
13732         * modules/getcwd (Depends-on): Add msvc-inval.
13733         * doc/posix-functions/getcwd.texi: Mention the MSVC issue.
13735 2019-07-02  Bruno Haible  <bruno@clisp.org>
13737         nonblocking-pipe tests: Fix test failure on MSVC.
13738         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE): Set to 10000 on
13739         native Windows.
13741 2019-07-02  Bruno Haible  <bruno@clisp.org>
13743         usleep: Implement with millisecond resolution on native Windows.
13744         * lib/usleep.c (usleep): On native Windows, implement using Sleep().
13745         * doc/pastposix-functions/usleep.texi: Update accordingly.
13747 2019-07-02  Bruno Haible  <bruno@clisp.org>
13749         lstat tests: Fix test failure on MSVC.
13750         * tests/test-lstat.h (test_lstat_func): Don't test SAME_INODE values on
13751         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13753 2019-07-02  Bruno Haible  <bruno@clisp.org>
13755         stat tests: Fix test failure on MSVC.
13756         * tests/test-stat.h (test_stat_func): Don't test SAME_INODE values on
13757         native Windows, unless _GL_WINDOWS_STAT_INODES is defined.
13759 2019-07-02  Bruno Haible  <bruno@clisp.org>
13761         getaddrinfo tests: Fix test failure on MSVC.
13762         * tests/test-getaddrinfo.c: Include sockets.h.
13763         (main): Invoke gl_sockets_startup.
13764         * modules/getaddrinfo-tests (Depends-on): Add sockets.
13766 2019-07-01  Hannes Müller  <h.c.f.mueller@gmx.de>
13768         poll: Fix type of timeout pointer passed to select() on mingw x86_64.
13769         * lib/poll.c: Call Windows native select() with Windows native timeval.
13771 2019-06-30  Bruno Haible  <bruno@clisp.org>
13773         argmatch: Fix compilation errors.
13774         * lib/argmatch.h: Include <limits.h>, for INT_MAX.
13775         * tests/test-argmatch.c (main): Update after last-minute function names
13776         change.
13778 2019-06-30  Bruno Haible  <bruno@clisp.org>
13780         Include <stdlib.h> when needed.
13781         * lib/cnd.c: Include <stdlib.h>, needed for abort().
13782         * lib/fcntl.c: Likewise.
13783         * lib/mbscasestr.c: Likewise.
13784         * lib/mbssep.c: Likewise.
13785         * lib/mbsstr.c: Likewise.
13786         * lib/openat.c: Include <stdlib.h>, needed for free().
13787         * lib/windows-tls.c: Include <stdlib.h>, needed for malloc(), free(),
13788         abort().
13790 2019-06-30  Bruno Haible  <bruno@clisp.org>
13792         Include <stdlib.h> when needed.
13793         * lib/areadlinkat.c: Include <stdlib.h>, needed for free() in at-func.c.
13794         * lib/faccessat.c: Likewise.
13795         * lib/fchmodat.c: Likewise.
13796         * lib/fchownat.c: Likewise.
13797         * lib/fstatat.c: Likewise.
13798         * lib/mkfifoat.c: Likewise.
13799         * lib/mknodat.c: Likewise.
13800         * lib/readlinkat.c: Likewise.
13801         * lib/symlinkat.c: Likewise.
13802         * lib/utimensat.c: Likewise.
13803         * lib/mkdirat.c: Likewise. Include also the specification header.
13805 2019-06-30  Bruno Haible  <bruno@clisp.org>
13807         inet_ntop, inet_pton: Avoid conflict with native Windows functions.
13808         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WS2TCPIP): New macro, extracted
13809         from gl_PREREQ_SYS_H_SOCKET.
13810         (gl_PREREQ_SYS_H_SOCKET): Invoke it.
13811         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Invoke
13812         gl_PREREQ_SYS_H_WS2TCPIP.
13813         * modules/arpa_inet (Files): Add m4/sys_socket_h.m4, m4/socklen.m4.
13814         (Makefile.am): Substitute HAVE_WS2TCPIP_H.
13815         * lib/arpa_inet.in.h: Include <ws2tcpip.h>.
13817 2019-06-30  Bruno Haible  <bruno@clisp.org>
13819         inet_ntop, inet_pton: Forward-compatibility with newer Windows versions.
13820         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): On native Windows, set
13821         REPLACE_INET_NTOP to 1 always.
13822         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): On native Windows, set
13823         REPLACE_INET_PTON to 1 always.
13825 2019-06-30  Bruno Haible  <bruno@clisp.org>
13827         inet_pton: Fix link error on mingw with _WIN32_WINNT >= 0x0600.
13828         * modules/inet_pton (Depends-on, configure.ac): Test REPLACE_INET_PTON,
13829         not REPLACE_INET_NTOP.
13831 2019-06-30  Bruno Haible  <bruno@clisp.org>
13833         poll: Add comment.
13834         * lib/poll.c: Add comment about WSAPoll.
13836 2019-06-30  Bruno Haible  <bruno@clisp.org>
13838         poll-h: Fix compilation error on mingw with _WIN32_WINNT >= 0x0600.
13839         Reported by Hannes Müller <h.c.f.mueller@gmx.de>.
13840         * lib/poll.in.h: Include <winsock2.h>.
13841         (POLL*, pollfd): Override on native Windows.
13842         * m4/poll_h.m4 (gl_POLL_H): Invoke gl_PREREQ_SYS_H_WINSOCK2.
13843         * modules/poll-h (Files): Add m4/sys_socket_h.m4.
13844         (Makefile.am): Substitute HAVE_WINSOCK2_H.
13846 2019-06-28  Bruno Haible  <bruno@clisp.org>
13848         accept4: Fix compilation error on OpenIndiana.
13849         Reported by Michal Nowak <mnowak@startmail.com>
13850         via Mark H Weaver <mhw@netris.org>.
13851         * m4/accept.m4 (gl_FUNC_ACCEPT4): Test whether accept4 is declared, not
13852         whether it exists as a function.
13854 2019-06-26  Paul Eggert  <eggert@cs.ucla.edu>
13856         strverscmp: sync from glibc
13857         * lib/strverscmp.c: Sync from glibc, except use UTF-8 encoding in
13858         comments, include libc-config.h, define __strverscmp to be
13859         strverscmp, and don’t assume types line uint8_t and int8_t that
13860         that C99 doesn’t guarantee.
13861         [!_LIBC]: Include libc-config.h; define __strverscmp.
13862         Include stdint.h.
13863         (__strverscmp): Assume C99.  Use uint_least8_t
13864         and int_least8_t instead of unsigned char and signed char.
13865         * modules/strverscmp (Depends-on): Add libc-config, stdint.
13867 2019-06-25  Bruno Haible  <bruno@clisp.org>
13869         tss tests: Add tests for destructors and races.
13870         * tests/test-tss.c (worker_thread): Fix typo in debug message.
13871         (test_tss_dtorcheck1, test_tss_dtorcheck2, test_tss_racecheck): New
13872         functions.
13873         (main): Invoke them.
13874         * modules/tls-tests (Depends-on): Add mtx.
13876 2019-06-25  Bruno Haible  <bruno@clisp.org>
13878         tls tests: Add tests for destructors and races.
13879         * tests/test-tls.c: Include glthread/lock.h.
13880         (test_tls_dtorcheck1, test_tls_dtorcheck2, test_tls_racecheck): New
13881         functions.
13882         (main): Invoke them.
13883         * modules/tls-tests (Depends-on): Add lock.
13885 2019-06-25  Bruno Haible  <bruno@clisp.org>
13887         windows-tls: Implement TLS key destructors for native Windows.
13888         * lib/windows-tls.h (glwthread_tls_process_destructors): New
13889         declaration.
13890         (GLWTHREAD_DESTRUCTOR_ITERATIONS): New macro.
13891         * lib/windows-tls.c: Include <limits.h>, windows-once.h.
13892         (dtor_table_init_once, dtor_table_lock: New variables.
13893         (struct dtor): New type.
13894         (dtor_table, dtors_count, dtors_used, dtors_allocated,
13895         dtor_processing_threads): New variables.
13896         (dtor_table_initialize, dtor_table_ensure_initialized,
13897         dtor_table_shrink_used, glwthread_tls_process_destructors): New
13898         functions.
13899         (glwthread_tls_key_create, glwthread_tls_key_delete): Rewritten to
13900         handle non-NULL destructors.
13901         * modules/windows-tls (Depends-on): Add windows-once.
13902         * lib/glthread/tls.h (glthread_tls_key_init, glthread_tls_key_destroy):
13903         Use the functions declared in windows-tls.h.
13904         * lib/threads.in.h (TSS_DTOR_ITERATIONS): Define using
13905         GLWTHREAD_DESTRUCTOR_ITERATIONS.
13906         * lib/windows-thread.c: Include windows-tls.h.
13907         (wrapper_func, glwthread_thread_exit): Invoke
13908         glwthread_tls_process_destructors.
13909         * modules/windows-thread (Depends-on): Add windows-tls.
13911 2019-06-25  Bruno Haible  <bruno@clisp.org>
13913         threadlib: Avoid autoconf warning "was expanded before it was required".
13914         * modules/threadlib (configure.ac): Require gl_THREADLIB.
13916 2019-06-25  Akim Demaille  <akim@lrde.epita.fr>
13918         argmatch: remove duplicate const qualifier
13919         * lib/argmatch.h (ARGMATCH_DEFINE_GROUP): Here.
13921 2019-06-24  Paul Eggert  <eggert@cs.ucla.edu>
13923         unistd: stddef.h and sys/types.h namespace cleanup
13924         * lib/unistd.in.h [__GLIBC__]:
13925         Do not include stddef.h or sys/types.h.
13926         [!__GLIBC__]: Always include sys/types.h, since unistd.h is
13927         supposed to declare off_t and ssize_t.  Problem found when looking
13928         at why @GNULIB_PWRITE@ was different from the newly-added
13929         @GNULIB_COPY_FILE_RANGE@ with respect to ssize_t.
13931 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13933         maintainer-makefile: restore portability to non-GNU awks
13934         Reported by Tim Rühsen.
13935         * top/maint.mk (AWK): New variable.  Use it.
13936         (sc_prohibit_gnu_make_extensions): Skip if $(AWK) is not gawk.
13938 2019-06-23  Paul Eggert  <eggert@cs.ucla.edu>
13940         Document setvbuf _IOLBF problem
13941         * doc/posix-functions/setvbuf.texi (setvbuf):
13942         Document MS-Windows portability problem with _IOLBF.
13944         Document lseek SEEK_DATA/SEEK_HOLE
13945         * doc/posix-functions/lseek.texi (lseek):
13946         Document some systems that do not support SEEK_DATA and SEEK_HOLE.
13948 2019-06-22  Akim Demaille  <akim@lrde.epita.fr>
13950         argmatch: put all the docs member last.
13951         Reported by Bruno Haible.
13952         * lib/argmatch.h (argmatch_##Name##_group_type): Put the args
13953         member before the docs done.
13954         * doc/argmatch.texi, tests/test-argmatch.c: Adjust.
13956 2019-06-21  Akim Demaille  <akim@lrde.epita.fr>
13958         argmatch: add support to generate the usage message.
13959         * lib/argmatch.c: Move some #includes and gettext support to...
13960         * lib/argmatch.h: here.
13961         (ARGMATCH_DEFINE_GROUP): New macro.
13962         * tests/test-argmatch.c (argmatch_backup_docs, argmatch_backup_args)
13963         (argmatch_backup_group): New.
13964         (CHECK): New.
13965         (main): Check argmatch_backup_value, argmatch_backup_xvalue,
13966         argmatch_backup_argument and argmatch_backup_usage.
13967         * modules/argmatch: We depend on c99.
13968         * doc/argmatch.texi (Recognizing Option Arguments): New.
13969         * doc/gnulib.texi: Use it.
13971 2019-06-21  Bruno Haible  <bruno@clisp.org>
13973         thrd: Add comment.
13974         * lib/thrd.c (pthread_main_func): Add comment.
13976 2019-06-21  Bruno Haible  <bruno@clisp.org>
13978         threads-h: Define 'thread_local' if and only if it actually works.
13979         * m4/threads.m4 (gl_THREAD_LOCAL_DEFINITION): New macro.
13980         (gl_THREADS_H): Define _Thread_local to __thread also for ARM C, IBM C,
13981         Oracle Solaris Studio C. Compile a simple program, to see whether
13982         _Thread_local basically works. Set HAVE_THREAD_LOCAL and LIBTHREADLOCAL.
13983         (gl_THREADS_H_DEFAULTS): Initialize HAVE_THREAD_LOCAL.
13984         * lib/threads.in.h (thread_local): Undefine if it does not work.
13985         * modules/threads-h (Makefile.am): Substitute HAVE_THREAD_LOCAL.
13986         (Link): Mention LIBTHREADLOCAL.
13987         * tests/test-threads.c: Don't check that thread_local is defined.
13988         * tests/test-thread_local.c: New file.
13989         * modules/threads-h-tests (Files): Add it and macros.h.
13990         (Depends-on): Add thrd and stdint.
13991         (configure.ac): Test whether 'alarm' is declared.
13992         (Makefile.am): Arrange to build and link test-thread_local.
13993         * doc/posix-headers/threads.texi: Mention the platforms that don't
13994         support 'thread_local'.
13996 2019-06-20  Bruno Haible  <bruno@clisp.org>
13998         threads-h: Simplify link dependencies.
13999         * m4/threads.m4 (gl_THREADS_H): Bail out if Pth threading is requested.
14000         Don't set LTLIBSTDTHREAD.
14001         * modules/thrd (Link): Simplify accordingly.
14002         * modules/mtx (Link): Likewise.
14003         * modules/cnd (Link): Likewise.
14004         * modules/tss (Link): Likewise.
14005         * modules/threads (Link): Likewise.
14007 2019-06-20  Bruno Haible  <bruno@clisp.org>
14009         threads-h: Fix link error on FreeBSD 11.
14010         * m4/threads.m4 (gl_THREADS_H): When linking with -lstdthreads, link
14011         also with -lpthread.
14013 2019-06-20  Bruno Haible  <bruno@clisp.org>
14015         threadlib: Fix typo (regression from today).
14016         * m4/threadlib.m4 (gl_THREADLIB_BODY): Fix typo in comment marker.
14018 2019-06-20  Bruno Haible  <bruno@clisp.org>
14020         windows-thread, windows-tls: Fix compilation error on 32-bit mingw.
14021         * lib/windows-thread.c: Include <errno.h>.
14022         * lib/windows-tls.c: Likewise.
14024 2019-06-20  Bruno Haible  <bruno@clisp.org>
14026         tss tests: Small improvement.
14027         * tests/test-tss.c (test_tss): Pass a different id to each thread.
14029 2019-06-20  Bruno Haible  <bruno@clisp.org>
14031         threads: New module.
14032         * modules/threads: New file.
14034 2019-06-20  Bruno Haible  <bruno@clisp.org>
14036         tss: Add tests.
14037         * tests/test-tss.c: New file, based on tests/test-tls.c.
14038         * modules/tss-tests: New file.
14040 2019-06-20  Bruno Haible  <bruno@clisp.org>
14042         cnd: Add tests.
14043         * tests/test-cnd.c: New file, based on tests/test-cond.c.
14044         * modules/cnd-tests: New file.
14046 2019-06-20  Bruno Haible  <bruno@clisp.org>
14048         mtx: Add tests.
14049         * tests/test-mtx.c: New file, based on tests/test-lock.c.
14050         * tests/test-call_once.c: New file, based on tests/test-once.c.
14051         * modules/mtx-tests: New file.
14053 2019-06-20  Bruno Haible  <bruno@clisp.org>
14055         thrd: Add tests.
14056         * tests/test-thrd_create.c: New file, based on
14057         tests/test-thread_create.c.
14058         * tests/test-thrd_current.c: New file, based on
14059         tests/test-thread_self.c.
14060         * modules/thrd-tests: New file.
14062 2019-06-20  Bruno Haible  <bruno@clisp.org>
14064         tss: New module.
14065         * lib/tss.c: New file.
14066         * modules/tss: New file.
14067         * doc/posix-functions/tss_create.texi: Mention the new module.
14068         * doc/posix-functions/tss_set.texi: Likewise.
14069         * doc/posix-functions/tss_get.texi: Likewise.
14070         * doc/posix-functions/tss_delete.texi: Likewise.
14072 2019-06-20  Bruno Haible  <bruno@clisp.org>
14074         cnd: New module.
14075         * lib/cnd.c: New file.
14076         * modules/cnd: New file.
14077         * doc/posix-functions/cnd_init.texi: Mention the new module.
14078         * doc/posix-functions/cnd_wait.texi: Likewise.
14079         * doc/posix-functions/cnd_timedwait.texi: Likewise.
14080         * doc/posix-functions/cnd_signal.texi: Likewise.
14081         * doc/posix-functions/cnd_broadcast.texi: Likewise.
14082         * doc/posix-functions/cnd_destroy.texi: Likewise.
14084 2019-06-20  Bruno Haible  <bruno@clisp.org>
14086         mtx: New module.
14087         * lib/mtx.c: New file.
14088         * modules/mtx: New file.
14089         * doc/posix-functions/call_once.texi: Mention the new module.
14090         * doc/posix-functions/mtx_init.texi: Likewise.
14091         * doc/posix-functions/mtx_lock.texi: Likewise.
14092         * doc/posix-functions/mtx_trylock.texi: Likewise.
14093         * doc/posix-functions/mtx_timedlock.texi: Likewise.
14094         * doc/posix-functions/mtx_unlock.texi: Likewise.
14095         * doc/posix-functions/mtx_destroy.texi: Likewise.
14097 2019-06-20  Bruno Haible  <bruno@clisp.org>
14099         thrd: New module.
14100         * lib/thrd.c: New file.
14101         * m4/thrd.m4: New file.
14102         * modules/thrd: New file.
14103         * doc/posix-functions/thrd_current.texi: Mention the new module.
14104         * doc/posix-functions/thrd_detach.texi: Likewise.
14105         * doc/posix-functions/thrd_equal.texi: Likewise.
14106         * doc/posix-functions/thrd_exit.texi: Likewise.
14107         * doc/posix-functions/thrd_sleep.texi: Likewise.
14108         * doc/posix-functions/thrd_yield.texi: Likewise.
14109         * doc/posix-functions/thrd_create.texi: Mention the new module and the
14110         AIX bug.
14111         * doc/posix-functions/thrd_join.texi: Mention the new module and the
14112         AIX and Solaris bugs.
14114 2019-06-20  Bruno Haible  <bruno@clisp.org>
14116         threads-h: Add tests.
14117         * tests/test-threads.c: New file.
14118         * modules/threads-h-tests: New file.
14119         * tests/test-threads-c++.cc: New file.
14120         * modules/threads-h-c++-tests: New file.
14122 2019-06-20  Bruno Haible  <bruno@clisp.org>
14124         threads-h: New module.
14125         * lib/threads.in.h: New file.
14126         * m4/threads.m4: New file.
14127         * m4/yield.m4 (gl_YIELD): Update comment.
14128         * modules/threads-h: New file.
14129         * modules/yields (configure.ac): Use AC_REQUIRE.
14130         * doc/posix-headers/threads.texi: Mention the new module and the AIX
14131         bugs.
14133 2019-06-20  Bruno Haible  <bruno@clisp.org>
14135         windows-thread: New module.
14136         * lib/windows-thread.h: New file, based on lib/glthread/thread.h.
14137         * lib/windows-thread.c: New file, based on lib/glthread/thread.c.
14138         * lib/glthread/thread.h: Include windows-thread.h.
14139         (gl_thread_t): Define using glwthread_thread_t.
14140         (glthread_create): Define using glwthread_thread_create.
14141         (glthread_join): Define using glwthread_thread_join.
14142         (gl_thread_self): Define using glwthread_thread_self.
14143         (gl_thread_exit): Define using glwthread_thread_exit.
14144         (glthread_create_func, glthread_join_func, gl_thread_self_func,
14145         gl_thread_exit_func): Remove declarations.
14146         * lib/glthread/thread.c (self_key): Remove variable.
14147         (do_init_self_key, init_self_key): Remove functions.
14148         (struct gl_thread_struct): Remove type.
14149         (get_current_thread_handle, gl_thread_self_func, wrapper_func,
14150         glthread_create_func, glthread_join_func, gl_thread_exit_func): Remove
14151         functions.
14152         * modules/windows-thread: New file.
14153         * modules/thread (Depends-on): Add windows-thread.
14155 2019-06-20  Bruno Haible  <bruno@clisp.org>
14157         windows-tls: New module.
14158         * lib/windows-tls.h: New file, based on lib/glthread/tls.h.
14159         * lib/windows-tls.c: New file, based on lib/glthread/tls.h.
14160         * lib/glthread/tls.h: Include windows-tls.h.
14161         (gl_tls_key_t): Define using glwthread_tls_key_t.
14162         * modules/windows-tls: New file.
14163         * modules/tls (Depends-on): Add windows-tls.
14165 2019-06-20  Bruno Haible  <bruno@clisp.org>
14167         windows-cond: New module.
14168         * lib/windows-cond.h: New file, based on lib/glthread/cond.h.
14169         * lib/windows-cond.c: New file, based on lib/glthread/cond.c.
14170         * lib/glthread/cond.h: Include windows-cond.h.
14171         (struct gl_waitqueue_link, gl_linked_waitqueue_t): Remove types.
14172         (gl_cond_t): Define using glwthread_cond_t.
14173         (gl_cond_initializer): Define using GLWTHREAD_COND_INIT.
14174         (glthread_cond_init): Define using glwthread_cond_init.
14175         (glthread_cond_wait): Define using glwthread_cond_wait.
14176         (glthread_cond_timedwait): Define using glwthread_cond_timedwait.
14177         (glthread_cond_signal): Define using glwthread_cond_signal.
14178         (glthread_cond_broadcast): Define using glwthread_cond_broadcast.
14179         (glthread_cond_destroy): Define using glwthread_cond_destroy.
14180         (glthread_cond_init_func, glthread_cond_wait_func,
14181         glthread_cond_timedwait_func, glthread_cond_signal_func,
14182         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14183         declarations.
14184         * lib/glthread/cond.c (gl_waitqueue_t, gl_waitqueue_element): Remove
14185         types.
14186         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
14187         gl_waitqueue_notify_first, gl_waitqueue_notify_all,
14188         glthread_cond_init_func, glthread_cond_wait_func,
14189         glthread_cond_timedwait_func, glthread_cond_signal_func,
14190         glthread_cond_broadcast_func, glthread_cond_destroy_func): Remove
14191         functions.
14192         * modules/windows-cond: New file.
14193         * modules/cond (Depends-on): Add windows-cond. Remove gettimeofday.
14195 2019-06-20  Bruno Haible  <bruno@clisp.org>
14197         windows-timedrecmutex: New module.
14198         * lib/windows-timedrecmutex.h: New file, based on windows-recmutex.h.
14199         * lib/windows-timedrecmutex.c: New file, based on windows-recmutex.c.
14200         * modules/windows-timedrecmutex: New file.
14202 2019-06-20  Bruno Haible  <bruno@clisp.org>
14204         windows-timedmutex: New module.
14205         * lib/windows-timedmutex.h: New file, based on windows-mutex.h.
14206         * lib/windows-timedmutex.c: New file, based on windows-mutex.c.
14207         * modules/windows-timedmutex: New file.
14209 2019-06-20  Bruno Haible  <bruno@clisp.org>
14211         windows-recmutex: New module.
14212         * lib/windows-recmutex.h: New file, extracted from lib/glthread/lock.h.
14213         * lib/windows-recmutex.c: New file, extracted from lib/glthread/lock.c.
14214         * lib/glthread/lock.h: Include windows-recmutex.h.
14215         (gl_recursive_lock_t): Define using glwthread_recmutex_t.
14216         (gl_recursive_lock_initializer): Define using GLWTHREAD_RECMUTEX_INIT.
14217         (glthread_recursive_lock_init): Define using glwthread_recmutex_init.
14218         (glthread_recursive_lock_lock): Define using glwthread_recmutex_lock.
14219         (glthread_recursive_lock_unlock): Define using
14220         glwthread_recmutex_unlock.
14221         (glthread_recursive_lock_destroy): Define using
14222         glwthread_recmutex_destroy.
14223         (glthread_recursive_lock_init_func, glthread_recursive_lock_lock_func,
14224         glthread_recursive_lock_unlock_func,
14225         glthread_recursive_lock_destroy_func): Remove declarations.
14226         * lib/glthread/lock.c (glthread_recursive_lock_init_func,
14227         glthread_recursive_lock_lock_func, glthread_recursive_lock_unlock_func,
14228         glthread_recursive_lock_destroy_func): Remove functions.
14229         * modules/windows-recmutex: New file.
14230         * modules/lock (Depends-on): Add windows-recmutex.
14232 2019-06-20  Bruno Haible  <bruno@clisp.org>
14234         windows-mutex: New module.
14235         * lib/windows-mutex.h: New file, extracted from lib/glthread/lock.h.
14236         * lib/windows-mutex.c: New file, extracted from lib/glthread/lock.c.
14237         * lib/windows-spinlock.h: New file, extracted from lib/glthread/lock.h.
14238         * lib/glthread/lock.h: Include windows-spinlock.h, windows-mutex.h.
14239         (gl_spinlock_t): Remove type.
14240         (gl_lock_t): Define using glwthread_mutex_t.
14241         (gl_lock_initializer): Define using GLWTHREAD_MUTEX_INIT.
14242         (glthread_lock_init): Define using glwthread_mutex_init.
14243         (glthread_lock_lock): Define using glwthread_mutex_lock.
14244         (glthread_lock_unlock): Define using glwthread_mutex_unlock.
14245         (glthread_lock_destroy): Define using glwthread_mutex_destroy.
14246         (glthread_lock_init_func, glthread_lock_lock_func,
14247         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14248         declarations.
14249         Use glwthread_spinlock_t instead of gl_spinlock_t.
14250         (gl_rwlock_initializer, gl_recursive_lock_initializer): Define using
14251         GLWTHREAD_SPINLOCK_INIT.
14252         * lib/glthread/lock.c (glthread_lock_init_func, glthread_lock_lock_func,
14253         glthread_lock_unlock_func, glthread_lock_destroy_func): Remove
14254         functions.
14255         * lib/glthread/cond.h: Use glwthread_spinlock_t instead of
14256         gl_spinlock_t.
14257         * modules/windows-mutex: New file.
14258         * modules/lock (Depends-on): Add windows-mutex.
14260 2019-06-20  Bruno Haible  <bruno@clisp.org>
14262         windows-once: New module.
14263         * lib/windows-once.h: New file, extracted from lib/glthread/lock.h.
14264         * lib/windows-once.c: New file, extracted from lib/glthread/lock.c.
14265         * lib/glthread/lock.h: Include windows-once.h.
14266         (gl_once_t): Define using glwthread_once_t.
14267         (gl_once_define): Define using GLWTHREAD_ONCE_INIT.
14268         (glthread_once): Define using glwthread_once.
14269         (glthread_once_func): Remove declaration.
14270         * lib/glthread/lock.c (glthread_once_func): Remove function.
14271         * modules/windows-once: New file.
14272         * modules/lock (Depends-on): Add windows-once.
14274 2019-06-20  Bruno Haible  <bruno@clisp.org>
14276         lock, cond: Avoid possible counter wraparound on Windows.
14277         * lib/glthread/lock.c (glthread_lock_lock_func): Leave the 'started'
14278         field of the guard unchanged if it was already positive.
14279         (glthread_rwlock_rdlock_func): Likewise.
14280         (glthread_rwlock_wrlock_func): Likewise.
14281         (glthread_recursive_lock_lock_func): Likewise.
14282         * lib/glthread/cond.c (glthread_cond_wait_func): Likewise.
14283         (glthread_cond_timedwait_func): Likewise.
14285 2019-06-20  Bruno Haible  <bruno@clisp.org>
14287         cond: Make glthread_cond_timedwait more reliable on Windows.
14288         * lib/glthread/cond.c (glthread_cond_timedwait_func): Initialize the
14289         condition variable before looking at the current time.
14291 2019-06-20  Bruno Haible  <bruno@clisp.org>
14293         pthread_mutex_timedlock: New module.
14294         * lib/pthread.in.h (pthread_mutex_timedlock): New dummy function and
14295         new declaration.
14296         * lib/pthread_mutex_timedlock.c: New file.
14297         * m4/pthread_mutex_timedlock.m4: New file.
14298         * m4/pthread.m4 (gl_PTHREAD_CHECK): Don't call AC_LIBOBJ here. Test
14299         whether pthread_mutex_timedlock is declared.
14300         (gl_PTHREAD_MODULE_INDICATOR): New macro.
14301         (gl_PTHREAD_DEFAULTS): Initialize GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14302         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14303         * modules/pthread (configure.ac): Call AC_LIBOBJ here.
14304         (Makefile.am): Substitute GNULIB_PTHREAD_MUTEX_TIMEDLOCK,
14305         HAVE_PTHREAD_MUTEX_TIMEDLOCK.
14306         * modules/pthread_mutex_timedlock: New file.
14307         * doc/posix-functions/pthread_mutex_timedlock.texi: Mention the new
14308         module.
14310 2019-06-20  Bruno Haible  <bruno@clisp.org>
14312         thread, lock, cond, tls: Recognize C11 multithreaded applications.
14313         * m4/threadlib.m4 (gl_THREADLIB_BODY): Test for <threads.h>.
14314         * lib/glthread/thread.h (c11_threads_in_use): New macro.
14315         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14316         * lib/glthread/lock.h (c11_threads_in_use): New macro.
14317         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14318         * lib/glthread/cond.h (c11_threads_in_use): New macro.
14319         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14320         * lib/glthread/tls.h (c11_threads_in_use): New macro.
14321         (pthread_in_use, pth_in_use, thread_in_use): Use it.
14323 2019-06-20  Bruno Haible  <bruno@clisp.org>
14325         tls tests: Small improvements.
14326         * tests/test-tls.c: Include <stdint.h>.
14327         (worker_thread): Avoid gcc warning on 64-bit mingw.
14328         (test_tls): Pass a different id to each thread.
14329         * modules/tls-tests (Depends-on): Add stdint.
14331 2019-06-20  Bruno Haible  <bruno@clisp.org>
14333         cond tests: Simplify.
14334         * tests/test-cond.c (test_timedcond): Remove redundant assignment.
14336 2019-06-20  Bruno Haible  <bruno@clisp.org>
14338         lock tests: Avoid reference to undefined variable if !ENABLE_LOCKING.
14339         * tests/test-lock.c (test_once): Don't reference fire_signal if
14340         !ENABLE_LOCKING.
14342 2019-06-19  Bruno Haible  <bruno@clisp.org>
14344         nanosleep: Relicense under LGPLv2+.
14345         Approved by Jim Meyering, Paul Eggert, Eric Blake, Pádraig Brady.
14346         * modules/nanosleep (License): Change to LGPLv2+.
14348 2019-06-19  Bruno Haible  <bruno@clisp.org>
14350         Reorder pieces of header in perl scripts.
14351         The desired order is
14352         - Prologue part 1 (2 lines with #!)
14353         - Program short description
14354         - Copyright and license notice
14355         - Written-by notice
14356         - Program short description (optional)
14357         - Program long description (optional)
14358         - Prologue part 2
14359         - Time stamp
14360         - Code
14361         Reported by Paul Eggert.
14362         * build-aux/announce-gen: Reorder header.
14363         * build-aux/gitlog-to-changelog: Likewise.
14364         * build-aux/useless-if-before-free: Likewise.
14365         * build-aux/prefix-gnulib-mk: Add copyright notice and short
14366         description.
14367         * build-aux/update-copyright: Likewise. Add short description. Bump
14368         time-stamp-line-limit to 200.
14370 2019-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14372         verify-tests: work around xlc bug
14373         Problem reported by Bruno Haible in:
14374         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00049.html
14375         * tests/test-verify.c (item): Move the arithmetic inside the
14376         verify_expr, to avoid tickling a bug in IBM AIX xlc V12.1.
14378 2019-06-16  Bruno Haible  <bruno@clisp.org>
14380         Restore Emacs time-stamp hook applicability.
14381         Reported by Darshit Shah <darnir@gnu.org>.
14382         * build-aux/useless-if-before-free: Bump time-stamp-line-limit to 50.
14383         * build-aux/announce-gen: Likewise.
14384         * build-aux/gitlog-to-changelog: Likewise.
14385         * build-aux/prefix-gnulib-mk: Likewise.
14386         * build-aux/update-copyright: Likewise.
14388 2019-06-15  Bruno Haible  <bruno@clisp.org>
14390         Fix scripts to have valid executable format on Alpine Linux.
14391         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
14392         Idea by Paul Eggert.
14393         * build-aux/useless-if-before-free: Use a prologue that starts with
14394         '#!/bin/sh'.
14395         * build-aux/announce-gen: Likewise.
14396         * build-aux/gitlog-to-changelog: Likewise.
14397         * build-aux/prefix-gnulib-mk: Likewise.
14398         * build-aux/update-copyright: Likewise.
14399         * tests/test-update-copyright.sh: Update test program accordingly.
14401 2019-06-10  Bruno Haible  <bruno@clisp.org>
14403         nproc: Ensure nproc(NPROC_ALL) ≥ nproc(NPROC_CURRENT) with glibc ≥ 2.26.
14404         Reported by Nikita Ermakov <arei@altlinux.org> in
14405         <https://lists.gnu.org/archive/html/bug-gnulib/2019-06/msg00003.html>.
14406         * lib/nproc.c (num_processors_ignoring_omp): Treat a return value of
14407         sysconf (_SC_NPROCESSORS_CONF) == 2 like a return value == 1.
14409 2019-06-10  Bruno Haible  <bruno@clisp.org>
14411         posix_spawn_file_actions_addchdir: Fix possible use-after-free bug.
14412         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14413         * lib/spawn_faction_addchdir.c (posix_spawn_file_actions_addchdir): Make
14414         a copy of the path argument.
14415         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14416         it.
14418 2019-06-10  Bruno Haible  <bruno@clisp.org>
14420         posix_spawn_file_actions_addopen: Fix possible use-after-free bug.
14421         Reported at <https://sourceware.org/bugzilla/show_bug.cgi?id=17048>.
14422         * lib/spawn_int.h (struct __spawn_action): Remove 'const' from path.
14423         * lib/spawn_faction_addopen.c (posix_spawn_file_actions_addopen): Make
14424         a copy of the path argument.
14425         * lib/spawn_faction_destroy.c (posix_spawn_file_actions_destroy): Free
14426         it.
14428 2019-06-10  Bruno Haible  <bruno@clisp.org>
14430         posix_spawn_file_actions_addfchdir: Add tests.
14431         * tests/test-posix_spawn_file_actions_addfchdir.c: New file.
14432         * tests/test-posix_spawn5.c: New file.
14433         * modules/posix_spawn_file_actions_addfchdir-tests: New file.
14435 2019-06-10  Bruno Haible  <bruno@clisp.org>
14437         posix_spawn_file_actions_addfchdir: New module.
14438         * lib/spawn.in.h (posix_spawn_file_actions_addfchdir): New declaration.
14439         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_fchdir' and
14440         union member 'fchdir_action'.
14441         * lib/spawn_faction_addfchdir.c: New file.
14442         * lib/spawni.c (__spawni): Implement the spawn_do_fchdir action.
14443         * m4/posix_spawn_faction_addfchdir.m4: New file.
14444         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
14445         'posix_spawn_file_actions_addfchdir' is present and whether
14446         posix_spawn_file_actions_addfchdir_np exists. Set REPLACE_POSIX_SPAWN.
14447         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
14448         posix_spawn_file_actions_addfchdir is declared.
14449         (gl_SPAWN_H_DEFAULTS): Initialize
14450         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14451         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14452         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14453         * modules/spawn (Makefile.am): Substitute
14454         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14455         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR,
14456         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDFCHDIR.
14457         * modules/posix_spawn_file_actions_addfchdir: New file.
14458         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addfchdir): Check
14459         signature.
14460         * doc/posix-functions/posix_spawn.texi: Mention the new module.
14461         * doc/posix-functions/posix_spawnp.texi: Likewise.
14462         * doc/glibc-functions/posix_spawn_file_actions_addfchdir_np.texi:
14463         Likewise.
14465 2019-06-10  Bruno Haible  <bruno@clisp.org>
14467         doc: Document existence of posix_spawn_file_actions_addchdir module.
14468         * doc/glibc-functions/posix_spawn_file_actions_addchdir_np.texi: Mention
14469         the posix_spawn_file_actions_addchdir module.
14471 2019-06-10  Bruno Haible  <bruno@clisp.org>
14473         posix_spawn-internal: Fix module description.
14474         * modules/posix_spawn (configure.ac): Move request to compile spawni.c
14475         from here...
14476         * modules/posix_spawnp (configure.ac): ... and here...
14477         * modules/posix_spawn-internal (configure.ac): ... to here.
14479 2019-06-10  Bruno Haible  <bruno@clisp.org>
14481         doc: Update and improve documentation of glibc functions.
14482         This is a series of commits that
14483         - updates the documentation to the state of glibc 2.29,
14484         - adds references to Linux man pages and glibc documentation,
14485         - marks Linux specific functions as such.
14486         These are the commits:
14487         doc: Update after removal of crypt functions from glibc 2.28.
14488         doc: Remove mention of function vm86 (does not exist on x86_64).
14489         doc: Remove mention of functions that are gone from glibc.
14490         doc: Mention that glibc no longer provides h_errno.
14491         doc: Mention the availability of specific functions in glibc versions.
14492         doc: Mention eaccess.
14493         doc: Add references to Linux man pages.
14494         doc: Add references to glibc documentation.
14495         doc: Mention inotify_* functions.
14496         doc: Mention ppoll.
14497         doc: Mention sched_getcpu.
14498         doc: Mention sync_file_range.
14499         doc: Mention epoll_pwait.
14500         doc: Mention eventfd, eventfd_read, eventfd_write.
14501         doc: Mention signalfd.
14502         doc: Mention timerfd_create, timerfd_gettime, timerfd_settime.
14503         doc: Mention epoll_create1.
14504         doc: Mention getauxval.
14505         doc: Mention pthread_getattr_default_np, pthread_setattr_default_np.
14506         doc: Mention nextdown, nextup.
14507         doc: Mention more ISO TS 18661-1 <math.h> functions.
14508         doc: Mention ISO TS 18661-1 <fenv.h> functions.
14509         doc: Mention getrandom, getentropy.
14510         doc: Mention strfromf, strfromd, strfroml.
14511         doc: Mention preadv2, pwritev2.
14512         doc: Mention copy_file_range.
14513         doc: Mention memfd_create.
14514         doc: Mention mlock2.
14515         doc: Mention pkey_alloc, pkey_set, pkey_get, pkey_free, pkey_mprotect.
14516         doc: Mention more ISO TS 18661-1 <math.h> functions.
14517         doc: Mention renameat2.
14518         doc: Mention statx.
14519         doc: Mention the ISO C11 multithreading header and functions.
14520         doc: Mention getcpu.
14521         doc: Mention posix_spawn_file_actions_add[f]chdir_np.
14522         doc: Some glibc functions also exist on IRIX 6.5 in 32-bit mode.
14523         doc: Some glibc functions also exist on FreeBSD, AIX, HP-UX, Solaris 11.
14524         doc: Some glibc functions also exist on FreeBSD, Solaris 11.
14525         doc: Some glibc functions also exist on Solaris 11.
14526         doc: Some glibc functions also exist on Solaris 11.4.
14527         doc: Some glibc functions also exist on FreeBSD.
14528         doc: Some glibc functions also exist on BeOS.
14529         doc: Some glibc functions also exist on Haiku.
14530         doc: Mark functions which exist only on Linux.
14531         doc: Mark functions which exist only on Linux and illumos.
14533 2019-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14535         copy-file: fix typo
14536         * lib/copy-file.c (qcopy_file_preserving): Remove unused label.
14538         copy-file-range: simplify into a stub
14539         Based on a comment by Florian Weimer in:
14540         https://lists.gnu.org/r/bug-gnulib/2019-06/msg00007.html
14541         It turns out that Emacs (which will use this module) won’t need an
14542         emulation and I suspect other programs won’t either, because these
14543         programs will need to fall back on read+write anyway.  Perhaps I
14544         am wrong and other programs will be able to use an emulation; if
14545         so, this patch can be reverted.
14546         * lib/copy-file-range.c (COPY_FILE_RANGE): Replace with a stub.
14547         Just call it copy_file_range.
14548         * m4/copy-file-range.m4 (gl_FUNC_COPY_FILE_RANGE):
14549         Check via AC_LINK_IFELSE.
14550         * modules/copy-file-range (Depends-on): Remove modules no longer used.
14552 2019-06-04  Paul Eggert  <eggert@cs.ucla.edu>
14554         copy-file: prefer copy_file_range
14555         * lib/copy-file.c: Do not include xalloc.h.
14556         (qcopy_file_preserving): Allocate a buffer only if
14557         copy_file_range does not suffice.  If the allocation fails
14558         don't give up; just use a small stack-based buffer.
14559         Prefer copy_file_range if it works.
14560         * modules/copy-file (Depends-on): Add copy-file-range.
14561         Remove xalloc.
14563         copy-file-range: new module
14564         * MODULES.html.sh: Add copy-file-range.
14565         * lib/copy-file-range.c, m4/copy-file-range.m4:
14566         * modules/copy-file-range: New files.
14567         * lib/unistd.in.h (copy_file_range): Declare.
14568         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS):
14569         Set up GNULIB_COPY_FILE_RANGE and HAVE_COPY_FILE_RANGE.
14570         * modules/unistd (unistd.h): Substitute them.
14572 2019-05-28  Bruno Haible  <bruno@clisp.org>
14574         binary-io: Attempted use of O_BINARY on consoles no longer fails.
14575         Reported by KO Myung-Hun <komh78@gmail.com> in
14576         <https://lists.gnu.org/archive/html/bug-gnulib/2019-05/msg00124.html>.
14577         * lib/binary-io.h (__gl_setmode_check): Remove function.
14578         (set_binary_mode): Declare as notinline on DJGPP and EMX.
14579         * lib/binary-io.c (__gl_setmode_check): Remove function.
14580         (set_binary_mode): Define here on DJGPP and EMX. Inline
14581         __gl_setmode_check. In case of a tty, don't return an error code.
14583 2019-05-28  James Youngman  <jay@gnu.org>
14585         dirent-safer: Make opendir_safer usable from C++.
14586         * lib/dirent-safer.h: use extern "C".
14588 2019-05-28  James Youngman  <jay@gnu.org>
14590         canonicalize: Make canonicalize_filename_mode usable from C++.
14591         * lib/canonicalize.h: use extern "C".
14593 2019-05-26  Akim Demaille  <akim@lrde.epita.fr>
14595         prefix-gnulib-mk: Fix CPPFLAGS migration.
14596         * build-aux/prefix-gnulib-mk (prefix_assignment): Don't forget the
14597         _a part of the library name.
14599 2019-05-24  Paul Eggert  <eggert@cs.ucla.edu>
14601         flexmember: update comments again
14602         * lib/flexmember.h, m4/flexmember.m4: Improve comments further.
14604         flexmember: update comment
14605         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER): Improve comment.
14607 2019-05-20  Bruno Haible  <bruno@clisp.org>
14609         setlocale: Improve fallback on macOS.
14610         * lib/setlocale.c (search): Optimize away a redundant strcmp()
14611         invocation.
14612         (locales_with_principal_territory): New array.
14613         (langcmp, get_main_locale_with_same_language): New functions.
14614         (locales_with_principal_language): New array.
14615         (terrcmp, get_main_locale_with_same_territory): New functions.
14616         (rpl_setlocale): When setlocale_single failed, try again with a locale
14617         that is more likely to exist. Don't warn if the environment variable
14618         SETLOCALE_VERBOSE is not set.
14620 2019-05-19  Bruno Haible  <bruno@clisp.org>
14622         localename: Fix default on macOS.
14623         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Don't test for CFLocaleCopyCurrent.
14624         * lib/localename.c: Remove includes for HAVE_CFLOCALECOPYCURRENT.
14625         (gl_locale_name_environ, gl_locale_name_default): Remove code for
14626         HAVE_CFLOCALECOPYCURRENT.
14627         * lib/localename.h (gl_locale_name_default): Update.
14629 2019-05-19  Karl Berry  <karl@freefriends.org>
14631         * config/srclistvars.sh (TEXINFOTEX): make ftp.gnu.org be the
14632         source for texinfo.tex, replacing TEXINFOSRC, per Texinfo maintainer.
14633         * config/srclist.txt (texinfo.tex): use it. (Also doc changes.)
14635 2019-05-18  Akim Demaille  <akim@lrde.epita.fr>
14637         maintainer-makefile: catch uses of $< in non-implicit rules
14638         * top/maint.mk (sc_prohibit_magic_number_exit): New.
14640 2019-05-18  Bruno Haible  <bruno@clisp.org>
14642         threadlib: Provide an easy way to avoid mingw's winpthreads library.
14643         * m4/threadlib.m4 (gl_AVOID_WINPTHREAD): New macro.
14644         (gl_THREADLIB_EARLY_BODY): Recognize when it was invoked, and set
14645         gl_use_threads accordingly.
14647 2019-05-18  Bruno Haible  <bruno@clisp.org>
14649         pthread_sigmask: Fix compilation error with --enable-threads=windows.
14650         Reported by Tim Rühsen in
14651         <https://lists.gnu.org/archive/html/bug-gnulib/2018-01/msg00018.html>
14652         and Michele Locati in
14653         <https://lists.gnu.org/archive/html/bug-gettext/2019-04/msg00057.html>.
14654         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Revert change from
14655         2015-06-01. Test whether pthread_sigmask is a macro, regardless of
14656         $LIBMULTITHREAD. Consider it regardless whether module 'threadlib' is
14657         in use and regardless which threads API is chosen.
14659 2019-05-14  Paul Eggert  <eggert@cs.ucla.edu>
14661         close-stream, closein, closeout: simplify
14662         I noticed this opportunity for simplification while drafting a
14663         new, related module that I haven’t had time to finish yet.
14664         * m4/close-stream.m4, m4/closein.m4, m4/closeout.m4: Remove.
14665         * modules/close-stream (Files): Remove m4/close-stream.m4.
14666         (configure.ac): Omit gl_CLOSE_STREAM.
14667         * modules/closein (Files): Remove m4/closein.m4
14668         (configure.ac): Omit gl_CLOSEIN.
14669         * modules/closeout (Files): Remove m4/closeout.m4.
14670         (configure.ac): Omit gl_CLOSEOUT.
14672 2019-05-12  Bruno Haible  <bruno@clisp.org>
14674         libtool-next-version: New program.
14675         * build-aux/libtool-next-version: New file.
14677 2019-05-11  John Darrington  <john@darrington.wattle.id.au>
14678             Bruno Haible  <bruno@clisp.org>
14680         version-etc: Ease translation.
14681         * lib/version-etc.c (version_etc_arn, emit_bug_reporting_address): Move
14682         URLs and formatting newlines out of translatable string.
14684 2019-05-11  Bruno Haible  <bruno@clisp.org>
14686         gnupload: Explain how to create symlinks.
14687         * build-aux/gnupload (usage): Add an example that creates symlinks.
14689 2019-05-11  Paul Eggert  <eggert@cs.ucla.edu>
14691         fpucw: port to gcc -pedantic
14692         * lib/fpucw.h (GET_FPUCW, SET_FPUCW):
14693         Use __extension__ if using ({ ... }).
14695         crypto/af_alg: port to strict C compilers
14696         * lib/af_alg.c: Include af_alg.h regardless, so that the
14697         compilation unit is nonempty.
14699 2019-05-10  Bruno Haible  <bruno@clisp.org>
14701         base64: Avoid false positive warning from Coverity.
14702         Reported by Kamil Dudka <kdudka@redhat.com>.
14703         Idea by Paul Eggert.
14704         * lib/base64.c (base64_encode_fast, base64_encode): Add a no-op
14705         '& 0x3f' to the array index expressions. This convinces Coverity that
14706         there is no out-of-bounds array reference, regardless of the input.
14708 2019-05-09  Bruno Haible  <bruno@clisp.org>
14710         gettext: Update to gettext 0.20.
14711         * modules/gettext (Files): Remove m4/codeset.m4, m4/fcntl-o.m4,
14712         m4/glibc2.m4, m4/glibc21.m4, m4/intdiv0.m4, m4/intl.m4, m4/intldir.m4,
14713         m4/intmax.m4, m4/inttypes_h.m4, m4/inttypes-pri.m4, m4/lcmessage.m4,
14714         m4/lock.m4, m4/longlong.m4, m4/printf-posix.m4, m4/size_max.m4,
14715         m4/stdint_h.m4, m4/threadlib.m4, m4/uintmax_t.m4, m4/visibility.m4,
14716         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4. Add m4/host-cpu-c-abi.m4.
14717         (configure.ac): Request infrastructure compatible with gettext 0.20.
14718         * m4/glibc2.m4: Remove file.
14719         * m4/intdiv0.m4: Remove file.
14720         * m4/intl.m4: Remove file.
14721         * m4/intldir.m4: Remove file.
14722         * m4/intmax.m4: Remove file.
14723         * m4/printf-posix.m4: Remove file.
14724         * m4/uintmax_t.m4: Remove file.
14725         * m4/gettext.m4: Update from gettext 0.20.
14726         * m4/po.m4: Likewise.
14728 2019-05-09  Paul Eggert  <eggert@cs.ucla.edu>
14730         verify: remove verify_true
14731         * NEWS: Mention this.
14732         * lib/verify.h (verify_true): Remove.
14733         * tests/test-verify.c (item): Test verify_expr, not verify_true.
14735         Support C2X and C++17 static_assert
14736         C2X and C++17 finally added support for a simple, single-argument
14737         ‘static_assert’ that implements what the Gnulib ‘verify’ macro was
14738         doing back in 2005.  Implement static_assert on older platforms.
14739         The only remaining advantage of ‘verify’ is a shorter name.
14740         * doc/posix-headers/assert.texi (assert.h):
14741         * doc/verify.texi (Compile-time Assertions):
14742         Modernize for C2X and C++17.
14743         * lib/verify.h (_GL_HAVE__STATIC_ASSERT1, _GL_HAVE_STATIC_ASSERT1):
14744         New macros.
14745         (_GL_HAVE__STATIC_ASSERT): Remove.
14746         (_GL_HAVE__STATIC_ASSERT): Rely more heavily on __STDC_VERSION__.
14747         (_GL_VERIFY_TRUE, _GL_VERIFY_TYPE): Remove 2nd arg, the diagnostic
14748         string.  All callers changed.
14749         (_GL_VERIFY): Require 3 or more args, of which only the first 2
14750         are used.  All callers changed.
14751         (_Static_assert): Allow either 1 or 2 args, and define if
14752         !_GL_HAVE__STATIC_ASSERT1 instead of defining if
14753         !_GL_HAVE__STATIC_ASSERT.
14754         (static_assert): Define if !_GL_HAVE_STATIC_ASSERT1 instead
14755         of defining if !_GL_HAVE_STATIC_ASSERT.
14756         (verify_expr, verify): Don’t bother trying to copy the expression
14757         into the diagnostic, since 1-argument static_assert doesn’t.
14758         (verify): Prefer 1-argument _Static_assert if it works.
14759         * m4/assert_h.m4 (gl_ASSERT_H): Check for 1-argument static_assert.
14761 2019-05-08  Paul Eggert  <eggert@cs.ucla.edu>
14763         Fix _GL_HAVE__STATIC_ASSERT typo
14764         * lib/verify.h (_Static_assert): For the FreeBSD workaround,
14765         use _GL_HAVE__STATIC_ASSERT, not _GL_HAVE_STATIC_ASSERT.
14767 2019-05-05  Bruno Haible  <bruno@clisp.org>
14769         wcwidth: Ensure width 1, not 2, for ambiguous characters.
14770         Reported by Kiyoshi KANAZAWA <yoi_no_myoujou@yahoo.co.jp>
14771         via Akim Demaille <akim.demaille@gmail.com>.
14772         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the width of U+2202. Use an
14773         en_US.UTF-8 locale, since that is more likely to be present than an
14774         fr_FR.UTF-8 locale.
14775         * tests/test-wcwidth.c (main): Check the width of U+2202.
14776         * doc/posix-functions/wcwidth.texi: Mention the issue.
14778 2019-05-03  Paul Eggert  <eggert@cs.ucla.edu>
14780         Port manywarnings to GCC 9
14781         * build-aux/gcc-warning.spec: Sort.  Add -Wattribute-alias,
14782         -Wc11-c2x-compat, -Wcast-result (for the D programming language),
14783         -Wclass-conversion, -Wdeprecated-copy, -Wdeprecated-copy-dtor,
14784         -Winit-list-lifetime, -Wpessimizing-move, -Wprio-ctor-dtor,
14785         -Wredundant-move.  Adjust to minor wording changes in GCC 9’s
14786         --help=warnings output.
14787         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wabsolute-value,
14788         -Waddress-of-packed-member, -Wattribute-warning, -Wcannot-profile,
14789         -Wmissing-profile.  Change -Wattribute-alias to -Wattribute-alias=2.
14791 2019-04-30  Paul Eggert  <eggert@cs.ucla.edu>
14793         Sync lib/mktime-internal.h from glibc
14794         * config/srclist.txt: Add entry for lib/mktime-internal.h.
14795         * lib/mktime-internal.h: Autoupdate.
14797 2019-04-28  Bruno Haible  <bruno@clisp.org>
14799         tls tests: Prevent that the test takes too long.
14800         * tests/test-tls.c: Include <signal.h>, <unistd.h>.
14801         (main): Let the test fail if it takes more than 10 minutes.
14802         * modules/tls-tests (configure.ac): Test whether 'alarm' is declared.
14804 2019-04-27  Bruno Haible  <bruno@clisp.org>
14806         lock tests: Prevent that the test takes too long.
14807         * tests/test-lock.c: Include <signal.h>, <unistd.h>.
14808         (main): Let the test fail if it takes more than 10 minutes.
14809         * modules/lock-tests (configure.ac): Test whether 'alarm' is declared.
14811 2019-04-27  Bruno Haible  <bruno@clisp.org>
14813         localename: Fix crash on mingw (regression from 2018-11-23).
14814         * lib/localename.c (gl_locale_name_posix): Don't attempt to convert a
14815         locale name that is null.
14817 2019-04-27  Bruno Haible  <bruno@clisp.org>
14819         Fix gcc warnings on 64-bit mode mingw.
14820         * lib/clean-temp.c: Include <stdint.h> instead of defining uintptr_t.
14821         * lib/gl_array_list.c: Likewise.
14822         * lib/gl_array_map.c: Likewise.
14823         * lib/gl_array_set.c: Likewise.
14824         * lib/gl_carray_list.c: Likewise.
14825         * lib/gl_sublist.c: Likewise.
14826         * lib/gl_avltreehash_list.c (uintptr_t): Remove definition.
14827         * lib/gl_rbtreehash_list.c (uintptr_t): Likewise.
14828         * lib/gl_hash_map.c (uintptr_t): Likewise.
14829         * lib/gl_hash_set.c (uintptr_t): Likewise.
14830         * lib/gl_linkedhash_list.c (uintptr_t): Likewise.
14831         * lib/gl_linkedhash_map.c (uintptr_t): Likewise.
14832         * lib/gl_linkedhash_set.c (uintptr_t): Likewise.
14833         * lib/iconv.c (uintptr_t): Likewise.
14834         * lib/iconv_close.c (uintptr_t): Likewise.
14835         * tests/test-lock.c: Include <stdint.h>.
14836         (once_contender_thread, test_once): Cast through 'intptr_t' instead of
14837         'long'.
14838         * modules/clean-temp (Depends-on): Add stdint.
14839         * modules/array-list (Depends-on): Likewise.
14840         * modules/array-map (Depends-on): Likewise.
14841         * modules/array-set (Depends-on): Likewise.
14842         * modules/carray-list (Depends-on): Likewise.
14843         * modules/sublist (Depends-on): Likewise.
14844         * modules/lock-tests (Depends-on): Likewise.
14846 2019-04-27  Bruno Haible  <bruno@clisp.org>
14848         error: Tweak indentation.
14849         * lib/error.c: Correct indentation.
14851 2019-04-27  Bruno Haible  <bruno@clisp.org>
14853         term-style-control: Fix gcc warning on mingw.
14854         * lib/term-style-control.c (ensure_other_signal_handlers): Reduce scope
14855         of i.
14857 2019-04-26  Bruno Haible  <bruno@clisp.org>
14859         pipe-filter-gi, pipe-filter-ii: Fix gcc warning.
14860         * lib/pipe-filter-aux.h (read): Undefine before redefinition.
14862 2019-04-26  Bruno Haible  <bruno@clisp.org>
14864         relocatable-prog: Fix gcc warning on mingw.
14865         * lib/progreloc.c (maybe_executable): Don't define on native Windows and
14866         on EMX.
14868 2019-04-02  Bruno Haible  <bruno@clisp.org>
14870         gitsub.sh: New file.
14871         * top/gitsub.sh: New file.
14873 2019-04-18  Akim Demaille  <akim@lrde.epita.fr>
14875         argmatch: use void* for raw memory pointers
14876         * lib/argmatch.h, lib/argmatch.c (argmatch, argmatch_valid)
14877         (__xargmatch_internal, argmatch_to_argument): Use void* for pointers
14878         to "values", keep char* for strings.
14880 2019-04-21  Akim Demaille  <akim@lrde.epita.fr>
14882         prefix-gnulib-mk: fix the support for gnulib-po
14883         * build-aux/prefix-gnulib-mk (prefix_assignment): Remove useless $res.
14884         Don't touch HAVE_* variables.
14885         Map AM_CPPFLAGS and AM_CPPFLAGS to the library's corresponding variables.
14887 2019-04-18  Bernhard Voelker  <mail@bernhard-voelker.de>
14889         di-set: allow free with 'ino_map' being NULL.
14890         * lib/di-set.c (di_set_free): Avoid ino_map_free() when dis->ino_map
14891         is NULL.  Bug introduced in commit 3703dbbe88dd.
14892         * tests/test-di-set.c: Add di_set_free() right after di_set_alloc()
14893         as a test.
14895 2019-04-14  Paul Eggert  <eggert@cs.ucla.edu>
14897         * lib/str-two-way.h: Fix comment typo.
14899 2019-04-13  Bruno Haible  <bruno@clisp.org>
14901         x-to-1: Restore ability to use original calling convention.
14902         * build-aux/x-to-1.in: Add comments. Accept the original form of
14903         HELP2MAN argument as well as the form expected since 2012-12-12.
14905 2019-04-13  Bruno Haible  <bruno@clisp.org>
14907         x-to-1: Avoid failure due to missing perl modules.
14908         * build-aux/x-to-1.in: Test whether all the perl modules that help2man
14909         needs are installed.
14911 2019-04-13  Bruno Haible  <bruno@clisp.org>
14913         openmp-init: New module.
14914         * modules/openmp-init: New file.
14915         * modules/openmp: (Files, Depends-on, configure.ac, Makefile.am): Revert
14916         the changes from 2019-04-09.
14918 2019-04-12  Bruno Haible  <bruno@clisp.org>
14920         signbit: Fix compilation error when gnulib's math.h exists twice.
14921         * lib/math.in.h (GNULIB_defined_signbit): New macro.
14923 2019-04-12  Bruno Haible  <bruno@clisp.org>
14925         openmp: Fix compilation error on platforms without OpenMP.
14926         * lib/omp-init.c: Include <omp.h> only if _OPENMP.
14928 2019-04-09  Bernhard Voelker  <mail@bernhard-voelker.de>
14930         mountlist: make parsing /proc/self/mountinfo more robust
14931         Cater for the following issues with mountinfo parsing (the first
14932         one was reported by Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
14933         in <https://bugs.gnu.org/35137>).
14934         1. The fields source, target, mntroot and fstype may contain characters
14935         like '\r'; sscanf(3) fails to read such values with the %s format
14936         specifier because it would stop at such characters.
14937         Example: "mount -t tmpfs tmpfs /foo^Mbar".
14938         The only true separator in that file is the ' ' character.
14939         2. The source field may be an empty string, which happens e.g. with
14940         "mount -t tmpfs '' /target".
14941         3. The fstype field may contain mangled characters as well which need
14942         unescaping.
14943         * lib/mountlist.c (terminate_at_blank): Add utility function.
14944         (read_file_system_list): In the block trying to read the mountinfo file,
14945         avoid using sscanf(3) with %s format; instead, parse the above fields
14946         separated by spaces one by one.
14947         This also handles the case when the source field is an empty string.
14948         Unescape the fstype field.
14950 2019-04-09  Bruno Haible  <bruno@clisp.org>
14952         openmp: Add workaround for 32-bit programs on AIX.
14953         * lib/omp.in.h: New file.
14954         * lib/omp-init.c: New file, based on lib/nproc.c.
14955         * m4/omp_h.m4: New file.
14956         * modules/openmp (Files): Add them.
14957         (Depends-on): Add include_next, c-ctype, setenv.
14958         (configure.ac): Invoke gl_OMP_H.
14959         (Makefile.am): Add rules to create omp.h and compile omp-init.c.
14960         (Include): Mention <omp.h>.
14962 2019-04-09  Bruno Haible  <bruno@clisp.org>
14964         nproc: Fix return value for privileged processes.
14965         * lib/nproc.c (num_processors_ignoring_omp): Test getuid(), not
14966         getpid().
14968 2019-04-07  Bruno Haible  <bruno@clisp.org>
14970         Add copyright notices in several files.
14971         Reported by <ineiev@gnu.org> in <https://savannah.gnu.org/bugs/?54809>.
14972         * lib/_Noreturn.h: Add LGPLv2+ copyright notice.
14973         * lib/libunistring.valgrind: Likewise.
14974         * lib/iconv_open-*.gperf: Add GPLv2+ copyright notice.
14975         * lib/uniname/gen-uninames.lisp: Add GPLv3+ copyright notice.
14976         * lib/memchr.valgrind: Likewise.
14977         * lib/memchr2.valgrind: Likewise.
14978         * lib/rawmemchr.valgrind: Likewise.
14979         * lib/relocatable.valgrind: Likewise.
14980         * lib/strchrnul.valgrind: Likewise.
14982 2019-03-25  Bruno Haible  <bruno@clisp.org>
14984         term-style-control tests: Fix link error.
14985         Reported by Tom G. Christensen in
14986         <https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00108.html>.
14987         * modules/term-style-control-tests (Makefile.am): Link
14988         test-term-style-control-hello and test-term-style-control-yes against
14989         LIBINTL.
14991 2019-03-24  Bruno Haible  <bruno@clisp.org>
14993         term-style-control: Add tests.
14994         * tests/test-term-style-control-hello.c: New file.
14995         * tests/test-term-style-control-yes.c: New file.
14996         * modules/term-style-control-tests: New file.
14998         term-style-control: New module.
14999         * lib/term-style-control.h: New file, based on libtextstyle's
15000         term-ostream.oo.h and term-ostream.oo.c.
15001         * lib/term-style-control.c: New file, based on libtextstyle's
15002         term-ostream.oo.c.
15003         * modules/term-style-control: New file.
15005 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15007         _Noreturn: beware of C's _Noreturn in C++ pre C++11.
15008         * lib/_Noreturn.h, m4/gnulib-common.m4: Using C's _Noreturn in
15009         C++98 appears to be supported by Clang, but not by GCC nor ICC.
15011 2019-03-23  Bruno Haible  <bruno@clisp.org>
15013         Support cross-compilation to musl libc.
15014         Reported by Necktwi Ozfguah <necktwi@ferryfair.com>.
15015         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Add cross-compilation guesses for
15016         musl libc.
15017         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
15018         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
15019         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
15020         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
15021         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
15022         * m4/chown.m4 (gl_FUNC_CHOWN): Likewise.
15023         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
15024         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
15025         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
15026         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
15027         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Likewise.
15028         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Likewise.
15029         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
15030         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
15031         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
15032         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
15033         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
15034         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
15035         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
15036         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
15037         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
15038         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
15039         * m4/getgroups.m4 (AC_FUNC_GETGROUPS, gl_FUNC_GETGROUPS): Likewise.
15040         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
15041         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
15042         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
15043         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
15044         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
15045         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): Likewise.
15046         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
15047         * m4/log.m4 (gl_FUNC_LOG): Likewise.
15048         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
15049         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
15050         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
15051         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
15052         * m4/log10l.m4 (gl_FUNC_LOG10L): Likewise.
15053         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
15054         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
15055         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
15056         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
15057         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
15058         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Likewise.
15059         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
15060         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
15061         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
15062         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
15063         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
15064         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
15065         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_INFINITE,
15066         gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_A,
15067         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO, gl_SNPRINTF_TRUNCATION_C99,
15068         gl_SNPRINTF_RETVAL_C99, gl_SNPRINTF_DIRECTIVE_N,
15069         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
15070         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
15071         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
15072         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Likewise.
15073         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
15074         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
15075         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
15076         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
15077         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
15078         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
15079         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
15080         * m4/setenv.m4 (gl_FUNC_SETENV): Likewise.
15081         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
15082         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
15083         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15084         * m4/strerror.m4 (gl_FUNC_STRERROR, gl_FUNC_STRERROR_0): Likewise.
15085         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
15086         * m4/strtold.m4 (gl_FUNC_STRTOLD): Likewise.
15087         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
15088         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
15089         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
15090         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
15091         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
15092         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
15093         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
15094         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
15096 2019-03-23  Bruno Haible  <bruno@clisp.org>
15098         posix_spawn_file_actions_*: Document musl libc bugs.
15099         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
15100         the bug.
15101         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Likewise.
15102         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Likewise.
15103         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): When
15104         cross-compiling to a musl system, guess no.
15105         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): Likewise.
15106         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
15108 2019-03-23  Bruno Haible  <bruno@clisp.org>
15110         futimens: Document musl libc bug.
15111         * doc/posix-functions/futimens.texi: Mention the bug.
15112         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Require AC_CANONICAL_HOST. When
15113         cross-compiling, guess no on glibc and musl systems.
15115 2019-03-23  Bruno Haible  <bruno@clisp.org>
15117         Clarify that cross-compilation guesses are guesses.
15118         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): When cross-compiling, add
15119         prefix 'guessing ' to gl_cv_func_chown_follows_symlink.
15120         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): When cross-compiling, add
15121         prefix 'guessing ' to gl_cv_func_fchownat_nofollow_works.
15122         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): When
15123         cross-compiling, add prefix 'guessing ' to gl_cv_func_getcwd_abort_bug.
15124         * m4/glob.m4 (gl_GLOB): When cross-compiling, add prefix 'guessing ' to
15125         gl_cv_glob_lists_symlinks.
15126         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): When cross-compiling, add prefix
15127         'guessing ' to ac_cv_func_malloc_0_nonnull.
15128         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): When cross-compiling, add prefix
15129         'guessing ' to ac_cv_func_realloc_0_nonnull.
15130         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, add prefix
15131         'guessing ' to gl_cv_func_poll.
15132         * m4/iconv_open-utf.m4 (gl_FUNC_ICONV_OPEN_UTF_SUPPORT): When cross-
15133         compiling, add prefix 'guessing ' to gl_cv_func_iconv_supports_utf.
15134         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Update accordingly.
15136 2019-03-23  Bruno Haible  <bruno@clisp.org>
15138         strtold: Fix typo.
15139         * m4/strtold.m4 (gl_FUNC_STRTOLD): Fix typo in variable name.
15141 2019-03-23  Bruno Haible  <bruno@clisp.org>
15143         noreturn: In C++ mode with clang, use _Noreturn as fallback.
15144         Reported by Akim Demaille.
15145         * lib/noreturn.h (_GL_NORETURN_FUNC): In C++ mode with clang, when
15146         [[noreturn]] would not work, use _Noreturn instead.
15148 2019-03-22  Akim Demaille  <akim@lrde.epita.fr>
15150         libtextstyle-optional: Fix compiler warnings.
15151         * lib/textstyle.in.h (html_styled_ostream_create): Flag arguments
15152         as unused.
15154 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15156         bitset: fix memory leaks
15157         Reported by Bruno Haible.
15158         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00027.html
15159         * lib/bitset/vector.c (vbitset_free): New.
15160         (vbitset_vtable): Use it.
15162 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15164         bitset: minor changes
15165         * lib/bitset/base.h (bitset_alloc_type): Remove, unused.
15166         * lib/bitset/table.c: Formatting changes.
15167         Remove useless braces.
15168         Prefer using else in cascades of if/else-if with returns.
15169         * lib/bitset/vector.c: Reduce scopes.
15171 2019-03-19  Akim Demaille  <akim@lrde.epita.fr>
15173         bitset: expose bitset_resize
15174         * lib/bitset.h (bitset_resize): Bounce on the polymorphic implementation.
15175         * tests/test-bitset.c (check_attributes): Check bitset_resize.
15176         (main): Use a variable bitset as reference, since fixed does not support resize.
15178 2019-03-19  Bruno Haible  <bruno@clisp.org>
15180         doc: Document the 'stdnoreturn' and 'noreturn' modules.
15181         Reported by Akim Demaille.
15182         * doc/noreturn.texi: New file.
15183         * doc/gnulib.texi: Include it.
15185 2019-03-19  Bruno Haible  <bruno@clisp.org>
15187         doc: Document how to use 'static inline'.
15188         * doc/static-inline.texi: New file.
15189         * doc/gnulib.texi: Include it.
15191 2019-03-19  Bruno Haible  <bruno@clisp.org>
15193         libtextstyle-optional: Add tests.
15194         * tests/test-libtextstyle.c: New file, based on libtextstyle's
15195         adhoc-tests/hello.c.
15196         * tests/test-libtextstyle-default.css: New file, copied from
15197         libtextstyle's adhoc-tests/hello-default.css.
15198         * modules/libtextstyle-optional-tests: New file.
15200         libtextstyle-optional: New module.
15201         * lib/textstyle.in.h: New file, based on libtextstyle's textstyle.h.
15202         * m4/libtextstyle-optional.m4: New file, based on m4/libtextstyle.m4.
15203         * modules/libtextstyle-optional: New file.
15205 2019-03-19  Bruno Haible  <bruno@clisp.org>
15207         c-stack: Make signal handlers more reliable.
15208         * lib/c-stack.c (progname): New variable.
15209         (die): Use it.
15210         (c_stack_action): Initialize it.
15211         (segv_handler): Save and restore errno.
15213 2019-03-19  Bruno Haible  <bruno@clisp.org>
15215         Help making signal handlers more reliable.
15216         * m4/gnulib-common.m4 (gl_COMMON_BODY): Emit definition of
15217         _GL_ASYNC_SAFE into config.h.
15218         * lib/nanosleep.c (sighandler): Mark as _GL_ASYNC_SAFE.
15219         * lib/fatal-signal.h (at_fatal_signal): Add _GL_ASYNC_SAFE marker to
15220         argument.
15221         * lib/fatal-signal.c (action_t, uninstall_handlers,
15222         fatal_signal_handler): Mark as _GL_ASYNC_SAFE.
15223         * lib/clean-temp.c (cleanup_action): Mark as _GL_ASYNC_SAFE.
15224         * lib/wait-process.c (cleanup_slaves, cleanup_slaves_action): Mark as
15225         _GL_ASYNC_SAFE.
15226         * lib/c-stack.h (c_stack_action): Add _GL_ASYNC_SAFE marker to argument.
15227         * lib/c-stack.c: Add _GL_ASYNC_SAFE markers.
15229 2019-03-18  Bruno Haible  <bruno@clisp.org>
15231         _Noreturn: clang and MSVC do support [[noreturn]] in C++11 mode.
15232         * lib/_Noreturn.h: Use [[noreturn]] if __GNUC__ and __GNUC_MINOR__
15233         indicate clang, or if _MSC_VER indicates MSVC++ 14.0 or newer.
15235 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15237         _Noreturn: GCC 4.7 does not support [[noreturn]] in C++11 mode
15238         * lib/_Noreturn.h, m4/gnulib-common.m4: Don't use [[noreturn]] before
15239         GCC 4.8.
15241 2019-03-17  Paul Eggert  <eggert@cs.ucla.edu>
15243         fts: minor simplification
15244         * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
15246 2019-03-17  Akim Demaille  <akim@lrde.epita.fr>
15248         bitset, timevar: Depend on c99.
15249         Reported by Bruno Haible.
15250         * modules/bitset, modules/timevar (Depends-on): Add c99.
15252 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15254         bitset: a bit (...) more tests
15255         * tests/test-bitset.c (check_attributes): Check zero and ones.
15257 2019-03-16  Akim Demaille  <akim@lrde.epita.fr>
15259         bitset: fix overflows.
15260         Reported by Bruno Haible.
15261         https://lists.gnu.org/archive/html/bug-gnulib/2019-03/msg00017.html
15262         * lib/bitset/table.c (tbitset_test): last_bit is the position of
15263         the bit in the array of bitset_word, so be sure to take its modulo
15264         number-of-bits-in-bitset-word (i.e., EBITSET_ELT_WORDS).
15265         * lib/bitset/list.c (lbitset_unused_clear): Likewise.
15267 2019-03-14  Akim Demaille  <akim@lrde.epita.fr>
15269         bitset: style changes.
15270         * lib/bitset/table.c: Use NULL, not 0, for pointers.
15271         Formatting changes.
15272         (tbitset_list): Reduce scopes.
15274 2019-03-16  Bruno Haible  <bruno@clisp.org>
15276         fatal-signal: Pass the signal number to the action.
15277         * lib/fatal-signal.h (at_fatal_signal): Change the signature.
15278         * lib/fatal-signal.c (action_t): Take the signal number as parameter.
15279         (fatal_signal_handler): Pass the signal number to the action.
15280         * lib/clean-temp.c (cleanup_action): Renamed from cleanup. Take the
15281         signal number as parameter.
15282         (create_temp_dir): Update.
15283         * lib/wait-process.c (cleanup_slaves_action): New function.
15284         (register_slave_subprocess): Update at_fatal_signal invocation.
15285         * NEWS: Mention the change.
15287 2019-03-16  Bruno Haible  <bruno@clisp.org>
15289         fatal-signal: Add function that lists the fatal signals.
15290         * lib/fatal-signal.h (get_fatal_signals): New declaration.
15291         * lib/fatal-signal.c (get_fatal_signals): New function.
15293 2019-03-14  Bruno Haible  <bruno@clisp.org>
15295         isatty: Make it return true in Cygwin consoles on native Windows.
15296         * lib/isatty.c: Include <string.h>.
15297         (GetProcAddress): New macro.
15298         (GetNamedPipeClientProcessIdFuncType): New type.
15299         (GetNamedPipeClientProcessIdFunc): New variable.
15300         (QueryFullProcessImageNameFuncType): New type.
15301         (QueryFullProcessImageNameFunc): New variable.
15302         (initialized): New variable.
15303         (initialize): New function.
15304         (IsCygwinConsoleHandle): New function.
15305         (isatty): Invoke it.
15306         * doc/posix-functions/isatty.texi: Mention the issue.
15308 2019-03-14  Bruno Haible  <bruno@clisp.org>
15310         all: Update URLs to msdn.microsoft.com.
15311         * lib/stat-w32.c et al.: Update URLs after most of msdn.microsoft.com
15312         was moved to docs.microsoft.com.
15314 2019-03-13  Bruno Haible  <bruno@clisp.org>
15316         gnulib-tool: Clarify the coding style.
15317         Suggested by Pavel Raiskup <praiskup@redhat.com>.
15318         * gnulib-tool: Add comment about coding style.
15320 2019-03-11  Paul Eggert  <eggert@cs.ucla.edu>
15322         strtod: fix clash with strtold
15323         Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817).
15324         * lib/strtod.c (compute_minus_zero, minus_zero):
15325         Simplify by remving the macro / external variable,
15326         and having just a function.  User changed.  This avoids
15327         the need for an external variable that might clash.
15329 2019-03-10  Bruno Haible  <bruno@clisp.org>
15331         alloca-opt: Fix conflict mingw's new <alloca.h> file.
15332         Reported by Eli Zaretskii <eliz@gnu.org>.
15333         * lib/alloca.in.h: On mingw systems that have <alloca.h>, include that.
15334         * m4/alloca.m4 (gl_FUNC_ALLOCA): Set HAVE_ALLOCA_H.
15335         * modules/alloca-opt (Makefile.am): Substitute HAVE_ALLOCA_H.
15337 2019-03-10  Bruno Haible  <bruno@clisp.org>
15339         tests: Avoid havoc with "gcc -fcheck-pointer-bounds".
15340         * tests/test-fprintf-posix2.c: Skip the test when -fcheck-pointer-bounds
15341         is in use.
15342         * tests/test-printf-posix2.c: Likewise.
15344 2019-03-10  Bruno Haible  <bruno@clisp.org>
15346         uninorm tests: Free allocated memory.
15347         * tests/uninorm/test-u32-normalize-big.h
15348         (struct normalization_test_file): Remove 'const' from allocated member.
15349         (free_normalization_test_file): New declaration.
15350         * tests/uninorm/test-u32-normalize-big.c (test_other): Free allocated
15351         memory.
15352         (free_normalization_test_file): New function.
15353         * tests/uninorm/test-u32-nfc-big.c (main): Free allocated
15354         'struct normalization_test_file' contents.
15355         * tests/uninorm/test-u32-nfd-big.c (main): Likewise.
15356         * tests/uninorm/test-u32-nfkc-big.c (main): Likewise.
15357         * tests/uninorm/test-u32-nfkd-big.c (main): Likewise.
15359 2019-03-10  Bruno Haible  <bruno@clisp.org>
15361         di-set: Fix memory leak.
15362         * lib/di-set.c (di_set_free): Free the ino_map through ino_map_free(),
15363         not free().
15365 2019-03-10  Bruno Haible  <bruno@clisp.org>
15367         tests: Free allocated memory.
15368         Reported by <deltatau@protonmail.com> via Assaf Gordon.
15369         * tests/test-astrxfrm.c (main): Free allocated memory.
15370         * tests/test-bitset.c (compare, check_attributes): Free allocated
15371         bitsets.
15372         * tests/test-filenamecat.c (main): Free allocated memory.
15373         * tests/test-freadahead.c (main): Free allocated memory and close stdin.
15374         * tests/test-freadptr.c (main): Likewise.
15375         * tests/test-freadptr2.c (main): Free allocated memory.
15376         * tests/test-freadseek.c (main): Likewise.
15377         * tests/test-gc-arcfour.c (main): Close allocated context.
15378         * tests/test-gc-arctwo.c (main): Likewise.
15379         * tests/test-gc-des.c (main): Close all allocated contexts.
15380         * tests/test-pipe-filter-gi1.c (main): Free allocated memory.
15381         * tests/test-pipe-filter-ii1.c (main): Likewise.
15382         * tests/test-posix_spawn_file_actions_addchdir.c (main): Destroy the
15383         allocated file actions.
15384         * tests/test-posix_spawn_file_actions_addclose.c (main): Likewise.
15385         * tests/test-posix_spawn_file_actions_adddup2.c (main): Likewise.
15386         * tests/test-posix_spawn_file_actions_addopen.c (main): Likewise.
15387         * tests/test-sameacls.c (main): Free allocated memory and ACLs.
15388         * tests/test-strfmon_l.c (main): Free allocated locales.
15389         * tests/test-striconveh.c (main): Free allocated iconv_t objects.
15390         * tests/uniconv/test-u8-conv-to-enc.c (main): Free allocated memory.
15391         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15392         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15393         * tests/unistr/test-chr.h (main): Free input32.
15394         * tests/unistr/test-strchr.h (test_strchr): Likewise.
15396 2019-03-10  Bruno Haible  <bruno@clisp.org>
15398         tests: Prepare for using valgrind.
15399         * tests/*.sh: Invoke all test programs through ${CHECKER}.
15400         * tests/*/*.sh: Likewise.
15401         * tests/test-freadptr.c (main): Update accordingly.
15402         * tests/test-freadseek.c (main): Likewise.
15404 2019-03-09  Bruno Haible  <bruno@clisp.org>
15406         get-rusage-as, pthread_sigmask tests: Fix -fsanitize=thread findings.
15407         * lib/get-rusage-as.c (get_rusage_as): When compiled by
15408         "gcc -fsanitize=thread", don't try get_rusage_as_via_setrlimit.
15409         * tests/test-pthread_sigmask2.c (main): Clean up the killer_thread
15410         before exiting.
15412 2019-03-09  Jim Meyering  <meyering@fb.com>
15414         test-userspec.c: don't print NULL
15415         * tests/test-userspec.c (main): A test release of gcc,
15416         9.0.1 20190310, warned that this test would attempt to
15417         print a NULL pointer via a %s printf format.  Fix that
15418         and remove the unnecessary preceding "!diag" conjunct.
15419         Also add a comment.
15421 2019-03-03  Bruno Haible  <bruno@clisp.org>
15423         getloadavg: Write NULL for the null pointer.
15424         Reported by Michal Privoznik <mprivozn@redhat.com>.
15425         * lib/getloadavg.c (getloadavg): Write NULL instead of 0.
15427 2019-02-28  Michal Privoznik  <mprivozn@redhat.com>
15429         alloca, tsearch-tests: Write NULL for the null pointer.
15430         * lib/alloca.c (i00afunc): Write NULL instead of 0.
15431         * tests/test-tsearch.c (mangle_tree): Likewise.
15433 2019-03-09  Bruno Haible  <bruno@clisp.org>
15435         strfmon_l: Fix -fsanitize=address finding.
15436         * lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
15437         <string.h>.
15438         (MAX_ARGS): Renamed from MAX_ARG_WORDS.
15439         (directive_t, directives_t): New types.
15440         (fmon_parse): New function.
15441         (rpl_strfmon_l): Don't call va_arg more often than needed for the
15442         format string. Consume 'long double' arguments in places where the
15443         format string indicates so.
15444         * modules/strfmon_l (Depends-on): Add 'stdbool'.
15446 2019-03-09  Bruno Haible  <bruno@clisp.org>
15448         crypto/des: Fix undefined behaviour.
15449         * lib/des.c (READ_64BIT_DATA): Cast bytes to 'unsigned int', to avoid
15450         shift operations on 'int'.
15452 2019-03-09  Bruno Haible  <bruno@clisp.org>
15454         Fix undefined behaviour.
15455         * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
15456         'unsigned int', to avoid shift operations on 'int'.
15457         * lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
15458         * tests/test-count-leading-zeros.c (main): Use a random number that has
15459         as many bits as TYPE, not only 2*15 or 2*31 bits.
15460         * tests/test-count-trailing-zeros.c (main): Likewise.
15461         * tests/test-count-one-bits.c (main): Likewise.
15462         * tests/test-memmem.c: Don't include "null-ptr.h".
15463         (main): Use zerosize_ptr() instead of null_ptr().
15464         * modules/memmem-tests (Files): Remove tests/null-ptr.h.
15466 2019-03-08  Bruno Haible  <bruno@clisp.org>
15468         unilbrk/u*-possible-linebreaks: Fix undefined behaviour.
15469         Reported by Jeffrey Walton <noloader@gmail.com>.
15470         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks): Don't
15471         invoke memset with a zero size.
15472         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15473         Likewise.
15474         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15475         Adjust accordingly.
15477 2019-03-08  Bruno Haible  <bruno@clisp.org>
15479         unistr/*, uniconv/*: Fix undefined behaviour.
15480         Reported by Jeffrey Walton <noloader@gmail.com>.
15481         * lib/unistr/u-cpy.h (FUNC): Don't invoke memcpy with a zero size.
15482         * lib/unistr/u-cpy-alloc.h (FUNC): Likewise.
15483         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
15484         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
15486 2019-03-08  Bruno Haible  <bruno@clisp.org>
15488         unistr/u8-cmp: Fix undefined behaviour.
15489         Reported by Jeffrey Walton <noloader@gmail.com>.
15490         * lib/unistr/u8-cmp.c (u8_cmp): Don't invoke memcmp if n is zero.
15492 2019-03-08  Bruno Haible  <bruno@clisp.org>
15494         unictype/numeric: Fix undefined behaviour.
15495         Reported by Jeffrey Walton <noloader@gmail.com>.
15496         * lib/unictype/numeric.c (uc_numeric_value): Avoid undefined behaviour
15497         on shift overflow, caught by "gcc -fsanitize=undefined".
15498         * lib/unictype/bidi_of.c (uc_bidi_class): Add cast, for clarity.
15499         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
15500         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
15502 2019-03-05  Paul Eggert  <eggert@cs.ucla.edu>
15504         git-version-gen: fix --version copyright year
15505         * build-aux/git-version-gen, build-aux/move-if-change (version):
15506         --version output copyright year is now taken from script year,
15507         so that it no longer needs to be updated by hand.
15509 2019-03-04  Bruno Haible  <bruno@clisp.org>
15511         relocatable-prog: Use wrapper-free installation on Mac OS X, take 2.
15512         This approach supports relocatable installation of shared libraries
15513         which depend on other shared libraries from the same package.
15514         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15515         If use_macos_tools is true, use reloc-ldflags and set LIBTOOL to be a
15516         wrapper around the original LIBTOOL.
15517         * build-aux/reloc-ldflags: Add support for Mac OS X, which uses the
15518         token '@loader_path' instead of '$ORIGIN'.
15519         * build-aux/libtool-reloc: New file.
15520         * modules/relocatable-prog (Files): Add it.
15521         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15522         the recent changes. Document the need to set the *_LDFLAGS of libraries.
15523         RELOCATABLE_LIBRARY_PATH and RELOCATABLE_CONFIG_H_DIR should be set in
15524         Makefile.am, not in configure.ac.
15526 2019-03-04  Bruno Haible  <bruno@clisp.org>
15528         relocatable-prog: Revert "Use wrapper-free installation on Mac OS X."
15529         * build-aux/install-reloc: Revert change.
15530         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
15532 2019-02-24  Paul Eggert  <eggert@cs.ucla.edu>
15534         nstrftime: support the ‘+’ flag
15535         * lib/nstrftime.c (add, __strftime_internal):
15536         Add support for the ‘+’ flag introduced in POSIX.1-2017.
15537         (__strftime_internal): New arg ‘width’.  All uses changed.
15538         (DO_YEARISH, DO_MAYBE_SIGNED_NUMBER): New macros.
15540 2019-02-24  Bruno Haible  <bruno@clisp.org>
15542         relocatable-prog: Improve verbose output.
15543         * build-aux/install-reloc (func_verbose): Escape characters that would
15544         be interpreted by the shell.
15546 2019-02-24  Bruno Haible  <bruno@clisp.org>
15548         stat, lstat: Fix conflict with relocatable-prog-wrapper module.
15549         * lib/stat.c: On platforms other than OSF/1, include <sys/stat.h>, not
15550         "sys/stat.h".
15551         * lib/lstat.c: Likewise.
15552         * lib/fstat.c: Likewise.
15553         * lib/fstatat.c: Likewise.
15555 2019-02-23  Bernhard Voelker  <mail@bernhard-voelker.de>
15557         long-options: add parse_gnu_standard_options_only
15558         Discussed in https://bugs.gnu.org/33468 .
15560         * lib/long-options.c (parse_long_options): Use EXIT_SUCCESS instead of 0
15561         (parse_gnu_standard_options_only): Add function to process
15562         the GNU default options --help and --version and fail for
15563         any other unknown long or short option. See
15564         https://gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html
15565         * lib/long-options.h (parse_gnu_standard_options_only): Declare it.
15566         * modules/long-options (depends-on): Add stdbool, exitfail.
15567         * top/maint.mk (sc_prohibit_long_options_without_use): Update
15568         syntax-check rule, add new function name.
15570 2019-02-23  Bruno Haible  <bruno@clisp.org>
15572         relocatable-prog: Update documentation.
15573         * doc/relocatable-maint.texi (Supporting Relocation): Update to match
15574         the recent changes.
15576 2019-02-23  Paul Eggert  <eggert@cs.ucla.edu>
15578         nstrftime: tweak arg order
15579         * lib/nstrftime.c (__strftime_internal): Interchange arg order.
15580         All callers changed.  Suggested by TAMUKI Shoichi in:
15581         https://lists.gnu.org/r/bug-gnulib/2019-02/msg00052.html
15583 2019-02-23  Bruno Haible  <bruno@clisp.org>
15585         relocatable-prog: Use wrapper-free installation also on Mac OS X.
15586         Reported by Paul Smith <psmith@gnu.org>.
15587         * build-aux/install-reloc: Accept a 'mode' argument as first argument.
15588         (func_relativize): New function, from gnulib-tool.
15589         Handle mode 'macosx' through invocations of 'otool' and
15590         'install_name_tool'.
15591         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Determine use_macos_tools.
15592         If use_macos_tools is true, set INSTALL_PROGRAM_ENV to an
15593         'install-reloc' invocation with mode 'macosx'.
15595 2019-02-23  Bruno Haible  <bruno@clisp.org>
15597         relocatable-prog: Use $ORIGIN trick also on GNU/Hurd.
15598         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15599         Hurd with glibc >= 2.27.
15601 2019-02-21  Paul Eggert  <eggert@cs.ucla.edu>
15603         nstrftime: merge glibc strftime changes
15604         This incorporates:
15605         2019-02-11 Fix a few whitespace arrangement inconsistencies
15606         2019-01-24 strftime: Pass flags from "%EY" to "%Ey" [BZ #24096]
15607         2019-01-24 Set the default width of "%Ey" to 2 [BZ #23758]
15608         2019-01-11 strftime: use the "L_" macro with character literals
15609         * lib/nstrftime.c (__strftime_internal): New arg yr_spec.  All
15610         callers changed.  Default width of %Ey is now 2.  This is needed
15611         for proper handling of Japanese dates starting on 2019-05-01.
15613 2019-02-19  Bruno Haible  <bruno@clisp.org>
15615         relocatable-prog: Use $ORIGIN trick on more platforms.
15616         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Use $ORIGIN trick also on
15617         FreeBSD >= 7.3, DragonFly >= 3.0, NetBSD >= 8.0, OpenBSD >= 5.4,
15618         Solaris >= 10, Haiku. But don't use it on Android.
15619         * build-aux/reloc-ldflags: Allow the use of the $ORIGIN trick also on
15620         Hurd, FreeBSD, DragonFly, NetBSD, OpenBSD, Solaris, Haiku.
15622 2019-02-19  Bruno Haible  <bruno@clisp.org>
15624         progreloc: Speed up executable lookup on various platforms.
15625         * lib/progreloc.c: Include <errno.h>.
15626         (safe_read, full_read): New functions.
15627         (find_executable): On GNU/kFreeBSD, FreeBSD, DragonFly, NetBSD, Solaris,
15628         prefer the information from the /proc file system to a PATH search.
15630 2019-02-19  Bruno Haible  <bruno@clisp.org>
15632         progreloc: Simplify code for Android.
15633         * lib/progreloc.c (executable_fd): Don't define on Android.
15634         (maybe_executable, find_executable): Don't use executable_fd on Android.
15636 2019-02-15  Bruno Haible  <bruno@clisp.org>
15638         gnulib-tool: Support --import with just a few tests, not --with-tests.
15639         * gnulib-tool (func_import): New variable 'gentests'. Use it instead of
15640         'inctests' when generating files; use 'inctests' only for computing the
15641         transitive closure.
15643 2019-02-14  Bruno Haible  <bruno@clisp.org>
15645         gnulib-tool: Improve handling of multiple --local-dir options.
15646         * doc/gnulib.texi (Extending Gnulib): Explain how multiple --local-dir
15647         options work.
15648         * gnulib-tool (func_path_prepend): Remove function.
15649         (func_path_foreach): Make IFS handling more robust.
15650         (local_gnulib_path): Collect --local-dir values using func_path_append,
15651         not func_path_prepend.
15652         (func_determine_path_separator): Make IFS handling more robust.
15653         (func_lookup_file_cb): New function.
15654         (func_lookup_file): Rewritten to use func_lookup_file_cb instead of
15655         func_lookup_local_file. Apply the patches in the reverse order of their
15656         origin in $local_gnulib_path.
15657         (func_count_relative_local_gnulib_path): Make IFS handling more robust.
15658         * NEWS: Mention that the first --local-dir option is the one with
15659         highest priority.
15661 2019-02-10  Bruno Haible  <bruno@clisp.org>
15663         libtextstyle: New module.
15664         * m4/libtextstyle.m4: New file.
15665         * modules/libtextstyle: New file.
15667 2019-02-05  Bruno Haible  <bruno@clisp.org>
15669         declared.sh: Fix bug with variables of pointer type.
15670         * build-aux/declared.sh (sed_extract_extern_declared): Allow the space
15671         before the symbol to be omitted if the preceding character is a '*'.
15673 2019-02-04  Bruno Haible  <bruno@clisp.org>
15675         Add script for running tests under valgrind.
15676         * build-aux/run-test: New file, from GNU libunistring.
15677         * doc/valgrind-tests.texi: Rewritten to mention alternative approaches
15678         as well.
15680 2019-02-04  Bruno Haible  <bruno@clisp.org>
15682         declared.sh: Fix --version output.
15683         * build-aux/declared.sh (func_version): Update package name.
15685 2019-02-03  Bruno Haible  <bruno@clisp.org>
15687         Add script for determining the set of symbols to export from a library.
15688         * build-aux/declared.sh: New file, from GNU libunistring.
15689         * doc/lib-symbol-visibility.texi (Exported Symbols of Shared Libraries):
15690         Mention it.
15692 2019-02-02  Paul Eggert  <eggert@cs.ucla.edu>
15694         vla: add commentary about VLA_ELEMS
15695         * lib/vla.h (VLA_ELEMS): Add commentary,
15696         some inspired by Bruno Haible’s proposal in:
15697         https://lists.gnu.org/r/bug-gnulib/2019-01/msg00109.html
15699         dtoastr,ftoastr,ldtoastr: port to c-strtod changes
15700         Decouple these modules from c-strtod.  Nowadays it’s reasonable to
15701         assume the C99 signatures for strtod and strtold.  Programs that
15702         require stricter adherence to C99 should also use the strtod and
15703         strtold modules as needed, and we no longer need the
15704         HAVE_C99_STRTOLD macro.
15705         * NEWS: Mention this.
15706         * lib/ftoastr.c (STRTOF) [LENGTH == 3]: Assume strtold.
15707         * m4/c-strtod.m4 (gl_C_STRTOLD): Do not define HAVE_C99_STRTOLD.
15708         * modules/dtoastr, modules/ftoastr, modules/ldtoastr:
15709         (Files): Remove m4/c-strtod.m4.
15710         (configure.ac): Do not require gl_C99_STRTOLD, which no longer
15711         exists.
15713 2019-02-02  Bruno Haible  <bruno@clisp.org>
15715         fma: Improve code style.
15716         * lib/fma.c: Include <limits.h>, for CHAR_BIT.
15718 2019-02-02  Colin Watson  <cjwatson@debian.org>
15720         *-map tests: Fix compilation error.
15721         * tests/test-array_map.c: Include <limits.h>, for CHAR_BIT.
15722         * tests/test-hash_map.c: Likewise.
15723         * tests/test-linkedhash_map.c: Likewise.
15725 2019-01-31  Bruno Haible  <bruno@clisp.org>
15727         c-strtod, c-strtold: Use the bug fixes for strtod, strtold.
15728         * lib/stdlib.in.h (GNULIB_defined_strtod_function,
15729         GNULIB_defined_strtold_function): New macros.
15730         * lib/c-strtod.c (HAVE_GOOD_STRTOD_L): New macro.
15731         (STRTOD): Ignore HAVE_C99_STRTOLD.
15732         (c_locale): Don't define it on platforms where strtod_l/strtold_l is
15733         deemed buggy. But do use it on platforms where uselocale exists and is
15734         usable.
15735         (C_STRTOD): Don't use STRTOD_L on platforms where strtod_l/strtold_l is
15736         deemed buggy. On platforms where uselocale exists and is usable, use
15737         uselocale and strtod/strtold.
15738         * m4/c-strtod.m4 (gl_C99_STRTOLD): Remove macro.
15739         (gl_C_STRTOD): Require gt_FUNC_USELOCALE.
15740         (gl_C_STRTOLD): Likewise. Define HAVE_C99_STRTOLD unconditionally.
15741         * modules/c-strtod (Files): Add m4/intl-thread-locale.m4.
15742         (Depends-on): Add strtod.
15743         * modules/c-strtold (Files): Add m4/intl-thread-locale.m4.
15744         (Depends-on): Add strtold.
15746 2019-01-31  Bruno Haible  <bruno@clisp.org>
15748         strtod, strtold: Use the locale's decimal point.
15749         * lib/strtod.c: Include <locale.h>, <stdio.h>, <langinfo.h>.
15750         (decimal_point_char): New function, copied from lib/vasnprintf.c.
15751         (parse_number): Add a radixchar argument. Use it instead of '.'.
15752         (STRTOD): Invoke decimal_point_char and pass the result to parse_number.
15753         * m4/strtod.m4 (gl_PREREQ_STRTOD): Test whether nl_langinfo exists.
15754         * m4/strtold.m4 (gl_PREREQ_STRTOLD): Likewise.
15755         * tests/test-strtod1.c: New file.
15756         * tests/test-strtod1.sh: New file.
15757         * modules/strtod-tests (Files): Add test-strtod1.{sh,c}. Add
15758         locale-fr.m4 and its dependencies.
15759         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15760         (Makefile.am): Arrange to compile test-strtod1.c and run
15761         test-strtod1.sh.
15762         * tests/test-strtold1.c: New file.
15763         * tests/test-strtold1.sh: New file.
15764         * modules/strtold-tests (Files): Add test-strtold1.{sh,c}. Add
15765         locale-fr.m4 and its dependencies.
15766         (configure.ac): Invoke gt_LOCALE_FR, gt_LOCALE_FR_UTF8.
15767         (Makefile.am): Arrange to compile test-strtold1.c and run
15768         test-strtold1.sh.
15770 2019-01-31  Bruno Haible  <bruno@clisp.org>
15772         strtod, strtold tests: Simplify tests.
15773         * tests/test-strtod.c (main): Assume no rounding errors for 0.5.
15774         * tests/test-strtold.c (main): Likewise.
15776 2019-01-31  Bruno Haible  <bruno@clisp.org>
15778         strtod, strtold: Avoid unnecessary rounding errors.
15779         * lib/strtod.c (parse_number): Drop trailing zeroes before doing the
15780         decimal to DOUBLE conversion.
15782 2019-01-31  Bruno Haible  <bruno@clisp.org>
15784         strtod, strtold: Work around HP-UX 11.31/ia64 bug.
15785         * lib/strtod.c (STRTOD): When there is an extra character after the
15786         exponent marker 'p', reparse the number.
15787         * doc/posix-functions/strtod.texi: Document the HP-UX 11.31 bug.
15788         * doc/posix-functions/strtold.texi: Likewise.
15790 2019-01-29  Bruno Haible  <bruno@clisp.org>
15792         strtold: Add tests.
15793         * tests/test-strtold.c: New file, based on tests/test-strtod.c.
15794         * modules/strtold-tests: New file.
15796 2019-01-29  Bruno Haible  <bruno@clisp.org>
15798         strtold: New module.
15799         * lib/stdlib.in.h (strtold): New declaration.
15800         * lib/strtold.c: New file.
15801         * lib/strtod.c: Consider USE_LONG_DOUBLE.
15802         (STRTOD, LDEXP, HAVE_UNDERLYING_STRTOD, DOUBLE, MIN, MAX, L_,
15803         USE_LDEXP): New macros.
15804         (LDEXP, scale_radix_exp, parse_number, STRTOD): Adapt for
15805         USE_LONG_DOUBLE.
15806         (underlying_strtod): Remove function. Replace with some macros.
15807         Re-add the code for a missing underlying function that was removed on
15808         2013-02-19.
15809         * m4/strtold.m4: New file.
15810         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether strtold is declared.
15811         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLD, HAVE_STRTOLD,
15812         REPLACE_STRTOLD.
15813         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLD, HAVE_STRTOLD,
15814         REPLACE_STRTOLD.
15815         * modules/strtold: New file.
15816         * doc/posix-functions/strtold.texi: Document the new module.
15818 2019-01-29  Bruno Haible  <bruno@clisp.org>
15820         strtod: Fix compilation error on IRIX 6.5.
15821         * modules/strtod (Depends-on): Add 'math'.
15823 2019-01-28  Bruno Haible  <bruno@clisp.org>
15825         Fix build error when building a shared libunistring on Android.
15826         * tests/uninorm/test-nfc.c (n): Don't define on Android.
15827         (main): Add 'volatile', to defeat a GCC optimization that would
15828         eliminate the reference.
15829         * tests/uninorm/test-nfd.c (n): Don't define on Android.
15830         (main): Add 'volatile', to defeat a GCC optimization that would
15831         eliminate the reference.
15832         * tests/uninorm/test-nfkc.c (n): Don't define on Android.
15833         (main): Add 'volatile', to defeat a GCC optimization that would
15834         eliminate the reference.
15835         * tests/uninorm/test-nfkd.c (n): Don't define on Android.
15836         (main): Add 'volatile', to defeat a GCC optimization that would
15837         eliminate the reference.
15839 2019-01-27  Bruno Haible  <bruno@clisp.org>
15841         Avoid build errors due to wrong references between modules.
15842         * lib/uninorm/canonical-decomposition.c: Include
15843         "uninorm/decomposition-table.h", not "decomposition-table.h".
15844         * lib/uninorm/decomposition.c: Likewise.
15845         * lib/uninorm/u8-normalize.c: Include "uninorm/decompose-internal.h",
15846         not "decompose-internal.h".
15847         * lib/uninorm/u16-normalize.c: Likewise.
15848         * lib/uninorm/u32-normalize.c: Likewise.
15849         * lib/uninorm/uninorm-filter.c: Likewise.
15850         * lib/uninorm/nfkc.c: Likewise.
15851         * lib/uninorm/nfkd.c: Likewise.
15852         * lib/unicase/u8-casemap.c: Include "unicase/caseprop.h", not
15853         "caseprop.h".
15854         * lib/unicase/u8-ct-totitle.c: Likewise.
15855         * lib/unicase/u8-prefix-context.c: Likewise.
15856         * lib/unicase/u8-suffix-context.c: Likewise.
15857         * lib/unicase/u16-casemap.c: Likewise.
15858         * lib/unicase/u16-ct-totitle.c: Likewise.
15859         * lib/unicase/u16-prefix-context.c: Likewise.
15860         * lib/unicase/u16-suffix-context.c: Likewise.
15861         * lib/unicase/u32-casemap.c: Likewise.
15862         * lib/unicase/u32-ct-totitle.c: Likewise.
15863         * lib/unicase/u32-prefix-context.c: Likewise.
15864         * lib/unicase/u32-suffix-context.c: Likewise.
15865         * lib/unicase/u8-tolower.c: Include "unicase/unicasemap.h", not
15866         "unicasemap.h".
15867         * lib/unicase/u8-toupper.c: Likewise.
15868         * lib/unicase/u8-ct-tolower.c: Likewise.
15869         * lib/unicase/u8-ct-toupper.c: Likewise.
15870         * lib/unicase/u16-tolower.c: Likewise.
15871         * lib/unicase/u16-toupper.c: Likewise.
15872         * lib/unicase/u16-ct-tolower.c: Likewise.
15873         * lib/unicase/u16-ct-toupper.c: Likewise.
15874         * lib/unicase/u32-tolower.c: Likewise.
15875         * lib/unicase/u32-toupper.c: Likewise.
15876         * lib/unicase/u32-ct-tolower.c: Likewise.
15877         * lib/unicase/u32-ct-toupper.c: Likewise.
15878         * lib/unicase/u8-ct-casefold.c: Include "unicase/unicasemap.h", not
15879         "unicasemap.h", and "unicase/casefold.h", not "casefold.h".
15880         * lib/unicase/u16-ct-casefold.c: Likewise.
15881         * lib/unicase/u32-ct-casefold.c: Likewise.
15883 2019-01-27  Bruno Haible  <bruno@clisp.org>
15885         gperf: Fix error when this module is required by some test module.
15886         * modules/gperf (Applicability): Set to 'all'.
15888 2019-01-27  Bruno Haible  <bruno@clisp.org>
15890         tmpfile: Add support for Android.
15891         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Add a runtime test whether tmpfile()
15892         works.
15893         * lib/tmpfile.c (tmpfile): Add an alternative implementation for
15894         Android.
15895         * modules/tmpfile (Depends-on): Add 'stdbool'.
15896         * doc/posix-functions/tmpfile.texi: Mention the Android bug.
15897         * modules/argv-iter-tests (Depends-on): Add 'tmpfile'.
15899 2019-01-27  Akim Demaille  <akim@lrde.epita.fr>
15901         bitsetv: allow free on NULL.
15902         * lib/bitsetv.c (bitsetv_free): Do nothing when the bitsetv is NULL.
15904 2019-01-27  Bruno Haible  <bruno@clisp.org>
15906         test-framework-sh: Improve maintainability.
15907         * tests/init.sh: Clarify what belongs together. Reorder definitions.
15909 2019-01-27  Bruno Haible  <bruno@clisp.org>
15911         tests: Don't assume that /tmp exists.
15912         * tests/test-set-mode-acl-1.sh: Skip the test if /tmp does not exist.
15913         * tests/test-copy-acl-1.sh: Likewise.
15914         * tests/test-file-has-acl-1.sh: Likewise.
15915         * tests/test-copy-file-1.sh: Likewise.
15917 2019-01-27  Bruno Haible  <bruno@clisp.org>
15919         tests: Accommodate a shell that is not in /bin/sh.
15920         * tests/init.sh (setup_): Set srcdir and builddir.
15921         (BOURNE_SHELL): New variable.
15922         * modules/acl-tests (Depends-on): Add 'test-framework-sh'.
15923         * modules/file-has-acl-tests (Depends-on): Likewise.
15924         * modules/copy-file-tests (Depends-on): Likewise.
15925         * tests/test-set-mode-acl-1.sh: Use the test framework. Invoke shell
15926         scripts through $BOURNE_SHELL.
15927         * tests/test-set-mode-acl-2.sh: Likewise.
15928         * tests/test-copy-acl-1.sh: Likewise.
15929         * tests/test-copy-acl-2.sh: Likewise.
15930         * tests/test-file-has-acl-1.sh: Likewise.
15931         * tests/test-file-has-acl-2.sh: Likewise.
15932         * tests/test-copy-file-1.sh: Likewise.
15933         * tests/test-copy-file-2.sh: Likewise.
15934         * tests/test-set-mode-acl.sh (builddir): Consider value set by the
15935         invoker.
15936         * tests/test-copy-acl.sh (builddir): Likewise.
15937         * tests/test-file-has-acl.sh (builddir): Likewise.
15938         * tests/test-copy-file.sh (builddir): Likewise.
15939         * tests/test-vc-list-files-cvs.sh: Don't create shims for executables in
15940         build-aux/. Instead, invoke shell scripts through $BOURNE_SHELL.
15941         * tests/test-vc-list-files-git.sh: Likewise.
15943 2019-01-27  Bruno Haible  <bruno@clisp.org>
15945         tests: Fix some "unused variable" warnings.
15946         * tests/test-fts.c (fts_dealloc): Remove unused variable.
15947         * tests/unigbrk/test-uc-grapheme-breaks.c (main): Likewise.
15948         * tests/test-striconveh.c (main): Move some variable into the
15949         '#if HAVE_ICONV'.
15950         * tests/test-striconveha.c (main): Likewise.
15951         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
15952         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
15953         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
15954         * tests/uniconv/test-u8-conv-to-enc.c (main): Likewise.
15955         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
15956         * tests/uniconv/test-u32-conv-to-enc.c (main): Likewise.
15957         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
15958         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
15959         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
15960         * tests/uniconv/test-u8-strconv-to-enc.c (main): Likewise.
15961         * tests/uniconv/test-u16-strconv-to-enc.c (main): Likewise.
15962         * tests/uniconv/test-u32-strconv-to-enc.c (main): Likewise.
15963         * tests/test-tsearch.c (main): Move some variable into the
15964         '#if HAVE_INITSTATE'.
15966 2019-01-27  Bruno Haible  <bruno@clisp.org>
15968         unigbrk/uc-grapheme-breaks: Fix build failure.
15969         * lib/unigbrk/uc-grapheme-breaks.c: Don't include unistr.h.
15970         * modules/unigbrk/uc-grapheme-breaks (Makefile.am): Fix typo.
15972 2019-01-27  Bruno Haible  <bruno@clisp.org>
15974         mountlist: Merge two .m4 files.
15975         * m4/mountlist.m4 (gl_MOUNTLIST): Inline gl_LIST_MOUNTED_FILE_SYSTEMS.
15976         (AC_FUNC_GETMNTENT): Move to here, from m4/ls-mntd-fs.m4.
15977         * m4/ls-mntd-fs.m4: Remove file.
15978         * modules/mountlist (Files): Remove m4/ls-mntd-fs.m4.
15980 2019-01-27  Bruno Haible  <bruno@clisp.org>
15982         tests: Enable Linux specific tests on Android.
15983         * tests/test-flock.c (main): Treat Android like Linux.
15984         * tests/test-openat-safer.c (main): Likewise.
15986 2019-01-27  Bruno Haible  <bruno@clisp.org>
15988         relocatable-prog: Use Linux code on Android.
15989         * lib/progreloc.c: Treat Android like Linux.
15991 2019-01-26  Bruno Haible  <bruno@clisp.org>
15993         getloadavg: Add support for Android.
15994         * lib/getloadavg.c: Treat Android like Linux.
15996 2019-01-26  Bruno Haible  <bruno@clisp.org>
15998         vma-iter: Add support for Android.
15999         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Android as well.
16000         * lib/vma-iter.c: Treat Android like Linux.
16001         * lib/get-rusage-data.c (get_rusage_data): Likewise.
16003 2019-01-26  Bruno Haible  <bruno@clisp.org>
16005         fts: Optimize on Android.
16006         * lib/fts.c: Treat Android like Linux.
16008 2019-01-26  Bruno Haible  <bruno@clisp.org>
16010         fts: Add support for Android.
16011         * m4/fts.m4 (gl_FUNC_FTS_CORE): Avoid conflicts between the symbols
16012         defined by this module and the ones in libc.
16013         * tests/test-fts.c (main): Treat mkdir error EMLINK like EMFILE.
16015 2019-01-26  Bruno Haible  <bruno@clisp.org>
16017         mountlist: Use Linux code on Android.
16018         * lib/mountlist.c (setmntent, endmntent): Define fallbacks.
16019         (unescape_tab, read_file_system_list): Enable Linux code on Android
16020         as well.
16021         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Test for setmntent
16022         and endmntent.
16023         * modules/mountlist (Depends-on): Add 'getline'.
16025 2019-01-26  Bruno Haible  <bruno@clisp.org>
16027         localename tests: Fix test failure on Android.
16028         * modules/localename-tests (Depends-on): Add 'setlocale'.
16030 2019-01-26  Bruno Haible  <bruno@clisp.org>
16032         mountlist: Port better to Android.
16033         * lib/mountlist.c (MOUNTED): Redefine on Android.
16034         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Redefine MOUNTED on
16035         Android.
16037 2019-01-26  Bruno Haible  <bruno@clisp.org>
16039         striconveh: Fix use of uninitialized iconv_t.
16040         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
16041         <https://lists.gnu.org/archive/html/bug-libunistring/2019-01/msg00000.html>.
16042         * lib/striconveh.c (iconveh_open): Correct the iconv_close argument.
16044 2019-01-26  Bruno Haible  <bruno@clisp.org>
16046         nonblocking-socket-tests: Fix test failure on Android 4.3.
16047         * tests/test-nonblocking-socket.h (SOCKET_HAS_LARGE_BUFFER): Define to 1
16048         also on Android.
16050 2019-01-26  Bruno Haible  <bruno@clisp.org>
16052         sh-filename: Add support for Android 4.3.
16053         * m4/sh-filename.m4 (gl_SH_FILENAME): Set to "sh" on Android.
16055 2019-01-26  Bruno Haible  <bruno@clisp.org>
16057         ptsname_r: Work around bug on Android 4.3.
16058         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Define
16059         HAVE_ESSENTIALLY_WORKING_PTSNAME_R. Test whether the return value is
16060         correct.
16061         * lib/ptsname_r.c (__ptsname_r): If HAVE_ESSENTIALLY_WORKING_PTSNAME_R
16062         is defined, just fix the return value.
16063         * doc/glibc-functions/ptsname_r.texi: Mention the Android bug. Reword:
16064         The behaviour of musl libc is nothing to be "fixed", since it is
16065         compliant with the next POSIX standard.
16067 2019-01-26  Bruno Haible  <bruno@clisp.org>
16069         ttyname_r: Work around bug on Android 4.3.
16070         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is a stub.
16071         * lib/ttyname_r.c (ttyname_r): Implement for Android.
16072         * doc/posix-functions/ttyname_r.texi: Mention the Android bug.
16073         * doc/posix-functions/ttyname.texi: Likewise.
16075 2019-01-25  Bruno Haible  <bruno@clisp.org>
16077         getprogname: Port to Android 4.3.
16078         * lib/getprogname.c (getprogname): On Android, take only the last
16079         component of __progname.
16081 2019-01-25  Bruno Haible  <bruno@clisp.org>
16083         wcrtomb: Work around bug on Android 4.3.
16084         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test also whether wcrtomb works in
16085         the C locale.
16086         * lib/wcrtomb.c (wcrtomb): Provide alternate implementation for Android,
16087         which does not have the 'wctomb' function.
16088         * doc/posix-functions/wcrtomb.texi: Mention the Android bug.
16089         * tests/test-wcrtomb.c (main): Accept argument '5'.
16090         * tests/test-wcrtomb.sh: Add tests in the POSIX locale.
16092 2019-01-25  Bruno Haible  <bruno@clisp.org>
16094         setlocale: Work around bug on Android 4.3.
16095         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Test whether setlocale supports
16096         the "C" locale.
16097         * lib/setlocale.c (setlocale_unixlike): New wrapper for Android.
16098         * doc/posix-functions/setlocale.texi: Mention the Android bug.
16100 2019-01-24  Bruno Haible  <bruno@clisp.org>
16102         memchr: Work around bug on Android <= 5.0.
16103         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add test against the Android bug.
16104         * doc/posix-functions/memchr.texi: Mention the Android bug.
16106 2019-01-24  Bruno Haible  <bruno@clisp.org>
16108         random: Fix compilation error on Android 4.3.
16109         * lib/stdlib.in.h (random, srandom): Test also REPLACE_RANDOM.
16110         (initstate): Test REPLACE_INITSTATE and HAVE_INITSTATE, not HAVE_RANDOM.
16111         (setstate): Test REPLACE_SETSTATE and HAVE_SETSTATE, not HAVE_RANDOM.
16112         * m4/random.m4 (gl_FUNC_RANDOM): Set HAVE_INITSTATE, HAVE_SETSTATE,
16113         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16114         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_INITSTATE,
16115         HAVE_SETSTATE, REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16116         * modules/stdlib (Makefile.am): Substitute HAVE_INITSTATE, HAVE_SETSTATE,
16117         REPLACE_RANDOM, REPLACE_INITSTATE, REPLACE_SETSTATE.
16118         * modules/random (Depends-on, configure.ac): Test also REPLACE_RANDOM,
16119         REPLACE_INITSTATE, REPLACE_SETSTATE.
16120         * doc/posix-functions/random.texi: Correct the description of the
16121         situation on Android.
16122         * doc/posix-functions/srandom.texi: Likewise.
16123         * doc/posix-functions/rand.texi: Likewise.
16124         * doc/posix-functions/srand.texi: Likewise.
16126 2019-01-24  Bruno Haible  <bruno@clisp.org>
16128         mbtowc: Fix compilation error on Android 4.3.
16129         * lib/stdlib.in.h (mbtowc): Test also HAVE_MBTOWC.
16130         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Test whether mbtowc exists. Set
16131         HAVE_MBTOWC.
16132         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether mbtowc is declared.
16133         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MBTOWC.
16134         * modules/stdlib (Makefile.am): Substitute HAVE_MBTOWC.
16135         * modules/mbtowc (Depends-on, configure.ac): Test also HAVE_MBTOWC.
16136         * doc/posix-functions/mbtowc.texi: Mention the change.
16138 2019-01-24  Bruno Haible  <bruno@clisp.org>
16140         fdatasync: Fix compilation error on Android 4.3.
16141         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): On platforms other than Solaris,
16142         test whether fdatasync() exists.
16144 2019-01-24  Bruno Haible  <bruno@clisp.org>
16146         unlinkat: Fix compilation error on Android 4.3.
16147         * lib/unistd.in.h: Include <fcntl.h> when module 'unlinkat' is in use
16148         also on Android.
16149         * doc/posix-functions/unlinkat.texi: Mention the issue.
16151 2019-01-24  Bruno Haible  <bruno@clisp.org>
16153         renameat: Fix compilation error on Android 4.3.
16154         * lib/stdio.in.h: Include <sys/stat.h> when module 'renameat' is in use.
16155         * doc/posix-functions/renameat.texi: Mention the issue.
16157 2019-01-24  Bruno Haible  <bruno@clisp.org>
16159         fchownat: Fix compilation error on Android 4.3.
16160         * lib/unistd.in.h: Include <sys/stat.h> when module 'fchownat' is in
16161         use.
16162         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG,
16163         gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): Include also <sys/stat.h>.
16164         * doc/posix-functions/fchownat.texi: Mention the issue.
16166 2019-01-23  Bruno Haible  <bruno@clisp.org>
16168         gnulib-tool: Support running testdirs on Android.
16169         * build-aux/test-driver.diff: New file.
16170         * gnulib-tool (func_create_testdir, func_create_megatestdir): Patch
16171         build-aux/test-driver after running automake.
16173 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16175         relocatable-prog: avoid warnings from Automake
16176         * modules/relocatable-prog: Don't declare PHONY dependencies in
16177         Automake conditionals.
16179 2019-01-23  Akim Demaille  <akim@lrde.epita.fr>
16181         array-list: Pacify warnings about unused arguments (-Wunused-parameter).
16182         * lib/gl_array_list.c (gl_array_iterator_free): "Use" the argument.
16184 2019-01-23  Bruno Haible  <bruno@clisp.org>
16186         threadlib: Revert commit from 2018-06-25. We now have a better fix.
16187         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't attempt to defeat a
16188         preceding -Wl,--as-needed option. Don't check whether the linker
16189         supports --as-needed/--no-as-needed and --push-state/--pop-state.
16191 2019-01-23  Bruno Haible  <bruno@clisp.org>
16193         thread: Force linking with -lpthread, even when --as-needed is in use.
16194         Reported by Richard W.M. Jones <rjones@redhat.com> in
16195         <https://lists.gnu.org/archive/html/bug-gnulib/2019-01/msg00123.html>.
16196         * lib/glthread/thread.h (pthread_create): Don't declare weak.
16198 2019-01-23  Akim Demaille  <akim.demaille@gmail.com>
16199             Bruno Haible  <bruno@clisp.org>
16201         relocatable: avoid compiler warnings (-Wshadow)
16202         * lib/relocatable.c (compute_curr_prefix): Rename local variables
16203         to avoid name collisions with global variables.
16205 2019-01-22  Bruno Haible  <bruno@clisp.org>
16207         vasnprintf: Don't use %n on Android.
16208         Reported and fix suggested by Hugo Beauzée-Luyssen <hugo@beauzee.fr> in
16209         <https://lists.gnu.org/archive/html/bug-gnulib/2018-12/msg00123.html>.
16210         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on Android.
16212 2019-01-22  Bruno Haible  <bruno@clisp.org>
16214         *printf: Support cross-compilation to Android.
16215         * m4/printf.m4: Add cross-compilation guesses for Android.
16217 2019-01-21  Bruno Haible  <bruno@clisp.org>
16219         diacrit: Mark deprecated.
16220         * modules/diacrit (Status, Notice): Mark as deprecated.
16221         * NEWS: Mention it.
16223 2019-01-20  Bruno Haible  <bruno@clisp.org>
16225         rintl: Override broken implementation on NetBSD.
16226         * lib/math.in.h (rintl): Test also REPLACE_RINTL.
16227         * m4/rintl.m4 (gl_FUNC_RINTL): Add test for negative arguments. Set
16228         REPLACE_RINTL.
16229         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_RINTL.
16230         * modules/math (Makefile.in): Substitute REPLACE_RINTL.
16231         * modules/rintl (Depends-on, configure.ac): Test REPLACE_RINTL.
16232         * doc/posix-functions/rintl.texi: Mention the NetBSD bug.
16234 2019-01-20  Bruno Haible  <bruno@clisp.org>
16236         log10l: Work around inaccurate implementation on NetBSD.
16237         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Add test for a certain accuracy.
16238         * lib/log10l.c: Comment out too simplistic override.
16239         * doc/posix-functions/log10l.texi: Mention the NetBSD bug.
16241 2019-01-20  Bruno Haible  <bruno@clisp.org>
16243         logl: Work around inaccurate implementation on NetBSD.
16244         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Add test for a certain accuracy.
16245         * lib/logl.c: Comment out unused code.
16246         * doc/posix-functions/logl.texi: Mention the NetBSD bug.
16248 2019-01-20  Bruno Haible  <bruno@clisp.org>
16250         expm1l: Work around inaccurate implementation on NetBSD.
16251         * lib/math.in.h (expm1l): Test also REPLACE_EXPM1L.
16252         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Add test for a certain accuracy. Set
16253         REPLACE_EXPM1L.
16254         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1L.
16255         * modules/math (Makefile.in): Substitute REPLACE_EXPM1L.
16256         * modules/expm1l (Depends-on, configure.ac): Test REPLACE_EXPM1L.
16257         * doc/posix-functions/expm1l.texi: Mention the NetBSD bug.
16259 2019-01-20  Bruno Haible  <bruno@clisp.org>
16261         expl: Work around inaccurate implementation on NetBSD.
16262         * lib/math.in.h (expl): Test also REPLACE_EXPL.
16263         * m4/expl.m4 (gl_FUNC_EXPL): Add test for a certain accuracy. Set
16264         REPLACE_EXPL.
16265         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPL.
16266         * modules/math (Makefile.in): Substitute REPLACE_EXPL.
16267         * modules/expl (Depends-on, configure.ac): Test REPLACE_EXPL.
16268         * doc/posix-functions/expl.texi: Mention the NetBSD bug.
16270 2019-01-20  Bruno Haible  <bruno@clisp.org>
16272         exp2l: Work around inaccurate implementation on NetBSD.
16273         * m4/exp2l.m4 (gl_FUNC_EXP2L): Add test for a certain accuracy.
16274         * doc/posix-functions/exp2l.texi: Mention the NetBSD bug.
16276 2019-01-20  Bruno Haible  <bruno@clisp.org>
16278         floor, floorl: Avoid autoconf warnings.
16279         * modules/floor (configure.ac): Use AC_REQUIRE.
16280         * modules/floorl (configure.ac): Likewise.
16282 2019-01-20  Bruno Haible  <bruno@clisp.org>
16284         Defeat current GCC optimizations in math autoconf tests.
16285         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Mark function pointer as 'volatile'.
16286         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
16287         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
16288         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
16289         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
16290         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
16291         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
16292         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
16293         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
16294         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
16295         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
16296         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
16297         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
16298         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
16299         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
16300         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
16301         * m4/ilogbl.m4 (gl_FUNC_ILOGBL_WORKS): Likewise.
16302         * m4/log.m4 (gl_FUNC_LOG): Likewise.
16303         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
16304         * m4/log10.m4 (gl_FUNC_LOG10): Likewise.
16305         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
16306         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
16307         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Likewise.
16308         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
16309         * m4/log2.m4 (gl_FUNC_LOG2): Likewise.
16310         * m4/log2f.m4 (gl_FUNC_LOG2F): Likewise.
16311         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
16312         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
16313         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
16314         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
16315         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
16316         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
16317         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
16318         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
16319         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
16320         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
16321         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
16322         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
16324 2019-01-19  Pádraig Brady  <P@draigBrady.com>
16326         gettext: support disabling use of VLAs
16327         * lib/gettext.h: Disable use of VLAs if GNULIB_NO_VLA is defined
16329 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16331         sys_stat: Fix 'implicit declaration of function' warning on OS/2 kLIBC.
16332         * lib/sys_stat.in.h [kLIBC]: Include <unistd.h>.
16334 2019-01-17  KO Myung-Hun  <komh78@gmail.com>
16336         fcntl: Fix syntax error (regression from 2018-10-05).
16337         * lib/fcntl.c (klibc_fcntl): Remove mis-placed ';'.
16339 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16341         relocatable: improve documentation.
16342         * doc/relocatable-maint.texi (Supporting Relocation): For
16343         substitutions performed by config.status, we need more variables
16344         (for instance datarootdir defaults to '${prefix}/share' so we need
16345         prefix).
16347 2019-01-13  Akim Demaille  <akim@lrde.epita.fr>
16349         backup: update dependencies
16350         * modules/backup-rename (Depends-on): It now depends on opendirat
16351         instead of opendir.  It also uses stdint, and xalloc-oversized.
16352         But no longer dirfd.
16353         * modules/backupfile (Depends-on): Add xalloc-oversized.
16355 2019-01-13  Bruno Haible  <bruno@clisp.org>
16357         getcwd: Fix test failure when building on a Linux 9p file system.
16358         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): On Linux, treat error
16359         EINVAL from mkdir like ENAMETOOLONG.
16360         * tests/test-getcwd.c (test_long_name): Likewise.
16362 2019-01-12  Tim Rühsen  <tim.ruehsen@gmx.de>
16364         Fix typos found by codespell.
16365         * lib/*.[hc]: Fix typos in comments.
16366         * pygnulib/*.py: Fix typos in error messages and comments.
16368 2019-01-12  Bruno Haible  <bruno@clisp.org>
16370         doc: Fix documentation about container data types.
16371         Reported by Werner Lemberg <wl@gnu.org>.
16372         * doc/containers.texi (Container data types): Fix typo.
16374 2019-01-10  Bruno Haible  <bruno@clisp.org>
16376         verify: Enable _GL_HAVE_STATIC_ASSERT for recent G++ versions.
16377         Reported by Reuben Thomas <rrt@sc3d.org>.
16378         * lib/verify.h (_GL_HAVE_STATIC_ASSERT): Define for g++ versions >= 6.
16380 2019-01-06  Bruno Haible  <bruno@clisp.org>
16382         maintainer-makefile: Make the configure.ac section optional.
16383         * top/maint.mk (GREP, SED): Define if not defined.
16385 2019-01-06  Bruno Haible  <bruno@clisp.org>
16387         localename: Assume setlocale function.
16388         * lib/localename.c (gl_locale_name_posix): Assume setlocale exists.
16389         * m4/localename.m4 (gl_LOCALENAME): Don't test whether setlocale exists.
16391 2019-01-06  Bruno Haible  <bruno@clisp.org>
16393         doc: Add documentation about container data types.
16394         * doc/containers.texi: New file.
16395         * doc/gnulib.texi (Particular Modules): Include it.
16397 2019-01-06  Bruno Haible  <bruno@clisp.org>
16399         doc: Update documentation about 'progname' module.
16400         * doc/progname.texi: Rename from doc/error.texi. Change node name and
16401         title. Rewrite.
16402         * doc/gnulib.texi (Particular Modules): Update.
16404 2019-01-06  Bruno Haible  <bruno@clisp.org>
16406         doc: Document the xstdopen and *-safer modules.
16407         * doc/xstdopen.texi: New file.
16408         * doc/gnulib.texi (Particular Modules): Include it.
16410 2019-01-06  Bruno Haible  <bruno@clisp.org>
16412         xstdopen: Add tests.
16413         * tests/test-xstdopen.c: New file.
16414         * tests/test-xstdopen.sh: New file.
16415         * modules/xstdopen-tests: New file.
16417         xstdopen: New module.
16418         * lib/xstdopen.h: New file.
16419         * lib/xstdopen.c: New file.
16420         * modules/xstdopen: New file.
16422 2019-01-06  Bruno Haible  <bruno@clisp.org>
16424         stdopen: Fix compilation error with IRIX cc.
16425         * lib/stdopen.c (stdopen): Do not use C99-style decl in loop.
16427 2019-01-05  Paul Eggert  <eggert@cs.ucla.edu>
16429         xfreopen need not include stdio--.h
16430         * lib/xfreopen.c: Do not include stdio--.h.
16432         xfreopen need not depend on freopen-safer
16433         * modules/xfreopen (Depends-on):
16434         Depend on freopen, not freopen-safer.
16436         stdopen: modernize and simplify
16437         * lib/stdopen.c: Update copyright date
16438         Do not include sys/types.h; no longer needed these days.
16439         (stdopen): Use C99-style decl in loop.  Return int errno
16440         value, rather than just a bool.  Do not worry about fd mismatches,
16441         since the caller cares only if 0, 1, 2 are occupied.
16442         * lib/stdopen.h: No need to include <stdbool.h>.
16443         * m4/stdopen.m4: Remove.
16444         * modules/stdopen: New file.
16446         stdopen: copy from last use in coreutils
16447         * lib/stdopen.c, lib/stdopen.h, m4/stdopen.m4:
16448         New files, taken from their last commit in coreutils
16449         2007-07-23T12:35:58Z!jim@meyering.net
16450         71aa3ea88084d17bcb4fc1031ad7b66f8647115e.
16452 2019-01-05  Bruno Haible  <bruno@clisp.org>
16454         argp: Don't pass an invalid argument to dgettext().
16455         Reported by He X <xw897002528@gmail.com>.
16456         * lib/argp-help.c (print_header, argp_doc): Don't pass a NULL doc to
16457         dgettext().
16459 2019-01-05  Bruno Haible  <bruno@clisp.org>
16461         argp: Don't pass an invalid argument to dgettext().
16462         Reported by He X <xw897002528@gmail.com>.
16463         * lib/argp.h (struct argp): Clarify that the args_doc field may be NULL.
16464         * lib/argp-help.c (argp_args_usage): Don't pass a NULL args_doc to
16465         dgettext().
16467 2018-12-22  Paul Eggert  <eggert@cs.ucla.edu>
16469         stdioext: port to newer 32-bit Android
16470         Problem reported by Tom Yan in:
16471         https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00014.html
16472         * lib/stdio-impl.h (_gl_FILE_flags_t) [__ANDROID__]: New macro.
16473         (fp_) [__ANDROID__]: Use it.
16475 2019-01-04  Bruno Haible  <bruno@clisp.org>
16477         lock: Fix link error with --enable-threads=pth.
16478         * lib/glthread/lock.h (pth_cond_init, pth_cond_await, pth_cond_notify):
16479         Mark as weak.
16481 2019-01-04  Bruno Haible  <bruno@clisp.org>
16483         Fix link errors in unit tests.
16484         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
16485         * modules/bitset-tests (Makefile.am): Link test-bitset against libintl.
16486         * modules/array-map-tests (Makefile.am): Link test-array_map against
16487         libintl.
16488         * modules/array-set-tests (Makefile.am): Link test-array_set against
16489         libintl.
16490         * modules/hash-map-tests (Makefile.am): Link test-hash_map against
16491         libintl.
16492         * modules/hash-set-tests (Makefile.am): Link test-hash_set against
16493         libintl.
16494         * modules/linkedhash-map-tests (Makefile.am): Link test-linkedhash_map
16495         against libintl.
16496         * modules/linkedhash-set-tests (Makefile.am): Link test-linkedhash_set
16497         against libintl.
16499 2019-01-04  Bruno Haible  <bruno@clisp.org>
16501         Fix incorrect 'Link' sections.
16502         * modules/regex (Link): Mention the link requirement of module 'lock'.
16503         * modules/regex-tests (Makefile.am): Don't use LIB_PTHREAD.
16505 2019-01-04  Bruno Haible  <bruno@clisp.org>
16507         Fix some 'Link' sections.
16508         * modules/c-stack (Link): Add link directive from the 'gettext-h'
16509         dependency.
16510         * modules/getaddrinfo (Link): Likewise.
16512 2019-01-04  Bruno Haible  <bruno@clisp.org>
16514         Remove redundant 'Link' sections.
16515         * modules/canon-host (Link): Remove section.
16516         * modules/timevar (Link): Likewise.
16518 2019-01-04  Bruno Haible  <bruno@clisp.org>
16520         Remove incorrect 'Link' sections.
16521         * modules/acl (Link): Remove section. Use combined 'Link' sections from
16522         the dependencies instead.
16523         * modules/crypto/md5 (Link): Likewise.
16524         * modules/crypto/sha1 (Link): Likewise.
16525         * modules/crypto/sha256 (Link): Likewise.
16526         * modules/crypto/sha512 (Link): Likewise.
16527         * modules/faccessat (Link): Likewise.
16528         * modules/fdutimensat (Link): Likewise.
16529         * modules/iconv_open-utf (Link): Likewise.
16530         * modules/propername (Link): Likewise.
16531         * modules/qacl (Link): Likewise.
16532         * modules/unicodeio (Link): Likewise.
16533         * modules/utimecmp (Link): Likewise.
16534         * modules/utimensat (Link): Likewise.
16535         * modules/xstriconv (Link): Likewise.
16536         * modules/xstriconveh (Link): Likewise.
16538 2019-01-04  Bruno Haible  <bruno@clisp.org>
16540         gnulib-tool: New option --extract-recursive-link-directive.
16541         * gnulib-tool (func_usage): Document the new options
16542         --extract-recursive-dependencies, --extract-recursive-link-directive.
16543         (func_verify_module): Document output variables.
16544         (func_get_dependencies_recursively): New function.
16545         (func_get_link_directive_recursively): New function.
16546         Use them to implement the new options
16547         --extract-recursive-dependencies, --extract-recursive-link-directive.
16548         * doc/gnulib-tool.texi (Link-time requirements): New section.
16550 2019-01-04  Bruno Haible  <bruno@clisp.org>
16552         Clarify meaning of 'Link' section in module description.
16553         * doc/gnulib.texi (Module description): Clarify the meaning of the
16554         'Link' section versus the one of the dependencies.
16555         * NEWS: Mention the change.
16557 2019-01-04  Bruno Haible  <bruno@clisp.org>
16559         pselect: Fix module description.
16560         * modules/pselect (Link): Put one link option per line.
16562 2019-01-04  Bruno Haible  <bruno@clisp.org>
16564         cosl: Fix module description.
16565         * modules/cosl (Link): Fix typo.
16566         * modules/mathl (configure.ac): Likewise.
16568 2019-01-04  Bruno Haible  <bruno@clisp.org>
16570         c-xvasprintf: Fix module dependencies.
16571         * modules/c-xvasprintf (Depends-on): Add 'xalloc-die'.
16573 2019-01-04  Akim Demaille  <akim@lrde.epita.fr>
16575         bootstrap: die when some submodules are not initialized
16576         * build-aux/bootstrap: Make sure all submodules are initialized.
16578 2019-01-04  Bruno Haible  <bruno@clisp.org>
16580         bitsetv: Fix module dependencies.
16581         * lib/bitsetv.c: Include xalloc.h.
16582         * modules/bitsetv (Depends-on): Add 'xalloc'.
16584 2019-01-04  Bruno Haible  <bruno@clisp.org>
16586         xmemdup0: Remove redundant code.
16587         * lib/xmemdup0.h (xalloc_die): Remove declaration.
16589 2019-01-04  Bruno Haible  <bruno@clisp.org>
16591         backupfile: Fix module dependencies.
16592         * modules/backupfile (Depends-on): Add 'xalloc'.
16594 2019-01-03  Paul Eggert  <eggert@cs.ucla.edu>
16596         bitset, crypto/gc: fix conflicts with Solaris 11
16597         * lib/bitset.h (_GL_BITSET_H): Rename from _BITSET_H, to
16598         avoid clash with Solaris 11 <sys/bitset.h>.
16599         * lib/gc.h (_GL_GC_H): Rename from GC_H, to avoid clash
16600         with Solaris 11 <xorg/gc.h>.
16602 2019-01-04  Bruno Haible  <bruno@clisp.org>
16604         safe-read, safe-write: Fix conflict with Illumos-Joyent <sys/limits.h>.
16605         Reported by Andy Fiddaman <andy@omniosce.org>.
16606         * lib/sys-limits.h: Add a '_GL' prefix to the guard symbol.
16608 2019-01-03  Eric Blake  <eblake@redhat.com>
16610         maintainer-makefile: fix typo in previous patch
16611         * top/maint.mk (_sc_search_regexp): Fix my accidental corruption
16612         of Roman's work.
16614 2019-01-02  Roman Bolshakov <r.bolshakov@yadro.com>  (tiny change)
16616         maintainer-makefile: prefer $(GREP) over grep
16617         * modules/maintainer-makefile (configure.ac): Ensure $(GREP) is
16618         defined.
16619         * top/maint.mk: Use it everywhere.
16621         maintainer-makefile: split long argument lines
16622         * top/maint.mk: Use xargs to split $(VC_LIST_EXCEPT) usage where
16623         it would be too long for exec limits on BSD.
16625 2018-12-27  Paul Eggert  <eggert@cs.ucla.edu>
16627         mkfifo: bring back HAVE_MKFIFO macro
16628         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): #define HAVE_MKFIFO as needed.
16629         Problem reported by Andrew Janke in:
16630         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00147.html
16632 2018-12-21  Bruno Haible  <bruno@clisp.org>
16634         Assume Autoconf >= 2.63.
16635         * modules/stdarg (configure.ac-early): Remove comment about Autoconf
16636         versions < 2.60.
16638 2018-12-21  Bruno Haible  <bruno@clisp.org>
16640         memcmp: Mention the clang bug.
16641         * tests/test-memcmp.c: Add comment about a known test failure.
16642         * doc/posix-functions/memcmp.texi: Mention the clang bug.
16644 2018-12-20  Jim Meyering  <meyering@fb.com>
16646         revert v0.1-2213-gae4b73e28 and part of v0.1-2281-g95cd86dd7
16647         v0.1-2213-gae4b73e28 caused a regression in grep-3.2 (no match):
16648           echo '123-x'|LC_ALL=C grep -E '.\bx'
16649         The goal is to revert the first, but reverting it requires to restore
16650         the function deleted in the second. I ran this to restore the deleted
16651         function:
16652           git show v0.1-2281-g95cd86dd7 lib/dfa.c \
16653             | perl -0777 -pe 's/^@@[^\n]*dfaan.*//ms' \
16654             | patch -R -p1
16655         * lib/dfa.c (charclass_context): Restore deleted function.
16656         Reverting the primary commit removes this change:
16657         dfa: Simplify a building state
16658         * lib/dfa.c (build_state): Simplify a building state.
16660 2018-12-20  Paul Eggert  <eggert@cs.ucla.edu>
16662         version-etc: allow zero authors
16663         * lib/version-etc.c (version_etc_arn): If no authors are given,
16664         omit authorship info instead of dumping core.
16666 2018-12-19  Bruno Haible  <bruno@clisp.org>
16668         lchown tests: Be more permissive regarding errno values.
16669         Reported by Ivan Zakharyaschev <imz@altlinux.org>.
16670         * tests/test-lchown.h (test_lchown): Recognize EOPNOTSUPP as an
16671         alternative to ENOSYS.
16672         * modules/lchown-tests (Depends-on): Add 'errno'.
16673         * modules/fchownat-tests (Depends-on): Likewise.
16675 2018-12-18  Bruno Haible  <bruno@clisp.org>
16677         duplocale: Avoid test failure on AIX 7.
16678         * modules/duplocale-tests (Files): Add m4/intl-thread-locale.m4.
16679         (configure.ac): Invoke gt_FUNC_USELOCALE.
16680         * tests/test-duplocale.c: Test HAVE_WORKING_USELOCALE instead of
16681         HAVE_USELOCALE. Assume that nl_langinfo_l only works when uselocale
16682         works.
16684 2018-12-18  Bruno Haible  <bruno@clisp.org>
16686         localename: Fix test failure on AIX 7.
16687         Reported by Assaf Gordon in
16688         <https://lists.gnu.org/archive/html/sed-devel/2018-12/msg00019.html>.
16689         * m4/intl-thread-locale.m4 (gt_FUNC_USELOCALE): New macro.
16690         (gt_INTL_THREAD_LOCALE_NAME): Invoke it. Test gt_cv_func_uselocale_works
16691         instead of ac_cv_func_uselocale.
16692         * lib/localename.c: Test HAVE_WORKING_USELOCALE instead of
16693         HAVE_USELOCALE.
16694         * lib/localename-table.h: Likewise.
16695         * lib/localename-table.c: Likewise.
16696         * tests/test-localename.c: Likewise.
16697         * doc/posix-functions/uselocale.texi: Mention the AIX problem.
16699 2018-12-18  Bruno Haible  <bruno@clisp.org>
16701         localename: Update comments regarding Cygwin.
16702         * lib/localename.c: Update comment.
16703         * doc/posix-functions/uselocale.texi: Update platforms list.
16704         * doc/posix-functions/newlocale.texi: Likewise.
16705         * doc/posix-functions/duplocale.texi: Likewise.
16706         * doc/posix-functions/freelocale.texi: Likewise.
16708 2018-12-16  Bruno Haible  <bruno@clisp.org>
16710         c-stack: Fix for Linux/sparc.
16711         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Set
16712         ac_cv_sys_xsi_stack_overflow_heuristic to 'no' on Linux/sparc.
16714 2018-12-16  Bruno Haible  <bruno@clisp.org>
16716         localename: Avoid test failure on some glibc systems.
16717         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
16718         Unset environment variables that might disturb the first setlocale call,
16719         and verify that this setlocale call succeeds.
16721 2018-12-16  Assaf Gordon  <assafgordon@gmail.com>
16723         random: Fix build error on native Windows (regression from 2018-06-21).
16724         * lib/random.c (__srandom, __initstate, __setstate, __random,
16725         __srandom_r, __initstate_r, __setstate_r, __random_r) [!_LIBC]: Redirect
16726         to the symbols without '__' prefix.
16728 2018-12-16  Bruno Haible  <bruno@clisp.org>
16730         obstack, libc-config: Support HP-UX cc in C99 mode.
16731         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER): Treat HP-UX cc as a pre-C99
16732         compiler, even when in C99 mode.
16733         * lib/cdefs.h (__flexarr): Likewise.
16734         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Update comment.
16736 2018-12-16  Bruno Haible  <bruno@clisp.org>
16738         localename: Fix test failure on OpenBSD >= 6.2.
16739         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Test for fake
16740         locale system. Define HAVE_FAKE_LOCALES in this case.
16741         * lib/localename.c (HAVE_GOOD_USELOCALE): New macro. Use it instead of
16742         HAVE_USELOCALE.
16743         * tests/test-localename.c (HAVE_GOOD_USELOCALE): New macro. Use it
16744         instead of HAVE_NEWLOCALE && HAVE_USELOCALE.
16745         * doc/posix-functions/uselocale.texi: Mention OpenBSD problem. Update
16746         platforms list.
16747         * doc/posix-functions/newlocale.texi: Likewise.
16748         * doc/posix-functions/duplocale.texi: Update platforms list.
16749         * doc/posix-functions/freelocale.texi: Likewise.
16751 2018-12-16  Bruno Haible  <bruno@clisp.org>
16753         duplocale tests: Re-enable the test on platforms without <monetary.h>.
16754         * tests/test-duplocale.c: Use more fine-grained #ifs to re-enable most
16755         of the test, on platforms without <monetary.h>.
16757 2018-12-16  Bruno Haible  <bruno@clisp.org>
16759         localename: Update comments.
16760         * lib/localename.c (HAVE_USELOCALE): Update list of platforms.
16762 2018-12-15  Jim Meyering  <meyering@fb.com>
16764         regex: fix indentation
16765         * m4/regex.m4 (gl_REGEX): Indent with spaces, not TABs.
16767 2018-12-15  Bruno Haible  <bruno@clisp.org>
16769         openat-safer tests: Avoid test failure on NetBSD 8.
16770         * tests/test-openat-safer.c (main): Execute a Linux specific test only
16771         on Linux.
16773 2018-12-15  Jim Meyering  <meyering@fb.com>
16775         regex: work around a bug in glibc-2.27 and prior
16776         * m4/regex.m4 (gl_REGEX): Reject any system regexp that gets a failed
16777         assertion for /0|()0|\1|0/.
16778         * tests/test-regex.c (main): Add the same test here.
16780 2018-12-15  Bruno Haible  <bruno@clisp.org>
16782         localename: Fix use of uninitialized shell variable.
16783         * m4/intl-thread-locale.m4 (gt_INTL_THREAD_LOCALE_NAME): Initialize
16784         gt_cv_locale_solaris114 always before use. Remove assignment without
16785         effect.
16787 2018-12-15  Bruno Haible  <bruno@clisp.org>
16789         dfa tests: Avoid test failure on Alpine Linux.
16790         * tests/dfa-match.sh (timeout_10): Accommodate the BusyBox 'timeout'
16791         command found on Alpine Linux.
16793 2018-12-15  Jim Meyering  <meyering@fb.com>
16795         dfa: avoid new warnings from gcc
16796         These would prevent building with -Werror and a Dec snapshot of gcc.
16797         * lib/dfa.c (dfaanalyze): Avoid shadowing warnings for "pos".
16798         Rename each inner instance to "p".
16799         (charclass_context): Remove unused static function.
16801 2018-12-14  Paul Eggert  <eggert@cs.ucla.edu>
16803         mkdir-p: improve diagnostic for FUSE mounts
16804         Problem reported by Niklas Hambüchen in:
16805         https://lists.gnu.org/r/bug-gnulib/2018-12/msg00074.html
16806         * lib/mkdir-p.c (make_dir_parents): In diagnostic, prefer stat
16807         errno to mkdir errno if the stat errno is likely more interesting.
16809 2018-12-14  Bruno Haible  <bruno@clisp.org>
16811         hash-map: Add tests.
16812         * tests/test-hash_map.c: New file.
16813         * modules/hash-map-tests: New file.
16815         linkedhash-map: Add tests.
16816         * tests/test-linkedhash_map.c: New file.
16817         * modules/linkedhash-map-tests: New file.
16819         array-map: Add tests.
16820         * tests/test-array_map.c: New file.
16821         * modules/array-map-tests: New file.
16823         xmap: New module.
16824         * lib/gl_xmap.h: New file.
16825         * lib/gl_xmap.c: New file.
16826         * modules/xmap: New file.
16828         hash-map: New module.
16829         * lib/gl_hash_map.h: New file.
16830         * lib/gl_hash_map.c: New file.
16831         * modules/hash-map: New file.
16833         linkedhash-map: New module.
16834         * lib/gl_linkedhash_map.h: New file.
16835         * lib/gl_linkedhash_map.c: New file.
16836         * lib/gl_anyhash1.h: Update comments.
16837         * lib/gl_anyhash2.h: Likewise.
16838         * modules/linkedhash-map: New file.
16840         array-map: New module.
16841         * lib/gl_array_map.h: New file.
16842         * lib/gl_array_map.c: New file.
16843         * modules/array-map: New file.
16845         map: New module.
16846         * lib/gl_map.h: New file.
16847         * lib/gl_map.c: New file.
16848         * lib/gl_omap.h (gl_mapkey_dispose_fn, gl_mapvalue_dispose_fn): Avoid
16849         conflict with gl_map.h.
16850         * modules/map: New file.
16852 2018-12-13  Bruno Haible  <bruno@clisp.org>
16854         select tests: Avoid test failure on Cygwin.
16855         * tests/test-select.h (test_bad_fd): Use an fd < FD_SETSIZE.
16857 2018-12-13  Bruno Haible  <bruno@clisp.org>
16859         localtime-buffer: Avoid endless recursion in localtime and gmtime.
16860         * lib/localtime-buffer.c: Undefine localtime and gmtime before use.
16862 2018-12-13  Bruno Haible  <bruno@clisp.org>
16864         localeconv tests: Avoid test failure on Cygwin.
16865         * tests/test-localeconv.c (main): On Cygwin, skip the 'grouping' and
16866         'mon_grouping' tests.
16868 2018-12-11  Bruno Haible  <bruno@clisp.org>
16870         omap: Don't dispose the old value when the function returns it.
16871         * lib/gl_array_omap.c (gl_array_remove_at): Don't invoke the vdispose_fn
16872         here.
16873         * lib/gl_avltree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16874         * lib/gl_rbtree_omap.c (NODE_PAYLOAD_DISPOSE): Likewise.
16875         * lib/gl_omap.h (gl_omap_nx_put, gl_omap_remove): Invoke the vdispose_fn
16876         here.
16878         array-omap, avltree-omap, rbtree-omap: Tweak style.
16879         * lib/gl_anytree_omap.h (gl_tree_nx_getput): Return 1 or 0, not true or
16880         false.
16881         * lib/gl_array_omap.c (gl_array_nx_getput): Likewise.
16883         rbtree-omap: Add tests.
16884         * tests/test-rbtree_omap.c: New file.
16885         * modules/rbtree-omap-tests: New file.
16887         avltree-omap: Add tests.
16888         * tests/test-avltree_omap.c: New file.
16889         * modules/avltree-omap-tests: New file.
16891         array-omap: Add tests.
16892         * tests/test-array_omap.c: New file.
16893         * modules/array-omap-tests: New file.
16895         xomap: New module.
16896         * lib/gl_xomap.h: New file.
16897         * lib/gl_xomap.c: New file.
16898         * modules/xomap: New file.
16900         rbtree-omap: New module.
16901         * lib/gl_rbtree_omap.h: New file.
16902         * lib/gl_rbtree_omap.c: New file.
16903         * lib/gl_rbtree_ordered.h: Code moved to here from lib/gl_rbtree_oset.c.
16904         Parameterize.
16905         * lib/gl_rbtree_oset.c: Include gl_rbtree_ordered.h.
16906         * modules/rbtree-omap: New file.
16907         * modules/rbtree-oset (Files): Add lib/gl_rbtree_ordered.h.
16908         (Makefile.am): Add gl_rbtree_ordered.h to lib_SOURCES.
16910         avltree-omap: New module.
16911         * lib/gl_avltree_omap.h: New file.
16912         * lib/gl_avltree_omap.c: New file.
16913         * lib/gl_avltree_ordered.h: Code moved to here from
16914         lib/gl_avltree_oset.c. Parameterize.
16915         * lib/gl_avltree_oset.c: Include gl_avltree_ordered.h.
16916         * lib/gl_anytree_omap.h: New file.
16917         * modules/avltree-omap: New file.
16918         * modules/avltree-oset (Files): Add lib/gl_avltree_ordered.h.
16919         (Makefile.am): Add gl_avltree_ordered.h to lib_SOURCES.
16921         array-omap: New module.
16922         * lib/gl_array_omap.h: New file.
16923         * lib/gl_array_omap.c: New file.
16924         * modules/array-omap: New file.
16926         omap: New module.
16927         * lib/gl_omap.h: New file.
16928         * lib/gl_omap.c: New file.
16929         * modules/omap: New file.
16931 2018-12-11  Bruno Haible  <bruno@clisp.org>
16933         hash-set, linkedhash-set: Reduce code duplication.
16934         * lib/gl_anyhash1.h: Rename from lib/gl_anyhash_list1.h and
16935         lib/gl_anyhash_set1.h.
16936         * lib/gl_anyhash2.h: Rename from lib/gl_anyhash_list2.h and
16937         lib/gl_anyhash_set2.h. Parameterize.
16938         (hash_resize_after_add): New function, from lib/gl_anyhash_set2.h.
16939         * lib/gl_anytreehash_list1.h (hash_resize_after_add): Remove function.
16940         * lib/gl_avltreehash_list.c: Include gl_anyhash1.h instead of
16941         gl_anyhash_list1.h. Include gl_anyhash2.h instead of gl_anyhash_list2.h.
16942         * lib/gl_rbtreehash_list.c: Likewise.
16943         * lib/gl_linkedhash_list.c: Likewise.
16944         (hash_resize_after_add): Remove function.
16945         * lib/gl_linkedhash_set.c: Include gl_anyhash1.h instead of
16946         gl_anyhash_set1.h. Include gl_anyhash2.h instead of gl_anyhash_set2.h.
16947         * gl_hash_set.c: Likewise.
16948         * modules/avltreehash-list (Files, Makefile.am): Update file list.
16949         * modules/rbtreehash-list (Files, Makefile.am): Likewise.
16950         * modules/linkedhash-list (Files, Makefile.am): Likewise.
16951         * modules/linkedhash-set (Files, Makefile.am): Likewise.
16952         * modules/hash-set (Files, Makefile.am): Likewise.
16954 2018-12-11  Bruno Haible  <bruno@clisp.org>
16956         array-set: Optimize.
16957         * lib/gl_array_set.c (gl_array_search, gl_array_remove): Test equals_fn
16958         outside the loop, not inside the loop.
16960 2018-12-11  Bruno Haible  <bruno@clisp.org>
16962         times: Fix tests.
16963         * tests/test-times.c (doublecmp): Implement a total order.
16965 2018-12-11  Bruno Haible  <bruno@clisp.org>
16967         array-set, linkedhash-set, hash-set: Fix tests.
16968         * tests/test-array_set.c (cmp_objects_in_array): New function.
16969         (check_equals): Use it.
16970         * tests/test-hash_set.c: Likewise.
16971         * tests/test-linkedhash_set.c: Likewise.
16973 2018-12-08  Bruno Haible  <bruno@clisp.org>
16975         Fix comments.
16976         * lib/gl_list.h (gl_list_free): Clarify what it does.
16977         * lib/gl_oset.h (gl_oset_free): Likewise.
16978         * lib/gl_set.h (gl_set_free): Likewise.
16979         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Fix typo in comment.
16980         * lib/gl_array_oset.c (gl_array_search_atleast): Likewise.
16981         * lib/gl_anyavltree_list1.h (MAXHEIGHT): Likewise.
16982         * lib/gl_avltree_oset.c (MAXHEIGHT): Likewise.
16984 2018-12-03  Bruno Haible  <bruno@clisp.org>
16986         hash-set: Add tests.
16987         * tests/test-hash_set.c: New file.
16988         * modules/hash-set-tests: New file.
16990         linkedhash-set: Add tests.
16991         * tests/test-linkedhash_set.c: New file.
16992         * modules/linkedhash-set-tests: New file.
16994         array-set: Add tests.
16995         * tests/test-array_set.c: New file.
16996         * modules/array-set-tests: New file.
16998         xset: New module.
16999         * lib/gl_xset.h: New file.
17000         * lib/gl_xset.c: New file.
17001         * modules/xset: New file.
17003         hash-set: New module.
17004         * lib/gl_hash_set.h: New file.
17005         * lib/gl_hash_set.c: New file.
17006         * modules/hash-set: New file.
17008         linkedhash-set: New module.
17009         * lib/gl_linkedhash_set.h: New file.
17010         * lib/gl_linkedhash_set.c: New file.
17011         * lib/gl_anyhash_set1.h: New file, based on lib/gl_anyhash_list1.h.
17012         * lib/gl_anyhash_set2.h: New file, based on lib/gl_anyhash_list2.h.
17013         * lib/gl_anyhash_primes.h: New file, extracted from
17014         lib/gl_anyhash_list2.h.
17015         * lib/gl_anyhash_list2.h: Include it.
17016         (primes, next_prime): Remove definitions.
17017         * modules/linkedhash-set: New file.
17018         * modules/avltreehash-list (Files): Add lib/gl_anyhash_primes.h.
17019         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17020         * modules/linkedhash-list (Files): Add lib/gl_anyhash_primes.h.
17021         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17022         * modules/rbtreehash-list (Files): Add lib/gl_anyhash_primes.h.
17023         (Makefile.am): Add gl_anyhash_primes.h to lib_SOURCES.
17025         array-set: New module.
17026         * lib/gl_array_set.h: New file.
17027         * lib/gl_array_set.c: New file.
17028         * modules/array-set: New file.
17030         set: New module.
17031         * lib/gl_set.h: New file.
17032         * lib/gl_set.c: New file.
17033         * lib/gl_oset.h (gl_setelement_dispose_fn): Avoid conflict with
17034         gl_set.h.
17035         * modules/set: New file.
17037 2018-12-07  Akim Demaille  <akim@lrde.epita.fr>
17039         bison: don't force the Yacc mode
17040         Passing -y forces Bison into POSIX YACC mode.  This includes reporting
17041         errors when Bison features are used in the grammar file.  Some of
17042         these features (such as %expect) were flagged non-yacc recently.  Most
17043         of the time, -y is actually used to please Automake's ylwrap which
17044         expects the output to be y.tab.c.
17045         * m4/bison.m4 (gl_BISON): Use `-o y.tab.c` rather than `-y`.
17047 2018-12-01  Bruno Haible  <bruno@clisp.org>
17049         gnupload: Document short options.
17050         * build-aux/gnupload (usage): Document the short options.
17052 2018-11-28  Ben Elliston  <bje@gnu.org>
17054         gnupload: Support option -h as alias of --help.
17055         * build-aux/gnupload: Support -h.
17057 2018-11-30  Paul Eggert  <eggert@cs.ucla.edu>
17059         memrchr: port better to clang
17060         * lib/memrchr.c (__memrchr): Cast to void * instead of to
17061         longword *, to pacify clang -Wcast-align (Bug#33544).
17063 2018-11-29  Eric Blake  <eblake@redhat.com>
17065         docs: mention printf %m considerations
17066         * doc/glibc-functions/asprintf.texi (asprintf): Document that %m
17067         is not portable, and is easy enough to work around.
17068         * doc/glibc-functions/obstack_printf.texi (obstack_printf): Likewise.
17069         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf): Likewise.
17070         * doc/glibc-functions/vasprintf.texi (vasprintf): Likewise.
17071         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
17072         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
17073         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
17074         * doc/posix-functions/printf.texi (printf): Likewise.
17075         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
17076         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
17077         * doc/posix-functions/swprintf.texi (swprintf): Likewise.
17078         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
17079         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17080         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
17081         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17082         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
17083         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
17084         * doc/posix-functions/vswprintf.texi (vswprintf): Likewise.
17085         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
17086         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
17088 2018-11-29  Akim Demaille  <akim@lrde.epita.fr>
17090         bitset: rename ebitset/expandable.* as tbitset/table.*
17091         See
17092         https://lists.gnu.org/archive/html/bug-gnulib/2018-11/msg00096.html.
17093         * lib/bitset/expandable.h, lib/bitset/expandable.c: Rename as...
17094         * lib/bitset/table.h, lib/bitset/table.c: these.
17095         Rename all the ebitset* symbols as tbitset*.
17096         Adjust dependencies.
17098 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17100         bitset: check the operations
17101         * tests/test-bitset.c (bitset_random): New.
17102         Use it.
17103         * lib/bitset/expandable.c (ebitset_not): Fix typo.
17105 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17107         bitset: properly use false/true instead of 0/1 for Booleans
17108         * lib/bitset/expandable.c, lib/bitset/vector.c: Use false/true, not
17109         0/1, as Booleans.
17111 2018-11-28  Akim Demaille  <akim@lrde.epita.fr>
17113         bitset: rename BITSET_VARRAY as BITSET_VECTOR
17114         For consistency with the name of the file.
17115         * doc/bitset.texi, lib/bitset.c, lib/bitset/base.h,
17116         * lib/bitset/stats.c, lib/bitset/vector.c
17117         (BITSET_VARRAY): Rename as...
17118         (BITSET_VECTOR): this.
17120 2018-11-28  Paul Eggert  <eggert@cs.ucla.edu>
17122         strerror_r-posix: memmove, not memcpy
17123         * lib/strerror_r.c (safe_copy): Use memmove, not memcpy,
17124         since the source and destination might overlap in the call
17125         ‘safe_copy (buf, buflen, strerror_r (errnum, buf, buflen))’.
17126         Simplify.
17128 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17130         bitsetv: new module
17131         * lib/bitsetv.c, lib/bitsetv.h, modules/bitsetv: New.
17133 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17135         bitset: add tests and doc
17136         First stabs at providing a documentation and test for the bitset
17137         module.
17138         * doc/bitset.texi, modules/test-bitset, tests/bitset-tests.c: New.
17140 2018-11-25  Akim Demaille  <akim@lrde.epita.fr>
17142         bitset: new module
17143         * lib/bitset.c, lib/bitset.h, lib/bitset/array.c,
17144         * lib/bitset/array.h, lib/bitset/base.h, lib/bitset/expandable.c,
17145         * lib/bitset/expandable.h, lib/bitset/list.c, lib/bitset/list.h,
17146         * lib/bitset/stats.c, lib/bitset/stats.h, lib/bitset/vector.c,
17147         * lib/bitset/vector.h, modules/bitset:
17148         New.
17150 2018-11-23  Bruno Haible  <bruno@clisp.org>
17152         localename: Fix gettext test failures on mingw.
17153         * lib/localename.c (gl_locale_name_posix): Convert the result of
17154         gl_locale_name_environ to XPG syntax.
17156 2018-11-23  Karl Berry  <karl@freefriends.org>
17158         * config/srclistvars.txt,
17159         * config/srclist.txt: remove all gettext references;
17160         the gettext maintainers will sync as needed.
17162 2018-11-21  Paul Eggert  <eggert@cs.ucla.edu>
17164         mktime: add libc-config dependency
17165         I missed this when we synced from glibc.
17166         * modules/mktime (Depends-on): Add libc-config.
17168 2018-11-13  Paul Eggert  <eggert@cs.ucla.edu>
17170         longlong: fix comment typo
17171         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Fix typo.
17173 2018-11-11  Bruno Haible  <bruno@clisp.org>
17175         havelib: Remove the need to include asm-underscore.m4.
17176         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI_32BIT): New macro.
17177         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use it instead of
17178         gl_HOST_CPU_C_ABI.
17179         * modules/havelib (Files): Add host-cpu-c-abi.m4.
17180         (Depends-on): Remove host-cpu-c-abi.
17182 2018-11-03  Paul Eggert  <eggert@cs.ucla.edu>
17184         parse-datetime: simplify test for mktime failure
17185         * lib/parse-datetime.y (mktime_ok): Simplify.
17186         Remove args TZ and T; no longer needed.  Callers changed.
17188         posixtm: simplify test for mktime failure
17189         * lib/posixtm.c (posixtime): Simplify.
17191         nstrftime: simplify test for mktime failure
17192         * lib/nstrftime.c (__strftime_internal): Simplify.
17194 2018-11-02  Paul Eggert  <eggert@cs.ucla.edu>
17196         gnulib-common.m4: port _Noreturn to C++
17197         Problem reported by Akim Demaille in:
17198         https://lists.gnu.org/r/bug-bison/2018-10/msg00067.html
17199         * m4/gnulib-common.m4 (gl_COMMON_BODY): If C++, use [[noreturn]].
17200         Merge adjustments from _Noreturn.h and from glibc into the non-C++
17201         version.
17202         * lib/_Noreturn.h: Match gnulib-common.
17204 2018-10-30  Bruno Haible  <bruno@clisp.org>
17206         gnu-make: Fix for NetBSD 8 'make'.
17207         Reported by Reuben Thomas in
17208         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00135.html>.
17209         * m4/gnu-make.m4 (gl_GNU_MAKE): Use a heuristic based on the --version
17210         output, ignoring exit codes.
17212 2018-10-28  Bernhard Voelker  <mail@bernhard-voelker.de>
17214         maintainer-makefile: fix syntax-check rule for "same.h"
17215         * top/maint.mk (sc_prohibit_same_without_use): Adjust regex to check
17216         for 'same_nameat', too.
17218 2018-10-25  Paul Eggert  <eggert@cs.ucla.edu>
17220         havelib: fix nested ‘configure’ chatter
17221         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Don’t nest
17222         AC_CACHE_CHECK calls, which resulted in confusing output like
17223         “checking for the common suffixes of directories in the library
17224         search path... checking for 64-bit host... no lib,lib”.
17226         backupfile: tweak for better code
17227         * lib/backupfile.c: Sort include directives, and remove
17228         unnecessary <limits.h> include.
17229         (FALLTHROUGH): New macro, copied from other modules.
17230         (backupfile_internal): Use it to avoid code duplication.
17231         This lets GCC 8.2.1 generate better code by inlining the
17232         call to check_extension.
17234 2018-10-23  Paul Eggert  <eggert@cs.ucla.edu>
17236         backupfile: new dir_fd args
17237         New module opendirat with code taken from fts.
17238         Use this module to let backupfile use a directory file descriptor.
17239         * NEWS: Document the incompatible change.
17240         * lib/backup-find.c (find_backup_file_name):
17241         * lib/backup-rename.c (backup_file_rename):
17242         New arg DIR_FD.
17243         * lib/backupfile.c: Include stdint.h, for SIZE_MAX.
17244         (SIZE_MAX): Remove.
17245         Include opendirat.h rather than dirent--.h.
17246         (check_extension): New args DIR_FD and BASE_MAX.  All callers changed.
17247         (numbered_backup): New args DIR_FD and PNEW_FD.  All callers changed.
17248         (backupfile_internal): New arg DIR_FD.  All callers changed.
17249         * lib/fts.c: Include opendirat.h.
17250         (opendirat): Move to opendirat.c.
17251         * lib/opendirat.c, lib/opendirat.h, modules/opendirat: New files.
17252         * modules/backupfile (Depends-on): Remove dirfd, opendir.
17253         Add opendirat.
17254         * modules/fts (Depends-on): Remove fdopendir, openat-safer.
17255         Add opendirat.
17257 2018-10-23  Bruno Haible  <bruno@clisp.org>
17259         localename: Simplify support for per-thread locales on Solaris 11.4.
17260         * m4/intl-thread-locale.m4: Renamed from m4/intlsolaris.m4.
17261         (gt_INTL_THREAD_LOCALE_NAME): Renamed from gt_INTL_SOLARIS. Define
17262         HAVE_SOLARIS114_LOCALES instead of HAVE_NAMELESS_LOCALES.
17263         * lib/localename.c: Handle HAVE_SOLARIS114_LOCALES through Solaris
17264         specific code.
17265         * lib/localename-table.h: Update comments.
17266         * lib/localename-table.c: Update comments.
17267         * m4/localename.m4 (gl_LOCALENAME): Require gt_INTL_THREAD_LOCALE_NAME.
17268         Test for 'uselocale'. Don't invoke gt_INTL_SOLARIS.
17269         * m4/intl.m4 (AM_INTL_SUBDIR): Require gt_INTL_THREAD_LOCALE_NAME. Test
17270         for 'uselocale'. Set HAVE_NAMELESS_LOCALES.
17271         (gt_INTL_SUBDIR_CORE): Don't invoke gt_INTL_SOLARIS. Don't set
17272         HAVE_NAMELESS_LOCALES here.
17273         * modules/localename (Files): Add m4/intl-thread-locale.m4. Remove
17274         m4/intlsolaris.m4.
17275         * modules/gettext (Files): Likewise.
17277 2018-10-22  Bruno Haible  <bruno@clisp.org>
17279         std-gnu11: Support Autoconf versions < 2.64.
17280         * m4/std-gnu11.m4 (AC_PROG_CC, AC_PROG_CXX): Use _AC_DO as fallback
17281         when _AC_DO_LIMIT does not exist.
17283 2018-10-22  Bruno Haible  <bruno@clisp.org>
17285         Assume Autoconf >= 2.63.
17286         * DEPENDENCIES: Mention the requirement.
17288         * gnulib-tool (DEFAULT_AUTOCONF_MINVERSION): Bump to 2.63.
17289         (func_get_filelist): Don't list m4/onceonly.m4 any more.
17290         * pygnulib/GLModuleSystem.py (getFiles): Likewise.
17291         * m4/onceonly.m4: Remove file.
17293         * m4/openmp.m4: Remove file.
17294         * modules/openmp (Files): Remove m4/openmp.m4.
17296         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Don't set datarootdir, docdir,
17297         htmldir, dvidir, pdfdir, psdir, localedir.
17298         * m4/po.m4 (AM_PO_SUBDIRS): Don't set localedir.
17300         * m4/gnulib-common.m4 (m4_foreach_w): Remove fallback for
17301         Autoconf < 2.60.
17302         (AC_PROG_MKDIR_P): Remove definition for Autoconf < 2.62.
17303         (AC_PROG_SED): Remove fallback for Autoconf < 2.60.
17305         * m4/errno_h.m4 (AC_COMPUTE_INT): Remove fallback for Autoconf < 2.61.
17306         * m4/size_max.m4 (AC_COMPUTE_INT): Likewise.
17307         * m4/stdint.m4 (AC_COMPUTE_INT): Likewise.
17309         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Assume AC_USE_SYSTEM_EXTENSIONS
17310         exists.
17311         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Likewise,
17313         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Remove workaround for
17314         Autoconf < 2.61.
17316         * m4/lib-prefix.m4 (AC_LIB_ARG_WITH): Remove macro.
17317         (AC_LIB_PREFIX): Use AC_ARG_WITH, assuming semantics of
17318         Autoconf >= 2.52.
17320         * m4/longlong.m4: Require Autoconf >= 2.62. Update comments.
17321         * m4/ls-mntd-fs.m4: Require Autoconf >= 2.60. Update comments.
17322         * m4/gettext.m4 (AM_GNU_GETTEXT): Update comment.
17324 2018-10-22  Bruno Haible  <bruno@clisp.org>
17326         Assume Automake >= 1.11.
17327         * m4/configmake.m4: Update comments.
17328         * m4/lib-link.m4 (AC_LIB_RPATH): Assume AC_REQUIRE_AUX_FILE exists.
17329         * m4/po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Eliminate uses
17330         of 'eval'.
17331         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am,
17332         func_create_testdir, func_create_megatestdir): Emit a Makefile.am that
17333         requires Automake >= 1.11.
17335 2018-10-22  Bruno Haible  <bruno@clisp.org>
17337         localename: Fix typo in comment.
17338         * tests/test-locale-c++.cc (newlocale): Fix typo in comment.
17340 2018-10-22  Bruno Haible  <bruno@clisp.org>
17342         Fix failure of 'gnulib-tool --create-testdir' with all modules.
17343         * gnulib-tool (func_create_testdir): Exclude 'timevar' module.
17345 2018-10-21  Bruno Haible  <bruno@clisp.org>
17347         locale: Ease integration with GNU libintl.
17348         * lib/locale.in.h (GNULIB_defined_newlocale, GNULIB_defined_duplocale,
17349         GNULIB_defined_freelocale): New macros.
17351 2018-10-21  Bruno Haible  <bruno@clisp.org>
17353         localename: Fine-tune support for per-thread locales on Solaris 11.4.
17354         * lib/localename-table.h: New file, extracted from lib/localename.c.
17355         * lib/localename-table.c: Likewise.
17356         * lib/localename.c: Include localename-table.h.
17357         (get_locale_t_name, newlocale, duplocale, freelocale): Invoke
17358         locale_hash_function instead of pointer_hash.
17359         * modules/localename (Files): Add lib/localename-table.h,
17360         lib/localename-table.c.
17361         (lib_SOURCES): Add localename-table.c.
17362         * m4/intlsolaris.m4 (gt_INTL_SOLARIS): Require AC_CANONICAL_HOST. Test
17363         for Solaris 11.4 locale system only on Solaris. Test for it
17364         independently whether getlocalename_l exists.
17365         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Don't test for 'uselocale' and
17366         'getlocalename_l'. Instead, invoke gt_INTL_SOLARIS. Set
17367         HAVE_NAMELESS_LOCALES.
17368         * modules/gettext (Files): Add m4/intlsolaris.m4.
17370 2018-10-21  Bruno Haible  <bruno@clisp.org>
17372         Small update from gettext.
17373         * m4/intl.m4: Update from gettext:
17374         - 2018-01-02: Fix 'ar' invocation when cross-compiling and in 64-bit
17375         mode on AIX.
17376         - 2018-01-02: Don't use -lc explicitly when linking with libtool.
17377         - 2017-05-19: (AM_INTL_SUBDIR): Require AC_C_FLEXIBLE_ARRAY_MEMBER.
17379 2018-10-16  Bruno Haible  <bruno@clisp.org>
17381         mountlist: Remove support for Cray with UNICOS 9.
17382         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17383         MOUNTED_LISTMNTENT.
17384         * lib/mountlist.c: Remove MOUNTED_LISTMNTENT case.
17386 2018-10-16  Bruno Haible  <bruno@clisp.org>
17388         fsusage, mountlist, getloadavg, getgroups: Remove support for Ultrix.
17389         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't define
17390         STAT_STATFS2_FS_DATA.
17391         * lib/fsusage.c: Remove STAT_STATFS2_FS_DATA case.
17392         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17393         MOUNTED_GETMNT.
17394         * lib/mountlist.c: Remove MOUNTED_GETMNT case.
17395         * lib/getloadavg.c (decstation): Remove definition and case.
17396         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Mention NeXTstep, not Ultrix.
17397         * lib/getgroups.c: Likewise.
17398         * doc/posix-functions/getgroups.texi: Likewise.
17399         * lib/time.in.h: Update comments.
17401 2018-10-16  Bruno Haible  <bruno@clisp.org>
17403         getloadavg: Remove support for ConvexOS.
17404         * lib/getloadavg.c: Remove convex case.
17406 2018-10-16  Bruno Haible  <bruno@clisp.org>
17408         getloadavg: Remove support for Sony NEWS.
17409         * lib/getloadavg.c: Remove sony_news case.
17411 2018-10-16  Bruno Haible  <bruno@clisp.org>
17413         fsusage, mountlist, getloadavg: Remove support for Dynix/ptx.
17414         * lib/fsusage.c: Remove _SEQUENT_ case.
17415         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17416         * lib/mountlist.c: Don't test for MNTTABNAME.
17417         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Don't test for libseq.
17418         (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't test for MNTTABNAME.
17419         * lib/getloadavg.c: Remove _SEQUENT_ and sequent cases.
17420         * lib/stat-size.h: Don't mention the Sequent bug.
17421         * doc/posix-functions/utime.texi: Don't mention the Dynix bug.
17423 2018-10-16  Bruno Haible  <bruno@clisp.org>
17425         fsusage: Remove support for AIX 3.
17426         * lib/fsusage.c: Remove code for AIX 3.
17427         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Update comments.
17429 2018-10-16  Bruno Haible  <bruno@clisp.org>
17431         fsusage, stat-size, getloadavg: Remove support for AIX PS/2.
17432         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for dustat.h.
17433         * lib/fsusage.c: Remove code for AIX PS/2.
17434         * lib/stat-size.h (ST_NBLOCKSIZE): Likewise.
17435         * lib/getloadavg.c: Likewise.
17437 2018-10-16  Bruno Haible  <bruno@clisp.org>
17439         getloadavg: Remove support for HP-UX on m68k.
17440         * lib/getloadavg.c: Remove hp9000s300 case.
17442 2018-10-16  Bruno Haible  <bruno@clisp.org>
17444         fsusage, mountlist: Remove support for DolphinOS (an SVR3 variant).
17445         * lib/fsusage.c: Remove DOLPHIN case.
17446         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Update comments.
17447         * lib/mountlist.c: Remove MOUNTED_GETMNTTBL case.
17449 2018-10-16  Bruno Haible  <bruno@clisp.org>
17451         getloadavg: Remove support for Alliant FX/2800.
17452         * lib/getloadavg.c: Remove alliant case.
17454 2018-10-16  Bruno Haible  <bruno@clisp.org>
17456         getloadavg: Remove support for tek4300.
17457         * lib/getloadavg.c: Remove tek4300 case.
17459 2018-10-16  Bruno Haible  <bruno@clisp.org>
17461         getloadavg: Remove support for Ardent.
17462         * lib/getloadavg.c: Remove ardent case.
17464 2018-10-16  Bruno Haible  <bruno@clisp.org>
17466         mountlist: Remove support for SVR2.
17467         Reported by Andrew Borodin <aborodin@vmail.ru> in
17468         <https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00101.html>.
17469         * lib/mountlist.c: Remove MOUNTED_FREAD case.
17470         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't define
17471         MOUNTED_FREAD.
17473 2018-10-15  Paul Eggert  <eggert@cs.ucla.edu>
17475         libc-config: merge from glibc
17476         * lib/cdefs.h (__glibc_has_attribute): New macro.
17478         regex: depend on libc-config
17479         * modules/regex (Depends-on): Add libc-config.
17480         This is needed after the recent autoupdate from glibc.
17482 2018-10-14  Bruno Haible  <bruno@clisp.org>
17484         localename: Add support for per-thread locales on Solaris 11.4.
17485         * lib/locale.in.h (newlocale, freelocale): New declarations.
17486         (duplocale): Declare also when the 'localename' module requests it.
17487         * lib/localename.c (struniq_hash_node): Renamed from hash_node.
17488         (STRUNIQ_HASH_TABLE_SIZE): Renamed from HASH_TABLE_SIZE.
17489         (struniq): Update.
17490         (struct locale_categories_names, struct locale_hash_node): New types.
17491         (LOCALE_HASH_TABLE_SIZE): New constant.
17492         (locale_hash_table, locale_lock): New variables.
17493         (pointer_hash, get_locale_t_name): New functions.
17494         (newlocale, duplocale, freelocale): New overridden functions.
17495         (gl_locale_name_thread_unsafe): Use get_locale_t_name.
17496         * m4/intlsolaris.m4: New file.
17497         * m4/localename.m4 (gl_LOCALENAME): Require gl_LOCALE_H_DEFAULTS. Invoke
17498         gt_INTL_SOLARIS. Set HAVE_NEWLOCALE, HAVE_DUPLOCALE, HAVE_FREELOCALE,
17499         REPLACE_NEWLOCALE, REPLACE_DUPLOCALE, REPLACE_FREELOCALE.
17500         * m4/locale_h.m4 (gl_LOCALE_H): Test whether newlocale, freelocale are
17501         declared.
17502         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALENAME, HAVE_NEWLOCALE,
17503         HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17504         * modules/locale (Makefile.am): Substitute GNULIB_LOCALENAME,
17505         HAVE_NEWLOCALE, HAVE_FREELOCALE, REPLACE_NEWLOCALE, REPLACE_FREELOCALE.
17506         * modules/localename (Files): Add intlsolaris.m4.
17507         (Depends-on): Add 'locale'.
17508         (configure.ac): Invoke gl_LOCALE_MODULE_INDICATOR.
17509         * tests/test-locale-c++.cc (newlocale, freelocale): Prepare for checking
17510         the signatures.
17512 2018-10-14  Akim Demaille  <akim@lrde.epita.fr>
17514         timevar: use gethrxtime to get wall clock time
17515         clock_gettime is not portable.  gethrxtime takes the best available
17516         option to get the wall clock time, including clock_gettime (monotonic
17517         clock), and gettime (non monotonic).
17518         Also, using xtime_t instead of float preserves the precision.
17519         Suggested by Bruno Haible.
17520         * lib/xtime.h (xtime_make): Handle overflows of nanoseconds.
17521         * modules/timevar (Depends-on): We need gethrxtime.
17522         We no longer use times().
17523         (Link): Update.
17524         * lib/timevar.h (timevar_time_def): Use xtime_t.
17525         * lib/timevar.c (set_to_current_time): Use gethrxtime.
17526         (timevar_print): Instead of checking whether the timings themselves
17527         are large enough for the timevar to be printed, check the percentages.
17529 2018-10-14  Bruno Haible  <bruno@clisp.org>
17531         wcsnrtombs: Work around Solaris 11.4 bug.
17532         * m4/wcsnrtombs.m4 (gl_WCSNRTOMBS_WORKS_IN_TRADITIONAL_LOCALE): New
17533         macro.
17534         (gl_FUNC_WCSNRTOMBS): Invoke it.
17535         * doc/posix-functions/wcsnrtombs.texi: Mention the Solaris bug.
17537 2018-10-14  Bruno Haible  <bruno@clisp.org>
17539         mbsnrtowcs: Work around Solaris 11.4 bug.
17540         * m4/mbsnrtowcs.m4 (gl_MBSNRTOWCS_WORKS_IN_TRADITIONAL_LOCALE): New
17541         macro.
17542         (gl_FUNC_MBSNRTOWCS): Invoke it.
17543         * doc/posix-functions/mbsnrtowcs.texi: Mention the Solaris bug.
17545 2018-10-14  Bruno Haible  <bruno@clisp.org>
17547         doc: Update for Solaris 11.4.
17548         * doc/**/*.texi: For bugs that exist in both Solaris 11.3 and 11.4,
17549         mention Solaris 11.4.
17550         * m4/printf.m4: Update comments about Solaris.
17551         * m4/log.m4: Likewise.
17552         * m4/log10.m4: Likewise.
17553         * m4/logb.m4: Likewise.
17554         * m4/logbf.m4: Likewise.
17555         * m4/logbl.m4: Likewise.
17556         * m4/rename.m4: Likewise.
17557         * m4/wcrtomb.m4: Likewise.
17558         * m4/hostent.m4: Likewise.
17559         * m4/servent.m4: Likewise.
17561 2018-10-14  Bruno Haible  <bruno@clisp.org>
17563         floor, ceil, trunc, truncf, truncl: Defeat GCC optimizations.
17564         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Use 'floor' also through a function
17565         pointer.
17566         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use 'ceil' also through a function
17567         pointer.
17568         * m4/trunc.m4 (gl_FUNC_TRUNC): Use 'trunc' also through a function
17569         pointer.
17570         * m4/truncf.m4 (gl_FUNC_TRUNCF): Use 'truncf' also through a function
17571         pointer.
17572         * m4/truncl.m4 (gl_FUNC_TRUNCL): Use 'truncl' also through a function
17573         pointer.
17575 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17577         bootstrap: fix wget command for po files.
17578         * build-aux/bootstrap (po_download_command_format): Fix comment,
17579         and adjust callers.
17581 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17583         timevar: improve the output format
17584         Suggested by Bruno Haible.
17585         See https://lists.gnu.org/archive/html/bug-gnulib/2018-10/msg00040.html.
17586         * lib/timevar.c (timevar_print): Use %7.3f for usr/sys and %11.6f for
17587         wall, since its resolution is much higher.
17589 2018-10-13  Akim Demaille  <akim@lrde.epita.fr>
17591         timevar: expect that getrusage is available.
17592         Don't keep both times and getrusage as backend: both are guaranteed by
17593         gnulib, a single one suffices.  Using getrusage is open to possibly
17594         tracking other types of resources in the future.
17595         * modules/timevar (Depends-on): Add getrusage.
17596         (configure.ac): Remove gl_TIMEVAR.
17597         (Files): Remove m4/timevar.m4.
17598         * m4/timevar.m4: Remove, rely on gnulib for getrusage.
17599         * lib/timevar.h (timevar_enabled): Clarify documentation.
17600         * lib/timevar.c: Remove all the code about times.
17601         Remove all the CPP guards about getrusage: expect it to be present
17602         (courtesy of gnulib).
17604 2018-10-12  Bruno Haible  <bruno@clisp.org>
17606         mountlist: Improve support for Solaris in 64-bit mode.
17607         Reported by David Wood <David.Wood@deshaw.com> in
17608         <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=6816>.
17609         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): On Solaris 8 or
17610         newer, define MOUNTED_GETEXTMNTENT instead of MOUNTED_GETMNTENT2.
17611         * lib/mountlist.c: Add code for MOUNTED_GETEXTMNTENT case.
17613 2018-10-12  Bruno Haible  <bruno@clisp.org>
17615         mountlist: Add support for Minix.
17616         Reported by Assaf Gordon in
17617         <https://lists.gnu.org/archive/html/bug-gnulib/2014-09/msg00074.html>.
17618         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use
17619         AC_CHECK_FUNCS to check for 'getmntinfo'.
17620         * lib/mountlist.c: Update comments.
17622 2018-10-12  Bruno Haible  <bruno@clisp.org>
17624         Make better use of Autoconf.
17625         * m4/environ.m4: Use AC_CACHE_CHECK where possible.
17626         * m4/manywarnings.m4: Likewise.
17627         * m4/manywarnings-c++.m4: Likewise.
17628         * m4/socklen.m4: Likewise.
17629         * m4/sockpfaf.m4: Likewise.
17630         * m4/stdarg.m4: Likewise.
17631         * m4/visibility.m4: Likewise.
17632         * m4/fsusage.m4: Use AC_CACHE_CHECK where possible. Modernize
17633         indentation.
17634         * m4/ls-mntd-fs.m4: Likewise.
17636 2018-10-11  Bruno Haible  <bruno@clisp.org>
17638         mountlist: Modernize platform lists.
17639         * m4/ls-mntd-fs.m4: Clarify which MOUNTED_* symbol applies to which
17640         platforms, deemphasizing the obsolete ones.
17641         * lib/mountlist.c: Likewise.
17643 2018-10-11  Bruno Haible  <bruno@clisp.org>
17645         getprogname: Add support for 32-bit programs on HP-UX.
17646         * lib/getprogname.c (getprogname) [HP-UX]: If pstat_getproc fails,
17647         try the similar functions 32-bit programs on 64-bit HP-UX.
17649 2018-10-11  Bruno Haible  <bruno@clisp.org>
17651         getprogname: Work around program name truncation when possible.
17652         * lib/getprogname.c (getprogname) [HP-UX]: When pst_ucomm is truncated,
17653         possibly use pst_cmd instead.
17655 2018-10-08  Paul Eggert  <eggert@cs.ucla.edu>
17657         fts: cleanup after FTS_NOATIME removal
17658         * lib/fts_.h (FTS_VERBATIM, FTS_OPTIONMASK, FTS_NAMEONLY)
17659         (FTS_STOP): Shrink to minimal values.  We don’t need to
17660         worry about binary compatibility in Gnulib, and the old way
17661         of doing things had a hole in the user options that caused
17662         FTS_OPTIONMASK to not work as desired.
17664 2018-10-08  Bernhard Voelker  <mail@bernhard-voelker.de>
17666         fts: remove FTS_NOATIME
17667         This reverts commit da4d6974013c822af1498941e32db774b2031765.
17668         We cannot guarantee that O_NOATIME works: e.g. openat fails
17669         with EPERM if the effective user ID of the caller does not match
17670         the owner of the file and the caller is not privileged.
17671         Downstream findutils has never picked up FTS_NOATIME.  Discussed at
17672         <https://lists.gnu.org/r/bug-gnulib/2018-09/msg00122.html>.
17673         * lib/fts_.h (FTS_NOATIME): Remove bit flag.
17674         (FTS_OPTIONMASK): Adjust.
17675         * lib/fts.c (diropen, fts_open, fts_build): Likewise.
17676         (fd_ring_check): Likewise.
17678 2018-10-08  Bruno Haible  <bruno@clisp.org>
17680         csharpcomp*, csharpexec*: Remove support for pnet.
17681         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Don't test for cscc. Don't set
17682         HAVE_CSCC.
17683         * build-aux/csharpcomp.sh.in (options_cscc): Remove variable.
17684         Don't test HAVE_CSCC.
17685         * lib/csharpcomp.c (compile_csharp_using_pnet): Remove function.
17686         (compile_csharp_class): Don't invoke it.
17687         * m4/csharpexec.m4 (gt_CSHARPEXEC): Don't test for ilrun. Don't set
17688         HAVE_ILRUN.
17689         * build-aux/csharpexec.sh.in (options_ilrun): Remove variable.
17690         Don't test HAVE_ILRUN.
17691         * lib/csharpexec.c (execute_csharp_using_pnet): Remove function.
17692         (execute_csharp_program): Don't invoke it.
17693         * m4/csharp.m4 (gt_CSHARP_CHOICE): Don't recognize --enable-csharp=pnet
17694         any more.
17696 2018-10-07  Andreas Henriksson  <andreas@fatal.se>  (tiny change)
17698         renameatu: prefer renameat2 to syscall
17699         * lib/renameatu.c (renameatu) [HAVE_RENAMEAT2]:
17700         Use renameat2 instead of syscall (Bug#32796).
17701         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Check for renameat2.
17703 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17705         bootstrap, gnulib-tool: use https instead of insecure rsync
17706         * build-aux/bootstrap (download_po_files, po_download_command_format):
17707         Don't try using rsync; always use wget over https to fetch PO files.
17708         * gnulib-tool (func_import): Likewise.
17709         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17711 2018-10-07  Benno Schulenberg  <bensberg@telfort.nl>
17713         bootstrap, gnulib-tool: correct the translations wget command
17714         * build-aux/bootstrap (po_download_command_format2): Restrict
17715         recursion to a single level.
17716         * gnulib-tool (func_import): Likewise.
17717         * pygnulib/GLImport.py (GLImport.execute): Likewise.
17719 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17721         doc: the gnulib snapshots are not maintained
17722         * doc/gnulib-intro.texi (Steady Development): Don't mention them.
17724 2018-10-07  Akim Demaille  <akim@lrde.epita.fr>
17726         timevar: add to lib_SOURCES
17727         * modules/timevar (lib_SOURCES): Add timevar.c and timevar.def.
17729 2018-10-07  Bruno Haible  <bruno@clisp.org>
17731         dirent: Update documentation.
17732         * doc/posix-headers/dirent.texi: The MSVC issue is fixed by Gnulib.
17734 2018-10-05  Bruno Haible  <bruno@clisp.org>
17736         strpbrk: Make it possible to namespace the defined symbol.
17737         * lib/strpbrk.c (strpbrk): Don't undefine outside of glibc.
17739 2018-10-05  Bruno Haible  <bruno@clisp.org>
17741         strcspn: Make it possible to namespace the defined symbol.
17742         * lib/strcspn.c (strcspn): Don't undefine outside of glibc.
17744 2018-10-05  Bruno Haible  <bruno@clisp.org>
17746         raise: Make it possible to namespace the defined symbol.
17747         * lib/raise.c (raise): Undefine only after the replacement function has
17748         been defined.
17749         (raise): Renamed from rpl_raise.
17750         (raise_nothrow): Move to the end of the compilation unit.
17752 2018-10-05  Bruno Haible  <bruno@clisp.org>
17754         memcmp: Make it possible to namespace the defined symbol.
17755         * lib/memcmp.c (memcmp): Don't undefine outside of glibc.
17757 2018-10-05  Bruno Haible  <bruno@clisp.org>
17759         explicit_bzero: Make it possible to namespace the defined symbol.
17760         * lib/explicit_bzero.c (explicit_bzero): Don't undefine outside of
17761         glibc.
17763 2018-10-05  Bruno Haible  <bruno@clisp.org>
17765         mkdir-p: Depend on 'mkdir'.
17766         * modules/mkdir-p (Depends-on): Add 'mkdir'.
17768 2018-10-05  Bruno Haible  <bruno@clisp.org>
17770         tempname: Depend on 'mkdir'.
17771         Reported by Maarten Bosmans <mkbosmans@gmail.com>
17772         at <https://savannah.gnu.org/bugs/?33379>.
17773         * modules/tempname (Depends-on): Add 'mkdir'.
17775 2018-10-05  Akim Demaille  <akim@lrde.epita.fr>
17777         timevar: rely on gnulib modules for time portability.
17778         * modules/timevar (Depends-on): Add sys_time, sys_times, and times.
17779         * m4/timevar.m4: Don't check for clock_t and struct tms,
17780         guaranteed by gnulib.
17781         * lib/timevar.h: Use extern "C" protection.
17782         Include <stdio.h> for FILE.
17783         * lib/timevar.c: Include sys/time.h, sys/times.h unconditionally,
17784         they are guaranteed by gnulib.
17785         Remove uses of clock as (now useless) fallback.
17787 2018-10-04  Bruno Haible  <bruno@clisp.org>
17789         sh-filename: New module.
17790         * m4/sh-filename.m4: New file.
17791         * modules/sh-filename: New file.
17792         * lib/spawni.c (_PATH_BSHELL): Use BOURNE_SHELL instead of hardcoding
17793         "/bin/sh".
17794         * tests/test-posix_spawn1.c (main): Likewise.
17795         * tests/test-posix_spawn2.c (main): Likewise.
17796         * lib/javacomp.c (compile_using_envjavac, is_envjavac_gcj,
17797         is_envjavac_gcj43): Likewise.
17798         * lib/javaexec.c (execute_java_class): Likewise.
17799         * modules/posix_spawn-internal (Depends-on): Add sh-filename.
17800         * modules/posix_spawnp-tests (Depends-on): Likewise.
17801         * modules/javacomp (Depends-on): Likewise.
17802         * modules/javaexec (Depends-on): Likewise.
17804 2018-10-04  Bruno Haible  <bruno@clisp.org>
17806         spawn-pipe tests: Avoid test failure on native Windows.
17807         * tests/test-spawn-pipe-child.c (main): On native Windows, don't expect
17808         that fd 2 is closed.
17810 2018-10-04  Bruno Haible  <bruno@clisp.org>
17812         fcntl: Make it possible to namespace the defined symbol.
17813         * lib/fcntl.c (fcntl): Undefine only after the replacement function has
17814         been defined.
17815         (fcntl): Renamed from rpl_fcntl.
17816         (rpl_fcntl_DUPFD, rpl_fcntl_DUPFD_CLOEXEC): New functions, extracted
17817         from fcntl.
17818         (klibc_fcntl): Move to the end of the compilation unit.
17820 2018-10-02  Bruno Haible  <bruno@clisp.org>
17822         vasnprintf tests: Avoid test failure on HP-UX/hppa and IRIX.
17823         * tests/test-vasnprintf.c (test_function): Change the test added on
17824         2018-09-23 to check only the 18 most significant digits.
17826         vasnprintf tests: Avoid test failure on Cygwin.
17827         * tests/test-vasnprintf.c (test_function): Change the test added on
17828         2018-09-23 to check only the 42 most significant digits.
17830 2018-10-01  Bruno Haible  <bruno@clisp.org>
17832         mkostemp, mkostemps: Update documentation.
17833         * doc/glibc-functions/mkostemp.texi: Mention the Mac OS X issue.
17834         * doc/glibc-functions/mkostemps.texi: Likewise.
17836 2018-10-01  Tom Tromey  <tom@tromey.com>
17838         mkostemp, mkostemps: Fix compilation error in C++ mode on Mac OS X.
17839         * lib/stdlib.in.h: Include <unistd.h> for mkostemp and mkostemps
17840         on OS X.
17842 2018-09-30  Pádraig Brady  <P@draigBrady.com>
17844         hmac-*: refactor to remove repetitive code
17845         * lib/hmac.c: A new parameterized single implementation.
17846         * lib/hmac-md5.c: Define parameters and include implementation.
17847         * lib/hmac-sha1.c: Likewise.
17848         * lib/hmac-sha256.c: Likewise.
17849         * lib/hmac-sha512.c: Likewise.
17850         * modules/crypto/hmac-md5: Reference the new implementation file.
17851         * modules/crypto/hmac-sha1: Likewise.
17852         * modules/crypto/hmac-sha256: Likewise.
17853         * modules/crypto/hmac-sha512: Likewise.
17854         * tests/test-hmac-md5.c: Refactor common code to a single function.
17855         * tests/test-hmac-sha1.c: Likewise.
17856         * tests/test-hmac-sha256.c: Likewise.
17857         * tests/test-hmac-sha512.c: Likewise.
17859 2018-09-30  Zhang Qing  <zhangqingl@126.com>
17861         hmac-sha512: fix hash for keys > blocksize (128 bytes)
17862         * lib/hmac-sha512.c (hmac_sha512): Set the computed/shortened
17863         key length to that output by sha512, not the blocksize.
17864         Otherwise uninitialized data from the stack
17865         is used when computing the hash.
17866         * tests/test-hmac-sha512.c: Add a shortened key test case.
17867         Reported at https://github.com/coreutils/gnulib/pull/5
17869 2018-09-30  Bruno Haible  <bruno@clisp.org>
17871         vasnprintf: Avoid warnings from GCC's -Wsign-compare.
17872         Reported by Bjarni Ingi Gislason <bjarniig@rhi.hi.is> in
17873         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00105.html>.
17874         * lib/vasnprintf.c (VASNPRINTF): Cast 'count' from 'int' to
17875         'unsigned int' before comparison with an unsigned value.
17877 2018-09-30  Bruno Haible  <bruno@clisp.org>
17879         grantpt: Remove unnecessary dependency.
17880         * modules/grantpt (Depends-on): Remove 'builtin-expect'.
17882 2018-09-30  Bruno Haible  <bruno@clisp.org>
17884         timevar: Small tweaks.
17885         * lib/timevar.h: Fix comments. Add parameter names to function
17886         declarations.
17887         * lib/timevar.c: Include timevar.h immediately after config.h.
17888         * lib/timevar.def: Fix comments.
17889         * modules/timevar (Maintainer): List Akim Demaille.
17891 2018-09-30  Bruno Haible  <bruno@clisp.org>
17893         timevar: Include documentation in gnulib manual.
17894         * doc/timevar.texi: Change node and section name to 'Profiling of
17895         program phases'.
17896         In the code snippets, tweak the #includes and use GNU coding style.
17897         * doc/gnulib.texi: Include timevar.texi.
17899 2018-09-27  Akim Demaille  <akim@lrde.epita.fr>
17901         timevar: import from Bison.
17902         * m4/timevar.m4, modules/timevar, lib/timevar.h, lib/timevar.c:
17903         New files.
17904         * lib/timevar.def: New file.
17905         * doc/timevar.texi: New file.
17907 2018-09-26  Bruno Haible  <bruno@clisp.org>
17909         javacomp-script, javacomp: Add preliminary support for Java 12..17.
17910         * m4/javacomp.m4 (gt_JAVACOMP): Treat Java versions 12..17 like 11.
17911         * lib/javacomp.c (default_target_version): Likewise.
17913 2018-09-26  Bruno Haible  <bruno@clisp.org>
17915         javacomp-script, javacomp: Add support for Java 11.
17916         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 11 and
17917         target-version 11.
17918         * lib/javaversion.h: Update comments.
17919         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
17920         source_version_index, get_goodcode_snippet, get_failcode_snippet,
17921         TARGET_VERSION_BOUND, target_version_index,
17922         corresponding_classfile_version): Accept source_version 11 and
17923         target_version 11.
17924         * lib/javacomp.h: Update comments accordingly.
17926 2018-09-23  Bruno Haible  <bruno@clisp.org>
17928         vasnprintf: Fix heap memory overrun bug.
17929         Reported by Ben Pfaff <blp@cs.stanford.edu> in
17930         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00107.html>.
17931         * lib/vasnprintf.c (convert_to_decimal): Allocate one more byte of
17932         memory.
17933         * tests/test-vasnprintf.c (test_function): Add another test.
17935 2018-09-19  Paul Eggert  <eggert@cs.ucla.edu>
17937         maint: mktime.c now shared with glibc
17938         * config/srclist.txt: intprops.h, timegm.c and mktime.c
17939         are now the same in Gnulib and glibc.
17941         mktime: fix _LIBC typo
17942         * lib/mktime.c (mktime): Fix typo (misspelled "_LIBC").
17944 2018-09-19  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17946         dfa: optimization for state merge
17947         * lib/dfa.c (merge2): New function.
17948         (merge_nfa_state): Use it.
17950 2018-09-18  Jim Meyering  <meyering@fb.com>
17952         dfa: trivial comment fix: s/is/if/
17953         * lib/dfa.c (maybe_disable_superset_dfa): Fix comment typo.
17955 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
17957         dfa: use more-informative function name
17958         * lib/dfa.c (maybe_disable_superset_dfa):
17959         Rename from dfautf8noss.  Use change.
17961         dfa: tweak allocation performance
17962         * lib/dfa.c (merge_nfa_state, dfaoptimize):
17963         Prefer ptrdiff_t for indexes some more.
17964         Use char for flags, as it’s wide enough.
17965         Allocate queue and flags together, with one malloc call.
17966         No need to use xnmalloc since the multiplication and
17967         addition cannot overflow (it’s already been checked by
17968         earlier allocation).  Prefer memset to open-coding.
17970         dfa: prune states as we go
17971         * lib/dfa.c (prune): Remove.
17972         dfa: reorder enum for efficiency
17973         (merge_nfa_state): Prune as we go instead of at the end.
17974         Prefer ptrdiff_t for indexes, as this helps the compiler a bit.
17976         * lib/dfa.c (END): Now -1 again.  Reorder other elements
17977         of the enumeration to make it easier for GCC to generate
17978         efficient code by using fewer comparisons to check for
17979         ranges of values.
17980         (atom): Take advantage of the reordering.
17982 2018-09-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
17984         dfa: optimize alternation in NFA
17985         Even when similar states exist in alternation, the DFA treats them
17986         as separate items, which may complicate the transition in NFA and
17987         cause slowdown.  This change assembles the states into one.  For
17988         example, ab|ac is changed into a(b|c).  This change speeds-up
17989         matching for many branched patterns.  For example, grep speeds up
17990         more than 30× in:
17992           seq 10000 | sed 's/$/ abcdefghijklmnopqrstuvwxyz/; s/$/./' >in
17993           time -p env LC_ALL=C grep -vf in in
17995         * lib/dfa.c (prune): New function.
17996         (merge_nfa_state): New function.  It merges similar NFA states.
17997         (dfaoptimize): New function.  It seeks merged and removed nodes.
17998         (dfaanalyze): Call new function.
17999         (dfautf8noss): Change name from dfaoptimize because of addition of new
18000         function.
18001         (dfacomp): Update caller.
18003         dfa: simplify initial state
18004         Simplifying the initial state enables easier optimization of the NFA.
18005         * lib/dfa.c (enum token): Add new element BEG.
18006         (prtok): Adjust due to adding element BEG.
18007         (dfaparse): Put BEG at a head of tokens.
18008         (state_index): Adjust due to adding element BEG.
18009         (dfaanalyze): Concatenate BEG to other tokens, and simplify to
18010         build initial state.
18011         (dfamust): Adjust due to adding element BEG.  DFAMUST ignores it.
18013 2018-09-18  Bruno Haible  <bruno@clisp.org>
18015         file-has-acl: Fix test failure on Cygwin 2.9.
18016         * m4/acl.m4 (gl_FUNC_ACL): Update comments regarding Cygwin.
18017         * lib/acl-internal.h: Likewise.
18018         (HAVE_ACL_EXTENDED_FILE): Undefine on Cygwin.
18019         * lib/acl-internal.c: Update comments regarding Cygwin.
18020         * lib/acl_entries.c: Likewise.
18021         * lib/file-has-acl.c: Likewise.
18022         (file_has_acl): For Cygwin, use a different way to determine whether
18023         the "default" ACL of a directory is nontrivial.
18024         * lib/get-permissions.c: Update comments regarding Cygwin.
18025         * lib/set-permissions.c: Likewise.
18027 2018-09-18  Bruno Haible  <bruno@clisp.org>
18029         stat-time tests: Fix test failure on Cygwin.
18030         * tests/nap.h (nap_get_stat): Treat Cygwin like native Windows.
18032 2018-09-18  Paul Eggert  <eggert@cs.ucla.edu>
18034         doc: OS X 10.11 lacked ns time functions
18035         According to <https://github.com/zeromq/libzmq/issues/2175>,
18036         nanosecond-resolution timestamp functions were introduced
18037         in macOS 10.12, so document the last version (OS X 10.11)
18038         where they were absent.
18040         gettime: nanotime never existed
18041         Problem reported by Bruno Haible in:
18042         https://lists.gnu.org/r/bug-gnulib/2018-09/msg00082.html
18043         * lib/gettime.c (gettime) [HAVE_NANOTIME]: Remove unused code.
18044         * m4/gettime.m4 (gl_GETTIME): Don’t check for nanotime.
18046 2018-09-18  Bruno Haible  <bruno@clisp.org>
18048         doc: Update statement about target platforms.
18049         Reported by Simon Sobisch.
18050         * doc/gnulib-intro.texi (Target Platforms): Update. Mention
18051         restrictions on MSVC versions.
18053 2018-09-18  Bruno Haible  <bruno@clisp.org>
18055         posix_spawn tests: Fix link error on 64-bit Cygwin.
18056         * tests/test-posix_spawn1.c (environ): Remove declaration.
18057         * tests/test-posix_spawn2.c (environ): Likewise.
18058         * tests/test-posix_spawn3.c (environ): Likewise.
18059         * tests/test-posix_spawn4.c (environ): Likewise.
18060         * modules/posix_spawn-tests (Depends-on): Add 'environ'.
18061         * modules/posix_spawnp-tests (Depends-on): Likewise.
18063 2018-09-16  Paul Eggert  <eggert@cs.ucla.edu>
18065         timespec: new function current_timespec
18066         * lib/gettime.c (gettime): Prefer clock_gettime to nanotime,
18067         and don’t worry about it failing on a CLOCK_REALTIME arg.
18068         POSIX requires it to succeed and I don’t know of any
18069         counterexamples where the fallbacks would work.
18070         (current_timespec): New function, taken from Emacs.  It is more
18071         convenient than gettime, and can help register allocation.
18072         * lib/timespec.h: Include arg-nonnull.h.
18073         (current_timespec): New declaration.
18074         (gettime, settime): Declare args to be nonnull.
18075         * modules/timespec (Depends-on): Add snippet/arg-nonnull.
18077 2018-09-16  Bruno Haible  <bruno@clisp.org>
18079         setlocale: Improve locale handling on macOS 10.12 or newer.
18080         * lib/setlocale.c: Include header files for CoreFoundation. Declare
18081         gl_locale_name_canonicalize.
18082         (libintl_setlocale): Try harder to set a locale for categories LC_CTYPE
18083         and LC_MESSAGES.
18084         * m4/setlocale.m4 (gl_PREREQ_SETLOCALE): Add comment.
18086 2018-09-16  Bruno Haible  <bruno@clisp.org>
18088         Update list of locale names with scripts on macOS.
18089         * lib/localename.c (gl_locale_name_canonicalize): Update tables to
18090         match Mac OS X 10.13 and recent glibc.
18092 2018-09-16  Bruno Haible  <bruno@clisp.org>
18094         gettext: Use newer macOS APIs when possible.
18095         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Check for
18096         CFLocaleCopyPreferredLanguages.
18098 2018-09-16  Bruno Haible  <bruno@clisp.org>
18100         localename: Revisit macOS specific code.
18101         * lib/localename.c (gl_locale_name_default): Reduce code duplication.
18102         Fix comments about Mac OS X versions.
18104 2018-09-15  Bruno Haible  <bruno@clisp.org>
18106         setlocale: Improve support for locales not supported by libc.
18107         Reported by Dapeng Gao <peter@dpgao.cc> at
18108         <https://savannah.gnu.org/bugs/?54479>.
18109         * gettext-runtime/intl/setlocale.c: Include <stdio.h>.
18110         (libintl_setlocale): Use a more error-tolerant strategy when the locale
18111         to be set is not supported by libc: Emit warnings instead of failing.
18113 2018-09-15  Bruno Haible  <bruno@clisp.org>
18115         strstr, strcasestr: Add workaround against glibc-2.28 bug.
18116         Reported by Michael Brunnbauer via Siddhesh Poyarekar and Eric Blake.
18117         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Set
18118         gl_cv_func_strstr_works_always to 'no' on glibc 2.28.
18119         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Set
18120         gl_cv_func_strcasestr_works_always to 'no' on glibc 2.28.
18121         * doc/posix-functions/strstr.texi: Document the glibc 2.28 bug.
18122         * doc/glibc-functions/strcasestr.texi: Likewise.
18124 2018-09-14  Bruno Haible  <bruno@clisp.org>
18126         doc: Fix bottom of top-level page.
18127         Reported by Akim Demaille <akim.demaille@gmail.com> in
18128         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00072.html>.
18129         * doc/pastposix-functions/index.texi: Rename node to '_index' in HTML
18130         mode.
18131         * doc/gnulib.texi (Legacy Function Substitutes): Update menu
18132         accordingly.
18134 2018-09-12  Bruno Haible  <bruno@clisp.org>
18136         Add test case from a recent glibc bug.
18137         * tests/test-strstr.c (main): Add test of long needle.
18138         * tests/test-strcasestr.c (main): Likewise.
18139         * tests/test-c-strstr.c (main): Likewise.
18140         * tests/test-c-strcasestr.c (main): Likewise.
18141         * tests/test-memmem.c (main): Likewise.
18143 2018-09-12  Bruno Haible  <bruno@clisp.org>
18145         Apply Eric Blake's improvements from 2011-02-25 to more tests.
18146         * tests/test-c-strstr.c (main): Add the same tests here as well.
18148 2018-09-12  Bruno Haible  <bruno@clisp.org>
18150         Apply Jim Meyering's fix from 2015-01-11 to more tests.
18151         * tests/test-memmem.c (main): Free haystack.
18152         * tests/test-strcasestr.c (main): Likewise.
18153         * tests/test-c-strcasestr.c (main): Likewise.
18155 2018-09-11  Paul Eggert  <eggert@cs.ucla.edu>
18157         xstrtol: fix missing-TYPE_SIGNED typo
18158         * lib/xstrtol.c (TYPE_SIGNED): New macro, duplicating intprops.h.
18160 2018-09-10  Paul Eggert  <eggert@cs.ucla.edu>
18162         timespec: fix resolution confusion
18163         In normal usage, clock resolution is given in seconds, but the
18164         code was mistakenly using inverse seconds and calling it
18165         “resolution”.  Fix this, partly by renaming two identifiers.
18166         The old names will be kept for a bit, to ease transition.
18167         * lib/timespec.h (TIMESPEC_HZ, LOG10_TIMESPEC_HZ):
18168         New constants, replacing TIMESPEC_RESOLUTION and
18169         LOG10_TIMESPEC_RESOLUTION, which are now obsolescent.
18170         All uses changed.
18172 2018-09-09  Paul Eggert  <eggert@cs.ucla.edu>
18174         mktime: simplify in prep for glibc merge
18175         * lib/mktime.c, lib/timegm.c [_LIBC]:
18176         Include mktime-internal.h (a small file just for glibc)
18177         instead of using a typedef.
18179 2018-09-07  Paul Eggert  <eggert@cs.ucla.edu>
18181         intprops: minor clarification of code
18182         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW):
18183         Use _GL_INT_CONVERT rather than reinventing it.
18185 2018-09-07  Bruno Haible  <bruno@clisp.org>
18187         Fix a comment.
18188         * tests/test-posix_spawn3.c (parent_main): Fix typo in comment.
18190 2018-09-07  Bruno Haible  <bruno@clisp.org>
18192         posix_spawn_file_actions_addchdir: Add tests.
18193         * tests/test-posix_spawn_file_actions_addchdir.c: New file.
18194         * tests/test-posix_spawn4.c: New file.
18195         * modules/posix_spawn_file_actions_addchdir-tests: New file.
18197 2018-09-07  Bruno Haible  <bruno@clisp.org>
18199         posix_spawn_file_actions_addchdir: New module.
18200         Suggested by Eric Blake in
18201         <https://lists.gnu.org/archive/html/bug-findutils/2018-09/msg00007.html>.
18202         * lib/spawn.in.h (posix_spawn_file_actions_addchdir): New declaration.
18203         * lib/spawn_int.h (struct __spawn_action): Add tag 'spawn_do_chdir' and
18204         union member 'chdir_action'.
18205         * lib/spawn_faction_addchdir.c: New file.
18206         * lib/spawni.c (__spawni): Implement the spawn_do_chdir action.
18207         * lib/spawn_faction_addclose.c: Test REPLACE_POSIX_SPAWN instead of
18208         HAVE_WORKING_POSIX_SPAWN.
18209         * lib/spawn_faction_adddup2.c: Likewise.
18210         * lib/spawn_faction_addopen.c: Likewise.
18211         * m4/posix_spawn_faction_addchdir.m4: New file.
18212         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether module
18213         'posix_spawn_file_actions_addchdir' is present and whether
18214         posix_spawn_file_actions_addchdir_np exists. Define REPLACE_POSIX_SPAWN
18215         instead of HAVE_WORKING_POSIX_SPAWN.
18216         * m4/spawn_h.m4 (gl_SPAWN_H): Test whether
18217         posix_spawn_file_actions_addchdir is declared.
18218         (gl_SPAWN_H_DEFAULTS): Initialize
18219         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18220         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18221         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18222         * modules/spawn (Makefile.am): Substitute
18223         GNULIB_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18224         HAVE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR,
18225         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCHDIR.
18226         * modules/posix_spawn_file_actions_addchdir: New file.
18227         * modules/posix_spawn_file_actions_addclose (Depends-on,
18228         configure.ac): Test also REPLACE_POSIX_SPAWN.
18229         * modules/posix_spawn_file_actions_adddup2 (Depends-on,
18230         configure.ac): Likewise.
18231         * modules/posix_spawn_file_actions_addopen (Depends-on,
18232         configure.ac): Likewise.
18233         * tests/test-spawn-c++.cc (posix_spawn_file_actions_addchdir): Check
18234         signature.
18235         * doc/posix-functions/posix_spawn.texi: Mention the new module.
18236         * doc/posix-functions/posix_spawnp.texi: Likewise.
18238 2018-09-06  Bruno Haible  <bruno@clisp.org>
18240         stddef: Override max_align_t on NetBSD 8.0/x86.
18241         * m4/stddef_h.m4 (gl_STDDEF_H): When testing for max_align_t, test also
18242         the value of __alignof__ (max_align_t).
18243         * doc/posix-headers/stddef.texi: Mention the issue.
18245 2018-09-06  Bruno Haible  <bruno@clisp.org>
18247         fcntl: Fix F_DUPFD_CLOEXEC behaviour on Haiku.
18248         * lib/fcntl.c (rpl_fcntl): For F_DUPFD_CLOEXEC, don't even try the
18249         system fcntl.
18250         * doc/posix-functions/fcntl.texi: Document the issue.
18252 2018-09-06  Bruno Haible  <bruno@clisp.org>
18254         count-trailing-zeros tests: Rely on limits-h module.
18255         * tests/test-count-trailing-zeros.c (ULLONG_MAX): Remove fallback
18256         definition.
18257         * modules/count-trailing-zeros-tests (Depends-on): Add 'limits-h'.
18259 2018-09-06  Bruno Haible  <bruno@clisp.org>
18261         count-leading-zeros tests: Rely on limits-h module.
18262         * tests/test-count-leading-zeros.c (ULLONG_MAX): Remove fallback
18263         definition.
18264         * modules/count-leading-zeros-tests (Depends-on): Add 'limits-h'.
18266 2018-09-06  Bruno Haible  <bruno@clisp.org>
18268         count-one-bits tests: Rely on limits-h module.
18269         * tests/test-count-one-bits.c (ULLONG_MAX): Remove fallback definition.
18270         * modules/count-one-bits-tests (Depends-on): Add 'limits-h'.
18272 2018-09-06  Bruno Haible  <bruno@clisp.org>
18274         xstrtoll: Rely on limits-h module.
18275         * lib/xstrtol.c: Don't include intprops.h.
18276         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18277         * modules/xstrtol (Depends-on): Remove 'intprops'.
18278         * modules/xstrtoll (Depends-on): Add 'limits-h'.
18280 2018-09-06  Bruno Haible  <bruno@clisp.org>
18282         strtoll, strtoull: Rely on limits-h module.
18283         * lib/strtol.c (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove macros.
18284         (ULLONG_MAX, LLONG_MAX, LLONG_MIN): Remove fallback definitions.
18285         * modules/strtoll (Depends-on): Add limits-h.
18286         * modules/strtoull (Depends-on): Likewise.
18288 2018-09-06  Bruno Haible  <bruno@clisp.org>
18290         intprops tests: Fix compilation error with pre-C99 compiler.
18291         * tests/test-intprops.c (verify_stmt): New macro.
18292         (VERIFY, main): Use it.
18294 2018-09-06  Bruno Haible  <bruno@clisp.org>
18296         limits-h: Provide numerical limits macros.
18297         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define also for
18298         IRIX and for GCC.
18299         (WORD_BIT, LONG_BIT): Define.
18300         * m4/limits-h.m4 (gl_LIMITS_H): Set LIMITS_H to non-empty also when
18301         <limits.h> does not define LLONG_MAX or WORD_BIT.
18302         * tests/test-limits-h.c (TYPE_SIGNED, TYPE_WIDTH, TYPE_MINIMUM,
18303         TYPE_MAXIMUM): New macros, from intprops.h.
18304         Add tests for CHAR_BIT, WORD_BIT, LONG_BIT, <type>_MIN, and <type>_MAX.
18305         * doc/posix-headers/limits.texi: Document what the 'limits-h' module
18306         provides.
18308 2018-09-05  Bruno Haible  <bruno@clisp.org>
18310         fcntl: Don't access nonexistent optional argument.
18311         Reported by Frank Busse <f.busse@imperial.ac.uk> in
18312         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00018.html>.
18313         * lib/fcntl.c (rpl_fcntl): For actions that don't take an argument,
18314         don't consume an argument. For actions that take an 'int' argument,
18315         consume an 'int' argument.
18317 2018-09-05  Eric Blake  <eblake@redhat.com>
18319         doc: mention environ pitfall
18320         * doc/posix-functions/environ.texi (environ): Assigning NULL to
18321         environ is a glibc extension.
18323 2018-09-03  Bruno Haible  <bruno@clisp.org>
18325         gnulib-tool: Fix build order when $testsbase is a subdir of $sourcebase.
18326         Reported by Antoine Luong <antoine.luong@c-s.fr> in
18327         <https://lists.gnu.org/archive/html/bug-gnulib/2018-09/msg00008.html>.
18328         * gnulib-tool (func_import): For the tests, set a dotfirst flag.
18329         (func_emit_lib_Makefile_am): Consider the dotfirst flag.
18330         (func_emit_tests_Makefile_am): Don't consider the dotfirst flag.
18332 2018-09-02  Paul Eggert  <eggert@cs.ucla.edu>
18334         mktime: fix unlikely race+overflow bug
18335         Problem reported by Alexandre Oliva in:
18336         https://sourceware.org/bugzilla/show_bug.cgi?id=16346
18337         * lib/mktime.c (__mktime_internal): Access *OFFSET only once,
18338         to avoid an unlikely race if the compiler delays a load and
18339         if this cascades into a signed integer overflow.
18341 2018-08-31  Paul Eggert  <eggert@cs.ucla.edu>
18343         mktime, timegm: simplify glibc time64_t
18344         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]:
18345         Now long int, not time_t, since long int is the longstanding type
18346         for this in glibc and there is no need to change it even if time_t
18347         becomes 64 bits - even int would do, though this would be a change
18348         to the glibc generated code.  When this change is merged into
18349         glibc, it should simplify the time_t vs time64_t situation.
18351         mktime, timegm: simplify merge to glibc
18352         Move code around to make a merge to glibc easier to audit.
18353         This should not change behavior.
18354         * lib/mktime.c (NEED_MKTIME_INTERNAL, NEED_MKTIME_WINDOWS)
18355         (NEED_MKTIME_WORKING): Give default values to pacify -Wundef,
18356         which glibc uses.  Default NEED_MKTIME_WORKING to DEBUG_MKTIME, to
18357         simplify later conditionals; default the others to zero.  In uses
18358         of these conditionals, explicitly spell out how _LIBC affects
18359         things, so it’s easier to review from a glibc viewpoint.
18360         (my_tzset, __tzset) [!_LIBC]: New function and macro, to better
18361         compartmentalize tzset issues.  Move system-dependent tzsettish
18362         code here from mktime.
18363         (mktime): Move tzsettish code to my_tzset, and move
18364         localtime_offset to within mktime so that it doesn’t
18365         need a separate ifdef.
18367 2018-08-27  Paul Eggert  <eggert@cs.ucla.edu>
18369         intprops: avoid evaluation of some expressions
18370         This makes EXPR_SIGNED (e) easier to use, as it no longer
18371         evaluates the expression E.  Formerly, E was required to be free
18372         of side effects.
18373         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT)
18374         (EXPR_SIGNED, TYPE_WIDTH, _GL_INT_MINIMUM, _GL_INT_MAXIMUM)
18375         (_GL_SIGNED_INT_MAXIMUM): Do not evaluate the expression arg.
18377 2018-08-23  Bruno Haible  <bruno@clisp.org>
18379         getcwd: Add cross-compilation guesses.
18380         Reported by Sergio Durigan Junior <sergiodj@redhat.com> in
18381         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00130.html>.
18382         Based on a patch by Paul Eggert.
18383         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Add cross-compilation
18384         guesses for all GNU systems.
18386 2018-08-19  Bruno Haible  <bruno@clisp.org>
18388         glob-h: Formalize side effects from other modules.
18389         * m4/glob_h.m4 (gl_REPLACE_GLOB_H): New macro.
18390         * m4/glob.m4 (gl_GLOB): Invoke it.
18392         fnmatch-h: Formalize side effects from other modules.
18393         * m4/fnmatch_h.m4 (gl_REPLACE_FNMATCH_H): New macro.
18394         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Invoke it.
18396         limits-h: Formalize side effects from other modules.
18397         * m4/limits-h.m4 (gl_REPLACE_LIMITS_H): New macro.
18398         * m4/stdint.m4 (gl_STDINT_H): Invoke it.
18400 2018-08-19  Bruno Haible  <bruno@clisp.org>
18402         getpass: Move declaration to <unistd.h>.
18403         * lib/unistd.in.h (getpass): New declaration.
18404         * lib/getpass.h: Replace with a stub that just includes <unistd.h>.
18405         * m4/getpass.m4 (gl_FUNC_GETPASS): Declare through AC_DEFUN_ONCE.
18406         Require gl_UNISTD_H_DEFAULTS. Don't test whether getpass is declared.
18407         (gl_FUNC_GETPASS_GNU): Require gl_UNISTD_H_DEFAULTS and gl_FUNC_GETPASS.
18408         On glibc systems, don't set REPLACE_GETPASS to 1.
18409         * modules/getpass (Depends-on): Add 'unistd'.
18410         (configure.ac): Test also REPLACE_GETPASS. Define a module indicator.
18411         (Include): Specify <unistd.h> instead of "getpass.h".
18412         * modules/getpass-gnu (Depends-on): Merely depend on 'getpass'.
18413         (configure.ac): Sync with the configure.ac section of modules/getpass.
18414         (Include): Specify <unistd.h> instead of "getpass.h".
18415         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether getpass is declared.
18416         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPASS, HAVE_GETPASS,
18417         REPLACE_GETPASS.
18418         * modules/unistd (Makefile.am): Substitute GNULIB_GETPASS, HAVE_GETPASS,
18419         REPLACE_GETPASS.
18420         * tests/test-unistd-c++.cc: Test also the declaration of 'getpass'.
18421         * doc/glibc-functions/getpass.texi: A length limit exists also on uClibc
18422         and musl.
18423         * NEWS: Mention the change.
18425 2018-08-19  Bruno Haible  <bruno@clisp.org>
18427         glob: Fix over-optimization due to attribute __nonnull__.
18428         * lib/glob.c (_GL_ARG_NONNULL): Define to empty.
18430 2018-08-19  Bruno Haible  <bruno@clisp.org>
18432         glob: Fix another compilation error when glob.h is not replaced.
18433         Reported by Reuben Thomas <rrt@sc3d.org> in
18434         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00112.html>.
18435         * m4/glob.m4 (gl_GLOB): Set GLOB_H to non-empty when needed.
18436         * m4/glob_h.m4 (gl_GLOB_H): Define through AC_DEFUN_ONCE.
18438 2018-08-18  Bruno Haible  <bruno@clisp.org>
18440         fnmatch: Avoid conflicting macro definitions of 'fnmatch'.
18441         Reported by Reuben Thomas <rrt@sc3d.org> in
18442         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00108.html>.
18443         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Don't define 'fnmatch' as a macro
18444         in config.h.
18446 2018-08-18  Bruno Haible  <bruno@clisp.org>
18448         Avoid -Wcast-function-type warnings from casts after GetProcAddress.
18449         Reported by Andy Moreton <andrewjmoreton@gmail.com> in
18450         <https://lists.gnu.org/archive/html/emacs-devel/2018-08/msg00468.html>.
18451         Solution proposed by Eli Zaretskii.
18452         * lib/getaddrinfo.c (GetProcAddress): Cast result to 'void *' first.
18453         * lib/gettimeofday.c (GetProcAddress): Likewise.
18454         * lib/link.c (GetProcAddress): Likewise.
18455         * lib/physmem.c (GetProcAddress): Likewise.
18456         * lib/poll.c (GetProcAddress): Likewise.
18457         * lib/select.c (GetProcAddress): Likewise.
18458         * lib/stat-w32.c (GetProcAddress): Likewise.
18460 2018-08-18  Bruno Haible  <bruno@clisp.org>
18462         glob: Fix another compilation error when glob.h is not replaced.
18463         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> again.
18464         * lib/globfree.c: Include <libc-config.h>.
18466 2018-08-18  Bruno Haible  <bruno@clisp.org>
18468         glob: Fix compilation error when glob.h is not replaced.
18469         Reported and fix proposed by Reuben Thomas <rrt@sc3d.org> in
18470         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00096.html>.
18471         * lib/glob_pattern_p.c: Include <libc-config.h>.
18472         * modules/glob (Depends-on): Add libc-config.
18474 2018-08-18  Bruno Haible  <bruno@clisp.org>
18476         scratch_buffer: Add tests.
18477         * tests/test-scratch-buffer.c: New file.
18478         * modules/scratch_buffer-tests: New file.
18480 2018-08-18  Bruno Haible  <bruno@clisp.org>
18482         scratch_buffer: Fix include file.
18483         Reported by Reuben Thomas <rrt@sc3d.org> in
18484         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00082.html>.
18485         * lib/scratch_buffer.h: Include <libc-config.h> first. Add
18486         double-inclusion guard.
18488 2018-08-18  Bruno Haible  <bruno@clisp.org>
18490         glob-h: Revert Paul Eggert's revert.
18491         * m4/glob_h.m4: Revert to previous state.
18492         * modules/glob-h: Likewise.
18494 2018-08-18  Paul Eggert  <eggert@cs.ucla.edu>
18496         glob-h: always build glob.h
18497         This works around a problem reported by Reuben Thomas in:
18498         http://lists.gnu.org/r/bug-gnulib/2018-08/msg00079.html
18499         This workaround always builds glob.h, even on platforms that
18500         do not need it; perhaps this could be improved someday.
18501         * m4/glob_h.m4 (gl_GLOB_H): Do not set or use GLOB_H, since glob.h
18502         is always created now.
18503         * modules/glob-h (BUILT_SOURCES, glob.h): Always build glob.h.
18505 2018-08-13  Bruno Haible  <bruno@clisp.org>
18507         monetary: Simplify m4 code.
18508         * m4/monetary_h.m4 (gl_MONETARY_H): Define through AC_DEFUN_ONCE.
18509         (gl_MONETARY_H_BODY): Inline into gl_MONETARY_H. Remove macro.
18511 2018-08-13  Bruno Haible  <bruno@clisp.org>
18513         fnmatch, fnmatch-gnu: Fix compilation error on Mac OS X.
18514         Reported by Jeroen Meijer <jjgmeijer@gmail.com> in
18515         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00046.html>
18516         and by Paul J. Lucas <paul@lucasmail.org> in
18517         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00069.html>.
18518         * m4/fnmatch_h.m4 (gl_FNMATCH_H): Define through AC_DEFUN_ONCE.
18520 2018-08-11  Bruno Haible  <bruno@clisp.org>
18522         setlocale: Trivial simplification.
18523         * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
18525 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
18527         verify: port 'assume' to traditional tools
18528         * lib/verify.h (assume): Port better to Oracle Studio 12.6
18529         and other tools that use /*NOTREACHED*/ comments.
18531 2018-08-10  Bruno Haible  <bruno@clisp.org>
18533         fnmatch-gnu: Fix compilation error in C++ namespace mode on Mac OS X.
18534         * modules/fnmatch-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
18535         * lib/fnmatch.in.h (fnmatch): Skip _GL_CXXALIASWARN if module
18536         'fnmatch-gnu' is in use.
18538 2018-08-07  Bruno Haible  <bruno@clisp.org>
18540         glob-h: Add tests.
18541         * tests/test-glob-h.c: New file, partially based on tests/test-glob.c.
18542         * tests/test-glob.c: Reorder #includes. Remove tests that are moved to
18543         tests/test-glob-h.c.
18544         * modules/glob-h-tests: New file.
18545         * tests/test-glob-h-c++.cc: Renamed from tests/test-glob-c++.cc. Add
18546         conditions.
18547         * modules/glob-h-c++-tests: Renamed from modules/glob-c++-tests.
18548         * modules/glob-tests (Depends-on): Remove glob-c++-tests.
18550 2018-08-07  Bruno Haible  <bruno@clisp.org>
18552         glob-h: New module.
18553         * lib/glob.in.h: Use nearly the usual gnulib idioms for header file
18554         replacements.
18555         * lib/glob.c: Include <config.h>.
18556         * m4/glob_h.m4: New file.
18557         * m4/glob.m4 (gl_GLOB): Require gl_GLOB_H. Remove code that is moved to
18558         glob_h.m4. Set HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18559         REPLACE_GLOB_PATTERN_P as appropriate.
18560         (gl_PREREQ_GLOB): Don't require AC_C_RESTRICT and
18561         AC_USE_SYSTEM_EXTENSIONS, now done through module 'glob-h'.
18562         * modules/glob-h: New file.
18563         * modules/glob (Files): Remove lib/glob.in.h, lib/glob-libc.h.
18564         (Dependencies): Add glob-h. Remove extensions, snippet/*, libc-config,
18565         lstat, sys_stat. Change conditions.
18566         (configure.ac): Test HAVE_GLOB, REPLACE_GLOB, HAVE_GLOB_PATTERN_P,
18567         REPLACE_GLOB_PATTERN_P. Set module indicator.
18568         (Makefile.am): Remove code that is moved to glob-h.
18569         * doc/posix-headers/glob.texi: Mention the 'glob-h' module.
18570         * modules/posixcheck (Depends-on): Add glob-h.
18572 2018-08-06  Bruno Haible  <bruno@clisp.org>
18574         Force generation of substitute .h file when C++ support is enabled.
18575         * m4/ansi-c++.m4 (gl_ANSI_CXX): New macro.
18576         * modules/ansi-c++-opt (configure.ac): Just require gl_ANSI_CXX.
18577         * m4/fnmatch_h.m4 (gl_FNMATCH_H): If C++ support is enabled, set
18578         FNMATCH_H to non-empty.
18579         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If C++ support is enabled, set
18580         ICONV_H to non-empty.
18581         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If C++ support is enabled, set
18582         MONETARY_H to non-empty.
18583         * m4/utime_h.m4 (gl_UTIME_H): If C++ support is enabled, set UTIME_H to
18584         non-empty.
18586 2018-08-06  Bruno Haible  <bruno@clisp.org>
18588         fnmatch-h: Fix test compilation error on mingw (regression from today).
18589         * lib/fnmatch.in.h: Fix conditions.
18591 2018-08-06  Bruno Haible  <bruno@clisp.org>
18593         sys_resource: Relicense under LGPLv2+.
18594         John Malmberg's approval is in
18595         <https://lists.gnu.org/archive/html/bug-gnulib/2018-08/msg00031.html>.
18596         * modules/sys_resource (License): Change to LGPLv2+.
18598 2018-08-06  Bruno Haible  <bruno@clisp.org>
18600         fnmatch-h: Add tests.
18601         * tests/test-fnmatch-h.c: New file.
18602         * modules/fnmatch-h-tests: New file.
18603         * tests/test-fnmatch-h-c++.cc: New file.
18604         * modules/fnmatch-h-c++-tests: New file.
18606 2018-08-06  Bruno Haible  <bruno@clisp.org>
18608         fnmatch-h: New module.
18609         * lib/fnmatch.in.h: Use the usual gnulib idioms for header file
18610         replacements.
18611         (FNM_*): Don't redefine if fnmatch exists and we are not overriding it.
18612         (fnmatch): Use the usual gnulib idiom for function declarations. Enable
18613         'posixcheck' warning.
18614         * m4/fnmatch_h.m4: New file.
18615         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Require gl_FNMATCH_H. Remove
18616         code that is moved to fnmatch_h.m4. When fnmatch does not exist, don't
18617         bother testing whether it is working. Set HAVE_FNMATCH, REPLACE_FNMATCH
18618         as appropriate.
18619         * modules/fnmatch-h: New file.
18620         * modules/fnmatch (Files): Remove lib/fnmatch.in.h.
18621         (Dependencies): Add fnmatch-h. Remove extensions, snippet/*. Change
18622         conditions.
18623         (configure.ac): Test HAVE_FNMATCH and REPLACE_FNMATCH. Set module
18624         indicator.
18625         (Makefile.am): Remove code that is moved to fnmatch-h.
18626         * modules/fnmatch-gnu (configure.ac): Test HAVE_FNMATCH and
18627         REPLACE_FNMATCH.
18628         * doc/posix-headers/fnmatch.texi: Mention the 'fnmatch-h' module.
18629         * modules/posixcheck (Depends-on): Add fnmatch-h.
18631 2018-08-06  Bruno Haible  <bruno@clisp.org>
18633         Enable more C++ tests.
18634         * modules/inttypes-tests (Depends-on): Add inttypes-c++-tests.
18635         * modules/monetary-tests (Depends-on): Add monetary-c++-tests.
18636         * modules/strings-tests (Depends-on): Add strings-c++-tests.
18637         * modules/sys_resource-tests (Depends-on): Add sys_resource-c++-tests.
18638         * modules/utime-h-tests (Depends-on): Add utime-h-c++-tests.
18640 2018-08-06  Bruno Haible  <bruno@clisp.org>
18642         getopt-posix, utime-h: Ensure the .h file gets regenerated when needed.
18643         * modules/getopt-posix (Makefile.am): Add Makefile dependency for
18644         getopt.h.
18645         * modules/utime-h (Makefile.am): Add Makefile dependency for utime.h.
18647 2018-08-05  Bruno Haible  <bruno@clisp.org>
18649         utime-h: Generate header file when module 'posixcheck' is in use.
18650         * m4/utime_h.m4 (gl_UTIME_H): If module 'posixcheck' is in use, set
18651         UTIME_H to non-empty.
18653 2018-08-05  Bruno Haible  <bruno@clisp.org>
18655         monetary: Generate header file when module 'posixcheck' is in use.
18656         * m4/monetary_h.m4 (gl_MONETARY_H_BODY): If module 'posixcheck' is in
18657         use, set MONETARY_H to non-empty.
18659 2018-08-05  Bruno Haible  <bruno@clisp.org>
18661         iconv-h: Generate header file when module 'posixcheck' is in use.
18662         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): If module 'posixcheck' is in use,
18663         set ICONV_H to non-empty.
18665 2018-08-05  Bruno Haible  <bruno@clisp.org>
18667         Optimize the "checking whether ... is declared without a macro" checks.
18668         Suggested by Paul Eggert in
18669         <https://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00339.html>.
18670         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Expand to nothing if the
18671         Gnulib module 'posixcheck' is not in use.
18673 2018-08-05  Bruno Haible  <bruno@clisp.org>
18675         iconv-h: Enable 'posixcheck' warnings.
18676         * m4/iconv_h.m4 (gl_ICONV_H): Check for declarations of iconv and
18677         iconv_open.
18678         * lib/iconv.in.h (iconv_open, iconv): Use _GL_WARN_ON_USE.
18680 2018-08-05  Bruno Haible  <bruno@clisp.org>
18682         Fix link error regarding 'rpl_environ' (regression from 2012-11-21).
18683         * m4/extern-inline.m4: Add more comments.
18684         * lib/warn-on-use.h (_GL_WARN_ON_USE_ATTRIBUTE): New macro.
18685         * lib/unistd.in.h (rpl_environ): Use it instead of _GL_WARN_ON_USE.
18686         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL): Likewise.
18688 2018-08-04  Bruno Haible  <bruno@clisp.org>
18690         New module 'posixcheck'.
18691         * modules/posixcheck: New file.
18692         * m4/posixcheck.m4: New file.
18693         * doc/gnulib-tool.texi (Finding POSIX substitutes): New section.
18694         (Which modules?): Reference it.
18696 2018-08-01  Assaf Gordon  <assafgordon@gmail.com>
18698         dfa: fix memory leak
18699         * lib/dfa.c (dfafree): Add missing free() on dfa->superset.
18701 2018-08-01  Paul Eggert  <eggert@cs.ucla.edu>
18703         ieee754-h: new module
18704         It looks like Emacs can use this for some NaN processing.
18705         Emacs uses it only on double NaNs so it should be safe.
18706         * MODULES.html.sh (func_all_modules): Add ieee754-h.
18707         * config/srclist.txt: Mention ieee754.h in a comment.
18708         * doc/glibc-headers/ieee754.texi (ieee754.h):
18709         Gnulib now has a substitute that should work
18710         except for long double and for non-IEEE platforms.
18711         * lib/ieee754.in.h, m4/ieee754-h.m4, modules/ieee754-h:
18712         * modules/ieee754-h-tests, tests/test-ieee754-h.c: New files.
18714 2018-07-27  Bruno Haible  <bruno@clisp.org>
18716         iswcntrl: Mention minor problem on macOS.
18717         * doc/posix-functions/iswcntrl.texi: Mention oddity on macOS.
18719 2018-07-26  Colin Watson  <cjwatson@debian.org>
18721         bootstrap, gnulib-tool: fix translations rsync
18722         Previously, we created files such as $pobase/Makefile.in.in and then the
18723         subsequent rsync would immediately delete them.
18724         * build-aux/bootstrap (po_download_command_format): Avoid deleting
18725         non-.po files in target directory when rsyncing translations.
18726         * gnulib-tool (func_import): Likewise.
18727         * pygnulib/GLImport.py (GLImport.execute): Likewise.
18729 2018-07-25  Jim Meyering  <meyering@fb.com>
18731         bootstrap: reinstate definition fo gnulib_mk.
18732         That variable is used at least by cppi.
18733         * build-aux/bootstrap (gnulib_mk): Restore definition.
18734         This reverts the deletion from v0.1-1844-gc66dba9ba.
18736 2018-07-23  Bruno Haible  <bruno@clisp.org>
18738         doc: For module names, use texinfo markup @code{} or @samp{}.
18739         * doc/alloca.texi: Mark gnulib module names with @code.
18740         * doc/alloca-opt.texi: Likewise.
18741         * doc/quote.texi: Likewise.
18742         * doc/posix-functions/freopen.texi: Likewise.
18743         * doc/posix-functions/open.texi: Likewise.
18744         * doc/posix-functions/readlink.texi: Likewise.
18745         * doc/posix-functions/readlinkat.texi: Likewise.
18746         * doc/posix-functions/stdout.texi: Likewise.
18747         * doc/posix-functions/stderr.texi: Likewise.
18748         * doc/posix-functions/unlink.texi: Likewise.
18749         * doc/posix-functions/unlinkat.texi: Likewise.
18750         * doc/posix-functions/utime.texi: Likewise.
18751         * doc/posix-functions/utimensat.texi: Likewise.
18752         * doc/posix-functions/utimes.texi: Likewise.
18753         * doc/posix-headers/stdint.texi: Likewise.
18754         * doc/glibc-functions/futimesat.texi: Likewise.
18755         * doc/glibc-functions/lutimes.texi: Likewise.
18756         * doc/glibc-functions/memmem.texi: Likewise.
18758 2018-07-23  Werner LEMBERG  <wl@gnu.org>
18760         doc: Avoid some overfull lines in the TeX output.
18761         * doc/glibc-functions/futimesat.texi: Replace a long @code with a
18762         @example.
18763         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Insert a
18764         newline before the long URL.
18765         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Likewise.
18766         * doc/relocatable-maint.texi: Use @smallexample instead of @example.
18767         Add line breaks in code snippets.
18769 2018-07-17  Paul Eggert  <eggert@cs.ucla.edu>
18771         hard-locale: simplify by removing hard-locale.m4
18772         * m4/hard-locale.m4: Remove.
18773         * modules/hard-locale (Files): Remove m4/hard-locale.m4.
18774         (configure.ac): Do not call gl_HARD_LOCALE.
18776         gnulib-tool: limit line length for git send-email
18777         * gnulib-tool (func_import): Break actioncmd log line
18778         into multiple lines.
18780 2018-07-16  Bruno Haible  <bruno@clisp.org>
18782         ffs: Ensure declaration on mingw.
18783         Reported by Daniel P. Berrangé <berrange@redhat.com>
18784         in https://lists.gnu.org/archive/html/bug-gnulib/2018-07/msg00061.html.
18785         * m4/ffs.m4 (gl_FUNC_FFS): Check whether ffs() not only exists but is
18786         also declared.
18788 2018-07-13  Paul Eggert  <eggert@cs.ucla.edu>
18790         regex-tests: add dependency
18791         * modules/regex-tests (Depends-on): Add gettext-h.
18792         This is needed given the recent changes to regex,
18793         which no longer depends on gettext-h.
18795 2018-07-06  Paul Eggert  <eggert@cs.ucla.edu>
18797         regex: now in sync with glibc
18798         * config/srclist.txt: Gnulib and glibc regex code
18799         are synchronized again.
18801 2018-07-05  Paul Eggert  <eggert@cs.ucla.edu>
18803         renameatu: rename from renameat2
18804         It's looking like Glibc will add a renameat2 function
18805         that is incompatible with Gnulib renameat2; see:
18806         https://sourceware.org/ml/libc-alpha/2018-07/msg00064.html
18807         To help avoid future confusion, rename renameat2 to something else.
18808         Use the name 'renameatu', as the Gnulib function is close to the
18809         Glibc function.  Perhaps someday there will also be a renameat2
18810         Gnulib module, which mimicks the future glibc renameat2, but that
18811         can wait as nobody seems to need such a module now.
18812         * NEWS: Mention this.
18813         * lib/renameatu.c: Rename from lib/renameat2.c.
18814         * lib/renameatu.h: Rename from lib/renameat2.h.
18815         * modules/renameatu: Rename from modules/renameat2.
18816         * modules/renameatu-tests: Rename from modules/renameat2-tests.
18817         All uses of "renameat2" in identifiers or file name
18818         changed to "renameatu", except for two instances in
18819         lib/renameatu.c that deal with the Linux kernel's
18820         renameat2 syscall.
18822 2018-07-04  Paul Eggert  <eggert@cs.ucla.edu>
18824         gnulib-tool: minor tweaks for --gnu-make
18825         * gnulib-tool: Do not allow --gnu-make in test modes,
18826         since they all require automake.
18827         (func_emit_lib_Makefile_am): Don’t emit automake comment
18828         if --gnu-make.
18830         regex: work around conditional-dependencies glitch
18831         * modules/regex (Depends-on): Add langinfo.
18832         Without this change, I had problems building an experimental
18833         version of GNU Emacs.  The symptom of the bug was a message
18834         ‘./configure: line 12726: test: =: unary operator expected’.
18835         This was due to a line in gl_FUNC_NL_LANGINFO that invokes
18836         ‘test $HAVE_LANGINFO_CODESET = 1’ even though HAVE_LANGINFO_CODESET
18837         was unset.  Although gl_FUNC_NL_LANGINFO has
18838         ‘AC_REQUIRE([gl_LANGINFO_H])’ and gl_LANGINFO_H always sets
18839         HAVE_LANGINFO_CODESET to 0 or 1, gnulib-tool with
18840         --conditional-dependencies sometimes arranges for the
18841         gl_FUNC_NL_LANGINFO code to be executed before the gl_LANGINFO_H
18842         code.  Since the regex code includes <langinfo.h> it should be
18843         depending on the langinfo module anyway, and this happens to work
18844         around the bug, so install that as a workaround for now.  To
18845         reproduce the original problem, run the following shell script on
18846         the version of Gnulib just before this patch was installed.
18847                 rm -fr foo
18848                 mkdir foo
18849                 cat >foo/configure.ac <<'EOF'
18850                 AC_INIT(GNU Emacs, 27.0.50, bug-gnu-emacs@gnu.org, , https://www.gnu.org/software/emacs/)
18851                 gl_EARLY
18852                 gl_INIT
18853                 AC_OUTPUT
18854                 EOF
18855                 ./gnulib-tool --import --conditional-dependencies --gnu-make --dir foo regex
18856                 ./gnulib-tool --copy build-aux/install-sh foo/install-sh
18857                 ./gnulib-tool --copy build-aux/config.sub foo/config.sub
18858                 ./gnulib-tool --copy build-aux/config.guess foo/config.guess
18859                 cd foo
18860                 aclocal -I m4
18861                 autoconf
18862                 ./configure --with-included-regex
18864 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18866         wchar: fix bug when checking for ‘inline’
18867         I discovered this when looking into using the regex module
18868         with Emacs.
18869         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Fix bug introduced in
18870         2016-08-17T23:09:38Z!skunk@iSKUNK.ORG; the code compiled
18871         conftest1.c and conftest2.c but these files were not created.
18872         As far as I can see, this check never worked and nobody reported
18873         it until now, which is a bit worrisome.
18875 2018-06-30  Jim Meyering  <meyering@fb.com>
18877         bootstrap: s/--option val/--option=val/
18878         * build-aux/bootstrap (gnulib_tool_options): Change the
18879         spelling of "--option val" pairs to "--option=val", for
18880         aesthetics, and also so that this file no longer triggers
18881         a common help2man syntax-check warning when copied into
18882         projects like grep, gzip, etc.
18884 2018-07-01  Paul Eggert  <eggert@cs.ucla.edu>
18886         manywarnings: omit -Wswitch-default
18887         This should make things more consistent, as we already ignore
18888         -Wswitch-enum.  Problem reported by Reuben Thomas; see:
18889         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00179.html
18890         * build-aux/g++-warning.spec, build-aux/gcc-warning.spec:
18891         Add -Wswitch-default.
18892         * m4/manywarnings-c++.m4 (gl_MANYWARN_ALL_GCC_CXX_IMPL):
18893         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
18894         Remove -Wswitch-default.
18896         regex: revert most trimming
18897         Problems reported by Bruno Haible in:
18898         https://lists.gnu.org/r/bug-gnulib/2018-07/msg00001.html
18899         * modules/regex (Depends-on): Add lock, memcmp, memmove,
18900         and wctype back in.  lock because regex users shouldn’t
18901         need to know that regex needs locking, and the rest because
18902         gnulib-tool should ordinarily ignore them anyway.
18904 2018-06-30  Paul Eggert  <eggert@cs.ucla.edu>
18906         regex: trim module dependencies
18907         * modules/regex (Depends-on): Remove gettext-h and lock,
18908         since the regex code should work OK without these modules,
18909         and Emacs uses it that way.  Also remove memcmp, memmove,
18910         and wctype, as these modules are obsolete and should not be
18911         needed any more.
18913 2018-06-29  Paul Eggert  <eggert@cs.ucla.edu>
18915         regex: glibc does not use intprops.h
18916         Maybe we can talk glibc into using intprops.h someday, but
18917         now doesn’t seem to be a good time.
18918         * lib/regcomp.c (TYPE_SIGNED): Remove; regex_internal.h now defines.
18919         * lib/regex_internal.h [_LIBC]: Do not include intprops.h.
18920         (TYPE_SIGNED, INT_ADD_WRAPV): New macros.
18922 2018-06-28  Paul Eggert  <eggert@cs.ucla.edu>
18924         regex: port to recently proposed glibc regex merge
18925         This patch is inspired by Adhemerval Zanella's recent proposal
18926         https://www.sourceware.org/ml/libc-alpha/2018-06/msg00905.html
18927         to merge glibc and Gnulib regex.  It aims to simplify the merge on
18928         the glibc side, without keeping Gnulib portable.
18929         * lib/regex.h: Fix a problem with glibc installed-header checking,
18930         as follows:
18931         (_Restrict_): Prefer __restrict if defined or if GCC 2.95 or later.
18932         (_Restrict_arr_): Prefer __restrict_arr if defined,
18933         otherwise prefer _Restrict_ if C99 or GCC 3.1 or later (but not C++).
18934         * lib/regex_internal.c (re_string_realloc_buffers, build_wcs_buffer)
18935         (build_wcs_upper_buffer, build_upper_buffer)
18936         (re_string_translate_buffer, re_string_context_at):
18937         Move decls here from lib/regex_internal.h, for glibc internal tests.
18938         (build_wcs_upper_buffer): Use __wcrtomb, not wcrtomb, fixing
18939         glibc BZ #18496.
18940         * lib/regex_internal.h (lock_fini) [_LIBC]: Cast to 0 to pacify
18941         -Wunused-value.
18942         (bitset_set, bitset_clear, bitset_contain, bitset_empty)
18943         (bitset_set_all, bitset_copy, bitset_not, bitset_merge)
18944         (bitset_mask): Now static inline, and without any __attribute__
18945         ((unused)) decoration, for glibc internal tests.
18947 2018-06-25  Bruno Haible  <bruno@clisp.org>
18949         threadlib: Fix LIBMULTITHREAD on platforms where --as-needed is enabled.
18950         Reported by Erik Auerswald <auerswal@unix-ag.uni-kl.de>
18951         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00063.html>.
18952         * m4/threadlib.m4 (gl_THREADLIB_BODY): Check whether the linker supports
18953         --as-needed/--no-as-needed and --push-state/--pop-state. When defining
18954         USE_POSIX_THREADS_WEAK or USE_SOLARIS_THREADS_WEAK or
18955         USE_PTH_THREADS_WEAK, define LIBMULTITHREAD in such a way that -lpthread
18956         / -lthread / -lpth does not get optimized away by a preceding
18957         --as-needed option.
18959 2018-06-25  Bruno Haible  <bruno@clisp.org>
18961         Continue to use spaces for indentation, not tabs.
18962         * MODULES.html.sh: Untabify.
18963         * doc/regex.texi: Likewise.
18964         * lib/acl-internal.c: Likewise.
18965         * lib/dfa.c: Likewise.
18966         * lib/exclude.c: Likewise.
18967         * lib/exclude.h: Likewise.
18968         * lib/get-permissions.c: Likewise.
18969         * lib/gettimeofday.c: Likewise.
18970         * lib/parse-datetime.y: Likewise.
18971         * lib/pselect.c: Likewise.
18972         * lib/set-permissions.c: Likewise.
18973         * lib/time.in.h: Likewise.
18974         * m4/canonicalize.m4: Likewise.
18975         * m4/gc.m4: Likewise.
18976         * m4/gnulib-common.m4: Likewise.
18977         * m4/pthread_sigmask.m4: Likewise.
18978         * m4/vararrays.m4: Likewise.
18979         * tests/test-digest.h: Likewise.
18980         * tests/test-fcntl-h.c: Likewise.
18981         * tests/test-timespec.c: Likewise.
18982         * tests/uniwbrk/test-uc-wordbreaks.c: Likewise.
18984 2018-06-25  Bruno Haible  <bruno@clisp.org>
18986         manywarnings: Don't enable -Wjump-misses-init warnings by default.
18987         * build-aux/gcc-warning.spec: Add -Wjump-misses-init.
18988         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): Remove
18989         -Wjump-misses-init.
18991 2018-06-25  Jim Meyering  <meyering@fb.com>
18993         acl-internal.h: remove _GL_ATTRIBUTE_CONST on void function
18994         * lib/acl-internal.h (free_permission_context): Remove that
18995         attribute directive.  Otherwise, it would provoke this from GCC 9:
18996         lib/acl-internal.h:300:3: error: 'const' attribute on function \
18997           returning 'void' [-Werror=attributes]
18999 2018-06-24  Jim Meyering  <meyering@fb.com>
19001         parse-datetime: accommodate gcc-4.8.5
19002         Bruno Haible reported the build failure in
19003         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00066.html
19004         * lib/parse-datetime.y (parse_datetime2): Remove leading "static"
19005         on declaration of new local.
19007 2018-06-24  Bruno Haible  <bruno@clisp.org>
19009         af_alg: Fail in continuable manner on Linux/powerpc64le.
19010         Reported by Assaf Gordon <assafgordon@gmail.com>
19011         in <https://lists.gnu.org/archive/html/coreutils/2018-06/msg00034.html>.
19012         * lib/af_alg.c (afalg_stream): On non-seekable streams, try a single-
19013         byte send() as the first round.
19015 2018-06-24  Bruno Haible  <bruno@clisp.org>
19017         af_alg: Fix state of stream after sendfile() succeeds.
19018         * lib/af_alg.c (afalg_stream): Invoke fflush and lseek, to ensure that
19019         the stream is correctly positioned afterwards.
19020         * modules/crypto/af_alg (Depends-on): Add fflush.
19021         * tests/test-digest.h (test_digest_on_files): Verify that after the
19022         operation the stream is positioned at end of file.
19024 2018-06-24  Jim Meyering  <meyering@fb.com>
19026         canon-host: take GCC9's advice rather than ignoring warning
19027         Pádraig Brady suggested not to ignore this GCC9 advice.
19028         * lib/canon-host.c: Undo preceding change.
19029         * lib/canon-host.h: Instead, declare with _GL_ATTRIBUTE_MALLOC.
19031         parse-datetime.y: avoid spurious GCC 9 warning
19032         * lib/parse-datetime.y (parse_datetime2): Save RELATIVE_TIME_0 into
19033         a function local prior to the first "goto fail".  The prior use would
19034         evoke this:
19035         parse-datetime.y: In function 'parse_datetime2':
19036         parse-datetime.y:1791:19: error: jump skips variable initialization \
19037           [-Werror=jump-misses-init]
19038         parse-datetime.y:2385:2: note: label 'fail' defined here
19039         parse-datetime.y:188:43: note: '({anonymous})' declared here
19040         parse-datetime.y:1841:12: note: in expansion of macro 'RELATIVE_TIME_0'
19042         canon-host.c: avoid spurious GCC 9 warning
19043         * lib/canon-host.c: Suppress GCC9's -Wsuggest-attribute=malloc.
19045         manywarnings: accommodate GCC 9.0-pre: remove -Wchkp and -Wabi
19046         * build-aux/gcc-warning.spec: Add them here, each with an explanation.
19047         * m4/manywarnings.m4: Remove them.
19048         Otherwise, building coreutils, I would see this:
19049         cc1: error: deprecated command line option '-Wchkp' [-Werror]
19050         cc1: error: -Wabi won't warn about anything [-Werror=abi]
19051         cc1: note: -Wabi warns about differences from the most up-to-date ABI,\
19052           which is also used by default
19053         cc1: note: use e.g. -Wabi=11 to warn about changes from GCC 7
19055 2018-06-24  Bruno Haible  <bruno@clisp.org>
19057         af_alg tests: Add another test.
19058         * tests/test-digest.h (test_digest_on_files): Also check a large file
19059         with a skipped header.
19060         * tests/test-md5.c: Include macros.h.
19061         * tests/test-sha1.c: Likewise.
19062         * tests/test-sha256.c: Likewise.
19063         * tests/test-sha512.c: Likewise.
19064         * modules/crypto/md5-tests (Files): Add tests/macros.h.
19065         * modules/crypto/sha1-tests (Files): Likewise.
19066         * modules/crypto/sha256-tests (Files): Likewise.
19067         * modules/crypto/sha512-tests (Files): Likewise.
19069 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19071         maint: clarify comments about sticky EOF
19072         * lib/af_alg.c: Be more direct that we can't
19073         assume stickiness of EOF for portability reasons.
19074         * lib/md5.c: Clarify that this isn't just a glibc issue.
19075         * lib/sha1.c: Likewise.
19076         * lib/sha256.c: Likewise.
19077         * lib/sha512.c: Likewise.
19079 2018-06-24  Bruno Haible  <bruno@clisp.org>
19081         af_alg: Comment and style improvements.
19082         * lib/af_alg.c (alg_socket): Use 'size_t' as index into a string.
19083         (afalg_buffer, afalg_stream): Improve comments.
19085 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19087         af_alg: disable kernel hash functions by default
19088         All the kernel routines were seen to be significantly slower
19089         with these relatively recent components on an i3-2310M system:
19090           kernel-4.10.6-200.fc25.x86_64
19091           openssl-1.0.2m-1.fc25.x86_64
19092         sha1 was nearly twice as slow in the kernel for example.
19093         Further considerations why this should not be the default, at:
19094         https://lists.gnu.org/r/coreutils/2018-06/msg00034.html
19096         * m4/af_alg.m4: Require --with-linux-crypto to enable.
19097         * m4/gl-openssl.m4: Tweak accordingly.
19099 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19101         af_alg: avoid hangs when reading from streams
19102         * lib/af_alg.c (afalg_stream): Don't assume EOF is sticky,
19103         and thus avoid doing a fread() when feof() is set.
19104         * lib/md5.c: Ensure feof() is called before fread().
19105         * lib/sha1.c: Likewise.
19106         * lib/sha256.c: Likewise.
19107         * lib/sha512.c: Likewise.
19109 2018-06-24  Pádraig Brady  <P@draigBrady.com>
19111         af_alg: fix error handling when hash not returned
19112         * lib/af_alg.c (afalg_stream): Handle the case where we've
19113         successfully written data to the kernel in the read/write loop,
19114         but the kernel doesn't respond with the hash.
19116 2018-06-24  Paul Eggert  <eggert@cs.ucla.edu>
19118         libc-config: merge from glibc
19119         * lib/cdefs.h (__inline, __restrict):
19120         Copy from current glibc.  This fixes glibc bug 17721,
19121         which Gnulib had already fixed in a different way.
19122         (__nonnull): Lessen the distance from glibc by using the
19123         glibc definition inside an ‘#ifndef __nonnull’.
19124         (__attribute_nonstring__): New macro, copied from
19125         current glibc.
19126         * lib/libc-config.h (__attribute_nonstring__): New undef.
19127         (__restrict): Remove; workaround no longer needed.
19128         Keep the __inline workaround, though, as it uses HAVE___INLINE to
19129         support more compilers than the glibc __inline can.
19131 2018-06-24  Bruno Haible  <bruno@clisp.org>
19133         mbrtowc, wcwidth: Fix MT-safety bug (regression from 2018-06-23).
19134         * lib/mbrtowc.c (enc_t): New enum type.
19135         (locale_enc, locale_enc_cached): New functions.
19136         (mbrtowc): Eliminate static variables. Use locale_enc_cached instead.
19137         * lib/wcwidth.c (is_locale_utf8, is_locale_utf8_cached): New functions.
19138         (wcwidth): Eliminate static variables. Use is_locale_utf8_cached
19139         instead.
19140         * m4/mbrtowc.m4 (gl_PREREQ_MBRTOWC): Require AC_C_INLINE.
19141         * m4/wcwidth.m4 (gl_PREREQ_WCWIDTH): New macro.
19142         * modules/wcwidth (configure.ac): Invoke it.
19144 2018-06-24  Bruno Haible  <bruno@clisp.org>
19146         wchar-single: Fix test failure in wcwidth tests.
19147         * tests/test-wcwidth.c (main): If the wchar-single module is present,
19148         skip the tests in the C locale.
19150 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19152         crypto: mention --without-linux-crypto in --with-openssl --help
19153         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Mention that linux crypto
19154         routines take precedence in --with-openssl help output.
19156 2018-06-23  Pádraig Brady  <P@draigBrady.com>
19158         wchar-single: a new module to enable optimizations in wchar replacements
19159         * lib/mbrtowc.c (mbrtowc): Only check locale_charset() once if
19160         GNULIB_WCHAR_SINGLE is enabled.
19161         * lib/wcwidth.c (wcwidth): Likewise.
19163 2018-06-23  Bruno Haible  <bruno@clisp.org>
19165         libc-config: Fix conflict with FreeBSD include files.
19166         * lib/cdefs.h (__nonnull): Remove definition.
19167         * lib/libc-config.h (__nonnull): Remove undefinition.
19169 2018-06-21  Paul Eggert  <eggert@cs.ucla.edu>
19171         random_r: do not crash if state is unaligned
19172         Problem reported by Bruce Korb in:
19173         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00030.html
19174         I reproduced the crash on 32-bit sparc with Oracle Studio 12.6
19175         with 'cc -O2 -xmemalign=8s'.
19176         * lib/random_r.c: Include string.h, for memcpy.
19177         (get_int32, set_int32): New functions.
19178         (__srandom_r, __initstate_r, __setstate_r, __random_r):
19179         Use them to avoid assumption that state pointer is aligned.
19180         (__random_r): Avoid integer overflow if INT_MAX == UINT32_MAX.
19181         * tests/test-random_r.c (test_failed): New function.
19182         (main): Use it, to test for alignment bugs.
19184         random_r: omit unnecessary include
19185         * lib/random_r.c: Do not include limits.h.
19187         random, random_r: merge from glibc
19188         * lib/random.c, lib/random_r.c:
19189         Include libc-config.h if !_LIBC, not config.h unilaterally.
19190         * lib/random.c:
19191         Do not include stdint.h or time.h; not needed.
19192         Include libc-lock.h if _LIBC, and define substitute macros otherwise.
19193         (unsafe_state): Rename from generator.  All uses changed.
19194         Use C99-style initializers.
19195         (__random, __srandom, __initstate, __setstate): Rename from
19196         non-underscored version, but define it to non-underscored version
19197         on Gnulib.  Add a lock.
19198         * lib/random_r.c (__srandom_r, __initstate_r, __setstate_r, __random_r):
19199         Likewise.
19200         Do not include <stdint.h>; not needed since stdlib.h defines int32_t.
19201         (weak_alias, __set_errno) [!_LIBC]: Remove; now done by libc-config.
19202         (__srandom_r): Use int32_t instead of long int where int32_t will do.
19203         (__random_r): Use uint32 to fix glibc bug 17343.
19204         * modules/random, modules/random_r (Depends-on): Add libc-config.
19205         Depend on stdint only if $HAVE_RANDOM = 0.
19207 2018-06-19  Jim Meyering  <meyering@fb.com>
19209         README-release: also run any check-very-expensive tests
19210         * top/README-release: Adjust instructions so they run the
19211         check-very-expensive tests when there is such a target.
19213 2018-06-18  Bruno Haible  <bruno@clisp.org>
19215         pthread_rwlock_rdlock: Add comments regarding glibc behaviour.
19216         * m4/pthread_rwlock_rdlock.m4: Add comment.
19217         * doc/posix-functions/pthread_rwlock_rdlock.texi: Mention that rwlocks
19218         are reader-preferring in glibc.
19219         * doc/posix-functions/pthread_rwlock_tryrdlock.texi: Likwise.
19220         * doc/posix-functions/pthread_rwlock_timedrdlock.texi: Likewise.
19222 2018-06-17  Paul Eggert  <eggert@cs.ucla.edu>
19224         crypto: use byteswap
19225         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
19226         * lib/sm3.c: Include <byteswap.h>.
19227         (SWAP): Use its macros rather than reinventing the wheel.
19228         * modules/crypto/md4, modules/crypto/md5-buffer:
19229         * modules/crypto/sha1-buffer, modules/crypto/sha256-buffer:
19230         * modules/crypto/sha512-buffer, modules/crypto/sm3:
19231         (Depends-on): Add byteswap.
19233 2018-06-17  Pádraig Brady  <P@draigBrady.com>
19235         gendocs.sh: fix support for legacy --texi2html
19236         * build-aux/gendocs.sh: Restrict use of TOP_NODE_UP_URL
19237         to the default makeinfo invocation.
19238         Reported by Bruce Korb
19240 2018-06-17  Bruno Haible  <bruno@clisp.org>
19242         gettext po infrastructure: Update from current gettext git.
19243         Reported by Akim Demaille <akim@lrde.epita.fr>.
19244         * build-aux/po/Makefile.in.in: Update from current gettext git.
19245         * build-aux/po/remove-potcdate.sin: Likewise.
19246         * config/srclist.txt: Temporarily disable sync for these files.
19248 2018-06-17  Bruno Haible  <bruno@clisp.org>
19250         getloadavg: Return 0 on Windows without Cygwin.
19251         * lib/getloadavg.c: Don't assume that the symbol WINDOWS32 is defined.
19253 2018-06-17  Paul Smith  <psmith@gnu.org>
19255         getloadavg: Allow building on Windows without Cygwin
19256         * lib/getloadavg.c: Reinstate ifdef for HAVE_UNISTD_H.
19257         * m4/getloadavg.m4: Check for unistd.h.
19259 2018-06-03  Paul Eggert  <eggert@cs.ucla.edu>
19261         Port crypto/af_alg to GCC 4.8.4
19262         Problem reported by Peter Simons in:
19263         https://lists.gnu.org/r/bug-gnulib/2018-06/msg00002.html
19264         * modules/crypto/af_alg (Depends-on): Add c99 if USE_AF_ALG.
19266 2018-05-27  Colin Watson  <cjwatson@debian.org>
19268         bootstrap: document source fetching in --help
19269         * build-aux/bootstrap (usage): Document how Gnulib sources are fetched.
19271 2018-04-09  Colin Watson  <cjwatson@debian.org>
19273         bootstrap: allow non-submodule control of gnulib
19274         * build-aux/bootstrap: Honour GNULIB_URL and GNULIB_REVISION in
19275         bootstrap.conf when fetching gnulib using "git clone" or via
19276         GNULIB_SRCDIR.
19278 2018-05-21  Paul Eggert  <eggert@cs.ucla.edu>
19280         crypto: omit stream ops Emacs doesn’t need
19281         * lib/md5.c (md5_stream):
19282         * lib/sha1.c (sha1_stream):
19283         * lib/sha256.c (shaxxx_stream, sha256_stream, sha224_stream):
19284         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19285         Compile stream functions only if GL_COMPILE_CRYPTO_STREAM is
19286         defined.  Emacs needs this, as it does not use the stream
19287         operations and doesn’t need all the af_alg stuff we’ve recently
19288         added.  Perhaps a similar change is needed to the other crypto
19289         modules, but this patch changes only those needed for Emacs.
19290         * modules/crypto/md5-buffer, modules/crypto/sha1-buffer:
19291         * modules/crypto/sha256-buffer, modules/crypto/sha512-buffer:
19292         New modules, used by Emacs.
19293         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19294         * modules/crypto/sha512: Rewrite to depend on the new modules.
19296 2018-05-20  Pádraig Brady  <P@draigBrady.com>
19298         fts: avoid a memory leak edge case
19299         * lib/fts.c (fts_open): Set an appropriate fts_level
19300         so that an immediate fts_close() will free the allocation.
19301         * tests/test-fts.c (fts_dealloc): Add a test case which
19302         will trigger under valgrind or address sanitizer.
19303         Fixes https://bugs.gnu.org/31439
19305 2018-05-20  Bruno Haible  <bruno@clisp.org>
19307         wcwidth tests: Fix link error.
19308         * modules/wcwidth-tests (Makefile.am): Link test-wcwidth against
19309         $(LIBUNISTRING).
19311 2018-05-20  Bruno Haible  <bruno@clisp.org>
19313         regex: Fix "error: possibly undefined macro: gl_GLIBC21".
19314         * modules/regex (Files): Add m4/glibc21.m4.
19316 2018-05-20  Bruno Haible  <bruno@clisp.org>
19318         localcharset: Optimize.
19319         * lib/localcharset.c (alias_table): Comment out no-op mappings for
19320         platforms where these don't matter. This reduces the table size,
19321         which in turn reduces the lookup time.
19323 2018-05-19  Bruno Haible  <bruno@clisp.org>
19325         localcharset: Map the locale encodings found in newer OSes.
19326         * lib/localcharset.c (alias_table): Add mapping for locale encodings
19327         found in FreeBSD 11, NetBSD 7, Solaris 10, Openindiana, HP-UX 11.31,
19328         IRIX 6.5, Minix 3.3.
19329         * lib/localcharset.h: Update comments accordingly. Also for Cygwin 2.9.
19331 2018-05-19  Bruno Haible  <bruno@clisp.org>
19333         localcharset: Move mapping tables into the code. Use a binary search.
19334         * lib/localcharset.h: Document the GNU canonical names for character
19335         encodings here.
19336         * lib/localcharset.c: Don't include <fcntl.h>, <unistd.h>,
19337         relocatable.h, configmake.h.
19338         (O_NOFOLLOW, ISSLASH, DIRECTORY_SEPARATOR, getc, volatile): Remove
19339         macros.
19340         (charset_aliases): Remove variable.
19341         (get_charset_aliases): Remove function.
19342         (struct table_entry): New type.
19343         (alias_table, locale_table): New constants.
19344         (locale_charset): Use the alias_table or locale_table to get the
19345         canonicalized encoding name.
19346         * lib/config.charset: Remove file.
19347         * lib/ref-add.sin: Remove file.
19348         * lib/ref-del.sin: Remove file.
19349         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't require gl_FCNTL_O_FLAGS,
19350         AC_CANONICAL_HOST, gl_GLIBC21. Don't check for getc_unlocked.
19351         * modules/localcharset (Notice): Remove.
19352         (Files): Remove config.charset, ref-add.sin, ref-del.sin, fcntl-o.m4,
19353         glibc21.m4.
19354         (Depends-on): Remove configmake.
19355         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT to empty.
19356         (Makefile.am): Simplify.
19357         * build-aux/prefix-gnulib-mk: Remove special code for the removed files.
19359 2018-05-19  Bruno Haible  <bruno@clisp.org>
19361         localcharset: Add a manual test.
19362         * tests/test-localcharset.c: New file.
19363         * modules/localcharset-tests: New file.
19365 2018-05-19  Bruno Haible  <bruno@clisp.org>
19367         localcharset: Remove support for obsolete platforms.
19368         * lib/config.charset: Remove support for Linux/libc5, glibc-2.0.x, and
19369         Mac OS X 10.2. Comment out dubious entry for Solaris.
19371 2018-05-19  Jim Meyering  <meyering@fb.com>
19373         gnupload: adjust comment
19374         * build-aux/gnupload: Add FIXME-2020 comment, to make it slightly
19375         more likely we'll remove the just-added code in a year or two.
19377 2018-05-19  Bruno Haible  <bruno@clisp.org>
19379         gnupload: Fix "gpg-agent is not available in this session" error.
19380         * build-aux/gnupload (GPG): Pick the right GNUPG executable to use.
19382 2018-05-16  Paul Eggert  <eggert@cs.ucla.edu>
19384         crypto/af_alg: fix --help
19385         * m4/af_alg.m4: Avoid spurious newline in --help output.
19387 2018-05-13  Bruno Haible  <bruno@clisp.org>
19389         nl_langinfo: Fix compilation error on Android.
19390         * lib/nl_langinfo.c (nl_langinfo): Define values for the items GROUPING,
19391         INT_CURR_SYMBOL, etc. only if these items are defined.
19393 2018-05-13  Bruno Haible  <bruno@clisp.org>
19395         truncate: Fix compilation error on Android.
19396         * m4/truncate.m4 (gl_FUNC_TRUNCATE): Test also whether 'truncate' is
19397         declared. Set HAVE_DECL_TRUNCATE, not HAVE_TRUNCATE.
19398         * lib/unistd.in.h (truncate): Test HAVE_DECL_TRUNCATE, not
19399         HAVE_TRUNCATE.
19400         * modules/truncate: Likewise.
19401         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_TRUNCATE,
19402         not HAVE_TRUNCATE.
19403         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TRUNCATE, not
19404         HAVE_TRUNCATE.
19405         * doc/posix-functions/truncate.texi: Mention the issue.
19407 2018-05-13  Bruno Haible  <bruno@clisp.org>
19409         pthread: Fix compilation error on Android.
19410         * lib/pthread.in.h: Use _GL_ALREADY_INCLUDING_PTHREAD_H to shortcut
19411         recursive inclusion of this file.
19413 2018-05-13  Bruno Haible  <bruno@clisp.org>
19415         posix_spawn: Fix compilation error on Android.
19416         * lib/spawn.in.h (posix_spawnattr_t): Consider also the case
19417         HAVE_POSIX_SPAWNATTR_T = 1 && HAVE_POSIX_SPAWN = 0.
19418         (posix_spawn_file_actions_t): Consider also the case
19419         HAVE_POSIX_SPAWN_FILE_ACTIONS_T = 1 && HAVE_POSIX_SPAWN = 0.
19421 2018-05-13  Bruno Haible  <bruno@clisp.org>
19423         tsearch: Move from K&R C to ANSI C.
19424         * lib/tsearch.c (tfind): Convert definition to ANSI C.
19426 2018-05-13  Bruno Haible  <bruno@clisp.org>
19428         tsearch: Fix compilation error on Android.
19429         * lib/search.in.h (twalk): Declare when HAVE_TWALK, not HAVE_TSEARCH,
19430         is 0.
19431         (GNULIB_defined_tsearch, GNULIB_defined_twalk): New macros.
19432         * lib/tsearch.c (tsearch, tfind, tdelete): Define only if
19433         GNULIB_defined_tsearch is true.
19434         (twalk): Define only if GNULIB_defined_twalk is true.
19435         * modules/tsearch (configure.ac): Compile tsearch.c also if HAVE_TWALK
19436         is 0.
19437         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Set HAVE_TWALK.
19438         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize HAVE_TWALK.
19439         * modules/search (Makefile.am): Substitute HAVE_TWALK.
19441 2018-05-13  Bruno Haible  <bruno@clisp.org>
19443         imaxdiv: Fix compilation error on Android.
19444         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Set HAVE_IMAXDIV_T to 0 if imaxdiv_t
19445         is not defined.
19446         * lib/inttypes.in.h (imaxdiv_t): Define if HAVE_IMAXDIV_T, not
19447         HAVE_DECL_IMAXDIV, is 0.
19448         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize HAVE_IMAXDIV_T.
19449         * modules/inttypes-incomplete (Makefile.am): Substitute HAVE_IMAXDIV_T.
19451 2018-05-13  Bruno Haible  <bruno@clisp.org>
19453         Support selective inclusion mechanism of recent mingw.org header files.
19454         Reported by Eli Zaretskii <eliz@gnu.org>.
19455         * lib/sys_types.in.h: On mingw, when __need_off_t, __need___off64_t,
19456         __need_ssize_t, or __need_time_t is defined, just include the system's
19457         <sys/types.h>.
19458         * lib/locale.in.h: On mingw, when __need_locale_t is defined, just
19459         include the system's <locale.h>.
19461 2018-05-13  Bruno Haible  <bruno@clisp.org>
19463         Avoid compilation error due to 'mmap' on Android.
19464         * lib/vma-iter.c (_FILE_OFFSET_BITS): Undefine on Android.
19465         * lib/get-rusage-as.c (_FILE_OFFSET_BITS): Likewise.
19466         * tests/zerosize-ptr.h (_FILE_OFFSET_BITS, __USE_FILE_OFFSET64):
19467         Undefine on Android.
19469 2018-05-13  Bruno Haible  <bruno@clisp.org>
19471         Add cross-compilation guesses for Linux systems without glibc.
19472         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for Linux.
19473         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
19474         * m4/link.m4 (gl_FUNC_LINK): Likewise.
19475         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
19476         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
19477         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
19478         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
19479         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
19480         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
19481         * m4/readlink.m4 (gl_FUNC_READLINK): Likewise.
19482         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
19483         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
19484         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
19485         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
19486         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
19487         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
19488         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
19489         * m4/utimens.m4 (gl_UTIMENS): Likewise.
19491 2018-05-13  Bruno Haible  <bruno@clisp.org>
19493         getpagesize: Fix compilation error on Android.
19494         * m4/getpagesize.m4 (gl_CHECK_FUNC_GETPAGESIZE): New macro.
19495         (gl_FUNC_GETPAGESIZE): Invoke it instead of AC_CHECK_FUNC.
19496         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Don't invoke
19497         AC_CHECK_FUNC. Instead, invoke gl_CHECK_FUNC_GETPAGESIZE and define
19498         HAVE_GETPAGESIZE accordingly.
19499         * modules/getcwd (Files): Add m4/getpagesize.m4.
19501 2018-05-13  Bruno Haible  <bruno@clisp.org>
19503         tcgetsid: Fix compilation error on Android.
19504         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use AC_LINK_IFELSE instead of
19505         AC_CHECK_FUNC.
19507 2018-05-13  Bruno Haible  <bruno@clisp.org>
19509         getpass: Fix configure test for Android.
19510         * m4/getpass.m4 (gl_PREREQ_GETPASS): Use AC_LINK_IFELSE instead of
19511         AC_CHECK_FUNC.
19513 2018-05-13  Bruno Haible  <bruno@clisp.org>
19515         ffs: Fix compilation error on Android.
19516         * m4/ffs.m4 (gl_FUNC_FFS): Use AC_LINK_IFELSE instead of AC_CHECK_FUNC.
19518 2018-05-13  Bruno Haible  <bruno@clisp.org>
19520         mkfifo: Fix compilation error on Android.
19521         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Use AC_LINK_IFELSE instead of
19522         AC_CHECK_FUNC.
19524 2018-05-13  Bruno Haible  <bruno@clisp.org>
19526         c-strtod: Fix configure test for Android.
19527         * m4/c-strtod.m4 (gl_C_STRTOD): Use AC_LINK_IFELSE instead of
19528         AC_CHECK_FUNC.
19530 2018-05-13  Bruno Haible  <bruno@clisp.org>
19532         random: Fix compilation error on Android.
19533         * m4/random.m4 (gl_FUNC_RANDOM): Use AC_LINK_IFELSE instead of
19534         AC_CHECK_FUNC.
19536 2018-05-13  Bruno Haible  <bruno@clisp.org>
19538         grantpt: Fix compilation error on Android.
19539         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Use AC_LINK_IFELSE instead of
19540         AC_CHECK_FUNC.
19542 2018-05-13  Bruno Haible  <bruno@clisp.org>
19544         stdioext: Fix compilation errors with newer Android headers.
19545         * lib/stdio-impl.h (fp_, fp_ub): Define differently for Android.
19546         (__SLBF, __SNBF, __SRD, __SWR, __SRW, __SEOF, __SERR, __SOFF): Define
19547         fallbacks for Android.
19548         * lib/fpending.c: Update comments.
19549         * lib/fpurge.c: Likewise.
19550         * lib/freadable.h: Likewise.
19551         * lib/freadable.c: Likewise.
19552         * lib/freadahead.c: Likewise.
19553         * lib/freading.h: Likewise.
19554         * lib/freadptr.c: Likewise.
19555         * lib/fseterr.c: Likewise.
19556         * lib/fwritable.h: Likewise.
19557         * lib/fwritable.c: Likewise.
19558         * lib/fwriting.h: Likewise.
19559         * lib/fwriting.c: Likewise.
19561 2018-05-13  Bruno Haible  <bruno@clisp.org>
19563         doc: Add info about Android versions 2.0 to 8.1.
19564         * doc/**/*.texi: Add info about functions in all released versions of
19565         Bionic.
19567 2018-05-12  Bruno Haible  <bruno@clisp.org>
19569         fseeko: On mingw, don't use the hidden function _fseeki64.
19570         Reported by Eli Zaretskii <eliz@gnu.org>.
19571         * m4/fseeko.m4 (gl_PREREQ_FSEEKO): Test whether _fseeki64 is declared.
19572         * lib/fseeko.c (fseeko): Use _fseeki64 only if it is declared.
19574 2018-05-12  Bruno Haible  <bruno@clisp.org>
19576         glob: Choose 'dirent_type' in a way that works better on mingw.
19577         Reported and suggested by Eli Zaretskii <eliz@gnu.org>.
19578         * lib/glob.c (dirent_type): Define as uint_fast32_t.
19580 2018-05-12  Bruno Haible  <bruno@clisp.org>
19582         execute, spawn-pipe: Avoid warning about redefining 'close'.
19583         Reported by Eli Zaretskii <eliz@gnu.org>.
19584         * lib/execute.c: Undefine 'close' before redefining it.
19585         * lib/spawn-pipe.c: Likewise.
19587 2018-05-12  Bruno Haible  <bruno@clisp.org>
19589         nanosleep: Avoid test failure on mingw when it has nanosleep.
19590         Reported by Eli Zaretskii <eliz@gnu.org>.
19591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check whether alarm() exists.
19592         If it does not exist, use a simpler test program that does not call
19593         alarm().
19595 2018-05-10  Bruno Haible  <bruno@clisp.org>
19597         lock, cond, thread, tls: Use a different symbol as libpthread witness.
19598         Reported by Devin Hussey <husseydevin@gmail.com>.
19599         Based on a patch by Paul Eggert.
19600         * lib/glthread/lock.h (pthread_in_use): Use 'pthread_mutexattr_gettype'
19601         as witness of libpthread.
19602         * lib/glthread/cond.h (pthread_in_use): Likewise.
19603         * lib/glthread/thread.h (pthread_in_use): Likewise.
19604         * lib/glthread/tls.h (pthread_in_use): Likewise.
19606 2018-05-10  Bruno Haible  <bruno@clisp.org>
19608         cond tests: Fix compilation error on Solaris.
19609         * tests/test-cond.c: Include <unistd.h> before defining 'yield' as a
19610         macro.
19612 2018-05-10  Bruno Haible  <bruno@clisp.org>
19614         doc: Add partial info about Android 4.3.
19615         * doc/*-functions/*.texi: Add info about functions that were added
19616         to Bionic between Android 4.3 and Android 9.0.
19618 2018-05-10  Bruno Haible  <bruno@clisp.org>
19620         doc: Add info about Android 9.0.
19621         * doc/**/*.texi: Add info about functions and headers in Bionic from
19622         Android 9.0.
19624 2018-05-09  Paul Eggert  <eggert@cs.ucla.edu>
19626         af_alg: fix my typo in afalg_buffer
19627         * lib/af_alg.c (afalg_buffer): Fix typo I recently introduced.
19628         (afalg_stream): Simplify and avoid the need for a runtime test
19629         at the end.
19631         af_alg: recover better from crypto failures
19632         * lib/af_alg.c (afalg_stream): Recover from crypto failures if the
19633         input stream is seekable, by repositioning the stream back to
19634         where it was, possibly by just calling sendfile with an offset
19635         arg.  This lets us return -EAFNOSUPPORT instead of -EIO in some
19636         cases, which lets our callers try again with user-mode code.
19637         * modules/crypto/af_alg (Depends-on): Depend on fseeko and ftello
19638         instead of on fflush and lseek.
19640         af_alg: distiguish I/O errors better
19641         * lib/af_alg.c (afalg_buffer, afalg_stream): Return -EAFNOSUPPORT,
19642         not -EIO, if it’s OK for the caller to try again with user-mode code.
19643         (afalg_stream) [!_WIN32 || __CYGWIN__]: Return -EIO (not possibly
19644         some other error number) if fflush fails, as the caller should not
19645         try again that case.
19647         af_alg: avoid gotos
19648         * lib/af_alg.c (afalg_buffer, afalg_stream): Rewrite to avoid
19649         gotos, as they were a source of unreliability and made the code a
19650         bit harder to follow.
19652         af_alg: don’t leak file descriptors into children
19653         * lib/af_alg.c (alg_socket): Use SOCK_CLOEXEC when creating sockets.
19654         This code should be compiled only on recent GNU/Linux platforms
19655         so we shouldn’t have to also depend on the accept4 module.
19657         af_alg: coalesce socket creation
19658         * lib/af_alg.c (alg_socket): New function.
19659         (afalg_buffer, afalg_stream): Use it.  This avoids some
19660         code duplication and gotos.
19662         af_alg: fix file descriptor leak
19663         * lib/af_alg.c (afalg_stream): Close leak.
19665         af_alg: Pacify --enable-gcc-warnings on GCC 8
19666         * lib/af_alg.c (afalg_buffer, afalg_stream): Reorder local decls
19667         and checking to pacify gcc -Wjump-misses-init on GCC 8.
19669 2018-05-07  Paul Eggert  <eggert@cs.ucla.edu>
19671         af_alg: Pacify --enable-gcc-warnings
19672         Problem reported by Assaf Gordon in:
19673         https://lists.gnu.org/r/bug-gnulib/2018-05/msg00041.html
19674         * lib/af_alg.c (afalg_buffer): Move local decls to pacify
19675         gcc -Wjump-misses-init.
19676         * lib/sha512.c (shaxxx_stream): Now static.
19678 2018-05-06  Bruno Haible  <bruno@clisp.org>
19680         af_alg: Add ability to use Linux kernel crypto API on data in memory.
19681         * lib/af_alg.h (afalg_buffer): New declaration.
19682         * lib/af_alg.c (afalg_buffer): New function.
19684 2018-05-06  Bruno Haible  <bruno@clisp.org>
19686         af_alg: Avoid warnings.
19687         * lib/af_alg.h (afalg_stream): Mark fallback declaration as inline.
19688         * m4/af_alg.m4 (gl_AF_ALG): Require AC_C_INLINE.
19690 2018-05-06  Bruno Haible  <bruno@clisp.org>
19692         crypto/{md5,sha1,sha256,sha512} tests: Add benchmarks.
19693         * tests/bench-digest.h: New file.
19694         * tests/bench-md5.c: New file.
19695         * tests/bench-sha1.c: New file.
19696         * tests/bench-sha224.c: New file.
19697         * tests/bench-sha256.c: New file.
19698         * tests/bench-sha384.c: New file.
19699         * tests/bench-sha512.c: New file.
19700         * modules/crypto/md5-tests (Files): Add tests/bench-md5.c,
19701         tests/bench-digest.h.
19702         (Depends-on): Add getrusage, gettimeofday.
19703         (Makefile.am): Add variables to build bench-md5.
19704         * modules/crypto/sha1-tests (Files): Add tests/bench-sha1.c,
19705         tests/bench-digest.h.
19706         (Depends-on): Add getrusage, gettimeofday.
19707         (Makefile.am): Add variables to build bench-sha1.
19708         * modules/crypto/sha256-tests (Files): Add tests/bench-sha224.c,
19709         tests/bench-sha256.c, tests/bench-digest.h.
19710         (Depends-on): Add getrusage, gettimeofday.
19711         (Makefile.am): Add variables to build bench-sha224, bench-sha256.
19712         * modules/crypto/sha512-tests (Files): Add tests/bench-sha384.c,
19713         tests/bench-sha512.c, tests/bench-digest.h.
19714         (Depends-on): Add getrusage, gettimeofday.
19715         (Makefile.am): Add variables to build bench-sha384, bench-sha512.
19717 2018-05-06  Bruno Haible  <bruno@clisp.org>
19719         af_alg: Fix a resource leak.
19720         * lib/af_alg.c (afalg_stream): Close socket before returning -EINVAL.
19721         New local variable 'result'.
19723 2018-05-06  Bruno Haible  <bruno@clisp.org>
19725         af_alg: Fix bug with streams that are not at position 0.
19726         * lib/af_alg.c (afalg_stream): Before sendfile, invoke fflush. Don't
19727         assume that the stream is positioned at position 0.
19728         * lib/af_alg.h (afalg_stream): Mention restriction regarding the state
19729         of the stream.
19730         * lib/md5.h (md5_stream): Likewise.
19731         * lib/sha1.h (sha1_stream): Likewise.
19732         * lib/sha256.h (sha256_stream, sha224_stream): Likewise.
19733         * lib/sha512.h (sha512_stream, sha384_stream): Likewise.
19734         * modules/crypto/af_alg (Depends-on): Add fflush, lseek.
19736         crypto/{md5,sha1,sha256,sha512} tests: Enhance test.
19737         * tests/test-digest.h (test_digest_on_files): Add a test with a FILE
19738         stream that is not positioned at the beginning.
19740 2018-05-06  Bruno Haible  <bruno@clisp.org>
19742         af_alg: Add configure option to enable/disable use of Linux crypto API.
19743         Suggested by Assaf Gordon <assafgordon@gmail.com>.
19744         * m4/af_alg.m4 (gl_AF_ALG): Add AC_ARG_WITH invocation. Define C macro
19745         USE_LINUX_CRYPTO_API.
19746         * lib/af_alg.h: Test USE_LINUX_CRYPTO_API, not HAVE_LINUX_IF_ALG_H.
19747         * lib/af_alg.c: Likewise.
19749 2018-05-06  Bruno Haible  <bruno@clisp.org>
19751         Followup to 'af_alg: New module.'.
19752         * modules/crypto/md5 (Depends-on): Remove sys_socket, sys_stat.
19753         * modules/crypto/sha1 (Depends-on): Likewise.
19754         * modules/crypto/sha256 (Depends-on): Likewise.
19755         * modules/crypto/sha512 (Depends-on): Likewise.
19757 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19759         crypto/{md5,sha1,sha256,sha512}: simplify
19760         * lib/md5.c (md5_stream):
19761         * lib/sha1.c (sha1_stream):
19762         * lib/sha256.c (shaxxx_stream):
19763         Simplify, partly by assuming C99.
19764         * lib/sha256.c (shaxxx_stream):
19765         New function, which implements both sha256 and sha224.
19766         Simplify, partly by assuming C99.
19767         (sha256_stream, sha224_stream):
19768         Use it to avoid code duplication, removing a FIXME.
19769         * lib/sha512.c (shaxxx_stream, sha512_stream, sha384_stream):
19770         Likewise.
19772         af_alg: Improve comments.
19773         * lib/af_alg.h: Use imperatives and tighten up wording.
19775 2018-05-05  Bruno Haible  <bruno@clisp.org>
19777         af_alg: Improve comments.
19778         * lib/af_alg.c (afalg_stream): Improve comment about kernel bug.
19780 2018-05-05  Bruno Haible  <bruno@clisp.org>
19782         af_alg: New module.
19783         * lib/af_alg.h: Test HAVE_* macro through '#if', not '#ifdef'.
19784         * lib/af_alg.c: Include "af_alg.h" before the other header files.
19785         * lib/md5.c: Include "af_alg.h" unconditionally.
19786         (md5_stream): Invoke afalg_stream unconditionally.
19787         * lib/sha1.c: Include "af_alg.h" unconditionally.
19788         (sha1_stream): Invoke afalg_stream unconditionally.
19789         * lib/sha256.c: Include "af_alg.h" unconditionally.
19790         (sha256_stream, sha224_stream): Invoke afalg_stream unconditionally.
19791         * lib/sha512.c: Include "af_alg.h" unconditionally.
19792         (sha512_stream, sha384_stream): Invoke afalg_stream unconditionally.
19793         * m4/af_alg.m4: Renamed from m4/linux-if-alg.m4.
19794         (gl_AF_ALG): Renamed from gl_LINUX_IF_ALG_H.
19795         * modules/crypto/af_alg: New file.
19796         * modules/crypto/md5 (Files): Remove files that are now in the
19797         'crypto/af_alg' module.
19798         (Depends-on): Add crypto/af_alg.
19799         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19800         (Makefile.am): Don't mention af_alg.c here.
19801         * modules/crypto/sha1 (Files): Remove files that are now in the
19802         'crypto/af_alg' module.
19803         (Depends-on): Add crypto/af_alg.
19804         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19805         (Makefile.am): Don't mention af_alg.c here.
19806         * modules/crypto/sha256 (Files): Remove files that are now in the
19807         'crypto/af_alg' module.
19808         (Depends-on): Add crypto/af_alg.
19809         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19810         (Makefile.am): Don't mention af_alg.c here.
19811         * modules/crypto/sha512 (Files): Remove files that are now in the
19812         'crypto/af_alg' module.
19813         (Depends-on): Add crypto/af_alg.
19814         (configure.ac): Remove gl_LINUX_IF_ALG_H invocation.
19815         (Makefile.am): Don't mention af_alg.c here.
19817 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19819         crypto tests: pacify GCC
19820         * tests/test-digest.h (test_digest_on_files):
19821         Don’t assume digest size fits in int (!).
19823         af_alg: minor style improvements
19824         * lib/af_alg.c (afalg_stream): Prefer C99 style
19825         decl-after-statement, since we’re already assuming C99.  Clarify
19826         by strengthening the bind test and omit unnecessary assignment.
19828 2018-05-05  Bruno Haible  <bruno@clisp.org>
19830         af_alg: Fix bug on empty files.
19831         * lib/af_alg.c (afalg_stream): Ignore the kernel's result if the input
19832         stream is empty.
19834 2018-05-05  Paul Eggert  <eggert@cs.ucla.edu>
19836         sys-limits.h: new file for crypto and safe I/O
19837         * lib/af_alg.c: Include sys-limits.h.
19838         (MAX_RW_COUNT): Remove.  Use replaced by SYS_BUFSIZE_MAX.
19839         (afalg_stream): Also reject negative sizes for sendfile; they
19840         should not happen and the code is a bit cleaner and faster this way.
19841         * lib/safe-read.c: Include sys-limits.h.
19842         (BUGGY_READ_MAXIMUM): Remove.  All uses replaced by SYS_BUFSIZE_MAX.
19843         * lib/sys-limits.h: New file, with values and commentary derived
19844         from the old safe-read.c and from GNU Emacs sysdep.c.
19845         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
19846         * modules/crypto/sha512, modules/safe-read, modules/safe-write:
19847         Add lib/sys-limits.h to Files section.
19849 2018-05-05  Bruno Haible  <bruno@clisp.org>
19851         af_alg: Improve function signature.
19852         * lib/af_alg.h (afalg_stream): Swap second and third argument.
19853         * lib/af_alg.c (afalg_stream): Likewise.
19854         * lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c: Callers changed.
19856 2018-05-05  Bruno Haible  <bruno@clisp.org>
19858         crypto/{md5,sha1,sha256,sha512}: Fix compilation error (S_TYPEISTMO).
19859         * modules/crypto/md5 (Depends-on): Add 'sys_stat'.
19860         * modules/crypto/sha1 (Depends-on): Likewise.
19861         * modules/crypto/sha256 (Depends-on): Likewise.
19862         * modules/crypto/sha512 (Depends-on): Likewise.
19864 2018-05-05  Bruno Haible  <bruno@clisp.org>
19866         crypto/{md5,sha1,sha256,sha512}: Fix module description.
19867         * modules/crypto/md5 (Depends-on): Add 'sys_socket'.
19868         * modules/crypto/sha1 (Depends-on): Likewise.
19869         * modules/crypto/sha256 (Depends-on): Likewise.
19870         * modules/crypto/sha512 (Depends-on): Likewise.
19872 2018-05-05  Bruno Haible  <bruno@clisp.org>
19874         af_alg: Add documentation.
19875         * lib/af_alg.h: Add comments.
19877 2018-05-05  Bruno Haible  <bruno@clisp.org>
19879         sha512: Add tests.
19880         * tests/test-sha512.c: New file.
19881         * modules/crypto/sha512-tests: New file.
19883 2018-05-05  Bruno Haible  <bruno@clisp.org>
19885         sha256: Add tests.
19886         * tests/test-sha256.c: New file.
19887         * modules/crypto/sha256-tests: New file.
19889 2018-05-05  Bruno Haible  <bruno@clisp.org>
19891         sha1 tests: Add test for sha1_stream.
19892         * tests/test-sha1.c: Include test-digest.h.
19893         (main): Invoke test_digest_on_files on 'sha1_stream'.
19894         * modules/crypto/sha1-tests (Files): Add tests/test-digest.h.
19896 2018-05-05  Bruno Haible  <bruno@clisp.org>
19898         md5 tests: Add test for md5_stream.
19899         * tests/test-digest.h: New file.
19900         * tests/test-md5.c: Include test-digest.h.
19901         (main): Invoke test_digest_on_files on 'md5_stream'.
19902         * modules/crypto/md5-tests (Files): Add tests/test-digest.h.
19904 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19906         md5sum: Use AF_ALG when available.
19907         * lib/md5.c: Include af_alg.h.
19908         (md5_stream): Use afalg_stream when available.
19909         * modules/crypto/md5 (Files): Add the af_alg files.
19910         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19911         (Makefile.am): Add af_alg.c.
19913 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19915         sha512sum: Use AF_ALG when available.
19916         * lib/sha512.c: Include af_alg.h.
19917         (sha512_stream, sha384_stream): Use afalg_stream when available.
19918         * modules/crypto/sha512 (Files): Add the af_alg files.
19919         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19920         (Makefile.am): Add af_alg.c.
19922 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19924         sha256sum: Use AF_ALG when available.
19925         * lib/sha256.c: Include af_alg.h.
19926         (sha256_stream, sha224_stream): Use afalg_stream when available.
19927         * modules/crypto/sha256 (Files): Add the af_alg files.
19928         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19929         (Makefile.am): Add af_alg.c.
19931 2018-04-28  Matteo Croce  <mcroce@redhat.com>
19933         sha1sum: Use AF_ALG when available.
19934         * lib/af_alg.h: New file.
19935         * lib/af_alg.c: New file.
19936         * lib/sha1.c: Include af_alg.h.
19937         (sha1_stream): Use afalg_stream when available.
19938         * m4/linux-if-alg.m4: New file.
19939         * modules/crypto/sha1 (Files): Add the new files.
19940         (configure.ac): Invoke gl_LINUX_IF_ALG_H.
19941         (Makefile.am): Add af_alg.c.
19943 2018-05-05  Bruno Haible  <bruno@clisp.org>
19945         all: Replace more http URLs by https URLs.
19946         * lib/localename.c: Use https: URL.
19947         * lib/timespec.h: Likewise.
19949 2018-05-03  Paul Eggert  <eggert@cs.ucla.edu>
19951         maint: port more modules to GCC 8
19952         * lib/dirname.h (base_name):
19953         * lib/exclude.h (new_exclude):
19954         * lib/xstrndup.h (xstrndup):
19955         Add malloc attribute.
19956         * lib/readutmp.c: Pacify GCC 8 about safe use of strncpy.
19957         * lib/sig-handler.h (get_handler) [SA_SIGINFO]: Simplify.
19958         This pacifies GCC 8.
19959         * m4/gnulib-common.m4 (gl_COMMON_BODY):
19960         Define _GL_ATTRIBUTE_MALLOC here.  All other definitions removed.
19962 2018-05-03  Bruno Haible  <bruno@clisp.org>
19964         Simplify code. Drop support for Borland C++ on Windows.
19965         Reported by Gisle Vanem <gisle.vanem@gmail.com>.
19966         * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
19967         'defined _WIN32'.
19968         * lib/canonicalize-lgpl.c: Likewise.
19969         * lib/classpath.c: Likewise.
19970         * lib/clean-temp.c: Likewise.
19971         * lib/csharpexec.c: Likewise.
19972         * lib/ctime.c: Likewise.
19973         * lib/dosname.h: Likewise.
19974         * lib/dup2.c: Likewise.
19975         * lib/errno.in.h: Likewise.
19976         * lib/error.c: Likewise.
19977         * lib/euidaccess.c: Likewise.
19978         * lib/execute.c: Likewise.
19979         * lib/fcntl.in.h: Likewise.
19980         * lib/fcntl.c: Likewise.
19981         * lib/filename.h: Likewise.
19982         * lib/findprog.c: Likewise.
19983         * lib/flock.c: Likewise.
19984         * lib/fopen.c: Likewise.
19985         * lib/freopen.c: Likewise.
19986         * lib/fstat.c: Likewise.
19987         * lib/fsync.c: Likewise.
19988         * lib/gc-gnulib.c: Likewise.
19989         * lib/get-rusage-data.c: Likewise.
19990         * lib/getaddrinfo.c: Likewise.
19991         * lib/getdelim.c: Likewise.
19992         * lib/getdtablesize.c: Likewise.
19993         * lib/gethostname.c: Likewise.
19994         * lib/getlogin.c: Likewise.
19995         * lib/getlogin_r.c: Likewise.
19996         * lib/getopt.c: Likewise.
19997         * lib/getpagesize.c: Likewise.
19998         * lib/getpass.c: Likewise.
19999         * lib/getrusage.c: Likewise.
20000         * lib/gettimeofday.c: Likewise.
20001         * lib/glob.c: Likewise.
20002         * lib/inttypes.in.h: Likewise.
20003         * lib/isapipe.c: Likewise.
20004         * lib/javaexec.c: Likewise.
20005         * lib/link.c: Likewise.
20006         * lib/localcharset.c: Likewise.
20007         * lib/localename.h: Likewise.
20008         * lib/localename.c: Likewise.
20009         * lib/localtime.c: Likewise.
20010         * lib/lseek.c: Likewise.
20011         * lib/mbsinit.c: Likewise.
20012         * lib/mkdir.c: Likewise.
20013         * lib/msvc-nothrow.h: Likewise.
20014         * lib/nanosleep.c: Likewise.
20015         * lib/nl_langinfo.c: Likewise.
20016         * lib/nonblocking.c: Likewise.
20017         * lib/nproc.c: Likewise.
20018         * lib/open.c: Likewise.
20019         * lib/openpty.c: Likewise.
20020         * lib/pathmax.h: Likewise.
20021         * lib/pipe-filter-aux.c: Likewise.
20022         * lib/pipe-filter-gi.c: Likewise.
20023         * lib/pipe-filter-ii.c: Likewise.
20024         * lib/pipe.c: Likewise.
20025         * lib/pipe2.c: Likewise.
20026         * lib/poll.c: Likewise.
20027         * lib/popen.c: Likewise.
20028         * lib/posix_openpt.c: Likewise.
20029         * lib/printf-parse.c: Likewise.
20030         * lib/progreloc.c: Likewise.
20031         * lib/putenv.c: Likewise.
20032         * lib/read.c: Likewise.
20033         * lib/relocatable.c: Likewise.
20034         * lib/rename.c: Likewise.
20035         * lib/same-inode.h: Likewise.
20036         * lib/secure_getenv.c: Likewise.
20037         * lib/select.c: Likewise.
20038         * lib/sethostname.c: Likewise.
20039         * lib/setlocale.c: Likewise.
20040         * lib/sigaction.c: Likewise.
20041         * lib/sigprocmask.c: Likewise.
20042         * lib/sleep.c: Likewise.
20043         * lib/spawn-pipe.h: Likewise.
20044         * lib/spawn-pipe.c: Likewise.
20045         * lib/spawni.c: Likewise.
20046         * lib/stat-time.h: Likewise.
20047         * lib/stat-w32.c: Likewise.
20048         * lib/stat.c: Likewise.
20049         * lib/stdio.in.h: Likewise.
20050         * lib/stdio-impl.h: Likewise.
20051         * lib/stdio-read.c: Likewise.
20052         * lib/stdio-write.c: Likewise.
20053         * lib/stdlib.in.h: Likewise.
20054         * lib/strerror_r.c: Likewise.
20055         * lib/strftime-fixes.c: Likewise.
20056         * lib/sys_stat.in.h: Likewise.
20057         * lib/sys_types.in.h: Likewise.
20058         * lib/sys_wait.in.h : Likewise.
20059         * lib/system-quote.h: Likewise.
20060         * lib/system-quote.c: Likewise.
20061         * lib/tmpdir.c: Likewise.
20062         * lib/tzset.c: Likewise.
20063         * lib/uname.c: Likewise.
20064         * lib/unistd.in.h: Likewise.
20065         * lib/utime.in.h: Likewise.
20066         * lib/utime.c: Likewise.
20067         * lib/utimecmp.c: Likewise.
20068         * lib/utimens.c: Likewise.
20069         * lib/vasnprintf.c: Likewise.
20070         * lib/vma-iter.h: Likewise.
20071         * lib/vma-iter.c: Likewise.
20072         * lib/wait-process.c: Likewise.
20073         * lib/wcsftime.c: Likewise.
20074         * lib/wctype.in.h: Likewise.
20075         * lib/write.c: Likewise.
20076         * tests/nap.h: Likewise.
20077         * tests/test-cloexec.c: Likewise.
20078         * tests/test-dup-safer.c: Likewise.
20079         * tests/test-dup2.c: Likewise.
20080         * tests/test-dup3.c: Likewise.
20081         * tests/test-fcntl.c: Likewise.
20082         * tests/test-get-rusage-data.c: Likewise.
20083         * tests/test-getaddrinfo.c: Likewise.
20084         * tests/test-getlogin.h: Likewise.
20085         * tests/test-isatty.c: Likewise.
20086         * tests/test-localename.c: Likewise.
20087         * tests/test-mbrtowc-w32.c: Likewise.
20088         * tests/test-nonblocking.c: Likewise.
20089         * tests/test-nonblocking-pipe-main.c: Likewise.
20090         * tests/test-nonblocking-socket-main.c: Likewise.
20091         * tests/test-nonblocking-socket.h: Likewise.
20092         * tests/test-pipe.c: Likewise.
20093         * tests/test-pipe2.c: Likewise.
20094         * tests/test-poll.c: Likewise.
20095         * tests/test-pthread_sigmask1.c: Likewise.
20096         * tests/test-select.h: Likewise.
20097         * tests/test-sethostname2.c: Likewise.
20098         * tests/test-sigprocmask.c: Likewise.
20099         * tests/test-spawn-pipe-child.c: Likewise.
20100         * tests/test-stat-time.c: Likewise.
20101         * tests/test-system-quote-main.c: Likewise.
20102         * tests/test-utimens-common.h: Likewise.
20103         * tests/test-wcrtomb-w32.c: Likewise.
20104         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
20105         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
20106         * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
20107         * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
20108         * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
20109         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
20110         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
20111         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
20112         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
20113         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
20114         * m4/nocrash.m4 (GL_NOCRASH): Likewise.
20115         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
20116         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
20117         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
20118         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
20119         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
20121 2018-05-02  Bruno Haible  <bruno@clisp.org>
20123         localename: Fix test failures on mingw.
20124         * lib/localename.c (gl_locale_name_thread): Remove code specific to
20125         native Windows.
20126         (gl_locale_name_posix): Move code specific to native Windows here.
20127         * tests/test-localename.c (test_locale_name, test_locale_name_posix):
20128         Accept result without charset suffix, as it appears on mingw.
20130 2018-04-28  Paul Smith  <psmith@gnu.org>
20132         bootstrap: Avoid gnulib operations if not needed
20133         * build-aux/bootstrap: Remove unused variable gnulib_mk.
20134         Set $gnulib_extra_files early so it can be overridden in .conf.
20135         Remove redundant --import flag from $gnulib_tool_options.
20136         Set $use_gnulib to false if no gnulib modules or files are needed.
20137         If $use_gnulib is false, don't do anything related to gnulib.
20138         A lot of this is just whitespace (indentation) changes.
20140 2018-04-27  Paul Eggert  <eggert@cs.ucla.edu>
20142         manywarnings: port to GCC 8.0
20143         * build-aux/gcc-warning.spec: Add -Wcatch-value,
20144         -Wclass-memaccess, -Wdo-subscript, -Wextra-semi.  Adjust to the
20145         fact that the GCC help message now mentions operands for
20146         -Warray-bounds, -Wformat, -Wformat-overflow, -Wformat-truncation,
20147         -Wimplicit-fallthrough, -Wplacement-new, -Wshift-overflow,
20148         -Wstrict-aliasing, -Wstrict-overflow, -Wstringop-overflow,
20149         and -Wunused-const-variable.
20150         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wattribute-alias,
20151         -Wcast-align=strict, -Wcast-function-type, -Wif-not-aligned,
20152         -Wmissing-attributes, -Wmultistatement-macros,
20153         -Wpacked-not-aligned, -Wsizeof-pointer-div, -Wstringop-truncation,
20154         -Wsuggest-attribute=cold, -Wsuggest-attribute=malloc.
20156 2018-04-24  Bruno Haible  <bruno@clisp.org>
20158         sys_socket: Make SO_REUSEPORT available across platforms.
20159         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20160         * lib/sys_socket.in.h (SO_REUSEPORT): New macro.
20161         * doc/posix-headers/sys_socket.texi: Mention the issue.
20162         * tests/test-poll.c (SO_REUSEPORT): Remove.
20163         * tests/test-select.h: Include <sys/socket.h>.
20164         (SO_REUSEPORT): Remove.
20165         * modules/select-tests (Depends-on): Add 'sys_socket'.
20167 2018-04-21  Benno Schulenberg  <bensberg@telfort.nl>  (tiny change)
20169         localcharset: short-circuit the search for an alias on a Mac
20170         * lib/localcharset.c (get_charset_aliases): Add a tautological
20171         UTF-8 entry to speed up the search for this case.
20172         Most machines default to a UTF-8 locale nowadays, so begin the
20173         list of aliases with a dummy UTF-8 entry so it will be found
20174         immediately and a time-consuming search through the rest of
20175         the list is avoided.
20177 2018-04-11  Paul Eggert  <eggert@cs.ucla.edu>
20179         fts: add comment
20180         * lib/fts.c (fts_build): Explain why ==, not >.
20181         See remark by Bernhard Voelker in:
20182         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00041.html
20184         fts: fix bug in find across filesystems
20185         This fixes a bug I introduced last summer.
20186         Problem reported by Kamil Dudka in:
20187         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00033.html
20188         * lib/fts.c (filesystem_type, dirent_inode_sort_may_be_useful)
20189         (leaf_optimization):
20190         New arg for file descriptor.  All callers changed.
20191         (fts_build): Check for whether inodes should be sorted
20192         before closing the directory.
20194 2018-04-07  Bruno Haible  <bruno@clisp.org>
20196         unicase/u*-context: Fix link errors with libunistring <= 0.9.9.
20197         Reported by Genki Sky <sky@genki.is>.
20198         * modules/unicase/u8-prefix-context (configure.ac): Require libunistring
20199         version 0.9.10 or newer.
20200         * modules/unicase/u8-suffix-context (configure.ac): Likewise.
20201         * modules/unicase/u16-prefix-context (configure.ac): Likewise.
20202         * modules/unicase/u16-suffix-context (configure.ac): Likewise.
20203         * modules/unicase/u32-prefix-context (configure.ac): Likewise.
20204         * modules/unicase/u32-suffix-context (configure.ac): Likewise.
20206 2018-04-07  Bruno Haible  <bruno@clisp.org>
20208         execute: Update comment.
20209         * lib/execute.h (execute): Refer to spawn-pipe.h, not pipe.h.
20211 2018-04-05  Paul Eggert  <eggert@cs.ucla.edu>
20213         fts: treat CIFS like NFS
20214         Problem reported by Kamil Dudka in:
20215         https://lists.gnu.org/r/bug-gnulib/2018-04/msg00015.html
20216         * lib/fts.c (S_MAGIC_CIFS): New macro.
20217         (dirent_inode_sort_may_be_useful, leaf_optimization):
20218         Treat CIFS like NFS.
20220 2018-03-28  Bruno Haible  <bruno@clisp.org>
20222         c-stack: Fix possible build failure on some platforms.
20223         * lib/c-stack.c (die): Define whenever this function is referenced.
20225 2018-03-28  Paul Eggert  <eggert@cs.ucla.edu>
20227         time_rz: fix workaround for Mac OS X 10.6 infloop
20228         Problems reported by Charles A. Roelli (Bug#27736#117).
20229         * m4/time_rz.m4 (gl_TIME_RZ): Use a slightly different timestamp.
20230         Also, discard output, which clutters the 'configure' log.
20232 2018-03-27  Paul Eggert  <eggert@cs.ucla.edu>
20234         havelib: port to Solaris 10 /bin/sh
20235         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Use 'test ! EXPR'
20236         instead of '! test EXPR'.
20238 2018-03-26  Paul Eggert  <eggert@cs.ucla.edu>
20240         time_rz: work around Mac OS X 10.6 infloop
20241         * doc/posix-functions/localtime.texi:
20242         * doc/posix-functions/localtime_r.texi: Mention the bug.
20243         * lib/time_rz.c (localtime_rz): Work around the bug.  It’d be
20244         better to fix localtime and localtime_r instead, but that would be
20245         more work and is not needed to fix the Emacs problem.
20246         * m4/time_rz.m4 (gl_TIME_RZ): Detect the bug.
20248 2018-03-24  Jim Meyering  <meyering@fb.com>
20250         test-version-etc.sh: don't use diff directly: use init.sh's compare
20251         We'd rather not sacrifice readable "diff -u" output even for
20252         "diff -c" output (not supported by busybox) or for even less
20253         readable ed-style "diff" output.  So use init.sh's compare function
20254         * tests/test-version-etc.sh: Source init.sh and add "." to path.
20255         Remove "./" from invocation of test-version-etc, so we use path.
20256         And s/diff/compare/.
20257         * modules/version-etc-tests (Depends-on): Add test-framework-sh,
20258         to get init.sh.
20259         Prompted by Eric Blake's comments in
20260         https://lists.gnu.org/r/sed-devel/2018-03/msg00015.html
20262 2018-03-24  Bruno Haible  <bruno@clisp.org>
20264         javacomp-script, javacomp: Add support for Java 10.
20265         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 10 and
20266         target-version 10.
20267         * lib/javaversion.h: Update comments.
20268         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20269         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20270         TARGET_VERSION_BOUND, target_version_index,
20271         corresponding_classfile_version): Accept source_version 10 and
20272         target_version 10.
20273         * lib/javacomp.h: Update comments accordingly.
20275 2018-03-24  Bruno Haible  <bruno@clisp.org>
20277         javacomp-script, javacomp: Update comments.
20278         * m4/javacomp.m4: Update comments regarding gcj.
20279         * lib/javacomp.h: Likewise.
20281 2018-03-24  Bruno Haible  <bruno@clisp.org>
20283         javacomp-script, javacomp: Fix support for Java 7, 8, 9.
20284         * lib/javaversion.h: Update comments.
20285         * lib/javacomp.h: Likewise.
20286         * lib/javacomp.c (default_target_version, source_version_index,
20287         get_goodcode_snippet, get_failcode_snippet): Recognize "9" instead of
20288         "1.9".
20289         (TARGET_VERSION_BOUND): Bump to 9.
20290         (target_version_index, corresponding_classfile_version): Recognize "9"
20291         instead of "1.9".
20292         (get_source_version_for_javac): New function.
20293         (is_envjavac_nongcj_usable, is_javac_usable): Add
20294         source_version_for_javac argument.
20295         (compile_java_class): Determine and pass source_version_for_javac.
20296         * m4/javacomp.m4: Recognize version '9' instead of '1.9'. When invoking
20297         $JAVAC or javac, pass '-source 1.6' instead of '-source 1.5' when
20298         appropriate.
20300 2018-03-23  Jim Meyering  <meyering@fb.com>
20302         test-version-etc.sh: port to diff without -c
20303         * tests/test-version-etc.sh: Don't use diff's -c option.
20304         This caused spurious test failure on Alpine Linux, which
20305         uses busybox's diff. Reported by Assaf Gordon in
20306         https://lists.gnu.org/r/sed-devel/2018-03/msg00013.html
20308 2018-03-23  Paul Eggert  <eggert@cs.ucla.edu>
20310         c-stack: port to recent GCC build
20311         Problem reported by The Fireplace (Bug#30913).
20312         * lib/c-stack.c (die): Define only if used.
20314 2018-03-20  Bruno Haible  <bruno@clisp.org>
20316         euidaccess: Port to native Windows.
20317         * lib/euidaccess.c (euidaccess): On native Windows, just use _access().
20318         * posix-modules (exclude_for_mingw): Remove 'euidaccess'.
20320 2018-03-19  Bruno Haible  <bruno@clisp.org>
20322         javacomp: Add support for Java 7, 8, 9.
20323         * lib/javacomp.c (default_target_version, SOURCE_VERSION_BOUND,
20324         source_version_index, get_goodcode_snippet, get_failcode_snippet,
20325         corresponding_classfile_version): Accept source_version 1,7, 1.8, 1.9
20326         and target_version 1,7, 1.8, 1.9.
20327         * lib/javacomp.h: Update comments accordingly.
20329 2018-03-19  Bruno Haible  <bruno@clisp.org>
20331         javacomp-script: Add support for Java 9.
20332         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.9 and
20333         target-version 1.9.
20335 2018-03-16  Bruno Haible  <bruno@clisp.org>
20337         glob: Don't compile replacements on recent glibc systems.
20338         * lib/glob.in.h: Use the usual idiom for the double-inclusion guard. If
20339         REPLACE_GLOB is 0, include the system's <glob.h> and use
20340         _GL_CXXALIAS_SYS.
20341         * m4/glob.m4 (gl_GLOB): Set REPLACE_GLOB instead of GLOB_H. Accept
20342         _GNU_GLOB_INTERFACE_VERSION 2 as well. Delete the file conf$$-globtest
20343         inside the AC_RUN_IFELSE block. Remove GL_GENERATE_GLOB_H conditional.
20344         * modules/glob (Dependencies): Test REPLACE_GLOB instead of GLOB_H.
20345         Remove snippet/warn-on-use.
20346         (configure.ac): Test REPLACE_GLOB instead of GLOB_H.
20347         (Makefile.am): Create glob.h always. Update list of substitutions in
20348         glob.h. Don't depend on $(WARN_ON_USE_H).
20350 2018-03-16  Bruno Haible  <bruno@clisp.org>
20352         glob: Fix link error on native Windows.
20353         * modules/glob (Depends-on): Add 'lstat'.
20355 2018-03-15  Bruno Haible  <bruno@clisp.org>
20357         glob: Fix compilation error in C++ mode.
20358         * lib/glob.in.h (_Restrict_): Define, like in regex.h and spawn.in.h.
20360 2018-03-15  Bruno Haible  <bruno@clisp.org>
20362         host-cpu-c-abi: Support for RISC-V CPU.
20363         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the various
20364         riscv32 and riscv64 ABIs.
20365         References:
20366         https://github.com/riscv/riscv-toolchain-conventions
20367         https://gcc.gnu.org/onlinedocs/gcc-7.3.0/gcc/RISC-V-Options.html
20368         https://gnu-mcu-eclipse.github.io/toolchain/riscv/
20370 2018-03-08  Paul Eggert  <eggert@cs.ucla.edu>
20372         fflush: be more paranoid about libio.h change
20373         Suggested by Eli Zaretskii in:
20374         https://lists.gnu.org/r/emacs-devel/2018-03/msg00270.html
20375         * lib/fbufmode.c (fbufmode):
20376         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20377         (disable_seek_optimization, rpl_fflush):
20378         * lib/fpending.c (__fpending):
20379         * lib/fpurge.c (fpurge):
20380         * lib/freadable.c (freadable):
20381         * lib/freadahead.c (freadahead):
20382         * lib/freading.c (freading):
20383         * lib/freadptr.c (freadptr):
20384         * lib/freadseek.c (freadptrinc):
20385         * lib/fseeko.c (fseeko):
20386         * lib/fseterr.c (fseterr):
20387         * lib/fwritable.c (fwritable):
20388         * lib/fwriting.c (fwriting):
20389         Look at _IO_ftrylockfile as well as at _IO_EOF_SEEN.
20391 2018-03-07  Paul Eggert  <eggert@cs.ucla.edu>
20393         maint: write-file-hooks -> before-save-hook
20394         write-file-hooks is obsolete since Emacs 22.1 (released June 2007) and
20395         it's time to use the recommended replacement.
20396         Problem reported by Glenn Morris in:
20397         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00008.html
20398         * build-aux/announce-gen, build-aux/bootstrap:
20399         * build-aux/do-release-commit-and-tag, build-aux/gendocs.sh:
20400         * build-aux/git-version-gen, build-aux/gitlog-to-changelog:
20401         * build-aux/gnu-web-doc-update, build-aux/gnupload:
20402         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
20403         * build-aux/update-copyright, build-aux/useless-if-before-free:
20404         * build-aux/vc-list-files:
20405         Update hook usage for files where Gnulib is the canonical source.
20407 2018-03-05  Paul Eggert  <eggert@cs.ucla.edu>
20409         binary-io: pacify gcc -Wunused-parameter
20410         Problem reported by Reuben Thomas in:
20411         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00005.html
20412         * lib/binary-io.h (__gl_setmode, __gl_setmode_check):
20413         Use _GL_UNUSED where appropriate.
20415         fflush: adjust to glibc 2.28 libio.h removal
20416         Problem reported by Daniel P. Berrangé in:
20417         https://lists.gnu.org/r/bug-gnulib/2018-03/msg00000.html
20418         * lib/fbufmode.c (fbufmode):
20419         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
20420         (disable_seek_optimization, rpl_fflush):
20421         * lib/fpending.c (__fpending):
20422         * lib/fpurge.c (fpurge):
20423         * lib/freadable.c (freadable):
20424         * lib/freadahead.c (freadahead):
20425         * lib/freading.c (freading):
20426         * lib/freadptr.c (freadptr):
20427         * lib/freadseek.c (freadptrinc):
20428         * lib/fseeko.c (fseeko):
20429         * lib/fseterr.c (fseterr):
20430         * lib/fwritable.c (fwritable):
20431         * lib/fwriting.c (fwriting):
20432         Check _IO_EOF_SEEN instead of _IO_ftrylockfile.
20433         * lib/stdio-impl.h (_IO_IN_BACKUP) [_IO_EOF_SEEN]:
20434         Define if not already defined.
20436 2018-02-27  Paul Eggert  <eggert@cs.ucla.edu>
20438         environ: fix link error on 32-bit Cygwin
20439         Problem reported for GNU Emacs by Ken Brown in:
20440         https://lists.gnu.org/r/emacs-devel/2018-02/msg00765.html
20441         * lib/unistd.in.h (environ) [__i386__]: Do not redeclare.
20443 2018-02-24  Bruno Haible  <bruno@clisp.org>
20445         mbrtowc tests: Fix regression on glibc.
20446         Reported by Bernhard Voelker.
20447         * tests/test-mbrtowc.c (main): Fix expected value of wc.
20449 2018-02-24  Bruno Haible  <bruno@clisp.org>
20451         striconveha, uniconv/*: Avoid test failures on musl libc.
20452         * tests/iconvsupport.c: New file.
20453         * tests/test-striconveha.c (main): Skip autodetect_jp tests if iconv()
20454         does not support the ISO-2022-JP-2 encoding.
20455         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
20456         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
20457         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
20458         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
20459         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
20460         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
20461         * modules/striconveha-tests (Files): Add tests/iconvsupport.c.
20462         (Makefile.am): Link test-striconveha with iconvsupport.o.
20463         * modules/uniconv/u8-conv-from-enc-tests (Files): Add
20464         tests/iconvsupport.c.
20465         (Makefile.am): Link test-u8-conv-from-enc with iconvsupport.o.
20466         * modules/uniconv/u8-strconv-from-enc-tests (Files): Add
20467         tests/iconvsupport.c.
20468         (Makefile.am): Link test-u8-strconv-from-enc with iconvsupport.o.
20469         * modules/uniconv/u16-conv-from-enc-tests (Files): Add
20470         tests/iconvsupport.c.
20471         (Makefile.am): Link test-u16-conv-from-enc with iconvsupport.o.
20472         * modules/uniconv/u16-strconv-from-enc-tests (Files): Add
20473         tests/iconvsupport.c.
20474         (Makefile.am): Link test-u16-strconv-from-enc with iconvsupport.o.
20475         * modules/uniconv/u32-conv-from-enc-tests (Files): Add
20476         tests/iconvsupport.c.
20477         (Makefile.am): Link test-u32-conv-from-enc with iconvsupport.o.
20478         * modules/uniconv/u32-strconv-from-enc-tests (Files): Add
20479         tests/iconvsupport.c.
20480         (Makefile.am): Link test-u32-strconv-from-enc with iconvsupport.o.
20482 2018-02-24  Bruno Haible  <bruno@clisp.org>
20484         localename: Add support for musl libc.
20485         * m4/localename.m4 (gl_LOCALENAME): Check for <langinfo.h>.
20486         * lib/localename.c (gl_locale_name_thread_unsafe): Use NL_LOCALE_NAME
20487         on Linux platforms which define NL_LOCALE_NAME.
20489 2018-02-24  Bruno Haible  <bruno@clisp.org>
20491         mbrtowc tests: Don't make assumptions about the charset the C locale.
20492         * tests/test-mbrtowc.c (main): For bytes >= 0x80, don't assume a
20493         particular mapping in the C locale.
20495 2018-02-24  Bruno Haible  <bruno@clisp.org>
20497         ptsname_r: Don't expect that this function sets errno.
20498         * tests/test-ptsname_r.c (test_errors): Don't test errno after return
20499         from ptsname_r().
20500         * doc/glibc-functions/ptsname_r.texi: Mention the issue.
20502 2018-02-23  Bruno Haible  <bruno@clisp.org>
20504         xmalloca: pacify gcc -Wbad-function-cast
20505         * lib/xmalloca.h (xmalloca): Insert intermediate cast here as well.
20507 2018-02-23  Paul Eggert  <eggert@cs.ucla.edu>
20509         nl_langinfo: pacify gcc -Wunused-function
20510         * lib/nl_langinfo.c (ctype_codeset): Do not define if
20511         REPLACE_NL_LANGINFO && !GNULIB_defined_CODESET, as it is unused in
20512         this case.  Without this change, I got a diagnostic when building
20513         coreutils on Fedora 27 with gcc 7.3.1 20180130.
20515         same: pacify gcc -Wunused-variable
20516         * lib/same.c (same_nameat) [!CHECK_TRUNCATION]:
20517         Omit unused variable.
20519         malloca: pacify gcc -Wbad-function-cast
20520         * lib/malloca.h (malloca): Pacify gcc -Wbad-function-cast
20521         diagnostic that I got on Fedora 27 with gcc 7.3.1 20180130.
20522         To pacify GCC, I had to cast alloca’s result to some type other
20523         than void * before casting that to uintptr_t.
20525 2018-02-20  Paul Eggert  <eggert@cs.ucla.edu>
20527         utimecmp: new function utimecmpat
20528         * lib/utimecmp.c: Include fcntl.h, sys/stat.h and dirname.h.
20529         Do not include utimens.h.
20530         (utimecmpat): New function, generalizing utimecmp.
20531         (utimecmp): Now a thin layer around utimecmpat.
20532         * modules/utimecmp (Depends-on): Depend on dirname-lgpl, fstatat,
20533         utimensat instead of on lstat and utimens.
20535         same: new function same_nameat
20536         * lib/same.c: Include fcntl.h.
20537         * lib/same.c (same_nameat): New function, generalizing same_name.
20538         (same_name): Now a thin layer around same_nameat.
20539         * m4/same.m4 (gl_SAME): Check for fpathconf, not pathconf.
20540         * modules/same (Depends-on): Depend on fstatat, openat.
20542 2018-02-18  Eric Gallager  <egall@gwmail.gwu.edu>  (tiny change)
20544         warnings: Add support for Objective C.
20545         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(Objective C)): New
20546         macro.
20548 2018-02-17  Bruno Haible  <bruno@clisp.org>
20550         lock: Fix test-once1 crash on FreeBSD11.
20551         * lib/glthread/lock.h: On FreeBSD, test the weak value of the symbol
20552         'pthread_create', not 'pthread_cancel'.
20554 2018-02-17  Bruno Haible  <bruno@clisp.org>
20556         lock: Add test of gl_once.
20557         * tests/test-once.c: New file.
20558         * modules/lock-tests (Files): Add it.
20559         (Makefile.am): Build and test programs 'test-once1' and 'test-once2'.
20561 2018-02-17  Bruno Haible  <bruno@clisp.org>
20563         thread: Fix compilation error on IRIX.
20564         * lib/glthread/thread.h: Include <unistd.h>. Include <signal.h> when
20565         needed; include it outside the C++ extern "C" {} block.
20566         * doc/posix-headers/pthread.texi: Mention the problem with
20567         pthread_atfork on IRIX.
20569 2018-02-04  Bruno Haible  <bruno@clisp.org>
20571         nl_langinfo: Override the system's nl_langinfo() when needed.
20572         Reported by Jim Meyering.
20573         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Set REPLACE_NL_LANGINFO=1
20574         also when HAVE_LANGINFO_T_FMT_AMPM or HAVE_LANGINFO_ALTMON is 0.
20576 2018-02-04  Bruno Haible  <bruno@clisp.org>
20578         signal-h, monetary, strings: Fix build failure in some cases.
20579         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20580         * modules/signal-h (Makefile.am): In the GNULIB_* substitutions, use '/'
20581         as delimiter in sed command, not '|'.
20582         * modules/monetary (Makefile.am): Likewise.
20583         * modules/strings (Makefile.am): Likewise.
20585 2018-02-03  Jim Meyering  <meyering@fb.com>
20587         maint.mk: exempt "/proc/filesystems" from "file system" syntax check
20588         * top/maint.mk (sc_file_system): Don't complain about
20589         "/proc/filesystems".
20591 2018-02-03  Bruno Haible  <bruno@clisp.org>
20593         stdlib: Fix compilation error on OpenIndiana.
20594         * lib/stdlib.in.h: Before including <sys/loadavg.h>, include
20595         <sys/time.h>.
20596         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
20597         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
20599 2018-02-03  Bruno Haible  <bruno@clisp.org>
20601         host-cpu-c-abi: Avoid use of 'grep -E' on OpenIndiana.
20602         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX): Require AC_PROG_EGREP,
20603         and use $EGREP instead of 'grep -E'.
20604         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Use 'grep' instead of
20605         'grep -E'.
20607 2018-02-02  Paul Eggert  <eggert@cs.ucla.edu>
20609         malloca: Add a compile-time verification.
20610         * lib/malloca.c (small_t): Verify that it is wide enough.
20611         * modules/malloca (Depends-on): Add verify.
20613 2018-02-02  Bruno Haible  <bruno@clisp.org>
20615         malloca: Add an argument check.
20616         Suggested by Paul Eggert.
20617         * lib/malloca.c (freea): Check against an invalid argument.
20619 2018-02-02  Bruno Haible  <bruno@clisp.org>
20621         localename: Add support for OpenIndiana.
20622         * lib/localename.c (gl_locale_name_thread_unsafe): Add code for
20623         Solaris 11 variants with uselocale() but without getlocalename_l().
20625 2018-02-02  Bruno Haible  <bruno@clisp.org>
20627         malloca, xmalloca: Make multithread-safe.
20628         Reported by Florian Weimer <fweimer@redhat.com>.
20629         Implements an idea by Ondřej Bílka <neleai@seznam.cz>.
20630         * lib/malloca.h (malloca): In the stack allocation case, return a
20631         pointer that is a multiple of 2 * sa_alignment_max.
20632         (sa_increment): Remove enum item.
20633         * lib/xmalloca.h (xmalloca): In the stack allocation case, return
20634         a pointer that is a multiple of 2 * sa_alignment_max.
20635         * lib/malloca.c (NO_SANITIZE_MEMORY): Remove macro.
20636         (MAGIC_NUMBER, MAGIC_SIZE, preliminary_header, HEADER_SIZE, header,
20637         HASH_TABLE_SIZE, mmalloca_results): Remove.
20638         (small_t): New type.
20639         (mmalloca, free): Rewritten.
20640         * lib/malloca.valgrind: Remove file.
20641         * modules/malloca (Files): Remove it.
20642         (Depends-on): Remove verify.
20644 2018-01-31  Bruno Haible  <bruno@clisp.org>
20646         environ: Fix link error on 64-bit Cygwin.
20647         * lib/unistd.in.h (environ): On Cygwin, redeclare with the
20648         __declspec(dllimport) attribute.
20649         * doc/posix-functions/environ.texi: Mention the Cygwin problem.
20651 2018-01-30  Bruno Haible  <bruno@clisp.org>
20653         get-rusage-data: Add support for Minix 3.
20654         * lib/get-rusage-data.c (get_rusage_data): Return 0 on Minix.
20656 2018-01-30  Bruno Haible  <bruno@clisp.org>
20658         vma-iter: Add support for Minix 3.
20659         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Minix.
20660         * lib/vma-iter.c: On Minix, read /proc/<pid>/map.
20662 2018-01-27  Bruno Haible  <bruno@clisp.org>
20664         Fix malfunction of socket functions on HP-UX in 64-bit mode.
20665         * m4/socketlib.m4 (gl_SOCKETLIB): Add comment.
20666         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define
20667         _HPUX_ALT_XOPEN_SOCKET_API.
20668         * modules/accept (Depends-on): Add 'extensions'.
20669         * modules/getpeername (Depends-on): Likewise.
20670         * modules/getsockname (Depends-on): Likewise.
20671         * modules/getsockopt (Depends-on): Likewise.
20672         * modules/recvfrom (Depends-on): Likewise.
20673         * doc/posix-functions/accept.texi: Mention the HP-UX socklen_t problem.
20674         * doc/posix-functions/getpeername.texi: Likewise.
20675         * doc/posix-functions/getsockname.texi: Likewise.
20676         * doc/posix-functions/getsockopt.texi: Likewise.
20677         * doc/posix-functions/recvfrom.texi: Likewise.
20679 2018-01-27  Bruno Haible  <bruno@clisp.org>
20681         getsockname tests: More tests.
20682         * tests/test-getsockname.c (open_server_socket): New function, mostly
20683         copied from test-poll.c.
20684         (main): Check that getsockname fills in addr.
20685         * modules/getsockname-tests (Depends-on): Add the necessary
20686         dependencies.
20687         (test_getsockname_LDADD): Link with $(INET_PTON_LIB).
20689 2018-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20691         manywarnings: fix maintainer comment
20692         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Fix comment so that
20693         it does not mistakenly think that ‘-1)’ is an option.
20695 2018-01-26  Bruno Haible  <bruno@clisp.org>
20697         langinfo: Fix last commit.
20698         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20699         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_ALTMON.
20701 2018-01-24  Bruno Haible  <bruno@clisp.org>
20703         langinfo, nl_langinfo: Add support for alternative month names.
20704         * m4/langinfo_h.m4 (gl_LANGINFO_H): Define HAVE_LANGINFO_ALTMON.
20705         * lib/langinfo.in.h (ALTMON_1...ALTMON_12): New macros.
20706         * lib/nl_langinfo.c (rpl_nl_langinfo): Treat ALTMON_i like MON_i.
20707         * tests/test-nl_langinfo.c (main): Test ALTMON_*.
20708         * doc/posix-headers/langinfo.texi: Document support of ALTMON_*.
20709         * doc/posix-functions/nl_langinfo.texi: Likewise.
20711 2018-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20713         Merge strftime.c changes from glibc
20714         This incorporates:
20715         2017-11-14 [BZ #10871] Implement alternative month names
20716         2017-11-14 [BZ #10871] Abbreviated alternative month names (%Ob)
20717         2017-06-20 Use locale_t, not __locale_t, throughout glibc
20718         * lib/nstrftime.c (ABALTMON_1) [!COMPILE_WIDE]: New macro.
20719         (LOCALE_PARAM) [_LIBC && USE_IN_EXTENDED_LOCALE_MODEL]:
20720         Use locale_t, not __locale_t.
20721         (a_altmonth, f_altmonth, aam_len) [_NL_CURRENT]: New macros.
20722         (__strftime_internal): Add support for alternate months.
20724 2018-01-23  Bruno Haible  <bruno@clisp.org>
20726         doc: Mention another prerequisite for using Gnulib.
20727         Reported at <https://stackoverflow.com/questions/48378214/>.
20728         * doc/gnulib-tool.texi (Initial import): Mention requirement to use
20729         AC_CONFIG_HEADERS.
20731 2018-01-22  Mathieu Lirzin  <mthl@gnu.org>
20733         build: GuixSD doesn't have /bin/bash
20734         * Makefile (SHELL): Search 'bash' in the PATH environment variable.
20736 2018-01-21  Bruno Haible  <bruno@clisp.org>
20738         Avoid test failures on Microsoft Windows Subsystem for Linux.
20739         * tests/test-fcntl.c (main): Allow a different errno.
20740         * tests/test-rename.h (test_rename): Likewise.
20741         * tests/test-renameat.c (main): Likewise.
20742         * tests/test-renameat2.c (main): Likewise.
20744 2018-01-14  Paul Eggert  <eggert@cs.ucla.edu>
20746         filenamecat: make base a suffix of result
20747         * lib/filenamecat-lgpl.c (longest_relative_suffix): Remove.
20748         (mfile_name_concat): Always make BASE a suffix of the result, as
20749         cp expects this.  To implement this, separate with '.' instead of
20750         '/' in some rare cases.  Clarify spec to say ./BASE not BASE.
20751         * tests/test-filenamecat.c (main): Adjust tests to match
20752         current behavior.  Check that BASE_IN_RESULT points to
20753         a copy of BASE and is a suffix of the resultk, and that DIR
20754         is a prefix of the result that is no longer than the prefix
20755         indicated by BASE_IN_RESULT.
20757 2018-01-04  Mathieu Lirzin  <mthl@gnu.org>
20759         update-copyright: Handle use of ©
20760         * build-aux/update-copyright ($circle_c_re): Update regex to
20761         handle use of © in headers.
20763 2018-01-04  Tim Rühsen  <tim.ruehsen@gmx.de>
20765         Fix -Wundef warning in user-included header lib/cdefs.h.
20766         * lib/cdefs.h: Check if defined before using __USE_FORTIFY_LEVEL.
20768 2018-01-04  Bruno Haible  <bruno@clisp.org>
20770         pthread_sigmask: Avoid compilation error on mingw.
20771         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20772         * lib/signal.in.h (pthread_sigmask): Don't declare it it's defined as a
20773         macro.
20775 2018-01-03  Paul Eggert  <eggert@cs.ucla.edu>
20777         test-framework-sh: ‘ps -ef’, not ‘ps ef’
20778         * tests/init.sh (rand_bytes_): Put ‘-’ before new-style ps options.
20779         Suggested by Bob Proulx (Bug#29968).
20780         * build-aux/mktempd (rand_bytes): Make it like tests/init.sh.
20782 2018-01-02  Eric Blake  <eblake@redhat.com>
20784         stat-time: silence -Wunused-parameter regression
20785         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
20786         Prefer attribute over cast-to-void.
20787         (stat_time_normalize): Mark st as potentially unused.
20789 2018-01-02  Paul Eggert  <eggert@cs.ucla.edu>
20791         test-framework-sh: avoid netstat
20792         Problem reported by Kristýna Streitová (Bug#29947).
20793         * tests/init.sh (rand_bytes_): Stop using netstat, as it's
20794         deprecated on SuSE and it's not that important anyway.
20796 2018-01-01  Jim Meyering  <meyering@fb.com>
20798         update-copyright: add code to handle more special cases
20799         After running "make update-copyright" this year, five files
20800         required additional manual changes.  Automate those adjustments
20801         for next year.
20802         * Makefile (_year_and_prev): Define.
20803         (update-copyright): Add perl commands to induce this year's post-
20804         update-copyright adjustments.
20806 2018-01-01  Paul Eggert  <eggert@cs.ucla.edu>
20808         version-etc: new year
20809         * build-aux/gendocs.sh (version):
20810         * doc/gendocs_template:
20811         * doc/gendocs_template_min:
20812         * doc/gnulib.texi:
20813         * lib/version-etc.c (COPYRIGHT_YEAR):
20814         Update copyright dates by hand in templates and the like.
20816         maint: fix 'make update-copyright'
20817         * Makefile (update-copyright): Adjust to 2016-11-23 change
20818         to config/srclist-update, which changed the format of srclist.txt.
20820 2017-12-30  Paul Eggert  <eggert@cs.ucla.edu>
20822         chdir-safer: remove this module
20823         * MODULES.html.sh (func_all_modules): Remove chdir-safer.
20824         * NEWS: Document removal.
20825         * lib/chdir-safer.c, lib/chdir-safer.h, m4/afs.m4, m4/chdir-safer.m4:
20826         * modules/chdir-safer: Remove these files.
20828 2017-12-29  Samuel Thibault  <samuel.thibault@gnu.org>
20830         Add cross-compilation results for GNU/Hurd.
20831         * m4/calloc.m4: Add GNU/Hurd guess.
20832         * m4/cbrtl.m4: Likewise.
20833         * m4/ceil.m4: Likewise.
20834         * m4/ceilf.m4: Likewise.
20835         * m4/ceill.m4: Likewise.
20836         * m4/chown.m4: Likewise.
20837         * m4/duplocale.m4: Likewise.
20838         * m4/exp2l.m4: Likewise.
20839         * m4/expm1.m4: Likewise.
20840         * m4/fchdir.m4: Likewise.
20841         * m4/floor.m4: Likewise.
20842         * m4/floorf.m4: Likewise.
20843         * m4/fmod.m4: Likewise.
20844         * m4/fmodf.m4: Likewise.
20845         * m4/fmodl.m4: Likewise.
20846         * m4/getcwd.m4: Likewise.
20847         * m4/getgroups.m4: Likewise.
20848         * m4/gettimeofday.m4: Likewise.
20849         * m4/hypot.m4: Likewise.
20850         * m4/hypotf.m4: Likewise.
20851         * m4/hypotl.m4: Likewise.
20852         * m4/link-follow.m4: Likewise.
20853         * m4/link.m4: Likewise.
20854         * m4/linkat.m4: Likewise.
20855         * m4/log.m4: Likewise.
20856         * m4/log10.m4: Likewise.
20857         * m4/log10f.m4: Likewise.
20858         * m4/log1p.m4: Likewise.
20859         * m4/log1pf.m4: Likewise.
20860         * m4/log1pl.m4: Likewise.
20861         * m4/log2.m4: Likewise.
20862         * m4/log2f.m4: Likewise.
20863         * m4/logf.m4: Likewise.
20864         * m4/lstat.m4: Likewise.
20865         * m4/malloc.m4: Likewise.
20866         * m4/mbrlen.m4: Likewise.
20867         * m4/mbrtowc.m4: Likewise.
20868         * m4/mkdir.m4: Likewise.
20869         * m4/mkfifo.m4: Likewise.
20870         * m4/mknod.m4: Likewise.
20871         * m4/mkstemp.m4: Likewise.
20872         * m4/modf.m4: Likewise.
20873         * m4/modff.m4: Likewise.
20874         * m4/modfl.m4: Likewise.
20875         * m4/printf.m4: Likewise.
20876         * m4/pselect.m4: Likewise.
20877         * m4/ptsname.m4: Likewise.
20878         * m4/putenv.m4: Likewise.
20879         * m4/readlink.m4: Likewise.
20880         * m4/realloc.m4: Likewise.
20881         * m4/remainder.m4: Likewise.
20882         * m4/remainderf.m4: Likewise.
20883         * m4/remainderl.m4: Likewise.
20884         * m4/rmdir.m4: Likewise.
20885         * m4/round.m4: Likewise.
20886         * m4/roundf.m4: Likewise.
20887         * m4/roundl.m4: Likewise.
20888         * m4/select.m4: Likewise.
20889         * m4/setenv.m4: Likewise.
20890         * m4/signbit.m4: Likewise.
20891         * m4/sleep.m4: Likewise.
20892         * m4/stat.m4: Likewise.
20893         * m4/strerror.m4: Likewise.
20894         * m4/strtok_r.m4: Likewise.
20895         * m4/symlink.m4: Likewise.
20896         * m4/symlinkat.m4: Likewise.
20897         * m4/trunc.m4: Likewise.
20898         * m4/truncf.m4: Likewise.
20899         * m4/truncl.m4: Likewise.
20900         * m4/tzset.m4: Likewise.
20901         * m4/ungetc.m4: Likewise.
20902         * m4/usleep.m4: Likewise.
20903         * m4/wcwidth.m4: Likewise.
20905 2017-12-28  Bruno Haible  <bruno@clisp.org>
20907         gnulib-tool: Make --conditional-dependencies work better.
20908         Reported by Dmitry Selyutin <ghostman.sd@gmail.com>.
20909         * gnulib-tool (Options): Don't reject the combination of
20910         --conditional-dependencies with --with-tests.
20911         (func_emit_autoconf_snippets): Add argument referenceable_modules.
20912         Don't reference $modules.
20913         (func_import, func_create_testdir): Pass it.
20915 2017-12-19  Paul Eggert  <eggert@cs.ucla.edu>
20917         regex: use re_malloc etc. consistently
20918         Problem and original patch reported by Arnold Robbins in:
20919         https://sourceware.org/ml/libc-alpha/2017-12/msg00241.html
20920         * lib/regcomp.c (re_comp):
20921         * lib/regexec.c (push_fail_stack, build_trtable, match_ctx_clean):
20922         Use re_malloc/re_realloc/re_free instead of malloc/realloc/free.
20924 2017-12-15  Tim Rühsen  <tim.ruehsen@gmx.de>
20925             Paul Eggert  <eggert@cs.ucla.edu>
20927         glob: Silence warning about void pointer arithmetic.
20928         * lib/glob.c (glob): Use a 'char *', not a 'void *', in pointer
20929         arithmetic.
20931 2017-12-15  Bruno Haible  <bruno@clisp.org>
20933         spawn-pipe: Silence a clang warning.
20934         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
20935         * lib/spawn-pipe.c: Disable clang -Wconditional-uninitialized warnings
20936         in this file.
20938 2017-12-12  Paul Eggert  <eggert@cs.ucla.edu>
20940         explicit_bzero: port to macOS + Clang 9.0.0
20941         Problem reported by Marcus Johnson (Bug#29658).
20942         * lib/explicit_bzero.c (explicit_bzero) [__clang__]:
20943         Don’t use asm.
20945 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20947         doc: Improve explanation of supporting relocatable libraries.
20948         * doc/relocatable-maint.texi (Supporting Relocation): Explain
20949         properly how to build the relocatable module for
20950         libraries. (Method and example code from Bruno Haible.)
20952 2017-12-11  Reuben Thomas  <rrt@sc3d.org>
20954         doc: Use better texinfo tags in a few cases.
20955         * doc/gnulib.texi (Extending Gnulib): Use @option or @command
20956         instead of @samp in a few places.
20958 2017-12-11  Bruno Haible  <bruno@clisp.org>
20960         unistr/base: Update comment.
20961         * lib/unistr.in.h: Update comment about u*_mbtouc_unsafe functions.
20963 2017-12-10  Pádraig Brady  <P@draigBrady.com>
20965         test-faccessat.c: unlink temp file to avoid subsequent test failure
20966         * tests/test-faccessat.c: Remove the file to avoid failure
20967         to open the file on subsequent runs due to being created
20968         with no permissions.
20970 2017-12-10  Bruno Haible  <bruno@clisp.org>
20972         doc: New sect. "Modifying the build rules of a Gnulib import directory".
20973         * doc/gnulib-tool.texi (Modified build rules): New node.
20975 2017-12-10  Bruno Haible  <bruno@clisp.org>
20977         doc: Tweak wording.
20978         * doc/gnulib-tool.texi (Multiple instances): Talk about "programs", not
20979         "binaries".
20981 2017-12-05  Sam Steingold  <sds@gnu.org>
20982             Bruno Haible  <bruno@clisp.org>
20984         no-c++: Avoid "egrep: repetition-operator operand invalid" error.
20985         * m4/no-c++.m4 (gt_NO_CXX): Don't use '+' characters nor spaces in the
20986         AC_EGREP_CPP pattern.
20988 2017-12-03  Bruno Haible  <bruno@clisp.org>
20990         all: Replace more http URLs by https URLs.
20991         * lib/sm3.h, lib/sm3.c, tests/test-sm3.c: Use https: URL.
20992         * lib/unigbrk/u-grapheme-breaks.h: Likewise.
20993         * lib/unigbrk/uc-grapheme-breaks.c: Likewise.
20994         * tests/unigbrk/test-uc-grapheme-breaks.c: Likewise.
20996 2017-11-28  Paul Eggert  <eggert@cs.ucla.edu>
20998         Port better to CentOS 5
20999         Problems reported by Tom G. Christensen in:
21000         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00053.html
21001         * doc/glibc-functions/strverscmp.texi (strverscmp):
21002         Document strverscmp bug with glibc 2.9 and earlier.
21003         * doc/posix-functions/tzset.texi (tzset):
21004         Document that TZ with angle brackets is POSIX-2001 and later.
21005         * tests/test-nstrftime.c: Include unistd.h.
21006         (TZ_ANGLE_BRACKETS_SHOULD_WORK): New macro.
21007         (TZ): Use it to skip tests with angle brackets in TZ,
21008         for older systems.
21010         stat: add missing module dependencies
21011         * modules/lstat, modules/stat, modules/utimensat (Depends-on):
21012         Add stat-time.
21014 2017-11-28  Benno Schulenberg  <bensberg@telfort.nl>
21016         stat: fix compilation failure on macOS Sierra
21017         Reported by Marius Schamschula <mschamschula@gmail.com> in:
21018         https://savannah.gnu.org/bugs/?52546
21019         * lib/stat.c: Add missing include of stat-time.h.
21021 2017-11-28  Jim Meyering  <meyering@fb.com>
21023         test-faccessat.c: correct BASE definition to avoid parallel test failure
21024         * tests/test-faccessat.c (BASE): Define using this file's name, not
21025         that of test-lstat.c.  Using the latter caused this test to fail
21026         sometimes when run concurrently with test-lstat.
21028 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21030         unicase: fix VPATH build
21031         * modules/unicase/special-casing (Makefile.am): Ensure that the
21032         base directory is created when generating
21033         unicase/special-casing.h.
21035 2017-11-27  Daiki Ueno  <ueno@gnu.org>
21037         libunistring: update to Unicode 9.0.0
21038         * lib/gen-uni-tables.c (fill_properties): Recognize
21039         Sentence_Terminal and Prepended_Concatenation_Mark.
21040         (is_property_default_ignorable_code_point): Exclude U+08E2.
21041         (fill_arabicshaping): Allow missing whitespace when parsing;
21042         recognize "AFRICAN FEH", "AFRICAN QAF", and "AFRICAN MOON".
21043         (output_blocks): Increase the element size of the level1 table to
21044         accommodate more blocks.
21045         (get_lbp): Recognize ZWJ, E_Base, and E_Modifier characters;
21046         Update each class according to the standard.
21047         (get_wbp): Recognize ZWJ, E_Base, E_Modifier, Glue_After_Zwj, and
21048         E_Base_GAZ characters.
21049         (output_gbp_table): Recognize ZWJ, E_Base, E_Modifier,
21050         Glue_After_Zwj, and E_Base_GAZ characters.
21051         * lib/unictype.in.h (UC_JOINING_GROUP_AFRICAN_FEH)
21052         (UC_JOINING_GROUP_AFRICAN_QAF, UC_JOINING_GROUP_AFRICAN_MOON): New
21053         enum value.
21054         * lib/unilbrk/lbrktables.h (LBP_ZWJ, LBP_EB, LBP_EM): New enum
21055         value.
21056         * lib/unilbrk/lbrktables.c (unilbrk_table): Extend the table with
21057         LBP_ZWJ, LBP_EB, and LBP_EM.
21058         * lib/uniwbrk.in.h (WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, WBP_EBG): New
21059         enum value.
21060         * lib/uniwbrk/u-wordbreaks.h: Implement WB3c, WB15, and WB16.
21061         * lib/uniwbrk/wbrktable.h (uniwbrk_prop_index): New variable
21062         declaration.
21063         * lib/uniwbrk/wbrktable.c (uniwbrk_prop_index): New variable.
21064         (uniwbrk_table): Implement WB14.
21065         * tests/uniwbrk/test-uc-wordbreaks.c (wordbreakproperty_to_string):
21066         Check WBP_ZWJ, WBP_EB, WBP_EM, WBP_GAZ, and WBP_EBG.
21067         * modules/unigbrk/u{32,16,8}-grapheme-breaks: No longer depend on
21068         uc-is-grapheme-break.
21069         * modules/unigbrk/uc-grapheme-breaks: New module.
21070         * modules/unigbrk/uc-grapheme-breaks-tests: New module.
21071         * lib/unigbrk.in.h (GBP_ZWJ, GBP_EB, GBP_EM, GBP_GAZ, GBP_EBG): New
21072         enum value.
21073         (uc_grapheme_breaks): New function, replacing uc_is_grapheme_break.
21074         * lib/unigbrk/u-grapheme-breaks.h: New file.
21075         * lib/unigbrk/u{32,16,8}-grapheme-breaks.c: Rewrite using
21076         u-grapheme-breaks.h instead of uc_is_grapheme_break.
21077         * lib/unigbrk/uc-grapheme-breaks.c: New file.
21078         * lib/unigbrk/uc-is-grapheme-break.c: Partially update to TR29 rev
21079         29.
21080         * tests/unigbrk/test-uc-gbrk-prop.c
21081         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21082         GBP_GAZ, and GBP_EBG.
21083         * tests/unigbrk/test-uc-grapheme-breaks.c: New test.
21084         * tests/unigbrk/test-uc-is-grapheme-break.c
21085         (graphemebreakproperty_to_string): Check GBP_ZWJ, GBP_EB, GBP_EM,
21086         GBP_GAZ, and GBP_EBG.
21087         (main): Skip unsupported rules involving 3 or more characters,
21088         namely GB10, GB12, and GB13.
21089         * lib/uniwidth/width.c (nonspacing_table_data): Update.
21090         * all generated files under lib/uni* and tests/uni*: Regenerate.
21091         * all the affected modules: Bump version.
21093 2017-11-26  Bruno Haible  <bruno@clisp.org>
21095         strfmon_l: Fix compilation error with glibc 2.5.
21096         Reported by Tom G. Christensen <tgc@jupiterrise.com>
21097         in <https://lists.gnu.org/r/bug-gnulib/2017-11/msg00051.html>.
21098         * lib/monetary.in.h: Include also <locale.h>.
21100 2017-11-24  Paul Eggert  <eggert@cs.ucla.edu>
21102         posixtm: remove PDS_LEADING_YEAR
21103         This changes the API slightly, in a hopefully-innocuous way.
21104         Without this change the code had undefined behavior when a
21105         caller specified neither PDS_LEADING_YEAR nor PDS_TRAILING_YEAR.
21106         Problem reported by Pádraig Brady in:
21107         https://lists.gnu.org/r/bug-gnulib/2017-11/msg00048.html
21108         * NEWS: Mention this.
21109         * lib/posixtm.c (posix_time_parse): Treat the absence of
21110         PDS_TRAILING_YEAR as if PDS_LEADING_YEAR were present.
21111         * lib/posixtm.h (PDS_LEADING_YEAR): Remove (actually, leave it
21112         present, but define it as zero, for compatibility with existing
21113         source code).  All other PDS_* values moved up.
21114         * tests/test-posixtm.c (LY): New macro.
21115         (T): Use it.  Do not expect a particular numeric encoding
21116         for PDS_CENTURY etc.
21118 2017-11-23  Paul Eggert  <eggert@cs.ucla.edu>
21120         stat: work around Solaris bug with tv_nsec < 0
21121         * doc/posix-functions/fstat.texi (fstat):
21122         * doc/posix-functions/fstatat.texi (fstatat):
21123         * doc/posix-functions/lstat.texi (lstat):
21124         * doc/posix-functions/stat.texi (stat):
21125         Mention Solaris 11 bug.
21126         * lib/fstat.c, lib/fstatat.c, lib/lstat.c: Include stat-time.h.
21127         * lib/fstat.c (rpl_fstat) [!WINDOWS_NATIVE]:
21128         * lib/lstat.c (rpl_lstat):
21129         * lib/stat.c (rpl_stat):
21130         Normalize resulting timestamps.
21131         * lib/fstatat.c (normal_fstatat): New function.
21132         (rpl_fstatat): Use it.
21133         * lib/stat-time.h: Include intprops.h, errno.h, stddef.h.
21134         (stat_time_normalize): New function.
21135         * m4/fstat.m4 (gl_FUNC_FSTAT):
21136         * m4/fstatat.m4 (gl_FUNC_FSTATAT):
21137         * m4/lstat.m4 (gl_FUNC_LSTAT):
21138         * m4/stat.m4 (gl_FUNC_STAT):
21139         Replace on Solaris.
21140         * modules/fstat (Depends-on):
21141         * modules/fstatat (Depends-on):
21142         Add stat-time.
21143         * modules/stat-time (Depends-on): Add errno, intprops.
21145 2017-11-22  Paul Eggert  <eggert@cs.ucla.edu>
21147         regex: merge from glibc
21148         * lib/regcomp.c (init_word_char): Add comments.
21150 2017-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21152         regex: merge from glibc
21153         * lib/regcomp.c (__regcomp, __regfree) [_LIBC]: Now hidden.
21154         * lib/regex_internal.h (internal_function): Remove.
21155         All uses removed.
21157 2017-11-20  Bruno Haible  <bruno@clisp.org>
21159         crypto/gc-sm3: Fix buffer overrun.
21160         * lib/gc-gnulib.c (MAX_DIGEST_SIZE): Bump to 32.
21161         Reported by Coverity.
21163 2017-11-12  Jim Meyering  <meyering@fb.com>
21165         maint: shorten https://lists.gnu.org/archive/html/... links
21166         Each /archive/html/ part can be replace with /r/.
21167         Run this to induce the change:
21168         git grep -l archive/html|xargs perl -pi -e 's,/archive/html/,/r/,g'
21169         * ChangeLog: Perform that substitution.
21170         * Makefile: Likewise.
21171         * STATUS-libposix: Likewise.
21172         * build-aux/bootstrap: Likewise.
21173         * doc/maintain.texi: Likewise.
21174         * gnulib-tool: Likewise.
21175         * lib/allocator.h: Likewise.
21176         * lib/argp-ba.c: Likewise.
21177         * lib/argp-pv.c: Likewise.
21178         * lib/canon-host.c: Likewise.
21179         * lib/canonicalize-lgpl.c: Likewise.
21180         * lib/float.in.h: Likewise.
21181         * lib/fstat.c: Likewise.
21182         * lib/getdelim.c: Likewise.
21183         * lib/getprogname.c: Likewise.
21184         * lib/glthread/thread.h: Likewise.
21185         * lib/intprops.h: Likewise.
21186         * lib/mbsrtowcs-state.c: Likewise.
21187         * lib/safe-read.c: Likewise.
21188         * lib/signal.in.h: Likewise.
21189         * lib/stat.c: Likewise.
21190         * lib/stdbool.in.h: Likewise.
21191         * lib/stdio-impl.h: Likewise.
21192         * lib/stdio.in.h: Likewise.
21193         * lib/sysexits.in.h: Likewise.
21194         * lib/timespec.h: Likewise.
21195         * lib/wcsrtombs-state.c: Likewise.
21196         * m4/alloca.m4: Likewise.
21197         * m4/extern-inline.m4: Likewise.
21198         * m4/fstatat.m4: Likewise.
21199         * m4/gnulib-common.m4: Likewise.
21200         * m4/lib-ignore.m4: Likewise.
21201         * m4/printf.m4: Likewise.
21202         * m4/regex.m4: Likewise.
21203         * m4/stat-size.m4: Likewise.
21204         * m4/std-gnu11.m4: Likewise.
21205         * m4/stdbool.m4: Likewise.
21206         * m4/sys_types_h.m4: Likewise.
21207         * m4/threadlib.m4: Likewise.
21208         * m4/vararrays.m4: Likewise.
21209         * pygnulib/GLImport.py: Likewise.
21210         * tests/test-exp.h: Likewise.
21211         * tests/test-exp2.h: Likewise.
21212         * tests/test-expm1.h: Likewise.
21213         * tests/test-fflush2.c: Likewise.
21214         * tests/test-getopt_long.h: Likewise.
21215         * tests/test-intprops.c: Likewise.
21216         * tests/test-log.h: Likewise.
21217         * tests/test-log10.h: Likewise.
21218         * tests/test-log1p.h: Likewise.
21219         * tests/test-log2.h: Likewise.
21220         * tests/test-printf-posix.h: Likewise.
21221         * tests/test-regex.c: Likewise.
21222         * tests/test-snprintf-posix.h: Likewise.
21223         * tests/test-sprintf-posix.h: Likewise.
21224         * tests/test-stdalign.c: Likewise.
21225         * tests/test-stdbool.c: Likewise.
21226         * tests/test-vasnprintf-posix.c: Likewise.
21227         * tests/test-vasprintf-posix.c: Likewise.
21228         * top/maint.mk: Likewise.
21230 2017-11-12  Bruno Haible  <bruno@clisp.org>
21232         faccessat: Make the last change more robust.
21233         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Require
21234         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Treat "guessing yes" like "yes".
21236 2017-11-11  Paul Eggert  <eggert@cs.ucla.edu>
21238         faccessat: port to macOS (Bug#29231)
21239         macOS faccessat has the same bug that lstat does: if the file
21240         name ends in '/' it ignores the trailing slash.
21241         Problem reported for Emacs by Vincent Zhang.
21242         * doc/posix-functions/faccessat.texi (faccessat): Document this.
21243         * lib/faccessat.c (_GL_INCLUDING_UNISTD_H): Define and undef
21244         around the initial includes.  Include errno.h, string.h, sys/stat.h.
21245         (orig_faccessat) [HAVE_FACCESSAT]: New function.
21246         Include "unistd.h" after defining it.
21247         (rpl_faccessat) [HAVE_FACCESSAT]: New implementation.
21248         * lib/unistd.in.h (faccessat) [REPLACE_FACCESSAT]:
21249         Handle in the usual way.
21250         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Replace faccessat if
21251         lstat dereferences symlinks, since faccessat is likely to
21252         have the same problem.
21253         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Default REPLACE_ACCESSAT.
21254         * modules/faccessat (Depends-on): Add fstatat.
21255         Depend if REPLACE_FACCESSAT is 1, too.
21256         (configure.ac): Link if REPLACE_FACCESSAT is 1.
21257         * modules/faccessat-tests (Depends-on): Add symlink.
21258         * modules/unistd (unistd.h): Substitute REPLACE_FACCESSAT.
21259         * tests/test-faccessat.c (main): Test for the bug.
21261 2017-11-11  Bruno Haible  <bruno@clisp.org>
21263         getprogname: Fix compilation error on IRIX.
21264         * lib/getprogname.c (getprogname) [__sgi]: Fix type of local variable
21265         'namesize'.
21267 2017-11-11  Bruno Haible  <bruno@clisp.org>
21269         year2038: Tweak last patch.
21270         * m4/year2038.m4 (gl_YEAR2038): Correct indentation.
21272 2017-11-06  Paul Eggert  <eggert@cs.ucla.edu>
21274         year2038: be more insistent about 64-bit time_t
21275         Applications requiring access to arbitrary files should not be
21276         built with 32-bit time_t on hosts that have 64-bit timestamps,
21277         as this can lead to real trouble at runtime.
21278         * m4/year2038.m4 (gl_YEAR2038): Do not require AC_CANONICAL_HOST.
21279         Check on all systems, not just MinGW.  Use a heuristic involving
21280         TIME_T_32_BIT_OK, cross_compiling, and the touch command to
21281         output a failure or just a warning, to make it more likely that
21282         builders will select 64-bit time_t.
21284 2017-11-05  Paul Eggert  <eggert@cs.ucla.edu>
21286         havelib: fix typo in previous change
21287         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Fix typo.
21289         Don’t use AC_EGREP_CPP if affected by CFLAGS
21290         * m4/float_h.m4 (gl_FLOAT_H):
21291         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI):
21292         * m4/lib-ld.m4 (AC_LIB_PROG_LD):
21293         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB):
21294         * m4/year2038.m4 (gl_YEAR2038):
21295         Prefer AC_COMPILE_IFELSE to AC_EGREP_CPP when testing conditions
21296         likely to be affected by the choice of CFLAGS, since CFLAGS are
21297         not used by AC_EGREP_CPP.  Without this patch, ‘./configure
21298         CFLAGS="-m32"’ fails on gzip with GNU/Linux x86-64.
21300         fstatat: pacify GCC on unusual platform
21301         * lib/fstatat.c (orig_fstatat) [!HAVE_WORKING_FSTATAT_ZERO_FLAG]:
21302         Omit, as it’s unused in this case.
21304 2017-10-29  Paul Eggert  <eggert@cs.ucla.edu>
21306         timespec: prefer ‘assume’ to ‘assure’
21307         This avoids some runtime tests.  The rest of the module makes
21308         similar assumptions and there is little point to testing here.
21309         * lib/timespec.h: Include verify.h instead of assure.h.
21310         (timespec_cmp): Use ‘assume’, not ‘assure’.
21311         Also, remove an unnecessary cast to ‘int’, as lots of other
21312         code in this module now causes -Wconversion to complain, and
21313         this is a problem with -Wconversion not with the code.
21315         * modules/timespec (Depends-on): Depend on ‘verify’, not ‘assure’.
21317         Port recent gnulib-tool change to Dash
21318         * gnulib-tool (func_create_testdir): Don't assume that the shell
21319         retokenizes after expanding "$@" inside the call to
21320         func_execute_command.  Dash 0.5.8-2.1ubuntu2 does not.
21322 2017-10-27  Jim Meyering  <meyering@fb.com>
21324         timespec.h: use "assure" to avoid a spurious warning
21325         * lib/timespec.h: Include "assure.h" and use it to help
21326         gcc7's -Wstrict-overflow avoid a false positive warning
21327         for a use in coreutils' ls.c.  Suggested by Paul Eggert in
21328         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00007.html
21329         * modules/timespec (Depends-on): Add assure.
21331 2017-10-29  Bruno Haible  <bruno@clisp.org>
21333         Avoid several test failures with traditional locales on Haiku.
21334         * m4/locale-ar.m4 (gt_LOCALE_AR): On BeOS and Haiku, set LOCALE_AR=none.
21335         * m4/locale-fr.m4 (gt_LOCALE_FR): On BeOS and Haiku, set LOCALE_FR=none.
21336         * m4/locale-ja.m4 (gt_LOCALE_JA): On BeOS and Haiku, set LOCALE_JA-none.
21337         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On BeOS and Haiku, set
21338         LOCALE_ZH_CN=none.
21340 2017-10-29  Bruno Haible  <bruno@clisp.org>
21342         strerror_r-posix: Fix behaviour and test failure on Haiku.
21343         * lib/strerror_r.c (strerror_r): Don't assume that valid error numbers
21344         are positive. Work around return value 0 instead of ERANGE on Haiku.
21345         For unknown error numbers, use a format string consistent with perror().
21346         * doc/posix-functions/strerror_r.texi: Mention the Haiku problem.
21347         * tests/test-strerror_r.c (main): Don't assume that valid error numbers
21348         are positive.
21350 2017-10-29  Bruno Haible  <bruno@clisp.org>
21352         get-rusage-data: Avoid crash on Haiku.
21353         * lib/get-rusage-data.c: Avoid the setlimit-based implementation.
21355 2017-10-29  Bruno Haible  <bruno@clisp.org>
21357         get-rusage-as: Avoid crash on Haiku.
21358         * lib/get-rusage-as.c: Avoid the setlimit-based implementation.
21360 2017-10-29  Bruno Haible  <bruno@clisp.org>
21362         ilogbl: Ensure replacement on Haiku.
21363         * m4/ilogbl.m4 (gl_FUNC_ILOGBL): Invoke gl_FUNC_ILOGBL_WORKS and set
21364         REPLACE_ILOGBL if ilogbl does not work.
21365         (gl_FUNC_ILOGBL_WORKS): New macro.
21366         * lib/math.in.h (ilogbl): Replace if REPLACE_ILOGBL is 1.
21367         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ILOGBL.
21368         * modules/math (Makefile.am): Substitute REPLACE_ILOGBL.
21369         * modules/ilogbl (Depends-on, configure.ac): Consider REPLACE_ILOGBL.
21370         * doc/posix-functions/ilogbl.texi: Mention the Haiku problem.
21372 2017-10-29  Bruno Haible  <bruno@clisp.org>
21374         expl: Ensure replacement on Haiku.
21375         * m4/expl.m4 (gl_FUNC_EXPL): Test whether an expl() return value is
21376         zero.
21377         * doc/posix-functions/expl.texi: Mention the Haiku problem.
21379 2017-10-29  Bruno Haible  <bruno@clisp.org>
21381         math: Fix test failure on Haiku.
21382         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Override on Haiku.
21383         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Update accordingly.
21384         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
21385         * doc/posix-headers/math.texi: Mention the Haiku problem.
21387 2017-10-29  Bruno Haible  <bruno@clisp.org>
21389         gnulib-tool: Avoid unnecessary config.h.in remaking in testdirs.
21390         * gnulib-tool (func_create_testdir): Use workaround against 'autoheader'
21391         bug reported at <https://savannah.gnu.org/support/index.php?109406>.
21393 2017-10-29  Bruno Haible  <bruno@clisp.org>
21395         crypto/*: Verify that the header file is self-contained.
21396         * tests/test-gc-*.c: Include the module's header file immediately after
21397         <config.h>.
21398         * tests/test-hmac-*.c: Likewise.
21399         * tests/test-arcfour.c: Likewise.
21400         * tests/test-arctwo.c: Likewise.
21401         * tests/test-des.c: Likewise.
21402         * tests/test-md2.c: Likewise.
21403         * tests/test-md4.c: Likewise.
21404         * tests/test-md5.c: Likewise.
21405         * tests/test-rijndael.c: Likewise.
21406         * tests/test-sha1.c: Likewise.
21407         * tests/test-sm3.c: Likewise.
21409 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21410             Bruno Haible  <bruno@clisp.org>
21412         crypto/gc: fix build failure with -Werror=suggest-attribute=const
21413         * lib/gc.h (gc_hash_digest_length): Mark with 'const' attribute.
21415 2017-10-29  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21417         New module: crypto/gc-sm3
21418         * lib/gc.h: Declare SM3-related stuffs.
21419         * lib/gc-gnulib.c: Support sm3 in internal functions.
21420         * lib/gc-libgcrypt.c: Support sm3 with libgcrypt.
21421         * m4/gc-sm3.m4: m4 file for gc-sm3 module.
21422         * modules/crypto/gc-sm3: Define gc-sm3 module.
21423         * tests/test-gc-sm3.c: Implement SM3 test case with libgcrypt.
21424         * modules/crypto/gc-sm3-tests: Define gc-sm3 test module.
21425         * MODULES.html.sh: List gc-sm3 module.
21427 2017-10-29  Bruno Haible  <bruno@clisp.org>
21429         random, random_r: Mention different prototypes on Haiku.
21430         * doc/posix-functions/random.texi: Mention different prototype on Haiku.
21431         * doc/glibc-functions/random_r.texi: Likewise.
21432         * doc/glibc-functions/initstate_r.texi: Likewise.
21433         * doc/glibc-functions/setstate_r.texi: Likewise.
21435 2017-10-28  Bruno Haible  <bruno@clisp.org>
21437         posix_spawn: Avoid spurious message in configure output.
21438         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Discard stderr output from
21439         'cmp' command.
21441 2017-10-28  Bruno Haible  <bruno@clisp.org>
21443         inet_ntop, inet_pton: Determine needed library correctly on Haiku.
21444         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Search also in libnetwork.
21445         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
21447 2017-10-28  Bruno Haible  <bruno@clisp.org>
21449         ioctl: Override non-POSIX declaration on Haiku.
21450         * m4/ioctl.m4 (gl_FUNC_IOCTL): Include also <unistd.h>.
21451         * lib/sys_ioctl.in.h: Add comment about Haiku.
21452         * doc/posix-functions/ioctl.texi: Mention Haiku problem.
21453         * doc/glibc-headers/sys_ioctl.texi: Likewise.
21455 2017-10-28  Bruno Haible  <bruno@clisp.org>
21457         crypto/sm3: Add overview documentation to the .h file.
21458         * lib/sm3.h: Add comments.
21460 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21462         New module: crypto/sm3
21463         This new module can be used to compute SM3 message digest of files or
21464         memory blocks according to the specification GM/T 004-2012
21465         Cryptographic Hash Algorithm SM3, published by State Cryptography
21466         Administration, China.
21467         The official SM3 cryptographic hash algorithm specification is
21468         available at
21469         http://www.sca.gov.cn/sca/xwdt/2010-12/17/content_1002389.shtml
21470         * lib/sm3.h: Declare the APIs of sm3 module.
21471         * lib/sm3.c: Implement SM3 hash algorithm.
21472         * m4/sm3.m4: m4 file for sm3 module.
21473         * modules/crypto/sm3: Define sm3 module.
21474         * tests/test-sm3.c: Implement SM3 test case.
21475         * modules/crypto/sm3-tests: Define sm3 test module.
21476         * MODULES.html.sh: List sm3 module.
21478 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21480         gc-libgcrypt: fix undefined enum type in switch statement
21481         Resolve the following build failure:
21482         lib/gc-libgcrypt.c: In function 'gc_hash_open':
21483         lib/gc-libgcrypt.c:317:5: error: case value '0' not in enumerated type
21484         'Gc_hash_mode {aka enum Gc_hash_mode}' [-Werror=switch]
21485              case 0:
21486              ^~~~
21487         * lib/gc.h (enum Gc_hash_mode): Add value GC_NULL.
21488         * lib/gc-libgcrypt.c (gc_hash_open): Use this enum value instead of 0.
21490 2017-10-28  Jia Zhang  <qianyue.zj@alibaba-inc.com>
21492         gc-libgcrypt: fix assignment error due to -Werror=pointer-sign
21493         Resolve the following build failure:
21494         lib/gc-libgcrypt.c: In function 'gc_hash_read':
21495         lib/gc-libgcrypt.c:460:14: error: pointer targets in assignment differ
21496         in signedness [-Werror=pointer-sign]
21497             digest = gcry_md_read (ctx->gch, 0);
21498                    ^
21499         * lib/gc-libgcrypt.c (gc_hash_read): Cast result of gcry_md_read.
21501 2017-10-26  Bruno Haible  <bruno@clisp.org>
21503         havelib: Fix value of LD for 32-bit compilation on NetBSD/sparc64.
21504         * m4/lib-ld.m4 (AC_LIB_PROG_LD): On NetBSD/sparc64 with CC="gcc -m32",
21505         set LD to '/usr/bin/ld -m elf32_sparc', not '/usr/bin/ld'.
21507 2017-10-21  Paul Eggert  <eggert@cs.ucla.edu>
21509         glob: fix another heap buffer overflow
21510         Problem reported by Tim Rühsen in:
21511         https://sourceware.org/bugzilla/show_bug.cgi?id=22332
21512         * lib/glob.c (glob): Avoid buffer overrun when unescaping.
21514 2017-10-19  Paul Eggert  <eggert@cs.ucla.edu>
21516         quotearg: pacify compiler re unsigned
21517         * lib/quotearg.c (quotearg_n_options):
21518         Rewrite to avoid diagnostic from overly-picky compiler.
21519         Problem reported by Sami Kerola in:
21520         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00060.html
21522         glob: fix heap buffer overflow
21523         * lib/glob.c (glob): Fix off-by-one error introduced into
21524         glibc in commit dd7d45e838a42b0ed470c44b55901ea98d0c2bab
21525         dated 1997-10-29 20:33:40.  Problem reported by Tim Rühsen in:
21526         https://sourceware.org/bugzilla/show_bug.cgi?id=22320
21527         Fix suggested by Bruno Haible.
21529 2017-10-18  Paul Eggert  <eggert@cs.ucla.edu>
21531         glob: pacify fuzzer for mempcpy
21532         Problem reported by Tim Rühsen in:
21533         https://lists.gnu.org/r/bug-gnulib/2017-10/msg00054.html
21534         * lib/glob.c (glob): Do not pass NULL to mempcpy.
21536 2017-10-12  Bruno Haible  <bruno@clisp.org>
21538         doc: Fix syntax error (regression from 2017-10-03).
21539         * doc/posix-functions/strncpy.texi: Fix syntax error.
21541 2017-10-12  Bruno Haible  <bruno@clisp.org>
21543         doc: Update for Solaris 11.3.
21544         * doc/**/*.texi: For bugs that exist in both Solaris 11.0 and 11.3,
21545         mention Solaris 11.3.
21546         * m4/log2.m4: Fix comments.
21547         * m4/log2f.m4: Likewise.
21548         * m4/printf.m4: Update comments.
21549         * m4/rename.m4: Likewise.
21550         * m4/strncat.m4: Likewise.
21552         all: Write "Solaris 11.0" instead of "Solaris 11 2011-11".
21554 2017-10-10  Bruno Haible  <bruno@clisp.org>
21556         doc: Improve doc about ioctl.
21557         * doc/posix-functions/ioctl.texi: Fix list of platforms with non-POSIX
21558         prototype.
21560 2017-10-09  Bruno Haible  <bruno@clisp.org>
21562         wcwidth: Don't use obsolete syntax of 'test'.
21563         Reported by Eric Blake.
21564         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Don't optimize two 'test'
21565         invocations into one, as POSIX marks '-a' and '-o' as "obsolescent".
21567 2017-10-09  Bruno Haible  <bruno@clisp.org>
21569         getopt-posix: Fix build failure when using ac_cv_header_getopt_h=no.
21570         Reported by Christian Ehrhardt <christian.ehrhardt@canonical.com>
21571         and Daniel P. Berrange <berrange@redhat.com>.
21572         * lib/unistd.in.h (getopt): Don't attempt to avoid namespace pollution
21573         on glibc systems. The getopt-pfx-core.h file declares exactly what
21574         unistd.h needs, nothing more.
21576 2017-10-08  Bruno Haible  <bruno@clisp.org>
21578         vma-iter: Improve support for FreeBSD.
21579         * lib/vma-iter.c (vma_iterate_proc): New function, extracted from
21580         vma_iterate.
21581         (vma_iterate): Use it. For FreeBSD, try vma_iterate_bsd first.
21583 2017-10-08  Bruno Haible  <bruno@clisp.org>
21585         vma-iter: Fix truncated result on NetBSD (regression from 2017-10-07).
21586         * lib/vma-iter.c (MIN_LEFTOVER): Define to 1, not 0.
21588 2017-10-07  KO Myung-Hun  <komh@chollian.net>
21590         test-framework-sh: Fix 'invalid path dir' error.
21591         On OS/2, a path separator is ';' not ':'. And ':' is used as a
21592         separator between a drive letter and directory parts.
21593         As a result, an absolute path such as x:/path/to/dir on OS/2 is
21594         treated as an invalid path dir.
21595         * tests/init.sh (PATH_SEPARATOR): Set at startup.
21596         (path_prepend_): '?:*' is also an absolute path. Use $PATH_SEPARATOR
21597         instead of hard coded ':'.
21599 2017-10-07  Bruno Haible  <bruno@clisp.org>
21601         vma-iter: Fix truncated result on Linux (regression from 2017-09-26).
21602         * lib/vma-iter.c (MIN_LEFTOVER): New macro.
21603         (STACK_ALLOCATED_BUFFER_SIZE): Set to a minimal value if not needed.
21604         (rof_open): On Linux, do multiple read() calls and make sure
21605         MIN_LEFTOVER bytes are left when read() returns.
21607 2017-10-07  Bruno Haible  <bruno@clisp.org>
21609         vma-iter: Improve support for GNU/Hurd.
21610         * lib/vma-iter.c (vma_iterate): On GNU/Hurd, use the Mach vm_region()
21611         API, not the /proc file system.
21613 2017-10-07  Bruno Haible  <bruno@clisp.org>
21615         test-framework-sh: Don't require bash on Windows and OS/2.
21616         Reported by KO Myung-Hun.
21617         * tests/test-init.sh: Use 'shopt' only when running in bash.
21619 2017-10-06  KO Myung-Hun  <komh@chollian.net>
21621         wcwidth: check a macro version of wcwidth () as well
21622         * lib/wchar.in.h: Revert commit from 2016-01-14.
21623         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test if wcwidth is a macro.
21625 2017-10-06  Bruno Haible  <bruno@clisp.org>
21627         getopt-posix: Clarify copyright header.
21628         * lib/getopt.in.h: Don't state that gnulib is under LGPL.
21629         * lib/getopt-pfx-core.h: Likewise.
21630         * lib/getopt-pfx-ext.h: Likewise.
21631         * lib/getopt-cdefs.in.h: Likewise.
21633 2017-10-03  Bruno Haible  <bruno@clisp.org>
21635         Fix warning "`gl_HOST_CPU_C_ABI' was expanded before it was required".
21636         * modules/host-cpu-c-abi (configure.ac): Require, don't invoke
21637         gl_HOST_CPU_C_ABI.
21639 2017-10-03  Bruno Haible  <bruno@clisp.org>
21641         doc: warn about misuse of strncpy and wcsncpy.
21642         * doc/posix-functions/strcpy.texi: Describe requirements on prior
21643         memory allocation.
21644         * doc/posix-functions/wcscpy.texi: Likewise.
21645         * doc/posix-functions/strncpy.texi: Describe what this function is not
21646         useful for.
21647         * doc/posix-functions/wcsncpy.texi: Likewise.
21649 2017-10-02  Paul Eggert  <eggert@cs.ucla.edu>
21651         fsuage: fix typo in previous change
21652         * lib/fsusage.c: Remove stray include of full-read.h.
21653         Problem reported by Sam Steingold for macOS (Bug#28669).
21655 2017-10-01  Paul Eggert  <eggert@cs.ucla.edu>
21657         fsusage: remove SVR2 support
21658         SVR2 was obsolete by 1986 and is no longer supported by anybody,
21659         and its code was getting in the way of use of this module by
21660         Emacs, which has its own ‘read’ function anyway.
21661         * lib/fsusage.c: Do not include sys/filsys.h.
21662         (get_fs_usage): Remove SVR2-specific code.
21663         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE):
21664         Do not test for sys/filsys.h or set STAT_READ_FILSYS.
21665         * modules/fsusage (Depends-on): Do not depend on full-read.
21667         Simplify autoupdate of licenses
21668         * config/srclistvars.sh (GNUWWWLICENSES): Move to a more-typical
21669         place.
21671 2017-10-01  Bruno Haible  <bruno@clisp.org>
21673         vma-iter: Add support for GNU/Hurd.
21674         * lib/vma-iter.c: Treat GNU/Hurd like Linux.
21675         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21677 2017-09-30  Bruno Haible  <bruno@clisp.org>
21679         vma-iter: Make it work on 32-bit Solaris with module 'largefile'.
21680         * modules/vma-iter: Don't test for sys/procfs.h, as this test would
21681         fail when module 'largefile' is in use.
21682         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't test HAVE_SYS_PROCFS_H.
21683         * lib/vma-iter.c: Undefine _FILE_OFFSET_BITS early.
21684         Don't test HAVE_SYS_PROCFS_H.
21686 2017-09-30  Bruno Haible  <bruno@clisp.org>
21688         havelib: Make it work for CC="gcc -m32" (regression from 2017-02-19).
21689         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Require gl_HOST_CPU_C_ABI.
21690         When $CC produces 32-bit code, set acl_libdirstem to 'lib', not 'lib64'.
21691         * modules/havelib (Depends-on): Add host-cpu-c-abi.
21693 2017-09-30  Bruno Haible  <bruno@clisp.org>
21695         uniname/uniname: Don't assume C99 compiler (regression from 2015-02-16).
21696         * lib/uniname/uniname.c (unicode_name_character): Add braces around
21697         scope of local variables.
21699 2017-09-28  Bruno Haible  <bruno@clisp.org>
21701         string: code style
21702         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Reorder list of
21703         substitutable variables.
21704         * modules/string (Makefile.am): Likewise.
21706 2017-09-26  Bruno Haible  <bruno@clisp.org>
21708         uniname/uniname-tests: Tighten code.
21709         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Merge two
21710         local variables into one.
21712 2017-09-26  Bruno Haible  <bruno@clisp.org>
21714         vma-iter: Improvements for Linux and BSD platforms.
21715         - Add support for DragonFly BSD.
21716         - Make it more reliable on Linux, GNU/kFreeBSD, FreeBSD, NetBSD.
21717         * lib/vma-iter.c (struct rofile, rof_open, rof_peekchar, rof_close):
21718         Read the entire file into memory in a single system call.
21719         (vma_iterate): Update. Read from /proc on DragonFly BSD like on FreeBSD.
21720         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on DragonFly BSD.
21722 2017-09-26  Bruno Haible  <bruno@clisp.org>
21724         vma-iter: Provide the protection flags on FreeBSD.
21725         * lib/vma-iter.c (vma_iterate) [FreeBSD]: When reading from /proc,
21726         skip three fields between the addresses and the protection flags.
21728 2017-09-26  Paul Eggert  <eggert@cs.ucla.edu>
21730         glob: remove bogus extern decl
21731         * lib/glob.c (__glob_pattern_type): Remove now-spurious
21732         extern declaration.  Problem reported by Adhemerval Zanella in:
21733         https://sourceware.org/ml/libc-alpha/2017-09/msg00972.html
21735 2017-09-25  Paul Eggert  <eggert@cs.ucla.edu>
21737         uniname/uniname-tests: integer overflow fix
21738         * tests/uniname/test-uninames.c (fill_names, fill_aliases):
21739         Check for integer overflow.
21741         duplocale-tests: fix unlikely crash
21742         * tests/test-duplocale.c (get_locale_dependent_values):
21743         Don’t crash with absurdly long month names.
21745         maint: fix overflow checking in nap.h
21746         * modules/chown-tests:
21747         * modules/fchownat-tests, modules/fdutimensat-tests:
21748         * modules/futimens-tests, modules/lchown-tests:
21749         * modules/stat-time-tests, modules/utime-tests:
21750         * modules/utimens-tests, modules/utimensat-tests:
21751         Depend on intprops.
21752         * tests/nap.h: Include intprops.h.
21753         (diff_timespec): Handle overflow properly.
21755         sys_types: update URL
21756         * m4/sys_types_h.m4: Use https: URL.
21758         parse-datetime: fix dependency
21759         * modules/parse-datetime (Depends-on): Depend
21760         on nstrftime, not strftime.
21762         parse-datetime, posixtm: avoid uninit access
21763         * lib/parse-datetime.y (parse_datetime2):
21764         * lib/posixtm.c (posixtime):
21765         Do not access uninitialized storage, even though the resulting
21766         value is never used.
21768 2017-09-25  Bruno Haible  <bruno@clisp.org>
21770         vma-iter: Improvements for BSD platforms.
21771         - Add support for GNU/kFreeBSD.
21772         - Make it work on FreeBSD and NetBSD even when /proc is not mounted.
21773         - Speed up on OpenBSD.
21774         * lib/vma-iter.c (struct rofile, rof*): Define also on GNU/kFreeBSD.
21775         (vma_iterate_bsd): New function.
21776         (vma_iterate): Use it as fallback on FreeBSD and NetBSD. Use it as
21777         first choice on OpenBSD. Treat GNU/kFreeBSD like Linux.
21778         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on GNU/kFreeBSD.
21779         * modules/vma-iter (configure.ac): Require AC_C_INLINE.
21781 2017-09-23  Bruno Haible  <bruno@clisp.org>
21783         strfmon_l: New module.
21784         * modules/strfmon_l: New file.
21785         * lib/strfmon_l.c: New file.
21786         * m4/strfmon_l.m4: New file.
21787         * doc/posix-functions/strfmon_l.texi: Mention the new module.
21788         * modules/strfmon_l-tests: New file.
21789         * tests/test-strfmon_l.c: New file.
21791         monetary: New module.
21792         * modules/monetary: New file.
21793         * lib/monetary.in.h: New file.
21794         * m4/monetary_h.m4: New file.
21795         * doc/posix-headers/monetary.texi: Mention the new module.
21796         * modules/monetary-tests: New file.
21797         * tests/test-monetary.c: New file.
21798         * modules/monetary-c++-tests: New file.
21799         * tests/test-monetary-c++.cc: New file.
21800         * modules/duplocale-tests (configure.ac): Use AC_CHECK_HEADERS_ONCE.
21802 2017-09-23  Bruno Haible  <bruno@clisp.org>
21804         duplocale tests: Fix test crash on Linux/x86.
21805         * tests/test-duplocale.c (test_with_uselocale): Disconnect the mixed2
21806         locale from the current thread before freeing it.
21808 2017-09-21  Paul Eggert  <eggert@cs.ucla.edu>
21810         mktime: port to OpenVMS
21811         Problem reported by John E. Malmberg in:
21812         https://lists.gnu.org/r/bug-gnulib/2017-09/msg00100.html
21813         * m4/mktime.m4 (TIME_T_IS_SIGNED): Default to 0.
21815 2017-09-16  Paul Eggert  <eggert@cs.ucla.edu>
21817         manywarnings: port to GCC on 64-bit MS-Windows
21818         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Work better if
21819         LONG_MAX < PTRDIFF_MAX.  Problem reported by Richard Copley in:
21820         https://lists.gnu.org/r/emacs-devel/2017-09/msg00392.html
21822 2017-09-13  Bruno Haible  <bruno@clisp.org>
21824         all: Replace many more http URLs by https URLs. Update stale URLs.
21825         * users.txt: Remove mention of 'newts'.
21826         * lib/localename.c: Update comment about LANG_SOTHO.
21828 2017-09-13  Paul Eggert  <eggert@cs.ucla.edu>
21830         all: Replace many http URLs by https URLs.
21832 2017-09-12  Bruno Haible  <bruno@clisp.org>
21834         doc: Prefer https URLs where possible.
21835         * doc/**/*.texi: Use https URLs instead of http URLs where possible.
21836         * doc/ld-output-def.texi: Remove unavailable URL.
21838 2017-09-12  Paul Eggert  <eggert@cs.ucla.edu>
21840         maintainer-makefile: FTP -> HTTPS
21841         * top/maint.mk (url_dir_list, ftp-gnu): Use HTTPS protocol instead
21842         of FTP, which is planned to be decommissioned on 2017-11-01.
21844 2017-09-12  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
21846         libc-config: Fix __GNUC_PREREQ macro.
21847         * lib/libc-config.h (__GNUC_PREREQ): Use __GNUC_MINOR__, not
21848         __GNUC_MINOR.
21850 2017-09-09  Bruno Haible  <bruno@clisp.org>
21852         gnulib-tool: Simplify commit from 2015-08-20.
21853         * gnulib-tool (func_add_or_update): Remove local variable
21854         is_binary_file.
21856 2017-09-08  Bruno Haible  <bruno@clisp.org>
21858         stddef: Avoid conflict with system-defined max_align_t.
21859         The configure-determined HAVE_MAX_ALIGN_T may not always be accurate.
21860         Reported by Werner Lemberg <wl@gnu.org> in
21861         <https://lists.gnu.org/r/bug-gnulib/2017-08/msg00185.html>.
21862         * lib/stddef.in.h (rpl_max_align_t): Renamed from max_align_t.
21863         (max_align_t): Define as a macro.
21864         (GNULIB_defined_max_align_t): New macro. Guards against multiple
21865         definitions of rpl_max_align_t in different copies of gnulib-generated
21866         <stddef.h>.
21868 2017-09-05  Paul Eggert  <eggert@cs.ucla.edu>
21870         libc-config: port to MSVC
21871         Problems reported by Gisle Vanem in:
21872         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00016.html
21873         * lib/libc-config.h (__inline): Don't define if HAVE___INLINE.
21874         (libc_hidden_proto): Stick to Standard C syntax for varargs macro.
21875         * m4/__inline.m4: New file.
21876         * modules/libc-config (Files): Add it.
21877         (Depends-on): Use it.
21879         glob: Use enum for __glob_pattern_type result
21880         From a patch proposed by Adhemerval Zanella in:
21881         https://sourceware.org/ml/libc-alpha/2017-09/msg00212.html
21882         * lib/glob_internal.h (GLOBPAT_NONE, GLOBPAT_SPECIAL)
21883         (GLOBPAT_BACKSLASH, GLOBPAT_BRACKET): New constants.
21884         * lib/glob_internal.h (__glob_pattern_type):
21885         * lib/glob.c (glob):
21886         * lib/glob_pattern_p.c (__glob_pattern_p):
21887         Use them.
21889         glob: fix for use in glibc
21890         Problem reported by Adhemerval Zanella in:
21891         https://sourceware.org/ml/libc-alpha/2017-09/msg00213.html
21892         * lib/glob.c (DT_UNKNOWN, DT_DIR, DT_LINK):
21893         Do not redefine if _LIBC.
21895 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21897         glob: fix bugs with long login names
21898         Problem reported by Adhemerval Zanella in:
21899         https://sourceware.org/ml/libc-alpha/2017-08/msg00455.html
21900         * lib/glob.c (GET_LOGIN_NAME_MAX): Remove.
21901         (glob): Use the same scratch buffer for both getlogin_r and
21902         getpwnam_r.  Don’t require preallocation of the login name.  This
21903         simplifies storage allocation, and corrects the handling of
21904         long login names.
21906 2017-09-02  Bruno Haible  <bruno@clisp.org>
21908         dirent: Update doc.
21909         * doc/posix-headers/dirent.texi: More concrete list of platforms.
21911 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21913         glob: fix getpwnam_r errno typo
21914         * lib/glob.c (glob): Fix longstanding misuse of errno after
21915         getpwnam_r, which returns an error number rather than setting
21916         errno.
21918         glob: fix typo in recent change
21919         * lib/glob.c (glob) [!HAVE_GETPWNAM_R && !_LIBC]:
21920         Fix recently-introduced typo.
21922 2017-09-02  Paul Eggert  <eggert@cs.ucla.edu>
21924         glob: don't save and restore errno unnecessarily
21925         * lib/glob.c (glob): Don't save and restore errno
21926         merely because we have getpwnam_r.
21928         glob: don't assume getpwnam_r
21929         * lib/glob.c (glob): Port recent patches to platforms
21930         lacking getpwnam_r.
21932         scratch_buffer: don’t use private glibc API
21933         Suggested by Florian Weimer in:
21934         http://lists.gnu.org/r/bug-gnulib/2017-09/msg00004.html
21935         * lib/scratch_buffer.h: Rename to lib/malloc/scratch_buffer.h.
21936         * lib/scratch_buffer_grow.c: Rename to
21937         lib/malloc/scratch_buffer_grow.c.
21938         * lib/scratch_buffer_grow_preserve.c: Rename to
21939         lib/malloc/scratch_buffer_grow_preserve.c.
21940         * lib/scratch_buffer_set_array_size.c: Rename to
21941         lib/malloc/scratch_buffer_set_array_size.c.
21942         * lib/scratch_buffer.h: New file.
21943         * modules/scratch_buffer (Files, Makefile.am):
21944         Adjust to source-file renaming.
21946 2017-09-01  Paul Eggert  <eggert@cs.ucla.edu>
21948         glob: use scratch_buffer instead of extend_alloca
21949         Much of the lib/glob.c part of this patch comes from a glibc patch
21950         proposed by Adhemerval Zanella in:
21951         https://sourceware.org/ml/libc-alpha/2017-08/msg00456.html
21952         * lib/glob.c: Do not include <config.h>, since <libc-config.h>,
21953         included via glob.h, does this for us now.
21954         (__set_errno): Remove, as libc-config does this for us now.
21955         Include <scratch_buffer.h>.
21956         (GETPW_R_SIZE_MAX): Remove.
21957         (glob): Use struct scratch_buffer instead of extend_alloca.
21958         * lib/glob.in.h: Include libc-config.h rather than
21959         including <sys/cdefs.h> conditionally.
21960         (__BEGIN_DECLS, __END_DECLS, __THROW, __THROWNL, attribute_hidden)
21961         (__glibc_unlikely, __restrict, weak_alias):
21962         Remove, as libc-config does this for us now.
21963         * m4/glob.m4 (gl_PREREQ_GLOB):
21964         Remove sys/cdefs.h tests; no longer needed.
21965         * modules/glob (Depends-on): Add libc-config, scratch_buffer.
21966         (glob.h): Do not replace HAVE_SYS_CDEFS_H.
21968         scratch_buffer: new module
21969         * lib/scratch_buffer.h, lib/scratch_buffer_grow.c:
21970         * lib/scratch_buffer_grow_preserve.c:
21971         * lib/scratch_buffer_set_array_size.c:
21972         New files, copied from glibc with very minor changes that can be
21973         copied back.
21974         * modules/scratch_buffer: New file.
21976         libc-config: new module
21977         * MODULES.html.sh: Add libc-config.
21978         * lib/cdefs.h: New file, copied from the GNU C Library with very
21979         minor changes that can be copied back.
21980         * lib/libc-config.h, modules/libc-config: New files.
21982 2017-08-31  Paul Eggert  <eggert@cs.ucla.edu>
21984         glob: match dangling symlinks
21985         This fixes a bug I inadvertently introduced to Gnulib when I
21986         merged glibc glob back into gnulib on 2007-10-16.  This fix is
21987         inspired by a patch proposed for glibc by Adhemerval Zanella in:
21988         https://sourceware.org/ml/libc-alpha/2017-08/msg00446.html
21989         * doc/posix-functions/glob.texi: Update list of affected platforms.
21990         * lib/glob.c (__lstat64): New macro.
21991         (is_dir): New function.
21992         (glob, glob_in_dir): Match symlinks even if they are dangling.
21993         (link_stat, link_exists_p): Remove.  All uses removed.
21994         * lib/glob.in.h (__attribute_noinline__): Remove; no longer used.
21995         * m4/glob.m4 (gl_PREREQ_GLOB): Do not check for fstatat.
21996         * modules/glob-tests (Depends-on): Add symlink.
21997         * tests/test-glob.c: Include errno.h, unistd.h.
21998         (BASE): New macro.
21999         (main): Test dangling symlinks, if symlinks are supported.
22001         glob, backupfile: inode 0 is a valid inode number
22002         * doc/posix-functions/readdir.texi (readdir):
22003         * doc/posix-headers/dirent.texi (dirent.h):
22004         Document more readdir portability issues.
22005         * lib/backupfile.c (REAL_DIR_ENTRY): Remove.
22006         (numbered_backup): Don’t treat inode 0 any differently from
22007         other inode values.
22008         * lib/glob.c (struct readdir_result): Remove skip_entry member.
22009         (readdir_result_skip_entry, D_INO_TO_RESULT): Remove.
22010         All uses removed.
22011         * modules/glob (Depends-on): Remove d-ino.
22013         glob: simplify symlink detection
22014         * lib/glob.c (dirent_type): New type.  Use uint_fast8_t not
22015         uint8_t, as C99 does not require uint8_t.
22016         (struct readdir_result): Use it.  Do not define skip_entry unless
22017         it is needed; this saves a byte on platforms lacking d_ino.
22018         (readdir_result_type, readdir_result_skip_entry):
22019         New functions, replacing ...
22020         (readdir_result_might_be_symlink, readdir_result_might_be_dir):
22021         ... these functions, which were removed.  This makes the callers
22022         easier to read.  All callers changed.
22023         (D_INO_TO_RESULT): Now empty if there is no d_ino.
22025 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22027         fts-tests: tag as a longrunning-test so not included by default
22028         * modules/fts-tests: This test takes about 20s on current systems,
22029         and uses about 285M of space on ext4.
22031 2017-08-30  Pádraig Brady  <P@draigBrady.com>
22033         renameat2: fix compilation on alpine linux
22034         * m4/renameat.m4: Check for <linux/fs.h> presence.
22035         * lib/renameat2.h: Only include <linux/fs.h> if present.
22036         Reported by Assaf Gordon on Alpine Linux.
22038 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22040         glob: try to port recent changes to MS-Windows
22041         Problem reported by Bruno Haible in:
22042         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00170.html
22043         * lib/glob.c (__glob_pattern_p) [!_LIBC]: Move from here ...
22044         * lib/glob.in.h (__glob_pattern_p): ... to here.
22046 2017-08-24  Eric Blake  <eblake@redhat.com>
22048         warnings: fix compilation with old autoconf
22049         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C))
22050         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): Use m4_defun rather than
22051         AC_DEFUN.
22052         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C))
22053         (gl_MANYWARN_ALL_GCC(C++)): Likewise.
22055 2017-08-24  Bruno Haible  <bruno@clisp.org>
22057         glob: Fix compilation error on NetBSD 7.0 and OpenBSD 6.0.
22058         * modules/glob (Depends-on): Add c99.
22060 2017-08-24  Paul Eggert  <eggert@cs.ucla.edu>
22062         glob: fix typo that broke platforms lacking d_ino
22063         This typo also hurt performance on GNU/Linux and similar hosts.
22064         * lib/glob.c (D_INO_TO_RESULT): Fix typo (reversed ifdef)
22065         in previous change.
22067 2017-08-23  Paul Eggert  <eggert@cs.ucla.edu>
22069         glob: merge from glibc with Zanella glob changes
22070         Merge glob from glibc, with changes for glob proposed
22071         by Adhemerval Zanella in the thread starting here:
22072         https://sourceware.org/ml/libc-alpha/2017-08/msg01079.html
22073         plus some fixes for this merge.
22074         * lib/glob_internal.h, lib/glob_pattern_p.c, lib/globfree.c:
22075         New files, ported from glibc.
22076         * lib/glob-libc.h (_Restrict_): Remove.  All uses replaced
22077         with __restrict.
22078         (__size_t): Remove.  All uses replaced by size_t.
22079         (size_t): Define by defining __need_size_t and including <stddef.h>.
22080         This should work even in non-glibc platforms, where any name
22081         pollution is OK.
22082         Use __USE_MISC instead of __USE_BSD || __USE_GNU.
22083         (struct stat64): Don’t worry about __GLOB_GNULIB.
22084         (glob, globfree, glob_pattern_p): Remove macros for
22085         __USE_FILE_OFFSET64 && __GNUC__ < 2 && !defined __GLOB_GNULIB
22086         case.  Remove _GL_ARG_NONNULL as GNU behavior is to accept NULL
22087         but set errno.
22088         * lib/glob.c (_GL_ARG_NONNULL) [!_LIBC]: Remove.  All uses
22089         removed since the glibc behavior works on null pointers.
22090         Do not include stdio.h; old SunOS is irrelevant now.
22091         Do not worry about GLOB_ONLY_P as we now mimic glibc here.
22092         Include glob_internal.h.
22093         (D_INO_TO_RESULT): Depend on (_LIBC || D_INO_IN_DIRENT), not
22094         ((POSIX || WINDOWS32) && !__GNU_LIBRARY__).  The latter probably
22095         worked only coincidentally.
22096         (attribute_hidden, __attribute_noinline__, __glibc_unlikely):
22097         Remove macros; now done in glob.in.h.
22098         (size_add_wrapv): Do not use __builtin_add_overflow if __ICC.
22099         (glob): Properly initialize glob structure with
22100         GLOB_BRACE|GLOB_DOOFFS (bug 20707).
22101         Remove old code using SHELL since Bash no longer
22102         uses this.
22103         (glob, prefix_array): Separate MS code better.
22104         (glob, glob_in_dir): Use C99 decls before statements when glibc
22105         does.
22106         (glob_in_dir): Remove old Amiga and VMS code.
22107         (globfree, __glob_pattern_type, __glob_pattern_p): Move to
22108         separate files.
22109         * lib/glob.in.h (attribute_hidden, __attribute_noinline__)
22110         (__glibc_unlikely):
22111         Move here from glob.c.
22112         (__restrict): New macro here, replacing the _Restrict_ in glob.c.
22113         (weak_alias): New macro.
22114         (__size_t): Remove.  All uses replaced by size_t.
22115         * modules/d-ino (License): Now LGPLv2+, for compatibility with glob.
22116         * modules/glob (Files): Add +lib/glob_internal.h,
22117         lib/glob_pattern_p.c, lib/globfree.c.
22118         (Depends-on): Remove snippet/arg-nonnull.
22120 2017-08-22  Paul Eggert  <eggert@cs.ucla.edu>
22122         glob: port to clang's Undefined Sanitizer
22123         Problem reported by Tim Rühsen in:
22124         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00144.html
22125         * lib/glob.c (FLEXIBLE_ARRAY_MEMBER) [_LIBC]: Define to empty.
22126         (glob_in_dir): Do not rely on undefined behavior in accessing
22127         struct members beyond their bounds.  Use a flexible array member
22128         instead.
22130 2017-08-21  Paul Eggert  <eggert@cs.ucla.edu>
22132         vc-list-files: port to Solaris 10
22133         * build-aux/vc-list-files: Don't assume test -e works.
22135 2017-08-21  Karl Berry  <karl@freefriends.org>
22137         * doc/posix-functions/srandom.texi (srandom): typo }.
22139 2017-08-20  Paul Eggert  <eggert@cs.ucla.edu>
22141         git-version-gen: port to Solaris 10
22142         Problem reported by Dagobert Michelsen in:
22143         http://lists.gnu.org/r/grep-devel/2017-08/msg00002.html
22144         * build-aux/git-version-gen (v_from_git):
22145         Use expr instead of shell substitution.
22147 2017-08-19  Bruno Haible  <bruno@clisp.org>
22149         host-cpu-c-abi: Improve detection of MIPS ABI.
22150         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, test the value of
22151         _MIPS_SIM.
22153 2017-08-17  Bruno Haible  <bruno@clisp.org>
22155         hypot tests: Fix test failure on FreeBSD 11.0/x86.
22156         * tests/test-hypot.h (test_function): Declare z as 'volatile'.
22158 2017-08-17  Bruno Haible  <bruno@clisp.org>
22160         float: Fix LDBL_MIN value on FreeBSD/x86.
22161         * lib/float.in.h (LDBL_MIN) [__FreeBSD__]: Add more precision.
22163 2017-08-17  Bruno Haible  <bruno@clisp.org>
22165         random: Fix test compilation failure on Cygwin 1.5.25.
22166         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_INITSTATE,
22167         HAVE_DECL_SETSTATE.
22168         * m4/random.m4 (gl_FUNC_RANDOM): Test whether initstate and setstate are
22169         declared.
22170         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_INITSTATE,
22171         HAVE_DECL_SETSTATE.
22172         * lib/stdlib.in.h (initstate): Declare also if HAVE_DECL_INITSTATE is 0.
22173         (setstate): Declare also if HAVE_DECL_SETSTATE is 0.
22174         * doc/posix-functions/initstate.texi: Mention the Cygwin 1.5.x problem.
22175         * doc/posix-functions/random.texi: Likewise.
22176         * doc/posix-functions/setstate.texi: Likewise.
22177         * doc/posix-functions/srandom.texi: Likewise.
22179 2017-08-16  Bruno Haible  <bruno@clisp.org>
22181         stdnoreturn: Fix test compilation failure on Cygwin.
22182         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): On Cygwin, use gnulib's
22183         <stdnoreturn.h> replacement.
22184         * lib/stdnoreturn.in.h (noreturn): Treat Cygwin like MSVC.
22185         * doc/posix-headers/stdnoreturn.texi: Mention the Cygwin problem.
22187 2017-08-16  Bruno Haible  <bruno@clisp.org>
22189         thread: Fix conflict with pthread_sigmask module.
22190         * lib/glthread/thread.h (pthread_sigmask): Don't declare it weak if
22191         it's defined as a macro.
22192         * modules/thread (Depends-on): Add pthread_sigmask.
22194 2017-08-16  Paul Eggert  <eggert@cs.ucla.edu>
22196         rename: port better to NetBSD
22197         * doc/posix-functions/rename.texi (rename): NetBSD 7
22198         does not have the link-count bug.
22199         * m4/rename.m4 (gl_FUNC_RENAME): Don’t consider NetBSD to be
22200         broken merely because rename ("a", "b") removes "a" when the two
22201         names are hard links to the same file.
22203 2017-08-16  Bruno Haible  <bruno@clisp.org>
22205         iconv_open, uni*: Add support for VPATH builds with OpenBSD 'make'.
22206         * modules/iconv_open (Makefile.am): In the rules that use gperf, prefix
22207         the target file names with '$(srcdir)/'.
22208         * modules/unicase/locale-language (Makefile.am): Likewise.
22209         * modules/unicase/special-casing (Makefile.am): Likewise.
22210         * modules/unictype/bidiclass-byname (Makefile.am): Likewise.
22211         * modules/unictype/category-byname (Makefile.am): Likewise.
22212         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
22213         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
22214         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
22215         * modules/unictype/property-byname (Makefile.am): Likewise.
22216         * modules/unictype/scripts (Makefile.am): Likewise.
22217         * modules/uninorm/composition (Makefile.am): Likewise.
22219 2017-08-16  Bruno Haible  <bruno@clisp.org>
22221         nonblocking-socket tests: Fix failure on OpenBSD 6.0.
22222         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE): Increase
22223         value for OpenBSD.
22225 2017-08-16  Bruno Haible  <bruno@clisp.org>
22227         rename, renameat: Update doc regarding NetBSD.
22228         * doc/posix-functions/rename.texi: Clarify that when using
22229         -D_XOPEN_SOURCE=500 on NetBSD 7.0, the hard link bug is gone.
22230         * doc/posix-functions/renameat.texi: Be more precise about NetBSD
22231         version.
22233 2017-08-15  Paul Eggert  <eggert@cs.ucla.edu>
22235         renameat2: port better to macOS
22236         * lib/renameat2.c (renameat2): Use renameatx_np if available.
22238         futimens: don’t assume struct timespec layout
22239         * m4/futimens.m4 (gl_FUNC_FUTIMENS):
22240         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT):
22241         * tests/test-fdutimensat.c (main):
22242         * tests/test-futimens.h (test_futimens):
22243         * tests/test-lutimens.h (test_lutimens):
22244         * tests/test-utimens.h (test_utimens):
22245         * tests/test-utimensat.c (main):
22246         Don’t assume that struct timespec is a two-member structure in
22247         tv_sec, tv_nsec order.  Although this is true on all platforms we
22248         know about, POSIX does not guarantee it.
22250         rename: document+test NetBSD rename
22251         Test failure reported by Bruno Haible in:
22252         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00104.html
22253         This is an area where NetBSD is better-behaved than POSIX,
22254         so allow the NetBSD behavior in tests.
22255         * doc/posix-functions/rename.texi:
22256         * doc/posix-functions/renameat.texi: Document NetBSD behavior.
22257         * tests/test-rename.h (test_rename): Allow NetBSD behavior.
22259 2017-08-15  Bruno Haible  <bruno@clisp.org>
22261         renameat: Ensure declaration in <stdio.h> on NetBSD.
22262         * lib/stdio.in.h: Include <unistd,h> also on NetBSD.
22263         * doc/posix-functions/renameat.texi: Mention this problem.
22265 2017-08-15  Bruno Haible  <bruno@clisp.org>
22267         duplocale: Work around NetBSD 7.0 bug.
22268         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Test against the NetBSD 7.0 bug.
22269         * lib/duplocale.c: Add comment about NetBSD problem.
22270         * doc/posix-functions/duplocale.texi: Mention the NetBSD problem.
22272 2017-08-15  Bruno Haible  <bruno@clisp.org>
22274         duplocale tests: Verify use with *_l functions.
22275         * modules/duplocale-tests (configure.ac): Test for uselocale and
22276         some *_l functions.
22277         * tests/test-duplocale.c (test_with_uselocale): New function, extracted
22278         from main.
22279         (get_locale_dependent_values_from, test_with_locale_parameter): New
22280         functions.
22281         (main): Test both test_with_uselocale and test_with_locale_parameter.
22283 2017-08-15  Bruno Haible  <bruno@clisp.org>
22285         extensions: Enable NetBSD specific extensions.
22286         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _NETBSD_SOURCE.
22288 2017-08-14  Bruno Haible  <bruno@clisp.org>
22290         open, openat: Update doc about O_CLOEXEC.
22291         * doc/posix-functions/open.texi: More concrete list of platforms.
22292         * doc/posix-functions/openat.texi: Likewise.
22294 2017-08-14  Paul Eggert  <eggert@cs.ucla.edu>
22296         open: support O_CLOEXEC
22297         * NEWS, doc/posix-functions/open.texi:
22298         * doc/posix-functions/openat.texi: Document this.
22299         * lib/fcntl.in.h (O_CLOEXEC): Default to a nonzero value.
22300         (GNULIB_defined_O_CLOEXEC): New symbol.
22301         * lib/open.c: Include cloexec.h.
22302         (open): Support O_CLOEXEC.
22303         * lib/openat.c: Include cloexec.h.
22304         (rpl_openat): Support O_CLOEXEC.
22305         * lib/popen-safer.c: Do not include cloexec.h.
22306         (open_noinherit): Remove.
22307         (popen_safer): Use O_CLOEXEC instead of set_cloexec_flag.
22308         * lib/save-cwd.c: Do not include cloexec.h.
22309         (save_cwd): Use O_CLOEXEC instead of set_cloexec_flag.
22310         * m4/open-cloexec.m4: New file.
22311         * m4/open.m4 (gl_FUNC_OPEN): Require gl_PREPROC_O_CLOEXEC.
22312         Replace 'open' if O_CLOEXEC is not present.
22313         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_PREPROC_O_CLOEXEC.
22314         Replace 'openat' if O_CLOEXEC is not present.
22315         * modules/freopen (Depends-on): Depend on 'open' if replacing freopen.
22316         * modules/open (Files): Add m4/open-cloexec.m4.
22317         (Depends-on): Depend on cloexec if replacing 'open'.
22318         * modules/openat (Files): Add m4/open-cloexec.m4.
22319         (Depends-on): Depend on cloexec if replacing openat.
22320         * modules/popen-safer (Depends-on): Remove cloexec.
22321         * modules/save-cwd (Depends-on): Remove cloexec, and add
22322         fd-safer-flag and 'open'.
22324 2017-08-13  Paul Eggert  <eggert@cs.ucla.edu>
22326         reallocarray: minor fixes
22327         * doc/glibc-functions/reallocarray.texi: Update version numbers.
22328         * m4/reallocarray.m4 (gl_FUNC_REALLOCARRAY): Don't trust _cv_ contents.
22329         * modules/reallocarray (License): Change from GPL to LGPL.
22330         * tests/test-reallocarray.c (main): Fix ENOMEM typo.
22331         Indent properly and don't use tabs.
22333 2017-08-13  Darshit Shah  <darnir@gnu.org>
22335         reallocarray: New module
22336         reallocarray is a new function in glibc 2.26 to safely allocate an array
22337         of memory locations with integer overflow protection.
22338         * MODULES.html.sh: Add reallocarray.
22339         * doc/glibc-functions/reallocarray.texi: Documentation for reallocarray.
22340         * lib/reallocarray.c: New file to implement module reallocarray.
22341         * lib/stdlib.in.h: Add function declarations for reallocarray.
22342         * m4/reallocarray.m4: New file.
22343         * m4/stdlib_h.m4: Declare reallocarray.
22344         * modules/reallocarray: New file.
22345         * modules/reallocarray-test: New file.
22346         * modules/stdlib: Coerce stdlib.h to export reallocarray.
22347         * tests/test-reallocarray.c: New test.
22349 2017-08-12  Paul Eggert  <eggert@cs.ucla.edu>
22351         dirent-safer: fix cloexec race
22352         * lib/opendir-safer.c: Include fcntl.h instead of unistd-safer.h.
22353         (opendir_safer): Use F_DUPFD_CLOEXEC.
22354         * modules/dirent-safer (Depends-on): Add fcntl.  Remove unistd-safer.
22355         * tests/test-dirent-safer.c: Do not include unistd-safer.h,
22356         as it is no longer a prerequisite.  Use F_DUPFD_CLOEXEC
22357         instead of dup_safer.
22359         fts: fix cloexec races
22360         * lib/fts.c [!_LIBC]: Do not include dirent--.h, unistd--.h, cloexec.h.
22361         (opendirat, diropen): Use O_CLOEXEC instead of set_cloexec_flag.
22362         (fts_build): Use F_DUPD_CLOEXEC rinstad of set_cloexec_flag.
22363         (fd_ring_check): Set cloexec flag on new file descriptors.
22364         (fts_build, fd_ring_check): While we’re at it, make sure the
22365         resulting file descriptor is not 0, 1, or 2, since that is easy.
22367 2017-08-11  Bruno Haible  <bruno@clisp.org>
22369         fts tests: Fix link error.
22370         Reported by Tom G. Christensen in
22371         https://lists.gnu.org/r/bug-gnulib/2017-08/msg00078.html
22372         * modules/fts-tests (Makefile.am): Link test-fts against LIBINTL.
22374 2017-08-10  Paul Eggert  <eggert@cs.ucla.edu>
22376         fts: port recent changes to CentOS 6
22377         Problem reported by Tom G. Christensen in:
22378         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00064.html
22379         * lib/fts.c (fsword): New type.
22380         (struct dev_type, filesystem_type): Use it.
22381         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for __fsword_t.
22382         Also, check for f_type only if fstatfs and sys/vfs.h work.
22384 2017-08-09  Paul Eggert  <eggert@cs.ucla.edu>
22386         tempname: do not depend on secure_getenv
22387         Excess dependency noted by Eli Zaretskii (Bug#28023#17).
22388         * lib/tempname.c (__secure_getenv) [!_LIBC]: Remove; unused.
22389         * modules/tempname (Depends-on): Remove secure_getenv.
22391 2017-08-08  Paul Eggert  <eggert@cs.ucla.edu>
22393         extensions: add _OPENBSD_SOURCE
22394         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _OPENBSD_SOURCE.
22396 2017-08-06  Reuben Thomas  <rrt@sc3d.org>
22397             Bruno Haible  <bruno@clisp.org>
22399         manywarnings: Add support for C++.
22400         * build-aux/g++-warning.spec: New file.
22401         * m4/manywarnings-c++.m4: New file.
22402         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC(C++)): New macro, that
22403         redirects to manywarnings-c++.m4.
22404         * modules/manywarnings (Files): Add m4/manywarnings-c++.m4.
22406 2017-08-06  Paul Eggert  <eggert@cs.ucla.edu>
22408         git-version-gen: another fix for tags with "-"
22409         * build-aux/git-version-gen: Improve fix for tags containing "-".
22410         Suggested by Markus Armbruster in:
22411         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00034.html
22413 2017-08-06  Bruno Haible  <bruno@clisp.org>
22415         warnings, manywarnings: Add support for multiple languages, not just C.
22416         * warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS_IMPL): Renamed from
22417         gl_UNKNOWN_WARNINGS_ARE_ERRORS.
22418         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C)): New macro.
22419         (gl_UNKNOWN_WARNINGS_ARE_ERRORS(C++)): New macro.
22420         (gl_UNKNOWN_WARNINGS_ARE_ERRORS): Dispatch to
22421         gl_UNKNOWN_WARNINGS_ARE_ERRORS(_AC_LANG).
22422         (gl_WARN_ADD): Require the gl_UNKNOWN_WARNINGS_ARE_ERRORS specialization
22423         of the current language. If C++ is the current language, modify
22424         WARN_CXXFLAGS instead of WARN_CFLAGS.
22425         * manywarnings.m4 (gl_MANYWARN_ALL_GCC(C)): New macro, extracted from
22426         gl_MANYWARN_ALL_GCC.
22427         (gl_MANYWARN_ALL_GCC): Dispatch to gl_MANYWARN_ALL_GCC(_AC_LANG).
22429 2017-08-06  Markus Armbruster  <armbru@pond.sub.org>
22431         git-version-gen: Fix for tags containing '-'
22433         Really old versions of git-describe (before v1.5.0, Feb 2007)
22434         don't have the number of commits in their long format output,
22435         i.e. where modern 'git describe --abbrev=4 --match="v*"' prints
22436         "v0.1-1494-g124b9", they print "v0.1-1494-g124b9".  git-version-gen
22437         recognizes both patterns, and normalizes the old format to the new one.
22439         Unfortunately, this normalization code gets confused when the tag
22440         contains '-'.  Reproducer:
22442             $ git-tag -m test v0.2-rc1
22443             $ build-aux/git-version-gen .tarball-version; echo
22444             build-aux/git-version-gen: WARNING: git rev-list failed
22445             UNKNOWN
22447         We take exact tag "v0.2-rc1" for the old format, extract the presumed
22448         tag "v0.2" from it, then run "git rev-list v0.2..HEAD" to count
22449         commits since tha tag.  Fails, because tag "v0.2" does not exist.
22451         * git-version-gen: We could perhaps drop support for versions from
22452         more than a decade ago.  But tightening the pattern match is easy
22453         enough, so do that.  Still breaks when you use version tags ending in
22454         something matching -g????, but you arguably get what you deserve then.
22456 2017-08-05  Paul Eggert  <eggert@cs.ucla.edu>
22458         valgrind-tests: use ls, and cache
22459         * m4/valgrind-tests.m4: Test ls, not bash.
22460         Problem reported by Reuben Thomas.
22461         Also, cache the result so that it can be overridden.
22463 2017-08-04  Paul Eggert  <eggert@cs.ucla.edu>
22465         manywarnings: port to 64-bit GCC builds of Emacs
22466         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Compute max safe
22467         object size rather than hardwiring 2147483647.  This is needed to
22468         build GNU Emacs, which has one conditional (and used
22469         only-in-theory) call to malloc with a literal greater than
22470         2147483647.
22472 2017-08-04  Bruno Haible  <bruno@clisp.org>
22474         Relax the license of some modules with no runtime code.
22475         * modules/std-gnu11 (License): Set to 'unlimited'.
22476         * modules/c99 (License): Likewise.
22477         Reported by Reuben Thomas <rrt@sc3d.org>.
22478         * modules/d-ino (License): Set to 'LGPL'.
22479         * modules/host-os (License): Likewise.
22480         * modules/longlong (License): Likewise.
22482 2017-08-03  Paul Eggert  <eggert@cs.ucla.edu>
22484         renameat2: port to RHEL 7 + NFS
22485         * lib/renameat2.c (renameat2) [SYS_renameat2]:
22486         Port to RHEL 7 + NFS.  Problem reported by Ted Zlatanov in:
22487         http://lists.gnu.org/r/emacs-devel/2017-08/msg00082.html
22489 2017-08-02  Paul Eggert  <eggert@cs.ucla.edu>
22491         renameat2: port to non-renameat platforms
22492         Problem reported for MSVC-2015 by Gisle Vanem in:
22493         http://lists.gnu.org/r/bug-gnulib/2017-08/msg00001.html
22494         * lib/renameat2.c [!HAVE_RENAMEAT]: Include <sys/stat.h> here too.
22495         (renameat2) [!HAVE_RENAMEAT]: Fix typo in arg passing.
22497 2017-08-01  Paul Eggert  <eggert@cs.ucla.edu>
22499         manywarnings: port to 32-bit GCC bug
22500         Problem reported by Pino Toscano in:
22501         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00150.html
22502         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Use 2**31 - 1,
22503         not 2**63 - 1, to work around the following GCC bug:
22504         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81650
22506 2017-07-30  Paul Eggert  <eggert@cs.ucla.edu>
22508         backupfile: new function to validate backup suffix
22509         * lib/backupfile.c (set_simple_backup_suffix): New function.
22510         (backupfile_internal): Use it.
22512         canonicalize: fix EOVERFLOW commentary
22513         Problem reported by Bruno Haible in:
22514         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00147.html
22515         * lib/canonicalize.c (canonicalize_filename_mode):
22516         * lib/canonicalize-lgpl.c (__realpath): Fix comments.
22518         Don't interpret EOVERFLOW to mean nonexistence
22519         * lib/fts.c (fts_stat): If lstat fails, report its errno, which
22520         may be EOVERFLOW; this is likely more useful than reporting the
22521         stat errno.
22522         * lib/glob.c (link_stat): Rename from link_exists2_p and
22523         return -1/0 instead of 0/1.  Caller changed.
22524         * lib/glob.c (link_exists_p):
22525         * lib/renameat2.c (rename_noreplace, renameat2):
22526         * lib/tempname.c (try_nocreate):
22527         If errno == EOVERFLOW then the directory entry exists, so do not
22528         act as if it does not exist.
22530         backup-rename: new module
22531         It is like backupfile, except it avoids some race conditions,
22532         and it does not output to stderr or exit.
22533         * MODULES.html.sh: Add backup-rename.
22534         * lib/backup-find.c, lib/backup-internal.h, lib/backup-rename.c:
22535         * modules/backup-rename: New files.
22536         * lib/backupfile.c: Turn this into an internals file, which
22537         contains code common to backupfile and backup_rename.  Include
22538         backupfile-internal.h instead of backupfile.h.  Do not include
22539         argmatch.h or xalloc.h: include xalloc-oversized.h.  Include
22540         renameat2.h and fcntl.h.
22541         (BACKUP_NOMEM): New constant.
22542         (numbered_backup): New args BASE_OFFSET and *DIRPP.  Do not exit
22543         on memory exhaustion; just return BACKUP_NOMEM.  Caller changed.
22544         (backupfile_internal): Rename from find_backup_file_name.
22545         Support new arg RENAME.
22546         (backup_args, backup_types, get_version, xget_version):
22547         Move to lib/backup-find.c.
22548         * lib/backupfile.h (backup_file_rename): New decl.
22549         * modules/backupfile (Files): Add lib/backup-internal.h,
22550         lib/backup-find.c.
22551         (Depends-on): Add dirfd, fcntl, renameat2.
22552         (lib_SOURCES): Add backup-find.c.
22554         renameat2: port better to older Solaris
22555         * lib/renameat2.c (renameat2): Set ret_val properly on old Solaris.
22556         Add goto to use a label, to silence picky compilers.
22558         fts-tests: port to gcc -Wwrite-strings
22559         * tests/test-fts.c (base, base_d): New static vars.
22560         (argv, remove_tree, main): Use them.
22562 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22564         relocatable-lib{,-lgpl}: improve documentation
22565         * doc/relocatable-maint.texi: Document use of relocatable-lib{,-lgpl}.
22566         Various other updates.
22568 2017-07-30  Reuben Thomas  <rrt@sc3d.org>
22569             Bruno Haible  <bruno@clisp.org>
22571         relocatable-lib{,-lgpl}: add Valgrind suppressions
22572         * lib/relocatable.valgrind: New file.
22573         * modules/relocatable-lib (Files): Add relocatable.valgrind.
22574         * modules/relocatable-lib-lgpl: Likewise.
22576 2017-07-26  Reuben Thomas  <rrt@sc3d.org>
22578         relocatable: Make the license on the sources the GPL.
22579         * lib/relocatable.h, lib/relocatable.c: Change the copyright notice from
22580         LGPL, which was a special case so that the relocatable source files
22581         could be used without gnulib-tool, to GPL. They can still be used under
22582         the LGPL, using the --lgpl option to gnulib-tool.
22584 2017-07-30  Bruno Haible  <bruno@clisp.org>
22586         host-cpu-c-abi: Detect ILP32 ABI on IA-64 HP-UX.
22587         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Distinguish ia64-ilp32
22588         from ia64. For arm64, test only __aarch64__, as __ARM_64BIT_STATE and
22589         __ARM_PCS_AAPCS64 are not reliable indicators: they are not defined on
22590         Ubuntu 14.04 (gcc 4.8.4) and Debian 8 (gcc 4.9.2).
22592 2017-07-27  Paul Eggert  <eggert@cs.ucla.edu>
22594         faccessat: document AT_SYMLINK_NOFOLLOW issue
22595         * doc/posix-functions/faccessat.texi: Modernize platform list.
22596         Document AT_SYMLINK_NOFOLLOW limitation.
22598         renameat2: port to Solaris 10
22599         * lib/renameat2.c (rename_noreplace): Use lstat, not faccessat
22600         with AT_SYMLINK_NOFOLLOW (which is not portable).
22601         (renameat): Undef before using, to avoid endless recursion when
22602         the replacement renameat calls renameat2 which calls the
22603         replacement renameat.
22604         (renameat2): Use lstatat, not faccessat with AT_SYMLINK_NOFOLLOW.
22605         * modules/renameat2 (Depends-on): Remove faccessat.
22606         * modules/renameat-tests (test_renameat_LDADD):
22607         * modules/renameat2-tests (test_renameat2_LDADD):
22608         Remove $(LIB_EACCESS).
22610         renameat2: new module
22611         Although the Linux syscall renameat2 is not in glibc (yet?), it is
22612         useful to have access to its RENAME_NOREPLACE flag.
22613         * MODULES.html.sh (func_all_modules): Add renameat2.
22614         * lib/renameat2.c, lib/renameat2.h, modules/renameat2:
22615         * modules/renameat2-tests, tests/test-renameat2.c: New files.
22616         * lib/renameat.c (renameat): Move most of the implementation
22617         to renameat2, and just call renameat2.
22618         * modules/renameat (Files): Remove lib/at-func2.c.
22619         (Depends-on): Depend only on renameat2.
22620         (Include): Remove <fcntl.h>.
22621         * modules/renameat-tests (test_renameat_LDADD): Add $(LIB_EACCESS),
22622         since renameat (via renameat2) might use faccessat.
22624 2017-07-27  Erik Skultety <eskultet@redhat.com>  (tiny change)
22626         vc-list-files: Adjust the script to support git worktrees
22627         * build-aux/vc-list-files: Require existence, not directory.
22629 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22631         doc: bring MODULES.html.sh up to date
22632         Somehow a few months ago we stopped updating MODULES.html.sh.
22633         I don’t recall explicitly deciding this, so I updated it now.
22634         Alternatively I suppose we could remove it.
22635         * MODULES.html.sh: Add builtin-expect, c99, ctime, explicit_bzero,
22636         localtime, localtime-buffer, noreturn, nstrftime, strftime-fixes,
22637         truncate, utime, utime-h, windows-stat-inodes,
22638         windows-stat-override, windows-stat-timespec, year2038.  Sort.
22640 2017-07-26  Jim Meyering  <meyering@fb.com>
22642         fprintftime: fix build-break caused by recent renaming
22643         * lib/fprintftime.c: Include "nstrftime.c", not the now-renamed
22644         "strftime.c".
22645         * modules/fprintftime: Depend directly on nstrftime.
22647 2017-07-26  Paul Eggert  <eggert@cs.ucla.edu>
22649         regex: work with GCC7's -Werror=implicit-fallthrough=
22650         * lib/regex_internal.h (FALLTHROUGH): New macro.
22651         * lib/regcomp.c (peek_token_bracket, parse_expression):
22652         * lib/regexec.c (check_node_accept): Use it.
22654 2017-07-24  Paul Eggert  <eggert@cs.ucla.edu>
22656         fts: simplify fts_build
22657         * lib/fts.c (fts_build): Simplify, and be lazier about
22658         calling leaf_optimization.
22660         fts: three levels of leaf optimization
22661         * lib/fts.c (enum leaf_optimization): New type with three values.
22662         (S_MAGIC_AFS): New macro.  Sort them.
22663         (leaf_optimization): Rename from leaf_optimization_applies, and
22664         return enum leaf_optimization instead of bool.  All uses changed.
22665         Add cases for unknown type and for AFS.
22666         (fts_build): Don’t rely on link counts if NO_LEAF_OPTIMIZATION.
22668         fts: cache dirent_inode_sort_may_be_useful too
22669         * lib/fts.c (struct dev_type): New struct.
22670         (DEV_TYPE_HT_INITIAL_SIZE): New constant.
22671         (dev_type_hash, dev_type_compare, filesystem_type): New functions.
22672         (dirent_inode_sort_may_be_useful, leaf_optimization_applies):
22673         Now takes FTSENT const *, not int.  All uses changed.  Use
22674         filesystem_type to cache.
22675         (link_count_optimize_ok): Remove.  Caller changed to use
22676         leaf_optimization_applies, which now uses shared cache.
22678         fts: introduce MIN_DIR_NLINK
22679         * lib/fts.c (MIN_DIR_NLINK): New constant.
22680         Use it instead of 2, whenever we are talking about link counts.
22682         fts: nlink_t signedness fixups
22683         * lib/fts.c (fts_open): Set rootparent n_dirs_remaining to -1
22684         so that root need not be a special case later.
22685         (fts_read): Remove now-redundant test for fts_level.
22686         Do not assume that nlink_t is signed.
22687         (fts_build): Remove useless decrement of nlinks.
22688         (fts_stat): Avoid unlikely signed integer overflow later, if
22689         nlink_t is signed.
22691         fts-tests: new module
22692         * modules/fts-tests, tests/test-fts.c: New files.
22694 2017-07-23  Bruno Haible  <bruno@clisp.org>
22696         Rename module 'strftime' to 'nstrftime'.
22697         * m4/nstrftime.m4: Renamed from m4/strftime.m4.
22698         * lib/nstrftime.c: Renamed from lib/strftime.c.
22699         * modules/nstrftime: Renamed from modules/strftime.
22700         (Files, Makefile.am): Update.
22701         * tests/test-nstrftime.c: Renamed from tests/test-strftime.c.
22702         Fix comment.
22703         * modules/nstrftime-tests: Renamed from modules/strftime-tests.
22704         (Files, Makefile.am): Update.
22705         * modules/strftime: New file, an obsolete indirection.
22706         * doc/posix-functions/strftime.texi: Update reference.
22707         * config/srclist.txt: Update info.
22708         * NEWS: Mention the change.
22710 2017-07-21  Tim Rühsen  <tim.ruehsen@gmx.de>
22712         malloca: Silence a warning from clang's memory sanitizer.
22713         * lib/malloca.c (NO_SANITIZE_MEMORY): New macro.
22714         (freea): Use it.
22716 2017-07-18  Bruno Haible  <bruno@clisp.org>
22718         host-cpu-c-abi: Fix detection of MIPS ABI.
22719         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): For MIPS, really test the
22720         ABI, not the CPU instruction set.
22722 2017-07-16  Paul Eggert  <eggert@cs.ucla.edu>
22724         explicit_bzero: new module
22725         The explicit_bzero function has been added to glibc.
22726         This module is intended to supports its use in GNU programs.
22727         * doc/glibc-functions/explicit_bzero.texi, lib/explicit_bzero.c:
22728         * m4/explicit_bzero.m4, modules/explicit_bzero:
22729         New files.
22730         * doc/gnulib.texi (Glibc string.h): Link to new doc.
22731         * lib/string.in.h (explicit_bzero): Declare.
22732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add defaults for it.
22733         * modules/string (string.h): Substitute its vars.
22735 2017-07-16  Bruno Haible  <bruno@clisp.org>
22737         threadlib: Support static linking.
22738         * m4/threadlib.m4 (gl_THREADLIB_BODY): When static linking is in use,
22739         set gl_cv_have_weak to 'no'.
22741 2017-07-16  Bruno Haible  <bruno@clisp.org>
22743         unicase/locale-language: Fix link dependencies.
22744         * modules/unicase/locale-language (Link): New section.
22745         * modules/unicase/locale-language-tests (Makefile.am): Link
22746         test-locale-language program with $(LIBTHREAD).
22748 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22750         sys_socket: Add support for OpenVMS.
22751         * lib/sys_socket.in.h [__VMS]: Define CMSG_SPACE, CMSG_LEN.
22752         * doc/posix-headers/sys_socket.texi: Mention OpenVMS issues.
22754 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22756         sys_resource: Add support for OpenVMS.
22757         * lib/resource.in.h [__VMS]: Define RUSAGE_SELF, RUSAGE_CHILDREN.
22758         * doc/posix-headers/sys_resource.texi: Mention OpenVMS issues.
22760 2017-07-15  John E. Malmberg  <wb8tyw@gmail.com>
22761             Bruno Haible  <bruno@clisp.org>
22763         math: Add support for OpenVMS.
22764         * lib/math.in.h [__VMS]: Include <fp.h>.
22765         * doc/posix-headers/math.texi: Mention OpenVMS issues.
22767 2017-07-15  Bruno Haible  <bruno@clisp.org>
22769         getdtablesize: Add minimal support for OpenVMS.
22770         Reported by John E. Malmberg <wb8tyw@qsl.net>.
22771         * modules/getdtablesize (Description): Fix.
22772         * lib/getdtablesize.c: Fix comment.
22773         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Don't replace the
22774         getdtablesize() function, even though the test fails.
22775         * doc/glibc-functions/getdtablesize.texi: Reference SUSv2. Describe
22776         limitation on OpenVMS.
22778 2017-07-13  Bruno Haible  <bruno@clisp.org>
22780         Revisit cross-compilation guesses.
22781         * m4/wctype_h.m4 (gl_WCTYPE_H): Add comment.
22783 2017-07-13  Bruno Haible  <bruno@clisp.org>
22785         Improve cross-compilation guesses for native Windows.
22786         * m4/btowc.m4 (gl_FUNC_BTOWC): Add cross-compilation guess for native
22787         Windows.
22788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Likewise.
22789         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Likewise.
22790         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
22791         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): Likewise.
22792         * m4/cbrtl.m4 (gl_FUNC_CBRTL, gl_FUNC_CBRTL_WORKS): Likewise.
22793         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
22794         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
22795         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
22796         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22797         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
22798         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22799         * m4/exp2.m4 (gl_FUNC_EXP2_WORKS): Likewise.
22800         * m4/exp2l.m4 (gl_FUNC_EXP2L): Likewise.
22801         * m4/expm1.m4 (gl_FUNC_EXPM1): Likewise.
22802         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): Likewise.
22803         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
22804         * m4/fabsl.m4 (gl_FUNC_FABSL_WORKS): Likewise.
22805         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
22806         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
22807         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
22808         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
22809         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
22810         * m4/fma.m4 (gl_FUNC_FMA_WORKS): Likewise.
22811         * m4/fmaf.m4 (gl_FUNC_FMAF_WORKS): Likewise.
22812         * m4/fmal.m4 (gl_FUNC_FMAL_WORKS): Likewise.
22813         * m4/fmod.m4 (gl_FUNC_FMOD): Likewise.
22814         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
22815         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
22816         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
22817         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): Likewise.
22818         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
22819         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Likewise.
22820         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
22821         * m4/hypotf.m4 (gl_FUNC_HYPOTF, gl_FUNC_HYPOTF_WORKS): Likewise.
22822         * m4/hypotl.m4 (gl_FUNC_HYPOTL, gl_FUNC_HYPOTL_WORKS): Likewise.
22823         * m4/ilogb.m4 (gl_FUNC_ILOGB_WORKS): Likewise.
22824         * m4/ilogbf.m4 (gl_FUNC_ILOGBF_WORKS): Likewise.
22825         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
22826         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
22827         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
22828         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
22829         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
22830         * m4/log.m4 (gl_FUNC_LOG, gl_FUNC_LOG_WORKS): Likewise.
22831         * m4/logf.m4 (gl_FUNC_LOGF, gl_FUNC_LOGF_WORKS): Likewise.
22832         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): Likewise.
22833         * m4/log10.m4 (gl_FUNC_LOG10, gl_FUNC_LOG10_WORKS): Likewise.
22834         * m4/log10f.m4 (gl_FUNC_LOG10F, gl_FUNC_LOG10F_WORKS): Likewise.
22835         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): Likewise.
22836         * m4/log1p.m4 (gl_FUNC_LOG1P): Likewise.
22837         * m4/log1pf.m4 (gl_FUNC_LOG1PF, gl_FUNC_LOG1PF_WORKS): Likewise.
22838         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Likewise.
22839         * m4/log2.m4 (gl_FUNC_LOG2, gl_FUNC_LOG2_WORKS): Likewise.
22840         * m4/log2f.m4 (gl_FUNC_LOG2F, gl_FUNC_LOG2F_WORKS): Likewise.
22841         * m4/log2l.m4 (gl_FUNC_LOG2L_WORKS): Likewise.
22842         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): Likewise.
22843         * m4/logbf.m4 (gl_FUNC_LOGBF_WORKS): Likewise.
22844         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Likewise.
22845         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22846         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT, gl_MBRTOWC_C_LOCALE): Likewise.
22847         * m4/mkdir.m4 (gl_FUNC_MKDIR): Likewise.
22848         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
22849         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): Likewise.
22850         * m4/modf.m4 (gl_FUNC_MODF): Likewise.
22851         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
22852         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
22853         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22854         * m4/perror.m4 (gl_FUNC_PERROR): Likewise.
22855         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
22856         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE,
22857         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2,
22858         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): Likewise.
22859         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
22860         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
22861         * m4/regex.m4 (gl_REGEX): Likewise.
22862         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
22863         * m4/remainderf.m4 (gl_FUNC_REMAINDERF,
22864         gl_FUNC_REMAINDERF_WORKS): Likewise.
22865         * m4/remainderl.m4 (gl_FUNC_REMAINDERL,
22866         gl_FUNC_REMAINDERL_WORKS): Likewise.
22867         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
22868         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22869         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
22870         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
22871         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22872         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
22873         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
22874         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
22875         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): Likewise.
22876         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22877         * m4/strerror.m4 (gl_FUNC_STRERROR_0): Likewise.
22878         * m4/strncat.m4 (gl_FUNC_STRNCAT): Likewise.
22879         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
22880         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
22881         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
22882         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
22883         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
22884         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
22885         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
22886         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22887         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
22888         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22889         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
22890         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
22891         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
22892         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
22893         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
22894         Likewise.
22895         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
22896         * m4/chown.m4 (AC_FUNC_CHOWN): Add cross-compilation guess for native
22897         Windows. Enable also on Autoconf 2.70.
22898         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
22899         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
22900         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
22901         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO,
22902         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
22903         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): Add cross-compilation guess
22904         for native Windows.
22905         (gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
22906         gl_VSNPRINTF_ZEROSIZE_C99): Add comment.
22908 2017-07-13  Bruno Haible  <bruno@clisp.org>
22910         Improve cross-compilation guesses for native Windows.
22911         * m4/memchr.m4 (gl_FUNC_MEMCHR): Add cross-compilation guess for native
22912         Windows.
22913         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Don't use internals of
22914         memchr.m4.
22915         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
22917 2017-07-13  Bruno Haible  <bruno@clisp.org>
22919         Improve cross-compilation guesses for native Windows.
22920         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Add cross-compilation guess for
22921         native Windows.
22922         (gl_FUNC_FFLUSH): Update accordingly.
22923         * m4/fclose.m4 (gl_FUNC_FCLOSE): Likewise.
22924         * m4/fseeko.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
22926 2017-07-11  Bruno Haible  <bruno@clisp.org>
22928         More systematic m4 quoting and indentation.
22929         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Quote systematically.
22930         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
22931         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
22932         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22933         * m4/host-os.m4 (gl_HOST_OS): Likewise.
22934         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H,
22935         gl_WINSIZE_IN_PTEM): Likewise.
22936         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Likewise.
22937         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
22938         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
22939         * m4/fchownat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Quote systematically.
22940         Correct indentation.
22941         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
22942         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
22943         * m4/jm-winsz2.m4 (gl_HEADER_TIOCGWINSZ_NEEDS_SYS_IOCTL): Likewise.
22944         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
22945         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
22946         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
22948 2017-07-10  Bruno Haible  <bruno@clisp.org>
22950         round, roundf: Avoid compiler warning in configure test.
22951         * m4/round.m4 (gl_FUNC_ROUND): Use 'return' instead of exit().
22952         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
22954 2017-07-10  Bruno Haible  <bruno@clisp.org>
22956         getlogin tests: Avoid #ifdefs when sharing code between modules.
22957         * modules/getlogin_r-tests (Files): Add tests/test-getlogin.h.
22958         * modules/getlogin-tests (Files): Likewise. Remove
22959         tests/test-getlogin_r.c.
22960         * tests/test-getlogin.h: Extracted from tests/test-getlogin_r.c.
22961         * tests/test-getlogin.c: Extracted from tests/test-getlogin_r.c.
22962         * tests/test-getlogin_r.c: Include test-getlogin.h. Omit code that tests
22963         getlogin().
22965 2017-07-10  Paul Eggert  <eggert@cs.ucla.edu>
22967         getlogin: don’t assume one name per uid
22968         Problem reported by Wolfgang F. Muthmann (Bug#27640).
22969         * modules/getlogin-tests (Files): Add tests/test-getlogin_r.c.
22970         (ttyname): Remove test.
22971         * modules/getlogin_r-tests (ttyname): Remove test.
22972         * tests/test-getlogin.c: Replace this near-clone of test-getlogin_r.c
22973         with ‘#define TEST_LOGIN’ followed by ‘#include "test-getlogin_r.c"’.
22974         * tests/test-getlogin_r.c: If TEST_GETLOGIN is defined, test
22975         getlogin rather than getlogin_r.  This avoids code duplication.
22976         (main): Use isatty and fstat rather than ttyname and stat.
22977         Use getpwnam instead of getpwuid, to be portable to test platforms
22978         that have multiple login names for the same uid.
22980 2017-07-10  Tim Rühsen  <tim.ruehsen@gmx.de>
22981             Bruno Haible  <bruno@clisp.org>
22983         glob: Fix more memory leaks.
22984         * lib/glob.c (glob): Use 'goto out' in order to free dirname before
22985         returning.
22986         Reported by Tim Rühsen.
22988 2017-07-10  Bruno Haible  <bruno@clisp.org>
22990         Make sure $host and $host_os are defined when used.
22991         * m4/argz.m4 (gl_FUNC_ARGZ): Require AC_CANONICAL_HOST.
22992         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Likewise.
22993         * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
22994         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
22995         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
22996         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
22997         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Likewise.
22998         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
22999         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
23000         * m4/pselect.m4 (gl_FUNC_PSELECT): Likewise.
23001         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Likewise.
23002         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Likewise.
23003         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
23004         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST outside the
23005         m4_ifdef block.
23007 2017-07-09  Bruno Haible  <bruno@clisp.org>
23009         *printf: Fix cross-compilation guess for Solaris.
23010         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): Fix copy-and-paste mistake from
23011         2010-12-21.
23013 2017-07-07  Paul Eggert  <eggert@cs.ucla.edu>
23014             Bruno Haible  <bruno@clisp.org>
23016         vasnprintf: port to macOS 10.13
23017         Problem reported by comex in:
23018         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00056.html
23019         * lib/vasnprintf.c (VASNPRINTF): Don’t use %n on macOS.
23021 2017-07-06  Bruno Haible  <bruno@clisp.org>
23023         imaxdiv tests: Fix logic.
23024         * tests/test-imaxdiv.c (main): Use == instead of =.
23025         Reported by Coverity.
23027 2017-07-06  Bruno Haible  <bruno@clisp.org>
23029         uninorm/filter: Fix use-after-free bug.
23030         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Maintain
23031         sortbuf == filter->sortbuf invariant.
23032         Reported by Coverity.
23034 2017-07-06  Bruno Haible  <bruno@clisp.org>
23036         glob: Fix more memory leaks.
23037         * lib/glob.c (glob): Free dirname before returning.
23038         Reported by Coverity and Tim Rühsen.
23040 2017-07-06  Paul Eggert  <eggert@cs.ucla.edu>
23042         parse-datetime: fix uninit var bug
23043         Reported by Bruno Haible in:
23044         http://lists.gnu.org/r/bug-gnulib/2017-07/msg00038.html
23045         * lib/parse-datetime.y (parse_datetime2): Do not use
23046         uninitialized.
23048 2017-07-05  Bruno Haible  <bruno@clisp.org>
23050         doc: Update for MSVC 14.
23051         * doc/posix-headers/*.texi: Add info about MSVC 14.
23052         * doc/posix-functions/*.texi: Likewise.
23053         * doc/pastposix-functions/*.texi: Likewise.
23054         * doc/glibc-headers/*.texi: Likewise.
23055         * doc/glibc-functions/*.texi: Likewise.
23057 2017-07-05  Bruno Haible  <bruno@clisp.org>
23059         sched: Fix build failure on native Windows (regression from 2017-06-19).
23060         * m4/sched_h.m4 (gl_SCHED_H): Set HAVE_STRUCT_SCHED_PARAM always.
23062 2017-07-03  John E. Malmberg  <wb8tyw@gmail.com>
23064         stdioext: Port to OpenVMS.
23065         * lib/stdio-impl.h: OpenVMS uses struct _iobuf for FILE information.
23066         * lib/fpending.c (fpending): Remove non-working VMS specific code.
23067         * lib/fbufmode.c (fbufmode): Fix _IOLBF test to use fp_ macro.
23068         * lib/fflush.c (clear_ungetc_buffer): Add OpenVMS to comments.
23069         * lib/fpurge.c (fpurge): Likewise.
23070         * lib/freadable.c (freadable): Likewise.
23071         * lib/freadahead.c (freadahead): Likewise.
23072         * lib/freading.c (freading): Likewise.
23073         * lib/freadptr.c (freadptr): Likewise.
23074         * lib/freadseek.c (freadseek): Likewise.
23075         * lib/fseeko.c (fseeko): Likewise.
23076         * lib/fseterr.c (fseterr): Likewise.
23077         * lib/fwritable.c (fwriteable): Likewise.
23078         * lib/fwriting.c (fwriting): Likewise.
23080 2017-07-01  Benno Schulenberg  <bensberg@telfort.nl>
23082         glob: Declare variables at the very start of their scope.
23083         * lib/glob.c (convert_dirent, convert_dirent64): Give each fragment
23084         its separate scope, so the functions will compile on Haiku.
23086 2017-07-01  Bruno Haible  <bruno@clisp.org>
23088         logbl: Work around a glibc bug on PowerPC64LE.
23089         * m4/logbl.m4 (gl_FUNC_LOGBL_WORKS): Test also negative subnormal
23090         numbers.
23091         * doc/posix-functions/logbl.texi: Update.
23093 2017-06-29  Bruno Haible  <bruno@clisp.org>
23095         stat, fstat: Compile stat-w32.c only on platforms that need it.
23096         Suggested by Paul Eggert.
23097         * modules/stat (configure.ac): Request stat-w32.o only on native
23098         Windows.
23099         * modules/fstat (configure.ac): Likewise.
23101 2017-06-25  Bruno Haible  <bruno@clisp.org>
23103         stat: Improve last change.
23104         * lib/stat-w32.c: Revert last change. Use generic idiom instead.
23106 2017-06-25  Paul Eggert  <eggert@cs.ucla.edu>
23108         stat: port to xlc 12.01
23109         * lib/stat-w32.c: Always include <sys/types.h>.  Otherwise, xlc
23110         12.01 complains "Compilation unit is empty."
23112 2017-06-24  Paul Eggert  <eggert@cs.ucla.edu>
23114         xalloc-oversized: port to icc
23115         * lib/xalloc-oversized.h (xalloc_oversized): Do not use
23116         __builtin_mul_overflow if ICC is defined, as this results in
23117         "undefined reference to `__builtin_mul_overflow'" with icc 17.0.2
23118         20170213.
23120 2017-06-19  Bruno Haible  <bruno@clisp.org>
23122         classpath: Avoid including config.h twice, as it produces warnings.
23123         Reported by John E. Malmberg <wb8tyw@gmail.com>.
23124         * lib/classpath.h: Conditionalize the include of config.h.
23126 2017-06-19  Bruno Haible  <bruno@clisp.org>
23127             John E. Malmberg  <wb8tyw@gmail.com>  (tiny change)
23129         sched: Fix compilation failure on OpenVMS.
23130         * m4/sched_h.m4 (gl_SCHED_H): Require AC_CANONICAL_HOST. On OpenVMS,
23131         test whether <pthread.h> exists and defines struct sched_param.
23132         * lib/sched.in.h: On OpenVMS, include <pthread.h>.
23134 2017-06-17  Paul Eggert  <eggert@cs.ucla.edu>
23136         diffseq: port to GCC 7 with --enable-gcc-warnings
23137         * lib/diffseq.h (diag): Use an if, not an ifdef, for most of the
23138         heuristic check.  This way, GCC 7 with --enable-gcc-warnings does
23139         not complain about big_snake being defined but not used.
23141 2017-06-15  Bruno Haible  <bruno@clisp.org>
23143         gettext-h: Update theoretical condition for use of variable size arrays.
23144         Reported by Paul Eggert.
23145         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Extend comment
23146         to include the theoretical condition for availability of variable size
23147         arrays, if we could trust the value of __STDC_VERSION__.
23149 2017-06-12  Bruno Haible  <bruno@clisp.org>
23151         Relicense some modules under LGPLv2+.
23152         Daiki Ueno's approval is in
23153         https://lists.gnu.org/r/bug-gnulib/2017-06/msg00058.html.
23154         * modules/uniwidth/base (License): Change to LGPLv2+.
23155         * modules/uniwidth/width (License): Likewise.
23157 2017-06-11  Bruno Haible  <bruno@clisp.org>
23159         localename: Fix test failure on DragonFly BSD.
23160         * lib/localename.c (gl_locale_name_thread_unsafe): Treat DragonFly BSD
23161         like FreeBSD.
23163 2017-06-11  Bruno Haible  <bruno@clisp.org>
23165         float: Fix 'float' and 'isinf' failures on DragonFly BSD.
23166         * m4/float_h.m4 (gl_FLOAT_H): Treat DragonFly BSD like FreeBSD.
23167         * lib/float.in.h: Likewise.
23168         * m4/fmal.m4, m4/frexpl.m4, m4/logbl.m4: Update accordingly.
23170 2017-06-11  Bruno Haible  <bruno@clisp.org>
23172         gnulib-tool: Clean up after autotools.
23173         * gnulib-tool (func_create_testdir, func_create_megatestdir): Remove
23174         useless directory left over by the Autotools.
23176 2017-06-11  Paul Eggert  <eggert@cs.ucla.edu>
23178         getopt-posix: port to glibc 2.25.90
23179         Problem reported by Daniel P. Berrange in:
23180         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00003.html
23181         * lib/getopt-pfx-core.h (_GETOPT_CORE_H):
23182         * lib/getopt-pfx-ext.h (_GETOPT_EXT_H):
23183         #undef if __GETOPT_PREFIX is defined.
23185 2017-06-11  Bruno Haible  <bruno@clisp.org>
23187         strtod-obsolete: Fix license.
23188         * modules/strtod-obsolete (License): Change to LGPL.
23190 2017-06-10  Jim Meyering  <meyering@fb.com>
23192         maint: update to work with GCC7's -Werror=implicit-fallthrough=
23193         * lib/savewd.c (FALLTHROUGH): Define.
23194         (savewd_save, savewd_restore): Use this, rather than a comment,
23195         whenever one switch case falls through into the next.
23197 2017-06-08  Bruno Haible  <bruno@clisp.org>
23199         host-cpu-c-abi: Support for aarch64 ILP32 ABI.
23200         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Recognize the aarch64 ILP32
23201         ABI. Set HOST_CPU_C_ABI=arm64-ilp32 and define __arm64_ilp32__ in this
23202         case.
23204 2017-06-08  Paul Eggert  <eggert@cs.ucla.edu>
23206         doc: remove robots, add prereqs
23207         * doc/build-automation.texi, doc/gnulib.texi: Mention prereqs for
23208         builds.  Simon's robot site does not seem to be up, so remove
23209         mentions of it for now.
23211 2017-06-08  Bruno Haible  <bruno@clisp.org>
23213         gnulib-tool: Fix bug in func_symlink_if_changed, from 2006-11-13.
23214         * gnulib-tool (func_symlink_target): New function, extracted from
23215         func_symlink.
23216         (func_symlink, func_symlink_if_changed): Use it.
23218 2017-06-08  Bruno Haible  <bruno@clisp.org>
23220         gnulib-tool: Fix bug in func_ln_s, from 2016-01-15.
23221         * gnulib-tool (func_ln_s): Determine cp_src correctly.
23223 2017-06-07  Bruno Haible  <bruno@clisp.org>
23225         canonicalize-lgpl: Avoid conflict with gnulib 'getcwd' module on VMS.
23226         Reported by John E. Malmberg <wb8tyw@gmail.com> in
23227         <https://lists.gnu.org/r/bug-gnulib/2017-06/msg00029.html>.
23228         * lib/canonicalize-lgpl.c (__getcwd): On VMS, when using gnulib's getcwd
23229         override, pass 2 arguments to getcwd, not 3.
23231 2017-06-04  Paul Eggert  <eggert@cs.ucla.edu>
23233         same-inode: port better to VMS 8.2 and later
23234         Problem reported by John E. Malmberg in:
23235         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00005.html
23236         * lib/same-inode.h (SAME_INODE) [__VMS && 80200000 <= __CRTL_VER]:
23237         Use the usual POSIX definition.
23238         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define _USE_STD_STAT.
23240 2017-06-01  Paul Eggert  <eggert@cs.ucla.edu>
23242         error: fix POSIX violation for va_end
23243         Problem reported by Bruno Haible in:
23244         http://lists.gnu.org/r/bug-gnulib/2017-06/msg00001.html
23245         * lib/error.c (error_tail): Do not call va_end here.
23246         (error, error_at_line): Call it here instead.
23248 2017-05-28  Bruno Haible  <bruno@clisp.org>
23250         c-strtod: Make it usable in C++ mode.
23251         * lib/c-strtod.h: Add 'extern "C"' marker for C++.
23253 2017-05-25  Jim Meyering  <meyering@fb.com>
23255         quotearg: fix compilation failure due to FALLTHROUGH misuse
23256         * lib/quotearg.c (quotearg_buffer_restyled): Revert one FALLTHROUGH
23257         macro back to /* fall through */ comment.  The macro can apply only
23258         to a following case statement.  Reported by Assaf Gordon.
23260 2017-05-25  Paul Eggert  <eggert@cs.ucla.edu>
23262         intprops: port to recent icc
23263         Port to icc (ICC) 17.0.4 20170411, which defines __GNUC__ to be 5
23264         but does not support __builtin_add_overflow etc.
23265         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW) [__ICC]:
23266         Define to 0.
23268 2017-05-23  Karl Berry  <karl@freefriends.org>
23270         * config/srclist.txt (iconv.m4): sync broken, comment out
23271         until (hopefully) the next gettext release.
23273 2017-05-22  Bjarni Ingi Gislason  <bjarniig@rhi.hi.is>
23275         Remove repeated words in comments.
23277 2017-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
23279         fallthrough: reinstate a FALLTHROUGH instance in quotearg
23280         quotearg.c: Reinstate this instance which is significant
23281         when the if branch is not taken.
23283 2017-05-21  Bruno Haible  <bruno@clisp.org>
23285         gnulib-tool: Add options to create hard links.
23286         * gnulib-tool (func_usage): Document options --hardlink,
23287         --local-hardlink, --more-hardlinks.
23288         (func_symlink): Renamed from func_ln.
23289         (func_symlink_if_changed): Renamed from func_ln_if_changed.
23290         (func_hardlink): New function.
23291         (copymode, lcopymode): New variables.
23292         (symbolic, lsymbolic): Remove variables.
23293         (Options): Implement options --hardlink, --local-hardlink,
23294         --more-hardlinks.
23295         (func_should_link): Renamed from func_should_symlink. Set copyaction.
23296         (func_add_file, func_update_file): Update invocation of
23297         func_should_link. Invoke func_hardlink when appropriate.
23298         (func_import): Update comments.
23299         (func_create_testdir): Update invocation of func_should_link. Invoke
23300         func_hardlink when appropriate.
23301         Finally, invoke 'git update-index --refresh' to mitigate the effects of
23302         the hard links on git.
23304 2017-05-20  Bruno Haible  <bruno@clisp.org>
23306         argp: Simplify bit manipulation.
23307         * lib/argp-parse.c (parser_parse_opt): Use &, |, ~ instead of shifts
23308         on a signed integer type.
23310 2017-05-20  Bruno Haible  <bruno@clisp.org>
23312         Avoid wrong configure results with gcc -fsanitize=address.
23313         This completes the work done on 2016-02-06 on this topic.
23314         * m4/memmem.m4 (gl_FUNC_MEMMEM): Free allocated memory before returning.
23315         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
23316         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
23317         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
23318         * m4/fopen.m4 (gl_FUNC_FOPEN): Close allocated FILE streams before
23319         returning.
23320         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Likewise.
23321         * m4/fpurge.m4 (gl_FUNC_FPURGE): Likewise.
23322         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
23323         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
23324         * m4/signbit.m4 (gl_FLOATTYPE_SIGN_LOCATION): Likewise.
23325         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Likewise.
23326         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Close allocated FILE streams and
23327         free allocated memory before returning.
23328         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23329         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Close allocated DIR
23330         objects before returning.
23331         * m4/iconv.m4 (AM_ICONV_LINK): Close allocated iconv_t handles before
23332         returning.
23334 2017-05-20  Bruno Haible  <bruno@clisp.org>
23336         gnulib-tool: Don't create hard links between gnulib and its testdirs.
23337         * gnulib-tool (func_create_testdir): Don't invoke 'ln'.
23339 2017-05-20  Bruno Haible  <bruno@clisp.org>
23341         argp, tsearch tests: Fix file list.
23342         * modules/argp-tests (Files): Add tests/macros.h.
23343         * modules/tsearch-tests (Files): Likewise.
23345 2017-05-20  Bruno Haible  <bruno@clisp.org>
23347         getopt-posix tests: Remove redundant include.
23348         * tests/test-getopt.h: Don't include "macros.h". It's already included
23349         by tests/test-getopt-main.h.
23351 2017-05-19  Jim Meyering  <meyering@fb.com>
23353         dfa: two small simplifications
23354         * lib/dfa.c (build_state): Avoid repeating longer expressions.
23356 2017-05-18  Jim Meyering  <meyering@fb.com>
23358         fallthrough: update for GCC 7/8
23359         * lib/quotearg.c (FALLTHROUGH): New macro.
23360         Use it whenever one switch case falls through into the next,
23361         replacing "/* Fall through */" comments.  This exposed one
23362         instance of an unwarranted "fall through" comment: unwarranted
23363         because it preceded a "goto" label not a case statement.
23364         * lib/freopen-safer.c (freopen_safer): Likewise.
23365         * lib/fts.c (leaf_optimization_applies): Likewise.
23366         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
23367         * tests/test-getopt_long.h (getopt_long_loop): Likewise.
23368         * tests/test-tsearch.c (mangle_tree): Likewise.  Also include
23369         tests/macros.h for the definition.
23370         * tests/test-argp.c (group1_parser): Likewise.
23371         * tests/test-getopt.h (getopt_loop): Likewise.
23373 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23375         argp: fix shift bug
23376         * lib/argp-parse.c (parser_parse_opt): Rework to avoid undefined
23377         behavior on shift overflow, caught by gcc -fsanitize=undefined.
23379         argp: fix pointer-subtraction bug
23380         * lib/argp-help.c (hol_append): Don’t subtract pointers to
23381         different arrays, as this can run afoul of -fcheck-pointer-bounds.
23382         See the thread containing Bruno Haible’s report in:
23383         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00171.html
23385 2017-05-19  Bruno Haible  <bruno@clisp.org>
23387         printf-posix tests: Avoid test failure with "gcc --coverage".
23388         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23389         * tests/test-printf-posix2.c (main): Test a width of 10000000 rather
23390         than 5000000.
23391         * tests/test-fprintf-posix2.c (main): Likewise.
23393 2017-05-19  Paul Eggert  <eggert@cs.ucla.edu>
23395         closeout: don’t close stderr when sanitizing
23396         * NEWS: Document this.
23397         * lib/closeout.c (__has_feature): New macro, if not already defined.
23398         (SANITIZE_ADDRESS): New constant.
23399         (close_stdout): Don’t close stderr if sanitizing addresses.
23401 2017-05-19  Bruno Haible  <bruno@clisp.org>
23403         get-rusage-data tests: Avoid failure on Linux/glibc.
23404         * tests/test-get-rusage-data.c (main): Don't expect a strict increase
23405         on glibc systems.
23407 2017-05-18  Bruno Haible  <bruno@clisp.org>
23409         localename: Include necessary header files on Cygwin.
23410         * lib/localename.c [__CYGWIN__]: Include <langinfo.h>, since this is
23411         where NL_LOCALE_NAME is defined.
23413 2017-05-18  Bruno Haible  <bruno@clisp.org>
23415         gettext: Update macros from gettext git.
23416         * m4/intldir.m4: Require Autoconf >= 2.60.
23417         * m4/progtest.m4: Fix typos in copyright notice.
23419 2017-05-18  Bruno Haible  <bruno@clisp.org>
23421         copy-file tests: Fix link error (regression from 2017-05-01).
23422         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
23423         * modules/copy-file-tests (Makefile.am): Link test-copy-file with
23424         $(LIB_CLOCK_GETTIME).
23426 2017-05-18  Bruno Haible  <bruno@clisp.org>
23428         unicase/special-casing: Fix incompatibility with gperf-3.0.4
23429         (regression from 2017-02-13).
23430         * lib/unicase/special-casing.in.h: Renamed from
23431         lib/unicase/special-casing.h.
23432         * modules/unicase/special-casing (Files): Add
23433         lib/unicase/special-casing.in.h. Remove lib/unicase/special-casing.h.
23434         (Makefile.am): Add rule for generating unicase/special-casing.h.
23435         Update BUILT_SOURCES and MOSTLYCLEANFILES accordingly.
23436         * lib/unicase/special-casing.c: Include "unicase/special-casing.h",
23437         not "special-casing.h".
23438         * lib/unicase/u*.c: Likewise.
23440 2017-05-17  Bruno Haible  <bruno@clisp.org>
23442         README: Don't ask people to read a TeXinfo file.
23443         Reported by Tim Rühsen <tim.ruehsen@gmx.de>.
23444         * README: Tell people how to read the HTML formatted manual.
23446 2017-05-16  Tim Rühsen  <tim.ruehsen@gmx.de>
23448         parse-datetime: Fix memleak
23449         * lib/parse-datetime.y (parse_datetime2): Cleanup on
23450         localtime_rz() failure.
23452 2017-05-16  Bruno Haible  <bruno@clisp.org>
23454         javacomp: Fix handle leak.
23455         Found by Coverity.
23456         * lib/javacomp.c (get_classfile_version): Close fd before returning.
23458 2017-05-16  Bruno Haible  <bruno@clisp.org>
23460         relocate: Make it easier to reclaim allocated memory.
23461         * lib/relocatable.h (relocate2): New declaration/macro.
23462         * lib/relocatable.c (relocate2): New function.
23463         * doc/relocatable-maint.texi (Supporting Relocation): Mention the
23464         relocate2 function.
23465         * lib/localcharset.c (relocate2): Define fallback.
23466         (get_charset_aliases): Invoke relocate2 instead of relocate. Free the
23467         allocated memory.
23468         * lib/javaversion.c (relocate2): Define fallback.
23469         (javaexec_version): Invoke relocate2 instead of relocate. Free the
23470         allocated memory.
23472 2017-05-16  Bruno Haible  <bruno@clisp.org>
23474         relocate: Simplify EMX specific code.
23475         * lib/relocatable.c (relocate): Assume pathname is non-NULL. Use
23476         ISSLASH macro consistently. Avoid dangerous string concatenation idiom.
23478 2017-05-16  Bruno Haible  <bruno@clisp.org>
23480         sigpipe tests: Fix file list.
23481         * modules/sigpipe-tests (Files): Add tests/macros.h.
23483 2017-05-16  Paul Eggert  <eggert@cs.ucla.edu>
23485         manywarnings: update for GCC 7
23486         * build-aux/gcc-warning.spec:
23487         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
23488         Add GCC 7 warnings, notably -Wimplicit-fallthrough=5, which
23489         requires a non-comment fallthrough attribute.  This is a bit
23490         cleaner than the comment versions.
23491         * lib/strftime.c, lib/dfa.c, lib/fnmatch.c, lib/mbrtowc.c:
23492         * lib/vasnprintf.c, tests/macros.h (FALLTHROUGH): New macro.
23493         Use it whenever one switch case falls through into the next.
23494         * lib/fnmatch_loop.c, tests/test-mbrtowc.c, tests/test-sigpipe.c:
23495         Use FALLTHROUGH macro.
23497 2017-05-15  Bruno Haible  <bruno@clisp.org>
23499         gnulib-tool: Fix generated code when libtests contains module 'alloca'.
23500         * gnulib-tool (func_emit_tests_Makefile_am): For libtests.a, use
23501         @ALLOCA@, not @LTALLOCA@.
23503 2017-05-15  Bruno Haible  <bruno@clisp.org>
23505         sys_select: Avoid "was expanded before it was required" warning.
23506         * modules/sys_select (configure.ac): Require, not invoke,
23507         gl_HEADER_SYS_SELECT.
23509 2017-05-14  Paul Eggert  <eggert@cs.ucla.edu>
23511         gnulib-tool: improve GNU Make debugging
23512         * gnulib-tool (func_emit_lib_Makefile_am): Omit unnecessary echo.
23513         Report autoconf diagnostics when it fails, in the output makefile.
23515 2017-05-14  Bruno Haible  <bruno@clisp.org>
23517         stat-time tests: Improve comment.
23518         * tests/test-stat-time.c: Add hyperlink, from Paul Eggert.
23520 2017-05-14  Bruno Haible  <bruno@clisp.org>
23522         same-inode: Adapt for windows-stat-inodes.
23523         * lib/same-inode.h: Include <sys/types.h>.
23524         (SAME_INODE) [_GL_WINDOWS_STAT_INODES]: Define specifically.
23525         * modules/same-inode (Depends-on): Add sys_types.
23527 2017-05-14  Bruno Haible  <bruno@clisp.org>
23529         windows-stat-inodes: New module.
23530         * m4/windows-stat-inodes.m4: New file.
23531         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_STAT_INODES.
23532         * modules/sys_types (Makefile.am): Substitute WINDOWS_STAT_INODES.
23533         * lib/sys_types.in.h [WINDOWS_STAT_INODES]: Override dev_t and ino_t.
23534         (_GL_WINDOWS_STAT_INODES): New macro.
23535         * lib/stat-w32.c: Set _WIN32_WINNT. Include <string.h>, verify.h.
23536         (GetFileInformationByHandleExFunc): New variable.
23537         (initialize): Initialize it.
23538         (_gl_fstat_by_handle) [_GL_WINDOWS_STAT_INODES]: Initialize st_dev and
23539         st_ino appropriately.
23540         * lib/stat.c (rpl_stat): Use the directory entry based approach only as
23541         a fallback, because it does not provide st_dev and st_ino values.
23542         * modules/fstat (Depends-on): Add 'verify'.
23543         * modules/windows-stat-inodes: New file.
23544         * doc/windows-stat-inodes.texi: New file.
23545         * doc/gnulib.texi: Include it.
23546         * doc/posix-headers/sys_stat.texi: Mention the new module.
23548 2017-05-14  Bruno Haible  <bruno@clisp.org>
23550         stat-time tests: Workaround for native Windows.
23551         * tests/test-stat-time.c: Include <stdio.h>, <time.h>.
23552         (filename_stamp1, filename_testfile, filename_stamp2, filename_stamp3):
23553         New variables.
23554         (initialize_filenames): New function.
23555         (main): Invoke it.
23556         (cleanup, prepare_test): Update.
23558 2017-05-14  Bruno Haible  <bruno@clisp.org>
23560         stat-time: Adapt for windows-stat-timespec.
23561         * lib/stat-time.h (get_stat_birthtime) [_GL_WINDOWS_STAT_TIMESPEC]: Use
23562         entire st_ctim field.
23564 2017-05-13  Jim Meyering  <meyering@fb.com>
23566         maint.mk: update regex to reflect 2013 addition of "assume" to verify.h
23567         * top/maint.mk (sc_prohibit_verify_without_use): Don't reject a source
23568         file that uses the assume macro, claiming that verify.h is unused.
23570 2017-05-13  Bruno Haible  <bruno@clisp.org>
23572         Use symbolic values for _WIN32_WINNT.
23573         * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
23574         * lib/sethostname.c (_WIN32_WINNT): Likewise.
23576 2017-05-13  Bruno Haible  <bruno@clisp.org>
23578         year2038: New module.
23579         * m4/year2038.m4: New file.
23580         * modules/year2038: New file.
23581         * doc/year2038.texi: New file.
23582         * doc/gnulib.texi: Include it.
23584 2017-05-13  Bruno Haible  <bruno@clisp.org>
23586         largefile: Simplify.
23587         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Remove unused definition
23588         of _GL_WINDOWS_64_BIT_ST_SIZE.
23590 2017-05-13  Bruno Haible  <bruno@clisp.org>
23592         largefile: Improve and document.
23593         * m4/largefile.m4 (gl_LARGEFILE): Set WINDOWS_64_BIT_ST_SIZE to 0 if
23594         the mingw headers already define 'stat' appropriately.
23595         * modules/largefile (Description): Clarify.
23596         * doc/largefile.texi: New file.
23597         * doc/gnulib.texi: Include it.
23598         * doc/posix-headers/sys_types.texi: Update.
23600 2017-05-13  Bruno Haible  <bruno@clisp.org>
23602         truncate: New module.
23603         * lib/unistd.in.h (truncate): New declaration.
23604         * lib/truncate.c: New file.
23605         * m4/truncate.m4: New file.
23606         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'truncate' is declared.
23607         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TRUNCATE, HAVE_TRUNCATE,
23608         REPLACE_TRUNCATE.
23609         * modules/unistd (Makefile.am): Substitute GNULIB_TRUNCATE,
23610         HAVE_TRUNCATE, REPLACE_TRUNCATE.
23611         * modules/truncate: New file.
23612         * tests/test-unistd-c++.cc (truncate): Test signature.
23613         * doc/posix-functions/truncate.texi: Mention the new module.
23615         * tests/test-truncate.c: New file.
23616         * modules/truncate-tests: New file.
23618 2017-05-13  Bruno Haible  <bruno@clisp.org>
23620         windows-stat-timespec: New module.
23621         * modules/windows-stat-timespec: New file.
23622         * m4/windows-stat-timespec.m4: New file.
23623         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_STAT_TIMESPEC.
23624         * modules/sys_stat (Makefile.am): Substitute WINDOWS_STAT_TIMESPEC.
23625         * lib/sys_stat.in.h (struct stat) [WINDOWS_STAT_TIMESPEC]: Declare with
23626         fields st_atim, st_mtim, st_ctim.
23627         (st_atime, st_mtime, st_ctime): Define as macros.
23628         (_GL_WINDOWS_STAT_TIMESPEC): New macro.
23629         * lib/stat-w32.h (_gl_convert_FILETIME_to_timespec)
23630         [_GL_WINDOWS_STAT_TIMESPEC]: New declaration.
23631         * lib/stat-w32.c (_gl_convert_FILETIME_to_timespec)
23632         [_GL_WINDOWS_STAT_TIMESPEC]: New function.
23633         (_gl_convert_FILETIME_to_POSIX): Adjust coding style.
23634         (_gl_fstat_by_handle): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23635         FILETIME to 'struct timespec', not 'time_t'.
23636         * lib/stat.c (rpl_stat): If _GL_WINDOWS_STAT_TIMESPEC, convert the
23637         FILETIME to 'struct timespec', not 'time_t'.
23638         * lib/stat-time.h (STAT_TIMESPEC): Define also if
23639         _GL_WINDOWS_STAT_TIMESPEC.
23640         * doc/windows-stat-timespec.texi: New file.
23641         * doc/gnulib.texi: Include it.
23643 2017-05-13  Bruno Haible  <bruno@clisp.org>
23645         windows-stat-override: New module.
23646         * lib/sys_stat.in.h (stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provide own
23647         definition. Define GNULIB_defined_struct_stat.
23648         (fstat, fstatat, lstat, stat) [GNULIB_OVERRIDES_STRUCT_STAT]: Provoke
23649         link error if this symbol is used and the corresponding module is not
23650         in use.
23651         (_stat64, _stat32i64, _stati64, _stat32, _stat64i32): Don't redefine if
23652         GNULIB_OVERRIDES_STRUCT_STAT.
23653         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
23654         GNULIB_OVERRIDES_STRUCT_STAT.
23655         * modules/sys_stat (Makefile.am): Substitute
23656         GNULIB_OVERRIDES_STRUCT_STAT.
23657         * modules/windows-stat-override: New file.
23659 2017-05-13  Bruno Haible  <bruno@clisp.org>
23661         fstat: Fix module dependency conditions.
23662         * modules/fstat (Depends-on): Fix typo.
23664 2017-05-13  Bruno Haible  <bruno@clisp.org>
23666         stat, fstat: Complete removal of old native Windows code.
23667         * lib/stat.c: Remove old macrology for WINDOWS_NATIVE.
23668         * lib/fstat.c: Likewise.
23669         * lib/stat-w32.c: Likewise.
23671 2017-05-13  Bruno Haible  <bruno@clisp.org>
23673         stat: Complete removal of REPLACE_FUNC_STAT_DIR code.
23674         * lib/stat.c: Remove all REPLACE_FUNC_STAT_DIR code.
23676 2017-05-11  Paul Eggert  <eggert@cs.ucla.edu>
23678         getopt-posix: port to mingw
23679         * lib/getopt.c (flockfile, funlockfile): Define on mingw.
23680         Problem reported by Daniel P. Berrage in:
23681         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00086.html
23683 2017-05-11  Bruno Haible  <bruno@clisp.org>
23685         gettimeofday: Increase precision on mingw.
23686         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Require AC_CANONICAL_HOST.
23687         Set REPLACE_GETTIMEOFDAY to 1 on mingw.
23688         * lib/gettimeofday.c (gettimeofday): On native Windows, use the
23689         GetSystemTimePreciseAsFileTime based implementation always.
23690         * doc/posix-functions/gettimeofday.texi: Mention precision problem on
23691         mingw.
23693 2017-05-11  Bruno Haible  <bruno@clisp.org>
23695         poll: Fix confusion between SOCKETs and FDs on native Windows.
23696         Fix proposed by Daniel P. Berrange <berrange@redhat.com>.
23697         * lib/poll.c [WINDOWS_NATIVE]: Undefine select.
23699 2017-05-11  Bruno Haible  <bruno@clisp.org>
23701         doc: Clarify doc about socket functions on native Windows.
23702         This reworks doc that was added on 2008-09-29.
23703         * doc/posix-functions/select.texi: Fix copy-and-paste mistake and use
23704         clearer wording.
23705         * doc/posix-functions/accept.texi: Use clearer wording.
23706         * doc/posix-functions/bind.texi: Likewise.
23707         * doc/posix-functions/connect.texi: Likewise.
23708         * doc/posix-functions/getpeername.texi: Likewise.
23709         * doc/posix-functions/getsockname.texi: Likewise.
23710         * doc/posix-functions/getsockopt.texi: Likewise.
23711         * doc/posix-functions/ioctl.texi: Likewise.
23712         * doc/posix-functions/listen.texi: Likewise.
23713         * doc/posix-functions/recv.texi: Likewise.
23714         * doc/posix-functions/recvfrom.texi: Likewise.
23715         * doc/posix-functions/send.texi: Likewise.
23716         * doc/posix-functions/sendto.texi: Likewise.
23717         * doc/posix-functions/setsockopt.texi: Likewise.
23718         * doc/posix-functions/shutdown.texi: Likewise.
23719         * doc/posix-functions/socket.texi: Likewise.
23721 2017-05-10  Bruno Haible  <bruno@clisp.org>
23723         poll: Fix link error on native Windows.
23724         * lib/poll.c [WINDOWS_NATIVE]: Undefine recv.
23726 2017-05-10  Bruno Haible  <bruno@clisp.org>
23728         time: Fix missing initialization of HAVE_TIMEZONE_T.
23729         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEZONE_T
23730         here...
23731         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): ... not here.
23732         * m4/time_rz.m4 (gl_TIME_RZ): Require gl_HEADER_TIME_H_DEFAULTS, not
23733         gl_HEADER_SYS_TIME_H_DEFAULTS.
23734         * modules/time_rz (Depends-on): Add 'time'. Remove useless quoting.
23735         (configure.ac): Remove useless quoting.
23737 2017-05-10  Bruno Haible  <bruno@clisp.org>
23739         Implement a way to opt out from MSVC support, part 2.
23740         * modules/msvc-inval (Include): Document recommended idiom.
23741         * modules/msvc-nothrow (Include): Likewise.
23743         Implement a way to opt out from MSVC support.
23744         This is useful for Emacs.
23745         * modules/msvc-nothrow (configure.ac): Invoke gl_MODULE_INDICATOR.
23746         * lib/accept4.c: Include <io.h> as an alternative to msvc-nothrow.h.
23747         * lib/error.c: Likewise.
23748         * lib/fcntl.c: Likewise.
23749         * lib/flock.c: Likewise.
23750         * lib/fstat.c: Likewise.
23751         * lib/fsync.c: Likewise.
23752         * lib/ioctl.c: Likewise.
23753         * lib/isapipe.c: Likewise.
23754         * lib/lseek.c: Likewise.
23755         * lib/nonblocking.c: Likewise.
23756         * lib/poll.c: Likewise.
23757         * lib/select.c: Likewise.
23758         * lib/sockets.h: Likewise.
23759         * lib/sockets.c: Likewise.
23760         * lib/stdio-read.c: Likewise.
23761         * lib/stdio-write.c: Likewise.
23762         * lib/utimens.c: Likewise.
23763         * lib/w32sock.h: Likewise.
23764         * lib/w32spawn.h: Likewise.
23765         * tests/test-cloexec.c: Likewise.
23766         * tests/test-dup-safer.c: Likewise.
23767         * tests/test-dup2.c: Likewise.
23768         * tests/test-dup3.c: Likewise.
23769         * tests/test-fcntl.c: Likewise.
23770         * tests/test-pipe.c: Likewise.
23771         * tests/test-pipe2.c: Likewise.
23772         * lib/ftruncate.c: Likewise.
23773         (chsize_nothrow): Renamed from chsize.
23774         * lib/msvc-nothrow.c: Don't include msvc-inval.h if
23775         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23776         * lib/close.c: Likewise.
23777         * lib/dup.c: Likewise.
23778         * lib/fclose.c: Likewise.
23779         * lib/raise.c: Likewise.
23780         * tests/test-fgetc.c: Likewise.
23781         * tests/test-fputc.c: Likewise.
23782         * tests/test-fread.c: Likewise.
23783         * tests/test-fwrite.c: Likewise.
23784         * lib/getdtablesize.c: Likewise.
23785         (_setmaxstdio_nothrow): Renamed from _setmaxstdio.
23786         * lib/isatty.c: Don't include msvc-inval.h if
23787         HAVE_MSVC_INVALID_PARAMETER_HANDLER is not defined.
23788         Include <io.h> as an alternative to msvc-nothrow.h.
23789         * lib/read.c: Likewise.
23790         * lib/write.c: Likewise.
23791         * lib/dup2.c: Likewise.
23792         (dup2_nothrow): New function.
23793         (ms_windows_dup2): Use it.
23794         * m4/close.m4 (gl_FUNC_CLOSE): Invoke gl_MSVC_INVAL and test
23795         HAVE_MSVC_INVALID_PARAMETER_HANDLER only if gl_MSVC_INVAL is defined.
23796         * m4/dup.m4 (gl_FUNC_DUP): Likewise.
23797         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Likewise.
23798         * m4/raise.m4 (gl_FUNC_RAISE): Likewise.
23799         * m4/read.m4 (gl_FUNC_READ): Likewise.
23800         * m4/write.m4 (gl_FUNC_WRITE): Likewise.
23801         * doc/windows-without-msvc.texi: New file.
23802         * doc/gnulib.texi (Native Windows Support without MSVC Support): New
23803         section.
23805 2017-05-10  Bruno Haible  <bruno@clisp.org>
23807         wait-process: Adjust native Windows support.
23808         * lib/wait-process.c: Use the usual condition for recognizing a native
23809         Windows platform.
23811 2017-05-10  Bruno Haible  <bruno@clisp.org>
23813         doc: New chapter "Native Windows Support".
23814         * doc/gnulib.texi (Native Windows Support): New chapter.
23815         * doc/windows-libtool.texi: Small wording changes.
23816         * doc/windows-sockets.texi: Small wording and formatting changes.
23818 2017-05-10  Bruno Haible  <bruno@clisp.org>
23820         doc: Move section "Library version handling".
23821         * doc/gnulib.texi: Move section "Library version handling"
23822         from chapter "Miscellaneous Notes" to chapter "Particular Modules".
23824 2017-05-10  Bruno Haible  <bruno@clisp.org>
23826         doc: Move section "Running self-tests under valgrind".
23827         * doc/gnulib.texi: Move section "Running self-tests under valgrind"
23828         from chapter "Particular Modules" to chapter "Miscellaneous Notes".
23830 2017-05-10  Bruno Haible  <bruno@clisp.org>
23832         doc: New chapter "Build Infrastructure Modules".
23833         * doc/gnulib.texi (Build Infrastructure Modules): New chapter.
23835 2017-05-10  Bruno Haible  <bruno@clisp.org>
23837         Prepare for reordering sections in the manual.
23838         * doc/gnulib.texi: Move several sections to separate files. Include
23839         these files.
23840         * doc/out-of-memory.texi: New file, extracted from doc/gnulib.texi.
23841         * doc/obsolete.texi: Likewise.
23842         * doc/extra-tests.texi: Likewise.
23843         * doc/transversal.texi: Likewise.
23844         * doc/namespace.texi: Likewise.
23845         * doc/check-version.texi: Likewise.
23846         * doc/windows-sockets.texi: Likewise.
23847         * doc/windows-libtool.texi: Likewise.
23848         * doc/licenses-texi.texi: Likewise.
23849         * doc/build-automation.texi: Likewise.
23850         * doc/c-locale.texi: Likewise.
23852 2017-05-10  Bruno Haible  <bruno@clisp.org>
23854         Fix instructions how to update manual on www.gnu.org.
23855         * doc/README: Add -I option, so that texi2dvi finds texinfo.tex.
23857 2017-05-09  Bruno Haible  <bruno@clisp.org>
23859         tzset: Expand comment about TZ problem on native Windows.
23860         * lib/tzset.c (tzset): Elaborate comment, based on explanations by
23861         Paul Eggert.
23862         * lib/ctime.c (rpl_ctime): Likewise.
23863         * lib/localtime.c (rpl_localtime): Likewise.
23864         * lib/mktime.c (mktime): Likewise.
23865         * lib/strftime-fixes.c (rpl_strftime): Likewise.
23866         * lib/wcsftime.c (rpl_wcsftime): Likewise.
23868 2017-05-08  Paul Eggert  <eggert@cs.ucla.edu>
23870         intprops: don’t depend on ‘verify’
23871         Problem reported by Ævar Arnfjörð Bjarmason in:
23872         http://lists.gnu.org/r/bug-gnulib/2017-05/msg00054.html
23873         * lib/intprops.h: Do not include verify.h, and move compile-time
23874         checks from here ...
23875         * tests/test-intprops.c (main): ... to here, if they’re not here
23876         already.  Check widths of other standard integer types.
23877         * modules/intprops (Depends-on): Remove ‘verify’.
23879 2017-05-07  Bruno Haible  <bruno@clisp.org>
23881         utimens: On native Windows, support 100ns resolution also if fd < 0.
23882         * lib/utime.in.h: Include <time.h>.
23883         (_gl_utimens_windows): New declaration.
23884         * lib/utime.c (_gl_utimens_windows): New function, based on utime.
23885         (utime): Invoke it.
23886         * lib/utimens.c (fdutimens): On native Windows, call _gl_utimens_windows
23887         instead of utime.
23888         * modules/utime (Depends-on): Add 'time'.
23890 2017-05-07  Bruno Haible  <bruno@clisp.org>
23892         utimens: Improve error code on native Windows.
23893         * lib/utimens.c (fdutimens): If fd was not opened with O_RDWR, fail with
23894         error code EACCES, not EINVAL.
23896 2017-05-07  Bruno Haible  <bruno@clisp.org>
23898         utime: Handle more Windows error codes.
23899         * lib/utime.c (utime): Handle ERROR_BAD_NETPATH.
23900         Based on explanations by Billy O'Neal.
23902 2017-05-05  Bruno Haible  <bruno@clisp.org>
23904         crypto/rijndael: Fix "strict-aliasing rules" warnings, alignment issues.
23905         * lib/rijndael-api-fst.c (rijndaelBlockEncrypt): Declare 'block' as a
23906         union.
23907         (rijndaelPadEncrypt, rijndaelBlockDecrypt): Likewise.
23908         (rijndaelPadDecrypt): Likewise. Use local variable 'iv' to cache the
23909         value of cipher->IV.
23911 2017-05-05  Bruno Haible  <bruno@clisp.org>
23913         wctype-h-c++-tests: Update.
23914         * tests/test-wctype-h-c++.cc: Reorder to match lib/wchar.in.h.
23916 2017-05-05  Bruno Haible  <bruno@clisp.org>
23918         wchar-c++-tests: Update.
23919         * tests/test-wchar-c++.cc (wcsftime): Declare, missing since 2017-04-30.
23921 2017-05-05  Bruno Haible  <bruno@clisp.org>
23923         utime-h-c++-tests: New module.
23924         * tests/test-utime-h-c++.cc: New file.
23925         (utime): Declare, missing since 2017-04-30.
23926         * modules/utime-h-c++-tests: New file.
23928 2017-05-05  Bruno Haible  <bruno@clisp.org>
23930         unistd-c++-tests: Update.
23931         * tests/test-unistd-c++.cc (isatty): Declare, missing since 2012-01-03.
23932         (read): Declare, missing since 2011-04-15.
23933         (sethostname): Declare, missing since 2011-12-03.
23935 2017-05-05  Bruno Haible  <bruno@clisp.org>
23937         time-c++-tests: Update.
23938         * tests/test-time-c++.cc (tzset): Declare, missing since 2017-05-01.
23939         (localtime, gmtime): Declare, missing since 2017-04-30.
23940         (ctime): Declare, missing since 2017-04-30.
23941         (strftime): Declare, missing since 2017-04-30.
23942         (tzalloc, tzfree, localtime_rz, mktime_z): Declare, missing since
23943         2015-07-24.
23945 2017-05-05  Bruno Haible  <bruno@clisp.org>
23947         sys_resource-c++-tests: New module.
23948         * tests/test-sys_resource-c++.cc: New file.
23949         (getrusage): Declare, missing since 2012-04-13.
23950         * modules/sys_resource-c++-tests: New file.
23952 2017-05-05  Bruno Haible  <bruno@clisp.org>
23954         strings-c++-tests: New module.
23955         * tests/test-strings-c++.cc: New file.
23956         (ffs): Declare, missing since 2011-07-12.
23957         * modules/strings-c++-tests: New file.
23959 2017-05-05  Bruno Haible  <bruno@clisp.org>
23961         string-c++-tests: Update.
23962         * tests/test-string-c++.cc (ffsl): Declare, missing since 2011-07-15.
23963         (ffsll): Declare, missing since 2011-07-15.
23965 2017-05-05  Bruno Haible  <bruno@clisp.org>
23967         stdlib-c++-tests: Update.
23968         * tests/test-stdlib-c++.cc (posix_openpt): Declare, missing since
23969         2011-10-18.
23970         (ptsname_r): Declare, missing since 2011-11-07.
23971         (qsort_r): Declare, missing since 2014-08-29.
23972         (random, srandom, initstate, setstate): Declare, missing since
23973         2012-01-14.
23974         (secure_getenv): Declare, missing since 2013-02-05.
23976 2017-05-05  Bruno Haible  <bruno@clisp.org>
23978         stdio-c++-tests: Update.
23979         * tests/test-stdio-c++.cc (pclose): Declare, missing since 2011-09-18.
23981 2017-05-05  Bruno Haible  <bruno@clisp.org>
23983         signal-h-c++-tests: Update.
23984         * tests/test-signal-h-c++.cc (raise): Remove redundant declaration.
23986 2017-05-05  Bruno Haible  <bruno@clisp.org>
23988         math-c++-tests: Update.
23989         * tests/test-math-c++.cc (fmaf): Declare, missing since 2011-10-17.
23990         (fma): Declare, missing since 2011-10-17.
23991         (fmal): Declare, missing since 2011-10-17.
23993 2017-05-05  Bruno Haible  <bruno@clisp.org>
23995         locale-c++-tests: Update.
23996         * tests/test-locale-c++.cc (localeconv): Declare, missing since
23997         2012-03-25.
23999 2017-05-05  Bruno Haible  <bruno@clisp.org>
24001         inttypes-c++-tests: New module.
24002         * tests/test-inttypes-c++.cc: New file.
24003         (strtoimax): Declare, missing since 2012-01-05.
24004         (strtoumax): Declare, missing since 2012-01-05.
24005         * modules/inttypes-c++-tests: New file.
24007 2017-05-05  Bruno Haible  <bruno@clisp.org>
24009         dirent-c++-tests: Update.
24010         * tests/test-dirent-c++.cc (readdir): Declare, missing since 2011-09-13.
24011         (rewinddir): Declare, missing since 2011-09-13.
24012         (dirfd): Declare, missing since 2010-03-08.
24014 2017-05-04  Bruno Haible  <bruno@clisp.org>
24016         argp: Fix mistake in 2017-04-23 commit.
24017         * lib/argp-help.c (__argp_failure): If GNULIB_STRERROR_R_POSIX is set,
24018         assume that strerror_r returns 'int', not 'char *'.
24020 2017-05-04  Reuben Thomas  <rrt@sc3d.org>
24022         argp: Fix typo.
24023         * lib/argp-help.c (argp_doc): Fix spelling mistake in comment.
24025 2017-05-02  Paul Eggert  <eggert@cs.ucla.edu>
24027         utimens: port to Emacs + MS-Windows
24028         Skip the new MS-Windows-specific code if Emacs.
24029         * lib/utimens.c [EMACS_CONFIGUATION]:
24030         Avoid new MS-Windows-specific code.
24031         (USE_SETFILETIME): New macro.
24032         (fdutimens): Use it.
24034 2017-05-01  Paul Eggert  <eggert@cs.ucla.edu>
24036         tzset: update doc for TZ problems on MS-Windows
24037         * doc/posix-functions/ctime.texi,  doc/posix-functions/daylight.texi:
24038         * doc/posix-functions/localtime.texi, doc/posix-functions/mktime.texi:
24039         * doc/posix-functions/strftime.texi, doc/posix-functions/timezone.texi:
24040         * doc/posix-functions/tzname.texi, doc/posix-functions/tzset.texi:
24041         * doc/posix-functions/wcsftime.texi:
24042         Mention some issues with TZ under MS-Windows.
24044 2017-05-01  Bruno Haible  <bruno@clisp.org>
24046         copy-file: Fix build error on mingw.
24047         * modules/copy-file (Depends-on): Add 'close'.
24049 2017-05-01  Bruno Haible  <bruno@clisp.org>
24051         tzset: Work around TZ problem on native Windows.
24052         * m4/tzset.m4 (gl_FUNC_TZSET): Require AC_CANONICAL_HOST. On native
24053         Windows, set REPLACE_TZSET to 1.
24054         * lib/tzset.c (tzset): On native Windows, fix TZ if necessary, and
24055         invoke '_tzset' instead of 'tzset'.
24056         * doc/posix-functions/tzset.texi: Mention the native Windows workaround.
24058         * modules/time_rz (Depends-on): Add tzset.
24059         * lib/time_rz.c (tzset): Remove fallback definition.
24060         * m4/time_rz.m4 (gl_TIME_RZ): Don't test for tzset.
24062 2017-05-01  Bruno Haible  <bruno@clisp.org>
24064         mktime: Fix dependencies.
24065         * modules/mktime (Depends-on): Add 'time'.
24067 2017-05-01  Bruno Haible  <bruno@clisp.org>
24069         New module 'localtime-buffer', split off from module 'gettimeofday'.
24070         * lib/localtime-buffer.h: New file.
24071         * lib/localtime-buffer.c: New file, extracted from lib/gettimeofday.c.
24072         * lib/time.in.h (tzset): New declaration.
24073         (localtime, gmtime): Don't test GNULIB_GETTIMEOFDAY.
24074         * lib/tzset.c: New file, extracted from lib/gettimeofday.c.
24075         * lib/gettimeofday.c: Include localtime-buffer.h. Remove code that was
24076         moved to lib/localtime-buffer.c or lib/tzset.c.
24077         * m4/localtime-buffer.m4: New file.
24078         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TZSET,
24079         HAVE_TZSET, REPLACE_TZSET.
24080         * m4/tzset.m4 (gl_FUNC_TZSET): Move code from m4/gettimeofday.m4 to
24081         here, with modifications. Set HAVE_TZSET, REPLACE_TZSET. Invoke
24082         gl_LOCALTIME_BUFFER_NEEDED.
24083         (gl_FUNC_TZSET_CLOBBER): Don't require gl_HEADER_SYS_TIME_H; not needed
24084         since 2007-01-18.
24085         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Remove code that deals with
24086         tzset.
24087         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require gl_LOCALTIME_BUFFER_DEFAULTS.
24088         Invoke gl_LOCALTIME_BUFFER_NEEDED instead of
24089         gl_GETTIMEOFDAY_REPLACE_LOCALTIME.
24090         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Remove macro.
24091         * modules/localtime-buffer: New file.
24092         * modules/time (Depends-on): Remove 'gettimeofday'.
24093         (Makefile.am): Substitute GNULIB_TZSET, HAVE_TZSET,
24094         REPLACE_TZSET. Don't substitute GNULIB_GETTIMEOFDAY.
24095         * modules/tzset (Description): Enable hyperlink to POSIX spec.
24096         (Files): Add lib/tzset.c.
24097         (Depends-on): Remove gettimeofday. Add localtime-buffer, time.
24098         (configure.ac): Arrange to conditionally compile lib/tzset.c. Invoke
24099         gl_TIME_MODULE_INDICATOR.
24100         * modules/gettimeofday (Depends-on): Add localtime-buffer.
24102 2017-05-01  Bruno Haible  <bruno@clisp.org>
24104         copy-file: Preserve sub-second time stamps.
24105         * lib/copy-file.c: Include stat-time.h, utimens.h instead of <utime.h>.
24106         (qcopy_file_preserving): Use 'struct timespec' and utimens() to
24107         transport the time stamps from the original file to the destination
24108         file.
24109         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for utime, utimes.
24110         * modules/copy-file (Depends-on): Add stat-time, utimns instead of
24111         utime-h.
24113 2017-05-01  Bruno Haible  <bruno@clisp.org>
24115         wctype-t: Fix problems if <wchar.h> gets included after <wctype.h>.
24116         * lib/wctype.in.h: Include not only <ctype.h> but also <wchar.h>. Do so
24117         also on MSVC.
24118         Reported by Eli Zaretskii <eliz@gnu.org>.
24120 2017-05-01  Bruno Haible  <bruno@clisp.org>
24122         wchar: Fix compilation error with the original mingw.org mingw.
24123         * lib/wchar.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24124         <stddef.h> instead.
24125         * m4/wint_t.m4 (gl_TYPE_WINT_T_PREREQ): New macro, extracted from
24126         gl_WCTYPE_H.
24127         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set HAVE_CRTDEFS_H here; require
24128         gl_TYPE_WINT_T_PREREQ instead.
24129         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_TYPE_WINT_T_PREREQ.
24130         * modules/wchar (Makefile.am): Substitute HAVE_CRTDEFS_H.
24131         Reported by Eli Zaretskii <eliz@gnu.org>.
24133 2017-04-30  Bruno Haible  <bruno@clisp.org>
24135         utimecmp: Add support for native Windows.
24136         * lib/utimecmp.c (SYSCALL_RESOLUTION): Set to 100 on native Windows.
24138 2017-04-30  Bruno Haible  <bruno@clisp.org>
24140         utimens: Add support for native Windows.
24141         * lib/utimens.c: Include <windows.h>, msvc-nothrow.h.
24142         (fdutimens): Provide a native Windows implementation, like utime.c with
24143         added tv_nsec support.
24144         * modules/utimens (Depends-on): Add msvc-nothrow, utime.
24145         Suggested by Tim Rühsen <tim.ruehsen@gmx.de>.
24147 2017-04-30  Bruno Haible  <bruno@clisp.org>
24149         wcsftime: New module.
24150         * lib/wchar.in.h (wcsftime): New declaration.
24151         * lib/wcsftime.c: New file.
24152         * m4/wcsftime.m4: New file.
24153         * m4/wchar_h.m4 (gl_WCHAR_H): Test for wcsftime declaration.
24154         (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_WCSFTIME,
24155         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24156         * modules/wchar (Makefile.am): Substitute GNULIB_WCSFTIME,
24157         HAVE_WCSFTIME, REPLACE_WCSFTIME.
24158         * modules/wcsftime: New file.
24159         * doc/posix-functions/wcsftime.texi: Mention the new module.
24161 2017-04-30  Bruno Haible  <bruno@clisp.org>
24163         strftime-fixes: New module.
24164         * lib/time.in.h (strftime): New declaration.
24165         * lib/strftime-fixes.c: New file.
24166         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Inline gl_FUNC_STRFTIME macro.
24167         (gl_FUNC_STRFTIME): Remove macro.
24168         * m4/strftime-fixes.m4: New file.
24169         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_STRFTIME,
24170         REPLACE_STRFTIME.
24171         * modules/time (Makefile.am): Substitute GNULIB_STRFTIME,
24172         REPLACE_STRFTIME.
24173         * modules/strftime-fixes: New file.
24174         * doc/posix-functions/strftime.texi: Mention the new module.
24176 2017-04-30  Bruno Haible  <bruno@clisp.org>
24178         mktime: Work around TZ problem on native Windows.
24179         * lib/mktime.c: Add #ifs to make the algorithmic workaround independent
24180         from the native Windows workaround.
24181         * m4/mktime.m4 (gl_FUNC_MKTIME_WORKS): New macro, extracted from
24182         gl_FUNC_MKTIME. If guessing, set gl_cv_func_working_mktime to
24183         'guessing no'.
24184         (gl_FUNC_MKTIME): Require it. Require AC_CANONICAL_HOST.
24185         Set REPLACE_MKTIME to 1 on native Windows. Define NEED_MKTIME_WORKING,
24186         NEED_MKTIME_WINDOWS.
24187         (gl_FUNC_MKTIME_INTERNAL): Require gl_FUNC_MKTIME_WORKS, not
24188         gl_FUNC_MKTIME. Set WANT_MKTIME_INTERNAL, not REPLACE_MKTIME. Define
24189         NEED_MKTIME_INTERNAL.
24190         * m4/timegm.m4 (gl_FUNC_TIMEGM): Require gl_FUNC_MKTIME_WORKS, not
24191         gl_FUNC_MKTIME. Cope with 'guessing yes' value.
24192         * modules/mktime-internal (configure.ac): Test WANT_MKTIME_INTERNAL,
24193         not REPLACE_MKTIME.
24194         * doc/posix-functions/mktime.texi: Mention the native Windows
24195         workaround.
24197 2017-04-30  Bruno Haible  <bruno@clisp.org>
24199         localtime: New module.
24200         * lib/time.in.h (localtime): Declare also if requested by module
24201         'localtime'.
24202         * lib/localtime.c: New file.
24203         * m4/localtime.m4: New file.
24204         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_LOCALTIME.
24205         * modules/time (Makefile.am): Substitute GNULIB_LOCALTIME.
24206         * modules/localtime: New file.
24207         * doc/posix-functions/localtime.texi: Mention the new module.
24209 2017-04-30  Bruno Haible  <bruno@clisp.org>
24211         ctime: New module.
24212         * lib/time.in.h (ctime): New declaration.
24213         * lib/ctime.c: New file.
24214         * m4/ctime.m4: New file.
24215         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_CTIME,
24216         REPLACE_CTIME.
24217         * modules/time (Makefile.am): Substitute GNULIB_CTIME, REPLACE_CTIME.
24218         * modules/ctime: New file.
24219         * doc/posix-functions/ctime.texi: Mention the new module.
24221 2017-04-30  Bruno Haible  <bruno@clisp.org>
24223         gettimeofday: Provide higher resolution on native Windows.
24224         * lib/gettimeofday.c: Don't include <sys/timeb.h>.
24225         (GetSystemTimePreciseAsFileTimeFuncType): New variable.
24226         (initialize): Initialize it.
24227         (gettimeofday) [WINDOWS_NATIVE]: Use it, and convert from FILETIME to
24228         'struct timeval'. Don't use _ftime().
24229         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): Don't test for
24230         <sys/timeb.h> and _ftime.
24232 2017-04-30  Bruno Haible  <bruno@clisp.org>
24234         Document the problem with the Cygwin environment variable TZ.
24235         * doc/posix-functions/tzset.texi: Add note about TZ.
24236         * doc/posix-functions/ctime.texi: Likewise.
24237         * doc/posix-functions/localtime.texi: Likewise.
24238         * doc/posix-functions/mktime.texi: Likewise.
24239         * doc/posix-functions/strftime.texi: Likewise.
24240         * doc/posix-functions/wcsftime.texi: Likewise.
24241         * doc/pastposix-functions/ftime.texi: Likewise.
24243 2017-04-30  Bruno Haible  <bruno@clisp.org>
24245         utime-tests: New module.
24246         * tests/test-utime.c: New file, based on tests/test-utimens.h.
24247         * tests/test-utimens-common.h: Include <sys/stat.h>.
24248         * modules/utime-tests: New file.
24250 2017-04-29  Bruno Haible  <bruno@clisp.org>
24252         utime: New module.
24253         * lib/utime.in.h: Add comment for snippets.
24254         (utime): New declaration.
24255         * lib/utime.c: New file.
24256         * m4/utime.m4: New file.
24257         * m4/utime_h.m4 (gl_UTIME_H): Test for utime declaration.
24258         (gl_UTIME_H_DEFAULTS): Initialize GNULIB_UTIME, HAVE_UTIME,
24259         REPLACE_UTIME.
24260         * modules/utime-h (Depends-on): Add snippets.
24261         (Makefile.am): Substitute GNULIB_UTIME, HAVE_UTIME, REPLACE_UTIME.
24262         Insert snippets.
24263         * modules/utime: New file.
24264         * doc/posix-functions/utime.texi: Mention the new module.
24266 2017-04-29  Bruno Haible  <bruno@clisp.org>
24268         utime-h: Modernize handling of 'struct utimbuf'.
24269         * lib/utime.in.h: Include next <utime.h> if it exists.
24270         (utimbuf): Define to _utimbuf on native Windows.
24271         * m4/utime_h.m4 (gl_UTIME_H): Check for prerequisites of include_next.
24272         Set UTIME_H on native Windows.
24273         (gl_UTIME_MODULE_INDICATOR, gl_HEADER_UTIME_H_DEFAULTS): New macros.
24274         * modules/utime-h (Depends-on): Add include_next.
24275         (Makefile.am): Substitute also HAVE_UTIME_H, INCLUDE_NEXT,
24276         PRAGMA_SYSTEM_HEADER, PRAGMA_COLUMNS, NEXT_UTIME_H.
24278         * lib/utimens.c (utimbuf): Remove fallback definition.
24279         * m4/utimens.m4 (gl_UTIMENS): Don't require
24280         gl_CHECK_TYPE_STRUCT_UTIMBUF.
24281         * m4/utimbuf.m4: Remove file.
24282         * modules/utimens (Files): Remove m4/utimbuf.m4.
24284 2017-04-29  Bruno Haible  <bruno@clisp.org>
24286         Make use of module 'utime-h'.
24287         * modules/copy-file (Depends-on): Add utime-h.
24288         * lib/copy-file.c: Assume that <utime.h> exists.
24289         * m4/copy-file.m4 (gl_COPY_FILE): Don't test for <utime.h>.
24291         * modules/utimens (Depends-on): Add utime-h.
24292         * lib/utimens.c: Assume that <utime.h> exists.
24294 2017-04-29  Bruno Haible  <bruno@clisp.org>
24296         utime-h: New module.
24297         * m4/utime_h.m4: New file.
24298         * lib/utime.in.h: New file.
24299         * modules/utime-h: New file.
24300         * doc/posix-headers/utime.texi: Mention the new module.
24302         * tests/test-utime-h.c: New file.
24303         * modules/utime-h-tests: New file.
24305 2017-04-30  Bruno Haible  <bruno@clisp.org>
24307         Fix a few typos.
24308         * m4/fstat.m4 (gl_FUNC_FSTAT): Require AC_CANONICAL_HOST.
24309         * m4/stat.m4 (gl_FUNC_STAT): Fix comment.
24310         * doc/posix-functions/fstat.texi: Fix a plural typo.
24311         * doc/posix-functions/stat.texi: Likewise.
24312         * m4/include_next.m4: Update comments.
24314 2017-04-29  Bruno Haible  <bruno@clisp.org>
24316         error: Fix mistake in 2017-04-23 commit.
24317         * lib/error.c (print_errno_message): If GNULIB_STRERROR_R_POSIX is set,
24318         assume that strerror_r returns 'int', not 'char *'.
24320 2017-04-29  Bruno Haible  <bruno@clisp.org>
24322         stat: Fix time_t values and other problems on native Windows platforms.
24323         * doc/posix-functions/stat.texi: Mention the problem with the Microsoft
24324         implementations of stat().
24325         * lib/stat.c: Include filename.h instead of dosname.h. Include
24326         malloca.h, stat-w32.h.
24327         (is_unc_root): New function.
24328         (rpl_stat): New implementation for native Windows. Remove
24329         REPLACE_FUNC_STAT_DIR code.
24330         * m4/stat.m4 (gl_FUNC_STAT): On native Windows, set REPLACE_STAT always.
24331         Don't define REPLACE_FUNC_STAT_DIR.
24332         (gl_PREREQ_STAT): Require gl_HEADER_SYS_STAT_H.
24333         * modules/stat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24334         (Depends-on): Remove dosname. Add filename, malloca.
24335         (configure.ac): Also compile lib/stat-w32.c.
24337 2017-04-29  Bruno Haible  <bruno@clisp.org>
24339         fstat: Fix time_t values on native Windows platforms.
24340         * doc/posix-functions/fstat.texi: Mention the problem with st_*time.
24341         * lib/stat-w32.h: New file.
24342         * lib/stat-w32.c: New file.
24343         * lib/fstat.c: Don't include msvc-inval.h. Include msvc-nothrow.h,
24344         stat-w32.h instead.
24345         (fstat_nothrow): Remove function.
24346         (rpl_fstat): Implement by means of _gl_fstat_by_handle.
24347         * m4/fstat.m4 (gl_FUNC_FSTAT): On native Windows, set REPLACE_FSTAT
24348         always.
24349         (gl_PREREQ_FSTAT): Require gl_HEADER_SYS_STAT_H.
24350         * modules/fstat (Files): Add lib/stat-w32.h, lib/stat-w32.c.
24351         (Depends-on): Remove msvc-inval. Add pathmax, msvc-nothrow.
24352         (configure.ac): Also compile lib/stat-w32.c.
24354 2017-04-29  Paul Eggert  <eggert@cs.ucla.edu>
24356         getopt: port to Solaris 10 with circa-1997 glibc getopt.h
24357         Problem reported by Assaf Gordon and Gavin Smith in:
24358         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00157.html
24359         * lib/getopt-pfx-ext.h (_getopt_internal) [__GETOPT_PREFIX]:
24360         #define this, too.
24362 2017-04-29  Bruno Haible  <bruno@clisp.org>
24364         strerror_r-posix: Fixes for MSVC 14.
24365         * lib/strerror_r.c: Include <stdarg.h>.
24366         (strerror_r): Provide error messages for errno values 100...140.
24367         * doc/posix-functions/strerror_r.texi: Mention the MSVC 14 problem.
24369 2017-04-28  Bruno Haible  <bruno@clisp.org>
24371         noreturn: New module.
24372         * lib/noreturn.h: New file.
24373         * modules/noreturn: New file.
24374         * tests/test-noreturn.c: New file.
24375         * modules/noreturn-tests: New file.
24376         * tests/test-noreturn-c++.cc: New file.
24377         * modules/noreturn-c++-tests: New file.
24379 2017-04-27  Bruno Haible  <bruno@clisp.org>
24381         wctype-h: Fix compilation error with the original mingw.org mingw.
24382         * m4/wctype_h.m4 (gl_WCTYPE_H): Test for <crtdefs.h>. Set
24383         HAVE_CRTDEFS_H.
24384         * modules/wctype-h (Makefile.am): Substitute HAVE_CRTDEFS_H.
24385         * lib/wctype.in.h (rpl_wint_t): If <crtdefs.h> does not exist, include
24386         <stddef.h> instead.
24387         Reported and proposed by Eli Zaretskii <eliz@gnu.org>.
24389 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24391         nap.h: Fix compilation on non windows platforms
24392         * tests/nap.h: Move misplaced endif.
24394 2017-04-26  Pádraig Brady  <P@draigBrady.com>
24395         and Paul Eggert  <eggert@cs.ucla.edu>
24397         time_rz: fix heap buffer overflow vulnerability
24398         Reported and analyzed at https://bugzilla.redhat.com/CVE-2017-7476
24399         * lib/time_rz.c (save_abbr): Rearrange the calculation determining
24400         whether there is enough buffer space available, thus avoiding
24401         the problematic promotion of signed to unsigned causing an invalid
24402         comparison when zone_copy is more than ABBR_SIZE_MIN bytes beyond
24403         the start of the buffer.
24404         * tests/test-parse-datetime.c (main): Add a test case written by
24405         Paul Eggert, which overwrites enough of the heap so that
24406         standard glibc will fail with "free(): invalid pointer"
24407         without the patch applied.
24409 2017-04-26  Paul Eggert  <eggert@cs.ucla.edu>
24411         xalloc: add missing integer overflow check
24412         * lib/xalloc.h (x2nrealloc): Also check for multiplication
24413         overflow when P is null.
24415 2017-04-25  Paul Eggert  <eggert@cs.ucla.edu>
24417         parse-datetime: make it standalone
24418         * lib/parse-datetime.y: Include <stdarg.h>, for va_start etc.
24419         (_GL_ATTRIBUTE_FORMAT): New macro.
24420         These are needed to get './gnulib-tool --test parse-datetime' to work.
24422 2017-04-23  Bruno Haible  <bruno@clisp.org>
24424         nap.h: Port to native Windows.
24425         * tests/nap.h (nap_get_stat): Renamed from get_stat. Remove argument fd;
24426         use nap_fd instead. On native Windows, close and reopen nap_fd.
24427         (nap_works): Don't compare the ctimes, because on native Windows, these
24428         are the creation times.
24429         (nap): Update.
24431 2017-04-23  Bruno Haible  <bruno@clisp.org>
24433         nap.h: Fix logic.
24434         * tests/nap.h (nap): Avoid signed integer overflow in loop.
24436 2017-04-23  Bruno Haible  <bruno@clisp.org>
24438         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
24439         * modules/strerror_r-posix (configure.ac): Invoke gl_MODULE_INDICATOR.
24440         * lib/error.c: Test GNULIB_STRERROR_R_POSIX before testing
24441         HAVE_DECL_STRERROR_R, HAVE_STRERROR_R, or STRERROR_R_CHAR_P.
24442         * lib/argp-help.c (__argp_failure): Likewise.
24444 2017-04-23  Bruno Haible  <bruno@clisp.org>
24446         strerror_r-posix: Revert commits from 2016-10-16,2016-11-04,2016-11-14.
24447         * m4/strerror_r.m4: Revert changes since 2016-10-16.
24448         * lib/strerror_r.c: Likewise.
24450 2017-04-23  Paul Eggert  <eggert@cs.ucla.edu>
24452         Target a C99 subset, not a C89 subset
24453         For many years Gnulib has targeted C89 and has resisted using C99
24454         features, as some Gnulib-using programs still wanted to target
24455         C89.  As this no longer seems to be the case, relax the porting
24456         requirements to allow some C99 features.  This is merely a change
24457         to the documentation, to give other Gnulib developers a chance to
24458         weigh in on the topic.
24459         * doc/extern-inline.texi (extern inline):
24460         * doc/gnulib-readme.texi (Portability guidelines):
24461         * doc/gnulib-tool.texi (Initial import):
24462         * doc/gnulib.texi (Header files):
24463         Modernize to talk about C99 and C11 instead of C89 and C99.
24464         * doc/gnulib-readme.texi (Portability guidelines):
24465         Now a section, not merely a subsection, so that it
24466         can be split up.  Modernize a bit.
24467         (C language versions, C99 features assumed)
24468         (C99 features avoided):
24469         New sections.
24471 2017-04-23  Bruno Haible  <bruno@clisp.org>
24473         doc: New section "Modules that modify the way other modules work".
24474         * doc/gnulib.texi (Modules that modify the way other modules work): New
24475         section.
24477 2017-04-23  Bruno Haible  <bruno@clisp.org>
24479         stat-time: Update comments.
24480         * lib/stat-time.h: Fix reference regarding st_ctime on Windows.
24481         * tests/test-utimens-common.h: Add reference regarding st_ctime on
24482         Windows.
24484 2017-04-01  Bruno Haible  <bruno@clisp.org>
24486         glob: Fix more memory leaks.
24487         * lib/glob.c (glob): Free allocated memory before returning.
24488         Reported by Coverity via Tim Rühsen.
24490 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24492         poll: improve fast check for out-of-range NFD
24493         * lib/poll.c: Do not include intprops.h.
24494         (poll): Compare NFD to INT_MAX, not to TYPE_MAXIMUM (nfds_t) / 2.
24495         * modules/poll (Depends-on): Remove intprops.
24497         ftoastr: cite a newer paper
24498         * lib/ftoastr.c (FTOASTR): In comment, cite Andrysco et al. 2016
24499         instead of Loitsch 2010.
24501 2017-04-22  Bruno Haible  <bruno@clisp.org>
24503         poll: Enable argument check also in the Windows implementation.
24504         * lib/poll.c (poll) [WINDOWS_NATIVE]: Check value of nfd correctly.
24505         Reported by Paul Eggert.
24507 2017-04-22  Bruno Haible  <bruno@clisp.org>
24509         getlogin_r: Work around bug in Mac OS X 10.12.
24510         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test also against the Mac OS X
24511         bug.
24512         * lib/getlogin_r.c (getlogin_r): When getlogin_r returns a string of the
24513         given size minus 1, call getlogin_r a second time, on a larger buffer.
24514         * modules/getlogin_r (Depends-on): Add malloca.
24515         * doc/posix-functions/getlogin_r.texi: Mention the Mac OS X bug.
24517 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24519         parse-datetime: fix %z and prefer signed int
24520         %z problem reported by Pádraig Brady in:
24521         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00103.html
24522         While fixing it, I decided to prefer signed ints to size_t, as
24523         they are less error-prone (e.g., ubsan catches overflow).
24524         * lib/parse-datetime.y (textint, parser_control, lookup_word, yylex)
24525         (parse_datetime2): Prefer ptrdiff_t to size_t for sizes and object
24526         counts, since signed integers make for better debugging.
24527         (date): Don’t assume %z works in printf formats.
24528         (debug_strfdatetime, debug_strfdate, debug_strftime): Use int for
24529         sizes of buffers known to be small, e.g., because we’re using snprintf.
24530         (parse_datetime2): Simplify call to debug_mktime_not_ok.
24532 2017-04-22  Bruno Haible  <bruno@clisp.org>
24534         *printf: Work around rounding bug on Mac OS X.
24535         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Test for Mac OS X 10.12 bug.
24536         * doc/posix-functions/*printf.texi: Mention the rounding bugs of
24537         Mac OS X and FreeBSD.
24538         * doc/glibc-functions/*printf.texi: Likewise.
24540 2017-04-22  Bruno Haible  <bruno@clisp.org>
24542         vasnprintf tests: Avoid warnings.
24543         * tests/test-vasnprintf-posix3.c (test_function, my_asnprintf,
24544         test_vasnprintf, test_asnprintf): Don't define if there's nothing to
24545         test.
24547 2017-04-22  Bruno Haible  <bruno@clisp.org>
24549         sys_file tests: Avoid warning.
24550         * tests/test-sys_file.c (main): Add a default clause to the switch
24551         statement.
24553 2017-04-22  Bruno Haible  <bruno@clisp.org>
24555         sethostname: Update doc.
24556         * doc/glibc-functions/sethostname.texi: Mention differing prototype on
24557         Mac OS X.
24559 2017-04-22  Bruno Haible  <bruno@clisp.org>
24561         quotearg tests: Avoid warnings.
24562         * tests/test-quotearg.c: Don't include test-quotearg.h if ENABLE_NLS is
24563         false.
24565 2017-04-22  Bruno Haible  <bruno@clisp.org>
24567         poll: Enable argument check.
24568         * lib/poll.c: Include intprops.h.
24569         (poll): Check value of nfd correctly.
24570         * modules/poll (Depends-on): Add intprops.
24572 2017-04-22  Bruno Haible  <bruno@clisp.org>
24574         get-rusage-data: Avoid warnings on Mac OS X.
24575         * lib/get-rusage-data.c: On Mac OS X, don't define
24576         get_rusage_data_via_setrlimit nor get_rusage_data_via_iterator.
24577         (get_rusage_data) [Mac OS X]: Just return 0.
24579 2017-04-22  Bruno Haible  <bruno@clisp.org>
24581         xbinary-io: Fix build error.
24582         * modules/xbinary-io (Depends-on): Add gettext-h.
24583         * lib/xbinary-io.c: Include gettext.h and define _().
24584         Reported by Gisle Vanem <gisle.vanem@gmail.com> in
24585         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00089.html>.
24587 2017-04-22  Paul Eggert  <eggert@cs.ucla.edu>
24589         parse-datetime: overflow and debug cleanups
24590         This long patch was triggered by this bug report from Ruediger Meier:
24591         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00028.html
24592         I fixed the bug he noted, then found some others nearby, and then
24593         still others.  Oh my goodness, there were a lot of bugs.  I cleaned
24594         up some of the code to follow GNU standards while I was at it.
24595         * lib/parse-datetime.y (ISDIGIT): Remove; all callers changed to
24596         use c_isdigit.
24597         (EPOCH_YEAR): Remove; unused.
24598         (TM_YEAR_BASE): Now an enum rather than a macro.
24599         (HOUR, debug_strfdatetime): Multiply hour by 3600, not 60, to get
24600         time zone offset, since timezones now are in terms of seconds and
24601         not minutes.
24602         (long_time_t): Remove.  All uses replaced by time_t or intmax_t as
24603         appropriate.  Verify that intmax_t is wide enough.
24604         (time_overflow, time_zone_str): New functions, used to deal
24605         more reliably with overflow.
24606         (dbg_printf): Add printf attribute, to help catch integer width errors.
24607         (textint, relative_time, parser_control, time_zone_hhmm, set_hhmmss)
24608         (%union, to_hour, yylex, parse_datetime2):
24609         Use intmax_t instead of long int and/or long_time_t.
24610         All uses changed.
24611         (DBGBUFSIZE): Move earlier.
24612         (relative_time, set_hhmmss, parser_control):
24613         Just use int for nanoseconds and for time zones; that’s wide enough.
24614         (parser_control): Use bool for members like year_seen that can
24615         be booleans instead of counters.  All uses changed.
24616         Remove debug_default_input_timezone; no longer needed.
24617         All uses removed.
24618         (apply_relative_time): Return a bool overflow flag.
24619         All uses changed to check for overflow.
24620         (apply_relative_time, zone, date, relunit, relunit_snumber)
24621         (signed_seconds, unsigned_seconds, yylex, parse_datetime2):
24622         Check for integer overflow portably.
24623         (str_days): Use just int for N, as it’s wide enough.
24624         Prefer 2D char arrays to arrays of char * when it looks like
24625         2D is a win on typical platforms.
24626         Prefer snprintf to strncpy/strncat, for simplicity;
24627         all buffers are smaller than INT_MAX so this is safe.
24628         (TIME_ZONE_BUFSiZE, TM_YEAR_BUFSIZE): New constants.
24629         (debug_print_current_time): Don’t assume tv_nsec is of type long,
24630         as this is not true on x32.  Output "." before any nanoseconds.
24631         (debug_print_current_time, parse_datetime2):
24632         Output local zones using a more-consistent format.
24633         (debug_print_current_time, date, parse_datetime2):
24634         (main) [TEST]:
24635         Don’t assume time_t is the same width as long.
24636         (print_rel_part): New function, replacing ...
24637         (PRINT_REL_PART): ... this macro, which was removed.  All uses changed.
24638         (debug_print_relative_time): Use bool for boolean.
24639         (local_zone): dsts_seen now counts only tDST instances.
24640         (date): Fix printf of size_t to use %z.  Do not assume numeric
24641         tokens have negative values merely because the context suggests
24642         a syntax with "-" separating tokens.
24643         (time_zone_hhmm): Return bool success indicator, which checks for
24644         overflow.  Store result into PC->time_zone instead.  All callers
24645         changed.
24646         (tm_year_str): New function.  Return a bool success indicator and
24647         store the result into a buffer.  All callers changed.  Output the
24648         numerically correct string even if adding 1900 to the year would
24649         overflow.
24650         (to_tm_year): New function, replacing the old to_year.  All
24651         callers changed.
24652         (tm_diff): Sync with glibc.
24653         (lookup_word): Use to_uchar instead of doing it by hand.
24654         (TZBUFSIZE): Now local to the only function that needs it.
24655         (debug_strfdatetime): Simplify now that time zones are int seconds.
24656         (debug_strfdate): Work even if tm_year + 1900 would overflow.
24657         (get_effective_timezone): Remove.  All uses removed.
24658         (parse_datetime2): Use fprintf in pieces instead of snprintfing
24659         to a fixed-size buffer.  Don’t assume that gmtime succeeds iff
24660         localtime succeeds.  Use tm_gmtoff if available.  Simplify how
24661         ‘goto fail;’ works in conjunction with the ‘ok’ flag.
24662         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Don’t define
24663         TIME_T_FITS_IN_LONG_INT, as it is no longer needed.
24664         * modules/parse-datetime (Depends-on): Add inttypes.
24666 2017-04-21  Bruno Haible  <bruno@clisp.org>
24668         gettext-h: Avoid -Wundef warning.
24669         * lib/gettext.h: Test the value of ENABLE_NLS only if it is defined.
24670         Reported by Tim Rühsen <tim.ruehsen@gmx.de> in
24671         <https://lists.gnu.org/r/bug-gnulib/2017-04/msg00022.html>.
24673 2017-04-05  Tim Rühsen  <tim.ruehsen@gmx.de>
24675         error: Avoid "function declaration isn't a prototype" warning.
24676         * lib/error.c (strerror_r): Turn K&R C prototype to an ANSI C prototype.
24678 2017-04-21  Bruno Haible  <bruno@clisp.org>
24680         vasnprintf: Fix for MSVC 14.
24681         * lib/vasnprintf.c (USE_MSVC__SNPRINTF): New macro.
24682         Everywhere, use !HAVE_SNPRINTF_RETVAL_C99 || USE_MSVC__SNPRINTF instead
24683         of !HAVE_SNPRINTF_RETVAL_C99.
24685 2017-04-21  Bruno Haible  <bruno@clisp.org>
24687         mbrtowc tests: Fix test failures on MSVC 14.
24688         * tests/test-mbrtowc-w32.c (test_one_locale): Accept MSVC's conversion
24689         behaviour for invalid input.
24691 2017-04-21  Bruno Haible  <bruno@clisp.org>
24693         mbsinit: Fix for MSVC 14.
24694         * lib/mbsinit.c (mbsinit): If GNULIB_defined_mbstate_t, provide an
24695         implementation that is in sync with mbrtowc.c. On other platforms, use
24696         an adequate ad-hoc implementation.
24698 2017-04-21  Bruno Haible  <bruno@clisp.org>
24700         Fix test-mbrtowc5.sh failure on native Windows.
24701         * lib/setlocale.c (setlocale_unixlike): Accept "POSIX" as an alias for
24702         "C".
24704 2017-04-21  Bruno Haible  <bruno@clisp.org>
24706         Avoid accidental use of native Windows APIs on Cygwin.
24707         * lib/getaddrinfo.c (WINDOWS_NATIVE): Don't define on Cygwin.
24708         * lib/localcharset.c (WINDOWS_NATIVE): Likewise.
24709         * lib/localename.c (WINDOWS_NATIVE): Likewise.
24711 2017-04-20  Bruno Haible  <bruno@clisp.org>
24713         Remove red warnings from the generated MODULES.html.
24714         * modules/fcntl (Description): Disambiguate function references.
24715         * modules/getcwd-lgpl (Description): Likewise.
24716         * modules/hostent (Description): Likewise.
24717         * modules/servent (Description): Likewise.
24718         * modules/tempname (Description): Likewise.
24720 2017-04-20  Bruno Haible  <bruno@clisp.org>
24722         verify tests: Fix spurious failure with parallel make.
24723         * gnulib-tool (func_emit_tests_Makefile_am): Emit initialization of
24724         EXTRA_PROGRAMS.
24725         * tests/test-verify.sh: Build test-verify-try.o, not test-verify.o.
24726         * tests/test-verify-try.c: New file.
24727         * modules/verify-tests (Files): Add it.
24728         (EXTRA_PROGRAMS): Add test-verify-try.
24729         (MOSTLYCLEANFILES): Update accordingly.
24730         Reported by Adam James Stewart <ajstewart@anl.gov>.
24732 2017-04-18  Bruno Haible  <bruno@clisp.org>
24734         vma-iter: Fix compilation error on Solaris 7.
24735         * lib/vma-iter.c (vma_iterate): Treat missing MAP_ANONYMOUS on Solaris
24736         like on IRIX, OSF/1.
24737         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24739 2017-04-18  Bruno Haible  <bruno@clisp.org>
24741         vma-iter: Fix conflict with module 'largefile' on 32-bit Solaris 9.
24742         * modules/vma-iter (configure.ac): Test whether <sys/procfs.h> can be
24743         included.
24744         * lib/vma-iter.c: On Solaris, test HAVE_SYS_PROCFS_H before including
24745         <sys/procfs.h>.
24746         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Don't define on Solaris when
24747         <sys/procfs.h> cannot be included.
24748         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
24750 2017-04-18  Bruno Haible  <bruno@clisp.org>
24752         getopt-gnu: Add comments.
24753         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Add comments.
24754         * modules/getopt-gnu (configure.ac): Likewise.
24756 2017-04-16  Paul Eggert  <eggert@cs.ucla.edu>
24758         regex: port better to Solaris 10
24759         Solaris 10 <locale.h> includes <libintl.h>, which #defines
24760         gettext, and this causes a double #define.
24761         Problem reported by Gavin Smith in:
24762         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00056.html
24763         * lib/regex_internal.h (gettext): #undef before #defining.
24765 2017-04-15  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24767         intprops: improve comments
24768         * lib/intprops.h: Improve and shorten commentary.
24769         For the record, if we ever run into a pedantic compiler that
24770         behaves differently from GCC when converting an out-of-range value
24771         to a signed integer, we can work around the problem with something
24772         like the following code, where UCT is the signed counterpart of T
24773         (UCT is sometimes narrower than UT) and all callers are changed
24774         accordingly:
24775         #if __SUNPRO_C <= 0x5120
24776         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24777            ((t) ((ut) (a) op (ut) (b)))
24778         #else
24779         # define _GL_INT_OP_WRAPV_VIA_UNSIGNED(a, b, op, uct, ut, t) \
24780            (TYPE_MINIMUM (t) <= (uct) ((ut) (a) op (ut) (b)) \
24781             ? ((t) (uct) (((ut) (a) op (ut) (b)) - TYPE_MINIMUM (t)) \
24782                + TYPE_MINIMUM (t)) \
24783             : (t) (uct) ((ut) (a) op (ut) (b)))
24784         #endif
24786 2017-04-14  Paul Eggert  <eggert@Penguin.CS.UCLA.EDU>
24788         intprops: try to avoid tickling similar bugs
24789         * lib/intprops.h (_GL_INT_OP_CALC): Document that UT no longer
24790         needs to be the same width as T; it can be wider.
24791         Change callers so that UT is at least as wide as unsigned int,
24792         as I suspect that this is less likely to run into compiler bugs.
24794         intprops: port to Oracle Studio 12.3 x86
24795         Problem reported by Gavin Smith in:
24796         http://lists.gnu.org/r/bug-gnulib/2017-04/msg00049.html
24797         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
24798         Convert unsigned to signed via the usual rather than the standard way,
24799         to avoid a compiler bug in Oracle Studio 12.3 x86.
24801 2017-04-08  Paul Eggert  <eggert@cs.ucla.edu>
24803         getopt: prefer - to _ in new file names
24804         * lib/getopt-cdefs.in.h: Rename from lib/getopt_cdefs.in.h.
24805         * lib/getopt-core.h: Rename from lib/getopt_core.h.
24806         * lib/getopt-ext.h: Rename from lib/getopt_ext.h.
24807         * lib/getopt-pfx-core.h: Rename from lib/getopt_pfx_core.h.
24808         * lib/getopt-pfx-ext.h: Rename from lib/getopt_pfx_ext.h.
24809         All uses changed.
24811         getopt: port recent getopt changes to macOS
24812         Problem reported by Harald Maier (Bug#26398).
24813         The macOS C compiler uses __nonnull for its own purposes and that
24814         clashes with glibc's __nonnull.
24815         * lib/getopt.in.h: Add comment for _GL_ARG_NONNULL snippet.
24816         * lib/getopt_cdefs.in.h (__nonnull): Remove.
24817         * lib/getopt_core.h (getopt):
24818         * lib/getopt_ext.h (getopt_long, getopt_long_only):
24819         Use _GL_ARG_NONNULL, not __nonnull.
24820         * lib/unistd.in.h: Move snippet hooks to before where the getopt
24821         .h files are included, so that _GL_ARG_NONNULL is defined in time.
24822         * modules/getopt-posix (Depends-on): Add snippet/arg-nonnull.
24823         (getopt.h): Interpolate _GL_ARG_NONNULL snippet.
24825 2017-04-06  Paul Eggert  <eggert@cs.ucla.edu>
24827         getopt-gnu: omit some duplicate code
24828         * m4/getopt.m4 (gl_FUNC_GETOPT_GNU): Don’t require
24829         gl_FUNC_GETOPT_POSIX, as the configure.ac code generated by
24830         gnulib-tool already does this.
24831         * modules/getopt-gnu (configure.ac): Omit code duplicated from
24832         getopt-posix, which we depend on.
24834         getopt-posix: use angle-bracket include
24835         * lib/getopt1.c: Include <config.h>, not "config.h".
24837 2017-04-06  Zack Weinberg  <zackw@panix.com>
24839         getopt: annotate files with relationship to glibc
24841         As the final act in this patchset, adjust the message at the top of
24842         each file to indicate which files are synced with glibc.  (This has
24843         already been done for most of the headers.)
24845         * lib/getopt.c, lib/getopt1.c, lib/getopt_int.h:
24846         Mention in top-of-file boilerplate that these files are shared
24847         between glibc and gnulib.
24850         getopt: split up getopt.in.h and eliminate __need_getopt
24852         Over in glibc, all of the __need macros are being phased out in favor
24853         of small headers that declare only the necessary components, as this
24854         is much simpler and less prone to bugs.  As getopt is shared with
24855         glibc, gnulib needs to do the same for __need_getopt.
24857         __need_getopt is misnamed; what it really means is "we want only the
24858         getopt features specified in POSIX, not the GNU extensions".  glibc
24859         placed the "meat" of getopt.h into getopt_core.h and getopt_ext.h;
24860         these files can be shared verbatim with gnulib.  The portability
24861         wrapper, on the other hand, they have renounced altogether; glibc's
24862         getopt.h will no longer be shared with gnulib at all.  In exchange,
24863         certain glibc-specific quirks (having to do with __posix_getopt) no
24864         longer need appear in gnulib's headers at all.
24866         This patch merges getopt_core.h and getopt_ext.h from glibc, and
24867         splits up the current gnulib-side portability wrapper into three
24868         additional headers: getopt_pfx_core.h and getopt_pfx_ext.h handle
24869         __GETOPT_PREFIX for their respective headers, getopt_cdefs.in.h
24870         handles things like __BEGIN_DECLS and __THROW, and getopt.in.h and
24871         unistd.in.h just use them.  All new files are clearly marked with
24872         whether they are shared with glibc.
24874         * lib/getopt.in.h: Eliminate __need_getopt.  Break up into ...
24875         * lib/getopt_core.h, lib/getopt_ext.h: ... these new files shared
24876         with glibc, and ...
24877         * lib/getopt_cdefs.in.h, lib/getopt_pfx_core.h
24878         * lib/getopt_pfx_ext.h: ... these new files not shared with glibc.
24879         * lib/unistd.in.h: Include getopt_cdefs.h and getopt_pfx_core.h,
24880         instead of defining __need_getopt and including the full getopt.h.
24882         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): Check for sys/cdefs.h.
24883         Define substitution variables GETOPT_CDEFS_H and HAVE_SYS_CDEFS_H.
24884         * modules/getopt-posix (Files): Add new headers and sort list.
24885         (Depends-on): No longer need snippet/arg-nonnull.
24886         (Makefile.am): Generate getopt_cdefs.h.
24889         getopt: better handling of ambiguous options
24891         glibc's getopt uses alloca to construct a linked list of possibilities
24892         for an "ambiguous" long option.  In gnulib, malloc should be used
24893         instead.  Providing for both cases complicates things a fair bit.
24895         This patch rewrites ambiguous-option handling to use a boolean vector
24896         instead of a linked list.  There is then only one allocation that
24897         might need freeing; in glibc it can honor __libc_use_alloca as usual,
24898         and in gnulib we define __libc_use_alloca to always be false, so we
24899         don't need ifdefs in the middle of the function.  This should also be
24900         slightly more efficient in the normal case of long options being fully
24901         spelled out -- I think most people aren't even aware they _can_
24902         sometimes abbreviate long options.
24904         One interesting consequence is that the list of possibilities is now
24905         printed in exactly the order they appear in the list of long options,
24906         instead of the first possibility being shuffled to the end.
24908         (The patch looks bigger than it really is because there's a fair bit
24909         of reindentation and code rearrangement.)
24911         * lib/getopt.c: When used standalone, define __libc_use_alloca
24912         as always false and alloca to abort if called.
24913         (process_long_option): Rewrite handling of ambiguous long options
24914         to use a single boolean vector, not a linked list; use
24915         __libc_use_alloca to decide whether to allocate this using alloca.
24918         getopt: refactor long-option handling
24920         There were two copies of the bulk of the code to handle long options.
24921         Now there is only one.
24923         This change temporarily removes the logic to avoid using alloca when
24924         standalone; the next patch in the series will restore it.
24926         * lib/getopt.c (process_long_option): New function split out
24927         from _getopt_internal_r.
24928         (_getopt_internal_r): Replace both copies of the long-option
24929         processing code with calls to process_long_option.
24932         getopt: tidy up _getopt_initialize a bit
24934         _getopt_data.__posixly_correct is completely redundant to
24935         _getopt_data.__ordering, and some work that logically belongs in
24936         _getopt_initialize was being done by _getopt_internal_r, making the
24937         code harder to understand.
24939         As a side effect, getenv will no longer be called if the first
24940         character of the options string is '+' or '-', which is probably a
24941         Good Thing.  (Perhaps we should have a flag character that
24942         specifically asks for the permutation behavior?)
24944         * lib/getopt_int.h (_getopt_data): Remove __posixly_correct field.
24945         * lib/getopt.c (_getopt_internal_r): Move some initialization code...
24946         (_getopt_initialize): ...here. Don't set d->__posixly_correct.
24949         getopt: merge from glibc: repetition reduction
24951         The definitions of the entry point functions 'getopt' and
24952         '__posix_getopt' can be made substantially less repetitive with a
24953         helper macro.
24955         While I was merging the const-correctness changes from gnulib into
24956         glibc I noticed there are still some unnecessary casts in
24957         _getopt_internal_r.
24959         * lib/getopt.c (getopt, __posix_getopt): Eliminate repetition with
24960         a macro.  Consistently cast 'argv' to 'char **' when calling
24961         _getopt_internal.
24962         (_getopt_internal_r): Remove unnecessary casts when calling exchange.
24965         getopt: clean up error reporting
24967         getopt can print a whole bunch of error messages, and when used
24968         standalone (from gnulib) it uses fprintf to do that.  But fprintf is a
24969         cancellation point and getopt isn't, and also applying fprintf to a
24970         stream in wide-character mode is not allowed.  So every single error
24971         reporting case has an #ifdef _LIBC block in which it calls internal
24972         libc functions instead.  The counterpart patch series in glibc makes
24973         it possible to simplify all of that down to a set of #defines at the
24974         top of the file; core code is written as if it is safe to just call
24975         fprintf, flockfile, and funlockfile.  (One caveat: it's *not* safe to
24976         call any *other* stdio functions.)
24978         * lib/getopt.c: When _LIBC is defined, define fprintf to
24979         __fxprintf_nocancel, flockfile to _IO_flockfile, and funlockfile
24980         to _IO_funlockfile.  When neither _LIBC nor
24981         _POSIX_THREAD_SAFE_FUNCTIONS is defined, define flockfile and
24982         funlockfile as no-ops.
24983         (_getopt_internal_r): Remove all internal #ifdef _LIBC blocks; the
24984         standalone error-printing code can now be used for libc as well.
24985         Add an flockfile/funlockfile pair around one case where the error
24986         message is printed in several chunks.  Don't use fputc.
24989         getopt: fix fencepost error in ambiguous-W-option handling
24991         getopt_long contains an undocumented (AFAICT) feature in which, if you
24992         put "W;" in the short-options list, then '-W foo' and '-Wfoo' are
24993         treated as equivalent to '--foo'.  This is implemented with a partial
24994         second copy of the code for handling long options, and that code
24995         increments optind one too many times when recovering from an ambiguous
24996         abbreviated option, which can cause the main loop to walk past the end
24997         of argv and crash.
24999         I discovered this while writing a test case that tries to exercise all
25000         of getopt's error reporting paths; I wouldn't be surprised to learn
25001         that this feature is never used by real applications.
25003         * lib/getopt.c (_getopt_internal_r): Don't increment
25004         d->optind a second time when reporting ambiguous -W options.
25007         getopt: clean up getopt.c and getopt1.c file headers
25009         In getopt.c, there is no need to include wchar.h at all, and it is
25010         safe nowadays to assume that stdlib.h does declare getenv (several
25011         other gnulib modules make this assumption).
25013         In getopt1.c, the #ifdef _LIBC block at the top can be simplified
25014         by using "" inclusions consistently, and there is no actual need to
25015         include stdlib.h (except in the #ifdef TEST block, where it should be
25016         unconditional), nor to provide a backup definition of NULL at all.
25018         * lib/getopt1.c: Simplify #ifdeffage at top of file.
25019         Move inclusion of stdlib.h to #ifdef TEST block and make
25020         unconditional.  Do not define NULL.
25021         * lib/getopt.c: Don't include wchar.h. No need to declare getenv.
25022         * m4/getopt.m4 (gl_PREREQ_GETENV): Delete.
25023         * modules/getopt-gnu, modules/getopt-posix: Don't call
25024         gl_PREREQ_GETENV.
25027         getopt: harmonize comments with glibc
25029         The comments explaining how the behavior of 'getopt' varies depending
25030         on whether it's the standalone version and whether there are special
25031         characters at the beginning of the options string were inconsistent
25032         between gnulib and glibc, and also out of sync with the code.
25034         * lib/getopt.c, lib/getopt_int.h: Harmonize comments with glibc.
25037         getopt: remove USE_NONOPTION_FLAGS
25039         getopt includes code to parse an environment variable named
25040         _XXX_GNU_nonoption_argv_flags_ (where XXX is the current process's PID
25041         in decimal); but all of it has been #ifdefed out since 2001, with no
25042         official way to turn it back on.
25044         According to commentary in glibc's config.h.in, bash version 2.0
25045         set this environment variable to indicate argv elements that were
25046         the result of glob expansion and therefore should not be treated
25047         as options, but the feature was "disabled later" because "it
25048         caused problems".  According to bash's CHANGES file, "later" was
25049         release 2.01; it gives no more detail about what the problems
25050         were.
25052         Version 2.0 of bash was released on the last day of 1996, and version
25053         2.01 in June of 1997.  Twenty years later, I think it is safe to
25054         assume that this environment variable isn't coming back.
25056         * lib/getopt_int.h: Remove all #ifdef USE_NONOPTION_FLAGS blocks.
25057         * lib/getopt.c: Likewise. Also remove SWAP_FLAGS and the
25058         __libc_argc and __libc_argv externs, which were only used by
25059         #ifdef USE_NONOPTION_FLAGS blocks.
25062         getopt: tabify, in preparation for merge with glibc
25064         glibc sticks to the GNU default of indenting with a mix of
25065         8-column tabs and spaces; make the gnulib copy match.
25067         getopt.h is not included because it is *not* going to be merged in its
25068         present form.
25070         * getopt.c, getopt1.c, getopt_int.h: Tabify.
25072 2017-04-02  Bruno Haible  <bruno@clisp.org>
25074         relocatable-lib-lgpl: Fix link error (regression from 2011-06-16).
25075         * modules/relocatable-lib-lgpl (configure.ac): Add AC_LIBOBJ invocation,
25076         like it was done in modules/relocatable-lib on 2011-05-21 and in
25077         modules/relocatable-prog on 2011-08-15.
25078         Reported by Reuben Thomas <rrt@sc3d.org>.
25080 2017-03-31  Bruno Haible  <bruno@clisp.org>
25082         glob: Fix invalid free() call.
25083         * lib/glob.c (glob): Reset malloc_home_dir when assigning a pointer to
25084         static storage to home_dir.
25085         Reported by Coverity via Tim Rühsen.
25087 2017-03-31  Bruno Haible  <bruno@clisp.org>
25089         glob: Fix memory leaks.
25090         * lib/glob.c (glob): Free allocated memory before returning.
25091         Reported by Coverity via Tim Rühsen.
25093 2017-03-31  Bruno Haible  <bruno@clisp.org>
25095         md5, sha1, sha256, sha512: Add comments regarding correctness.
25096         * lib/md5.h (buflen): Add comments regarding range.
25097         * lib/sha1.h (buflen): Likewise.
25098         * lib/sha256.h (buflen): Likewise.
25099         * lib/sha512.h (buflen): Likewise.
25100         * lib/md5.c (md5_process_bytes): Add comment why memmove is not needed.
25101         * lib/sha1.c (sha1_process_bytes): Likewise.
25102         * lib/sha256.c (sha256_process_bytes): Likewise.
25103         * lib/sha512.c (sha512_process_bytes): Likewise.
25104         Reported by Coverity via Tim Rühsen.
25106 2017-03-22  Paul Eggert  <eggert@cs.ucla.edu>
25108         getopt: merge from glibc
25109         This does not change anything substantial; it merely simplifies
25110         hypothetical merges back to glibc.
25111         * lib/getopt.c, lib/getopt.in.h, lib/getopt1.c, lib/getopt_int.h:
25112         Change copyright notice to match what is in glibc.
25113         * lib/getopt.c: Reorder includes to match glibc.  Remove uses of
25114         USE_IN_LIBIO.  Remove 'register'.  In __LIBC code, use
25115         __open_memstream rather than open_memstream and __glibc_likely
25116         instead of __builtin_expect.
25117         * lib/getopt.in.h (__posix_getopt) [!__GETOPT_PREFIX]: New decl.
25119 2017-03-21  Paul Eggert  <eggert@cs.ucla.edu>
25121         dfa: make [0-9] faster in non-C locales
25122         Problem reported by John P. Linderman (Bug#26193).
25123         * lib/dfa.c (parse_bracket_exp): Remove redundant assignment.
25124         If both ends of the range are ASCII digits, do not worry about
25125         multi-character collating sequences and the like.  Be consistent
25126         about using isalpha as a precondition for setbit_case_fold_c.
25128 2017-03-19  Bruno Haible  <bruno@clisp.org>
25130         lock: Fix compilation error with HP-UX IA64 cc.
25131         * lib/glthread/lock.h (pthread_rwlockattr_setkind_np): Don't declare
25132         weak on non-glibc platforms.
25134 2017-03-19  Paul Eggert  <eggert@cs.ucla.edu>
25136         stdalign: tweak version# and test for HP-UX IA64
25137         Problems reported by Bruno Haible in:
25138         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00078.html
25139         * lib/stdalign.in.h (_Alignas):
25140         * m4/stdalign.m4 (gl_STDALIGN_H):
25141         Use octal, not decimal, for __HP_cc version.  Perhaps HP formerly
25142         used octal (as that is how they document it), but it is decimal in
25143         practice now and the ancient implementations no longer matter.
25144         * tests/test-stdalign.c (main) [__HP_cc && __ia64]: Skip test.
25146 2017-03-19  Bruno Haible  <bruno@clisp.org>
25148         vma-iter: Add support for Solaris.
25149         * lib/vma-iter.c (vma_iterate): On Solaris, use the /proc filesystem
25150         approach.
25151         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on Solaris.
25152         * lib/get-rusage-as.c: Update comment about Solaris.
25153         * lib/get-rusage-data.c: Likewise.
25155 2017-03-19  Bruno Haible  <bruno@clisp.org>
25157         vma-iter: Prefer HP-UX specific API on HP-UX.
25158         * lib/vma-iter.c (vma_iterate): Move HP-UX specific implementation up.
25159         * lib/vma-iter.h: Update.
25160         Just in case HP-UX ever implements mquery().
25162 2017-03-18  Paul Eggert  <eggert@cs.ucla.edu>
25164         stdalign: restore previous behavior for HP-UX IA64
25165         See Bruno Haible's email in:
25166         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25167         which cites p 150 of a manual saying that 'aligned' works on Itanium.
25168         * lib/stdalign.in.h (_Alignas):
25169         Assume the '061200' applies to Itanium, not to PA-RISC.
25170         * m4/stdalign.m4 (gl_STDALIGN_H): Adjust to match stdalign.in.h.
25172 2017-03-17  Bruno Haible  <bruno@clisp.org>
25174         stat-time, timespec: Support use of the header files in C++ mode.
25175         * lib/stat-time.h: Add "C" linkage declaration.
25176         * lib/timespec.h: Likewise.
25178 2017-03-17  Bruno Haible  <bruno@clisp.org>
25180         stdalign: Make it work with HP-UX cc.
25181         * lib/stdalign.in.h (_Alignas): Don't define for HP-UX cc.
25182         * m4/stdalign.m4 (gl_STDALIGN_H): No need to enable the extra test
25183         for HP-UX cc.
25185 2017-03-17  Paul Eggert  <eggert@cs.ucla.edu>
25187         flexmember: try to detect HP-UX 11.31 cc bug
25188         Problem reported by Bruno Haible in:
25189         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00066.html
25190         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
25191         Attempt to detect bug in HP-UX 11.31 cc.
25193 2017-03-16  Bruno Haible  <bruno@clisp.org>
25195         stdint: Fix test compilation failure with HP-UX 11 cc.
25196         * lib/stdint.in.h (_STDINT_MIN): Remove macro.
25197         (_STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN): New macros.
25198         (PTRDIFF_MIN, SIG_ATOMIC_MIN, WCHAR_MIN, WINT_MIN): Define using
25199         _STDINT_UNSIGNED_MIN, _STDINT_SIGNED_MIN.
25201 2017-03-14  Bruno Haible  <bruno@clisp.org>
25203         gnulib-tool: Don't produce a tests directory with only snippet .h files.
25204         * gnulib-tool (func_modules_transitive_closure_separately): If
25205         testsrelated_modules ends up with no "real" modules, aside from
25206         modules with applicability 'all', set it to empty.
25208 2017-03-14  Bruno Haible  <bruno@clisp.org>
25210         vma-iter: Add support for HP-UX.
25211         * modules/vma-iter (configure.ac): Check for 'pstat_getprocvm'.
25212         * lib/vma-iter.c (vma_iterate): On HP-UX, use pstat_getprocvm().
25213         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on HP-UX.
25214         * lib/get-rusage-as.c: Update comment about HP-UX.
25215         * lib/get-rusage-data.c: Likewise.
25216         (get_rusage_data): Use get_rusage_data_via_setrlimit.
25218 2017-03-14  Bruno Haible  <bruno@clisp.org>
25220         limits-h: Make it work with HP-UX cc.
25221         * lib/limits.in.h (LLONG_MIN, LLONG_MAX, ULLONG_MAX): Define if not
25222         defined.
25224 2017-03-14  Bruno Haible  <bruno@clisp.org>
25226         Fix test failures on DragonFlyBSD.
25227         * tests/test-localeconv.c (main): Treat DragonFlyBSD like FreeBSD.
25228         * tests/test-select.h (test_bad_fd): Likewise.
25229         * tests/test-get-rusage-data.c (main): Treat DragonFlyBSD like OpenBSD.
25231 2017-03-14  Bruno Haible  <bruno@clisp.org>
25233         freadahead: Silence warning on DragonFlyBSD.
25234         * lib/freadahead.c (__sreadahead): Declare ourselves.
25236 2017-03-14  Bruno Haible  <bruno@clisp.org>
25238         vma-iter: Add comment about AIX.
25239         * lib/vma-iter.c: Add comment about why this module is not implemented
25240         on AIX.
25242 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25244         snippets: move unadjusted snippet sources to lib
25245         Problem reported by Michal Privoznik in:
25246         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00039.html
25247         * lib/_Noreturn.h: Rename from build-aux/snippet/_Noreturn.h.
25248         * lib/arg-nonnull.h: Rename from build-aux/snippet/arg-nonnull.h.
25249         * lib/c++defs.h: Rename from build-aux/snippet/c++defs.h.
25250         * lib/unused-parameter.h: Rename from
25251         build-aux/snippet/unused-parameter.h.
25252         * lib/warn-on-use.h: Rename from build-aux/snippet/warn-on-use.h.
25253         * modules/snippet/_Noreturn (Files:, _NORETURN_H):
25254         * modules/snippet/arg-nonnull (Files:, ARG_NONNULL_H):
25255         * modules/snippet/c++defs (Files:, CXXDEFS_H):
25256         * modules/snippet/unused-parameter (Files:, UNUSED_PARAMETER_H):
25257         * modules/snippet/warn-on-use (Files: WARN_ON_USE_H):
25258         Adjust to file renamings.
25260 2017-03-14  Mathieu Lirzin  <mthl@gnu.org>
25262         gnulib-tool: don't automatically distribute files from top/
25263         * gnulib-tool (func_get_automake_snippet_unconditional): To be able to
25264         not distribute top/README-release by default, don't distribute files
25265         from top/ unconditionally.
25266         * modules/gnumakefile (Makefile.am): Distribute top/GNUmakefile.
25267         * modules/maintainer-makefile (Makefile.am): Distribute top/maint.mk.
25269 2017-03-14  Paul Eggert  <eggert@cs.ucla.edu>
25271         gnulib-tool: fix typo in comment output
25272         * gnulib-tool (func_import): Fix typo with previous change.
25274         snippets: work around GNU Make 3.82 VPATH
25275         When using 'gnulib-tool --gnu-make' on Emacs, and building
25276         the resulting tarball on Solaris 10 which bundles GNU Make 3.82,
25277         an out-of-source (VPATH) build failed because the sans-copyright
25278         snippet file was not built before the file that used it.
25279         Presumably this is some sort of VPATH thing.  Work around the
25280         problem by using the original snippet, i.e., don’t bother to
25281         remove its copyright notice.
25282         * modules/snippet/_Noreturn, modules/snippet/link-warning:
25283         Don’t assume Automake in comments.  Omit long-incorrect comment.
25284         * modules/snippet/arg-nonnull (BUILT_SOURCES, arg-nonnull.h)
25285         (MOSTLYCLEANFILES):
25286         * modules/snippet/c++defs (BUILT_SOURCES, c++defs.h)
25287         (MOSTLYCLEANFILES):
25288         * modules/snippet/unused-parameter (BUILT_SOURCES, unused-parameter.h)
25289         (MOSTLYCLEANFILES):
25290         * modules/snippet/warn-on-use (BUILT_SOURCES, warn-on-use.h)
25291         (MOSTLYCLEANFILES):
25292         Remove.
25293         * modules/snippet/arg-nonnull (ARG_NONNULL_H):
25294         * modules/snippet/c++defs (CXXDEFS_H):
25295         * modules/snippet/unused-parameter (UNUSED_PARAMETER_H):
25296         * modules/snippet/warn-on-use (WARN_ON_USE_H):
25297         Don’t bother to remove the copyright notice; just use the
25298         original snippet as-is.
25300 2017-03-13  Paul Eggert  <eggert@cs.ucla.edu>
25302         gnulib-tool: minor --gnu-make fixups
25303         * gnulib-tool (func_emit_lib_Makefile_am):
25304         Remove useless code that was a blind alley during implementation.
25305         Problem reported by Thien-Thi Nguyen in:
25306         http://lists.gnu.org/r/bug-gnulib/2017-03/msg00029.html
25307         (func_import): Note the "--gnu-make" option in the output comment.
25309 2017-03-12  Paul Eggert  <eggert@cs.ucla.edu>
25311         gnulib-tool: new option --gnu-make
25312         This is for applications like GNU Emacs that use GNU Make
25313         features instead of Automake.
25314         * doc/gnulib-tool.texi (Initial import): Mention --gnu-make.
25315         * doc/gnulib.texi (Unit test modules, Build robot for gnulib):
25316         Do not assume Automake.
25317         * gnulib-tool (func_determine_path_separator)
25318         (func_modules_transitive_closure, func_update_file)
25319         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
25320         (func_import): Add support for --gnu-make.
25322 2017-03-11  Paul Eggert  <eggert@cs.ucla.edu>
25324         gnulib-common.m4: avoid aclocal.m4 bloat
25325         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB):
25326         Hide AM_PROG_AR from aclocal, so that aclocal does not
25327         install irrelevant macro definitions into aclocal.m4.
25329 2017-03-10  Bruno Haible  <bruno@clisp.org>
25331         vma-iter: Let callers know about error.
25332         * lib/vma-iter.h (vma_iterate): Return 'int', not 'void'.
25333         * lib/vma-iter.c (vma_iterate): Return -1 in case of error.
25335 2017-03-05  Bruno Haible  <bruno@clisp.org>
25337         Fix value of LD for 64-bit compilers on AIX.
25338         * m4/lib-ld.m4 (AC_LIB_PROG_LD): For 64-bit compilers on AIX
25339         ("gcc -maix64" and "xlc -q64"), add option -b64 to $LD.
25341 2017-03-04  Paul Eggert  <eggert@cs.ucla.edu>
25343         dtotimespec: simplify
25344         * lib/dtotimespec.c (dtotimespec): Simplify.
25346 2017-03-04  Bruno Haible  <bruno@clisp.org>
25348         test-calloc-gnu: Reenable test also for GCC 7.
25349         * tests/test-calloc-gnu.c (eight): New function.
25350         (main): Don't skip test; use eight() instead.
25352 2017-03-04  Jim Meyering  <meyering@fb.com>
25354         test-calloc-gnu: port to GCC7
25355         * tests/test-calloc-gnu.c (main) [__GNUC__ >= 7]: Skip a test
25356         that attempts to calloc more than SIZE_MAX bytes, because GCC7
25357         and newer would detect that at compilation time.
25359 2017-03-04  Bruno Haible  <bruno@clisp.org>
25361         tests: Avoid compiler warning about uses of null_ptr.
25362         * tests/null-ptr.h: New file.
25363         * tests/test-canonicalize.c: Include null-ptr.h.
25364         (null_ptr): Remove function.
25365         * tests/test-canonicalize-lgpl.c: Likewise.
25366         * tests/test-memmem.c: Likewise.
25367         * tests/test-ptsname_r.c: Likewise.
25368         * modules/canonicalize-tests (Files): Add tests/null-ptr.h.
25369         * modules/canonicalize-lgpl-tests: Likewise.
25370         * modules/memmem-tests: Likewise.
25371         * modules/ptsname_r-tests: Likewise.
25372         Reported by Jim Meyering.
25374 2017-03-03  Bruno Haible  <bruno@clisp.org>
25376         doc: Mention Mac OS X deficiencies regarding semaphores.
25377         * doc/posix-functions/sem_init.texi: Mention status on Mac OS X.
25378         * doc/posix-functions/sem_destroy.texi: Likewise.
25379         * doc/posix-functions/sem_getvalue.texi: Likewise.
25381 2017-03-03  Bruno Haible  <bruno@clisp.org>
25383         lock tests: Fix test failure on Mac OS X (regression from 2017-01-05).
25384         Reported by Assaf Gordon <assafgordon@gmail.com> via
25385         Pádraig Brady <P@draigBrady.com>.
25386         * tests/test-lock.c: On Mac OS X, use named semaphores, not unnamed
25387         semaphores.
25388         (USE_NAMED_SEMAPHORE, USE_UNNAMED_SEMAPHORE): New macros.
25389         (atomic_int_semaphore): New macro.
25391 2017-02-28  Bruno Haible  <bruno@clisp.org>
25393         perror tests: Tweak for z/OS.
25394         Reported by Daniel Richard G. <skunk@iskunk.org>.
25395         * tests/test-perror.sh: Don't fail z/OS style perror output.
25397 2017-02-26  Bruno Haible  <bruno@clisp.org>
25399         nproc: Refactor large function.
25400         * lib/nproc.c (num_processors_ignoring_omp): New function, extracted
25401         from num_processors.
25402         (num_processors): In this function, only deal with OMP.
25404 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25406         nproc: adjust handling of OpenMP environment variables
25407         to match the return value from omp_get_num_threads(), i.e.:
25408          - honor OMP_THREAD_LIMIT without OMP_NUM_THREADS
25409          - Treat 0 as an invalid value and ignore
25410         Also remove the call to omp_get_num_threads() because
25411         it's ineffective without the omp pragmas in place.
25412         * lib/nproc.c (parse_omp_threads): Return 0 if specified,
25413         so that it can be ignored.
25414         (num_processors): Honor OMP_THREAD_LIMIT even without
25415         OMP_NUM_THREADS being set.  Also fix a typo in the environment
25416         variable being checked, from the previous recent commit.
25418 2017-02-26  Pádraig Brady  <P@draigBrady.com>
25420         nproc: support nested OMP_NUM_THREADS, and OMP_THREAD_LIMIT
25421         * lib/nproc.c (parse_omp_threads): A new function refactored
25422         from num_processors() to support parsing both of the
25423         above environment variables.
25424         (num_processors): Prefer using omp_get_num_threads() with [_OPENMP]
25425         to accurately reflect the current OpenMP nesting level.
25426         Also support the OMP_THREAD_LIMIT environment variable
25427         to limit the max value determined from OMP_NUM_THREADS.
25428         * modules/nproc: Depend on minmax header.
25429         Suggested by Oliver Heimlich.
25431 2017-02-25  Bruno Haible  <bruno@clisp.org>
25433         maintainer-makefile: Fix AC_PROG_SED with autoconf cache.
25434         * m4/gnulib-common.m4 (AC_PROG_SED): Fix AC_CACHE_CHECK invocation.
25436 2017-02-24  Paul Eggert  <eggert@cs.ucla.edu>
25438         ftoastr: port to -Wdouble-promotion
25439         Work around -Wdouble-promotion false alarm in recent GCCs.
25440         * lib/ftoastr.c (PROMOTED_FLOAT): New macro.
25441         (ftoastr_snprintf, FTOASTR): Use it.
25443 2017-02-21  Bruno Haible  <bruno@clisp.org>
25445         lock tests: Fix build failure on GNU/Hurd (regression from 2017-01-05).
25446         Reported by Rene Saavedra <rennes@openmailbox.org> in
25447         https://debbugs.gnu.org/cgi/bugreport.cgi?bug=25821 via Paul Eggert.
25448         * lib/glthread/lock.h: On glibc systems without
25449         PTHREAD_RWLOCK_WRITER_NONRECURSIVE_INITIALIZER_NP, use the fallback
25450         implementation of rwlocks.
25451         * lib/glthread/lock.c: Likewise.
25453 2017-02-20  Bruno Haible  <bruno@clisp.org>
25455         lock tests: Fix build failure on z/OS.
25456         Reported by Daniel Richard G. <skunk@iskunk.org>.
25457         * modules/lock-tests (configure.ac): Test for <semaphore.h>.
25458         * tests/test-lock.c (USE_SEMAPHORE): Don't set if <semaphore.h> does not
25459         exist.
25461 2017-02-19  Bruno Haible  <bruno@clisp.org>
25463         havelib: Prefer the search path of /usr/bin/gcc over the one of $CC.
25464         This helps when CC=clang.
25465         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Prefer the search path
25466         of /usr/bin/gcc.
25468         havelib: Support overriding the result of AC_LIB_PREPARE_MULTILIB.
25469         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Use AC_CACHE_CHECK.
25471 2017-02-19  Bruno Haible  <bruno@clisp.org>
25473         gnulib-tool: Avoid conflict of havelib-tests with --single-configure.
25474         * gnulib_tool (func_create_testdir): Avoid havelib-tests when
25475         --with-tests --single-configure is specified.
25477 2017-02-16  Tim Rühsen  <tim.ruehsen@gmx.de>
25479         users.txt: Update links, use HTTPS where possible
25480         * users.txt: Updated to HTTPS where possible,
25481         fixed some links to new locations.
25483 2017-02-16  Bruno Haible  <bruno@clisp.org>
25485         xbinary-io: Fix inlining.
25486         * lib/xbinary-io.c: Set XBINARY_IO_INLINE, not XSETMODE_INLINE.
25488 2017-02-16  Paul Eggert  <eggert@cs.ucla.edu>
25490         xbinary-io: rename from xsetmode
25491         This patch is taken from suggestions by Bruno Haible in:
25492         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00060.html
25493         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00061.html
25494         * lib/binary-io.c (__gl_setmode_check): Set errno to EINVAL,
25495         not ENOTTY, when it is an inappropriate device.
25496         * lib/binary-io.h (SET_BINARY): Resurrect.
25497         * lib/xbinary-io.c: Rename from lib/xsetmode.c.
25498         (xset_binary_mode_error): Rename from xsetmode_error.
25499         * lib/xbinary-io.h: Rename from lib/xsetmode.h.
25500         (xset_binary_mode): Rename from xsetmode.
25501         All uses changed.
25502         * modules/xbinary-io: Rename from modules/xsetmode.
25503         Update file names.
25504         * tests/test-binary-io.sh (tmpfiles): Remove no-longer-used file name.
25505         * NEWS: Update to match revised behavior.
25507 2017-02-15  Paul Eggert  <eggert@cs.ucla.edu>
25509         tests: Adjust to recent SET_BINARY change
25510         * tests/test-binary-io.c (main):
25511         * tests/test-binary-io.sh: Remove test for SET_BINARY.
25512         * tests/test-closein.c, tests/test-fflush2.c, tests/test-ftell.c:
25513         * tests/test-ftello.c, tests/test-nonblocking-pipe-child.c:
25514         * tests/test-yesno.c: Use set_binary_mode, not SET_BINARY.
25516         xsetmode: new module
25517         This is to fix a problem noted by Eric Blake.
25518         Code was using xfreopen to change files to binary mode, but this
25519         fails for stdout when in append mode.  Such code should use
25520         xsetmode instead.
25521         * NEWS: Document incompatible changes to binary-io module.
25522         * lib/binary-io.c (__gl_setmode_check) [__DJGPP__ || __EMX__]:
25523         New function.
25524         * lib/binary-io.h (__gl_setmode): Rename from set_binary_mode.
25525         (set_binary_mode): New function, which also checks for tty.
25526         * lib/xsetmode.c, lib/xsetmode.h, modules/xsetmode: New files.
25528 2017-02-14  Paul Eggert  <eggert@cs.ucla.edu>
25530         headers: fix begin-end typos
25531         * lib/mbfile.h, lib/se-selinux.in.h: Fix typos by replacing
25532         _GL_INLINE_HEADER_BEGIN with _GL_INLINE_HEADER_END.
25534         selinux-h: port to PGI 16.10
25535         * lib/se-selinux.in.h: Don't assume that include_next skips over
25536         duplicate -I DIR options.
25538         argp: port to PGI 16.10
25539         * lib/argp-pin.c (dummy): Declare as needed to make file nonempty.
25541 2017-02-13  Darshit Shah  <darnir@gnu.org>
25543         unicase: Update function protoype to match definition.
25544         * lib/unicase/special-casing.h (gl_unicase_special_lookup): Gperf 3.1
25545         uses 'size_t' as the datatype for the 'len' parameter in the functions
25546         it generates. Update the prototype specified here to match the newly
25547         generated function.
25549 2017-02-12  Bruno Haible  <bruno@clisp.org>
25551         times test: Avoid gcc warnings on Linux/x32.
25552         * tests/test-times.c (main): Really cast printf arguments from clock_t
25553         to 'long int'.
25555 2017-02-12  Paul Eggert  <eggert@cs.ucla.edu>
25557         glob: port better to emscripten
25558         Problem reported by Bruno Haible in:
25559         http://lists.gnu.org/r/bug-gnulib/2017-02/msg00031.html
25560         * lib/glob.c (glob): Don't assume HAVE_GETPWNAM_R || _LIBC.
25562 2017-02-11  Bruno Haible  <bruno@clisp.org>
25564         host-cpu-c-abi: Support for 64-bit AIX, 32-bit armhf on arm64, hppa64.
25565         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Define also HOST_CPU.
25566         For the x32 ABI on x86_64, set HOST_CPU_C_ABI to 'x86_64-x32' and define
25567         both __x86_64__ and __x86_64_x32__. For the ELFv2 ABI on powerpc64,
25568         define both __powerpc64__ and __powerpc64_elfv2__. Recognize 64-bit
25569         compilation on AIX. Recognize 32-bit compilation on arm64/Linux.
25570         Distinguish hppa64 from hppa.
25572 2017-02-10  Bruno Haible  <bruno@clisp.org>
25574         search: Don't assume that tsearch() exists if 'VISIT' is defined.
25575         * m4/search_h.m4 (gl_SEARCH_H): Determine HAVE_TYPE_VISIT.
25576         * modules/search (Makefile.am): Substitute HAVE_TYPE_VISIT.
25577         * lib/search.in.h (VISIT): Define if HAVE_TYPE_VISIT is 0.
25579 2017-02-09  Bruno Haible  <bruno@clisp.org>
25581         doc: Don't mention obsolete AC_LIBTOOL_WIN32_DLL macro.
25582         * doc/gnulib.texi (Libtool and Windows): Recommend
25583         LT_INIT([win32-dll]) instead of AC_LIBTOOL_WIN32_DLL.
25584         Reported by Reuben Thomas <rrt@sc3d.org>.
25586 2017-02-08  Paul Eggert  <eggert@cs.ucla.edu>
25588         stddef-tests: port to SIZE_MAX <= INT_MAX
25589         * tests/test-stddef.c: Include <limits.h>, for INT_MAX.
25590         Do not assume that INT_MAX < SIZE_MAX.
25592 2017-02-01  Bruno Haible  <bruno@clisp.org>
25594         lock tests: Fix link error.
25595         * modules/lock-tests (test_rwlock1_LDADD): Add @YIELD_LIB@.
25596         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25598 2017-01-31  Bruno Haible  <bruno@clisp.org>
25600         lock: Fix link error (regression from 2017-01-05).
25601         * lib/glthread/lock.h [USE_POSIX_THREADS_WEAK]: Declare also
25602         pthread_rwlockattr_init, pthread_rwlockattr_setkind_np,
25603         pthread_rwlockattr_destroy weak.
25604         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
25606 2017-01-30  Paul Eggert  <eggert@cs.ucla.edu>
25608         Port to PGI 16.10 x86-64
25609         This patch fixes one real bug in gl_anylinked_list2.h, along with
25610         some minor glitches that are not bugs.  It does not silence PGI’s
25611         thousands of bogus warnings when compiling test-intprops.c.
25612         Fortunately, the warnings do not cause a failure.
25613         * lib/c-ctype.h (_C_CTYPE_LOWER_A_THRU_F_N, _C_CTYPE_LOWER_N):
25614         Rename parameter to avoid PGI warning about ‘#define f(n) 'n'’.
25615         My goodness, PGI goes back a long ways - this predates C89!
25616         * lib/gl_anylinked_list2.h (ASYNCSAFE): Fix bug caught by PGI.
25617         For example, ASYNCSAFE (const void *) should expand to
25618         ‘const void *volatile’, not to ‘volatile const void *’.
25619         * lib/spawn.in.h (POSIX_SPAWN_USEVFORK): Don't define if already defined.
25620         * lib/verify.h (verify) [!__GNUC__]:
25621         Use shorter albeit meaningless string to bypass silly compiler limits.
25622         * tests/infinity.h (Infinityf, Infinityd, Infinityl) [__PGI]:
25623         * tests/nan.h (NaNf, NaNd, NaNl):
25624         Use static functions to avoid misguided compiler diagnostics.
25625         Is there some reason we don’t use static functions on all platforms?
25627 2017-01-20  Paul Eggert  <eggert@cs.ucla.edu>
25629         parse-datetime: handle timezones reentrantly
25630         This API change was prompted by a report by Pádraig Brady in:
25631         https://bug.debian.org/851934#10
25632         To help fix the bug, make parse_datetime2 more reentrant.
25633         * NEWS: Document this incompatible change.
25634         * lib/parse-datetime.h, lib/parse-datetime.y (parse_datetime2):
25635         Add two arguments, the timezone and the timezone name.
25636         All callers changed.  If TZ="..." is specified, use it for
25637         calculating defaults.
25638         * lib/parse-datetime.y: Don't include xalloc.h or use xmalloc, as
25639         this code should be usable in a library.
25640         (mktime_ok, get_effective_timezone):
25641         Accept timezone arg too.  All callers changed.
25642         (get_tz): Remove.
25643         (get_effective_timezone): Check for failures.
25645 2017-01-20  Eric Blake  <eblake@redhat.com>
25647         localename: port to cygwin 2.6
25648         * lib/localename.c (gl_locale_name_thread_unsafe): Add clause for
25649         Cygwin.
25650         * modules/localename (Depends-on): Add extensions, since
25651         NL_LOCALE_NAME() is not visible without it.
25653 2017-01-17  Pádraig Brady  <P@draigBrady.com>
25655         parse-datetime: fix dependence on AC_PROG_SED
25656         * modules/parse-datetime: Use `sed` directly like all other modules.
25657         Reported by J William Piggott
25659 2017-01-16  Paul Eggert  <eggert@cs.ucla.edu>
25661         intprops: update doc URLs
25662         * doc/intprops.texi (Integer Range Overflow): Update URLs.
25664 2017-01-16  Bruno Haible  <bruno@clisp.org>
25666         host-cpu-c-abi: Add support for armhf, arm64, x32, s390x.
25667         * m4/host-cpu-c-abi.m4 (gl_HOST_CPU_C_ABI): Require gl_C_ASM. On x86_64
25668         systems, distinguish x86_64 and x32. On arm systems, distinguish arm,
25669         armhf, arm64, and no longer distinguish arm and armel. On s390x systems,
25670         distinguish s390 and s390x.
25671         * modules/host-cpu-c-abi (Files): Add m4/asm-underscore.m4.
25672         * NEWS: Mention the change regarding 'armel'.
25674 2017-01-15  Paul Eggert  <eggert@cs.ucla.edu>
25676         localeinfo: case_folded_counterparts and WEOF
25677         * NEWS: Document this.
25678         * lib/localeinfo.c (case_folded_counterparts):
25679         First arg is now wint_t, not wchar_t.  This generalizes the
25680         function to also work on WEOF, where it returns 0.
25682         dfa: port to gcc -fsanitize=undefined
25683         * lib/dfa.c (copy): Don’t pass NULL with size 0 to memcpy,
25684         as this runs afoul of gcc -fsanitize=undefined.
25686 2017-01-14  Paul Eggert  <eggert@cs.ucla.edu>
25688         strftime: %z is -00 if unknown
25689         * lib/strftime.c (DO_TZ_OFFSET): Omit arg 'negative'; it's now
25690         the caller's responsibility to set 'negative_number'.  All uses changed.
25691         (__strftime_internal): Put '-' before a zero UTC offset if the time
25692         zone abbreviation starts with "-", which is the recently-introduced
25693         tzdb convention for an unknown UTC offset that is arbitrarily set to 0.
25694         * tests/test-strftime.c: Test for this.
25696 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25698         dfa: port to older GCC
25699         Problem reported by Assaf Gordon in:
25700         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00103.html
25701         * modules/c99: New module.  This merely attempts to use the latest
25702         C version, which should be enough to solve this particular problem.
25703         The idea is to document which Gnulib modules assume C99 or later.
25704         * modules/dfa (Depends-on): Add it.
25706 2017-01-10  Bruno Haible  <bruno@clisp.org>
25708         Update DEPENDENCIES.
25709         * DEPENDENCIES: List only https URLs. Update recommended version for
25710         autoconf, automake, gperf.
25712 2017-01-10  Jim Meyering  <meyering@fb.com>
25714         maint.mk: enforce spelling of "timestamp" (i.e., no space)
25715         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
25716         disallow /\btime\s+stamps?\b/.  Prefer "timestamp".
25718 2017-01-10  Paul Eggert  <eggert@cs.ucla.edu>
25720         dfa: minor simplification with emptyset
25721         * lib/dfa.c (build_state): Simplify by using emptyset.
25723 2017-01-09  Paul Eggert  <eggert@cs.ucla.edu>
25725         dfa: shrink constraints from 4 bits to 3
25726         * lib/dfa.c (newline_constraint, letter_constraint)
25727         (other_constraint, prev_newline_dependent)
25728         (prev_letter_dependent, NO_CONSTRAINT, BEGLINE_CONSTRAINT)
25729         (ENDLINE_CONSTRAINT, BEGWORD_CONSTRAINT, ENDWORD_CONSTRAINT)
25730         (LIMWORD_CONSTRAINT, NOTLIMWORD_CONSTRAINT):
25731         Constraints need only 3 bits, not 4.  Using smaller integers
25732         shrinks the code a bit and makes grep a tad faster on x86-64.
25734         dfa: omit unnecessary ptrdiff_t check
25735         * lib/dfa.c (alloc_position_set): Do not worry about ptrdiff_t
25736         overflow, since xnmalloc does that now.
25738         dfa: omit unnecessary allocation
25739         * lib/dfa.c (dfaanalyze): Do not allocate follow set, since
25740         an all-zero follow set works just fine.
25742         dfa: omit unused local
25743         * lib/dfa.c (build_state): Fix up recent change.
25745         maint: remove stray .texi files
25746         Although these were superseded by other files like
25747         doc/posix-functions/ctime.texi, the old files were not removed.
25748         * doc/ctime.texi, doc/inet_ntoa.texi: Remove.
25750 2017-01-08  Paul Eggert  <eggert@cs.ucla.edu>
25752         getprogname: fix port to IRIX
25753         * lib/getprogname.c (getprogname) [__sgi]:
25754         Don't dump core if malloc returns NULL.
25756         dfa: fix reallocation bug when matching newlines
25757         Problem reported for sed by S. Gilles (Bug#25390).
25758         * lib/dfa.c (realloc_trans_if_necessary): Move earlier.
25759         (dfastate): Reallocate before moving any newline transition ...
25760         (build_state): ... instead of reallocating here, where it is too late.
25762 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25764         Avoid -Wundef warning about undefined WINDOWS_SOCKETS.
25765         * lib/sockets.h: Test if WINDOWS_SOCKETS is defined.
25767 2017-01-07  Tim Rühsen  <tim.ruehsen@gmx.de>  (tiny change)
25769         Avoid -Wundef warning about undefined __USE_FILE_OFFSET64.
25770         * lib/glob-libc.h: Test if __USE_FILE_OFFSET64 is defined.
25772 2017-01-07  Bruno Haible  <bruno@clisp.org>
25774         stdioext: Port to Minix 3.2 and newer.
25775         * lib/stdio-impl.h: Treat __minix like the newest NetBSD.
25776         * lib/fseeko.c (fseeko): Likewise.
25777         Reported by Nelson Beebe via Paul Eggert.
25779 2017-01-06  Paul Eggert  <eggert@cs.ucla.edu>
25781         getprogname: port to IRIX
25782         * lib/getprogname.c (getprogname): Port to IRIX.
25783         Based on an idea by Bastien Roucariès at:
25784         http://lists.gnu.org/r/bug-gnulib/2010-12/msg00096.html
25785         via code from Bruno Haible at:
25786         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
25788         localename-tests: port to NetBSD 7
25789         Problem reported by Nelson H. F. Beebe.
25790         * tests/test-localename.c:
25791         Test newlocale and uselocale only if both exist.
25793         glob, intprops, xalloc: work around Clang bug
25794         Work around LLVM bug 16404, which is still not fixed.
25795         https://llvm.org/bugs/show_bug.cgi?id=16404
25796         Problem reported by Nelson H. F. Beebe.
25797         * lib/glob.c, lib/intprops.h, lib/xalloc-oversized.h (__has_builtin):
25798         Remove.
25799         * lib/glob.c (size_add_wrapv):
25800         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW, _GL_HAS_BUILTIN_OVERFLOW_P):
25801         * lib/xalloc-oversized.h (xalloc_oversized):
25802         Do not use overflow builtins if Clang.
25804         dfa: fix 'return' typo
25805         Problem reported by Nelson H. F. Beebe.
25806         * lib/dfa.c (merge): Fix typo that Sun compilers rejected.
25808 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25810         parse-datetime: fix generated paths for coverage files
25811         * modules/parse-datetime: Adjust the paths for parse-datetime.y
25812         within parse-datetime.c, so that gcc generates appropriate .gcno
25813         files, allowing lcov to proceed without error.  Previously it
25814         would error trying to find "lib/lib/parse-datetime.y".
25816 2017-01-05  Pádraig Brady  <P@draigBrady.com>
25818         maint.mk: support parallel execution of coverage
25819         * top/maint.mk (coverage): Run dependencies serially,
25820         thus supporting parallel processing of each one,
25821         particularly build-coverage, which builds and runs tests.
25823 2017-01-05  Bruno Haible  <bruno@clisp.org>
25825         lock tests: Prefer semaphore over mutex.
25826         * tests/test-lock.c (USE_SEMAPHORE): New constant.
25827         (struct atomic_int, init_atomic_int, get_atomic_int_value,
25828         set_atomic_int_value) [USE_SEMAPHORE]: Define using a POSIX semaphore.
25829         Suggested by Torvald Riegel <triegel@redhat.com>.
25831 2017-01-05  Bruno Haible  <bruno@clisp.org>
25833         lock: Provide guarantee to avoid writer starvation for rwlocks.
25834         The rationale is: 1) Read-preferring read-write locks are prone to
25835         writer starvation if the number of reader threads multiplied by the
25836         percentage of time they have the lock held is too high. 2) Write-
25837         preferring read-write locks are the only reliable way to avoid this.
25838         3) There have been reports of 'test-lock' hanging on glibc systems
25839         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00009.html,
25840         and glibc indeed implements read-preferring rwlocks by default, see
25841         http://man7.org/linux/man-pages/man3/pthread_rwlockattr_setkind_np.3.html
25842         and https://sourceware.org/bugzilla/show_bug.cgi?id=13701 .
25843         * m4/pthread_rwlock_rdlock.m4: New file.
25844         * m4/lock.m4 (gl_LOCK): Invoke gl_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25845         * lib/glthread/lock.h [USE_POSIX_THREADS]: Test
25846         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25847         of rwlock initialization on glibc systems without
25848         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER. Use a different implementation
25849         of rwlocks altogether on non-glibc systems without
25850         HAVE_PTHREAD_RWLOCK_RDLOCK_PREFER_WRITER.
25851         [USE_PTH_THREADS]: Use a different implementation of rwlocks altogether.
25852         * lib/glthread/lock.c [USE_POSIX_THREADS]
25853         (glthread_rwlock_init_for_glibc): New function.
25854         [USE_POSIX_THREADS] (glthread_rwlock_rdlock_multithreaded): Update
25855         comment.
25856         [USE_PTH_THREADS]: New implementation of rwlocks.
25857         [USE_WINDOWS_THREADS] (glthread_rwlock_rdlock_func): Prefer writers over
25858         readers.
25859         * modules/lock (Files): Add m4/pthread_rwlock_rdlock.m4.
25860         (Depends-on): Add 'extensions'.
25861         * tests/test-rwlock1.c: New file.
25862         * lock-tests (Files): Add it.
25863         (Depends-on): Add usleep.
25864         (Makefile.am): Add test-rwlock1 to the tests.
25866 2017-01-05  Bruno Haible  <bruno@clisp.org>
25868         thread: Fix pth port.
25869         * lib/glthread/thread.h (pth_init): Declare weak.
25870         (glthread_create, glthread_sigmask, glthread_join, gl_thread_self,
25871         gl_thread_exit): Make sure Pth is initialized before invoking any Pth
25872         function.
25874 2017-01-04  Assaf Gordon  <assafgordon@gmail.com>
25876         parse-datetime: fix debug message on lone year number
25877         Input dates such as
25878           date -d "Apr 11 22:59:00 2011"
25879         are parsed as date (Apr 11, with default year 2016), then time, then a
25880         number (2011). Based on the combination of previously seen tokens,
25881         'digits_to_date_time' determines 2011 to be a year value.
25882         This fixes the debug messages to correctly show the updated year.
25883         Before:
25884             $ date --debug -d 'Apr 11 22:59:00 2011'
25885             date: parsed date part: (Y-M-D) 2016-04-11
25886             date: parsed time part: 22:59:00
25887             date: parsed number part: today/this/now
25888         After:
25889             $ ./src/date --debug -d 'Apr 11 22:59:00 2011'
25890             date: parsed date part: (Y-M-D) 2016-04-11
25891             date: parsed time part: 22:59:00
25892             date: parsed number part: year: 2011
25893         * lib/parse-datetime.y (struct parser_control): Add 'year_seen',
25894         'debug_year_seen' member fields.
25895         (digits_to_date_time): Update 'year_seen' as needed.
25896         (debug_print_current_time): Inform about year updates.
25897         (parse_datetime2): Initialize year_seen,debug_year_seen member fields.
25899         parse-datetime: fix local timezone debug messages
25900         "Local timezones" are strings that affect only DST relative to the
25901         default timezone. The debug messages in parse-datetime.y printed
25902         wrong information when encountering local timezones.
25903         Examples:
25904         Here EET/EEST are time zones ('zone' token, with values +02:00/+03:00):
25905              TZ=Asia/Tokyo ./src/date --debug -d '2011-12-11 EET'
25906              TZ=Asia/Tokyo ./src/date --debug -d '2011-06-11 EEST'
25907         When the default timezone relates to the zone strings, EET/EEST are
25908         parsed as local timezones (tLOCAL_ZONE), and only change the DST
25909         value (0/1, respectively):
25910              TZ=Europe/Helsinki ./src/date --debug -d '2011-12-11 EET'
25911              TZ=Europe/Helsinki ./src/date --debug -d '2011-06-11 EEST'
25912         * lib/parse-datetime.y (debug_print_current_time): If local timezone
25913         was seen, inform about DST change, don't print actual timezone.
25914         (debug_strfdatetime): If local timezone was seen, use default timezone
25915         (and adjust as needed) instead of using incorrect timezone.
25916         (parse_datetime2): Use correct time-zone source string, and adjust
25917         default timezone as needed.
25919         parse-datetime: add debug warning about DST changes
25920         Incorrect date arithmetic due to daylight saving time (DST) are a
25921         common (false) bug report in coreutils.
25922         Detect two such cases and print a warning:
25923         1. year/month/day adjustments (performed on 'struct tm'),
25924            where 'mktime' returns a different isdst value.
25925         2. hour/minute/seconds/ns adjustments (performed on 'time_t'),
25926            where the result of 'localtime(3)' on the value will return a
25927            different isdst value.
25928         Note: DST changes could be harmless or unnoticeable.
25929         Examples (with 'TZ=America/New_York'):
25930         Unnoticeable: result is 2016-Dec-14
25931            $ date -d '2016-06-15 EDT + 6 months' +%b
25932            Dec
25933         Unnoticeable: result is 2016-Dec-15 11:00:00
25934            $ date -d '2016-06-15 12:00:00 EDT + 6 months' +%F
25935            2016-12-15
25936         This is unexpected:
25937            $ date -d '2016-06-01 EDT + 6 months' +%F
25938            2016-11-30
25939         The new debug warnings will show:
25940            $ ./src/date --debug -d '2016-06-01 EDT + 6 months' +%F
25941            ...
25942            date: warning: daylight saving time changed after date adjustment
25943            ...
25944         * lib/parse-datetime.y (parse_datetime2): Detect DST changes, and
25945         print an appropriate warning message.
25947         parse-datetime: add debug warning about date arithmetic
25948         Date arithmetic are done directly on the fields of 'struct tm',
25949         which can result in invalid dates. Normalization with 'mktime(3)'
25950         will then produce a different date - which might cause unexpected
25951         results.
25952         Examples:
25953           '2016-10-31 - 1 month' => 2016-09-31 normalized to 2016-10-01.
25954           '2016-02-29 + 1 year'  => 2017-02-29 normalized to 2017-03-01.
25955         Note that date normalization is not inherently wrong and not rejected,
25956         as it has legitimate uses:
25957           '2016-12-29 + 5 days' => 2016-12-34 noramlized to 2017-01-03.
25958         If the user asked to adjust months but 'mday' changed,
25959         or user asked to adjust years but 'month' changed - warn about it.
25960             $ ./src/date --debug -d '2016-10-31 - 1 month'
25961             ...
25962             date: warning: when adding relative months/years, \
25963                            it is recommended to specify the 15th of the month
25964             ...
25965             date: warning: month/year adjustment resulted in shifted dates:
25966             date:      adjusted Y M D: 2016 09 31
25967             date:    normalized Y M D: 2010 10 01
25968             ...
25969         * lib/parse-datetime.y (parse_datetime2): Detect such cases and print
25970         a warning message. Improve recommendation of when to use 15 of the
25971         month or noon for date arithmetic.
25973         parse-datetime: fix debug message of relative part after timezone
25974         Relative part (e.g '+8 days') after a timezone string was not
25975         reported (was only reported after a timezone number). Due to the
25976         parser's structure, timezone strings with numbers were handled
25977         separately.
25978         before:
25979              # Timezone number + relative part: OK
25980              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 +00:00 -8 days'
25981              ...
25982              date: parsed relative part: -8 day(s)
25983              # Timezone string + relative part: missing
25984              $ ./src/date --debug +%F -d '2013-10-30 00:00:00 UTC -8 days'
25985              [ missing message ]
25986         After: messages are printed in both cases.
25987         * lib/parse-datetime.y ('zone' token): Call debug_print_relative_time.
25989         parse-datetime: fix incorrect debug message on lone number
25990         A lone number is an absolute value, not a relative time part.
25991         before:
25992            $ date --debug -d '20130101'
25993            date: parsed number part: today/this/now
25994         After:
25995            $ ./src/date --debug -d '20130101'
25996            date: parsed number part: (Y-M-D) 2013-01-01
25997         * lib/parse-datetime.y ('item'/'number' tokens): Call
25998         'debug_print_current_time' instead of 'debug_print_relative_time'.
26000 2017-01-02  Paul Eggert  <eggert@cs.ucla.edu>
26002         doc: modernize for C11 etc.
26003         * doc/gnulib-readme.texi (Portability guidelines): Modernize a bit
26004         for C11, MinGW, etc.  This responds to Paul Smith's question in:
26005         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00014.html
26007         dfa: prefer functions to FETCH_WC macro
26008         * lib/dfa.c (FETCH_WC): Remove, replacing with ...
26009         (fetch_wc, bracket_fetch_wc): ... new functions.  These store the
26010         wint_t result into DFA->lex.wctok instead of to a separate arg.
26011         All callers changed.  Move more local decls closer to where
26012         they're used.
26014         dfa: narrow more local var scopes
26015         * lib/dfa.c: Move more local decls to be more local.
26017         dfa: remove duplicate assignment
26018         Problem reported by Bruno Haible in:
26019         http://lists.gnu.org/r/bug-gnulib/2017-01/msg00007.html
26020         * lib/dfa.c (parse_bracket_exp): Simplify.
26022 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26024         dfa: simplify constraint-dependency checking
26025         * lib/dfa.c (prev_newline_constraint, prev_letter_constraint)
26026         (prev_other_constraint): Remove.
26027         (prev_newline_dependent, prev_letter_dependent):
26028         Simplify, to avoid an unnecessary bitwise AND operation.
26030         dfa: prefer functions and constants to macros
26031         * lib/dfa.c: Prefer constants to macros where either will do.
26032         (streq, isasciidigit, newline_constraint)
26033         (letter_constraint, other_constraint, succeeds_in_context)
26034         (prev_newline_constraint, prev_letter_constraint)
26035         (prev_other_constraint, prev_newline_dependent)
26036         (prev_letter_dependent, accepting, accepts_in_context):
26037         Now static functions instead of function-like macros.
26038         Use lower-case names accordingly.  All uses changed.
26040         dfa: narrow more local var scopes
26041         * lib/dfa.c: Move some more local decls down to nearer where
26042         they're needed.
26044 2016-12-31  Jim Meyering  <meyering@fb.com>
26046         dfa: narrow the scope of many local variables
26047         * lib/dfa.c: Now that we are no longer constrained to c89, move
26048         declarations of many variables (often indices) "down" into the
26049         scope(s) where used or to the point of definition.  This is a
26050         no-semantic-change diff.
26052 2017-01-01  Paul Eggert  <eggert@cs.ucla.edu>
26054         version-etc: new year
26055         * build-aux/gendocs.sh (version):
26056         * doc/gendocs_template:
26057         * doc/gendocs_template_min:
26058         * doc/gnulib.texi:
26059         * lib/version-etc.c (COPYRIGHT_YEAR):
26060         Update copyright dates by hand in templates and the like.
26061         * all files: Run 'make update-copyright'.
26063 2016-12-31  Eric Blake  <eblake@redhat.com>
26065         do-release-commit-and-tag: avoid shell syntax error
26066         * build-aux/do-release-commit-and-tag (curr_br): $branch can
26067         contain spaces when rebasing.
26069         maint.mk: hoist gnulib_dir definition earlier
26070         * top/maint.mk (gnulib_dir): Move near top of file.
26072 2016-12-31  Jim Meyering  <meyering@fb.com>
26074         maint.mk: do not always evaluate intprops-related shell
26075         * top/maint.mk (_intprops_names): Change := to just "=" to avoid
26076         using gnulib_dir undefined (gnulib_dir is defined later in the
26077         file, which will be fixed separately), and besides, there is no
26078         need to incur the cost of this shell invocation for every single
26079         use of this .mk file.  Reported by Eric Blake in
26080         https://lists.gnu.org/r/bug-gnulib/2016-12/msg00137.html
26082 2016-12-30  Jim Meyering  <meyering@fb.com>
26084         maint.mk: improve sc_prohibit_intprops_without_use
26085         * top/maint.mk (_intprops_names): Don't hard-code the list of
26086         symbol names.  Instead, derive it on the fly.
26088 2016-12-30  Paul Eggert  <eggert@cs.ucla.edu>
26090         dfa: shorten sbit, success
26091         * lib/dfa.c (struct regex_syntax.sbit):
26092         (struct dfa.success): Use char, not int, for array elements, since
26093         they are all in the range 0..7.
26095         dfa: simplify multibyte_prop etc.
26096         This follows up on a change made when dfa.c was in grep, namely grep
26097         commit c797046c7c13c2647182b919a79a4c5b4ecf82b1
26098         dated 2015-08-12 07:35:03 -0700, which removed unused multibyte support.
26099         That earlier simplification allows for some more simplification
26100         and trimming down here.
26101         * lib/dfa.c (struct mb_char_classes): New member nchars_alloc.
26102         (struct lexer_state): New mamber brack.
26103         (struct dfa, addtok_mb): multibyte_prop elements are now char, not int,
26104         since they must be in the range 0..3 now.
26105         Remove members mbcsets, nmbcsets, mbcsets_alloc, since
26106         the brack member now supersedes them.
26107         (parse_bracket_exp): Update dfa->lex.brack instead of dfa->mbcsets.
26108         (addtok): Use dfa->lex.brack instead of dfa->mbcsets.
26109         (dfaparse): Remove unnecessary initializations of already-0 storage.
26110         (free_mbdata): Free d->lex.brack.chars instead of d->mbcsets.
26111         (dfassbuild): No need to clear sup->mbcsets.
26113         dfa: minor performance tweak
26114         * lib/dfa.c (setbit_wc): Test < 0, not == EOF.
26116         dfa: wrap charclass inside a struct
26117         On my platform (gcc Ubuntu 5.4.0-6ubuntu1~16.04.4 x86-64,
26118         en_US.utf8 locale) this makes 'grep -Fi -f list.txt list.txt >out'
26119         about 5% faster, where list.txt is generated by 'aspell dump
26120         master | head -n 100000 >list.txt'.  See Bug#22239.
26121         * lib/dfa.c (charclass): Wrap inside a struct.  All uses changed.
26122         (CHARCLASS_INIT, tstbit, setbit, clrbit, zeroset, fillset, notset)
26123         (equal, emptyset, charclass_index, setbit_wc, setbit_case_fold_c):
26124         Adjust to this, e.g., by using charclass * rather than charclass.
26125         All callers changed as needed.
26126         (copyset): Remove.  All uses changed to simple assignment.
26127         (parse_bracket_exp): Use zeroset instead of memset.
26129 2016-12-30  Jim Meyering  <meyering@fb.com>
26131         maint.mk: update list of intprops.h symbol names
26132         * top/maint.mk (_intprops_names): Regenerate the list of symbol names.
26133         This avoids a false failure of the sc_prohibit_intprops_without_use
26134         rule in grep.
26136 2016-12-29  Eric Blake  <eblake@redhat.com>
26138         getopt: fix parallel test failure
26139         * tests/test-getopt-posix.c (TEST_GETOPT_TMP_NAME): Set name.
26140         * tests/test-getopt-gnu.c (TEST_GETOPT_TMP_NAME): Likewise.
26141         * tests/test-getopt-main.h (main): Use different file names
26142         in case test-getopt-gnu and test-getopt-posix run in parallel.
26144 2016-12-29  Paul Eggert  <eggert@cs.ucla.edu>
26146         xalloc: x2nrealloc check for ptrdiff_t overflow
26147         * lib/xalloc.h (x2nrealloc): Check for ptrdiff_t overflow, too.
26148         * modules/xalloc, modules/xvasprintf (Depends-on): Add stdint.
26150 2016-12-24  Bruno Haible  <bruno@clisp.org>
26152         lock test: Fix performance problem on multi-core machines.
26153         * tests/test-lock.c (USE_VOLATILE): New macro.
26154         (struct atomic_int): New type.
26155         (init_atomic_int, get_atomic_int_value, set_atomic_int_value): New
26156         functions.
26157         (lock_checker_done, rwlock_checker_done, reclock_checker_done): Define
26158         as 'struct atomic_int'.
26159         (lock_checker_thread, test_lock, rwlock_checker_thread, test_rwlock,
26160         reclock_checker_thread, test_recursive_lock): Use the new functions.
26161         Reported by Eric Blake in
26162         https://www.redhat.com/archives/libvir-list/2012-March/msg00854.html
26163         and by Pádraig Brady in
26164         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00117.html.
26166 2016-12-19  Bruno Haible  <bruno@clisp.org>
26168         vma-iter: Fix endless loop on 64-bit Windows.
26169         * lib/vma-iter.c (vma_iterate): On Windows, use 'uintptr_t' instead of
26170         'unsigned long'.
26172 2016-12-19  Bruno Haible  <bruno@clisp.org>
26174         stdint: Fix WINT_MAX to match the gnulib provided wint_t on minw.
26175         * m4/wint_t.m4 (gt_TYPE_WINT_T): Define GNULIB_OVERRIDES_WINT_T here.
26176         * m4/stdint.m4 (gl_STDINT_H): Don't define GNULIB_OVERRIDES_WINT_T.
26177         Invoke gt_TYPE_WINT_T instead.
26178         (gl_STDINT_TYPE_PROPERTIES): Test GNULIB_OVERRIDES_WINT_T.
26179         * modules/stdint (Files): Add m4/wint_t.m4.
26180         * modules/wchar (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26181         * modules/wctype-h (Makefile.am): Likewise.
26182         * lib/wchar.in.h (wint_t): Override if GNULIB_OVERRIDES_WINT_T is set,
26183         not only on MSVC.
26184         * lib/wctype.in.h (wint_t): Likewise.
26186 2016-12-19  Paul Eggert  <eggert@cs.ucla.edu>
26188         getopt-posix-tests: fix Makefile typo
26189         * modules/getopt-posix-tests (test_getopt_posix_LDADD):
26190         Fix typo: the last ‘_’ was missing in the name.
26191         I suspect that the typo explains this build failure:
26192         https://buildfarm.opencsw.org/buildbot/builders/ggrep-solaris10-sparc/builds/39
26193         although I can’t reproduce the problem on Solaris 10 sparc.
26195 2016-12-18  Paul Eggert  <eggert@cs.ucla.edu>
26197         dfa: improve worst-case 'replace' performance
26198         See my note in Bug#22357#71.
26199         * lib/dfa.c (insert, delete): Rework to avoid duplicate test.
26200         (merge_constrained): New function, which is like
26201         the old 'merge' function, except with a new argument C2.
26202         Simplify the body by avoiding the need for different sections
26203         of code depending on whether one input is exhausted.
26204         (merge): Use the new function.
26205         (delete): Return the constraint of the deleted position,
26206         not the entire position.  Caller changed.
26207         (replace): Change from O(N*(N + log N)) to O(N log N) algorithm.
26209 2016-12-18  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26211         dfa: performance improvement for removal of epsilon closure
26212         See Bug#22357#32.
26213         * lib/dfa.c (delete): Use binary search to find deleted index.
26214         (replace): New function.  It replaces a position with the followed set.
26215         (epsclosure): Replace it with a new algorithm.  Update caller.
26217 2016-12-18  Bruno Haible  <bruno@clisp.org>
26219         Split tests for getopt-posix and getopt-gnu.
26220         * tests/test-getopt-posix.c: New file.
26221         * tests/test-getopt-gnu.c: New file, with code from test-getopt.c.
26222         * tests/test-getopt-main.h: Renamed from tests/test-getopt.c. Remove
26223         stuff moved to test-getopt-gnu.c. Test TEST_GETOPT_GNU instead of
26224         GNULIB_TEST_GETOPT_GNU.
26225         * modules/getopt-posix-tests (Files): Add test-getopt-posix.c,
26226         test-getopt-main.h. Remove test-getopt.c, test-getopt_long.h.
26227         (Makefile.am): Test test-getopt-posix instead of test-getopt.
26228         * modules/getopt-gnu-tests: New file.
26229         * modules/getopt-gnu (configure.ac): Don't define GNULIB_TEST_GETOPT_GNU.
26231 2016-12-18  Bruno Haible  <bruno@clisp.org>
26233         posix-modules: Add options for specific platforms.
26234         * posix-modules (func_usage): Document options --for-mingw, --for-msvc.
26235         (exclude_for_mingw, exclude_for_msvc, exclude): New variables.
26236         Invoke func_tmpdir. Filter out the excludes.
26238 2016-12-18  Bruno Haible  <bruno@clisp.org>
26240         getopt: Fix link error for users of getopt() in <unistd.h>.
26241         * lib/getopt.in.h (getopt etc.): Do the macro definitions also when
26242         __need_getopt is defined. Undefine all macros before defining them.
26243         * modules/getopt (Include): Clarify that including <unistd.h> is also
26244         OK.
26245         * tests/test-getopt.c: Add comment.
26247 2016-12-17  Bruno Haible  <bruno@clisp.org>
26249         getaddrinfo tests: Avoid compilation error on MSVC.
26250         * tests/test-getaddrinfo.c: Don't check the prototypes of freeaddrinfo,
26251         getaddrinfo on native Windows.
26253 2016-12-17  Bruno Haible  <bruno@clisp.org>
26255         getlogin, getlogin_r: Fix link errors on MSVC.
26256         * m4/getlogin.m4 (gl_LIB_GETLOGIN): New macro.
26257         * modules/getlogin (configure.ac): Require gl_LIB_GETLOGIN.
26258         (Link): New section.
26259         * modules/getlogin_r (Files): Add m4/getlogin.m4.
26260         (configure.ac): Require gl_LIB_GETLOGIN.
26261         (Link): New section.
26262         * NEWS: Mention the new link requirements.
26263         * modules/getlogin-tests (test_getlogin_LDADD): New variable.
26264         * modules/getlogin_r-tests (test_getlogin_r_LDADD): New variable.
26266 2016-12-17  Bruno Haible  <bruno@clisp.org>
26268         Un-deprecate the 'progname' module.
26269         * NEWS: Describe the appropriate use-cases of 'progname' versus
26270         'getprogname'. Based on discussion summary at
26271         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00105.html
26273 2016-12-17  Bruno Haible  <bruno@clisp.org>
26275         Reorganize NEWS a bit.
26276         * NEWS: Move some not so important changes away from section
26277         "Important Notes".
26279 2016-12-17  Bruno Haible  <bruno@clisp.org>
26281         tanhf: Avoid redefinition error on MSVC.
26282         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANHF.
26283         * m4/tanhf.m4 (gl_FUNC_TANHF): Set REPLACE_TANHF to 1 if the function
26284         may be defined as an inline function.
26285         * modules/math (Makefile.am): Substitute REPLACE_TANHF.
26286         * lib/math.in.h (tanhf): Override if REPLACE_TANHF is 1.
26288 2016-12-17  Bruno Haible  <bruno@clisp.org>
26290         tanf: Avoid redefinition error on MSVC.
26291         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_TANF.
26292         * m4/tanf.m4 (gl_FUNC_TANF): Set REPLACE_TANF to 1 if the function
26293         may be defined as an inline function.
26294         * modules/math (Makefile.am): Substitute REPLACE_TANF.
26295         * lib/math.in.h (tanf): Override if REPLACE_TANF is 1.
26297 2016-12-17  Bruno Haible  <bruno@clisp.org>
26299         sqrtf: Avoid redefinition error on MSVC.
26300         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SQRTF.
26301         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Set REPLACE_SQRTF to 1 if the function
26302         may be defined as an inline function.
26303         * modules/math (Makefile.am): Substitute REPLACE_SQRTF.
26304         * lib/math.in.h (sqrtf): Override if REPLACE_SQRTF is 1.
26306 2016-12-17  Bruno Haible  <bruno@clisp.org>
26308         sinhf: Avoid redefinition error on MSVC.
26309         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINHF.
26310         * m4/sinhf.m4 (gl_FUNC_SINHF): Set REPLACE_SINHF to 1 if the function
26311         may be defined as an inline function.
26312         * modules/math (Makefile.am): Substitute REPLACE_SINHF.
26313         * lib/math.in.h (sinhf): Override if REPLACE_SINHF is 1.
26315 2016-12-17  Bruno Haible  <bruno@clisp.org>
26317         sinf: Avoid redefinition error on MSVC.
26318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_SINF.
26319         * m4/sinf.m4 (gl_FUNC_SINF): Set REPLACE_SINF to 1 if the function
26320         may be defined as an inline function.
26321         * modules/math (Makefile.am): Substitute REPLACE_SINF.
26322         * lib/math.in.h (sinf): Override if REPLACE_SINF is 1.
26324 2016-12-17  Bruno Haible  <bruno@clisp.org>
26326         logf: Avoid redefinition error on MSVC.
26327         * m4/logf.m4 (gl_FUNC_LOGF): Set REPLACE_LOGF to 1 if the function
26328         may be defined as an inline function.
26330 2016-12-17  Bruno Haible  <bruno@clisp.org>
26332         log10l: Avoid redefinition error on MSVC.
26333         * m4/log10l.m4 (gl_FUNC_LOG10L): Set REPLACE_LOG10L to 1 if the function
26334         may be defined as an inline function.
26336 2016-12-17  Bruno Haible  <bruno@clisp.org>
26338         log10f: Avoid redefinition error on MSVC.
26339         * m4/log10f.m4 (gl_FUNC_LOG10F): Set REPLACE_LOG10F to 1 if the function
26340         may be defined as an inline function.
26342 2016-12-17  Bruno Haible  <bruno@clisp.org>
26344         hypotl: Avoid redefinition error on MSVC.
26345         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Set REPLACE_HYPOTL to 1 if the function
26346         may be defined as an inline function.
26348 2016-12-17  Bruno Haible  <bruno@clisp.org>
26350         hypotf: Avoid redefinition error on MSVC.
26351         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Set REPLACE_HYPOTF to 1 if the function
26352         may be defined as an inline function.
26354 2016-12-17  Bruno Haible  <bruno@clisp.org>
26356         fmodl: Avoid redefinition error on MSVC.
26357         * m4/fmodl.m4 (gl_FUNC_FMODL): Set REPLACE_FMODL to 1 if the function
26358         may be defined as an inline function.
26360 2016-12-17  Bruno Haible  <bruno@clisp.org>
26362         fmodf: Avoid redefinition error on MSVC.
26363         * m4/fmodf.m4 (gl_FUNC_FMODF): Set REPLACE_FMODF to 1 if the function
26364         may be defined as an inline function.
26366 2016-12-17  Bruno Haible  <bruno@clisp.org>
26368         expf: Avoid redefinition error on MSVC.
26369         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_EXPF.
26370         * m4/expf.m4 (gl_FUNC_EXPF): Set REPLACE_EXPF to 1 if the function
26371         may be defined as an inline function.
26372         * modules/math (Makefile.am): Substitute REPLACE_EXPF.
26373         * lib/math.in.h (expf): Override if REPLACE_EXPF is 1.
26375 2016-12-17  Bruno Haible  <bruno@clisp.org>
26377         coshf: Avoid redefinition error on MSVC.
26378         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSHF.
26379         * m4/coshf.m4 (gl_FUNC_COSHF): Set REPLACE_COSHF to 1 if the function
26380         may be defined as an inline function.
26381         * modules/math (Makefile.am): Substitute REPLACE_COSHF.
26382         * lib/math.in.h (coshf): Override if REPLACE_COSHF is 1.
26384 2016-12-17  Bruno Haible  <bruno@clisp.org>
26386         cosf: Avoid redefinition error on MSVC.
26387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_COSF.
26388         * m4/cosf.m4 (gl_FUNC_COSF): Set REPLACE_COSF to 1 if the function
26389         may be defined as an inline function.
26390         * modules/math (Makefile.am): Substitute REPLACE_COSF.
26391         * lib/math.in.h (cosf): Override if REPLACE_COSF is 1.
26393 2016-12-17  Bruno Haible  <bruno@clisp.org>
26395         atan2f: Avoid redefinition error on MSVC.
26396         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATAN2F.
26397         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Set REPLACE_ATAN2F to 1 if the function
26398         may be defined as an inline function.
26399         * modules/math (Makefile.am): Substitute REPLACE_ATAN2F.
26400         * lib/math.in.h (atan2f): Override if REPLACE_ATAN2F is 1.
26402 2016-12-17  Bruno Haible  <bruno@clisp.org>
26404         atanf: Avoid redefinition error on MSVC.
26405         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ATANF.
26406         * m4/atanf.m4 (gl_FUNC_ATANF): Set REPLACE_ATANF to 1 if the function
26407         may be defined as an inline function.
26408         * modules/math (Makefile.am): Substitute REPLACE_ATANF.
26409         * lib/math.in.h (atanf): Override if REPLACE_ATANF is 1.
26411 2016-12-17  Bruno Haible  <bruno@clisp.org>
26413         asinf: Avoid redefinition error on MSVC.
26414         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ASINF.
26415         * m4/asinf.m4 (gl_FUNC_ASINF): Set REPLACE_ASINF to 1 if the function
26416         may be defined as an inline function.
26417         * modules/math (Makefile.am): Substitute REPLACE_ASINF.
26418         * lib/math.in.h (asinf): Override if REPLACE_ASINF is 1.
26420 2016-12-17  Bruno Haible  <bruno@clisp.org>
26422         acosf: Avoid redefinition error on MSVC.
26423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Define REPLACE_ACOSF.
26424         * m4/acosf.m4 (gl_FUNC_ACOSF): Set REPLACE_ACOSF to 1 if the function
26425         may be defined as an inline function.
26426         * modules/math (Makefile.am): Substitute REPLACE_ACOSF.
26427         * lib/math.in.h (acosf): Override if REPLACE_ACOSF is 1.
26429 2016-12-17  Bruno Haible  <bruno@clisp.org>
26431         Avoid redefinition errors on MSVC.
26432         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): Set REPLACE_SNPRINTF to 1 if
26433         the function may be defined as an inline function.
26434         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): Set REPLACE_VSNPRINTF to 1 if
26435         the function may be defined as an inline function.
26437 2016-12-17  Bruno Haible  <bruno@clisp.org>
26439         Avoid redefinition errors on MSVC.
26440         * lib/stdio.in.h: Include <stdlib.h> and <io.h> when necessary.
26441         * lib/unistd.in.h: Include <stdio.h> when necessary.
26443 2016-12-17  Bruno Haible  <bruno@clisp.org>
26445         stdint: Fix WINT_MAX to match the gnulib provided wint_t on MSVC.
26446         * m4/stdint.m4 (gl_STDINT_H): Define GNULIB_OVERRIDES_WINT_T.
26447         * modules/stdint (Makefile.am): Substitute GNULIB_OVERRIDES_WINT_T.
26448         * lib/stdint.in.h [GNULIB_OVERRIDES_WINT_T]: Redefine WINT_MIN and
26449         WINT_MAX.
26451 2016-12-17  Bruno Haible  <bruno@clisp.org>
26453         Avoid autoconf warning.
26454         * modules/frexpl (configure.ac): Require, not invoke, gl_FUNC_FREXPL.
26455         * modules/frexp (configure.ac): Require, not invoke, gl_FUNC_FREXP.
26457 2016-12-17  Bruno Haible  <bruno@clisp.org>
26459         fpending: Revert workaround against Emacs bug.
26460         * lib/stdio-impl.h [__MINGW32__]: Revert conditional.
26461         The Emacs bug is fixed by Eli Zaretskii in
26462         http://lists.gnu.org/r/emacs-devel/2016-12/msg00715.html
26464 2016-12-17  Bruno Haible  <bruno@clisp.org>
26466         getlogin_r tests: Port to mingw.
26467         * tests/test-getlogin_r.c: Don't include <pwd.h> on native Windows. Fixes
26468         regression introduced on 2014-05-19.
26470 2016-12-17  Bruno Haible  <bruno@clisp.org>
26472         getlogin: Port to newer mingw.
26473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_GETLOGIN.
26474         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Set HAVE_DECL_GETLOGIN.
26475         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETLOGIN, not
26476         HAVE_GETLOGIN.
26477         * lib/unistd.in.h (getlogin): Test HAVE_DECL_GETLOGIN, not
26478         HAVE_GETLOGIN.
26479         * doc/posix-functions/getlogin.texi: Mention the issue.
26480         * tests/test-getlogin.c: Don't include <pwd.h> on native Windows. Fixes
26481         regression introduced on 2014-05-14.
26483 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26485         builtin-expect: improve port to IBM XL C
26486         Problem reported for z/OS by Daniel Richard G. in:
26487         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00079.html
26488         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26489         Test for <builtins.h> directly.
26491         builtin-expect: port to IBM XL C
26492         Problem reported for z/OS by Daniel Richard G. in:
26493         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00074.html
26494         * m4/builtin-expect.m4 (gl___BUILTIN_EXPECT):
26495         Also allow __builtin_expect defined via a standard include file.
26497         regex: fix dependency
26498         Problem reported by Bruno Haible in:
26499         http://lists.gnu.org/r/bug-gnulib/2016-12/msg00073.html
26500         * modules/regex: Depend on builtin-expect.
26502         builtin-expect: new module
26503         Fix fnmatch to use it.
26504         Problem reported for z/OS by Daniel Richard G.
26505         * lib/fnmatch.c (__builtin_expect):
26506         * lib/glob.c (__builtin_expect):
26507         * lib/grantpt.c (__builtin_expect) [!_LIBC]:
26508         * lib/memmem.c (__builtin_expect) [!_LIBC]:
26509         * lib/scandir.c (__builtin_expect):
26510         * lib/strstr.c (__builtin_expect) [!_LIBC]:
26511         Remove macro; config.h now does this.
26512         * lib/gl_anytreehash_list1.h (add_to_bucket):
26513         * lib/regex_internal.h (BE):
26514         Assume __builtin_expect.
26515         * m4/builtin-expect.m4, modules/builtin-expect: New files.
26516         * modules/avltreehash-list, modules/fnmatch, modules/glob:
26517         * modules/grantpt, modules/memmem-simple, modules/rbtreehash-list:
26518         * modules/scandir, modules/strstr-simple:
26519         Depend on builtin-expect.
26521 2016-12-15  Bruno Haible  <bruno@clisp.org>
26523         init.sh: Add possibility to not delete temporary files.
26524         * tests/init.sh (remove_tmp_): If the environment variable KEEP is set
26525         to yes, don't erase the temporary directory.
26527 2016-12-16  Paul Eggert  <eggert@cs.ucla.edu>
26529         regex: fix integer-overflow bug in never-used code
26530         Problem reported by Clément Pit–Claudel in:
26531         http://lists.gnu.org/r/emacs-devel/2016-12/msg00654.html
26532         * lib/regex_internal.h: Include intprops.h.
26533         * lib/regexec.c (re_search_2_stub): Use it to avoid undefined
26534         behavior on integer overflow.
26535         * modules/regex (Depends-on): Add intprops.
26537         fpending: fix port to MinGW on Emacs
26538         * lib/stdio-impl.h [__MINGW32__]: Do not include errno.h.
26539         Problem reported by Eli Zaretskii in:
26540         http://lists.gnu.org/r/emacs-devel/2016-12/msg00642.html
26541         Is Plan 9 still a valid porting target, anyway?
26543 2016-12-15  Paul Eggert  <eggert@cs.ucla.edu>
26545         safe-alloc: use xalloc-oversized
26546         * lib/safe-alloc.c: Include xalloc-oversized.h.
26547         (safe_alloc_oversized): Remove.  All uses changed to xalloc_oversized.
26548         * modules/safe-alloc (Depends-on): Add xalloc-oversized.
26550         xalloc: do not exceed PTRDIFF_MAX
26551         * lib/xmalloc.c (xcalloc) [HAVE_GNU_CALLOC]: Do not omit
26552         xalloc_oversized check, since objects larger than PTRDIFF_MAX
26553         bytes have pointer-subtraction problems.
26555         malloca: do not exceed PTRDIFF_MAX
26556         * lib/malloca.h: Include xalloc-oversized.
26557         (nmalloca): Use xalloc_oversized instead of rolling our own.
26558         * modules/malloca (Depends-on):
26559         * modules/relocatable-prog-wrapper (Depends-on):
26560         Add xalloc-oversized.
26562         quotearg: pacify GCC better
26563         * modules/quotearg (Depends-on): Add minmax, stdint.
26564         * lib/quotearg.c: Include minmax.h, stdint.h.
26565         (nslots): Now int, as there seems little point to going to extra
26566         work merely to support the INT_MAX slot, which nobody ever uses.
26567         (quotearg_n_options): Redo size-overflow checks to pacify GCC
26568         and to catch (mostly-theoretical) ptrdiff_t problems too.
26569         This can be done via one comparison.
26571 2016-12-14  Paul Eggert  <eggert@cs.ucla.edu>
26573         xalloc-oversized: check for PTRDIFF_MAX too
26574         This avoids undefined behavior when subtracting pointers to
26575         objects containing more than PTRDIFF_MAX bytes.
26576         * lib/xalloc-oversized.h (__xalloc_oversized, xalloc_oversized):
26577         Also return 1 if the result would exceed PTRDIFF_MAX>
26578         * modules/xalloc-oversized (Depends-on):
26579         Add stdint.
26581         dfa: fix glitches in previous commit
26582         Sorry, I don't know how I managed to commit the wrong version.
26583         * lib/dfa.c (MIN): Move up.
26584         (xpalloc): Now static.
26586         dfa: fix some unlikely integer overflows
26587         I found these while reviewing the recent Coverity-related fix.
26588         This patch changes part of dfa.c to prefer ptrdiff_t instead of
26589         size_t for object counts.  Using ptrdiff_t is the style typically
26590         used in Emacs; although it wastes a sign bit as sizes can never be
26591         negative, it makes -fsanitize=undefined more likely to catch
26592         integer overflows in index calculation, and nowadays the upside is
26593         typically more important than the downside.  Although perhaps the
26594         rest of dfa.c should be changed to prefer ptrdiff_t as well (much
26595         of dfa.c already does, since it uses state_num which is signed),
26596         that is a bigger change and is not needed to fix the bugs I found.
26597         * lib/dfa.c: Include stdint.h and intprops.h.
26598         (TOKEN_MAX): New macro.
26599         (position_set, struct mb_char_classes, struct dfa, maybe_realloc)
26600         (charclass_index, parse_bracket_exp, addtok, insert, merge)
26601         (realloc_trans_if_necessary, free_mbdata):
26602         Use ptrdiff_t instead of size_t for object counts related to xpalloc.
26603         This is safe because xpalloc checks that the sizes do not exceed
26604         either SIZE_MAX or PTRDIFF_MAX.
26605         (xpalloc): New function, mostly taken from Emacs.
26606         (maybe_realloc, copy, realloc_trans_if_necessary): Use it.
26607         (maybe_realloc): Add NITEMS_MAX to signature.  All callers changed.
26608         (charclass_index): Check for integer overflow in computing
26609         charclass index; it must not exceed TOKEN_MAX - CSET, as CSET is
26610         added to it later.
26611         (alloc_position_set): Check for integer overflow.  On typical
26612         platforms this check has zero overhead, since the constant
26613         expression is false.
26614         (realloc_trans_if_necessary):
26615         Remove assertion, which I hope Coverity no longer needs.
26617         * modules/dfa (Depends-on): Add intprops, stdint.
26619 2016-12-12  Jim Meyering  <meyering@fb.com>
26621         dfa: add an assertion to avoid coverity false positive
26622         * lib/dfa.c (realloc_trans_if_necessary): Otherwise, coverity
26623         warned that "newalloc1 - 2" could overflow.
26625 2016-12-13   Arnold D. Robbins  <arnold@skeeve.com>
26627         dfa: remove DFA_CASE_FOLD flag in favor of RE_ICASE
26628         * dfa.h (DFA_CASE_FOLD): Remove.
26629         * dfa.c (dfasyntax): Set dfa->syntax.case_fold based on RE_ICASE.
26631 2016-12-13  John W. Eaton  <gnu@jweaton.org>
26633         link: fix test to declare use of rename()
26634         * m4/link.m4 (gl_FUNC_LINK): Include <stdio.h> needed with
26635         -Werror=implicit-function-declaration
26637 2016-12-12  Bruno Haible  <bruno@clisp.org>
26639         fpending: Port to native Windows with MSVC.
26640         * lib/fpending.c: Include stdio-impl.h.
26641         (__fpending): Include all known implementations. Err out if it's not
26642         ported.
26643         * m4/fpending.m4 (gl_PREREQ_FPENDING): Remove macro.
26644         * modules/fpending (Files): Add lib/stdio-impl.h.
26645         (configure.ac): Don't invoke gl_PREREQ_FPENDING.
26647 2016-12-12  Bruno Haible  <bruno@clisp.org>
26649         stdioext: Port to native Windows with MSVC.
26650         * lib/stdio-impl.h (WINDOWS_OPAQUE_FILE): New macro.
26651         (struct _gl_real_FILE): New type.
26652         (fp_, _IOREAD, _IOWRT, _IORW, _IOEOF, _IOERR): New macros, for native
26653         Windows.
26654         * lib/fbufmode.c (fbufmode): Add code for native Windows.
26655         * lib/fflush.c (clear_ungetc_buffer): Treat native Windows like the
26656         other SystemV derived implementations.
26657         * lib/fpurge.c (fpurge): Likewise.
26658         * lib/freadable.c (freadable): Likewise.
26659         * lib/freadahead.c (freadahead): Likewise.
26660         * lib/freading.c (freading): Likewise.
26661         * lib/freadptr.c (freadptr): Likewise.
26662         * lib/freadseek.c (freadptrinc): Likewise.
26663         * lib/fseeko.c (fseeko): Likewise.
26664         * lib/fseterr.c (fseterr): Likewise.
26665         * lib/fwritable.c (fwritable): Likewise.
26666         * lib/fwriting.c (fwriting): Likewise.
26667         Reported by Gisle Vanem <gvanem@yahoo.no>.
26669 2016-12-11  Jim Meyering  <meyering@fb.com>
26671         non-recursive-gnulib-prefix-hack.m4: remove leading "(" in case stmt
26672         * m4/non-recursive-gnulib-prefix-hack.m4: That leading "(" happens
26673         to work with most shells, but not with the one provided by many
26674         Solaris 10 systems, so running configure with such a /bin/sh evokes
26675         e.g., "./configure: syntax error at line 33602: `(' unexpected".
26676         Reported by Assaf Gordon in
26677         https://lists.gnu.org/r/sed-devel/2016-12/msg00002.html
26679 2016-12-10  Bruno Haible  <bruno@clisp.org>
26681         threadlib: Optimize out runtime test on Solaris >= 10.
26682         * m4/threadlib.m4 (gl_THREADLIB_BODY): Don't set
26683         PTHREAD_IN_USE_DETECTION_HARD if configuring on Solaris 10 or newer.
26684         Reported by Peter Felecan at <https://savannah.gnu.org/bugs/?32087>.
26686 2016-12-10  Bruno Haible  <bruno@clisp.org>
26688         stdint: Update doc about Solaris 9.
26689         * doc/posix-headers/stdint.texi: Add info about Solaris 9.
26691 2016-12-09  Bruno Haible  <bruno@clisp.org>
26693         c-ctype tests: Fix link error on Solaris 9.
26694         * modules/c-ctype-tests (Depends-on): Add 'isblank'.
26695         Reported at <https://savannah.gnu.org/bugs/?46827>.
26697 2016-12-09  Paul Eggert  <eggert@cs.ucla.edu>
26699         dfa: fix performance bug that recomputes trans
26700         * lib/dfa.c (build_state): Fix performance bug introduced in Nov
26701         25 on-demand changes.  The bug caused build_state to reset all
26702         d->trans elements to -2 even when d->trans was already non-null.
26703         Use C99 style decls after statements in this function.
26705         same-inode: port to MinGW
26706         Here st_ino is always 0, so change the definition of SAME_INODE so
26707         that 1 means the two files are the same, 0 with st_ino != 0 means
26708         they differ, and 0 with st_ino == 0 means we don’t know.  Problem
26709         reported by Bruno Haible (Bug#25146).
26710         * doc/posix-headers/sys_stat.texi (sys/stat.h): Update.
26711         * lib/same-inode.h (SAME_INODE): Return 0 on MinGW.
26713 2016-12-04  Bruno Haible  <bruno@clisp.org>
26715         javacomp-script: Support Java 7 and 8.
26716         * m4/javacomp.m4 (gt_JAVACOMP): Accept source-version 1.7, 1.8 and
26717         target-version 1.7, 1.8.
26719 2016-12-02  Daiki Ueno  <ueno@gnu.org>
26721         * gnulib-tool (func_import): Relax the regex used for "LGPLv3+ or
26722         GPLv2" rewriting.
26724 2016-12-02  Nikos Mavrogiannopoulos  <nmav@gnutls.org>
26726         * gnulib-tool (func_import): Adhere to the license guideline when
26727         rewriting the license text to "LGPLv3+ or GPLv2":
26728         https://www.gnu.org/prep/maintain/maintain.html#Licensing-of-GNU-Packages
26730 2016-12-02  Bruno Haible  <bruno@clisp.org>
26732         localcharset: Avoid theoretical buffer overrun.
26733         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Don't use the
26734         return value from setlocale if it would lead to a buffer overrun.
26736 2016-12-01  Bruno Haible  <bruno@clisp.org>
26738         Relicense some modules under LGPLv2+.
26739         Kevin Cernekee's approval is in
26740         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00090.html.
26741         * modules/fseterr (License): Change to LGPLv2+.
26742         * modules/mbchar (License): Likewise.
26743         * modules/mbiter (License): Likewise.
26744         * modules/mbsnlen (License): Likewise.
26745         * modules/wcwidth (License): Likewise.
26747 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26749         scandir: Fix _D_ALLOC_NAMLEN() on OS/2 kLIBC
26750         * lib/scandir.c (_D_ALLOC_NAMLEN): Consider the fields after d_name on
26751         OS/2 kLIBC.
26753 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26755         alphasort, scandir: Port to OS/2 kLIBC
26756         * lib/alphasort.c (alphasort): Implement according to OS/2 kLIBC
26757         declaration.
26758         * lib/scandir.c (scandir): Add declaration for OS/2 kLIBC.
26760 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26762         relocatable: Fix that /@unixroot prefix is not working on OS/2 kLIBC
26763         * lib/relocatable.c (relocate): Do not touch pathname if it is started
26764         with '/@unixroot'.
26766 2016-12-01  KO Myung-Hun  <komh78@gmail.com>
26768         sys_socket: typedef sa_family_t correctly on OS/2 kLIBC
26769         * lib/sys_socket.in.h (sa_family_t): Typedef to unsigned char on
26770         OS/2 kLIBC unless TCPV40HDRS is defined.
26772 2016-11-29  Jim Meyering  <meyering@fb.com>
26774         dfa: avoid new infinite loop
26775         This would infloop: echo cx | LC_ALL=C grep -E 'c\b[x ]'
26776         * lib/dfa.c (dfastate): When constructing a new state table, we could
26777         initially declare that we had found a match, and later find that
26778         constraints eliminate that possibility, yet continue to use the
26779         now stale "matched" indicator.  That would lead to an infinite loop.
26780         The solution is to update "matched" when necessary.
26781         Introduced by commit v0.1-983-g403adf1.
26783 2016-11-27  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26785         dfa: avoid match middle in multibyte character
26786         * lib/dfa.c (transit_state): If fails in matching single byte characters
26787         on a state including period expression in non-UTF8 multibyte locales,
26788         skip trailing bytes.
26789         (dfa_supported): Revert previous change.
26791 2016-11-27  Jim Meyering  <meyering@fb.com>
26793         dfa: avoid false match in non-UTF8 multibyte locales
26794         * lib/dfa.c (dfa_supported): Treat any non-UTF8 multibyte locale
26795         as "not supported" so that callers will resort to using regex-based
26796         matcher.  This will surely hurt performance, but correctness trumps
26797         performance here, and the affected locales are less and less relevant,
26798         these days.  See grep's bug report https://bugs.gnu.org/24975.
26800 2016-11-27  Mike Frysinger  <vapier@gentoo.org>
26802         ptsname_r: leverage AC_HEADER_MAJOR to provide major()
26803         * lib/ptsname_r.c: Include the appropriate headers.
26804         [__sun]: Delete sys/sysmacros.h include.
26805         [_AIX || __osf__]: Likewise.
26806         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Depend on AC_HEADER_MAJOR.
26808 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26810         md4,md5,sha*: allow _STRING_INLINE_unaligned enable unaligned operation
26811         * lib/md4.c (md4_process_bytes): The existing define is made internal
26812         in recent versions of glibc, so also use this new public define.
26813         * lib/md5.c (md5_process_bytes): Likewise.
26814         * lib/sha1.c (sha1_process_bytes): Likewise.
26815         * lib/sha256.c (sha256_process_bytes): Likewise.
26816         * lib/sha512.c (sha512_process_bytes): Likewise.
26818 2016-11-27  Pádraig Brady  <P@draigBrady.com>
26820         maint: use a more standard return from mbrtowc test
26821         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): Don't return 1
26822         from the test program as this often indicates an
26823         unhandled case in the test program.
26824         (gl_MBRTOWC_INCOMPLETE_STATE): Likewise.
26825         (gl_MBRTOWC_SANITYCHECK): Likewise.
26826         (gl_MBRTOWC_NULL_ARG2): Likewise.
26827         (gl_MBRTOWC_NUL_RETVAL): Likewise.
26829 2016-11-26  Paul Eggert  <eggert@cs.ucla.edu>
26831         freopen: work around glibc bug with closed fd
26832         Work around glibc bug#15589, where freopen mishandles the case
26833         where stdin etc. are already closed.
26834         * doc/posix-functions/freopen.texi (freopen): Document the bug.
26835         * lib/freopen.c (_GL_ALREADY_INCLUDING_STDIO_H): Define this
26836         instead of __need_FILE, as the latter does not work with glibc.
26837         Include <fcntl.h>, for open flags.
26838         (rpl_freopen): Work around glibc bug.
26839         * m4/freopen.m4 (gl_FUNC_FREOPEN): Check for bug.
26840         * modules/freopen (Depends-on): Add fcntl-h.
26841         * tests/test-freopen.c (main): Test for bug.
26843 2016-11-25  Paul Eggert  <eggert@cs.ucla.edu>
26845         fnmatch: fix typo introduced on 2016-08-17
26846         This fixes the port to non-GCC compilers that lack __builtin_expect.
26847         * lib/fnmatch.c (__builtin_expect): Change A&&B to !A||B.
26849         dfa: simplify with new function fillset
26850         * lib/dfa.c (fillset): New function.
26851         Use it for clarity when applicable.
26853         dfa: fix glitches with on-demand states
26854         Also, adjust commentary to better match new code.
26855         Some of these glitches predate the recent change.
26856         * lib/dfa.c (dfaanalyze): Clear trcount here, so that it counts
26857         only non-initial states.
26858         (dfastate): Rename locals to better match new roles.
26859         Move them into nested scopes if this is easy.
26860         Omit unnecessary calls to zeroset.
26861         Simplify test for whether to throw in the positions of state 0.
26862         Omit C99-ism (decl after statement) since Gawk still wants C89.
26863         (build_state): Omit unnecessary test and assignment.
26864         Fix some confusion that counted transition tables inaccurately
26865         and could cause a memory leak.
26866         (dfaexec_main): Redo to make it clearer to the compiler that
26867         -1 and -2 are the only negative state numbers here.
26869 2016-11-25  Norihiro Tanaka  <noritnk@kcn.ne.jp>
26871         dfa: addition of new state on demand
26872         * src/dfa.c (dfastate): Add argument UC, the current input character.
26873         Fill only a group including the character in transition table.
26874         (realloc_trans_if_necessary): Add the dummy state which means that a
26875         transition table is assigned but the next state is not assigned.
26876         (build_state): Return the next state.  All callers updated.
26877         (transit_state_singlebyte): If we get the dummy state,
26878         fill the transition table.
26879         (dfaexec_main): Handle the dummy state.
26880         (free_mbdata, dfafree): Consider the dummy state.
26882 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26884         srclist: sync with released gettext
26885         * config/srclist.txt: Set "release" option to the files under
26886         $GETTEXT.
26888 2016-11-24  Daiki Ueno  <ueno@gnu.org>
26890         srclist: add "release" option
26891         * config/srclist.txt: Change the format so that the first column
26892         of each line points to the top-level directory of the source
26893         archive.
26894         * config/srclist-update: Accept "release" option that checks files
26895         from the most recently tagged revision in the source archive.
26897 2016-11-21  Bruno Haible  <bruno@clisp.org>
26899         snippet/c++defs: Simplify _GL_CXXALIAS_* macros.
26900         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
26901         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1,
26902         _GL_CXXALIAS_SYS, _GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2):
26903         Inline and remove member function 'rpl ()' of the wrapper struct.
26905 2016-11-20  Paul Eggert  <eggert@cs.ucla.edu>
26907         dfa: fix logic typo
26908         Problem reported by Stephane Chazelas (Bug#24973).
26909         * lib/dfa.c (using_simple_locale): Fix typo that caused some
26910         non-simple locales like fr_FR to be treated as simple.
26912 2016-11-20  Jim Meyering  <meyering@fb.com>
26914         fix test driver leaks: exclude, malloc, realloc
26915         * tests/test-exclude.c (main): Fix trivial leak.
26916         * tests/test-malloc-gnu.c (main): Likewise.
26917         * tests/test-realloc-gnu.c (main): Likewise.
26918         With these changes, grep's tests are now leak free.
26919         I.e., running them with ASAN elicits no failure:
26920           make CFLAGS='-O0 -ggdb3' AM_CFLAGS=-fsanitize=address \
26921             AM_LDFLAGS='-fsanitize=address -static-libasan' check
26923 2016-11-11  Bruno Haible  <bruno@clisp.org>
26925         libunistring: Relicense under dual "LGPLv3+ or GPLv2" license.
26926         * modules/libunistring: (License): Change from LGPL to
26927         "LGPLv3+ or GPLv2".
26928         * modules/libunistring-optional: Likewise.
26929         * modules/unicase/*: Likewise.
26930         * modules/uniconv/*: Likewise.
26931         * modules/unictype/*: Likewise.
26932         * modules/unigbrk/*: Likewise.
26933         * modules/unilbrk/*: Likewise.
26934         * modules/uniname/*: Likewise.
26935         * modules/uninorm/*: Likewise.
26936         * modules/unistdio/*: Likewise.
26937         * modules/unistr/*: Likewise.
26938         * modules/uniwbrk/*: Likewise.
26939         * modules/uniwidth/*: Likewise.
26941 2016-11-12  Bruno Haible  <bruno@clisp.org>
26943         Relicense some modules under LGPLv2+.
26944         Paul Eggert's approval is in
26945         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00037.html.
26946         Eric Blake's approval is in
26947         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00042.html.
26948         Ludovic Courtès's approval is in
26949         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00038.html.
26950         * modules/isnand-nolibm (License): Change to LGPLv2+.
26951         * modules/isnanf-nolibm (License): Likewise.
26952         * modules/isnanl-nolibm (License): Likewise.
26954 2016-11-19  Bruno Haible  <bruno@clisp.org>
26956         Relicense some modules under LGPLv2+.
26957         lib/float+.h is already under LGPLv2+ since 2007-07-13, per
26958         modules/vasnprintf.
26959         Paolo Bonzini's approval for lib/frexp.c and lib/frexpl.c is in
26960         http://lists.gnu.org/r/bug-gnulib/2016-11/msg00074.html.
26961         All other significant changes to the files in lib/ of these modules
26962         are from me.
26963         * modules/memcmp2 (License): Change to LGPLv2+.
26964         * modules/amemxfrm (License): Likewise.
26965         * modules/fpieee (License): Likewise.
26966         * modules/fpucw (License): Likewise.
26967         * modules/frexp-nolibm (License): Likewise.
26968         * modules/frexpl-nolibm (License): Likewise.
26969         * modules/printf-frexp (License): Likewise.
26970         * modules/printf-frexpl (License): Likewise.
26971         * modules/printf-safe (License): Likewise.
26972         * modules/signbit (License): Likewise.
26974 2016-11-17  Bruno Haible  <bruno@clisp.org>
26976         Enable Unicode decoder safety unconditionally.
26977         * lib/unistr.in.h (u32_mbtouc_unsafe): Assume CONFIG_UNICODE_SAFETY.
26978         * lib/unistr/u8-mblen.c (u8_mblen): Likewise.
26979         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
26980         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
26981         * lib/unistr/u8-prev.c (u8_prev): Likewise.
26982         * lib/unistr/u8-strmblen.c (u8_strmblen): Likewise.
26983         * lib/unistr/u8-strmbtouc.c (u8_strmbtouc): Likewise.
26984         * lib/unistr/u16-mblen.c (u16_mblen): Likewise.
26985         * lib/unistr/u16-mbtouc-unsafe.c (u16_mbtouc_unsafe): Likewise.
26986         * lib/unistr/u16-mbtouc-unsafe-aux.c (u16_mbtouc_unsafe_aux): Likewise.
26987         * lib/unistr/u16-prev.c (u16_prev): Likewise.
26988         * lib/unistr/u16-strmblen.c (u16_strmblen): Likewise.
26989         * lib/unistr/u16-strmbtouc.c (u16_strmbtouc): Likewise.
26990         * lib/unistr/u32-mblen.c (u32_mblen): Likewise.
26991         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Likewise.
26992         * lib/unistr/u32-prev.c (u32_prev): Likewise.
26993         * lib/unistr/u32-next.c (u32_next): Likewise.
26994         * lib/unistr/u32-strmblen.c (u32_strmblen): Likewise.
26995         * lib/unistr/u32-strmbtouc.c (u32_strmbtouc): Likewise.
26996         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
26997         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
26998         * tests/unistr/test-u16-prev.c (check_invalid): Enable the
26999         CONFIG_UNICODE_SAFETY tests unconditionally.
27000         * tests/unistr/test-u32-mblen.c (main): Likewise.
27001         * tests/unistr/test-u32-mbtouc.h (test_function): Likewise.
27002         * tests/unistr/test-u32-prev.c (check_invalid): Likewise.
27003         * tests/unistr/test-u32-next.c (main): Likewise.
27004         * tests/unistr/test-u32-strmblen.c (main): Likewise.
27005         * tests/unistr/test-u32-strmbtouc.c (main): Likewise.
27006         * tests/unistr/test-u32-mbtouc.c (FULL_SAFETY): Remove macro.
27007         * lib/unistr/u8-check.c (u8_check): Remove old dead code.
27008         * lib/unistr/u8-mbtouc.c (u8_mbtouc): Likewise.
27009         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
27010         * lib/unistr/u8-mbtoucr.c (u8_mbtoucr): Likewise.
27011         * lib/unistr/u8-uctomb.c (u8_uctomb): Likewise.
27012         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Likewise.
27013         * lib/unistr/u16-check.c (u16_check): Update comment.
27014         * NEWS: Mention the changes that callers should be aware of.
27016 2016-11-19  Bruno Haible  <bruno@clisp.org>
27018         relocatable-prog-wrapper: Fix breakage on Cygwin.
27019         * modules/relocatable-prog-wrapper (Files): Add lib/stat.c, lib/lstat.c.
27020         (Depends-on): Remove intprops.
27021         * lib/relocwrapper.c: Update dependency tree.
27022         (strerror): Undefine.
27023         * build-aux/install-reloc (func_create_wrapper): Do not compile
27024         strerror.c and strerror-override.c. Erase stat.o and lstat.o.
27026 2016-11-19  Bruno Haible  <bruno@clisp.org>
27028         strerror: Make it compile in C++ mode.
27029         * lib/strerror.c (strerror): Ignore the return value of memcpy().
27031 2016-11-15  Pedro Alves  <palves@redhat.com>
27033         sys_time: add gnulib::timeval for C++
27034         * lib/sys_time.in.h [__cplusplus && defined GNULIB_NAMESPACE]:
27035         Define "timeval" in the GNULIB_NAMESPACE namespace, and #undef any
27036         timeval macro.
27038 2016-11-14  Pedro Alves  <palves@redhat.com>
27040         snippet/c++defs: fix real-floating arg functions in C++ mode
27041         Also, define isfinite, isinf, isnan, signbit in the gnulib
27042         namespace instead of in the global namespace.
27043         * build-aux/snippet/c++defs.h (_GL_BEGIN_NAMESPACE)
27044         (_GL_END_NAMESPACE): New.
27045         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_2): Use them.
27046         (isfinite, isinf, isnan, signbit) [__cplusplus &&
27047         GNULIB_NAMESPACE]: Define them in the GNULIB_NAMESPACE namespace
27048         instead of in the global namespace.
27049         * tests/test-math-c++.cc: Check that the isfinite, isinf, isnan,
27050         signbit overloads exist in the GNULIB_NAMESPACE namespace, instead
27051         of in the global namespace.
27053 2016-11-13  Jim Meyering  <meyering@fb.com>
27055         strftime: don't use __THROW
27056         Each use of __THROW would provoke this from gcc-7-to-be:
27058           lib/strftime.c:371:1: warning: '__leaf__' attribute has no effect \
27059             on unit local functions [-Wattributes]
27060           static int iso_week_days (int, int) __THROW;
27061           ^~~~~~
27062         * lib/strftime.c (__THROW): Don't define.
27063         Remove each use of __THROW.
27064         * lib/strftime.c (memcpy_lowcase, memcpy_uppcase): Remove __THROW.
27065         (tm_diff, iso_week_days, __strftime_internal): Likewise.
27067 2016-11-14  Paul Eggert  <eggert@union>
27069         obstack: port to gcc -fcheck-pointer-bounds
27070         Problem found by 'make check' failure on bleeding-edge coreutils
27071         on an MPX-enabled CPU (Intel Core i3-7100U) running GCC (Ubuntu
27072         6.2.0-5ubuntu12), configured via "./configure
27073         --enable-gcc-warnings CFLAGS='-mmpx -fcheck-pointer-bounds -g3
27074         -O2' LDFLAGS='-static-libmpx -static-libmpxwrappers'".
27075         * lib/obstack.h (__FLEXIBLE_ARRAY_MEMBER):
27076         New macro, copied from fts_.h.
27077         (struct _obstack_chunk.contents): Use it.
27079 2016-11-14  Eric Blake  <eblake@redhat.com>
27081         strerror_r-posix: Another fix, for HAVE_DECL_STRERROR_R on mingw.
27082         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R, gl_FUNC_STRERROR_R_WORKS):
27083         Avoid _ONCE variants, which may supply a conflicting AC_DEFINE().
27085 2016-11-14  Pádraig Brady  <P@draigBrady.com>
27087         strptime: fix compile error in recent change
27088         * lib/strptime.c (__strptime_internal): Fix ported code.
27090 2016-11-11  Bruno Haible  <bruno@clisp.org>
27092         gnulib-tool: Support for the dual "LGPLv3+ or GPLv2" license.
27093         * gnulib-tool (--lgpl): Accept value 3orGPLv2.
27094         (func_import): Extend determination of license_incompatibilities.
27095         (func_create_testdir): Extend table of license compatibility. Handle
27096         also the licenses GPLv3+, GPL, LGPLv3+.
27098 2016-11-12  Paul Eggert  <eggert@cs.ucla.edu>
27100         strftime: tune %q
27101         * lib/strftime.c (__strftime_internal): Assume tp->tm_mon is in range.
27103         Merge strftime.c changes from glibc
27104         This incorporates:
27105         2007-10-16 [BZ #5184] Add tzset_called argument
27106         2008-06-13 [BZ #6612] pass reference to tzset_called around
27107         2009-10-30 Implement Burmese language locale for Myanmar
27108         2010-01-09 Add support for XPG7 testing
27109         2015-09-26 [BZ #18985] out of range data to strftime() causes a segfault
27110         2015-10-20 Convert miscellaneous function definitions to prototype style
27111         * lib/strftime.c: Copy glibc license, since gnulib-tool rewrites
27112         it anyway and this lessens the difference between gnulib and glibc.
27113         (USE_IN_EXTENDED_LOCALE_MODEL) [_LIBC]: Define.
27114         (__THROW): Define if standard headers do not.
27115         (LOCALE_PARAM): Rename from LOCALE_PARAM_PROTO.  All uses changed.
27116         (memcpy_locase, memcpy_uppcase, tm_diff, __strftime_internal):
27117         Declare with __THROW.
27118         (__strftime_internal): Rename from strftime_case_. Add arg for
27119         whether tzset is called.  All uses changed.  Call tzset at most
27120         once.  Allow %OC, for Burmese.
27121         (a_wkday, f_wkday, a_month, f_month) [_NL_CURRENT]:
27122         Don't assume values are in range.
27124 2016-11-12  Eric Blake  <eblake@redhat.com>
27126         strerror_r-posix: Fix override of AC_FUNC_STRERROR_R
27127         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): New override.
27128         (gl_FUNC_STRERROR_R): Don't reuse AC_DEFINE() with a potentially
27129         different value.
27131 2006-11-12  Pedro Alves  <palves@redhat.com>
27133         Fix gnulib C++ namespace support and std::frexp
27134         * lib/math.in.h (frexp): Use _GL_CXXALIASWARN1 instead of
27135         _GL_CXXALIASWARN.
27137 2006-11-12  Pedro Alves  <palves@redhat.com>
27139         GNULIB_NAMESPACE::func need not pull in rpl_func
27140         * build-aux/snippet/c++defs.h [__cplusplus && GNULIB_NAMESPACE]
27141         (_GL_CXXALIAS_RPL_1, _GL_CXXALIAS_RPL_CAST_1, _GL_CXXALIAS_SYS)
27142         (_GL_CXXALIAS_SYS_CAST, _GL_CXXALIAS_SYS_CAST2): Define a wrapper
27143         struct instead of a function pointer.
27145 2016-11-09  Frediano Ziglio  <fziglio@redhat.com>
27147         manywarnings: fix -Wno-missing-field-initializers detection
27148         * m4/manywarnings.m4: Fix -Wno-missing-field-initializers detection
27149         to be independent of -Wunused-variable.  I.E. ensure the latter
27150         warning doesn't occur so that detection of the former is accurate.
27152 2016-11-05  Pádraig Brady  <pbrady@fb.com>
27154         strftime,strptime: support %q to represent the quarter
27155         * lib/strftime.c (strftime_case_): Add %q case.
27156         * lib/strptime.c (__strptime_internal): Likewise.
27157         * tests/test-strftime.c (quarter_test): A new test case.
27159 2016-11-03  Eric Blake  <eblake@redhat.com>
27161         bootstrap: Fix get_version() for AIX 5.3
27162         * build-aux/bootstrap (get_version): Factor out sed script, since
27163         indented comments choke AIX 5.3 sed.
27164         Reported-by: Michael Felt <aixtools@gmail.com>
27166 2016-11-03  Paul Eggert  <eggert@cs.ucla.edu>
27168         intprops: port to older XL C
27169         Problem reported by Alexander Samoilov in:
27170         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00166.html
27171         http://savannah.nongnu.org/bugs/?49448
27172         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM__TYPEOF__]:
27173         Define to 1 only for XL C 12.1 or later, since this bug
27174         occurs in XL C for AIX 6.0 but not in 12.1.
27176 2016-11-02  Pádraig Brady  <P@draigBrady.com>
27178         backupfile: initialize default suffix within the implementation
27179         * lib/backupfile.c (find_backup_file_name): Initialize the
27180         global variable here, to simplify usage, and to only call
27181         getenv() when needed.
27183 2016-11-01  Paul Eggert  <eggert@cs.ucla.edu>
27185         futimens: remove FIXME for old Linux kernels
27186         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Belatedy do a "simplify
27187         this in 2012" FIXME, like that for utimensat.
27189         utimensat: remove FIXME for old Linux kernels
27190         * lib/utimensat.c (rpl_utimensat): Update FIXME comment.
27191         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Belatedy do a "simplify
27192         this in 2012" FIXME, by assuming the file system bug is absent
27193         unless demonstrated to be present.  We no longer need to worry
27194         about Linux kernel 2.6.32 when building with newer kernels.
27196 2016-10-16  Bruno Haible  <bruno@clisp.org>
27198         qsort_r: Fix macrology for platforms that lack the function.
27199         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for qsort_r.
27200         (gl_STDLIB_H_DEFAULTS): Initialize HAVE_QSORT_R.
27201         * modules/stdlib (Makefile.am): Substitute HAVE_QSORT_R.
27202         * lib/stdlib.in.h (qsort_r): Provide declaration if the function does
27203         not exist.
27204         * m4/qsort_r.m4 (gl_FUNC_QSORT_R): Use AC_CHECK_FUNCS to test whether
27205         the function exists.
27206         * modules/qsort_r: Add comments.
27208 2016-10-26  Paul Eggert  <eggert@cs.ucla.edu>
27210         sys_types: fix Texinfo typos
27211         * doc/glibc-functions/gnu_dev_major.texi:
27212         * doc/glibc-functions/gnu_dev_makedev.texi:
27213         * doc/glibc-functions/gnu_dev_minor.texi: Fix typos.
27215 2016-10-26  John David Anglin  <dave.anglin@bell.net>
27217         getprogname: port to HP-UX
27218         See Bug#24805.
27219         * lib/getprogname.c (getprogname) [__hpux]: Port.
27220         * tests/test-getprogname.c (STREQ) [__hpux]:
27221         Special-case for HP-UX limitations on program name length.
27223 2016-10-20  Bruno Haible  <bruno@clisp.org>
27225         Update doc about target platforms.
27226         * doc/gnulib-intro.texi (Target Platforms): Update list.
27228 2016-10-15  Bruno Haible  <bruno@clisp.org>
27230         opendir, readdir, closedir: Relicense under LGPLv2+.
27231         * modules/opendir (License): Change to LGPLv2+.
27232         * modules/readdir (License): Likewise.
27233         * modules/closedir (License): Likewise.
27235 2016-10-16  Bruno Haible  <bruno@clisp.org>
27237         Fix conflict between strerror_r-posix module and AC_FUNC_STRERROR_R.
27238         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Override the values set by the
27239         AC_FUNC_STRERROR_R macro. Define HAVE_DECL_STRERROR_R_ORIG.
27240         * lib/strerror_r.c: Use HAVE_DECL_STRERROR_R_ORIG instead of
27241         HAVE_DECL_STRERROR_R.
27243 2016-10-16  Bruno Haible  <bruno@clisp.org>
27245         Make the 'argp' module work without the 'error' module.
27246         * m4/argp.m4 (gl_ARGP): Require AC_FUNC_STRERROR_R.
27248 2016-10-25  Paul Eggert  <eggert@cs.ucla.edu>
27250         diffseq: restore TOO_EXPENSIVE heuristic
27251         * lib/diffseq.h: Problem with diffutils reported by Andreas Schwab
27252         (Bug#24715).  The simplest solution is to restore the
27253         TOO_EXPENSIVE heuristic that I added to GNU diff in 1993, while
27254         using a higher threshold to avoid Bug#16848 on smaller files.
27255         * lib/diffseq.h (struct context): Restore member too_expensive.
27256         (struct partition): Restore members lo_minimal, hi_minimal.
27257         (diag, compareseq): Restore arg find_minimal.  All uses changed.
27258         (diag): Restore the TOO_EXPENSIVE heuristic that I added back in
27259         1993 to make 'diff' run faster (but not as well) on large inputs,
27260         but use a threshold of 4096 instead of the old 256.
27261         * lib/fstrcmp.c (strcmp_bounded):
27262         * lib/git-merge-changelog.c (compute_differences):
27263         Adjust to diffseq.h changes.
27265 2016-10-22  Bruno Haible  <bruno@clisp.org>
27267         iconv: Avoid compilation error when bootstrapping GNU libiconv.
27268         * m4/iconv.m4 (AM_ICONV): When the system does not have an iconv()
27269         declaration yet, define ICONV_CONST to empty.
27271 2016-10-15  Bruno Haible  <bruno@clisp.org>
27273         Avoid gnulib-tool warnings about the dependencies of 'parse-datetime'.
27274         * gnulib-tool (func_get_license): Special-case the 'parse-datetime'
27275         module.
27277 2016-10-16  Bruno Haible  <bruno@clisp.org>
27279         system-quote tests: Avoid compiler warning on AIX.
27280         * tests/test-system-quote-child.c (fopen): Redefine like the system's
27281         <stdio.h> does.
27283 2016-10-16  Bruno Haible  <bruno@clisp.org>
27285         Fix some "gcc -Wall" warnings.
27286         * tests/test-ffsl.c (main): Use variable x, not i.
27287         * tests/test-posix_spawn3.c (parent_main): Consider the return value of
27288         freopen.
27289         * tests/test-sethostname1.c (main): Explicitly ignore the return value
27290         of sethostname.
27292 2016-10-16  Bruno Haible  <bruno@clisp.org>
27294         gnulib-tool: Make --create-testdir on all modules work again.
27295         * gnulib-tool (func_create_testdir): Don't include the
27296         non-recursive-gnulib-prefix-hack module.
27298 2016-10-21  Daiki Ueno  <ueno@gnu.org>
27300         libunistring: change the maintainer to 'all'
27301         * modules/gen-uni-tables, modules/libunistring:
27302         * modules/ucs4-utf16, modules/ucs4-utf8, modules/unicodeio:
27303         * modules/unitypes, modules/utf16-ucs4, modules/utf16-ucs4-unsafe:
27304         * modules/utf8-ucs4, modules/utf8-ucs4-unsafe:
27305         * modules/unicase/*, modules/uniconv/*, modules/unictype/*:
27306         * modules/unilbrk/*, modules/uniname/*, modules/uninorm/*:
27307         * modules/unistdio/*, modules/unistr/*, modules/uniwbrk/*:
27308         * modules/uniwidth/*: Change the maintainer to 'all'.
27310 2016-10-16  Bruno Haible  <bruno@clisp.org>
27312         Simplify "configure: checking ..." messages.
27313         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use AC_MSG_CHECKING instead of
27314         AC_MSG_NOTICE.
27315         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
27317 2016-10-20  Paul Eggert  <eggert@cs.ucla.edu>
27319         quotearg-tests: pacify gcc -Wall
27320         Problem reported by Bruno Haible in:
27321         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00066.html
27322         * tests/test-quotearg-simple.c (use_quote_double_quotes): Move here ...
27323         * tests/test-quotearg.h: ... from here.
27325 2016-10-20  Pádraig Brady  <P@draigBrady.com>
27327         canonicalize-lgpl: fix for missing SIZE_MAX on older systems
27328         * lib/canonicalize-lgpl.c [SIZE_MAX]: Define if needed.
27329         Needed on Centos <= 4.
27331 2016-10-20  Jim Meyering  <meyering@fb.com>
27333         printf.m4: fix a bug in detecting printf %j support
27334         * m4/printf.m4 (gl_PRINTF_SIZES_C99): Fail any system for which
27335         uintmax_t is defined in neither stdint.h nor inttypes.h.
27336         Before, this macro might have mistakenly set
27337         gl_cv_func_printf_sizes_c99=yes on such a system.
27338         Spotted by Zev Weiss.
27340 2016-10-19  Paul Eggert  <eggert@cs.ucla.edu>
27342         sched: substitute HAVE_SYS_CDEFS_H too
27343         Problem reported by Tom G. Christensen in:
27344         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00084.html
27345         * m4/sched_h.m4 (gl_SCHED_H): Set and substitute HAVE_SYS_CDEFS_H.
27346         * modules/sched (Depends-on): Substitute HAVE_SYS_CDEFS_H.
27348 2016-10-19  Pádraig Brady  <P@draigBrady.com>
27350         quotearg: never write beyond the returned length
27351         * lib/quotearg.c (quotearg_buffer_restyled): Switch to a read-only
27352         scan of the string when we initially encounter a single quote when
27353         shell quoting, so that if we then switch to a more concise quoting method
27354         we will not have written beyond that returned length.
27355         This is significant for sh-quote, which has separate routines
27356         to determine the length and do the actual quoting.
27357         * tests/test-quotearg.h: Reinstate the buffer bounds checking
27358         now that we never write more than the returned length.
27360 2016-10-18  Bruno Haible  <bruno@clisp.org>
27362         getprogname tests: Avoid failure in packages that use libtool.
27363         * tests/test-getprogname.c (main): Strip "lt-" prefix.
27364         Based on a patch by Jim Meyering.
27366 2016-10-16  Bruno Haible  <bruno@clisp.org>
27368         getprogname: Fix test failure on Cygwin. Comments.
27369         * lib/getprogname.h: Add comments.
27370         * lib/getprogname.c: Add comments. Fix #elif indentation.
27371         * tests/test-getprogname.c (main): On Cygwin, expect a result without
27372         ".exe" suffix.
27374 2016-10-16  Bruno Haible  <bruno@clisp.org>
27376         Make sure the libunistring detection rejects older versions with a
27377         known bug.
27378         * modules/unistr/u8-strtok (configure.ac): Bump required version.
27379         * modules/unistr/u16-strtok (configure.ac): Likewise.
27380         * modules/unistr/u32-strtok (configure.ac): Likewise.
27382 2016-10-18  Bruno Haible  <bruno@clisp.org>
27384         sh-quote, system-quote: revert regression of unit test.
27385         * tests/test-sh-quote.c (check_one): Do detect buffer overruns.
27386         * tests/test-system-quote-main.c (check_one): Likewise.
27388 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27390         quotearg: fix stale tests
27391         * tests/test-quotearg.c [locale_results]: Add the missing str7
27392         entries to the expected results.
27393         * tests/test-system-quote-main.c (check_one): Don't enforce that we
27394         don't write beyond the returned length, since that's no longer the
27395         case if we switch to a more concise quoting style.
27396         * tests/test-sh-quote.c (check_one): Likewise.
27397         (main): Adjust for the new more concise quoting style.
27398         Reported by Bruno Haible.
27400 2016-10-16  Jim Meyering  <meyering@fb.com>
27402         non-recursive-gnulib-prefix-hack: fix inconsequential typo
27403         * m4/non-recursive-gnulib-prefix-hack.m4: Change a hard-coded "lib"
27404         to "$1".  This macro is always invoked with $1 == lib.
27405         Spotted by Bruno Haible
27407 2016-10-16  Bruno Haible  <bruno@clisp.org>
27409         Fix a test crash.
27410         * tests/test-duplocale.c (main): Skip the test if the 'newlocale' call
27411         fails.
27413 2016-10-16  Pádraig Brady  <P@draigBrady.com>
27415         test-limits-h: suppress -Woverlength-strings
27416         * tests/test-limits-h.c [__GNUC__]: Ignore -Woverlength-strings.
27418 2016-10-15  Bruno Haible  <bruno@clisp.org>
27420         gettime, timespec, utimens: Relicense under LGPL.
27421         * modules/gettime (License): Change to LGPL.
27422         * modules/timespec (License): Likewise.
27423         * modules/utimens (License): Likewise.
27425 2016-10-14  Bruno Haible  <bruno@clisp.org>
27426             Pádraig Brady  <P@draigBrady.com>
27428         canonicalize-lgpl: Support the case path_max > INT_MAX.
27429         * lib/canonicalize-lgpl.c (__realpath): Declare n as ssize_t, not int.
27430         Fix overflow check, for platforms where 'size_t' is larger than 'long'.
27432 2016-10-13  Jim Meyering  <meyering@fb.com>
27434         getprogname: IBM z/OS: avoid NULL-dereference
27435         * lib/getprogname.c (getprogname) [__MVS__]: Don't dereference NULL
27436         upon strdup failure.
27438 2016-10-12  Jim Meyering  <meyering@fb.com>
27440         test-stdint: use _GL_VERIFY rather than "verify" for some tests
27441         * tests/test-stdint.c (verify_width): Implement with _GL_VERIFY
27442         and an abbreviated diagnostic rather than verify with the full one,
27443         because the full-length strings would evoke warnings from gcc with
27444         -Woverlength-strings.
27446 2016-10-13  Paul Eggert  <eggert@cs.ucla.edu>
27448         stdint: port SIZE_MAX to glibc s390
27449         Problem reported by Eric Blake in:
27450         http://lists.gnu.org/r/bug-gnulib/2016-10/msg00031.html
27451         * doc/posix-headers/stdint.texi (stdint.h): Document the fix.
27452         * m4/stdint.m4 (gl_STDINT_H): Check that SIZE_MAX has the
27453         correct type, if possible.
27455 2016-10-13  Daniel Richard G.  <skunk@iSKUNK.ORG>
27457         getprogname: port to IBM z/OS
27458         * lib/getprogname.c (getprogname): Use w_getpsent() to get the name.
27460 2016-10-11  Jim Meyering  <meyering@fb.com>
27462         maint: remove stray space after "." in AC_DEFINE comment.
27463         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Remove space-after-".".
27464         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
27466 2016-10-05  Jim Meyering  <meyering@fb.com>
27468         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27469         * lib/long-options.c (parse_long_options): Add a break statement
27470         to avoid this new warning/failure:
27471         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27472           --create-testdir --dir=/t/x --with-tests --test long-options
27473         ../../gllib/long-options.c: In function 'parse_long_options':
27474         ../../gllib/long-options.c:66:12: error: this statement may \
27475           fall through [-Werror=implicit-fallthrough]
27476                    (*usage_func) (EXIT_SUCCESS);
27477                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27479 2016-10-05  Jim Meyering  <meyering@fb.com>
27481         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27482         Testing this module would fail when using GCC 7 like this:
27483         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27484           --dir=/tmp/x --with-tests --test utimecmp
27485         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27486         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27487           [-Werror=bool-operation]
27488                          time_t s = src_s & ~ (res == 2 * BILLION);
27489                                             ^
27490         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27491           [-Werror=bool-operation]
27492                src_s &= ~ (res == 2 * BILLION);
27493                         ^
27494         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27495         Instead, make it explicit that we intend to apply it to 0 or 1.
27497 2016-10-10  Norihiro Tanaka  <noritnk@kcn.ne.jp>
27499         dfa: save memory for states
27500         * src/dfa (dfaexec_main): Beginning of dfa execution, release caches of
27501         states if dfa has a lot of caches.
27503 2016-10-10  Eli Zaretskii  <eliz@gnu.org>
27505         wchar, wctype-h: fix for MinGW 3.22.2
27506         * lib/wchar.in.h [__MINGW32__]: Add one more condition for
27507         special invocation, to fix issues with MinGW 3.22.2 wchar.h
27508         when included from <string.h>.
27509         * lib/wctype.in.h [__MINGW32__]: Add special invocation
27510         convention for MinGW 3.22.2, to solve issues with their
27511         wctype.h when included from <ctype.h>.
27513 2016-10-05  Jim Meyering  <meyering@fb.com>
27515         long-options: avoid new GCC 7 warning from -Wimplicit-fallthrough
27516         * lib/long-options.c (parse_long_options): Add a break statement
27517         to avoid this new warning/failure:
27518         $ CFLAGS='-O -Werror=implicit-fallthrough' ./gnulib-tool \
27519           --create-testdir --dir=/t/x --with-tests --test long-options
27520         ../../gllib/long-options.c: In function ‘parse_long_options’:
27521         ../../gllib/long-options.c:66:12: error: this statement may \
27522           fall through [-Werror=implicit-fallthrough]
27523                    (*usage_func) (EXIT_SUCCESS);
27524                    ~^~~~~~~~~~~~~~~~~~~~~~~~~~~
27526         utimecmp: avoid new GCC 7 warning from -Wbool-operation
27527         Testing this module would fail when using GCC 7 like this:
27528         $ CFLAGS='-O -Werror=bool-operation' ./gnulib-tool --create-testdir \
27529           --dir=/tmp/x --with-tests --test utimecmp
27530         ../../gllib/utimecmp.c: In function ‘utimecmp’:
27531         ../../gllib/utimecmp.c:291:36: error: ‘~’ on a boolean expression \
27532           [-Werror=bool-operation]
27533                          time_t s = src_s & ~ (res == 2 * BILLION);
27534                                             ^
27535         ../../gllib/utimecmp.c:370:16: error: ‘~’ on a boolean expression \
27536           [-Werror=bool-operation]
27537                src_s &= ~ (res == 2 * BILLION);
27538                         ^
27539         * lib/utimecmp.c (utimecmp): Do not apply "~" to a boolean.
27540         Instead, make it explicit that we intend to apply it to 0 or 1.
27542 2016-10-03  Pádraig Brady  <P@draigBrady.com>
27544         quotearg: minimize shell quoting using double quotes
27545         * lib/quotearg.c (quotearg_buffer_restyled): If an ASCII single
27546         quote in encountered then use double quotes (c style quoting)
27547         when possible, as it simplifies the quoting.
27548         * tests/test-quotearg-simple.c: Add test cases.
27549         * tests/test-quotearg.h (use_quotearg_buffer): Adjust to account
27550         for the fact we now may write beyond the returned length.
27552 2016-10-02  Jim Meyering  <meyering@fb.com>
27554         vasnprintf.c: avoid spurious warning from GCC 7
27555         The presence of cpp directives renders this "FALLTHROUGH" comment
27556         ineffective, so does not suppress the -Wimplicit-fallthrough warning
27557         from GCC 7 built from git on 2016-10-02.
27558         * lib/vasnprintf.c (VASNPRINTF): Move comment down past two cpp
27559         directives, so that it takes effect once again.  This is clearly
27560         not a proper change, and I will revert it once this bug is fixed:
27561         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=77817
27563 2016-10-01  Jim Meyering  <meyering@fb.com>
27565         getprogname: correct the test for a __progname variable
27566         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Use AC_CACHE_CHECK
27567         and AC_LINK_IFELSE to check for a global __progname.  If found,
27568         define HAVE_VAR___PROGNAME.
27569         * lib/getprogname.c (getprogname): Reflect the new name of the
27570         feature- checked preprocessor symbol:
27571         s/HAVE_DECL___PROGNAME/HAVE_VAR___PROGNAME/
27573 2016-09-28  Jim Meyering  <meyering@fb.com>
27575         u8-uctomb-aux.c: build: placate GCC 7's new -Wimplicit-fallthrough
27576         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Mark each end of
27577         fall-through case with a /* fallthrough */ comment.
27579         dfa: build: avoid warning from GCC 7's new -Wimplicit-fallthrough
27580         * lib/dfa.c (dfassbuild): Mark the end of this case with a
27581         /* fallthrough */ comment.
27583         getprogname: avoid __progname vs program_invocation_short_name pitfall
27584         I.e., don't let the OpenBSD 5.1 fix induce failure when using newer
27585         glibc.  Would have caused failure with Fedora 25's glibc-2.24-3, but
27586         not with Fedora 24's glibc-2.23.1-10.
27587         * lib/getprogname.c (__progname): Move this declaration down...
27588         (getprogname): ... into the #elif block where used, and make it
27589         explicitly "extern".
27591         getprogname: port to OpenBSD 5.1
27592         * lib/getprogname.c (__progname) [HAVE_DECL___PROGNAME]: Declare.
27593         (getprogname) [HAVE_DECL___PROGNAME]: Return __progname or "?".
27594         * modules/getprogname (configure.ac): Move most of this code...
27595         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): ... to this function,
27596         increment serial number, and add a test for __progname.
27597         https://bugs.gnu.org/24562
27598         Reported by Nelson H. F. Beebe.
27600 2016-09-24  Paul Eggert  <eggert@cs.ucla.edu>
27602         sched: port to GCC 6.2.1 on macOS Sierra
27603         Problem reported by Denis Davydov in:
27604         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00056.html
27605         * lib/sched.in.h [HAVE_SYS_CDEFS_H]:
27606         Include <sys/cdefs.h> before <sched.h>.
27607         * m4/nproc.m4 (gl_PREREQ_NPROC): Include errno.h before sched.h,
27608         so that we needn’t worry about the sched.h include bug here.
27609         * m4/sched_h.m4 (gl_SCHED_H): Check for sys/cdefs.h,
27610         and include it before <sched.h> if it exists, when
27611         checking for <sched.h>.
27613         tests/init.sh: port Alpine fix to AIX 7.1
27614         * tests/init.sh (compare_): When attempting to use diff -U3,
27615         prefer diff -u to -U3 to -c to plain diff.  Do not insist on
27616         diff -u not outputting a space after leading '+', as the users
27617         of 'compare' should not be that picky about its output format.
27618         In the AIX 7.1 case, return with diff exit status (or with 2 if
27619         trouble), instead of some random nonzero exit status.
27620         * tests/test-init.sh (test_compare): Remove space after leading
27621         '+', so that AIX 7.1 'diff' passes the test.
27623 2016-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27625         nl_langinfo: pacify GCC
27626         * lib/nl_langinfo.c (ctype_codeset): Remove unused local.
27627         (rpl_nl_langinfo): Cast string literals to char *, to pacify GCC.
27629         stdint: also set GL_GENERATE_LIMITS_H
27630         Problem reported by Jim Meyering in:
27631         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00052.html
27632         * m4/stdint.m4 (gl_STDINT_H): Also redo the AM_CONDITIONAL.
27634         limits-h, stdint: Don't assume extensions, fix typo
27635         * m4/limits-h.m4 (gl_LIMITS_H):
27636         * m4/stdint.m4 (gl_STDINT_H):
27637         Don't assume AC_USE_SYSTEM_EXTENSIONS.
27638         * m4/stdint.m4 (gl_STDINT_H): Fix typo in setting of LIMITS_H,
27639         reported by Jim Meyering in:
27640         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00050.html
27642 2016-09-21  Jim Meyering  <meyering@fb.com>
27644         getprogname: port to AIX
27645         * lib/getprogname.c (getprogname) [_AIX]: Use getpid, getprocs64
27646         and strdup to obtain a short program name string.  Using code from
27647         Bruno Haible and an idea from Bastien ROUCARIÈS, in
27648         https://lists.gnu.org/r/bug-gnulib/2010-12/msg00249.html
27649         Assaf Gordon reported that this new file would fail to compile on
27650         AIX-7.1 32bit.
27652 2016-09-16  Paul Eggert  <eggert@cs.ucla.edu>
27654         extensions: fix typo in comment
27655         * m4/extensions.m4: Sync from Autoconf master.
27657         stdint: support new _WIDTH macros
27658         * doc/posix-headers/stdint.texi: Document this.
27659         * lib/stdint.in.h: Add support for INTMAX_WIDTH. etc.
27660         * m4/stdint.m4 (gl_STDINT_H): Require gl_LIMITS_H.  Check for
27661         support for INTMAX_WIDTH, etc. as well as for support for just C99.
27662         * modules/stdint (Depends-on): Add limits-h.
27663         (Makefile.am): Substitute HAVE_C99_STDINT_H.
27664         * modules/stdint-tests (Depends-on): Add extensions, so that
27665         INTMAX_MAX etc. are defined.
27666         * tests/test-stdint.c: Verify the new macros.
27668         limits-h: new module
27669         This adds ISO/IEC TS 18661-1:2014 support to limits.h.
27670         * MODULES.html.sh: Add limits-h,and move size_max to stdint section.
27671         * doc/posix-headers/limits.texi: Document new module.
27672         * lib/limits.in.h, m4/limits-h.m4, modules/limits-h:
27673         * modules/limit-h-tests, tests/test-limits-h.c: New files.
27675         stdio: don't redefine __USE_MINGW_ANSI_STDIO
27676         * m4/stdio_h.m4 (gl_STDIO_H): Don't define __USE_MINGW_ANSI_STDIO
27677         if it is already defined.  Apparently GNU Emacs relies on this.  See:
27678         http://lists.gnu.org/r/emacs-devel/2016-09/msg00416.html
27680 2016-09-15  Eric Blake  <eblake@redhat.com>
27682         sys_types: avoid glibc 2.25 warnings about major()
27683         * m4/sys_types_h.m4 (AC_HEADER_MAJOR): Replace broken version in
27684         older autoconf.
27685         * doc/posix-headers/sys_types.texi (sys/types.h): Document fix.
27686         * doc/glibc-functions/gnu_dev_major.texi (gnu_dev_major): Likewise.
27687         * doc/glibc-functions/gnu_dev_makedev.texi (gnu_dev_makedev): Likewise.
27688         * doc/glibc-functions/gnu_dev_minor.texi (gnu_dev_minor): Likewise.
27690         mountlist: include sysmacros.h for glibc
27691         * m4/mountlist.m4 (gl_PREREQ_MOUTLIST_EXTRA): Include
27692         AC_HEADER_MAJOR.
27693         * lib/mountlist.c (includes): Use correct headers.
27695 2016-09-15  Paul Eggert  <eggert@cs.ucla.edu>
27697         extensions: port to more ISO C TSes
27698         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Sync from Autoconf
27699         master, to add support for more recent ISO C TRs and TSes.
27701 2016-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27703         intprops: new macro TYPE_WIDTH
27704         * lib/intprops.h (TYPE_WIDTH): New macro.
27705         (TYPE_MAXIMUM, _GL_SIGNED_INT_MAXIMUM, INT_STRLEN_BOUND):
27706         * lib/ftoastr.h (_GL_FLOAT_DIG_BITS_BOUND):
27707         * lib/parse-datetime.y (parse_datetime2):
27708         Use it.
27710         extensions: port to recent ISO C TRs
27711         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
27712         Sync from Autoconf master, to add support for recent ISO C TRs.
27713         * m4/stdio_h.m4 (gl_STDIO_H): Define __USE_MINGW_ANSI_STDIO here,
27714         since AC_USE_SYSTEM_EXTENSIONS no longer does that as
27715         the MinGW option is not an extension.
27717 2016-09-11  Paul Eggert  <eggert@cs.ucla.edu>
27719         dfa: port to Solaris 9
27720         Problems reported by Tom G. Christensen in:
27721         http://lists.gnu.org/r/bug-gnulib/2016-09/msg00031.html
27722         * modules/dfa (Depends-on): Add isblank.
27723         * modules/dfa-tests (dfa_match_aux_LDADD):
27724         Rename from test_stat_LDADD, to fix typo.
27725         * tests/dfa-match.sh: Don't require 'timeout'; use it if available.
27727 2016-09-10  Jim Meyering  <meyering@fb.com>
27729         strverscmp: avoid link failure on OS X
27730         * lib/strverscmp.c [!weak_alias]: Define __strverscmp to strverscmp.
27731         Reported by Assaf Gordon in https://bugs.gnu.org/24256#26
27733 2016-08-16  Jim Meyering  <meyering@fb.com>
27735         dfa: new module, importing grep's DFA matcher
27736         Since grep's DFA matcher is now being used by two gnulib-enabled
27737         projects, grep and sed, it makes sense to version-control its
27738         sources and unit tests in one place: here.
27739         * modules/dfa: New module.
27740         * modules/dfa-tests: New file.
27741         * lib/dfa.c: New file, from grep.
27742         * lib/dfa.h: Likewise.
27743         * lib/localeinfo.c: Likewise.
27744         * lib/localeinfo.h: Likewise.
27745         * tests/dfa-match-aux.c: Likewise.
27746         * tests/dfa-invalid-char-class.sh: Likewise.
27747         * tests/dfa-match.sh: Likewise, with minor changes.
27748         * MODULES.html.sh (Misc): Add "dfa" to this list.
27750 2016-09-09  Jim Meyering  <meyering@fb.com>
27752         getprogname-tests: don't depend on assert-h
27753         * modules/getprogname-tests (Depends-on): Remove assert-h.
27754         It was not needed, and in fact would cause build failure for
27755         coreutils on some systems.  Reported by Assaf Gordon in https:
27756         //lists.gnu.org/r/coreutils/2016-09/msg00016.html
27758 2016-09-07  Jim Meyering  <meyering@fb.com>
27760         getprogname-tests: work also when EXEEXT is nonempty
27761         * modules/getprogname-tests (Makefile.am): Define EXEEXT.
27762         * tests/test-getprogname.c (main): Use it.
27763         Suggested by Gisle Vanem.
27765 2016-09-07  Gisle Vanem  <gvanem@yahoo.no>
27767         getprogname: fix errors in previous change
27768         * lib/getprogname.c (getprogname) [HAVE_GETEXECNAME]:
27769         s/program_invocation_name/base/
27770         [HAVE_DECL___ARGV]: Handle NULL __argv or __argv[0].
27772 2016-09-08  Pádraig Brady  <P@draigBrady.com>
27774         parse-datetime: restrict debug output to input string
27775         * lib/parse-datetime.y (parse_datetime2): If we parse
27776         all of the input but determine it's invalid, ensure
27777         we don't output the now invalid input pointer.
27778         This issue was seen with `date -d 'now +1'`.
27780 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27782         flexmember: new macro FLEXALIGNOF
27783         * lib/flexmember.h: Include <stddef.h>, for offsetof.
27784         (FLEXALIGNOF): Rename from _GL_XALLOC_ALIGNOF, as Emacs can use
27785         this macro.  Update comments.
27787 2016-09-07  Jim Meyering  <meyering@fb.com>
27789         getprogname: port to systems with __argv (mingw, msvc)
27790         * lib/getprogname.c (getprogname): Include "dirname.h" and use
27791         last_component: more general than open coding it with hard-coded "/".
27792         * lib/getprogname.h (getprogname): Prefer "char const *" consistently.
27793         * modules/getprogname (Depends-on): Add dirname-lgpl.
27794         (configure.ac): Check for __argv in <stdlib.h>.
27795         * modules/getprogname-tests: New file.
27796         * tests/test-getprogname.c: New file.
27797         Suggested by Gisle Vanem in
27798         https://lists.gnu.org/r/bug-gnulib/2016-09/msg00014.html
27800 2016-09-07  Paul Eggert  <eggert@cs.ucla.edu>
27802         flexmember: port better to GCC + valgrind
27803         With a char[] flexible array member in a struct with nontrivial
27804         alignment, GCC-generated code can access past the end of the
27805         array, because GCC assumes there are padding bytes to get the
27806         struct aligned.  So the common idiom of malloc (offsetof (struct
27807         s, m), n) does not properly allocate an n-byte trailing member, as
27808         malloc’s argument should be the next multiple of alignof (struct s).
27809         See GCC Bug#66661: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
27810         Although C11 apparently permits this GCC optimization (i.e., there
27811         was a bug in Gnulib not in GCC), possibly this is a defect in C11.
27812         See the thread containing:
27813         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00317.html
27814         * lib/flexmember.h: New file.
27815         * lib/fnmatch.c, lib/fts.c, lib/glob.c, lib/idcache.c:
27816         * lib/localename.c, lib/time_rz.c:
27817         Include flexmember.h.
27818         * lib/fnmatch_loop.c (struct patternlist):
27819         * lib/localename.c (struct hash_node):
27820         Use FLEXIBLE_ARRAY_MEMBER.
27821         * lib/fnmatch_loop.c (EXT):
27822         * lib/fts.c (fts_alloc):
27823         * lib/glob.c (glob_in_dir):
27824         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
27825         * lib/localename.c (gl_lock_define_initialized):
27826         * lib/time_rz.c (tzalloc):
27827         Use FLEXSIZEOF instead of offsetof.
27828         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
27829         Check that the size of the struct can be taken.
27830         * modules/flexmember (Files): Add lib/flexmember.h.
27831         * modules/fnmatch, modules/glob, modules/localename (Depends-on):
27832         Add flexmember.
27834 2016-09-06  Paul Eggert  <eggert@cs.ucla.edu>
27836         getprogname: port to Solaris 10
27837         * lib/getprogname.c: Include stdlib.h, for getexecname decl.
27838         (getprogname) [HAVE_GETEXECNAME]: Use that, for Solaris 10.
27839         * m4/getprogname.m4 (gl_FUNC_GETPROGNAME): Check for getexecname.
27841         stdalign: correct mistake in alignof doc
27842         Problem reported by Joseph Myers in:
27843         https://gcc.gnu.org/ml/gcc-patches/2016-09/msg00340.html
27844         * doc/posix-headers/stdalign.texi: Do not imply that C11 prohibits
27845         alignof(S) where S is a structure containing a flexible array
27846         member.  The Gnulib substitute does not support this, but C11 does.
27848 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27850         main.mk: remove sc_program_name, since there is no more need to
27851         use set_program_name in tools (getprogname is enough for most
27852         of the cases).
27853         * cfg.mk (local-checks-to-skip): Remove sc_program_name.
27854         * top/maint.mk (sc_program_name): Remove.
27856 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27858         Port tests away from progname, since modules that need the
27859         program name already depend on getprogname.
27860         * modules/acl-tests (Depends-on): Remove progname.
27861         * modules/argmatch (Depends-on): Likewise.
27862         * modules/argmatch-tests (Depends-on): Likewise.
27863         * modules/argp-tests (Depends-on): Likewise.
27864         * modules/argp-version-etc-tests (Depends-on): Likewise.
27865         * modules/array-list-tests (Depends-on): Likewise.
27866         * modules/array-oset-tests (Depends-on): Likewise.
27867         * modules/avltree-list-tests (Depends-on): Likewise.
27868         * modules/avltree-oset-tests (Depends-on): Likewise.
27869         * modules/avltreehash-list-tests (Depends-on): Likewise.
27870         * modules/carray-list-tests (Depends-on): Likewise.
27871         * modules/copy-file-tests (Depends-on): Likewise.
27872         * modules/exclude-tests (Depends-on): Likewise.
27873         * modules/fchownat-tests (Depends-on): Likewise.
27874         * modules/fdopendir-tests (Depends-on): Likewise.
27875         * modules/filenamecat-tests (Depends-on): Likewise.
27876         * modules/fstatat-tests (Depends-on): Likewise.
27877         * modules/fstrcmp-tests (Depends-on): Likewise.
27878         * modules/linked-list-tests (Depends-on): Likewise.
27879         * modules/linkedhash-list-tests (Depends-on): Likewise.
27880         * modules/mkdirat-tests (Depends-on): Likewise.
27881         * modules/nonblocking-pipe-tests (Depends-on): Likewise.
27882         * modules/nonblocking-socket-tests (Depends-on): Likewise.
27883         * modules/obstack-printf-tests (Depends-on): Likewise.
27884         * modules/openat-tests (Depends-on): Likewise.
27885         * modules/parse-datetime-tests (Depends-on): Likewise.
27886         * modules/pipe-filter-gi-tests (Depends-on): Likewise.
27887         * modules/pipe-filter-ii-tests (Depends-on): Likewise.
27888         * modules/quotearg-simple-tests (Depends-on): Likewise.
27889         * modules/quotearg-tests (Depends-on): Likewise.
27890         * modules/rbtree-list-tests (Depends-on): Likewise.
27891         * modules/rbtree-oset-tests (Depends-on): Likewise.
27892         * modules/rbtreehash-list-tests (Depends-on): Likewise.
27893         * modules/spawn-pipe-tests (Depends-on): Likewise.
27894         * modules/system-quote-tests (Depends-on): Likewise.
27895         * modules/uniname/uniname-tests (Depends-on): Likewise.
27896         * modules/uninorm/nfc-tests (Depends-on): Likewise.
27897         * modules/uninorm/nfd-tests (Depends-on): Likewise.
27898         * modules/uninorm/nfkc-tests (Depends-on): Likewise.
27899         * modules/uninorm/nfkd-tests (Depends-on): Likewise.
27900         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Likewise.
27901         * modules/unistdio/u16-vsprintf-tests (Depends-on): Likewise.
27902         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Likewise.
27903         * modules/unistdio/u32-vsprintf-tests (Depends-on): Likewise.
27904         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Likewise.
27905         * modules/unistdio/u8-vsprintf-tests (Depends-on): Likewise.
27906         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Likewise.
27907         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Likewise.
27908         * modules/unlinkat-tests (Depends-on): Likewise.
27909         * modules/version-etc-tests (Depends-on): Likewise.
27910         * modules/xalloc-die-tests (Depends-on): Likewise.
27911         * modules/xmemdup0-tests (Depends-on): Likewise.
27912         * modules/xprintf-posix-tests (Depends-on): Likewise.
27913         * modules/xvasprintf-tests (Depends-on): Likewise.
27914         * tests/test-argmatch.c: Do not include progname.h.
27915         (main) Stop calling set_program_name.
27916         * tests/test-argp-version-etc.c: Likewise.
27917         * tests/test-argp.c: Likewise.
27918         * tests/test-argv-iter.c: Likewise.
27919         * tests/test-array_list.c: Likewise.
27920         * tests/test-array_oset.c: Likewise.
27921         * tests/test-avltree_list.c: Likewise.
27922         * tests/test-avltree_oset.c: Likewise.
27923         * tests/test-avltreehash_list.c: Likewise.
27924         * tests/test-carray_list.c: Likewise.
27925         * tests/test-copy-acl.c: Likewise.
27926         * tests/test-copy-file.c: Likewise.
27927         * tests/test-exclude.c: Likewise.
27928         * tests/test-fchownat.c: Likewise.
27929         * tests/test-fdopendir.c: Likewise.
27930         * tests/test-filenamecat.c: Likewise.
27931         * tests/test-fstatat.c: Likewise.
27932         * tests/test-fstrcmp.c: Likewise.
27933         * tests/test-linked_list.c: Likewise.
27934         * tests/test-linkedhash_list.c: Likewise.
27935         * tests/test-mkdirat.c: Likewise.
27936         * tests/test-nonblocking-pipe-main.c: Likewise.
27937         * tests/test-nonblocking-socket-main.c: Likewise.
27938         * tests/test-obstack-printf.c: Likewise.
27939         * tests/test-openat.c: Likewise.
27940         * tests/test-parse-datetime.c: Likewise.
27941         * tests/test-pipe-filter-gi1.c: Likewise.
27942         * tests/test-pipe-filter-gi2-main.c: Likewise.
27943         * tests/test-pipe-filter-ii1.c: Likewise.
27944         * tests/test-pipe-filter-ii2-main.c: Likewise.
27945         * tests/test-quotearg-simple.c: Likewise.
27946         * tests/test-quotearg.c: Likewise.
27947         * tests/test-rbtree_list.c: Likewise.
27948         * tests/test-rbtree_oset.c: Likewise.
27949         * tests/test-rbtreehash_list.c: Likewise.
27950         * tests/test-sameacls.c: Likewise.
27951         * tests/test-set-mode-acl.c: Likewise.
27952         * tests/test-spawn-pipe-main.c: Likewise.
27953         * tests/test-system-quote-main.c: Likewise.
27954         * tests/test-unlinkat.c: Likewise.
27955         * tests/test-version-etc.c: Likewise.
27956         * tests/test-xalloc-die.c: Likewise.
27957         * tests/test-xfprintf-posix.c: Likewise.
27958         * tests/test-xmemdup0.c: Likewise.
27959         * tests/test-xprintf-posix.c: Likewise.
27960         * tests/test-xvasprintf.c: Likewise.
27961         * tests/uniname/test-uninames.c: Likewise.
27962         * tests/uninorm/test-u32-nfc-big.c: Likewise.
27963         * tests/uninorm/test-u32-nfd-big.c: Likewise.
27964         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
27965         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
27966         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
27967         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
27968         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
27969         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
27970         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
27971         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
27972         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
27973         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
27974         * tests/test-c-stack.c: (program_name): Do not define.
27975         (main): Do not set program_name.
27976         * tests/test-closein.c: Likewise.
27977         * tests/test-xstrtol.c: Likewise.
27978         * tests/test-yesno.c: Likewise.
27980 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
27982         Port modules to use getprogname explicitly, instead of requiring
27983         progname to be used (or program_name to be provided).
27984         * lib/argmatch.c: Do not include progname.h.
27985         [TEST] (program_name): Do not define.
27986         [TEST] (main): Call getprogname instead of using program_name.
27987         * lib/c-stack.c: Do not include progname.h.
27988         (program_name): Do not define.
27989         (die): Call getprogname instead of using program_name.
27990         * lib/chdir-long.c: Do not include progname.h.
27991         [TEST_CHDIR] (main): Do not set program_name.
27992         * lib/error.c [!_LIBC]: Include progname.h.
27993         [!_LIBC] (program_name): Define using getprogname.
27994         * lib/euidaccess.c: Do not include progname.h.
27995         [TEST] (main): Do not set program_name.
27996         * lib/git-merge-changelog.c: Include getprogname.h instead of
27997         progname.h.
27998         (usage): Call getprogname instead of using program_name.
27999         (main): Likewise.  Stop calling set_program_name.
28000         * lib/group-member.c: Do not include progname.h.
28001         [TEST] (main): Do not set program_name.
28002         * modules/argmatch (Depends-on): Add getprogname.
28003         * modules/c-stack (Depends-on): Likewise.
28004         * modules/error (Depends-on): Likewise.
28005         * modules/git-merge-changelog (Depends-on): Likewise.
28006         Also remove progname.
28008 2016-09-05  Pino Toscano  <ptoscano@redhat.com>
28010         * NEWS: Document the deprecation of the 'progname' module.
28012 2016-08-18  Pino Toscano  <ptoscano@redhat.com>
28014         getprogname: new module
28015         This provides a LGPL module for getting the name of the current
28016         program, using the same API found on *BSD systems.
28017         * lib/getprogname.c, lib/getprogname.h, m4/getprogname.m4:
28018         * modules/getprogname: New files.
28019         * MODULES.html.sh (Misc): Add getprogname.
28021 2016-09-02  Jim Meyering  <meyering@fb.com>
28023         manywarnings: add -fno-common
28024         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -fno-common
28025         to the list.  Quoting the manual, "Compiling with -fno-common is
28026         useful on targets for which it provides better performance, or if
28027         you wish to verify that the program will work on other systems that
28028         always treat uninitialized variable declarations this way [putting
28029         it in the data section]."  If diffutils had been using this sooner,
28030         it would have prevented this duplicate declaration issue:
28031         http://git.sv.gnu.org/cgit/diffutils.git/commit/?id=v3.4-10-gc2dc91f
28033 2016-08-31  Simon Josefsson  <simon@josefsson.org>
28035         parse-datetime: Fix typo.
28036         * lib/parse-datetime.y (parse_datetime2): Fix typo.
28038 2016-08-30  Paul Eggert  <eggert@cs.ucla.edu>
28040         intprops: tune INT_NEGATE_OVERFLOW for GCC 5 and 6
28041         * lib/intprops.h (INT_NEGATE_OVERFLOW): Tune for platforms like
28042         GCC 5 and 6 that have __builtin_sub_overflow but not
28043         __builtin_sub_overflow_p.  With the recent changes, these
28044         platforms are a tiny bit faster with the INT_NEGATE_RANGE_OVERFLOW
28045         implementation than with INT_SUBTRACT_OVERFLOW implementation,
28046         since the former needs just one runtime comparison whereas the
28047         latter needs two.
28049         strverscmp: sync with glibc
28050         Although this doesn't exactly synchronize with glibc
28051         byte-for-byte, it makes the code behave the same as glibc.
28052         * lib/strverscmp.c (S_I, S_F, S_Z): Now masks, not powers of 2.
28053         (ISDIGIT): Remove, as glibc is sticking with isdigit, and the
28054         difference shouldn't matter in practical use.  All uses changed
28055         back to isdigit.
28056         (__strverscmp, strverscmp): Use new glibc method for weak aliases.
28057         (next_state): Now unsigned char array; redo elements.
28058         (result_type): Now signed char array; redo elements.
28059         (__strverscmp): Fix glibc bug 9913 by using new states.
28060         * tests/test-strverscmp.c (main): Test glibc bug 9913.
28062 2016-08-29  Jim Meyering  <meyering@fb.com>
28064         xalloc-oversized.h: port __builtin_mul_overflow change to GCC 6.2.0
28065         * lib/xalloc-oversized.h: Port this change to GCC 6.2.0, too,
28066         similarly to how it was done to intprops.h.
28068 2016-08-29  Paul Eggert  <eggert@cs.ucla.edu>
28070         intprops.h: port recent changes to GCC 6.2.0
28071         * lib/intprops.h (__has_builtin): Move earlier.
28072         (_GL_HAS_BUILTIN_OVERFLOW): Rename from
28073         _GL_HAS_BUILTIN_OVERFLOW_WITH_NULL and don't worry about whether
28074         the last argument can be null.  All uses changed.
28075         (_GL_HAS_BUILTIN_OVERFLOW_P): Also test __has_builtin.
28076         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28077         Don't try to use 3rd arg null, as this doesn't work on GCC 6.2.0
28078         and it's not clear which GCC versions it works for.
28079         (_GL_INT_OP_WRAPV): Use _GL_HAS_BUILTIN_OVERFLOW instead of
28080         its definiens.
28082         intprops.h: use __typeof__ with GCC 7
28083         * lib/intprops.h (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW)
28084         (_GL_MULTIPLY_OVERFLOW): Use __typeof__ as in the GCC manual.
28085         This avoids computing the expression's value (which might overflow!).
28087 2016-08-29  Jim Meyering  <meyering@fb.com>
28089         intprops.h, xalloc-oversized.h: work with gcc 7
28090         In gcc 6, __builtin_add_overflow, __builtin_sub_overflow and
28091         __builtin_mul_overflow each accept a NULL pointer as the third
28092         argument.  However in gcc 7, that is no longer accepted.
28093         Instead, one must use the "_p"-suffixed names, with which, the
28094         third parameter is no longer a pointer.
28095         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): Correct
28096         the definition: not true for gcc 7 and subsequent.
28097         (_GL_HAS_BUILTIN_OVERFLOW_P): Define.
28098         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28099         Provide new definitions for gcc 7 and subsequent.
28100         * lib/xalloc-oversized.h (xalloc_oversized): Provide a definition
28101         that works with gcc-7.
28103         intprops.h: fix missing-backslash problems
28104         * lib/intprops.h (_GL_ADD_OVERFLOW): Add backslash.
28105         (_GL_SUBTRACT_OVERFLOW,_GL_MULTIPLY_OVERFLOW): Likewise.
28107 2016-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28109         intprops: fix paren typo on old platforms
28110         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300#13
28111         * lib/intprops.h (_GL_INT_OP_WRAPV_LONGISH)
28112         [__GNUC__ < 5 && !__has_builtin (__builtin_add_overflow)
28113         && (__STDC_VERSION__ < 201112 || _GL__GENERIC_BOGUS)
28114         && !defined LLONG_MAX]:
28115         Remove stray paren.
28117         intprops: port to OpenVMS
28118         Problem reported by John E. Malmberg in: https://bugs.gnu.org/24300
28119         * doc/posix-headers/limits.texi: Document the problem.
28120         * lib/intprops.h (LLONG_MAX, LLONG_MIN) [__INT64_MAX]:
28121         Define if not already defined.
28123 2016-08-19  Assaf Gordon  <assafgordon@gmail.com>
28125         parse-datetime: improve debug implementation
28126         Follow-up to commit 12ad79069 ("add optional debug printing").
28127         Improve parse-datetime's debug implementation: remove macros,
28128         replace global debug flag variable with a function parameter,
28129         use nstrftime for formatting.
28130         See: https://lists.gnu.org/r/bug-gnulib/2016-08/msg00021.html
28131         * lib/parse-datetime.h: (parse_datetime_debug): Remove global extern.
28132         (parse_datetime2): New function, accepts 'flags' parameter, supporting
28133         debug flag. Existing interface 'parse_datetime' left unmodified.
28134         * lib/parse-datetime.c: (parse_datetime_debug): Remove global variable.
28135         (struct parser_control): add 'parse_datetime_debug' member variable.
28136         (parse_datetime): Call new function 'parse_datetime2' without debug.
28137         (parse_datetime2): Adapted from previous 'parse_datetime', initialize
28138         pc.parse_datetime_debug variable as needed.
28139         (to_year): Accept new flags parameter, instead of using global variable.
28140         (debug_print_current_time,debug_print_relative_time,debug_mktime_not_ok):
28141         use struct 'debug' variable instead of global variable.
28142         (DEBUG,DEBUG_PRINT_CURRENT_TIME,DEBUG_PRINT_RELATIVE_TIME,
28143         DEBUG_MKTIME_NOT_OK,PROGRESS,PROGRESS0): Remove macros. Call
28144         correspnding functions directly instead of using macros.
28145         * modules/parse-datetime: Add gnulib's strftime module.
28147 2016-08-19  Daniel Richard G.  <skunk@iSKUNK.ORG>
28149         c-strcase-tests: port to EBCDIC
28150         * tests/test-c-strncasecmp.c: Allow two c_strncasecmp calls
28151         which assume ASCII encoding semantics to run only in ASCII
28152         mode, as they fail in EBCDIC.
28154         sigpipe-tests: fix typo
28155         * tests/test-sigpipe.sh: C, not B.
28157 2016-08-18  Paul Eggert  <eggert@cs.ucla.edu>
28159         canonicalize-lgpl: fix errno after malloca fails
28160         This fixes a typo I recently introduced.  Suggested by Bruno Haible in:
28161         http://lists.gnu.org/r/bug-gnulib/2016-08/msg00039.html
28162         * lib/canonicalize-lgpl.c (__realpath):
28163         Don't assume malloca sets errno on failure.
28165 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28167         strtod: port errno handling to z/OS
28168         * lib/strtod.c (strtod): Save and restore errno more reliably.
28170 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28172         strtod: port to z/OS
28173         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28174         implementation.
28176 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28178         strtod: port to z/OS
28179         * lib/strtod.c (strtod): Address a couple quirks in the z/OS
28180         implementation.
28182         regex, string: rename to avoid '__string'
28183         * lib/regex.h, lib/string.in.h: Do not use the identifier
28184         '__string', as it is effectively reserved by string.h on z/OS.
28186         c-strcase-tests, wcwidth-tests: depend on c-ctype
28187         * modules/c-strcase-tests, modules/wcwidth-tests (Depends-on):
28188         Add c-ctype.
28190 2016-08-17  Daniel Richard G.  <skunk@iSKUNK.ORG>
28192         thread: port to z/OS
28193         * lib/glthread/thread.c, lib/glthread/thread.h:
28194         Rudimentary gl_thread support for z/OS.
28196         maint: port tests to z/OS errno behavior
28197         * tests/test-nonblocking-reader.h:
28198         * tests/test-nonblocking-writer.h:
28199         Accommodate z/OS errno code preferences. (I believe this should
28200         still be within spec; IBM is good at following the letter if not
28201         the spirit of such things.)
28203         maint: preprocessor changes to support z/OS
28204         * lib/alloca.in.h, lib/fnmatch.c, lib/get-rusage-as.c:
28205         * lib/glob.c, lib/math.in.h, lib/ptsname_r.c:
28206         * tests/infinity.h, tests/nan.h, tests/test-canonicalize-lgpl.c:
28207         * tests/test-nonblocking-pipe.h:
28209         fclose, strstr-simple, wchar: port to z/OS
28210         * m4/fclose.m4, m4/strstr.m4, m4/wchar_h.m4:
28211         Changes to the Autoconf M4 code to support z/OS.  Note that
28212         fclose() is broken in a different way on z/OS than it is on other
28213         systems, thus the special-case in fclose.m4.
28215         iconv_open-utf-tests, iconv-tests: port to EBCDIC
28216         * tests/test-iconv-utf.c, tests/test-iconv.c:
28217         Added appropriately conditional #pragmas so that the test strings
28218         in test-iconv-utf.c are correctly interpreted in ASCII instead of
28219         EBCDIC (i.e. 'J' == 0x4A and not 0xD1). This issue could be
28220         addressed in a more portable way by simply rewriting all the ASCII
28221         literal characters as octal escapes, but then you would lose the
28222         partial readability that the strings have now. Also, iconv_open()
28223         on z/OS does not recognize "ISO-8859-1", but "ISO8859-1" works.
28225         c-strcase-tests, wcwidth-tests: port to EBCDIC
28226         * tests/test-c-strcasecmp.c: Include c-ctype.h.
28227         (main) [!C_CTYPE_ASCII]: Skip tests that assume ASCII.
28228         * tests/test-wcwidth.c: Likewise.
28230 2016-08-17  Paul Eggert  <eggert@cs.ucla.edu>
28232         stdbool: don't require _Bool for C++
28233         Problem reported by David Seifert in:
28234         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00005.html
28235         * NEWS, doc/posix-headers/stdbool.texi (stdbool.h): Document this.
28236         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Make the check
28237         more-forgiving for C++, in that it requires only 'bool'.  Be a bit
28238         stricter about checking that bool and _Bool are compatible in C.
28240 2016-08-16  Paul Eggert  <eggert@cs.ucla.edu>
28242         getdelim: remove dependency on realloc-posix
28243         * lib/canonicalize-lgpl.c (alloc_failed)
28244         [!FUNC_REALPATH_WORKS || defined _LIBC]: New function,
28245         (__realpath) [!FUNC_REALPATH_WORKS || defined _LIBC]: Use it.
28246         Use __set_errno where needed, for consistency.
28247         * lib/getdelim.c (alloc_failed): New function.
28248         (getdelim): Use it.
28250 2016-08-09  Assaf Gordon  <assafgordon@gmail.com>
28252         parse-datetime: add optional debug printing
28253         Print parsing information, warnings, and errors to stderr.
28254         * lib/parse-datetime.h (parse_datetimte_debug): New global variable.
28255         * lib/parse-datetime.y:
28256         (DEBUG_*):  Macros calling debug functions if debugging is enabled.
28257         (PROGRESS*): Same as DEBUG, for progress reporting.
28258         (dbg_printf): Print message to stderr, with 'date' prefix.
28259         (struct parser_control): Add 'debug_*_seen' variables.
28260         (str_days): Converts day ordinal/number to string (e.g. 'last wed').
28261         (debug_print_current_time, debug_print_relateive_time): Prints the
28262         current/relative date/time value of parser_control.
28263         (YACC parser syntax): Print parsed parts with DEBUG_* macros.
28264         (to_year): Warn about 2-digit year parsing.
28265         (yylex):   Warn about unrecognized words.
28266         (get_effective_timezone): Returns current timezone in minutes.
28267         (debug_strf{time,date,datetime}): Convert 'struct tm' to string as
28268         clearly and unambigiously as possible.
28269         (debug_mktime_not_ok): Print detailed information about failed
28270         date/time values.
28271         (parse_datetime): Add DEBUG messages for failures, warnings. Add
28272         PROGRESS messages for status messages.
28273         * modules/parse-datetime: Add 'timegm', 'gettext-h' dependencies.
28275 2016-08-06  Jim Meyering  <meyering@fb.com>
28277         tests/init.sh: exclude dash with bad "local" semantics
28278         * tests/init.sh (gl_shell_test_script_): Add a function to
28279         eliminate a shell like "dash" (unlike bash, zsh) that has
28280         surprising/risky "local var='...'" semantics.  Inspired by
28281         the problem and discussion in https://bugs.gnu.org/24116#11.
28283 2016-08-02  Ján Tomko  <jtomko@redhat.com>
28285         maint.mk: expand the prohibit_doubled_word regex
28286         This check has a static list of words that are checked for
28287         repetitions.  Expand it before running the perl script to
28288         avoid using expensive captures.  This decreases the cost
28289         for libvirt from 1.66s to 0.66s.
28290         * top/maint.mk (prohibit_doubled_word_expanded_): Define.
28291         (sc_prohibit_doubled_word): Use it.
28293 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28295         useless-if-before-free: skip non-matching lines early
28296         * build-aux/useless-if-before-free: First match each line with the
28297         simple/quick /\bif\b/ and reject if there is no match. This often
28298         saves the cost of the much more involved regular expression.
28299         For libvirt, this decreases the cost from 1.44s to 1.02s.
28301 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28303         maint.mk: speed up sc_po_check
28304         sc_po_check would skip files based on their names, or on the
28305         existence of files with derived names. Rewrite it to use perl
28306         instead of shell to make the check faster.
28307         * top/maint.mk (perl_translatable_files_list_): Define.
28308         (sc_po_check): Use it.
28310 2016-07-30  Ján Tomko  <jtomko@redhat.com>
28312         maint.mk: speed up require_config_h_first
28313         Instead of spawning three processes per file,
28314         rewrite the check in perl and run it once for all the files.
28315         * top/maint.mk (perl_config_h_first_): Define.
28316         (sc_require_config_h_first): Use it in place of shell code.
28318 2016-07-26  Ján Tomko  <jtomko@redhat.com>
28320         maint.mk: speed up sc_po_check
28321         sc_po_check would skip files based on their names, or on the
28322         existence of files with derived names. Rewrite it to use perl
28323         instead of shell to make the check faster.
28324         * top/maint.mk (perl_translatable_files_list_): Define.
28325         (sc_po_check): Use it.
28327 2016-07-15  Paul Eggert  <eggert@cs.ucla.edu>
28329         obstack: pacify GCC 6 with -Wnull-dereference
28330         Problem reported by Assaf Gordon in:
28331         http://lists.gnu.org/r/bug-gnulib/2016-07/msg00028.html
28332         * lib/obstack.c, lib/obstack.h (obstack_alloc_failed_handler):
28333         Declare with __attribute_noreturn__.
28334         * lib/obstack.h (__attribute_noreturn__): New macro.
28336 2016-07-13  Eric Blake  <eblake@redhat.com>
28338         doc: mention glibc, OS X, Cygwin [S]SIZE_MAX buglet
28339         * doc/posix-headers/stdint.texi (stdint.h): Document the bugs.
28340         * doc/posix-headers/limits.texi (limits.h): Document the bugs.
28342 2016-07-13  Paul Eggert  <eggert@cs.ucla.edu>
28344         doc: mention glibc SSIZE_MAX buglet
28345         * doc/posix-headers/limits.texi (limits.h): Document the bug.
28347 2016-07-04  Martin Kletzander  <mkletzan@redhat.com>
28349         printf-posix: Fix mingw build
28350         Commit 54615b95ff238e235e806855efc46a9abad09f2e changed the regular
28351         expression for detecting C symbol prefixes but forgot to qoute square
28352         brackets in the command line arguments for grep.  That way when
28353         building with mingw the condition was false although it ought to be
28354         true instead.  In particular scenarios this led to the following
28355         compile error:
28357             Cannot export rpl_printf: symbol not found
28358             Cannot export rpl_scanf: symbol not found
28359             collect2: error: ld returned 1 exit status
28361         Fix this by properly quoting square brackets.
28363 2016-07-03  Paul Eggert  <eggert@cs.ucla.edu>
28365         mktime: call tzset as per POSIX
28366         Problem reported by Ludovic Courtès in:
28367         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00068.html
28368         * lib/mktime.c (mktime) [!_LIBC && HAVE_TZSET]: Call tzset.
28369         * m4/mktime.m4 (gl_FUNC_MKTIME): Check for tzset.
28371 2016-06-26  Pádraig Brady  <P@draigBrady.com>
28373         fts: handle readdir() errors
28374         * lib/fts.c (fts_build): readdir(3) returns NULL when finished,
28375         but also upon error when it will also set errno.  Therefore
28376         flag the error case from readdir().  We treat the case where
28377         no items are read the same as if the dir can't be accessed,
28378         i.e. by setting fts_errno to FTS_DNR.
28380 2016-06-24  Paul Eggert  <eggert@cs.ucla.edu>
28382         intprops: port better to GCC 7
28383         GCC 7 __builtin_add_overflow supports a new usage form, where the
28384         last argument is a null pointer, and which merely returns 1 if an
28385         overflow would occur.  This is a constant expression if all
28386         arguments are constants, and should generate faster code when code
28387         needs to be generated.
28388         * lib/intprops.h (_GL_HAS_BUILTIN_OVERFLOW_WITH_NULL): New macro.
28389         (_GL_ADD_OVERFLOW, _GL_SUBTRACT_OVERFLOW, _GL_MULTIPLY_OVERFLOW):
28390         Use builtin operations if available.
28391         (INT_NEGATE_OVERFLOW): Prefer INT_SUBTRACT_OVERFLOW if builtin
28392         operations are available, as it's almost surely faster.
28394 2016-06-23  Paul Eggert  <eggert@cs.ucla.edu>
28396         intprops-test: port to GCC 6
28397         * tests/test-intprops.c: Ignore -Woverflow if any GCC version,
28398         since the bug is not fixed in GCC 6.1.
28400 2016-06-13  Paul Eggert  <eggert@cs.ucla.edu>
28402         xalloc-oversized: port to GCC 7; fewer warnings
28403         GCC 7 will have a better way to deal with integer overflow.
28404         Plus, fix a warnings problem reported by Tim Ruehsen in:
28405         http://lists.gnu.org/r/bug-gnulib/2016-06/msg00022.html
28406         * lib/xalloc-oversized.h (__xalloc_oversized): New macro.
28407         (xalloc_oversized): Use plain __builtin_mul_overflow if GCC 7 or later.
28408         For GCC 5, use __xalloc_oversized if both args are constants,
28409         or if pedantic.
28411 2016-06-08  Paul Eggert  <eggert@cs.ucla.edu>
28413         regex: port to Sun C
28414         Reported by Daiki Ueno.
28415         * lib/regcomp.c (regcomp, regerror): Use _Restrict_, not
28416         __restrict, in prototype.  This fixes a problem I introduced in
28417         the 2016-02-19 merge from glibc.
28419 2016-05-31  Paul Eggert  <eggert@cs.ucla.edu>
28421         stdbool: Restore __bool_true_false_are_defined check
28422         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL):
28423         __bool_true_false_are_defined is still defined, even with C++11.
28425 2016-05-31  David Seifert  <soap@gentoo.org>  (tiny change)
28427         stdbool: Port AC_CHECK_HEADER_STDBOOL to C++11
28428         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Port to C++11.
28430 2016-05-30  Paul Eggert  <eggert@cs.ucla.edu>
28432         Use GCC_LINT, not lint
28433         FreeBSD and Cygwin #define _Noreturn to empty if 'lint' is defined.
28434         Problem reported by Ken Brown in: http://bugs.gnu.org/23640
28435         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
28436         Document problem with lint and _Noreturn.
28437         * lib/diffseq.h (IF_LINT, IF_LINT2):
28438         * lib/fts.c (sccsid):
28439         * lib/getndelim2.c (IF_LINT):
28440         * lib/gl_anylinked_list2.h (gl_linked_iterator)
28441         (gl_linked_iterator_from_to):
28442         * lib/gl_anytree_list2.h (gl_tree_iterator)
28443         (gl_tree_iterator_from_to):
28444         * lib/gl_anytree_oset.h (gl_tree_iterator):
28445         * lib/gl_array_list.c (gl_array_iterator)
28446         (gl_array_iterator_from_to):
28447         * lib/gl_array_oset.c (gl_array_iterator):
28448         * lib/gl_carray_list.c (gl_carray_iterator)
28449         (gl_carray_iterator_from_to):
28450         * lib/idcache.c:
28451         * lib/inet_ntop.c (IF_LINT):
28452         * lib/regcomp.c (build_charclass_op, create_tree):
28453         * lib/regex_internal.c (re_acquire_state)
28454         (re_acquire_state_context):
28455         * lib/trigl.c (rcsid):
28456         * lib/trim.c (IF_LINT):
28457         * lib/vasnprintf.c (IF_LINT):
28458         * lib/verify.h (assume):
28459         Treat GCC_LINT like lint.
28461 2016-05-29  Bruno Haible  <bruno@clisp.org>
28463         secure_getenv: Port to many more platforms.
28464         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV): Also check for get*id
28465         functions.
28466         * lib/secure_getenv.c (secure_getenv): Add alternate implementations
28467         for non-BSD Unix platforms and for native Windows.
28468         * doc/glibc-functions/secure_getenv.texi: Remove known issue.
28469         Prompted by a request from Nikos Mavrogiannopoulos.
28471 2016-05-27  Eric Blake  <eblake@redhat.com>
28473         canonicalize: Fix broken probe for realpath.
28474         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Fix regression
28475         in logic introduced in 54615b95.
28477 2016-05-26  Eric Blake  <eblake@redhat.com>
28479         unsetenv: relax to LGPLv2+
28480         * modules/unsetenv (License): Match setenv license.
28482 2016-05-20  Ludovic Courtès  <ludo@gnu.org>
28484         gendocs.sh: Set default TOP_NODE_UP_URL in HTML output.
28485         Suggested by Gavin Smith <gavinsmith0123@gmail.com>.
28486         Reported by myglc2 <myglc2@gmail.com> in <http://bugs.gnu.org/22651>.
28487         * build-aux/gendocs.sh (MANUAL_TITLE, PACKAGE, EMAIL)
28488         (commonarg, dirargs, dirs, infoarg, generate_ascii)
28489         (generate_html, generate_info, generate_tex, outdir)
28490         (source_extra, split, srcfile, texarg): Move above 'version'.
28491         (htmlarg): Likewise, and add "-c TOP_NODE_UP_URL=/manual".
28493 2016-05-17  Paul Eggert  <eggert@cs.ucla.edu>
28495         manywarnings: update for GCC 6.1
28496         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
28497         Add GCC 6.1 options that apply to C.
28498         * build-aux/gcc-warning.spec: Add GCC 6.1 options that
28499         do not apply to C, are obsolescent, etc.
28501 2016-05-12  Paul Eggert  <eggert@cs.ucla.edu>
28503         glob: size_t overflow checks
28504         * lib/glob.c (__has_builtin): New macro.
28505         (size_add_wrapv, glob_use_alloca): New static functions.
28506         (glob, glob_in_dir): Check for size_t overflow in several places,
28507         and fix some size_t checks that were not quite right.
28509         glob: don't assume INT_MAX < SIZE_MAX
28510         * lib/glob.c (glob): Prefer SIZE_MAX to ~((size_t) 0), as the
28511         latter is not portable to (probably theoretical) hosts where
28512         SIZE_MAX <= INT_MAX.
28514 2016-05-09  Bruno Haible  <bruno@clisp.org>
28516         Fix undefined behaviour in gettext.h.
28517         * lib/gettext.h (dcpgettext_expr, dcnpgettext_expr): Avoid accessing a
28518         pointer's value after the storage it points to has been freed.
28519         Reported by Michael Pyne in https://savannah.gnu.org/bugs/?47847.
28520         Spotted by Coverity.
28522 2016-05-08  Paul Eggert  <eggert@cs.ucla.edu>
28524         git-version-gen: avoid undefined shift
28525         Problem reported by Mosè Giordano in:
28526         http://lists.gnu.org/r/bug-gnulib/2016-05/msg00012.html
28527         * build-aux/git-version-gen: Avoid undefined behavior if invoked
28528         with --prefix or --fallback but without a later argument.  While
28529         we're at it, omit unnecessary quotes.
28531 2016-05-04  Paul Eggert  <eggert@cs.ucla.edu>
28533         glob: merge glibc changes into lib/glob.c
28534         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c,
28535         dated 2016-05-04 12:09:35 2016 +0200.  Here are the changes:
28536         2016-05-04 CVE-2016-1234: glob: Do not copy d_name field of
28537           struct dirent [BZ #19779]
28538         2016-04-29 glob: Simplify the interface for the GLOB_ALTDIRFUNC
28539           callback gl_readdir
28540         2015-10-20 Convert miscellaneous function definitions to prototype style
28541         2015-10-20 Convert 113 more function definitions to prototype style
28542           (files with assertions)
28543         2015-06-12 Fix getlogin_r namespace (bug 18527).
28544         2014-02-10 Use glibc_likely instead __builtin_expect.
28545         2013-10-20 When glob pattern contains a trailing slash match only
28546           directories. Fixes bug 10278.
28547         2013-09-04 glob: silence -Wattribute warnings
28548         2013-06-07 Avoid use of "register" as optimization hint.
28549         2012-09-25 Use size_t instead of int for internal variables in glob
28550           (bug 14621)
28551         2011-07-20 Check for overflows in expressions
28552         2011-05-28 Remove unused variable
28553         2011-05-22 Add a few more alloca size checks
28554         2010-03-27 Whitespace fixes
28555         2010-03-27 Fix one more issue with the glob patch
28556         2010-03-24 Fix glob with empty pattern
28557         2008-05-27 Remove useless more "if" tests before "free"
28558         * modules/glob (Depends-on): Add stdint.
28560 2016-05-01  Paul Eggert  <eggert@cs.ucla.edu>
28562         mktime: port to stricter signed overflow checking
28563         * lib/mktime.c: Omit 'pragma GCC optimize ("wrapv")'.
28564         (long_int): Require width for INT_MAX * 3 * (seconds per year),
28565         instead of merely for INT_MAX * 2.  In practice platforms that
28566         do the latter also do the former.
28567         (TIME_T_MIN, TIME_T_MAX, TIME_T_MIDPOINT, SHR): Remove.
28568         (shr): New static function, replacing SHR.  All uses changed.
28569         (mktime_min, mktime_max): New constants, replacing TIME_T_MIN
28570         and TIME_T_MAX.  All uses changed.
28571         (ydhms_diff, guess_time_tm, ranged_convert, __mktime_internal):
28572         Use long_int, not time_t.
28573         (long_int_avg): New static function, replacing time_t_avg.
28574         All uses changed.  Round toward positive infinity, as that
28575         generates slightly better code.
28576         (time_t_add_ok, time_t_int_add_ok): Remove.  All uses replaced
28577         by INT_ADD_WRAPV.
28578         (guess_time_tm): Accept time, not a pointer to it.  All uses changed.
28579         (convert_time): New static function.
28580         (ranged_convert): Use it
28581         (ranged_convert): Check for *T out of [mktime_min, mktime_max] range.
28582         Use simpler test for loop exit.
28583         (__mktime_internal): Store negative of guessed offset, to simplify
28584         overflow checking.  Remove no-longer-needed test for small time_t
28585         overflows.
28587         mktime: speed up DEBUG_MKTIME benchmarks
28588         Call tzset just once, at the start, rather than for every test
28589         case.  This lets us measure the CPU cost of mktime as opposed to
28590         that of tzset.  This is relevant when TZ is not set and glibc is
28591         being used.  This speeds up tests by a factor of 40 on my Fedora
28592         23 x86-64 platform.
28593         * lib/mktime.c (main) [DEBUG_MKTIME]: Call localtime at the start,
28594         to call tzset and as a sanity check.  Later on, use localtime_r
28595         instead of localtime.
28597         mktime: resurrect DEBUG_MKTIME testing
28598         * lib/mktime.c [DEBUG_MKTIME]: Do not include <config.h>.
28599         Include <string.h>, for strcmp.
28601         mktime: simplify DEBUG_MKTIME
28602         * lib/mktime.c (DEBUG_MKTIME): Define to 0 if not defined.
28603         Simplify later usage accordingly.
28605         Port mktime_internal offset to unsigned time_t
28606         This avoids some assumptions about wraparound arithmetic on
28607         signed integer overflow.
28608         * lib/mktime-internal.h (mktime_offset_t): New type.
28609         (mktime_internal): Use it in decl.
28610         * lib/mktime.c, lib/timegm.c (mktime_offset_t) [_LIBC]: New type.
28612         * lib/mktime.c (__mktime_internal, localtime_offset):
28613         * lib/timegm.c (timegm): Use it.
28614         * m4/mktime.m4 (gl_TIME_T_IS_SIGNED): New macro.
28615         (gl_FUNC_MKTIME): Require it.
28617 2016-04-27  Paul Eggert  <eggert@cs.ucla.edu>
28619         xstrtol: prohibit monstrosities like "1bB"
28620         Problem reported by Young Mo Kang in: http://bugs.gnu.org/23388
28621         * lib/xstrtol.c (__xstrtol): Allow trailing second suffixes like
28622         "B" only if the first suffix needs a base.
28623         * tests/test-xstrtol.sh: Test this.
28625 2016-04-21  Pádraig Brady  <P@draigBrady.com>
28627         xstrtod: reinstate setting of *result upon ERANGE
28628         * lib/xstrtod.c (XSTRTOD): The user may decide to use
28629         the returned limits upon ERANGE, so allow and document that.
28631 2016-04-20  Tino Calancha  <f92capac@gmail.com>  (tiny change)
28633         xstrtod: modify *result only if no errors
28634         * lib/xstrtod.c (XSTRTOD).
28636 2016-04-19  Paul Eggert  <eggert@cs.ucla.edu>
28638         btowc: document problems in C locale
28639         * doc/posix-functions/btowc.texi (btowc): Mention incompatibility
28640         with mbrtowc.  See: http://bugs.gnu.org/23269#32
28642 2016-04-13  Paul Eggert  <eggert@cs.ucla.edu>
28644         mktime: improve integer overflow checking
28645         * lib/mktime.c: Include stdbool.h, intprops.h, verify.h.
28646         (WRAPV): Remove; no longer needed.
28647         (verify): Remove.  Replace all uses with call to verify.h 'verify'.
28648         (TYPE_IS_INTEGER, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
28649         Remove.  Use intprops.h defns instead.
28650         (leapyear, isdst_differ, time_t_add_ok, time_t_int_ok):
28651         Use bool for Boolean, for clarity.
28652         (time_t_add_ok, time_t_int_add_ok): Use INT_ADD_WRAPV to
28653         detect integer overflow.
28654         * modules/mktime (Depends-on): Add intprops, stdbool, verify.
28656         intprops: check two's complement assumption
28657         Suggested by Eric Blake in:
28658         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00016.html
28659         * lib/intprops.h: Include <verify.h>.  Verify that signed char,
28660         short, int, long, and (if available) long long are two's complement.
28661         * modules/intprops (Depends-on): Add 'verify'.
28663         intprops, mktime, strtol: assume two's complement
28664         These macros were not portable to every conforming C11 ones'
28665         complement platform.  It's not worth the hassle of porting to some
28666         platforms that use ones' complement or signed magnitude, as such
28667         platforms are almost purely theoretical nowadays and porting even
28668         to some of them makes the code harder to review for little
28669         practical benefit.  Problem reported by Florian Weimer in:
28670         https://sourceware.org/ml/libc-alpha/2016-04/msg00295.html
28671         * lib/intprops.h (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28672         (TYPE_SIGNED_MAGNITUDE, _GL_INT_TWOS_COMPLEMENT):
28673         * lib/mktime.c (TYPE_TWOS_COMPLEMENT):
28674         * lib/strtol.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT)
28675         (TYPE_SIGNED_MAGNITUDE):
28676         Remove.  All uses rewritten to assume two's complement, which is
28677         all we can reasonably test nowadays anyway.
28678         * top/maint.mk (_intprops_names): Remove the removed macros.
28680 2016-04-11  Paul Eggert  <eggert@cs.ucla.edu>
28682         stdint: port to strict C11 left shift
28683         * lib/stdint.in.h (_STDINT_MIN, _STDINT_MAX):
28684         Pacify clang -Wshift-negative-value, which should be an issue only
28685         on clang setups where stdint.h does not conform to C11 or to C++11.
28686         Problem reported by Philipp Stephani in: http://bugs.gnu.org/23261
28688 2016-04-09  Paul Eggert  <eggert@penguin.cs.ucla.edu>
28690         mbrtowc: work around glibc bug#19932
28691         Fix mbrtowc so that it never returns -1 in the C locale,
28692         as this conflicts with a future version of POSIX
28693         http://austingroupbugs.net/view.php?id=663#c2738
28694         and causes problems with GNU grep: http://bugs.gnu.org/23234
28695         See glibc bug 19932:
28696         https://sourceware.org/bugzilla/show_bug.cgi?id=19932
28697         * doc/posix-functions/mbrlen.texi (mbrlen):
28698         * doc/posix-functions/mbrtowc.texi (mbrtowc):
28699         Document the glibc bug.
28700         * lib/mbrtowc.c [C_LOCALE_MAYBE_EILSEQ]:
28701         Include hard-locale.h, locale.h.
28702         (rpl_mbrtowc): Work around the C_LOCALE_MAYBE_EILSEQ bug,
28703         if the bug is possible.
28704         * m4/mbrtowc.m4 (gl_MBRTOWC_C_LOCALE): New macro.
28705         (gl_FUNC_MBRTOWC): Use it, and define C_LOCALE_MAYBE_EILSEQ as needed.
28706         * modules/hard-locale (License): Now LGPLv2+, for mbrtowc.
28707         * modules/mbrtowc (Depends-on): Add hard-locale.
28708         * modules/mbrtowc-tests (Files, TESTS): Add tests/test-mbrtowc5.sh.
28709         * tests/test-mbrtowc.c (main): Test for bug fix if arg is '5'.
28710         * tests/test-mbrtowc5.sh: New file.
28712 2016-04-03  Pedro Alves  <palves@redhat.com>
28714         stdint: detect good enough pre-C++11 stdint.h in C++ mode
28715         When gnulib is configured in C++ mode for a system with a working C99
28716         implementation of stdint.h that predates C++11, gnulib ends up
28717         substituting stdint.h anyway.  This works on most targets, but on e.g.,
28718         64-bit MinGW, it doesn't, as gnulib's substitute assumes LP64, while
28719         MinGW is LLP64.  Instead of trying to detect the right types, detect
28720         good-enough-pre-C++11 stdint.h and in such case define
28721         __STDC_CONSTANT_MACROS/__STDC_LIMIT_MACROS in config.h.
28722         * m4/stdint.m4 (gl_STDINT_H): Always define __STDC_CONSTANT_MACROS
28723         / __STDC_LIMIT_MACROS while checking whether the system stdint.h
28724         conforms to C99.  If it does, check whether it hides symbols
28725         behind the __STDC_{CONSTANT|LIMIT}_MACROS macros.  Then if it
28726         does, define those macros in config.h.
28728 2016-04-03  Paul Eggert  <eggert@cs.ucla.edu>
28730         argp: merge changes from glibc
28731         Among other things, this should fix problems found by a Coverity
28732         scan and reported by Andrei Borzenkov:
28733         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00015.html
28734         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00016.html
28735         * lib/argp-ba.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h:
28736         * lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h:
28737         * lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c:
28738         * lib/argp.h:
28739         Merge changes from glibc.
28740         * tests/test-argp-2.sh: Adjust to match new behavior.
28742 2016-04-01  Paul Eggert  <eggert@cs.ucla.edu>
28744         stddef: support configuring with g++
28745         Problem reported by Ángel González in:
28746         http://lists.gnu.org/r/bug-gnulib/2016-04/msg00003.html
28747         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS, max_align_t):
28748         Do not define if _GCC_MAX_ALIGN_T is defined.
28750 2016-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28752         test-framework-sh: minor cleanups
28753         * tests/init.sh (testdir_prefix_): Output a trailing newline,
28754         since strictly speaking POSIX requires this.
28755         (setup_): Do not use the variable 'fail', as that makes the
28756         trace output harder to read ('fail' is typically used by
28757         tests to mean the test failed).  Treat // portably.
28758         Check that new directory is not merely a sibling of the tmp dir.
28759         Avoid unnecessary invocation of tr.
28761         test-framework-sh: revert port to NetBSD 7.0
28762         It was a false alarm; I misinterpreted Assaf Gordon's report.
28763         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28764         Restore.
28765         (test_dir_): Adjust to mktempd_ change.
28766         (mktempd_): Restore 2nd arg.  Use -t again.
28767         (base_template_, template_, nx_): Resurrect old code.
28769         Port better to Alpine Linux
28770         Its diff implementation does not support -c, but does support -U3.
28771         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28772         * tests/init.sh (diff_opt_): New var.
28773         (compare_): Prefer diff -U3 to diff -c to plain diff.
28775 2016-03-24  Paul Eggert  <eggert@cs.ucla.edu>
28777         test-framework-sh: port to NetBSD 7.0
28778         Problem reported by Assaf Gordon in: http://bugs.gnu.org/23107#13
28779         * tests/init.sh (testdir_prefix_, pfx_, template_length_):
28780         Remove.  All uses removed.
28781         (test_dir_): Adjust to mktempd_ change.
28782         (mktempd_): Omit 2nd arg.  Stop using -t, as it is not portable.
28783         (base_template_, template_, nx_): Simplify by hardcoding.
28785 2016-03-22  Paul Eggert  <eggert@cs.ucla.edu>
28787         gitlog-to-changelog: suppress ignored chatter
28788         * build-aux/gitlog-to-changelog: Do not warn about skipping
28789         an SHA if it would have been ignored anyway.
28791 2016-03-22  Geert Janssens  <janssens-geert@telenet.be>
28793         setlocale: add "sv" to Windows language table
28794         * lib/setlocale.c (language_table) [W32]: Add "sv".
28795         Reported in <https://savannah.gnu.org/bugs/?44588>.
28797 2016-03-21  Paul Eggert  <eggert@cs.ucla.edu>
28799         sys_select: port to new Cygwin
28800         Problem reported by Ken Brown in:
28801         https://lists.gnu.org/r/bug-gnulib/2016-03/msg00054.html
28802         * lib/sys_select.in.h [__CYGWIN__]: Avoid "unknown type name"
28803         diagnostics.
28805 2016-03-17  Jim Meyering  <meyering@fb.com>
28807         test-userspec.c: do not trigger gcc's new -Wmisleading-indentation
28808         * tests/test-userspec.c (main): Remove unnecessary braces and fix
28809         misleading indentation. Here is the diagnostic gcc-6.0-to-be issued:
28810           test-userspec.c:176:9: error: statement is indented as if it were \
28811             guarded by... [-Werror=misleading-indentation]
28812                    {
28813                    ^
28814           test-userspec.c:173:7: note: ...this 'if' clause, but it is not
28815                  if (!diag && !T[i].result)
28816                  ^~
28818 2016-03-15  Paul Eggert  <eggert@cs.ucla.edu>
28820         time_rz: port to clang -Wunused-const-variable
28821         * lib/time_rz.c (TZ): Remove.  All uses removed.
28823         std-gnu11: improve clang support
28824         * m4/std-gnu11.m4: Sync with autoconf, incorporating:
28825         2016-03-15 Also try clang
28826         2016-03-15 Port C11 and C++11 testing to clang
28828         select: port more to Intel 2016.1.150 compiler
28829         Problem reported by Balázs Hajgató in:
28830         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00036.html
28831         * m4/select.m4 (gl_FUNC_SELECT): Require AC_C_RESTRICT.
28833 2016-03-14  Paul Eggert  <eggert@cs.ucla.edu>
28835         select: try to port to 2016.1.150 compiler
28836         Problem reported by Balázs Hajgató in:
28837         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00026.html
28838         * lib/sys_select.in.h (select): Use 'restrict' on arguments where
28839         POSIX specifies 'restrict'.
28841 2016-03-13  Paul Eggert  <eggert@cs.ucla.edu>
28843         localename-tests: memory allocation fixes
28844         * tests/test-localename.c (test_locale_name)
28845         (test_locale_name_thread): Don't call freelocale on a locale
28846         that was the base of a successful newlocale, as that
28847         results in a double free.  Problem reported by Assaf Gordon.
28848         (test_locale_name_thread): Free saved names after use, to pacify
28849         gcc -fsanitize=address.
28851 2016-03-08  Paul Eggert  <eggert@cs.ucla.edu>
28853         intprops: make .h file license match module
28854         * lib/intprops.h: Change the license wording to match glibc format.
28855         This is what is in modules/intprops anyway.  See:
28856         https://sourceware.org/bugzilla/show_bug.cgi?id=19738#c8
28858 2016-03-08  Eric Blake  <eblake@redhat.com>
28860         acl: fix missing return on Cygwin
28861         * lib/set-permissions.c (set_acls) [HAVE_FACL && GETACL]: Don't
28862         fall off end of function. Fixes http://bugs.gnu.org/22949
28864 2016-03-05  Bruno Haible  <bruno@clisp.org>
28866         extern-inline: port to PGI CC
28867         * m4/extern-inline.m4 (gl_EXTERN_INLINE): For PGI CC, don't use the
28868         keyword 'inline'.
28869         Reported by Adam James Stewart in:
28870         http://lists.gnu.org/r/bug-gnulib/2016-03/msg00006.html
28872 2016-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28874         signbit: port back to pre-C++11 GCC
28875         * lib/math.in.h (signbit): Do previous change only if
28876         __cplusplus < 201103.  See Jonathan Wakely in:
28877         https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/UY3VX3W7XEXYTUKHG5BALU4ACUD7ZLGE/
28879 2016-02-19  Kamil Dudka  <kdudka@redhat.com>
28881         mountlist: recognize autofs-mounted remote file systems, too
28882         Originally reported at: https://bugzilla.redhat.com/1309247
28883         * lib/mountlist.c (ME_REMOTE): Return true if a file system is named
28884         "-hosts" because it is used by autofs to mount remote file systems.
28886 2016-02-19  Paul Eggert  <eggert@cs.ucla.edu>
28888         signbit: port to C++ with GCC 6
28889         * lib/math.in.h (signbit) [__cplusplus]:
28890         Do not replace with GCC builtin.  Reported by Orion Poplawski in:
28891         http://lists.gnu.org/r/bug-gnulib/2016-02/msg00005.html
28893         * lib/regex_internal.h (IDX_MAX) [_REGEX_LARGE_OFFSETS]: Now SSIZE_MAX.
28895         regex: make it closer to libc
28896         Make Idx a signed type, rather than possibly unsigned.
28897         The unsignedness was not really buying us anything, since the code
28898         overflows for other reasons before getting to PTRDIFF_MAX.  Making
28899         it signed allows us to use -1 and -2 with abandon, like libc does,
28900         thus lessening the number of differences between gnulib and libc.
28901         Also, it should help avoid gratuitous warnings like the one
28902         reported by Nelson H. F. Beebe in: http://bugs.gnu.org/22702
28903         * lib/regex.h (__re_idx_t): Remove.  All uses changed to regoff_t.
28906         regex: merge patches from libc
28908         2015-10-21  Joseph Myers  <joseph@codesourcery.com>
28909         2015-10-20  Joseph Myers  <joseph@codesourcery.com>
28910         Convert miscellaneous function definitions to prototype style.
28911         * lib/regcomp.c (re_compile_pattern, re_set_syntax)
28912         (re_compile_fastmap, regcomp, regerror, regfree, re_comp):
28913         * lib/regexec.c (regexec, re_match, re_search, re_match_2, re_search_2)
28914         (re_search_2_stub, re_search_stub, re_set_registers, re_exec)
28915         (re_search_internal):
28916         Convert to prototype-style function definition.
28917         Use internal_function for internal functions.
28919 2016-02-10  Paul Eggert  <eggert@cs.ucla.edu>
28921         stdalign: port to older HP and IBM cc
28922         * lib/stdalign.in.h (_Alignas): Port better to older HP and IBM
28923         C compilers, by checking their version numbers.  These version
28924         numbers appear in MariaDB and in Qt code that dates way back and
28925         that conditiionally uses the 'aligned' attribute.
28927 2016-02-09  Paul Eggert  <eggert@cs.ucla.edu>
28929         stdalign: port to clang 3.7.0
28930         Problem reported by Herbert J. Skuhra in:
28931         http://lists.gnu.org/r/emacs-devel/2016-02/msg00476.html
28932         * lib/stdalign.in.h (alignas): Fix typo that prevented 'alignas'
28933         from being defined on clang 3.7.0, which has a buggy stdalign.h.  See:
28934         https://llvm.org/bugs/show_bug.cgi?id=26547
28936 2016-02-08  Paul Eggert  <eggert@cs.ucla.edu>
28938         readdir_r: now obsolescent
28939         * doc/posix-functions/readdir_r.texi (readdir_r): Now obsolescent.
28940         * lib/mountlist.c (read_file_system_list): Add a FIXME.
28942 2016-02-06  Paul Eggert  <eggert@cs.ucla.edu>
28944         misc: port better to gcc -fsanitize=address
28945         Without these patches, ./configure CFLAGS='-fsanitize=address'
28946         would compute incorrect values.  This patch fixes some (but not all)
28947         test failures with recent glibc, with this configuration.
28948         * m4/acl.m4 (gl_ACL_GET_FILE):
28949         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF):
28950         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS):
28951         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO):
28952         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE):
28953         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
28954         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
28955         * m4/getgroups.m4 (gl_FUNC_GETGROUPS):
28956         * m4/getline.m4 (gl_FUNC_GETLINE):
28957         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF):
28958         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF):
28959         * m4/regex.m4 (gl_REGEX):
28960         * m4/strndup.m4 (gl_FUNC_STRNDUP):
28961         * tests/test-calloc-gnu.c (main):
28962         * tests/test-duplocale.c (main):
28963         * tests/test-getgroups.c (main):
28964         * tests/test-getline.c (main):
28965         * tests/test-inttostr.c (main):
28966         * tests/test-localename.c (test_locale_name)
28967         (test_locale_name_thread, test_locale_name_environ)
28968         (test_locale_name_default):
28969         * tests/test-regex.c (main):
28970         * tests/test-setlocale1.c (main):
28971         * tests/test-stat.h (test_stat_func):
28972         Free heap-allocated storage before exiting.
28973         * m4/asm-underscore.m4 (gl_ASM_SYMBOL_PREFIX):
28974         Don't match *_foo symbols inserted by AddressSanitizer.
28975         * tests/test-regex.c, tests/test-stat.c: Include stdlib.h, for 'free'.
28977 2016-02-02  Jim Meyering  <meyering@fb.com>
28979         verify-tests: also remove stray test-verify.Tpo
28980         * modules/verify-tests (Makefile.am): Arrange for "make clean"
28981         to remove the test-verify.Tpo file that is left behind by
28982         the automake-generated rule upon compilation failure.
28983         Otherwise, that .Tpo file would cause a failed "make distcheck"
28984         at least for grep.
28986 2016-02-02  Paul Eggert  <eggert@cs.ucla.edu>
28988         std-gnu11: new module
28989         This makes it easier for applications to prefer C11 and C++11
28990         to older variants, when compiling C and C++ code.
28991         Unlike most m4/*.m4 files, m4/std-gnu11.m4 is GPLed, as it copies
28992         a nontrivial chunk of GPLed Autoconf source code.
28993         * COPYING: Mention the m4/*.m4 copyright situation.
28994         * MODULES.html.sh (std-gnu11): New module.
28995         * m4/std-gnu11.m4, modules/std-gnu11: New files.
28997 2016-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28999         get-permissions, strftime: fix grammar in comments
29000         * lib/get-permissions.c, lib/strftime.c: Merge into the comments
29001         some grammar fixes Alan Mackenzie made to GNU Emacs.
29003 2016-01-25  Daiki Ueno  <ueno@gnu.org>
29005         gettext: mark as obsolete
29006         Suggested by Paul Eggert in:
29007         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00101.html
29008         * modules/gettext (Status): Mark as obsolete.
29009         (Notice): Suggest to use 'gettext-h' instead.
29010         * modules/gettext-h (Description): Suggest GNU gettext, instead of
29011         the 'gettext' module.
29013 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29015         gnulib-tool: don't give up on ln -s so easily
29016         * gnulib-tool (func_ln_s): Don't give up on a later ln -s merely
29017         because an earlier one failed.  The targets could be on different
29018         file systems.  Problem reported by KO Myung-Hun in:
29019         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00081.html
29021         closedir: fix OS/2-related typos
29022         Problem reported by KO Myung-Hun in:
29023         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00107.html
29024         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Fix a couple of typos
29025         in the last couple of changes.
29027 2016-01-24  KO Myung-Hun  <komh78@gmail.com>
29029         openat_proc_name: fix that last '/' is overwritten on OS/2 kLIBC
29030         * lib/openat-proc.c (openat_proc_name): Increase dirlen by 1 after
29031         copying a directory.
29033 2016-01-24  Paul Eggert  <eggert@cs.ucla.edu>
29035         regex: treat [x] as x if x is a unibyte encoding error
29036         Problem reported by Aharon Robbins in:
29037         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00091.html
29038         * lib/regcomp.c (parse_byte) [!_LIBC && RE_ENABLE_I18N]: New function.
29039         (build_range_exp) [!_LIBC && RE_ENABLE_I18N]: Use it.
29041         closedir, dirfd, opendir: port to OpenSolaris 5.10
29042         * m4/closedir.m4 (gl_FUNC_CLOSEDIR):
29043         * m4/dirfd.m4 (gl_FUNC_DIRFD):
29044         * m4/opendir.m4 (gl_FUNC_OPENDIR):
29045         Don't use ${word##pat} substitution, as it doesn't work in
29046         OpenSolaris 5.10 /bin/sh.  Problem reported by Assaf Gordon in:
29047         http://bugs.gnu.org/22443#11
29049 2016-01-23  Paul Eggert  <eggert@cs.ucla.edu>
29051         bootstrap: use American spelling
29052         * build-aux/bootstrap: Honor American spelling.
29054 2016-01-22  Karl Berry  <karl@freefriends.org>
29056         * doc/posix-functions/localtime.texi,
29057         * doc/posix-functions/localtime_r.texi: @item needed for @itemize text.
29059 2016-01-21  Bruno Haible  <bruno@clisp.org>
29061         hash-pjw-bare: fix comment
29062         * lib/hash-pjw-bare.h (hash_pjw_bare): Fix comment.
29064         wcwidth: Replace also on OpenBSD 5.8
29065         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check the value of wcwidth(0xFF1A).
29066         * doc/posix-functions/wcwidth.texi: Update.
29068 2016-01-20  Pádraig Brady  <P@draigBrady.com>
29070         gnu-web-doc-update: fix addition of new files
29071         If there were already added (emnpty) dirs,
29072         then cvs aborts the add with the message:
29073           cvs [add aborted]: there is a version in <./dirname> already
29074         * build-aux/gnu-web-doc-update: Add directories separately
29075         to the addition of files, to avoid the above issue
29076         impacting the addition of files.
29078 2016-01-19  Daiki Ueno  <ueno@gnu.org>
29080         utimens-tests: avoid pulling gettext .m4 files
29081         Although this is not the right fix to the original problem:
29082         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html
29083         it makes it possible again for consumer projects to use arbitrary
29084         version of gettext, through the steps described at:
29085         http://www.gnu.org/software/gnulib/manual/html_node/gettextize-and-autopoint.html
29086         See here for details:
29087         https://lists.gnu.org/r/bug-gnulib/2016-01/msg00079.html
29088         * modules/futimens-tests (Depends-on): Add 'gettext-h' in place of
29089         'gettext'.
29090         * modules/utimens-tests (Depends-on): Add 'gettext-h' in place of
29091         'gettext'.
29093 2016-01-18  Paul Eggert  <eggert@cs.ucla.edu>
29095         regex: pacify static checkers
29096         Problem and draft fix reported by Aharon Robbins in:
29097         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29098         * lib/regcomp.c (build_charclass_op, create_tree) [lint]:
29099         Clear memory to pacify static checkers.
29101         regex: fix [ diagnostic
29102         Problem and fix reported by Aharon Robbins in:
29103         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29104         * lib/regcomp.c (REG_EBRACK_IDX): Fix misleading diagnostic about [.
29106         regex: fix memory leaks
29107         Problem and draft fix reported by Aharon Robbins in:
29108         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00082.html
29109         * lib/regcomp.c (build_range_exp, build_charclass_op)
29110         * lib/regex_internal.c (re_dfa_add_node):
29111         Fix memory leak on failure.
29113 2016-01-18  Pádraig Brady  <P@draigBrady.com>
29115         fts: don't unconditionally use leaf optimization for NFS
29116         NFS st_nlink are not accurate on all implementations,
29117         leading to aborts() if that assumption is made.
29118         See <https://bugzilla.redhat.com/1299169>
29119         * lib/fts.c (leaf_optimization_applies): Remove NFS from
29120         the white list, and document the issue.
29122 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29123             KO Myung-Hun  <komh@chollian.net>
29125         gnulib-tool: don't assume ln -s works
29126         * gnulib-tool (func_ln_s): New function.
29127         (func_ln): Use it.
29129 2016-01-15  KO Myung-Hun  <komh@chollian.net>
29131         utimes: detect utimes() correctly on OS/2 kLIBC
29132         utimes() of OS/2 kLIBC has some limitations.
29133         1. OS/2 itself supports a file date since 1980 year in local time.
29134         2. OS/2 itself supports only even seconds for a file time.
29135         3. utimes() of OS/2 kLIBC does not work on an opened file.
29136         * m4/utimes.m4: Detect utimes() correctly on OS/2 kLIBC.
29137         * doc/posix-functions/utimes.texi: Document the above limitations of
29138         utimes() on OS/2 kLIBC.
29140 2016-01-15  Paul Eggert  <eggert@cs.ucla.edu>
29141             KO Myung-Hun  <komh@chollian.net>
29143         openat_proc_name: port to OS/2 kLIBC
29144         OS/2 kLIBC provides a function to retrive a path from a fd. Use it
29145         instead of /proc/self/fd.
29146         * lib/openat-proc.c (openat_proc_name):
29147         Don't assume file name length is less than INT_MAX.
29148         Port to OS/2 kLIBC with __libc_Back_ioFHToPath().
29150 2016-01-14  KO Myung-Hun  <komh@chollian.net>
29152         stdint: check _INTPTR_T_DECLARED for intptr_t etc.
29153         OS/2 kLIBC's stdint.h defines _INTPTR_T_DECLARED and needs its own
29154         definitions of intptr_t and uintptr_t (which use int and unsigned)
29155         to avoid clashes with declarations of system functions like sbrk.
29156         * lib/stdint.in.h (intptr_t, uintptr_t): Check
29157         _INTPTR_T_DECLARED before defining them.
29159         opendir, closedir, dirfd, fdopendir: port to OS/2 kLIBC
29160         * lib/closedir.c (closedir): Unregister fd if closedir() succeeds.
29161         * lib/dirent.in.h (_gl_register_dirp_fd, _gl_unregister_dirp_fd):
29162         Declare on kLIBC.
29163         * lib/dirfd.c (struct dirp_fd_list): New. Structures to keep track of
29164         fd associated with dirp.
29165         (_gl_register_dirp_fd): New. Register fd associated with dirp to
29166         dirp_fd_list.
29167         (_gl_unregister_dirp_fd): New. Unregister fd with closing it.
29168         (dirfd): Implemented for kLIBC.
29169         * lib/fdopendir.c (fdopendir): Implemented for kLIBC.
29170         * lib/opendir.c (opendir): New. Register fd and dirp pair if open()
29171         succeeds.
29172         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Replace if OS/2.
29173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
29174         (REPLACE_DIRFD): Define to 1 if replaced.
29175         * m4/opendir.m4 (gl_FUNC_OPENDIR): Likewise.
29176         * modules/closedir (Depends-on): Add dirfd.
29177         * modules/dirfd (Depends-on): Add 'test $REPLACE_DIRFD = 1' to errno
29178         condition.
29179         (configure.ac): Add dirfd to LIBOBJS if $REPLACE_DIRFD = 1 as well.
29180         * modules/opendir (Depends-on): Add dirfd.
29182         dup, dup2, fcntl: support a directory fd on OS/2 kLIBC
29183         On OS/2 kLIBC, dup(), dup2() and fcntl() do not work on a directory fd.
29184         * lib/dup.c (dup_nothrow): New.
29185         * lib/dup2.c (klibc_dup2dirfd): New. dup2() for a directory fd.
29186         (klibc_dup2): New.
29187         * lib/fcntl.c (klibc_fcntl): New.
29188         * m4/dup.m4 (gl_FUNC_DUP): Check if dup() works on a directory fd.
29189         * m4/dup2.m4 (gl_FUNC_DUP2): Check if dup2() works on a directory fd.
29190         * m4/fcntl.m4 (gl_FUNC_FCNTL): Check if F_DUPFD works on a directory
29191         fd.
29193         pipe_filter_ii_execute: port to OS/2 kLIBC
29194         Pipes on kLIBC do not support O_NONBLOCK like Win32.
29195         * lib/pipe-filter-ii.c (start_wrapper, _beginthreadex, CloseHandle,
29196         WaiForSingleObject, WaitForMultipleObjects): New on OS/2 kLIBC.
29197         Reuse Win32 code on OS/2 kLIBC.
29198         * lib/spawn-pipe.c: Reuse Win32 code on OS/2 kLIBC.
29199         * lib/w32spawn.h: Do not include windows.h on OS/2 kLIBC.
29201         wchar: fix "conflicting types" error for __wcwidth on OS/2 kLIBC
29202         On OS/2 kLIBC, wcwidth is a macro that expands to the name of a
29203         static inline function.  The implementation of wcwidth in wcwidth.c
29204         causes a "conflicting types" error.
29205         * lib/wchar.in.h: Undefine wcwidth on OS/2 kLIBC.
29207         w32spawn: clear SHELL_SPECIAL_CHARS and SHELL_SPACE_CHAR on OS/2 kLIBC
29208         spawn() on OS/2 kLIBC is not silly like one on Windows
29209         * libc/w32spawn.h (SHELL_SPECIAL_CHARS, SHELL_SPACE_CHAR): Set both to
29210         empty string on OS/2 kLIBC.
29212         pipe-filter-aux: undefine HAVE_SELECT on KLIBC
29213         On OS/2 kLIBC, select() works only on sockets.
29214         * lib/pipe-filter-aux.h (HAVE_SELECT): Undefine on OS/2 kLIBC.
29216         binary-io: don't put fd in binary mode if it is a console on EMX
29217         * lib/binary-io.h (SET_BINARY): Don't put fd in binary mode if it is
29218         a console on EMX.
29220 2016-01-15  Pádraig Brady  <P@draigBrady.com>
29222         doc: mention unfixed issues with unsupported localtime() values
29223         * doc/posix-functions/localtime.texi: Mention that FreeBSD 10
29224         returns nonsense for localtime(2^56).
29225         * doc/posix-functions/localtime_r.texi: Likewise.
29227 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29229         doc: mention setlocale() issues on OpenBSD
29230         * doc/posix-functions/setlocale.texi: Mention setlocale(LC_ALL,"")
29231         never fails, and the need to check categories individually.
29233 2016-01-14  Pádraig Brady  <P@draigBrady.com>
29235         sig2str: list all signals on FreeBSD >= 7
29236         FreeBSD >= 7 is contravening POSIX by not defining NSIG
29237         to the maximal statically defined signal value.
29238         It does define _SIG_MAXSIG though, so base SIGNUM_BOUND on that.
29239         * lib/sig2str.h (SIGNUM_BOUND): Define to (_SIG_MAXSIG - 2)
29240         where available, even when NSIG is defined.
29242 2016-01-13  Paul Eggert  <eggert@cs.ucla.edu>
29244         acl-permissions: port to USE_ACL==0 platforms
29245         I ran into this problem when building bleeding-edge GNU Emacs
29246         with gcc -fsanitize=address on Fedora 23.  On this platform
29247         the ACL library does not pass the 'configure' test and Emacs
29248         then does not build due in part to what appear to be typos in the
29249         ACL part of Gnulib.
29250         * lib/acl-internal.c (free_permission_context):
29251         * lib/acl-internal.h (struct permission_context):
29252         Test whether USE_ACL is nonzero, not whether it is defined.
29254 2016-01-12  Martin Sebor  <msebor@redhat.com>
29256         mktime: rename macro to avoid glibc clash
29257         * lib/mktime.c [DEBUG] (DEBUG): Rename to DEBUG_MKTIME.  See:
29258         https://sourceware.org/ml/libc-alpha/2016-01/msg00267.html
29260 2016-01-12  Paul Eggert  <eggert@cs.ucla.edu>
29262         Port "$@" to OpenIndiana ksh93
29263         In http://lists.gnu.org/r/bug-autoconf/2015-12/msg00000.html
29264         Pavel Raiskup reports that ${1+"$@"} runs afoul of a bug in /bin/sh
29265         (derived from ksh 93t+ 2010-03-05).  ${1+"$@"} works around an ancient
29266         bug long-dead shells, so remove the workaround.
29267         * build-aux/announce-gen, build-aux/do-release-commit-and-tag:
29268         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29269         * build-aux/prefix-gnulib-mk, build-aux/update-copyright:
29270         * build-aux/useless-if-before-free, tests/test-update-copyright.sh:
29271         Use "$@" instead of ${1+"$@"}.
29273         Port Universal Time settings to strict POSIX
29274         * build-aux/announce-gen, build-aux/bootstrap:
29275         * build-aux/do-release-commit-and-tag, build-aux/git-version-gen:
29276         * build-aux/gitlog-to-changelog, build-aux/gnu-web-doc-update:
29277         * build-aux/gnupload, build-aux/mkinstalldirs:
29278         * build-aux/move-if-change, build-aux/prefix-gnulib-mk:
29279         * build-aux/update-copyright, build-aux/useless-if-before-free:
29280         * build-aux/vc-list-files, tests/test-strftime.c:
29281         Use TZ="UTC0", not TZ="UTC".  Either works on GNU platforms,
29282         but POSIX says the behavior of TZ="UTC" is undefined.
29284 2016-01-02  Paul Eggert  <eggert@cs.ucla.edu>
29286         msvc-inval: fix problem with unset shell var
29287         Problem reported by Karl Berry in:
29288         http://lists.gnu.org/r/bug-gnulib/2016-01/msg00004.html
29289         * modules/msvc-inval (Depends-on):
29290         AC_REQUIRE gl_MSVC_INVAL instead of merely calling it.
29291         * modules/msvc-nothrow (Depends-on): Likewise for gl_MSVC_NOTHROW.
29293 2016-01-01  Pádraig Brady  <P@draigBrady.com>
29295         tests: for compare_(), use cmp -s where available
29296         * tests/init.sh (compare_): Only fall back to cmp without
29297         the POSIX defined -s option, where this is not available.
29299 2016-01-01  Paul Eggert  <eggert@cs.ucla.edu>
29301         version-etc: new year
29302         * build-aux/gendocs.sh (version):
29303         * doc/gendocs_template:
29304         * doc/gendocs_template_min:
29305         * doc/gnulib.texi:
29306         * lib/version-etc.c (COPYRIGHT_YEAR):
29307         Update copyright dates by hand in templates and the like.
29308         * all files: Run 'make update-copyright'.
29310 2015-12-31  Paul Eggert  <eggert@cs.ucla.edu>
29312         human: fix output buffer overrun by 1
29313         * lib/human.c (human_readable): Fix off-by-one typo in buffer
29314         calculation that could lead to a one-byte buffer overrun.
29316 2015-12-28  Daiki Ueno  <ueno@gnu.org>
29318         maint: fix operator precedence in mbrtowc test
29319         This is a fix for test breakage introduced by commit 45228d96; the
29320         equality expression must be parenthesized when negated with '!',
29321         otherwise we always get:
29323           test-mbrtowc.c:49: assertion 'ret == (size_t)(-2)' failed
29325         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Negate the entire expression.
29326         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29328 2015-12-23  James Youngman  <jay@gnu.org>
29330         regexprops-generic: update from regex.h
29331         * doc/regexprops-generic.texi: update by running the regexprops binary
29332         from findutils (the command line is 'regexprops "Regular Expressions"
29333         generic').  The recent (ish) change (5a5a9388) to regex.h aligning
29334         gnulib with GNU grep had made this document out-of-date.
29336 2015-12-23  Pádraig Brady  <P@draigBrady.com>
29338         strftime-tests: avoid false failure on OS X
29339         * tests/test-strftime.c (struct localtime_rz_test): Add an
29340         ahistorical member which is used to warn rather than fail
29341         when tm_isdst isn't set for such entries.  This is the case for
29342         "1970-01-01 13:00:00 +1300 (NZDT)" on Darwin 13/14 at least.
29344 2015-12-20  Kamil Dudka  <kdudka@redhat.com>
29346         fts: ensure leaf optimization is used for NFS
29347         NFS provides usable dirent.d_type but not necessarily for all entries
29348         of large directories.  See <https://bugzilla.redhat.com/1252549>
29349         * lib/fts.c (leaf_optimization_applies): Append NFS on the white list.
29351 2015-12-20  Pádraig Brady  <P@draigBrady.com>
29353         fts: enable leaf optimization for XFS
29354         XFS provides usable dirent.d_type only for DT_DIR,
29355         but the noleaf optimization still applies.
29356         * lib/fts.c (leaf_optimization_applies): Add XFS to the white list.
29358 2015-12-17  Paul Eggert  <eggert@cs.ucla.edu>
29360         intprops: comment fix
29361         * lib/intprops.h: Fix comment.  Reported by Pádraig Brady in:
29362         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00013.html
29364         intprops-test: work around GCC bug 68971
29365         Problem reported by Pádraig Brady in:
29366         http://lists.gnu.org/r/bug-gnulib/2015-12/msg00011.html
29367         * tests/test-intprops.c: Ignore -Woverflow in GCC 6 and earlier.
29368         (main): Add a case that better tests 64-bit long in this area.
29370 2015-12-09  Pavel Raiskup  <praiskup@redhat.com>
29372         gnulib-tool: allow multiple --local-dir usage
29373         * gnulib-tool: Use --local-dir to construct compound
29374         $local_gnulib_path path instead of $local_gnulib_dir.  Determine
29375         PATH_SEPARATOR early.
29376         (local_gnulib_dir): Rename into $local_gnulib_path everywhere.
29377         (func_gnulib_dir): Cut out PATH_SEPARATOR detection code into
29378         func_determine_path_separator because that needs to be detected
29379         earlier now.
29380         (func_determine_path_separator): New function.
29381         (func_path_foreach, func_path_foreach_inner): New functions.
29382         (func_path_prepend, func_path_append): Likewise.
29383         (func_lookup_local_file, func_lookup_local_file_cb): Likewise.
29384         (func_lookup_file, func_all_modules): Use new functions to work
29385         with local_gnulib_path.
29386         (func_modules_in_dir, func_exists_module): New callbacks for
29387         func_path_foreach.
29388         (func_exists_module, func_get_tests_module): Likewise.
29389         (func_is_local_file, func_should_symlink): New helper methods.
29390         (func_add_file, func_update_file): Use new func_should_symlink
29391         instead, DRY.
29392         (func_reconstruct_cached_local_gnulib_path): New helper.
29393         (func_reconstruct_cached_dir): New callback.
29394         (func_import): The cached_local_gnulib_dir renamed to
29395         cached_local_gnulib_path similarly to local_gnulib_dir.
29396         Use new func_reconstruct_cached_local_gnulib_path.
29397         (func_count_relative_local_gnulib_path): New sub-method.
29398         (func_create_testdir): Use func_should_symlink, DRY.
29399         (func_create_megatestdir): Use new functions to work with
29400         local_gnulib_path correctly.
29401         (func_append_local_dir): New helper.
29403 2015-12-08  Pádraig Brady  <P@draigBrady.com>
29405         fix freadptr to work with ungetc on all uClibc configs
29406         Reported at https://bugs.busybox.net/show_bug.cgi?id=4099
29407         where GNU coreutils cut(1) generates invalid output on uClibc
29408         when __UCLIBC_HAS_STDIO_GETC_MACRO__ is not defined.
29409         * lib/freadptr.c (freadptr): Return NULL if there are
29410         ungotten chars.  In this case freadseek() will iterate
29411         again to process the ungotten character.
29413 2015-11-13  Paul Eggert  <eggert@cs.ucla.edu>
29415         xalloc-oversized: improve performance with GCC 5
29416         * lib/xalloc-oversized.h (xalloc_oversized):
29417         Improve performance with GCC 5 by using __builtin_mul_overflow.
29419 2015-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29421         intprops: new public macro EXPR_SIGNED
29422         Emacs can use this macro, so make it public.
29423         * doc/intprops.texi (Arithmetic Type Properties): Rename from
29424         'Integer Type Determination', since some of these macros apply
29425         to non-integer types.  Clarify what kinds of constant expressions
29426         these macros return.  Say when the arguments can be non-integers.
29427         Mention newly published macro EXPR_SIGNED.
29428         * lib/intprops.h (EXPR_SIGNED): Rename from _GL_INT_SIGNED, to
29429         make it public.  All uses changed.
29431         intprops: fix typo in clang port
29432         * lib/intprops.h (_GL_INT_OP_WRAPV): Fix misspelling of
29433         '__builtin_add_overflow' that is not caught by compiler.
29435 2015-11-05  Paul Eggert  <eggert@cs.ucla.edu>
29437         test-timespec: fix typo in previous change
29438         * tests/test-timespec.c (main): Fix typo that reduced test quality.
29440         timespec-sub: fix overflow bug; add tests
29441         * lib/timespec-add.c (timespec_add):
29442         * lib/timespec-sub.c (timespec_sub):
29443         Work even if time_t is narrower than int (a theoretical
29444         possibility).  Redo code for a bit more clarity.
29445         * lib/timespec-sub.c (timespec_sub):
29446         Fix off-by-2 bug if a.tv_sec == TYPE_MINIMUM (time_t) and 0 < b.tv_sec.
29447         * modules/timespec-tests, tests/test-timespec.c: New files.
29449         intprops-test: suppress -Woverlength-strings
29450         Problem reported by Pádraig Brady in:
29451         http://lists.gnu.org/r/bug-gnulib/2015-11/msg00008.html
29452         It is not worth the hassle to port this test to compilers that
29453         cannot handle long strings in diagnostics.
29454         * tests/test-intprops.c [__GNUC__]: Ignore -Woverlength-strings.
29456 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29458         quotearg: add quotearg_n_style_colon()
29459         This quotes with default options of the specified style,
29460         but with quoting enabled for instances of ':'.
29461         * lib/quotearg.h (quotearg_n_style_colon): Description and declaration.
29462         * lib/quotearg.c (quotearg_n_style_colon): New function implementation.
29464 2015-11-04  Paul Eggert  <eggert@cs.ucla.edu>
29466         intprops: revise _WRAPV macros, revert _OVERFLOW
29467         The incompatible changes to the _OVERFLOW macros were too much of
29468         a hassle in practice, so revert them.  Instead, change the new
29469         _WRAPV macros to make them closer in behavior to GCC 5's new
29470         builtin_add_overflow etc. functions.  No other software was using
29471         these newly-added macros yet, so this should be OK.
29472         * NEWS: Revert previous change, since the incompatible change
29473         has been reverted, and nobody used the incompatible version.
29474         * doc/intprops.texi (Wraparound Arithmetic, Integer Type Overflow):
29475         Document revised behavior.
29476         (Integer Range Overflow): Adjust example to match above revisions.
29477         * lib/intprops.h (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW)
29478         (INT_MULTIPLY_OVERFLOW): Revert previous change, so that
29479         these can be used in integer constant expressions again.
29480         (INT_CONST_ADD_OVERFLOW, INT_CONST_SUBTRACT_OVERFLOW)
29481         (INT_CONST_MULTIPLY_OVERFLOW): Remove, as these are no longer
29482         needed.
29483         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29484         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29485         (INT_REMAINDER_WRAPV, INT_LEFT_SHIFT_WRAPV):
29486         Remove, as they did not seem that useful.
29487         (INT_ADD_WRAPV, INT_SUBTRACT_WRAPV, INT_MULTIPLY_WRAPV)
29488         (_GL_INT_OP_WRAPV, _GL_INT_OP_WRAPV_LONGISH)
29489         (_GL_INT_OP_WRAPV_VIA_UNSIGNED):
29490         Support new semantics.
29491         (__has_builtin): New macro, if not alreay defined.
29492         (_GL__GENERIC_BOGUS, _GL_INT_OP_CALC, _GL_INT_OP_CALC1): New macros.
29493         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29494         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29495         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29496         (INT_CONST_LEFT_SHIFT_WRAPV): Remove.
29497         (CHECK_SBINOP, CHECK_SSUM, CHECK_SUM1, CHECK_SSUM1)
29498         (CHECK_SDIFFERENCE, CHECK_SPRODUCT, CHECK_PRODUCT1, CHECK_SPRODUCT1):
29499         New macros.
29500         (CHECK_BINOP, CHECK_UNOP, main, CHECK_SUM): Test new behavior.
29502 2015-11-03  Jim Meyering  <meyering@fb.com>
29504         intprops: add parentheses for when OP has precedence lower than "-"
29505         * lib/intprops.h (_GL_INT_OP_WRAPV_VIA_UNSIGNED): In "a OP b - c",
29506         "a OP b" must be parenthesized for when OP is like "<<", which has
29507         lower precedence than the following "-". Reported by Pádraig Brady.
29509 2015-11-03  Pádraig Brady  <P@draigBrady.com>
29511         quotearg: constify get_quoting_style parameters
29512         * lib/quotearg.h (get_quoting_style): Mark parameter as const.
29513         * lib/quotearg.c (get_quoting_style): Likewise.
29515 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29517         quotearg: add support for $'' shell escaping
29518         * lib/quotearg.h: Add "shell-escape" and "shell-escape-always"
29519         items and descriptions.
29520         * lib/quotearg.c (quotearg_buffer_restyled): Add support for the
29521         above types by quoting like "shell", but using $'...' syntax
29522         for non printable characters, which should provide unambiguous
29523         printable output for any input.
29524         * tests/test-quotearg-simple.c: Update accordingly.
29526 2015-11-02  Pádraig Brady  <P@draigBrady.com>
29528         maint: use a more standard return from mbrtowc test
29529         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): Don't return 1
29530         from the test program as this is non standard and often
29531         indicates an unhandled case in the test program.
29532         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): Likewise.
29534 2015-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29536         intprops: add WRAPV and const flavors for GCC 5
29537         If available, use GCC 5's builtin functions for efficient integer
29538         overflow checking.  Also, add macros like INT_ADD_WRAPV efficently
29539         and safely compute the low-order bits of the correct answer.
29540         A downside of these efficient functions is that they cannot be
29541         used in constant expressions, so add macros like INT_CONST_ADD_OVERFLOW
29542         and INT_CONST_ADD_WRAPV that can be used even in constant expressions.
29543         * NEWS: Document the incompatible changes to INT_ADD_OVERFLOW etc.
29544         * doc/intprops.texi (Integer Properties, Integer Type Overflow):
29545         Document the changes.
29546         (Wraparound Arithmetic): New section.
29547         (Integer Range Overflow):
29548         Put this subsection last, since it's least useful.
29549         * lib/intprops.h (INT_CONST_ADD_OVERFLOW)
29550         (INT_CONST_SUBTRACT_OVERFLOW, INT_CONST_MULTIPLY_OVERFLOW):
29551         New macros, with the meaning that INT_ADD_OVERFLOW etc. used to have.
29552         (INT_CONST_ADD_WRAPV, INT_CONST_SUBTRACT_WRAPV)
29553         (INT_NEGATE_WRAPV, INT_CONST_MULTIPLY_WRAPV, INT_DIVIDE_WRAPV)
29554         (INT_REMAINDER_WRAPV, _GL_INT_OP_WRAPV, _GL_EXPR_CAST)
29555         (_GL_INT_OP_WRAPV_LONGISH, INT_ADD_WRAPV, INT_SUBTRACT_WRAPV)
29556         (INT_MULTIPLY_WRAPV, _GL_OP_OVERFLOW, _GL_OP_WRAPV, _GL_OP_WRAPV_GENSYM):
29557         New macros.
29558         (INT_ADD_OVERFLOW, INT_SUBTRACT_OVERFLOW, INT_MULTIPLY_OVERFLOW):
29559         Generate calls to GCC builtins if available, for speed.
29560         * tests/test-intprops.c (INT_CONST_DIVIDE_OVERFLOW)
29561         (INT_CONST_REMAINDER_OVERFLOW, INT_CONST_LEFT_SHIFT_OVERFLOW)
29562         (INT_CONST_DIVIDE_WRAPV, INT_CONST_REMAINDER_WRAPV)
29563         (INT_CONST_LEFT_SHIFT_WRAPV): New macros.
29564         (main, CHECK_BINOP, CHECK_UNOP, CHECK_SUM, CHECK_PRODUCT)
29565         (CHECK_QUOTIENT, CHECK_REMAINDER):
29566         Test WRAPV and CONST flavors (when available) too.
29568 2015-10-30  Pádraig Brady  <P@draigBrady.com>
29570         doc: use extended timezone format in iso-8601 example
29571         * doc/parse-datetime.texi: The standard states that extended format
29572         is to be used consistently throughout.
29573         Note that lib/parse-datetime.y can handle either tz format.
29575 2015-10-25  Paul Eggert  <eggert@cs.ucla.edu>
29577         stdalign: port to Sun C 5.9
29578         * doc/posix-headers/stdalign.texi: Document this.
29579         * lib/stdalign.in.h (_Alignas): Sun C 5.9 also supports
29580         __attribute__ ((__aligned__ (...))).
29582 2015-10-20  Paul Eggert  <eggert@cs.ucla.edu>
29584         time_rz: fix comment about tzalloc
29585         * lib/time_rz.c (tzalloc): Fix comment.
29587 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29589         stdalign: work around pre-4.9 GCC x86 bug
29590         * lib/stdalign.in.h (_Alignof): Work around bug in pre-4.9 GCC on
29591         x86, when -std=gnu11 is used.  Problem reported by Jim Meyering in:
29592         http://lists.gnu.org/r/bug-gnulib/2015-10/msg00038.html
29594 2015-10-18  Pádraig Brady  <P@draigBrady.com>
29596         maint.mk: sc_tight_scope: remove extraneous expressions
29597         * top/maint.mk (tight_scope): This is not really required since
29598         commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
29599         that matches all nm entries.  But it does remove extraneous entries
29600         that may be confusing or cause issue in future maintenance.
29602 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
29604         time_rz: return NULL if localtime_r fails
29605         * lib/time_rz.c (localtime_rz): Return NULL if localtime_r fails,
29606         while still attempting to pacify bleeding-edge GCC.
29608         fts: port to C11 alignof
29609         * doc/posix-headers/stdalign.texi (stdalign.h):
29610         Document the C11 restriction.
29611         * lib/fts.c: Include stddef.h, for max_align_t.
29612         (fts_alloc): Align using max_align_t, not FTSENT.
29613         * modules/fts (Depends-on): Add stddef.
29615 2015-10-18  Jim Meyering  <meyering@fb.com>
29617         time_rz: avoid warning from bleeding-edge gcc's -Wnonnull
29618         Compiling with gcc version 6.0.0 20151017 (experimental) (GCC), I
29619         would see this:
29621         lib/time_rz.c: In function 'localtime_rz':
29622         lib/time_rz.c:292:15: error: nonnull argument 'tm' compared to NULL \
29623           [-Werror=nonnull]
29624                    if (tm && !save_abbr (tz, tm))
29625                        ^
29627         That was complaining about "tm" because it is a parameter that was
29628         declared with the __nonnull__ attribute.
29629         * lib/time_rz.c (localtime_rz): Don't bother setting "tm" to the
29630         result of localtime_r.
29632 2015-10-17  Jim Meyering  <meyering@fb.com>
29634         maint.mk: _gl_TS_function_match: fix "extern" name extracting regexp
29635         * top/maint.mk (_gl_TS_function_match): This heuristic extern-function-
29636         name-extraction regexp mistakenly used \S+, and would mistakenly
29637         extract "*F" from "extern int *F()" rather than the desired "F".
29638         Use \w+ instead.
29640 2015-10-17  Jim Meyering  <meyering@fb.com>
29642         maint.mk: sc_tight_scope: factor and support OS X
29643         * top/maint.mk (_gl_tight_scope): Address three issues:
29644         - factor out four instances of code that wraps a string in "^...$"
29645         - allow nm-reported symbol names to have an optional leading "_"
29646         - add "main" to the list of ignored variable names, because on os x,
29647         "main" has nm-reported type "S" in the variable-checking section.
29649 2015-10-16  Dmitry Smirnov  <onlyjob@member.fsf.org>
29651         safe-alloc-tests: fix typo in license header
29652         * tests/test-safe-alloc.c: Mention LGPL 2.1, not 3.1
29654 2015-10-15  Simon Reinhardt  <simon@keinstein.org>
29656         copy-file: fix mem leak in error case
29657         * lib/copy-file.c (qcopy_file_preserving): Free the 32KiB buffer
29658         upon error opening or performing I/O to the src and dest files.
29660 2015-10-15  Mike Frysinger  <vapier@chromium.org>
29662         localename: control langinfo.h inclusion
29663         This header is only used to work around buggy behavior in old
29664         versions of glibc, so do not include it all the time.  Otherwise
29665         we get build failures on systems that do not provide langinfo.h.
29666         * lib/localename.c: Wrap langinfo.h include with same ifdefs used
29667         in the source later on.
29668         The patch was originally submitted to gettext as:
29669         https://lists.gnu.org/r/bug-gettext/2015-10/msg00011.html
29671 2015-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29673         binary-io, math, pthread, sys_socket, u64, unistd: port to strict C
29674         * lib/binary-io.c, lib/math.c, lib/pthread.c, lib/sys_socket.c:
29675         * lib/u64.c, lib/unistd.c:
29676         Append 'typedef int dummy;', to pacify compilers that are picky
29677         about empty translation units.
29679 2015-10-12  Pino Toscano  <ptoscano@redhat.com>
29681         accept4-tests: fix to avoid non portable flags
29682         * tests/test-accept4.c (main): Pass only SOCK_* flags to accept4(),
29683         as they are the only documented ones, and passing others may trigger
29684         EINVAL (seen on FreeBSD 10.1-RELEASE).
29685         * doc/glibc-functions/accept4.texi: Mention that we don't provide
29686         the SOCK_CLOEXEC or SOCK_NONBLOCK defines.
29688 2015-10-06  Pavel Raiskup  <praiskup@redhat.com>
29690         gnulib-tool: fix tests of 'extensions' module
29691         This complements f8fe25fab60e3c687a124 commit.
29692         * gnulib-tool (func_emit_pre_early_macros): New function, it wraps
29693         emitting of initial gl_EARLY macros.
29694         (func_import, func_create_testdir): All dumps of gl_PROG_AR_RANLIB
29695         replaced with func_emit_pre_early_macros call.
29697 2015-10-06  Paul Eggert  <eggert@cs.ucla.edu>
29699         unicase/locale-language: fix typo in utf-8 cookie
29700         * lib/unicase/locale-languages.gperf: Fix gperf input file format.
29701         Problem reported by Zbigniew Jędrzejewski-Szmek.
29703 2015-10-02  Paul Eggert  <eggert@cs.ucla.edu>
29705         xalloc: do not worry about GCC 5 warning on 32 bit
29706         * lib/xalloc.h: Revert previous change.
29707         I found a better way to fix this in coreutils.
29709 2015-10-02  Pádraig Brady  <P@draigBrady.com>
29711         xalloc: avoid GCC 5.1 warning on 32 bit
29712         * lib/xalloc.h: Disable -Wstrict-overflow for uses of
29713         xalloc_oversized(), which was seen to give this warning
29714         on GCC 5.1 on 32 bit: "assuming signed overflow does not occur
29715         when simplifying conditional".
29717 2015-10-02  Daiki Ueno  <ueno@gnu.org>
29719         uniname/uniname-tests: avoid compiler warnings
29720         * tests/uniname/test-uninames.c (fill_names, fill_aliases): Remove
29721         unused local variables.
29722         (test_alias_lookup): Fix alias name display in failure cases.
29724 2015-09-26  Paul Eggert  <eggert@cs.ucla.edu>
29726         c-ctype: do not worry about EBCDIC + char signed
29727         Drop support for EBCDIC with char being signed, as this breaks too
29728         many programs.  Problem reported by Ben Pfaff in:
29729         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00053.html
29730         * lib/c-ctype.h: Verify that we are not using EBCDIC with
29731         char being signed.
29732         (_C_CTYPE_LOWER_A_THRU_F_N): New macro.
29733         (_C_CTYPE_LOWER_N, _C_CTYPE_A_THRU_F): Use it.
29734         (_C_CTYPE_DIGIT, _C_CTYPE_LOWER, _C_CTYPE_PUNCT, _C_CTYPE_UPPER):
29735         (c_isascii, c_isgraph, c_isprint, c_ispunct, c_tolower, c_toupper):
29736         * tests/test-c-ctype.c (test_all):
29737         Simplify by assuming standard char values cannot be negative.
29738         * tests/test-c-ctype.c (NCHARS, to_char): Remove; all uses removed.
29740 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29742         c-ctype: port better to z/OS EBCDIC
29743         Problems reported by Daniel Richard G. in:
29744         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00050.html
29745         * lib/c-ctype.h (_C_CTYPE_CNTRL): Rewrite in terms of
29746         the C standard escapes and _C_CTYPE_OTHER_CNTRL.
29747         (_C_CTYPE_OTHER_CNTRL): New macro.
29748         * tests/test-c-ctype.c (test_all): Test from CHAR_MIN, not
29749         from SCHAR_MIN, as the functions are defined only from values
29750         promoted from char or from unsigned char, not necessarily from
29751         signed char.
29753 2015-09-25  Pavel Raiskup  <praiskup@redhat.com>
29755         gnulib-common.m4: fix gl_PROG_AR_RANLIB/AM_PROG_AR clash
29757         The gl_PROG_AR_RANLIB (it is always called by gl_EARLY) sets AR
29758         and ARFLAGS variables.  Doing this unconditionally could break
29759         later Automake's AM_PROG_AR invocation (at least it's
29760         AC_CHECK_TOOLS call to detect correct 'ar' binary).
29762         Original purpose of the gl_PROG_AR_RANLIB was only to handle the
29763         Amsterdam Compiler Kit, so make the previous code to have effects
29764         only on ACK, and rather automatically call the Automake's
29765         AM_PROG_AR as soon as possible to decide other cases.
29767         References:
29768         http://lists.gnu.org/r/bug-gnulib/2015-07/msg00001.html
29770         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): AC_BEFORE AM_PROG_AR.
29771         Set the AR/ARFLAGS to ACK defaults OR call AM_PROG_AR.  If neither
29772         is possible, keep setting AR/ARFLAGS to reasonable defaults.
29773         * gnulib-tool (func_import): Put the gl_USE_SYSTEM_EXTENSIONS
29774         right before gl_PROG_AR_RANLIB into gnulib-comp.m4 (if the
29775         'extensions' module is used.
29776         * modules/extensions (configure.ac-early): Remove as this snippet
29777         is added to gnulib-comp.m4 earlier anyway.
29779 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29781         sockets: MS Windows initalization fixes
29782         Problem reported by Test User in:
29783         http://lists.gnu.org/r/help-shishi/2015-09/msg00001.html
29784         * lib/sockets.h (SOCKETS_1_0, SOCKETS_2_0, SOCKETS_2_1):
29785         Correct the endianness.
29786         * lib/sockets.c (gl_sockets_startup): Return 2 on any version
29787         number mismatch, not just on <.  Cleanup before any such failure.
29789 2015-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
29791         gc: fix detection of installed libgcrypt version
29792         * m4/gc.m4: Use AM_PATH_LIBCRYPT to test for libcrypt versions
29793         at least as recent as 1.4.4.  The previously used macro is not
29794         available now, since modules were removed in version 1.6.0.
29796 2015-09-25  Paul Eggert  <eggert@cs.ucla.edu>
29798         c-ctype: rewrite to use inline functions
29799         This simplifies maintenance, since it makes for just one
29800         implementation of each function, letting the compiler have the fun
29801         of optimization.  In practice this works well nowadays with GCC.
29802         E.g., c_isascii might need only three instructions even though the
29803         source code lists every ASCII character individually in a large
29804         switch statement.
29805         Also, fix some z/OS porting bugs reported by Daniel Richard G. in:
29806         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00037.html
29807         * NEWS: Document the API change.
29808         * lib/c-ctype.c: Drastically simplify, since this now just expands
29809         inline functions.
29810         * lib/c-ctype.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
29811         (C_CTYPE_INLINE): New macro.
29812         (C_CTYPE_CONSECUTIVE_DIGITS, C_CTYPE_CONSECUTIVE_LOWERCASE)
29813         (C_CTYPE_CONSECUTIVE_UPPERCASE): Remove.
29814         Verify that either ASCII or EBCDIC is being used.
29815         (_C_CTYPE_SIGNED_EBCDIC, _C_CTYPE_CNTRL, _C_CTYPE_A_THRU_F_N)
29816         (_C_CTYPE_DIGIT_N, _C_CTYPE_LOWER_N, _C_CTYPE_UPPER_N)
29817         (_C_CTYPE_CASES, _C_CTYPE_A_THRU_F, _C_CTYPE_DIGIT, _C_CTYPE_LOWER)
29818         (_C_CTYPE_UPPER, _C_CTYPE_PUNCT_PLAIN):
29819         New private macros.
29820         (_C_CTYPE_CNTRL): In EBCDIC, '\x07' is a control, not '\xff'.
29821         (c_isalnum, c_isalpha, c_isascii, c_isblank, c_iscntrl, c_isdigit)
29822         (c_isgraph, c_islower, c_isprint, c_ispunct, c_isspace, c_isupper)
29823         (c_isxdigit, c_tolower, c_toupper): Now inline functions.
29824         (c_tolower, c_toupper): When converting, return the unsigned char,
29825         as that is what z/OS does.
29826         * lib/c-strcaseeq.h (CASEEQ): Simplify in the light of the removal
29827         of some c-ctype.h macros.
29828         * modules/c-ctype (Depends-on): Add extern-inline; remove verify.
29829         * tests/test-c-ctype.c (test_all): Fix test for c_toupper and
29830         c_tolower promotion to be compatible with z/OS.
29832 2015-09-24  Pavel Raiskup  <praiskup@redhat.com>
29834         gitlog-to-changelog: trim only trailing whitespaces
29835         This is fix for --format regression introduced by commit
29836         2b93079a5d1baa4d;  it caused that --format='%s%n%n%b%n' (see the
29837         doubled %n string) had no effect anymore.  This format
29838         specification has been used e.g. by GNU paxuitils (commit
29839         edfd8bcc3).
29841         * build-aux/gitlog-to-changelog (main): Stop squashing multiple
29842         newlines in commmit messages.
29844 2015-09-23  Paul Eggert  <eggert@cs.ucla.edu>
29846         Test that c_iscntrl agrees with iscntrl, etc.
29847         Suggested by Daniel Richard G. in:
29848         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00034.html
29849         * modules/c-ctype-tests (Depends-on): Add ctype.
29850         * tests/test-c-ctype.c: Include <ctype.h>.
29851         (NCHARS): New constant.
29852         (test_agree_with_C_locale): New function.
29853         (main): Use it.
29854         (test_all): Use named constants.
29856         c-ctype: improve c_isascii testing
29857         * tests/test-c-ctype.c (test_all): Port c_isascii test to EBCDIC.
29858         Add a test to count the number of ASCII characters.
29860 2015-09-22  Paul Eggert  <eggert@cs.ucla.edu>
29862         savewd: remove SAVEWD_CHDIR_READABLE
29863         It was problematic in the light of file systems that ignore umask.
29864         Problem reported by Sebastian Unger in: http://bugs.gnu.org/21534
29865         * NEWS: Document this.
29866         * lib/mkancesdirs.c (mkancesdirs): MAKE_DIR now returns 0 if
29867         successful, -1 (setting errno) on failure, rather than something
29868         more complicated than that.
29869         * lib/mkdir-p.c (make_dir_parents):
29870         Do not use SAVEWD_CHDIR_READABLE.
29871         * lib/savewd.c (savewd_chdir):
29872         Remove support for SAVEWD_CHDIR_READABLE.
29873         * lib/savewd.h (SAVEWD_CHDIR_READABLE): Remove.
29875         c-ctype: port better to EBCDIC
29876         Problems reported by Daniel Richard G. in
29877         http://lists.gnu.org/r/bug-gnulib/2015-09/msg00020.html
29878         * lib/c-ctype.c: Include <limits.h>, for CHAR_MIN and CHAR_MAX.
29879         Include "verify.h".
29880         (C_CTYPE_ASCII, C_CTYPE_CONSECUTIVE_DIGITS)
29881         (C_CTYPE_CONSECUTIVE_LOWERCASE, C_CTYPE_CONSECUTIVE_UPPERCASE):
29882         Define as enum constants with value false, if not defined, so that
29883         code can use 'if' instead of 'ifdef'.  Using 'if' helps make the
29884         code more portable, as both branches of the 'if' are compiled on
29885         all platforms.
29886         (C_CTYPE_EBCDIC): New constant.
29887         Verify that the character set is either ASCII or EBCDIC.
29888         (to_char): New static function.
29889         (c_isascii, c_iscntrl):
29890         Assume standard control-character assignments for EBCDIC.
29891         (c_isalnum, c_isalpha, c_isdigit, c_islower, c_isgraph, c_isprint)
29892         (c_ispunct, c_isupper, c_isxdigit, c_tolower, c_toupper):
29893         Rewrite to use 'if' instead of 'ifdef'.
29894         Use to_char if non-ASCII.  Prefer <= to >=.
29895         Prefer true and false to 1 and 0, for booleans.
29896         (c_iscntrl): Use 'if', not 'ifdef'.
29897         * modules/c-ctype (Depends-on): Add verify.
29898         * tests/test-c-ctype.c: Include <limits.h>, for CHAR_MIN
29899         (to_char): New function.
29900         (test_all): Port to EBCDIC.  Add some more tests, e.g., for c_ispunct.
29902 2015-09-21  Pádraig Brady  <P@draigBrady.com>
29904         nanosleep: fix return code for interrupted replacement
29905         * lib/nanosleep.c (nanosleep): In the replaced nanosleep, ensure
29906         that we return -1 in the case the call is interrupted by a signal,
29907         rather than the current value of 1.
29908         Diagnosed and tested by Daniel Richard G.
29910 2015-09-19  Paul Eggert  <eggert@cs.ucla.edu>
29912         Diagnose ERE '()|\1'
29913         Problem reported by Hanno Böck in: http://bugs.gnu.org/21513
29914         * lib/regcomp.c (parse_reg_exp): While parsing alternatives, keep
29915         track of the set of previously-completed subexpressions available
29916         before the first alternative, and restore this set just before
29917         parsing each subsequent alternative.  This lets us diagnose the
29918         invalid back-reference in the ERE '()|\1'.
29920         regex: merge patches from libc
29922         2015-09-08  Joseph Myers  <joseph@codesourcery.com>
29923         Move bits/libc-lock.h and bits/libc-lockP.h out of bits/ (bug 14912).
29924         * lib/regex_internal.h:
29925         Include <libc-lock.h> instead of <bits/libc-lock.h>.
29927         2015-06-09  Joseph Myers  <joseph@codesourcery.com>
29928         Fix regcomp wcscoll, wcscmp namespace (bug 18497).
29929         * lib/regcomp.c (build_range_exp): Call __wcscoll instead of
29930         wcscoll.
29931         * lib/regexec.c (check_node_accept_bytes): Likewise.
29933         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29934         Fix regex wcrtomb namespace (bug 18496).
29935         * lib/regex_internal.c (build_wcs_upper_buffer): Call __wcrtomb
29936         instead of wcrtomb.
29938         2015-06-05  Joseph Myers  <joseph@codesourcery.com>
29939         Fix regex wctype namespace (bug 18495).
29940         * lib/regcomp.c (re_compile_fastmap_iter): Call __towlower
29941         instead of towlower.
29942         * lib/regex_internal.c (build_wcs_upper_buffer): Call __iswlower
29943         instead of iswlower.  Call __towupper instead of towupper.
29944         * lib/regex_internal.h (IS_WIDE_WORD_CHAR): Call __iswalnum
29945         instead of iswalnum.
29947         2015-01-07  Chris Metcalf  <cmetcalf@ezchip.com>
29948         * lib/regcomp.c (parse_bracket_exp): Initialize type to
29949         COLL_SYM in a couple of places to avoid uninitialized variable
29950         wanings on tilegx gcc 4.8.2.
29952         2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
29953         * lib/regex_internal.h: Remove NOT_IN_libc.
29955         2014-11-17  Andreas Schwab  <schwab@suse.de>
29956         * lib/regex_internal.h: Don't include <locale/elem-hash.h>.
29958         2014-09-11  Roland McGrath  <roland@hack.frob.com>
29959         Move findidx nested functions to top-level.
29960         * lib/regcomp.c [_LIBC]: #include <locale/weight.h>.
29961         (build_equiv_class) [_LIBC]: Don't #include it inside the function.
29962         Pass new arguments to findidx.
29963         * lib/regexec.c [RE_ENABLE_I18N] [_LIBC]: #include <locale/weight.h>.
29964         [RE_ENABLE_I18N] (check_node_accept_bytes) [_LIBC]:
29965         Don't #include it inside the function.  Pass new arguments to findidx.
29966         * lib/regex_internal.h:
29967         [!NOT_IN_libc] [_LIBC]: #include <locale/weight.h>.
29968         (re_string_elem_size_at): Don't #include it inside the function.
29969         Pass new arguments to findidx.
29971         2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
29972         Check if DEBUG is defined in regex_internal.c
29973         * lib/regex_internal.c: Check if DEBUG is defined and is set.
29975 2015-09-08   Assaf Gordon  <assafgordon@gmail.com>
29977         ceill: detect buggy OpenBSD implementation
29978         * m4/ceill.m4 (gl_FUNC_CEILL): Detect buggy openBSD implementation
29979         which returns zero for small values.  Discussed here:
29980         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00010.html
29982 2015-09-08  Dave Chiluk  <chiluk@canonical.com>
29984         mountlist: add me_mntroot field on Linux machines
29985         * lib/mountlist.c (read_file_system_list): Populate me_mntroot in
29986         mount_entry so Linux machines based on /proc/self/mountinfo can
29987         distinguish between bind mounts and original mounts.  In reality bind
29988         mounts aren't treated differently than mountroot=/ mounts by the
29989         kernel, but the user often wants these bind mounts distinguished.
29990         * lib/mountlist.h (struct mount_entry): Add me_mntroot element.
29991         More details at https://pad.lv/1432871
29993 2015-09-08  Christian Egli  <christian.egli@sbs.ch>
29995         doc: Describe to use multiple instances of gnulib
29996         * doc/gnulib-tool.texi: Add a section to the manual outlining how two
29997         instances of gnulib with different modules can be used, for example one
29998         for a lib and another one for associated tools.
30000 2015-09-01  Pádraig Brady  <P@draigBrady.com>
30002         base32: mark function as __attribute__ const
30003         * lib/base32.h (isbase32): Mark __attribute__ const as
30004         suggested by GCC, and consistent with the base64 module.
30006 2015-08-20  Daiki Ueno  <ueno@gnu.org>
30008         gnulib-tool: don't transform binary files with sed
30009         * gnulib-tool (func_add_or_update): Don't apply sed_transform_* to
30010         .mo and .class files.
30011         Reported by Denis Denisov.
30013 2015-08-10  Daiki Ueno  <ueno@gnu.org>
30015         gperf: respect silent rules
30016         * modules/gperf (Makefile.am): Define V_GPERF, V_GPERF_, and
30017         V_GPERF_0 for silent rules.
30018         * modules/iconv_open (Makefile.am): Use V_GPERF.
30019         * modules/unicase/locale-language (Makefile.am): Likewise.
30020         * modules/unicase/special-casing (Makefile.am): Likewise.
30021         * modules/unictype/category-byname (Makefile.am): Likewise.
30022         * modules/unictype/combining-class-byname (Makefile.am): Likewise.
30023         * modules/unictype/joininggroup-byname (Makefile.am): Likewise.
30024         * modules/unictype/joiningtype-byname (Makefile.am): Likewise.
30025         * modules/unictype/property-byname (Makefile.am): Likewise.
30026         * modules/unictype/scripts (Makefile.am): Likewise.
30027         * modules/uninorm/composition (Makefile.am): Likewise.
30029 2015-08-03  Paul Eggert  <eggert@cs.ucla.edu>
30031         Improve port of stdalign to C++11
30032         Problem reported by Sundaram in:
30033         http://lists.gnu.org/r/bug-gnulib/2015-08/msg00003.html
30034         * lib/stdalign.in.h (alignof, alignas): Don't define if C++11 or newer.
30035         (__alignas_is_defined): Define if C++11 or newer.
30037 2015-08-01  Assaf Gordon  <assafgordon@gmail.com>  (tiny change)
30039         pmccabe2html: fix gawk regex escaping
30040         * build-aux/pmccabe2html: Add one more backslash to properly
30041         escape the gsub replacement value.  Fixes this error:
30042         gawk: ./build-aux/pmccabe2html:425: \
30043         warning: escape sequence `\&' treated as plain `&'
30045 2015-07-29  Paul Eggert  <eggert@cs.ucla.edu>
30047         time_rz: port to pedantic memcpy
30048         * lib/time_rz.c (tzalloc): Pacify pedantic memcpy implementations
30049         that reject memcpy (..., NULL, 0).
30051 2015-07-27  Paul Eggert  <eggert@cs.ucla.edu>
30053         time_rz: port better to MinGW
30054         Don't change tzname, as this makes MinGW dump core (Bug#21020).
30055         Instead, store the tzname copy in the struct tm_zone object.
30056         Problem reported by Eli Zaretskii in: http://bugs.gnu.org/21020#48
30057         * lib/strftime.c [!_LIBC]:
30058         * lib/time_rz.c: Include time-internal.h.
30059         * lib/strftime.c (strftime_case_) [!HAVE_TM_ZONE]: Infer the zone
30060         name from *TZ rather than from TZNAME, doable because *TZ now has
30061         a tzname_copy member.
30062         * lib/time-internal.h: New file, with contents taken from
30063         lib/time_rz.c.  It's separate because strftime.c now accesses
30064         struct tm_zone members.
30065         (struct tm_zone) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30066         New member tzname_copy.
30067         * lib/time_rz.c (struct tm_zone): Move to time-internal.h.
30068         (tzalloc) [HAVE_TZNAME && !HAVE_TM_ZONE]:
30069         Initialize tzname_copy member.
30070         (save_abbr) [HAVE_TZNAME && !HAVE_TM_ZONE]: Save abbreviation
30071         in tzname_copy member.
30072         (revert_tz) [HAVE_TZNAME]: Remove no-longer-needed tzname saving.
30073         (restore_tzname): Remove; no longer needed.  All calls removed.
30074         * modules/time_rz (Files): Add lib/time-internal.h.
30076         time: port __need_time_t to MinGW
30077         * lib/time.in.h (__need_time_t): Do not treat specially on MinGW.
30078         Fix reported by Eli Zaretskii in: http://bugs.gnu.org/21020#36
30080 2015-07-25  Paul Eggert  <eggert@cs.ucla.edu>
30082         strftime: fix newly-introduced bug on Solaris
30083         * lib/strftime.c (strftime_case_): Set the local variable 'zone'
30084         consistently at the start, rather than doing some of the setup at
30085         the start and some in the %Z format spec.  This is cleaner, and
30086         works better with time_rz on platforms like Solaris where struct
30087         tm lacks a tm_zone member, as when !HAVE_TM_GMTOFF %z's calls to
30088         mktime_z and localtime_rz can mess up the tzname cache.
30090         test-strftime: test for Solaris bug
30091         * modules/strftime-tests (Depends-on): Add strerror.
30092         * tests/test-strftime.c: Include <errno.h>.
30093         (posixtm_test): New function, containing the old 'main'.
30094         (struct tzalloc_test, struct localtime_rz_test): New types.
30095         (TZ, LT): New static vars.
30096         (tzalloc_test): New function.
30097         (main): Rewrite in terms of posixtm_test and tzalloc_test.
30099         time_rz: port to Solaris etc.
30100         Works around a tzname problem on platforms like Solaris that have
30101         tzname but not tm_zone, by setting tzname at the appropriate time
30102         and restoring it later.
30103         * lib/time_rz.c (tzname_address, tzname_value) [HAVE_TZNAME]:
30104         New static vars.
30105         (save_abbr) [HAVE_TZNAME]: Set them.
30106         (revert_tz) [HAVE_TZNAME]: Clear or use them.
30107         (restore_tzname): New function.
30108         (localtime_rz, mktime_z): Use it.
30110         time_rz: now LGPL
30111         * modules/time_rz (License): Now LGPL, because strftime depends on it.
30113         time_rz: make a constant 'const'
30114         * lib/time_rz.c (local_tz): Now const.
30116         time_rz: fix off-by-one typo
30117         * lib/time_rz.c (extend_abbrs): Fix off-by-one typo.
30119 2015-07-23  Paul Eggert  <eggert@cs.ucla.edu>
30121         fprintftime, strftime: use timezone_t args
30122         * NEWS: Document the change.
30123         * lib/fprintftime.h (fprintftime):
30124         * lib/strftime.c (extra_args) [my_strftime]:
30125         * lib/strftime.h (nstrftime):
30126         Time zone arg is now of type timezone_t, not int.
30127         * lib/strftime.c (mktime_z) [_LIBC]: New macro.
30128         (__gmtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: Remove; no longer used.
30129         (my_strftime) [emacs && !my_strftime]:
30130         (emacs_strftimeu) [emacs && !FPRINTFTIME]:
30131         Remove; Emacs doesn't need this any more.
30132         (HAVE_TZSET) [my_strftime]: Unset, since we no longer want
30133         fprintftime and nstrftime to call tzset.
30134         (ut) [!my_strftime]: Remove, replacing with ...
30135         (tz) [!my_stftime]: ... this new macro.  All uses changed.
30136         (strftime_case_): Use localtime_rz and mktime_z instead
30137         of localtime_r and mktime.
30138         * modules/fprintftime (Depends-on): Add time_rz.
30139         * modules/strftime (Depends-on): Add time_rz.  Remove time_r.
30140         * tests/test-strftime.c (main): Adjust to new nstrftime API.
30142         time_rz: new module
30143         * MODULES.html.sh: Add time_rz.
30144         * lib/time_rz.c, m4/time_rz.m4, modules/time_rz: New files.
30145         * lib/time.in.h (timezone_t, tzalloc, tzfree, localtime_rz, mktime_z):
30146         New decls if _GNU_SOURCE && @GNULIB_TIME_RZ@ && ! @HAVE_TIMEZONE_T@.
30147         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS):
30148         New var HAVE_TIMEZONE_T (default 0).
30149         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
30150         New var GNULIB_TIME_RZ (default 0).
30151         * modules/time (time.h): Substitute the new vars.
30153         flexmember: license is now unlimited
30154         * modules/flexmember (License): Change to unlimited,
30155         since its only source file gives an unlimited license.
30157 2015-07-15  Eric Blake  <eblake@redhat.com>
30159         maint: update copyright paper procedures
30160         * config/srclist.txt: Drop outdated files.
30161         * doc/Copyright/conditions.txt: Update to latest.
30162         * doc/Copyright/assign.changes.manual: Delete.
30163         * doc/Copyright/assign.future.manual: Likewise.
30164         * doc/Copyright/assign.manual: Likewise.
30165         * doc/Copyright/assign.translation.manual: Likewise.
30166         * doc/Copyright/disclaim.changes.manual: Likewise.
30167         * doc/Copyright/disclaim.manual: Likewise.
30168         * doc/Copyright/disclaim.program: Likewise.
30170 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30172         localename: fix link error on Illumos
30173         Illumos defines __sun, but does not have getlocalename_l nor the
30174         equivalent.  This partially reverts commit 387c214.
30175         * m4/localename.m4 (gl_LOCALENAME): Check if getlocalename_l is
30176         available, as well as uselocale.
30177         * lib/localename.c [HAVE_USELOCALE && __sun]: Don't fallback to
30178         use getlocalename_l if it is not available.
30180 2015-07-07  Daiki Ueno  <ueno@gnu.org>
30182         unistr/uN-strtok-tests: avoid a trivial leak
30183         * tests/unistr/test-u-strtok.h (test_u_strtok): Untabify.  Free
30184         input and delim after the multibyte delimiter tests.
30186 2015-07-04  Paul Eggert  <eggert@cs.ucla.edu>
30188         file-has-acl, acl-permissions: fix HP-UX typos
30189         Problem reported by John David Anglin in: http://bugs.gnu.org/20979
30190         * lib/file-has-acl.c (file_has_acl):
30191         * lib/set-permissions.c (context_acl_from_mode)
30192         (context_aclv_from_mode, set_acls):
30193         Fix some obvious typos when HAVE_GETCL /* HP-UX */.
30194         They were introduced by the recent ACL changes.
30196         regex: match current GNU grep behavior
30197         These symbols have not matched GNU grep behavior for quite some time.
30198         Fix prompted by Balazs Kezes bug report at: http://bugs.gnu.org/20974
30199         * lib/regex.h (RE_SYNTAX_GREP, RE_SYNTAX_EGREP):
30200         Change to match current GNU behavior.
30201         Simplify by expressing it as differences from POSIX BREs and EREs.
30202         (RE_SYNTAX_POSIX_EGREP): No longer differs from GNU behavior.
30204 2015-07-03  Jim Meyering  <meyering@fb.com>
30206         set-permissions.c: adjust acl_from_mode's cpp guard
30207         * lib/set-permissions.c (acl_from_mode): Guard with #ifdef
30208         directives identical to those guarding the sole use.
30209         Otherwise, on some systems, we'd get a warning about
30210         the function being defined but not used.
30211         Also, filter through cppi to correct misleading indentation
30212         of cpp directives.
30214 2015-07-03  Pádraig Brady  <P@draigBrady.com>
30216         tests: restrict shells to those that support 'local'
30217         The local keyword is very widely supported and used
30218         in tests in coreutils and grep at least.  Therefore
30219         restrict to testing with shells that support it.
30220         This mainly excludes /bin/sh on Solaris.
30221         * tests/init.sh (gl_shell_test_script_): Add a test for 'local'.
30223 2015-07-03  Seiya Kawashima  <skawashima@uchicago.edu>  (tiny change)
30224         and Daiki Ueno  <ueno@gnu.org>
30226         unistr/uN-strtok: handle multibyte delimiters
30227         Previously, uN_strtok moved PTR to the next unit to the token end.
30228         When DELIM contained a multibyte character, the new position could
30229         be a middle of a multibyte character.
30230         * lib/unistr/u-strtok.h (FUNC): Place PTR at the next character
30231         after the token.
30232         * lib/unistr/u8-strtok.c (U_STRMBLEN): New macro.
30233         * lib/unistr/u16-strtok.c (U_STRMBLEN): New macro.
30234         * lib/unistr/u32-strtok.c (U_STRMBLEN): New macro.
30235         * modules/unistr/u8-strtok (Depends-on): Depend on
30236         unistr/u8-strmblen.
30237         * modules/unistr/u16-strtok (Depends-on): Depend on
30238         unistr/u16-strmblen.
30239         * modules/unistr/u32-strtok (Depends-on): Depend on
30240         unistr/u32-strmblen.
30241         * tests/unistr/test-u-strtok.h: New file.
30242         * tests/unistr/test-u8-strtok.c: New file.
30243         * tests/unistr/test-u16-strtok.c: New file.
30244         * tests/unistr/test-u32-strtok.c: New file.
30245         * modules/unistr/u8-strtok-tests: New file.
30246         * modules/unistr/u32-strtok-tests: New file.
30247         * modules/unistr/u16-strtok-tests: New file.
30249 2015-07-02  Friedrich Haubensak  <hsk@fli-leibniz.de>
30251         update-copyright: fix test failure with perl >= 5.22 (trivial)
30252         * build-aux/update-copyright: Escape a literal left curly bracket,
30253         required with perl >= 5.22
30255 2015-07-02  Daiki Ueno  <ueno@gnu.org>
30257         u{16,32}-strstr-tests: relax timeout condition
30258         On slower platforms (e.g., Solaris 10/SPARC), u{16,32}-strstr
30259         tests can take longer than 5 seconds to complete.
30260         Reported by Dagobert Michelsen in:
30261         https://lists.gnu.org/r/bug-libunistring/2015-06/msg00006.html
30262         * tests/unistr/test-u16-strstr.c (main): Increase timeout from 5
30263         seconds to 10 seconds.
30264         * tests/unistr/test-u32-strstr.c (main): Likewise.
30266 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30268         gnulib-common.m4: change the ARFLAGS default to 'cr'
30269         In some GNU/Linux distributions people started to compile 'ar'
30270         binary with --enable-deterministic-archives (binutils project).
30271         That, however, in combination with previous autotools long time
30272         working default AR{_,}FLAGS=cru causes warnings on such
30273         installations:
30274         ar: `u' modifier ignored since `D' is the default (see `U')
30275         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Set ARFLAGS='cr' if not
30276         set already.
30278 2015-07-01  Pavel Raiskup  <praiskup@redhat.com>
30280         selinux-h: avoid double free after *getfilecon()
30281         Originally reported by Ben Shelton on bug-tar:
30282         http://lists.gnu.org/r/bug-tar/2015-04/msg00009.html
30283         * lib/getfilecon.c (map_to_failure): Set the already freed '*con'
30284         pointer to NULL.  Man getfilecon(3) says that any non-NULL '*con'
30285         param should be freed by freecon(3) (regardless the return value).
30287 2015-07-01  Pavel Fedin  <p.fedin@samsung.com>
30289         fix pty related tests issues on Windows (trivial)
30290         * lib/grantpt.c (grantpt): grantpt.c seems to be never used on Windows,
30291         however it's still present in tests/ subdirectory of the final project.
30292         Therefore avoid it to pass `make check`.
30293         * tests/test-openpty.c (main): Windows has no PTYs and gnulib's openpty()
30294         will just return -ENOSYS, so avoid this non applicable test allowing
30295         the build to proceed.
30297 2015-07-01  Pádraig Brady  <P@draigBrady.com>
30299         acl: fix definition of acl_from_mode on FreeBSD
30300         This was causing basic coreutils copy operations to fail
30301         with ENOTSUP or ENOENT error messages.
30302         * lib/acl-internal.h (acl_from_mode): Only define when
30303         ! defined HAVE_ACL_FROM_TEXT.  That allows the version
30304         of acl_from_mode() defined in lib/set-permissions.c to
30305         be used on FreeBSD at least.
30306         * lib/set-permissions.c: Fix up comment spelling,
30307         and a redundant variable assignment; noticed in passing.
30309 2015-06-30  Pádraig Brady  <P@draigBrady.com>
30311         readutmp: port to FreeBSD >= 9
30312         * lib/readutmp.h: Map utmpxname() to setutxdb().
30313         With that coreutils who(1) and pinky(1) tests pass.
30315 2015-06-30  Paul Eggert  <eggert@cs.ucla.edu>
30317         mgetgroups: port to strict OS X
30318         The previous fix wasn't working, so use a bigger hammer (Bug#20923).
30319         * lib/mgetgroups.c: Ignore -Wpointer-sign diagnostics.
30320         (getgrouplist_gids) [HAVE_GETGROUPLIST]: Remove.  All uses removed.
30321         * m4/mgetgroups.m4 (gl_MGETGROUPS): Revert recent changes.
30323 2015-06-29  Paul Eggert  <eggert@cs.ucla.edu>
30325         mgetgroups: port to strict OS X
30326         * doc/glibc-functions/getgrouplist.texi (getgrouplist):
30327         Document the getgrouplist problem.
30328         * lib/mgetgroups.c (getgrouplist_gids) [HAVE_GETGROUPLIST]:
30329         New macro.
30330         (mgetgroups): Use it.
30331         * m4/mgetgroups.m4 (gl_MGETGROUPS):
30332         Check for OS X signature for getgrouplist.
30334 2015-06-29  Jim Meyering  <meyering@fb.com>
30336         linkat: fix invalid definition of LINKAT_SYMLINK_NOTSUP on OS X
30337         It started like this when building coreutils' latest on OS X,
30338         invoking ./configure with a nonempty --cache=.cache:
30340           lib/linkat.c:46:42: error: operator '||' has no right operand
30341           lib/linkat.c: In function 'rpl_linkat':
30342           lib/linkat.c:330:27: error: #if with no expression
30344         Here's linkat.c's line 46:
30346           #if !HAVE_LINKAT || LINKAT_SYMLINK_NOTSUP
30348         Here's some context:
30350           $ grep linkat_nofoll .cache
30351           gl_cv_func_linkat_nofollow=${gl_cv_func_linkat_nofollow=no}
30352           $ grep LINKAT_SYM lib/config.h
30353           #define LINKAT_SYMLINK_NOTSUP
30355         The problem is that m4/linkat.m4's gl_FUNC_LINKAT
30356         uses AC_CACHE_CHECK to set LINKAT_SYMLINK_NOTSUP,
30357         but that violates a tenet of AC_CACHE_CHECK: it must
30358         have no side effect other than setting its cache variable.
30360         What happens is that when the cache is set, we'd skip the
30361         code in that AC_CACHE_CHECK call, and leave LINKAT_SYMLINK_NOTSUP
30362         defined to whatever value it happened to have in configure's
30363         environment.  In my case, it was not defined, so this later code:
30365           AC_DEFINE_UNQUOTED([LINKAT_SYMLINK_NOTSUP], [$LINKAT_SYMLINK_NOTSUP],
30366             [Define to 1 if linkat can create hardlinks to symlinks])
30368         would emit code with an empty RHS.
30370         * m4/linkat.m4 (gl_FUNC_LINKAT): Move the setting of
30371         $LINKAT_SYMLINK_NOTSUP out of the AC_CACHE_CHECK code block.
30373 2015-06-28  Jim Meyering  <meyering@fb.com>
30375         mountlist: avoid an unused-label warning on OS X
30376         * lib/mountlist.c (read_file_system_list) [MOUNTED_GETMNTINFO]:
30377         Building on OS X, I saw a warning about the "free_then_fail" label
30378         being unused.  Give it the _GL_UNUSED_LABEL attribute.
30380         error.c: correct printf-style format: %d -> %u
30381         * lib/error.c (error_at_line): Correct __fxprintf format to use %u,
30382         rather than %d, to match the type of "line_number", unsigned int.
30384 2015-06-25  Pádraig Brady  <P@draigBrady.com>
30386         fts: avoid reading beyond the heap allocation
30387         GCC 5.1.1 with -O2 and -fsanitize=address reports
30388         a read of size 4 from a heap object of size 3 is indeed invalid,
30389         though this may be due to incorrect padding assumptions by GCC, see:
30390         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66661
30391         * lib/fts.c (fts_alloc): Increase allocation to alignof(FTSENT).
30392         * modules/fts: Depend on stdalign.
30394 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30396         savedir: avoid undefined behavior in qsort call
30397         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30398         "runtime error: null pointer passed as argument 1,
30399          which is declared to never be null"
30400         * lib/savedir.c (streamsavedir): Avoid the call with no entries.
30402 2015-06-24  Pádraig Brady  <P@draigBrady.com>
30404         userspec: avoid undefined behavior in gettext call
30405         GCC 5.1.1 -fsanitize=undefined with glibc 2.21 is returning:
30406         "runtime error: null pointer passed as argument 2,
30407          which is declared to never be null"
30408         * lib/userspec.c (parse_with_separator): Avoid passing NULL to gettext()
30410 2015-06-20  Glenn Morris  <rgm@gnu.org>
30412         gitlog-to-changelog: improve gitmerge.el commits
30413         Let the Emacs ChangeLog generation process exclude "skipped"
30414         messages from merge commits (Bug#20717).
30415         * build-aux/gitlog-to-changelog: Handle gitmerge.el skipped commits.
30417 2015-06-20  Paul Eggert  <eggert@cs.ucla.edu>
30419         wchar: fix MinGW compilation warnings
30420         This lets Texinfo compile cleanly.  See Eli Zaretskii in:
30421         http://lists.gnu.org/r/bug-gnulib/2015-06/msg00050.html
30422         * lib/wchar.in.h: Do not use special invocation convention on MinGW.
30424 2015-06-20  Daiki Ueno  <ueno@gnu.org>
30426         uniname/uniname-tests: use pristine data files
30427         For copyright and maintenance reasons, use the data files from UCD
30428         without modification.
30429         * tests/uniname/test-uninames.c (FIELDLEN): Remove.
30430         (getfield): Remove.
30431         (aliases_count): New global variable.
30432         (fill_names): Skip comments and empty lines in the input.  Don't
30433         use getfield.
30434         (fill_aliases): Likewise.
30435         (main): Change the expected command line arguments to:
30436         NAMES... ["--" ALIASES...].
30437         * tests/uniname/test-uninames.sh: Adjust to the change in
30438         test-uninames.c.
30439         * tests/uniname/UnicodeDataNames.txt: Remove.
30440         * tests/uniname/UnicodeData.txt: New file, from Unicode 8.0.0.
30441         * tests/uniname/NameAliases.txt: Use the pristine copy of the data
30442         file from Unicode 8.0.0.
30444 2015-06-19  Pádraig Brady  <P@draigBrady.com>
30446         linked-list, linkedhash-list: avoid compiler warnings
30447         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
30448         -Werror=suggest-attribute=pure (from GCC 5.1.1).
30450 2015-06-19  Daiki Ueno  <ueno@gnu.org>
30452         libunistring: bump minimum version to 0.9.6
30453         * all modules depending on updated Unicode data: Regenerate.
30454         The modules are listed by a script that does:
30455         - for each file listed by: git show --oneline --name-only 705f4efc
30456           - deduce the containing modules, based on "Files:"
30457         - deduce the modules which depend on the containing modules, based
30458           on "Depends-on:"
30460 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30462         uniname/uniname: update to Unicode 8.0.0
30463         * lib/uniname/uninames.h: Regenerate.
30464         * tests/uniname/NameAliases.txt: Update from Unicode 8.0.0.
30465         * tests/uniname/UnicodeDataNames.txt: Update from Unicode 8.0.0.
30467 2015-06-18  Daiki Ueno  <ueno@gnu.org>
30469         libunistring: update to Unicode 8.0.0
30470         * lib/gen-uni-tables.c (SIZEOF): New macro.
30471         (output_numeric): Increase the maximum number of fractions from
30472         128 to 160.  Increase the level3 value width from 7 bits to 8
30473         bits.  Use SIZEOF instead of a hard-coded integer.
30474         (output_blocks): Decrease the cut-off threshold from 0x30000 to
30475         0x28000.
30476         (fill_blocks): Increase the maximum number of blocks from 256 to
30477         384.  Use SIZEOF instead of a hard-coded integer.
30478         (get_lbp): Adjust to new characters added in Unicode 8.0.0.
30479         * lib/unictype/numeric.c (uc_numeric_value): Adjust the level3
30480         value width.
30481         * lib/unilbrk/lbrktables.c (unilbrk_table): Implement LBP21b and
30482         a new case added to LBP22.
30483         * lib/uniwidth/width.c (nonspacing_table_data): Add U+08E3,
30484         U+A69E, U+FE2E..U+FE2F, U+111CA..U+111CC, U+11300,
30485         U+115DC..U+115DD, U+1171D..U+1171F, U+11722..U+11725,
30486         U+11727..U+1172B, U+1DA00..U+1DA36, U+1DA3B..U+1DA6C, U+1DA75,
30487         U+1DA84, U+1DA9B..U+1DA9F, and U+1DAA1..U+1DAAF.
30488         * tests/uniwidth/test-uc_width2.sh: Same updates as in
30489         lib/uniwidth/width.c.
30490         * all generated files under lib/uni* and tests/uni*: Regenerate.
30492 2015-06-16  Pádraig Brady  <P@draigBrady.com>
30494         gnu-web-doc-update: add --mirror to remove stale files
30495         * build-aux/gnu-web-doc-update: Add a --mirror option to remove
30496         out of date files from the CVS server.  Since this is usually
30497         appropriate, a prompt is given when the option is not specified,
30498         along with the `cvs remove` command that would be run.
30500 2015-06-06  Paul Eggert  <eggert@cs.ucla.edu>
30502         acl-permissions: pacify -Wsuggest-attribute=const
30503         Problem reported by Masanari Iida in: http://bugs.gnu.org/20753
30504         * lib/acl-internal.h (free_permission_context):
30505         Declare with attribute const if ! (defined USE_ACL &&
30506         (HAVE_ACL_GET_FILE || defined GETACL)).
30508         fsync: document AIX misbehavior
30509         * doc/posix-functions/fsync.texi (fsync):
30510         Document failure on AIX with read-only file descriptor.
30512 2015-06-05  Jonathan Perkin  <jperkin@joyent.com>  (tiny change)
30514         stdio: Don't redefine gets when using C++
30515         * lib/stdio.in.h (gets): Disable warning on C++.
30517 2015-06-05  Paul Eggert  <eggert@cs.ucla.edu>
30519         acl-permissions: port to AIX, C89 HP-UX
30520         Problems reported by Michael Felt.
30521         * lib/file-has-acl.c (file_has_acl) [HAVE_STATACL]:
30522         * lib/get-permissions.c (get_permissions) [USE_ACL && HAVE_STATACL]:
30523         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]:
30524         * lib/set-permissions.c (set_acls) [HAVE_ACLX_GET && ACL_AIX_WIP]:
30525         Add cast for AIX, whose system calls are declared to accept
30526         char * even though the arguments are really char const *.
30527         * lib/get-permissions.c (get_permissions):
30528         If USE_ACL && HAVE_GETACL /* HP-UX */, don't assume C99.
30529         If USE_ACL && HAVE_STATACL /* older AIX */, add missing decl
30530         that broke a build.
30531         * lib/mountlist.c (read_file_system_list) [MOUNTED_VMOUNT]:
30532         Rework types to pacify xlc.
30534 2015-06-03  Pádraig Brady  <P@draigBrady.com>
30536         vasprintf-posix: avoid compiling vasnprintf where possible
30537         * modules/vasprintf-posix: Avoid compiling the large vasnprintf
30538         module where not required.  For example on a GNU/Linux system
30539         when gnulib-tool is run with the --conditional-dependencies option.
30541 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30543         file-has-acl: fix build on Mac OS X 10
30544         This reverts commit f1b37e3a which doesn't work on Mac OS X >= 10.4
30545         which has an incompatible 6 parameter getxattr() call.
30546         * doc/glibc-functions/getxattr.texi: Mention the divergent getxattr()
30547         call on Mac OS X >= 10.4.
30548         * doc/glibc-functions/fgetxattr.texi: Likewise.
30549         * lib/file-has-acl.c: Revert to more complete combined check.
30550         * m4/acl.m4 (gl_FILE_HAS_ACL): Likewise.
30551         Reported by Jack Howarth.
30553 2015-06-02  Pádraig Brady  <P@draigBrady.com>
30555         prefix-gnulib-mk: remove no longer needed special case
30556         * build-aux/prefix-gnulib-mk (prefix): Since commit e3704b9c,
30557         continued lib_SOURCES lines are no longer present,
30558         so special case handling of such entries is not required.
30560 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30562         acl: don't depend on the deprecated qacl module
30563         * modules/acl (Depends-on): Use q{copy,set}-acl instead.
30565 2015-06-01  Pádraig Brady  <P@draigBrady.com>
30567         gnulib-tool: concatenate lib_SOURCES to a single line
30568         * gnulib-tool: Refactor the line merging sed logic,
30569         and use that to output a single lib_SOURCES line for each module.
30570         gnulib using projects often postprocess this output to prepend
30571         subdir paths to each item, and having a single line simplifies this
30572         processing allowing better decoupling from the gnulib-tool output.
30574 2015-06-01  Pavel Fedin  <p.fedin@samsung.com>
30576         pthread_sigmask: discount system version if a simple macro (trivial)
30577         MinGW64 has: #define pthread_sigmask(H, S1, S2) 0
30578         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Call the
30579         function to ensure it's available.
30581 2015-05-31  Pádraig Brady  <P@draigBrady.com>
30583         readlinkat: avoid OS X 10.10 trailing slash bug
30584         * doc/posix-functions/readlink.texi: Mention that OS X 10.10
30585         has this bug.
30586         * doc/posix-functions/readlinkat.texi: Likewise.  Also mention
30587         that OS X 10.10 has this function.
30588         * lib/readlinkat.c (rpl_readlinkat): Handle the trailing slash bug,
30589         as done for readlink().
30590         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check for the readlink()
30591         trailing slash bug, and assume readlinkat() has the same issue.
30592         Also fix a typo where $gl_cv_decl_readlink_works was tested,
30593         rather than the correct $gl_cv_decl_readlinkat_works.
30595 2015-05-29  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30597         acl-permissions: Fix build on Mac OS X and older AIX (Bug#20681)
30598         * lib/set-permissions.c (set_acls): Fix more errors introduced in the acl
30599         module rewrite.
30601         acl-permissions: Fix build on Solaris and Cygwin
30602         Reported by Tom G. Christensen <tgc@jupiterrise.com>:
30603         * lib/set-permissions.c (set_acls): The count, entries, ace_count, and
30604         ace_entries variables have moved into struct permission_context but
30605         they were still accessed as local variables here.
30607 2015-05-29  Pádraig Brady  <P@draigBrady.com>
30609         linkat: avoid OS X 10.10 trailing slash with symlink bug
30610         On Darwin 14.3.0 linkat(,"path1",,"dangling_symlink/",)
30611         causes the symlink to be dereferenced, and if it points
30612         to a non existent file, that file will be created as
30613         a hard link to "path1".
30614         This fixes a test failure in test-linkat.c.
30615         * m4/linkat.m4 (gl_FUNC_LINKAT): Augment the test with
30616         this case.  The existing workaround in linkat.c for
30617         trailing slash issues, suffices for this case.
30618         * doc/posix-functions/linkat.texi: Add OS X 10.10 to
30619         the list of platforms with trailing slash issues.
30621 2015-05-28  Pádraig Brady  <P@draigBrady.com>
30623         unlinkat: handle ignoring of ".." on Darwin 14
30624         * lib/unlinkat.c: unlinkat() has the same bug as unlink()
30625         on Mac OS X 10.10, where it ignores paths with a trailing "..",
30626         so handle in the same manner.
30627         * m4/unlinkat.m4: Comment on this Darwin issue.
30628         * doc/posix-functions/unlink.texi: Update the latest version
30629         where the issue was seen.
30630         * doc/posix-functions/unlinkat.texi: Mention this issue.
30631         Fixes a test failure in test-unlinkat.c.
30633 2015-05-27  Paul Eggert  <eggert@cs.ucla.edu>
30635         qacl: split into qcopy-acl and qset-acl
30636         Emacs needs the former, but not the latter.
30637         * modules/acl-permissions: New file, containing most of the old qacl.
30638         * modules/file-has-acl (Depends-on): Depend on acl-permissions, not qacl.
30639         * modules/qacl: Now merely depends on qcopy-acl and qset-acl.
30640         * modules/qcopy-acl, modules/qset-acl: New files.
30641         * MODULES.html.sh (File system functions):
30642         Mention the new modules, and mention qacl while we're at it.
30644 2015-05-27  Glenn Morris  <rgm@gnu.org>
30646         gitlog-to-changelog: new option --ignore-line
30647         (This patch is imported from the GNU Emacs master.)
30648         This option ignores individual commit lines matching a pattern.
30649         * build-aux/gitlog-to-changelog: Add --ignore-line option.
30651 2015-05-27  Andreas Gruenbacher  <agruenba@redhat.com>
30653         qacl: Reimplement qset_acl and qcopy_acl (Bug#20666)
30654         Implement get_permissions and set_permissions primitives for getting all
30655         the permissions of a file, storing them, and later setting them. (In the
30656         minimal case, the permissions consist only of a file mode.) Reimplement
30657         qset_acl and qcopy_acl based on these new primitives: this avoids code
30658         duplication and makes error handling more consistent.
30659         The Solaris and Cygwin code still uses duplicate code paths for setting
30660         a file mode while making sure that no acls exist and setting an explicit
30661         acl; this is no worse than before, but could be cleaned up.  The AIX
30662         code still doesn't read ACLs, it only makes sure that acls don't get in
30663         the way when setting a file mode.
30664         * lib/acl-internal.h (struct permission_context): New data structure.
30665         (get_permissions, set_permissions, free_permission_context): Declare.
30666         * lib/acl-internal.c (free_permission_context): New helper function.
30667         * lib/get-permissions.c (get_permissions): New helper function split off
30668         from qcopy_acl.
30669         * lib/set-permissions.c: (set_acls_from_mode): On Solaris, Cygwin, and
30670         AIX, set a file's permissions based only on a file mode.
30671         (acl_from_mode, context_acl_from_mode, context_aclv_from_mode): All
30672         other platforms construct a temporary acl from the file mode and set
30673         that acl in the same way as setting an acl read from the source file.
30674         This should help avoid code duplication and inconsistent / buggy
30675         behavior.
30676         (set_acls): New helper function Split off from qcopy_acl.
30677         (chmod_or_fchmod): Moved here from qset-acl.c.
30678         (set_permissions): New helper function.
30679         * lib/qcopy-acl.c (qcopy_acl): Rewrite using get_permissions and
30680         set_permissions.
30681         * lib/qset-acl.c (qset_acl): Rewrite using set_permissions.
30682         * modules/qacl: Add get-permissions.c and set-permissions.c.
30684         file-has-acl: Split feature tests again (Bug#20667)
30685         * lib/file-has-acl.c: Instead of testing for
30686         XATTR_NAME_POSIX_ACL_ACCESS and XATTR_NAME_POSIX_ACL_DEFAULT,
30687         define them when needed.
30688         * m4/acl.m4 (gl_FILE_HAS_ACL): With that, Paul's
30689         GETXATTR_WITH_POSIX_ACLS change shouldn't be needed anymore.
30691 2015-05-27  Pádraig Brady  <P@draigBrady.com>
30693         string: fix build failure on BSD/OSX with FORTIFY_SOURCE
30694         This avoids a conflict with "FORTIFY_SOURCE" variants
30695         of the string functions when they're replaced on NetBSD-6.0.1
30696         and Darwin-14.3.0 at least.
30697         * lib/string.in.h: Avoid including our "lib/string.h" while
30698         including the system <string.h>.
30700 2015-05-26  Eric Blake  <eblake@redhat.com>
30702         stdio: limit __gnu_printf__ witness to gcc 4.4+
30703         * lib/error.h (_GL_ATTRIBUTE_SPEC_PRINTF): Move gcc version probe...
30704         * m4/stdio_h.m4 (gl_STDIO_H): ...here.
30706         error: use correct printf attributes on mingw
30707         * lib/stdio.in.h (_GL_ATTRIBUTE_SPEC_PRINTF): New define.
30709         inttypes: force correct mingw PRIdMAX even without <stdio.h>
30710         * modules/inttypes (Depends-on): Require extensions, so that mingw
30711         always uses GNU style inttypes.
30712         * lib/inttypes.in.h: On mingw, include <stdio.h>.
30714         stdio: fix probe on mingw under gcc 5.1
30715         * m4/stdio_h.m4 (gl_STDIO_H): Change to compile test, to work
30716         around new gcc preprocessor rules.
30718 2015-05-07  Glenn Morris  <rgm@gnu.org>
30720         gitlog-to-changelog: parse "Tiny-change"
30721         * build-aux/gitlog-to-changelog: Treat "Tiny-change" like
30722         "Copyright-paperwork-exempt".  (Bug#20324)
30724 2015-05-06  Pádraig Brady  <P@draigBrady.com>
30726         doc: document glibc posix_fallocate() issues
30727         * doc/posix-functions/posix_fallocate.texi: Mention the
30728         glibc efficiency problems and issues with NFS.
30730 2015-05-05  Karl Berry  <karl@freefriends.org>
30732         * build-aux/gendocs.sh (usage): document new css default
30733         for HTML (--htmlarg).
30735 2015-04-29  Paul Eggert  <eggert@cs.ucla.edu>
30737         extern-inline: no need for workaround in GCC 5.1
30738         * doc/extern-inline.texi (extern inline):
30739         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
30740         GCC bugs 54113 and 63877 are fixed in GCC 5.1, so don't work
30741         around these bugs in GCC 5.1 and later.  Maybe in a decade or
30742         two we can remove these workarounds.
30744 2015-04-28  Pádraig Brady  <P@draigBrady.com>
30746         eealloc, pagealign_alloc, xalloc: avoid clang warnings
30747         Avoid [-Wunknown-attributes] warnings like:
30748         warning: unknown attribute '__alloc_size__' ignored
30749         * lib/xalloc.h: Don't use the __alloc_size__  attribute
30750         with clang, as support has been fully removed as of clang 3.5:
30751         https://github.com/llvm-mirror/clang/commit/c047507a
30752         * lib/eealloc.h: Likewise.
30753         * lib/pagealign_alloc.h: Likewise.
30755 2015-04-27  Paul Eggert  <eggert@cs.ucla.edu>
30757         tests: pacify GCC 5.1's stricter printf checking
30758         * tests/test-dirname.c (main):
30759         * tests/test-getaddrinfo.c (simple):
30760         * tests/test-getlogin.c (main):
30761         * tests/test-getndelim2.c (main):
30762         * tests/test-inttostr.c (CK):
30763         * tests/test-md5.c (main):
30764         * tests/test-read-file.c (main):
30765         * tests/test-sha1.c (main):
30766         Fix mismatches between printf format and value signedness.
30767         * tests/test-inttostr.c (FMT, CAST_VAL, V_min, V_max):
30768         Remove, as CAST_VAL always returned a value of type uintmax_t.
30770         fts: port to GCC 5.1 with --enable-gcc-warnings
30771         Without this fix, GCC 5.1 (correctly) warns about a subscript
30772         error on the fts_name component of FTSENT.  It's actually a
30773         flexible member, so define it that way on C99 or later hosts.
30774         * lib/fts.c (fts_alloc): Use offsetof, not sizeof, for a
30775         structure that now has a flexible array member.
30776         * lib/fts_.h (__FLEXIBLE_ARRAY_MEMBER): New macro.
30777         (FTSENT): fts_name is now flexible on C99-or-later platforms.
30778         * modules/fts (Depends-on): Add flexmember.
30780 2015-04-26  Paul Eggert  <eggert@cs.ucla.edu>
30782         file-has-acl: port to CentOS 6
30783         Problem reported by Tom G. Christensen in:
30784         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00074.html
30785         * lib/file-has-acl.c: Use GETXATTR_WITH_POSIX_ACLS instead of a
30786         combination of HAVE_SYS_XATTR_H, HAVE_LINUX_XATTR_H, and
30787         HAVE_GETXATTR.
30788         * m4/acl.m4 (gl_FILE_HAS_ACL): Test fot the entire combination of
30789         linux/xattr.h, sys/xattr.h, getxattr, XATTR_NAME_POSIX_ACL_ACCESS,
30790         and XATTR_NAME_POSIX_ACL_DEFAULT, since that's what
30791         file-has-acl.c actually needs.
30793 2015-04-26  Pádraig Brady  <P@draigBrady.com>
30795         file-has-acl: always return false when ACLs aren't supported
30796         * lib/file-has-acl.c (file_has_acl): Consistent with other paths,
30797         change the GNU/Linux getxattr path, to transform "not supported"
30798         errors to a false return rather than an error.  This is handled
30799         within file_has_acl() due to the platform specific tests to
30800         determine if ACLs are not supported.
30802 2015-04-25  Paul Eggert  <eggert@cs.ucla.edu>
30804         gettext: propagate po/Makefile.in.in too
30805         * build-aux/po/Makefile.in.in: Copy from latest gettext.
30806         * config/srclist.txt: In build-aux/po, copy Makefile.in.in and
30807         remove-potcdate.sin from $GETTEXT.  This fixes a version mismatch
30808         between Makefile.in.in and the gettext-runtime m4 files.
30810 2015-04-24  Paul Eggert  <eggert@cs.ucla.edu>
30812         file-has-acl: new module, split from acl
30813         And add a new module file-has-acl-tests to match.
30814         I ran into a problem with the recent changes to the acl module,
30815         as they introduced a typo 'test use_xattrs = 0' into 'configure'.
30816         When using the fixed version with Emacs, I discovered that
30817         file-has-acl wasn't separated out well enough for Emacs (e.g., it
30818         had multiple libraries, but needed only one), so I fixed that too.
30819         * NEWS: Document this incompatible change.
30820         * modules/file-has-acl, modules/file-has-acl-tests: New files.
30821         * m4/acl.m4 (gl_FUNC_ACL_ARG): New macro, split from gl_FUNC_ACL.
30822         Initialize gl_need_lib_has_acl.
30823         (gl_FUNC_ACL): Require it.
30824         Simplify use of 'test'.  Set LIB_HAS_ACL if gl_need_lib_has_acl.
30825         Move the file-has-acl.c-relevant stuff to ...
30826         (gl_FILE_HAS_ACL): ... this new macro.  Rewrite to fix 'test
30827         use_xattrs = 0' typo, and omit some needless work.  Set
30828         gl_need_lib_has_acl=1 if we'll need LIB_HAS_ACL to be set
30829         when gl_FUNC_ACL is called.
30830         * modules/acl (Files, lib_SOURCES): Remove lib/file-has-acl.c.
30831         (Link): Remove $(LIB_HAS_ACL).
30832         * modules/acl-tests (Files, Depends-on, configure.ac, TESTS)
30833         (check_PROGRAMS): Move stuff relevant to file-has-acl to
30834         modules/file-has-acl-tests.
30835         (test_file_has_acl_LDADD): Move to modules/file-has-acl-tests.
30837         manywarnings: add GCC 5.1 warnings
30838         * build-aux/gcc-warning.spec: Add -Wabi=, -Warray-bounds,
30839         -Warray-bounds=, -Wc++14-compat, -Wc90-c99-compat,
30840         -Wc99-c11-compat, -Wshadow-ivar, -Wsized-deallocation,
30841         -Wsuggest-override, -Wuse-without-only.  Change
30842         -Wnormalized=... operands to match 5.1.
30843         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wbool-compare,
30844         -Wchkp, -Wdesignated-init, -Wdiscarded-array-qualifiers,
30845         -Wdiscarded-qualifiers, -Wformat-signedness,
30846         -Wincompatible-pointer-types, -Wint-conversion,
30847         -Wlogical-not-parentheses, -Wmemset-transposed-args, -Wodr,
30848         -Wshift-count-negative, -Wshift-count-overflow,
30849         -Wsizeof-array-argument, -Wsuggest-final-methods,
30850         -Wsuggest-final-types, -Wswitch-bool.  Remove -Warray-bounds,
30851         and add -Warray-bounds=2 as a special case.
30853 2015-04-21  Simon Josefsson  <simon@josefsson.org>
30855         doc: update FDL template to match FDL examples.
30856         * doc/alloca-opt.texi:
30857         * doc/alloca.texi:
30858         * doc/c-ctype.texi:
30859         * doc/c-strcase.texi:
30860         * doc/c-strcaseeq.texi:
30861         * doc/c-strcasestr.texi:
30862         * doc/c-strstr.texi:
30863         * doc/c-strtod.texi:
30864         * doc/c-strtold.texi:
30865         * doc/ctime.texi:
30866         * doc/error.texi:
30867         * doc/gcd.texi:
30868         * doc/gnulib-tool.texi:
30869         * doc/inet_ntoa.texi:
30870         * doc/intprops.texi:
30871         * doc/lib-symbol-visibility.texi:
30872         * doc/maintain.texi:
30873         * doc/parse-datetime.texi:
30874         * doc/quote.texi:
30875         * doc/regexprops-generic.texi:
30876         * doc/standards.texi: Remove spurious 'with' in FDL license
30877         template.
30879 2015-04-21  Paul Eggert  <eggert@cs.ucla.edu>
30881         lstat: fix cross-compilation 'ln -s' problem
30882         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
30883         Have the test program call 'symlink' rather than a separate
30884         script run 'ln -s'; this is more likely to work in
30885         cross-compilation environments.  Reported by Pavel Fedin in:
30886         http://lists.gnu.org/r/bug-gnulib/2015-04/msg00060.html
30888 2015-04-16  Ludovic Courtès  <ludo@gnu.org>
30890         gendocs.sh: default to a common CSS style sheet for HTML output
30891         * build-aux/gendocs.sh (htmlarg): Change default value.
30893 2015-04-15  Mats Erik Andersson  <gnu@gisladisker.se>
30895         gnulib-tool: output bold attribute more portably
30896         * gnulib-tool (func_show_module_list): Change hexadecimal
30897         numbers to octal in BOLD_ON and BOLD_OFF.  The use of hex
30898         encoded numbers as arguments to `printf' is not portable,
30899         and is not claimed by POSIX.  This is the case with FreeBSD.
30901 2015-04-15  Andreas Gruenbacher  <andreas.gruenbacher@gmail.com>
30903         qacl: Simplify HP-UX acl_nontrivial check
30904         * lib/acl-internal.c: Remove struct stat parameter from HP-UX's version of
30905         acl_nontrivial. Check if the acl has at most three entries instead (it must
30906         have exactly three entries according to the HP-UX documentation). Ignore
30907         uids and gids as long as an entry is either for a user (i.e., the owner),
30908         a group (i.e., the owning group), or others.
30909         * lib/acl-internal.h: Change HP-UX's acl_nontrivial prototype.
30910         * lib/qcopy-acl.c (qcopy_acl): With that, we no longer need to stat the file.
30912 2015-04-15  Andreas Gruenbacher   <andreas.gruenbacher@gmail.com>
30914         acl: On Linux, check for acls without libacl
30915         On Linux, use the getxattr syscall instead of the acl_extended_file libacl
30916         library function to check for the presence of acls, avoiding a library.
30917         * lib/file-has-acl.c: Include xattr headers if we have them.
30918         (file_has_acl): On Linux, use getxattr().
30919         * m4/acl.m4 (gl_FUNC_ACL): Define LIB_HAS_ACL as the libraries to link with for
30920         file_has_acl(). Check for xattr headers and getxattr().
30922 2015-04-14  Ángel González  <keisial@gmail.com>
30924         tempname: avoid unused parameter warnings (trivial)
30925         * lib/tempname.c (try_dir): Tag with __GL_UNUSED.
30926         (try_nocreate): Likewise.
30928 2015-04-14  HIRAMATSU Yoshifumi  <hiramatu@boreas.dti.ne.jp>
30930         fseeko: fix build failure on NetBSD >= 6 (trivial)
30931         * lib/fseeko.c (feeko): NetBSD 6 changed the definition of _offset
30932         from 'fpos_t struct' to __off_t, which is a typedef of __int64_t.
30934 2015-04-09  Paul Eggert  <eggert@cs.ucla.edu>
30936         gitlog-to-changelog: port to MS-Windows
30937         * build-aux/gitlog-to-changelog (git_dir_option):
30938         Use strftime with "%Y-%m-%d", not "%F", to avoid a bug in
30939         MS-Windows Perl.  Reported by Eli Zaretskii in:
30940         http://lists.gnu.org/r/emacs-devel/2015-04/msg00504.html
30942 2015-04-07  Karl Berry  <karl@gnu.org>
30944         gendocs: new option --tex for passing args to texi2dvi.
30945         * build-aux/gendocs.sh: new option --tex, default -t @finalout.
30946         (TEXI2DVI): cut to just command name.
30947         (usage): mention new option, and update copyright.
30948         <generate_tex>: use it.
30950 2015-04-07  Karl Berry  <karl@gnu.org>
30952         * config/srclistvars.sh (GETTEXT): new definition.
30953         * config/srclist.txt: use it for gettext .m4 files.
30954         Thread starting at http://lists.gnu.org/r/bug-gnulib/201
30955         and confirmed at http://lists.gnu.org/r/bug-gnulib/2015-02/msg00146.html
30956         and continuing into April.
30958 2015-04-07  Daiki Ueno  <ueno@gnu.org>
30960         uniname/uniname-tests: fix failure due to alias
30961         Reported by Jack Howarth in:
30962         <https://lists.gnu.org/r/bug-libunistring/2015-04/msg00000.html>.
30963         * tests/uniname/test-uninames.c (name_has_alias): New function.
30964         (test_inverse_lookup): Exclude character name with valid alias,
30965         from randomly generated character names.
30966         (main): Fill unicode_aliases before calling test functions.
30968 2015-04-03  Giuseppe Scrivano  <gscrivan@redhat.com>
30970         hash: remove deprecated hash_insert0 function
30971         * lib/hash.h (hash_insert0): Remove deprecated function.
30972         * lib/hash.c (hash_insert0): Likewise.
30974 2015-04-02  Pádraig Brady  <P@draigBrady.com>
30976         mountlist: remove dependency on libmount
30977         * lib/mountlist.c (read_file_system_list): Parse /proc/self/mountinfo
30978         directly, rather than depending on libmount, which has many
30979         dependencies due to its dependence on libselinux, as detailed at:
30980         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00063.html
30981         Note we restrict this to __linux__ as that's probably where this
30982         interface will remain.  If ever porting, it would be best
30983         to first pull the makedev() wrapper from coreutils to a gnulib module.
30984         Note also we don't add a getline dependency to the mountlist module,
30985         as all Linux versions are sufficient.
30987 2015-04-02  Paul Eggert  <eggert@cs.ucla.edu>
30989         stddef: port to pre-C11 GCC on x86
30990         On this platform, max_align_t should have an alignment of 8 even
30991         though the storage alignments of double, long, etc. max out at 4.
30992         Inspired by a comment of Andreas Schwab's here:
30993         https://sourceware.org/ml/libc-alpha/2015-04/msg00017.html
30994         * lib/stddef.in.h (_GL_STDDEF_ALIGNAS) [!HAVE_MAX_ALIGN_T]: New macro.
30995         (max_align_t) [!HAVE_MAX_ALIGN_T]: Use it.
30996         * tests/test-stddef.c: Test __alignof__ too, if available.
30998 2015-03-24  Pádraig Brady  <P@draigBrady.com>
31000         quotearg-simple-tests: add missing gl_FUNC_MMAP_ANON dependency
31001         * modules/quotearg-simple-tests: Reference m4/mmap-anon.m4
31003 2015-03-24  Tobias Stoeckmann  <tobias@stoeckmann.org>
31005         yesno: make EOL optional in ENABLE_NLS case also (trival)
31006         * lib/yesno.c (yesno): Check for EOL before replacing.
31007         * tests/test-yesno.sh: Add a test case (test along with gettext).
31009 2015-03-22  Paul Eggert  <eggert@cs.ucla.edu>
31011         fdopendir-tests: test it does not close its arg
31012         * tests/test-fdopendir.c (main): Test that fdopendir does not
31013         close its argument.  From a suggestion by David Grayson in:
31014         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00039.html
31016 2015-03-20  Paul Eggert  <eggert@cs.ucla.edu>
31018         gitlog-to-changelog: trim trailing white space
31019         * build-aux/gitlog-to-changelog (main):
31020         Trim trailing white space from commit message lines.
31021         This is helpful for processing the GNU Emacs repository,
31022         which dates back to 1985 and contains a lot of such lines.
31024         gitlog-to-changelog: new option --ignore-matching
31025         * build-aux/gitlog-to-changelog (usage, git_dir_option, main):
31026         Support new option --ignore-matching=PAT, which ignores all
31027         commit messages whose first line matches PAT.
31029 2015-03-19  Paul Eggert  <eggert@cs.ucla.edu>
31031         fdopendir: port better to MinGW
31032         * lib/fdopendir.c (fd_clone_opendir) [REPLACE_FCHDIR]:
31033         Use 'dup' if dirfd fails.  Suggested by Eli Zaretskii in:
31034         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00033.html
31035         * modules/fdopendir (Depends-on): Add dirfd.
31037 2015-03-18  Paul Eggert  <eggert@cs.ucla.edu>
31039         fdopendir: fix typo in comment
31040         * lib/fdopendir.c (fdopendir_with_dup): REPLACE_FCHDIR was misspelled.
31042 2015-03-09  Eric Blake  <eblake@redhat.com>
31044         error: document all entry points provided
31045         * doc/glibc-functions/error_print_progname.texi
31046         (error_print_progname): Mention the error module.
31047         * doc/glibc-functions/error_at_line.texi (error_at_line):
31048         Likewise.
31049         * doc/glibc-functions/error_message_count.texi
31050         (error_message_count): Likewise.
31051         * doc/glibc-functions/error_one_per_line.texi
31052         (error_one_per_line): Likewise.
31054 2015-03-03  Paul Eggert  <eggert@cs.ucla.edu>
31056         vasnprintf: pacify clang 3.5.0
31057         Problem reported by Werner Lemberg in:
31058         http://lists.gnu.org/r/bug-gnulib/2015-03/msg00000.html
31059         * lib/vasnprintf.c (VASNPRINTF): Omit casts that clang objects to.
31060         The casts aren't needed, since the characters in question are ASCII.
31062 2015-02-24  Paul Eggert  <eggert@cs.ucla.edu>
31064         glob, etc.: port to MSVC v18 on MS-Windows 8.1
31065         * lib/dirent--.h (GNULIB_defined_opendir):
31066         * lib/dirent.in.h (GNULIB_defined_opendir)
31067         (GNULIB_defined_closedir):
31068         * lib/getcwd.c, lib/glob.c, lib/mountlist.c (opendir, closedir):
31069         #undef only if Gnulib defined it.
31071         poll: port to MSVC v18 on MS-Windows 8.1
31072         Problem reported by Gisle Vanem in:
31073         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00139.html
31074         * lib/poll.c: Always include <sys/select.h> and <sys/socket.h>.
31075         * modules/poll (Depends-on) [!HAVE_POLL || REPLACE_POLL]:
31076         Add sys_socket.
31078 2015-02-24  Pádraig Brady  <P@draigBrady.com>
31080         tests: support stderr verification with returns_()
31081         * tests/init.sh (returns_): Disable tracing for this wrapper
31082         function, so that stderr of the wrapped command is unchanged,
31083         allowing for verification of the contents.
31085 2015-02-24  Pavel Hrdina  <phrdina@redhat.com>
31087         passfd: avoid valgrind uninitalised data warning
31088         * lib/passfd.c (sendfd): Reset the msg_controllen of msghdr,
31089         to include just the fd we've initialized, rather than including
31090         the extra space used for alignment.
31092 2015-02-23  Paul Eggert  <eggert@cs.ucla.edu>
31094         uniwbrk/u32-wordbreaks-tests: fix copyright
31095         * tests/uniwbrk/test-uc-wordbreaks.c: Fix copyright date.
31097         dup2: doc and test for Android bug
31098         Reported by Kevin Cernekee in:
31099         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00125.html
31100         * doc/posix-functions/dup2.texi (dup2): Document the bug.
31101         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the bug.
31103 2015-02-23  Kevin Cernekee  <cernekee@google.com>
31105         Replace dup2() on Android
31106         * m4/dup2.m4 (gl_FUNC_DUP2): Android implements dup2() using dup3().
31107         Since dup3(fd, fd) fails but dup2(fd, fd) should pass, test-dup2
31108         fails.  Using rpl_dup2() fixes this because it has an explicit test
31109         for this condition.
31111 2015-02-22  Paul Eggert  <eggert@cs.ucla.edu>
31113         Android doesn't define RLIM_SAVED_*
31114         Portability problem reported by Kevin Cernekee in:
31115         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00122.html
31116         * doc/posix-headers/sys_resource.texi (sys/resource.h):
31117         Mention the portability problem.
31118         * lib/getdtablesize.c (RLIM_SAVED_CUR, RLIM_SAVED_MAX):
31119         Define if not defined.
31120         * m4/dup2.m4 (gl_FUNC_DUP2):
31121         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31122         Likewise.
31124 2015-02-21  Paul Eggert  <eggert@cs.ucla.edu>
31126         vasnprintf-posix-tests: use consistent test
31127         * tests/test-vasnprintf-posix.c (test_function):
31128         Use "<" in assert instead of "<=", for consistency with other tests.
31130 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31132         printf, isinf, etc.: noncanonical != NaN
31133         Do not require that isinf, printf, etc. treat noncanonical
31134         values as NaNs.  Instead, require only that they do not crash.
31135         Problem reported by Joseph Myers in:
31136         https://sourceware.org/ml/libc-alpha/2015-02/msg00244.html
31137         * doc/posix-functions/dprintf.texi (dprintf):
31138         * doc/posix-functions/fprintf.texi (fprintf):
31139         * doc/posix-functions/isfinite.texi (isfinite):
31140         * doc/posix-functions/isinf.texi (isinf):
31141         * doc/posix-functions/isnan.texi (isnan):
31142         * doc/posix-functions/printf.texi (printf):
31143         * doc/posix-functions/snprintf.texi (snprintf):
31144         * doc/posix-functions/sprintf.texi (sprintf):
31145         * doc/posix-functions/vdprintf.texi (vdprintf):
31146         * doc/posix-functions/vfprintf.texi (vfprintf):
31147         * doc/posix-functions/vprintf.texi (vprintf):
31148         * doc/posix-functions/vsnprintf.texi (vsnprintf):
31149         * doc/posix-functions/vsprintf.texi (vsprintf):
31150         Document this.
31151         * m4/isfinite.m4 (gl_ISFINITEL_WORKS):
31152         * m4/isinf.m4 (gl_ISINFL_WORKS):
31153         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS):
31154         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE):
31155         * tests/test-isfinite.c (test_isfinitel):
31156         * tests/test-isinf.c (test_isinfl):
31157         * tests/test-isnan.c (test_long_double):
31158         * tests/test-isnanl.h (main):
31159         * tests/test-snprintf-posix.h (test_function):
31160         * tests/test-sprintf-posix.h (test_function):
31161         * tests/test-vasnprintf-posix.c (test_function):
31162         * tests/test-vasprintf-posix.c (test_function):
31163         Test only that noncanonical values do not cause crashes, not that
31164         they are treated as NaNs.  In some cases this means a larger
31165         output buffer is needed.
31167 2015-02-20  Jaroslav Skarvada  <jskarvad@redhat.com>
31169         fts: remove redundant close() (trivial)
31170         * lib/fts.c (fts_read): Remove redundant call to close().
31171         Spotted by coverity.
31173 2015-02-20  Paul Eggert  <eggert@cs.ucla.edu>
31175         getdtablesize: port better for Android
31176         Problem reported by Kevin Cernekee in:
31177         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00112.html
31178         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Mention bug.
31179         * lib/getdtablesize.c (getdtablesize): Don't fall back on _SC_OPEN_MAX.
31180         Instead, just use getrlimit, taking care to avoid Cygwin bug.
31182         poll: fixes for large fds
31183         * lib/poll.c (poll): Don't check directly for NFD too large.
31184         Don't rely on undefined behavior in FD_SET when an arg exceeds
31185         FD_SETSIZE.  Always set revents afterwards, even if to zero.
31186         * tests/test-poll.c (poll1): Set revents to -1 instead of 0,
31187         as that makes the test a bit stricter.
31189 2015-02-19  Kevin Cernekee  <cernekee@google.com>
31191         fcntl: Fix cross compiling
31192         * m4/fcntl.m4 (gl_FUNC_FCNTL): Assign the guessed result to the
31193         correct variable name (gl_cv_func_fcntl_f_dupfd_works).
31195 2015-02-18  Paul Eggert  <eggert@cs.ucla.edu>
31197         dup2, fcntl: cross-compile better for Android
31198         Problem reported by Kevin Cernekee in:
31199         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00109.html
31200         * m4/dup2.m4 (gl_FUNC_DUP2): Don't guess no when cross-compiling
31201         for a Linux kernel.  That kernel bug was fixed on 2009-05-11, and
31202         there's little need to cross-compile for older kernels nowadays.
31203         * m4/fcntl.m4 (gl_FUNC_FCNTL): When cross-compiling, guess no only
31204         for systems where the bug is known to occur (AIX, Cygwin, Haiku).
31206 2015-02-18  Pádraig Brady  <P@draigBrady.com>
31208         getopt: don't crash on memory exhaustion
31209         * lib/getopt.c (_getopt_internal_r): Use degraded diagnostics on
31210         memory exhaustion.  In the _LIBC case we use alloca() as is
31211         already done in glibc, so we don't need to consider the separate
31212         error path in that awkward case.  Also fix a memory leak when
31213         ambiguous options are present.
31214         Reported by Tobias Stoeckmann
31216 2015-02-17  Mike Miller  <mtmiller@ieee.org>
31218         tempname: allow compilation with C++ (trivial)
31219         * lib/tempname.h [C++]: Specify extern "C" linkage.
31220         * lib/tempname.h (try_tempname):
31221         * lib/tempname.c (__try_tempname, __gen_tempname):
31222         Rename 'try' to 'tryfunc'.
31224 2015-02-17  Paul Eggert  <eggert@cs.ucla.edu>
31226         dup2, fcntl: port to AIX
31227         * m4/dup2.m4 (gl_FUNC_DUP2):
31228         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31229         Prefer getrusage (RLIM_NOFILE ...)/rlim_cur to sysconf (_SC_OPEN_MAX).
31230         The former works on AIX 7.1 but the latter does not.
31231         Also, this may work better with Android; see:
31232         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00100.html
31234 2015-02-16  Paul Eggert  <eggert@cs.ucla.edu>
31236         getdtablesize, dup2, fcntl: port to Android
31237         Problem reported by Kevin Cernekee in:
31238         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00092.html
31239         * doc/glibc-functions/getdtablesize.texi (getdtablesize):
31240         Mention that getdtablesize doesn't work on Android.
31241         * lib/getdtablesize.c: Use getrlimit substitute only if
31242         getdtablesize is declared.  This should suffice for Cygwin
31243         while not breaking Android.
31244         * m4/dup2.m4 (gl_FUNC_DUP2):
31245         * m4/fcntl.m4 (gl_FUNC_FCNTL):
31246         Prefer sysconf (_SC_OPEN_MAX) to getdtablesize, as the former is
31247         standardized but the latter is not, and sysconf works on Android.
31248         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE):
31249         Also check that getdtablesize is declared.
31250         This removes the need for a special case for Android.
31252 2015-02-16  Kevin Cernekee  <cernekee@google.com>
31254         localename: Implement gl_locale_name_thread_unsafe for Android
31255         * lib/localename.c: Android API level >= 21 supports two hardcoded
31256         locales: C (POSIX) and C.UTF-8.  Distinguish them by checking
31257         the internal __locale_t struct.
31259 2015-02-16  Kamil Dudka  <kdudka@redhat.com>
31261         fts: avoid crash when a cycle is added while traversing
31262         This could be triggered by auto-mounting a recursive bind mount.
31263         Reported by Michael Chapman in: https://bugzilla.redhat.com/1188498
31264         * lib/fts.c (fts_read): Avoid removing the original hash table item
31265         when leaving a directory that caused a cycle, and preserve the FTS_DC
31266         flag.
31268 2015-02-16  Daiki Ueno  <ueno@gnu.org>
31270         uniname/uniname: support character alias
31271         * lib/uniname/gen-uninames.lisp (main): New argument ALIASFILE.
31272         Generate one-way mapping from aliases to codepoints in the
31273         generated tables.  Special case variation selectors to reduce
31274         table size.
31275         * lib/uniname/uniname.c (unicode_character_name): Special case
31276         variation selectors.
31277         (unicode_name_character): Special case variation selectors and
31278         their aliases.
31279         * lib/uniname/uninames.h: Regenerate.
31280         * tests/uniname/NameAliases.txt: New file, taken from UCD 7.0.0.
31281         * modules/uniname/uniname-tests (Files): Add
31282         tests/uniname/NameAliases.txt.
31283         * tests/uniname/test-uninames.c: Mark as static.
31284         (ALIASLEN): Define.
31285         (struct unicode_alias): New struct.
31286         (unicode_aliases): New variable.
31287         (fill_aliases): New function.
31288         (test_alias_lookup): New test function.
31289         (main): Run the 'test_alias_lookup' test if the second argument is
31290         given.
31291         * tests/uniname/test-uninames.sh: Supply NameAliases.txt as the
31292         second argument.
31294 2015-02-11  Kevin Cernekee  <cernekee@google.com>
31296         Fix FILE struct compatibility with Android API level >= 21
31297         * lib/stdio-impl.h: Test explicitly for __ANDROID__ instead of
31298         __sferror.  Recent versions of Bionic's stdio.h no longer define
31299         __sferror.
31300         * lib/fbufmode.c: Likewise.
31301         * lib/fflush.c: Likewise.
31302         * lib/fpurge.c: Likewise.
31303         * lib/freadable.c: Likewise.
31304         * lib/freadahead.c: Likewise.
31305         * lib/freading.c: Likewise.
31306         * lib/freadptr.c: Likewise.
31307         * lib/freadseek.c: Likewise.
31308         * lib/fseeko.c: Likewise.
31309         * lib/fseterr.c: Likewise.
31310         * lib/fwritable.c: Likewise.
31312         Assume unbroken ungetc() on Android
31313         * m4/ungetc.m4: Add Android case to host OS check.  The ungetc()
31314         test case passed when running on an Android host, and the code
31315         hasn't really changed since 2009.
31317         getdtablesize: Fix Android build
31318         * m4/getdtablesize.m4: Add Android case to host OS check.  Recent NDK
31319         versions have this symbol in the .so library (at least 32-bit
31320         platforms) but are missing the declaration in the header file,
31321         causing the m4 logic to guess incorrectly.
31323         localename: Fix Android build
31324         * modules/localename (Depends-on): Add langinfo.
31326         getugroups: Fix Android build
31327         * lib/getugroups.c: Don't reference unsupported {get,set,end}grent
31328         functions.
31330         euidaccess: Fix Android build
31331         * modules/euidaccess (Depends-on): Add fcntl-h to ensure that
31332         AT_EACCESS gets declared.
31334         linkat_nofollow: Add fallback case for cross compiling
31335         * m4/linkat.m4: Guess no for Darwin, yes otherwise.
31337         net_if: Handle content-free <net/if.h> system headers
31338         * m4/net_if_h.m4: Check to make sure <net/if.h> actually defines
31339         struct if_nameindex.  If not, enable the replacement header.
31341         signal_h: Fix Android build
31342         * lib/signal.in.h: Add Android to the list of platforms that declare
31343         pthread_sigmask() in <pthread.h> instead of <signal.h>.
31345         duplocale: Fix Android build of duplocale-tests
31346         * modules/duplocale-tests (Depends-on): Add langinfo, as the header
31347         is included by test-duplocale.c (but not by duplocale.c).
31348         * modules/duplocale-tests (configure.ac): Check for monetary.h.
31349         * tests/test-duplocale.c: Skip test if monetary.h is absent.
31350         * doc/posix-headers/monetary.texi: Add Android to the list of
31351         platforms missing monetary.h.
31353 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31355         tests: avoid recent -Werror=unused-variable regression in test-locale
31356         * tests/test-locale.c (main): Reference the variable to avoid the
31357         "unused variable" warning.
31359 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31361         maint: various whitespace cleanups in tempname
31362         * lib/tempname.c: Normalize spacing and line length.
31363         * lib/tempname.h: Likewise.
31364         * modules/tempname: Likewise.
31366 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31368         tests: provide returns_() to simplify exit status checking
31369         * tests/init.sh (returns_): A new function for use in tests,
31370         to allow for easier checking of return values, where you expect
31371         a command to exit with failure status.  By checking for a particular
31372         exit code, you don't hide any crashes for example.
31374 2015-02-11  Pádraig Brady  <P@draigBrady.com>
31376         mountlist: only use libmount when specified
31377         There are currently many shared libs dependencies introduced by
31378         libmount with associated runtime and virt mem overhead.
31379         Therefore don't enable by default.
31380         * m4/ls-mntd-fs.m4: Use --with-libmount to enable at build time.
31382 2015-02-08  Daiki Ueno  <ueno@gnu.org>
31384         uniname/unimame-tests: don't link with -lunistring
31385         * modules/uniname/uniname-tests (Makefile.am): Don't link against
31386         $(LIBUNISTRING).  Document the rationale why we need to
31387         conditionalize the test.
31389 2015-02-07  Paul Eggert  <eggert@cs.ucla.edu>
31391         fstrcmp: don't assume strlen < INT_MAX
31392         * lib/fstrcmp.c: Include stddef.h and stdint.h.
31393         (uintptr_t): Remove, as we're now assuming stdint.
31394         (OFFSET, EXTRA_CONTEXT_FIELDS, fstrcmp_bounded):
31395         Prefer ptrdiff_t to int when the value could exceed INT_MAX
31396         if the input string is long.
31397         (fstrcmp_bounded): Check for size-calculation overflow.  Prefer
31398         uintptr_t to size_t when the underlying value is a pointer casted
31399         to an unsigned integer.  Avoid unnecessary 'buffer != NULL' test.
31400         * modules/fstrcmp (Depends-on): Add stdint.
31402         diffseq: prefer ptrdiff_t to ssize_t
31403         * lib/diffseq.h: In commentary, prefer ptrdiff_t to ssize_t.
31404         ptrdiff_t is the natural type for signed indexes.
31405         On a few older platforms, ssize_t is narrower than size_t.
31407         xalloc: fix typo that suppressed warnings
31408         * lib/xalloc.h: Add missing _GL_INLINE_HEADER_END.
31409         This typo, introduced a couple of years ago, mistakenly suppressed
31410         some -Wsuggest-attribute=const, -Wmissing-prototypes, and
31411         -Wmissing-declarations warnings.
31413         full-read: fix license notice typo
31414         * lib/full-read.h: Remove a stray line in the license notice.
31415         Reported by Sam Ellis in: http://bugs.gnu.org/19808
31417         crypto/gc: fix a -Wswitch warning
31418         Reported by Bruce Korb in:
31419         http://lists.gnu.org/r/bug-gnulib/2015-02/msg00046.html
31420         * lib/gc-gnulib.c (gc_hash_open): Fail faster if MODE is nonzero.
31422 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31424         gnulib-tool: fix handling of patch(1) diagnostics
31425         * gnulib-tool: Send diagnostics from patch(1) to stderr,
31426         as otherwise gnulib-tool will reparse that output and attempt
31427         to lookup modules.
31429 2015-02-03  Pádraig Brady  <P@draigBrady.com>
31431         bootstrap: exit immediately upon gnulib-tool failure
31432         * build-aux/bootstrap: Exit immediately if gnulib-tool fails.
31433         This was noticed when gnulib-tool exited early due to failure
31434         to apply a patch in coreutils at http://hydra.nixos.org/eval/1172233,
31435         but various confusing errors were then given as the build proceeded.
31437 2015-02-02  Andreas Gruenbacher  <agruen@gnu.org>
31439         symlinkat: include all required header files
31440         * lib/symlinkat.c (HAVE_SYMLINK_AT): Add <sys/stat.h> for fstatat(),
31441         and string.h for strlen(), required at least on OS X 10.10 (Yosemite).
31442         Reported at https://savannah.gnu.org/bugs/index.php?44151
31443         and by Jack Howarth.
31445 2015-01-29  Pádraig Brady  <P@draigBrady.com>
31447         localename: support Solaris 12 and illumos
31448         * lib/localename.c (gl_locale_name_thread_unsafe): call
31449         getlocalename_l() on newer __sun platforms.
31450         Reported by Alexander Pyhalov.
31451         Fix suggested by Rich Burridge.
31453 2015-01-29  Alexander Pyhalov  <alp@rsu.ru>
31455         locale: fix tests on illumos (trivial)
31456         * tests/test-locale.c: LC_GLOBAL_LOCALE is a function call on illumos,
31457         so move from global scope to main().
31459 2015-01-24  Daiki Ueno  <ueno@gnu.org>
31461         unictype: avoid undefined left-shift behavior
31462         * lib/unictype/bidi_of.c (uc_bidi_class): Building libunistring with
31463         gcc's -fsanitize=shift and running its tests triggered:
31464           unictype/bidi_of.c:43:60: runtime error: left shift of 40167 by 16 \
31465             places cannot be represented in type 'int'
31466         Cast LHS to 'unsigned int' after integer promotion.
31467         * lib/unictype/categ_of.c (lookup_withtable): Likewise.
31468         * lib/unictype/joininggroup_of.c (uc_joining_group): Likewise.
31470 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31472         libunistring: bump version of unitypes dependants
31473         Due to the header file search order, all the headers which depend
31474         on unitypes.h need to be generated, when the preinstalled
31475         libunistring is older.
31476         * modules/unicase/base (configure.ac): Bump minimum version to
31477         0.9.4.
31478         * modules/uniconv/base (configure.ac): Likewise.
31479         * modules/unilbrk/base (configure.ac): Likewise.
31480         * modules/uninorm/base (configure.ac): Likewise.
31481         * modules/unistdio/base (configure.ac): Likewise.
31482         * modules/unistr/base (configure.ac): Likewise.
31483         * modules/uniwbrk/base (configure.ac): Likewise.
31484         * modules/uniwidth/base (configure.ac): Likewise.
31486 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31488         unictype/category-none: fix link with libunistring
31489         Since _UC_CATEGORY_NONE is not a public symbol, it will be
31490         prefixed with "libstring_" when compiled as part of libunistring.
31491         To avoid undefined symbol at link time, increase the minimum
31492         version when the dependant modules are updated.
31493         * modules/unictype/category-none (configure.ac): Bump minimum
31494         version to 0.9.5.
31496 2015-01-20  Daiki Ueno  <ueno@gnu.org>
31498         unitypes: fix build with installed libunistring
31499         The minimum version has not bumped after _UC_ATTRIBUTE_CONST and
31500         _UC_ATTRIBUTE_PURE were added to unitypes.in.h.
31501         * modules/unitypes (configure.ac): Bump minimum version to 0.9.4.
31503 2015-01-15  Paul Eggert  <eggert@cs.ucla.edu>
31505         time: port to MinGW32 3.21
31506         Problem reported by Eli Zaretskii in:
31507         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00042.html
31508         * lib/time.in.h:
31509         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC):
31510         * modules/time (Depends-on):
31511         Fall back on unistd.h if the other include files don't define
31512         struct timespec.
31514         update-copyright: apply to self
31515         * build-aux/update-copyright: Fix copyright date.  How ironic!
31517 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31519         libunistring: update to Unicode 7.0.0
31520         * lib/unictype/joininggroup_byname.gperf: Add Straight Waw and
31521         Manichaean names.
31522         * lib/unictype/joininggroup_name.h: Likewise.
31523         * lib/unictype.in.h (UC_JOINING_GROUP_STRAIGHT_WAW)
31524         (UC_JOINING_GROUP_MANICHAEAN_ALEPH): New enumeration values.
31525         * lib/gen-uni-tables.c (UC_JOINING_GROUP_STRAIGHT_WAW)
31526         (UC_JOINING_GROUP_MANICHAEAN_*): New enumeration values.
31527         (fill_arabicshaping, joining_group_as_c_identifier): Support those
31528         enum values.
31529         (is_property_alphabetic): Accept newly added characters to
31530         cuneiform numeric signs.
31531         (is_property_default_ignorable_code_point): Reject U+0605.
31532         (FIELDLEN): Increase from 120 to 160.
31533         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0605,
31534         U+08FF, U+0C00, U+0C81, U+0D01, U+1AB0..U+1ABE, U+1BAC..U+1BAD,
31535         U+1CF8..U+1CF9, U+1DE7..U+1DF5, U+A9E5, U+AA7C, U+FE27..U+FE2D,
31536         U+102E0, U+10376..U+1037A, U+10AE5..U+10AE6, U+1107F, U+11173,
31537         U+1122F..U+11231, U+11234, U+11236..U+11237, U+112DF,
31538         U+112E3..U+112EA, U+11301, U+1133C, U+11340, U+11366..U+1136C,
31539         U+11370..U+11374, U+114B3..U+114B8, U+114BA, U+114BF..U+114C0,
31540         U+114C2..U+114C3, U+115B2..U+115B5, U+115BC..U+115C0,
31541         U+11633..U+1163A, U+1163D, U+1163F..U+11640, U+16AF0..U+16AF4,
31542         U+16B30..U+16B36, U+1BC9D..U+1BC9E, U+1BCA0..U+1BCA3, and
31543         U+1E8D0..U+1E8D6.
31544         (uc_width): Adjust nonspacing_table_ind boundary from 240 to 248.
31545         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31546         lib/uniwidth/width.c.
31547         * all generated files under lib/uni* and tests/uni*: Regenerate.
31549 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31551         libunistring: update to Unicode 6.3.0
31552         * lib/uniwbrk.in.h (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31553         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support WB7a, WB7b, and WB7c.
31554         Update WB5, WB6, WB7, WB9, WB11, WB12, WB13a, and WB13b.
31555         * lib/uniwbrk/wbrktable.h (uniwbrk_table): Adjust table size.
31556         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support rule WB7a.
31557         Update WB5, WB9, WB10, WB13a, and WB13b.
31558         * tests/uniwbrk/test-uc-wordbreaks.c
31559         (wordbreakproperty_to_string): Support WBP_DQ, WBP_SQ, and WBP_HL.
31560         * lib/gen-uni-tables.c (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31561         (UC_BIDI_PDI): New enumeration values.
31562         (bidi_category_byname): Support those enum values.
31563         (is_WBP_MIDNUMLET): Exclude 0x0027 (SINGLE QUOTE), which is now a
31564         dedicated property assigned.
31565         (is_property_case_ignorable): Check 0x0027.
31566         (WBP_DQ, WBP_SQ, WBP_HL): New enumeration values.
31567         (get_wbp, debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31568         (output_wbp): Support those enum values.
31569         * lib/unictype.in.h (UC_BIDI_LRI, UC_BIDI_RLI, UC_BIDI_FSI)
31570         (UC_BIDI_PDI): New enumeration values.
31571         * lib/unictype/bidi_byname.gperf: Add those property names.
31572         * lib/uniwidth/width.c (nonspacing_table_data): Add U+061C,
31573         U+180E, U+1A1B, and U+2066..U+2069.
31574         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31575         lib/uniwidth/width.c.
31576         * all generated files under lib/uni* and tests/uni*: Regenerate.
31578 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31580         libunistring: update to Unicode 6.2.0
31581         * lib/unilbrk/lbrktables.h (LBP_RI): New enumeration value.
31582         (unilbrk_table): Adjust table size.
31583         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31584         for LBP_RI.
31585         * lib/uniwbrk.in.h (WBP_RI): New enumeration value.
31586         * lib/uniwbrk/u-wordbreaks.h (FUNC): Support rule WB13c.
31587         Normalize table index skipping ignored properties.
31588         * lib/uniwbrk/wbrktable.c (uniwbrk_table): Support WBP_RI.  Remove
31589         WBP_EXTEND and WBP_FORMAT, which are now computed without using
31590         the table.
31591         * lib/uniwbrk/wbrktable.h: Adjust table size.
31592         * lib/unigbrk.in.h (GBP_RI): New enumeration value.
31593         * lib/unigbrk/uc-is-grapheme-break.c (UC_IS_GRAPHEME_BREAK):
31594         Support rule GB8a.
31595         (UC_GRAPHEME_BREAKS_FOR, gb_table): Support GBP_RI.
31596         * tests/unigbrk/test-uc-is-grapheme-break.c
31597         (graphemebreakproperty_to_string): Support GBP_RI.
31598         * tests/uniwbrk/test-uc-wordbreaks.c
31599         (wordbreakproperty_to_string): Support WBP_RI.
31600         * lib/gen-uni-tables.c (LBP_RI): New enumeration value.
31601         (get_lbp, debug_output_lbp, fill_org_lbp, debug_output_org_lbp)
31602         (output_lbp): Support LBP_RI.  Adjust some characters changed from
31603         LBP_AL to LBP_ID.
31604         (output_lbp): Support LBP_RI.
31605         (WBP_RI): New enumeration value.
31606         (debug_output_wbp, fill_org_wbp, debug_output_org_wbp)
31607         (output_wbp): Support WBP_RI.
31608         (GBP_RI): New enumeration value.
31609         (output_gbp_test, fill_org_gbp): Support GBP_RI.
31610         * all generated files under lib/uni* and tests/uni*: Regenerate.
31612 2015-01-14  Daiki Ueno  <ueno@gnu.org>
31614         libunistring: update to Unicode 6.1.0
31615         * lib/gen-uni-tables.c (output_joining_group): Switch to
31616         3-level table to accommodate joining groups defined with higher
31617         codepoint value.  Since there are only 88 groups defined in
31618         Unicode 7.0.0, use 7-bit packed format for level3 entries.
31619         (get_lbp): Update for Unicode 6.1.0.
31620         * lib/unictype/joininggroup_of.c (uc_joining_group): Adjust to use
31621         3-level table.
31622         * lib/unictype/joininggroup_byname.gperf: Add Rohingya Yeh
31623         joining group name.
31624         * lib/unictype/joininggroup_name.h: Likewise.
31625         * lib/unilbrk/lbrktables.h (LBP_HL): New enumeration value.
31626         (unilbrk_table): Adjust table size.
31627         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column
31628         for LBP_HL.
31629         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0604,
31630         U+08E4..U+08FE, U+1BAB, U+1CF4, U+A674..U+A67B, U+A69F,
31631         U+AAEC..U+AAED, U+AAF6, U+11100..U+11102, U+11127..U+1112B,
31632         U+1112D..U+11134, U+11180..U+11181, U+111B6..U+111BE, U+116AB,
31633         U+116AD, U+116B0..U+116B5, U+116B7, U+16F8F..U+16F92.  Remove
31634         U+302E..U+302F.
31635         * tests/uniwidth/test-uc_width2.sh: Same updates as in
31636         lib/uniwidth/width.c.
31637         * all generated files under lib/uni* and tests/uni*: Regenerate.
31638         * modules/uni*/* (configure.ac): Bump minimum version to 0.9.5.
31640 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31642         uniwbrk/u32-wordbreaks-tests: add conformance test
31643         * modules/uniwbrk/u32-wordbreaks-tests (Files): Add
31644         tests/uniwbrk/test-uc-wordbreaks.c,
31645         tests/uniwbrk/test-uc-wordbreaks.sh, and
31646         tests/uniwbrk/WordBreakTest.txt.
31647         (Makefile.am): Add uniwbrk/test-uc-wordbreaks.sh to $(TESTS), add
31648         test-uc-wordbreaks to $(check_PROGRAMS), and define
31649         test_uc_wordbreaks_SOURCES and test_uc_wordbreaks_LDADD.
31650         * tests/uniwbrk/test-uc-wordbreaks.sh: New file.
31651         * tests/uniwbrk/test-uc-wordbreaks.c: New file.
31653 2015-01-15  Daiki Ueno  <ueno@gnu.org>
31655         uniwbrk: ignore Extended/Format characters at BOL not BOS
31656         * lib/uniwbrk/u-wordbreaks.h (FUNC): Ignore Extend and Format
31657         characters if the previous character property is one of
31658         WBP_NEWLINE, WBP_CR, and WBP_LF.
31660 2015-01-11  Jim Meyering  <meyering@fb.com>
31662         test-strstr.c: avoid a trivial leak
31663         * tests/test-strstr.c (main): Free haystack.
31665         update-copyright: recognize groff's \(co marker
31666         * build-aux/update-copyright (circle_c_re): Also accept
31667         uses of \(co, as found in gzip.1.
31669 2015-01-08  Pádraig Brady  <P@draigBrady.com>
31671         maint.mk: fix compatibility with OS X nm
31672         * top/maint.mk (_gl_tight_scope): Use the -g option to
31673         show exported items rather than the -e option which is
31674         ignored on all platforms except OS X where it gives an error.
31675         Reported by Assaf Gordon.
31677 2015-01-07  KO Myung-Hun  <komh@chollian.net>
31679         localcharset: improve charset detection on OS/2
31680         Use system codepage when appropriate.  Map OS/2 codepages to
31681         GNU canonical charset names if possible.
31682         * lib/config.charset: Don't output aliases if "$os" is os2*.
31683         * lib/localcharset.c (get_charset_aliases) [OS2]: Hardcode the
31684         result for OS/2.
31685         (locale_charset) [OS2]: Use system codepage if codeset is omitted
31686         from the locale name which is neither "C" nor "POSIX".
31688 2015-01-06  Paul Eggert  <eggert@cs.ucla.edu>
31690         count-leading-zeros: use 64-bit intrinsics on 32-bit Windows
31691         This reverts the last patch but one, as it shouldn't be needed now
31692         that the typo is fixed.
31693         * lib/count-leading-zeros.h (count_leading_zeros_ll):
31694         * lib/count-trailing-zeros.h:
31695         * lib/count-one-bits.h:
31696         Go back to using 64-bit intrinsics.
31698         count-leading-zeros: fix pragma typos
31699         * lib/count-leading-zeros.h (_BitScanReverse, _BitScanReverse64):
31700         Fix typos in declaration of intrinsics when _MSC_VER.
31702 2015-01-06  Pádraig Brady  <P@draigBrady.com>
31704         count-leading-zeros: avoid 64-bit intrinsics on 32-bit Windows
31705         * lib/count-leading-zeros.h (count_leading_zeros_ll): Use 32 bit
31706         intrinsics in this case.
31707         * lib/count-trailing-zeros.h: Likewise.
31708         * lib/count-one-bits.h: Likewise.
31710 2015-01-06  Daiki Ueno  <ueno@gnu.org>
31712         uniname/uniname: update to Unicode 7.0.0
31713         To accommodate new characters added since Unicode 5.1.0, this
31714         changes the internal representation of codepoint ranges.
31715         Previously, we grouped codepoint ranges by manually assigned 4-bit
31716         tag, which only allowed 16 groups.  This removes the limitation by
31717         switching to binary search on a table.  For the detail rationale
31718         and the benchmark results, see:
31719         https://lists.gnu.org/r/bug-libunistring/2014-06/msg00001.html
31720         * lib/uniname/gen-uninames.lisp (unicode-char): Rename CODE member
31721         to INDEX, as it no longer represents a codepoint.
31722         (range): New struct.
31723         (main): Switch to intervals list from a bit-pattern based
31724         classification.
31725         * lib/uniname/uninames.h: Regenerate.
31726         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 7.0.0.
31727         * modules/uniname/base (configure.ac): Bump minimum version to
31728         0.9.5.
31729         * modules/uniname/uniname (configure.ac): Bump minimum version to
31730         0.9.5.
31732 2015-01-05  Eric Blake  <eblake@redhat.com>
31734         doc: update INSTALL from autoconf
31735         * doc/install.texi: Resync from autoconf.
31736         * doc/INSTALL: Reflect recent autoconf update.
31737         * doc/INSTALL.ISO: Likewise.
31738         * doc/INSTALL.UTF-8: Likewise.
31740         stdio: fix use of PRIdMAX on modern mingw
31741         * m4/stdio_h.m4 (gl_STDIO_H): Probe for printf flavor via inttypes.
31742         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): Use result
31743         to work with modern mingw.
31745 2015-01-05  Daniel P. Berrange  <berrange@redhat.com>  (tiny change)
31747         pthread: detect git mingw builds with only partial pollution
31748         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for additional
31749         pollution, as seen temporarily in Fedora 21.
31751 2015-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31753         lib-symbol-versions: cache script check
31754         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT):
31755         Cache the check for linker version scripts.
31756         From a suggestion by Christophe Curis in:
31757         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00011.html
31759 2015-01-04  Benno Schulenberg  <bensberg@justemail.net>
31761         maint: fix grammar nits in propername (trivial change)
31762         * lib/propername.h: Remove a mistaken comma and a duplicate "from",
31763         and use an adequate verb and tense.
31765 2015-01-02  Ludovic Courtès  <ludo@gnu.org>
31767         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
31768         * module/gendocs: Add 'doc/gendocs_template_min'.
31770         * build-aux/gendocs.sh: Change email addresses and upstream URLs
31771         from to Gnulib's.
31772         (scripturl, templateurl): Adjust accordingly.
31774 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31776         gendocs: copyright date and version fix
31777         Reported by Karl Berry in:
31778         http://lists.gnu.org/r/bug-gnulib/2015-01/msg00002.html
31779         * build-aux/gendocs.sh, doc/gendocs_template, doc/gendocs_template_min:
31780         Fix copyright date.
31781         * build-aux/gendocs.sh (scriptversion): Update.
31783 2015-01-01  Karl Berry  <karl@gnu.org>
31785         * doc/install.texi,
31786         * build-aux/mdate-sh,
31787         * build-aux/depcomp,
31788         * build-aux/config.guess,
31789         * build-aux/config.sub,
31790         * build-aux/ar-lib,
31791         * build-aux/compile: revert copyright updates (some from last
31792         year) in slaved files.
31794 2015-01-01  Paul Eggert  <eggert@cs.ucla.edu>
31796         version-etc: new year
31797         * doc/gnulib.texi:
31798         * lib/version-etc.c (COPYRIGHT_YEAR): Update copyright date.
31799         * all files: Run 'make update-copyright'.
31801 2014-12-30  Pádraig Brady  <P@draigBrady.com>
31803         xstrtol: ensure errno is reset
31804         Since commit 3bf75404, on 26-09-1998, errno may not have been reset.
31805         Noticed with a spurious coreutils test failure on Darwin 14.0.0.
31807         * lib/xstrtol.c (__xstrtol): Always reset errno before returning.
31809 2014-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31811         utimens: fix dependency typo
31812         * modules/utimens (Depends-on): Remove 'assure'.
31813         This bug was introduced in the recent 'assure' patch.
31815 2014-12-22  Eric Blake  <eblake@redhat.com>
31817         docs: mention why libgen.h is bad
31818         * doc/posix-headers/libgen.texi (libgen.h): Refer to dirname module.
31820 2014-12-20  Paul Eggert  <eggert@cs.ucla.edu>
31822         assure: new module
31823         This works better than 'assert' when compiling with -DNDEBUG,
31824         as it avoids some compiler diagnostics in that case.
31825         Reported by Norihiro Tanaka in:
31826         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00215.html
31827         * MODULES.html.sh (func_all_modules): Add 'assure'.
31828         * lib/assure.h, modules/assure: New files.
31829         * lib/chdir-long.c, lib/cycle-check.c, lib/fchdir.c, lib/fts.c:
31830         * lib/poll.c, lib/savewd.c, lib/xstrtol.c:
31831         Prefer 'assure' to 'assert'.
31832         * lib/utimens.c: Stop using 'assert'; it wasn't helpful.
31833         * modules/chdir-long, modules/cycle-check, modules/fchdir:
31834         * modules/poll, modules/savewd, modules/utimens, modules/xstrtol:
31835         Depend on 'assure'.
31837 2014-12-16  Paul Eggert  <eggert@cs.ucla.edu>
31839         stdalign: port better to HP compilers
31840         * m4/stdalign.m4 (gl_STDALIGN_H): Try the test if __HP_cc or
31841         __HP_aCC are nonzero, to be consistent with the 2014-01-20 patch.
31843         stdalign: work around Apple GCC 4.0 bug
31844         Reported by David Fang in:
31845         http://lists.gnu.org/r/bug-gnulib/2014-12/msg00194.html
31846         * lib/stdalign.in.h (_Alignas):
31847         * m4/stdalign.m4 (gl_STDALIGN_H):
31848         Do not use aligned attribute with GCC 4.0 on Apple.
31850 2014-12-16  Pádraig Brady  <P@draigBrady.com>
31852         getcwd: fix test failure on OS X 10.9
31853         * m4/getcwd-path-max.m4: Avoid the replacement if it
31854         won't be effective due to the PATH_MAX limitation of lstat().
31855         (gl_cv_func_getcwd_path_max): Adjust to indicate this case.
31856         * m4/getcwd.m4 (gl_FUNC_GETCWD): Define HAVE_GETCWD_SHORTER
31857         for this case for use in tests, and also exclude this
31858         case when setting REPLACE_GETCWD.
31859         * tests/test-getcwd.c (test_long_name): Restrict the
31860         tested path length so that lstat() will not be passed
31861         a path greater than PATH_MAX.
31862         Also key a test condition on HAVE_OPENAT_SUPPORT rather
31863         than AT_FDCWD, since the latter is set unconditionally
31864         since Sep 2009 in commit 52c658e9.
31866 2014-12-14  Tim Rühsen  <tim.ruehsen@gmx.de>
31868         parse-datetime: avoid a compiler warning with byacc (trivial)
31869         * lib/parse-datetime.y (yylex): Use the same prototype in the
31870         function definition as the declaration, to avoid a -Wstrict-prototypes
31871         warning seen when using byacc.
31873 2014-12-12  Daiki Ueno  <ueno@gnu.org>
31875         unicase/locale-language-tests: fix LOCALE_FR test
31876         * tests/unicase/test-locale-language.sh: Really use $LOCALE_FR for
31877         a French locale with traditional encoding.
31878         Reported by umerqayam in:
31879         http://lists.gnu.org/r/bug-libunistring/2014-12/msg00000.html
31881 2014-12-12  Paul Eggert  <eggert@cs.ucla.edu>
31883         stddef: support C11's max_align_t
31884         * doc/posix-headers/stddef.texi (stddef.h): Document max_align_t.
31885         * lib/stddef.in.h (_@GUARD_PREFIX@_STDDEF_H) [__need_wint_t]:
31886         Do not undef, as that might cause max_align_t to be defined twice.
31887         Instead, change use to check for _GL_STDDEF_WINT_T too.
31888         (max_align_t) [!HAVE_MAX_ALIGN_T]: New decl.
31889         * m4/stddef_h.m4 (gl_STDDEF_H, gl_STDDEF_H_DEFAULTS):
31890         Check for max_align_t.
31891         * modules/stddef (stddef.h): Substitute HAVE_MAX_ALIGN_T.
31892         * modules/stddef-tests (Depends-on): Add stdalign.
31893         * tests/test-stddef.c: Test max_align_t.
31895 2014-12-11  Daiki Ueno  <ueno@gnu.org>
31897         unistd: fix iOS check conditional
31898         On Mac OS X 10.8, the TARGET_* macros are unconditonally defined
31899         as 0 or 1 in <TargetConditionals.h>, and the previous check always
31900         yielded true on non-iOS environment.
31901         * lib/unistd.in.h (environ) [__APPLE__]: Check the values of
31902         TARGET_OS_IPHONE and TARGET_IPHONE_SIMULATOR, instead of whether
31903         they are defined.
31905 2014-12-09  Paul Eggert  <eggert@cs.ucla.edu>
31907         posixtm: avoid compiler warning in a better way
31908         * lib/posixtm.c (IF_LINT): Remove.
31909         (year, posix_time_parse):
31910         Return true (not 0) if successful.  All callers changed.
31911         (posix_time_parse): Simplify to pacify GCC without need for IF_LINT.
31913 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31915         * lib/relocatable.c (relocate): Prepend $UNIXROOT to pathname if it is
31916         started with '/' on EMX.
31918 2014-12-08  KO Myung-Hun  <komh78@gmail.com>
31920         freopen: workaround freopen() on OS/2 kLIBC
31921         * lib/freopen.c (rpl_freopen): Workaround.
31922         * m4/freopen.m4: Add os2* case.
31924         get_shared_library_fullname: port to EMX
31925         * lib/relocatable.c: Define strcmp and strncmp to stricmp and strnicmp
31926         on EMX, respectively.
31927         (_DLL_InitTerm): New on EMX.
31928         (get_shared_library_fullname): Implement on EMX.
31930         find_executable: port to EMX
31931         * lib/progreloc.c (find_executable): Implement on EMX.
31933         sched: check struct sched_param in spawn.h as well
31934         * lib/sched.in.h: Include spawn.h on kLIBC.
31935         * lib/sched_h.m4: Check struct sched_param in spawn.h as well.
31937 2014-12-08  Martin Kletzander  <mkletzan@redhat.com>  (tiny change)
31939         bootstrap: Allow perl modules in $buildreq
31940         * build-aux/bootstrap: Add case for perl modules.
31942 2014-12-08  Pádraig Brady  <P@draigBrady.com>
31944         apply _GL_ATTRIBUTE_PURE to some inline functions
31945         clang 3.4.2 flagged these inline functions as pure
31946         * lib/savewd.h (savewd_errno): Set _GL_ATTRIBUTE_PURE.
31947         * lib/sig-handler.h (get_handler): Likewise.
31948         * lib/stat-time.h (get_stat_{a,c,m,birth}time{,_ns}): Likewise.
31949         * lib/timespec.h (timespec_cmp, timespec_sign): Likewise.
31951 2014-12-06  Pádraig Brady  <P@draigBrady.com>
31953         vasnprintf: fix potential use after free
31954         * lib/vasnprintf.c (VASNPRINTF): Fix free-memory read,
31955         flagged by clang-analyzer 3.4.2.
31957 2014-12-05  Pádraig Brady  <P@draigBrady.com>
31959         filevercmp, posixtm: avoid compiler warnings with -O3
31960         * lib/filevercmp.h (filevercmp): Tag with _GL_ATTRIBUTE_PURE
31961         * lib/posixtm.c: (IF_LINT): Define.
31962         (posix_time_parse): Use it to void a "may be used uninitialized"
31963         warning, seen only with -O3.
31965 2014-12-05  Bruno Haible  <bruno@clisp.org>
31967         Fix LDBL80_WORDS macro on big endian platforms.
31968         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Add missing parenthesis in
31969         LDBL80_WORDS macro.
31970         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
31971         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
31972         * tests/test-isfinite.c (test_isfinitel): Likewise.
31973         * tests/test-isinf.c (test_isinfl): Likewise.
31974         * tests/test-isnan.c (test_long_double): Likewise.
31975         * tests/test-isnanl.h (main): Likewise.
31976         * tests/test-snprintf-posix.h (LDBL80_WORDS): Add missing parenthesis.
31977         * tests/test-sprintf-posix.h (LDBL80_WORDS): Likewise.
31978         * tests/test-vasnprintf-posix.c (LDBL80_WORDS): Likewise.
31979         * tests/test-vasprintf-posix.c (LDBL80_WORDS): Likewise.
31980         Reported by Pádraig Brady.
31982 2014-12-02  KO Myung-Hun  <komh78@gmail.com>
31984         git-version-gen: do not print new line characters
31985         * build-aux/git-version-gen: Use printf instead of echo and tr.
31987         gnulib-tool: recognize x:* as an absolute path
31988         * gnulib-tool (func_gnulib_dir): Add ?:* case.
31989         (func_relconcat): Likewise.
31991 2014-12-02  Andrei Borzenkov  <arvidjaar@gmail.com>
31993         argp: avoid extraneous translation and mem leak with empty pre doc
31994         * lib/argp-help.c (argp_doc): Never translate the empty string,
31995         when "\v" is the first or last character of the string, as that
31996         has a reserved meaning to return the header info from a po file.
31997         This also fixes a small memory leak in the !post case.
31998         The issue can be seen with this command for example:
31999         LC_MESSAGES=en_US grub2-mknetdir --help
32001 2014-11-27  Daiki Ueno  <ueno@gnu.org>
32003         uniname/uniname-tests: skip if system's libunistring is used
32004         * modules/uniname/uniname-tests (Makefile.am): Skip test if
32005         uniname/uniname module is not compiled.
32007 2014-11-27  Pádraig Brady  <P@draigBrady.com>
32009         printf: fix configure check on big endian systems
32010         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Add missing bracket.
32012 2014-11-22  Daiki Ueno  <ueno@gnu.org>
32014         pipe-filter-gi, pipe-filter-ii: port to AIX
32015         On AIX 7.1, 'select' is defined as static and cannot be referred
32016         to from inline function.
32017         * lib/pipe-filter-aux.h (nointr_select): Remove, manually expand
32018         the definition...
32019         * lib/pipe-filter-gi.c (filter_loop): ...here, and...
32020         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): ...here.
32022 2014-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32024         gitlog-to-changelog: add --until
32025         * build-aux/gitlog-to-changelog: Support new --until option.
32026         Need described by Eli Zaretskii in: http://bugs.gnu.org/19113
32028 2014-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32030         extern-inline: update commentary about GCC bugs
32031         * m4/extern-inline.m4: Add another GCC bug number to comments.
32033 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32035         gen-uni-tables: untabify
32036         * lib/gen-uni-tables.c: Untabify.
32038 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32040         gen-uni-tables: check out-of-range values added to 3-level tables
32041         * lib/gen-uni-tables.c (output_category, output_bidi_category)
32042         (output_joining_type, output_ident_category): Check out-of-range
32043         values added to 3-level tables.
32045 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32047         gen-uni-tables: utilize 'assert'
32048         * lib/gen-uni-tables.c: Include <assert.h>.
32049         (output_category, output_combclass, output_decimal_digit_test)
32050         (output_decimal_digit, output_digit_test, output_digit)
32051         (output_numeric, get_mirror_value, fill_properties)
32052         (fill_property30, is_property_alphabetic)
32053         (is_property_default_ignorable_code_point)
32054         (is_property_uppercase, is_property_lowercase)
32055         (is_property_cased, is_property_case_ignorable)
32056         (is_property_changes_when_lowercased, is_property_iso_control)
32057         (is_property_math, fill_arabicshaping, output_joining_group)
32058         (fill_scripts, fill_blocks, output_lbp, fill_org_wbp)
32059         (output_wbp, fill_org_gbp, get_decomposition)
32060         (output_decomposition, fill_composition_exclusions)
32061         (debug_output_composition_tables, output_composition_tables)
32062         (redistribute_casefolding_rules, output_casing_rules): Use
32063         'assert (EXPR);' instead of 'if (!EXPR) abort ();' for better error
32064         reporting.
32066 2014-11-13  Daiki Ueno  <ueno@gnu.org>
32068         gen-uni-tables: cosmetic improvements
32069         * lib/gen-uni-tables.c: Escape newlines in the Emacs file local
32070         variables specification.
32071         (is_outdigit): Remove unused function.
32073 2014-11-12  Jeroen Roovers  <jer@gentoo.org>  (tiny change)
32075         fcntl-h-tests: port to PA-RISC GNU/Linux
32076         * tests/test-fcntl-h.c (main): Check O_SYNC is different from O_DSYNC.
32078 2014-11-10  Paul Eggert  <eggert@cs.ucla.edu>
32080         fts: port to C89
32081         Problem reported for MSVC 16 by Gisle Vanem in:
32082         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00027.html
32083         * lib/fts.c (fts_build): Avoid declaration before statement.
32085 2014-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32087         unistd: port to iOS
32088         Problem reported by André Klitzing in:
32089         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00013.html
32090         * lib/unistd.in.h (environ): Do not include crt_externs.h on iOS.
32092 2014-11-05  Paul Eggert  <eggert@cs.ucla.edu>
32094         obstack: do not reject malloc-style obstack_chunkfun, obstack_freefun
32095         Problem reported by Alan Modra in:
32096         http://lists.gnu.org/r/bug-gnulib/2014-11/msg00007.html
32097         * lib/obstack.h (obstack_chunkfun, obstack_freefun):
32098         Always cast the function arg, reverting this part of the previous
32099         change.
32101 2014-11-04  Paul Eggert  <eggert@cs.ucla.edu>
32103         obstack: avoid potentially-nonportable function casts
32104         * lib/obstack.c (CALL_CHUNKFUN, CALL_FREEFUN):
32105         Remove, replacing with ...
32106         (call_chunkfun, call_freefun): New static functions.
32107         All uses changed.  Avoid potentially-nonportable casts.
32108         (chunkfun_type, freefun_type): Remove typedefs; no longer used.
32109         (_obstack_begin_worker): Omit last two args, since they
32110         rely on potentially-nonportable casts.  All callers changed.
32111         * lib/obstack.h (_OBSTACK_CAST): New macro.
32112         Use it everywhere the old API used a potentially-nonportable cast.
32113         The new API doesn't cast.
32114         (struct obstack): Use unions rather than requiring
32115         potentially-nonportable casts.
32116         (obstack_chunkfun, obstack_freefun): Return void.
32118 2014-11-03  Alan Modra  <amodra@gmail.com>
32120         obstack: fix macro return values
32121         * lib/obstack.h (obstack_next_free): Return void *.
32122         (obstack_1grow_fast, obstack_blank_fast): Return void.
32123         For __GNUC__ macros:
32124         (obstack_1grow, obstack_blank): Remove now unnecessary (void) 0.
32125         For !__GNUC__ macros:
32126         (obstack_make_room, obstack_grow, obstack_grow0)
32127         (obstack_ptr_grow_fast, obstack_int_grow_fast): Return void.
32129 2014-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32131         obstack: do not assume system-supplied obstack is size_t safe
32132         * m4/obstack.m4: New file.
32133         * modules/obstack (Files): Add it.
32135         obstack: port to platforms that #define __alignof__
32136         * lib/obstack.c: Include <alignof.h> if !defined __alignof__,
32137         not if !_LIBC.  We don't know of any platforms that #define
32138         __alignof__, but it might be useful in tests.  Conversely,
32139         glibc assumes GCC.
32141 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32143         linkat: don't unconditionally replace on GNU/Linux
32144         * m4/linkat.m4 (gl_FUNC_LINKAT): The compile check for AT_SYMLINK_FOLLOW
32145         was redundant for a few reasons.  It was present to support compiling
32146         on new systems but running on the old narrow window of Linux 2.6.1[67].
32147         It setup and cleaned up test files which weren't actually used.
32148         On non __linux__ it compile tested AT_SYMLINK_FOLLOW, but that is
32149         implicit in the following check.
32151 2014-11-03  Pádraig Brady  <P@draigBrady.com>
32153         linkat: wrap to handle symlinks on OS X 10.10
32154         * m4/linkat.m4 (gl_FUNC_LINKAT): linkat() is available on Yosemite
32155         but not usable because it doesn't support creating hardlinks
32156         to symlinks.  Therefore add a generic test for this capability
32157         and fallback to our emulation if linkat() fails with ENOTSUP.
32159 2014-11-02  Paul Eggert  <eggert@cs.ucla.edu>
32161         open, openat: document nonstandard FreeBSD, NetBSD O_NOFOLLOW errno
32162         * doc/posix-functions/open.texi (open):
32163         * doc/posix-functions/openat.texi (openat):
32164         Document that these functions do not set errno to ELOOP when
32165         a symlink is opened with O_NOFOLLOW.
32167 2014-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32169         obstack: add NEWS entry for recent incompatible changes
32170         * NEWS: Describe recent changes.
32172 2014-10-30  Pádraig Brady  <P@draigBrady.com>
32174         mountlist: don't use libmount to decide on dummy/remote
32175         * lib/mountlist.c (read_file_system_list): Don't use the libmount
32176         routines to determine whether a file system is dummy or remote,
32177         as they're not currently compatible.  For example the remoteness
32178         is determined on file system type (for which the list seems incomplete),
32179         rather than simply checking for a ':' in the device name.
32180         Also libmount currently determines that 'tmpfs' is a dummy file system
32181         even though it has associated storage.
32183 2014-10-29  Paul Eggert  <eggert@cs.ucla.edu>
32185         obstack: prefer __alignof__ to alignof
32186         This is for portability to pre-4.7 GCC when compiling glibc.
32187         See Joseph S. Myers in:
32188         http://sourceware.org/ml/libc-alpha/2014-10/msg00703.html
32189         * lib/obstack.c (__alignof__) [!_LIBC && !__GNUC__]:
32190         New macro, defined by including and using <alignof.h>.
32191         (MAX): New macro.
32192         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Redefine in terms of these.
32193         Do not use enums as they are not portable to some broken compilers.
32194         * modules/obstack (Depends-on): Depend on alignof, not stdalign.
32196         obstack: prefer alignof to calculating alignments by hand
32197         * lib/obstack.c: Include <stdalign.h>.
32198         (struct fooalign): Remove.
32199         (DEFAULT_ALIGNMENT): Use alignof rather than the old offsetof hack.
32200         * modules/obstack (Depends-on): Add stdalign.
32202 2014-10-28  Paul Eggert  <eggert@cs.ucla.edu>
32204         obstack: use size_t alignments and check for overflow
32205         * lib/obstack.c, lib/obstack.h (_obstack_begin, _obstack_begin_1):
32206         * lib/obstack.c (_obstack_begin_worker, _obstack_newchunk):
32207         * lib/obstack.h (struct obstack.alignment_mask):
32208         Use _OBSTACK_SIZE_T, not int, for alignments.
32209         * lib/obstack.c (_obstack_newchunk): Fail if the size calculation
32210         overflows, e.g., when adding the alignment.
32212 2014-10-29  Alan Modra  <amodra@gmail.com>
32214         obstack: 64-bit obstack support, part 3
32215         This finally enables full 64-bit obstack support.  The glibc
32216         shared library specific code is removed from obstack.c too, and
32217         the error handling code conditionally compiled under control of
32218         another macro, _OBSTACK_NO_ERROR_HANDLER.
32219         * lib/obstack.h: Include string.h earlier.
32220         (_OBSTACK_INTERFACE_VERSION): Define.
32221         (_OBSTACK_SIZE_T, _CHUNK_SIZE_T): Define as size_t for version 2.
32222         * lib/obstack.c: Don't include shlib-compat.h.
32223         (OBSTACK_INTERFACE_VERSION): Delete.
32224         (_OBSTACK_ELIDE_CODE): Rename from ELIDE_CODE.  Define when version 1
32225         glibc code is compatible with version 2.  Don't include stdio.h for
32226         __GNU_LIBRARY.
32227         (obstack_exit_failure, print_and_abort, obstack_alloc_failed_handler):
32228         Omit when _OBSTACK_NO_ERROR_HANDLER defined.  Include stdio.h here.
32229         (_obstack_compat, _obstack, _obstack_newchunk, obstack_free): Delete
32230         glibc shared library specific source.
32232         obstack: 64-bit obstack support, part 2
32233         This gets us 4G obstack support, without changing ABI
32234         compatibility, apart from possibly introducing some
32235         signed/unsigned comparison warnings in code that uses obstack.h.
32236         a) Replace "int" size parameters, return values, and macro local vars
32237            with _OBSTACK_SIZE_T, an "unsigned int" for now.
32238         b) Make obstack.chunk_size a _CHUNK_SIZE_T, an "unsigned long" for now.
32239         c) Make all obstack macros checking available room use obstack_room.
32240            "next_free + desired > chunk_limit" may wrap the lhs for chunks
32241            allocated near the top of memory.
32242         d) Use unsigned comparisons, and macro locals to support >2G on 32-bit.
32243         * lib/obstack.h (_OBSTACK_SIZE_T): Define.  Use throughout
32244         in place of "int" size parameters, return values and local vars.
32245         (_CHUNK_SIZE_T): Define.
32246         (struct obstack): Make chunk_size a _CHUNK_SIZE_T.  Make temp
32247         union use an _OBSTACK_SIZE_T integer type.
32248         For __GNUC__ versions of the following macros...
32249         (obstack_room): Rename local var.
32250         (obstack_make_room): Use obstack_room.
32251         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32252         obstack_int_grow, obstack_blank): Likewise.
32253         (obstack_finish): Use unsigned comparison when comparing aligned
32254         next_free against chunk_limit.
32255         (obstack_free): Cast OBJ to remove possible const qualifier.
32256         For !__GNUC__ versions of the following macros...
32257         (obstack_make_room): Use obstack_room.
32258         (obstack_grow, obstack_grow0, obstack_1grow, obstack_ptr_grow,
32259         obstack_int_grow, obstack_blank): Likewise.
32260         (obstack_finish): Use unsigned comparision when comparing aligned
32261         next_free against chunk_limit.
32262         (obstack_free): Use temp.p and same comparisons as __GNUC__ version.
32263         * lib/obstack.c (_obstack_begin_worker): Make "size" parameter
32264         _OBSTACK_SIZE_T.
32265         (_obstack_begin, _obstack_begin_1): Likewise.
32266         (_obstack_newchunk): Likewise for length parameter.  Use size_t locals.
32267         (_obstack_memory_used): Return and use _OBSTACK_SIZE_T local.
32269         obstack: 64-bit obstack support, part 1
32270         a) Correct calls to alloc function, to use a size_t arg.  "long" is
32271            just wrong on targets like x86_64-mingw64 where "long" is 32 bits
32272            and "size_t" 64 bits.
32273         b) Consolidate _obstack_begin and _obstack_begin1 code.
32274         * lib/obstack.h (struct obstack <chunkfun>): Correct prototype to
32275         use "size_t" rather than "long".
32276         (_obstack_begin, _obstack_begin1): Likewise.
32277         (obstack_init, obstack_begin, obstack_specify_allocation_with_arg,
32278         obstack_chunkfun): Update alloc function casts.
32279         * lib/obstack.c (CALL_CHUNKFUN): Update chunkfun cast.
32280         (chunkfun_type, freefun_type): New typdefs.
32281         (_obstack_begin_worker): Split out from ..
32282         (_obstack_begin, _obstack_begin_1): ..here.
32284         obstack: tidy part 2
32285         a) Don't be concerned about "not polluting the namespace with stddef.h
32286            symbols" in obstack.h, since gnulib string.h includes stddef.h
32287            anyway, and it seems unlikely that anyone would care.
32288         b) Don't roll our own slow memcpy in _obstack_newchunk.
32289         c) Rename obstack_free to _obstack_free.  This makes the naming
32290            consistent with other obstack functions and obviates the need for
32291            __obstack_free.  Ancient obstack.c defined both obstack_free and
32292            _obstack_free.  We continue to do that for _LIBC via an alias.
32293         d) Miscellaneous macro fixes.  The expression used to test for gcc-2.8
32294            is clever, but nowadays gcc warns on undefined macros.  You'll get
32295            an undefined macro warning if simulating an old gcc with -U__GNUC__
32296            -U__GNUC_MINOR__ -D__GNUC__=1.
32297         * lib/obstack.h: Include stddef.h unconditionally.  Formatting fixes.
32298         (PTR_INT_TYPE): Delete, replace with ptrdiff_t.
32299         (__obstack_free): Delete, update refs.
32300         (_obstack_free): Rename from obstack_free.
32301         (__extension__): Avoid undefined macro warning for __GNUC_MINOR__.
32302         (obstack_object_size, obstack_room): Parenthesise !__GNUC__ versions.
32303         * lib/obstack.c: Don't include stddef.h.
32304         (COPYING_UNIT): Delete.
32305         (_obstack_begin): Formatting fix.
32306         (_obstack_newchunk): Use memcpy to move existing object to new chunk.
32307         (_obstack_free): Rename from __obstack_free, update alias.  Move
32308         undef of obstack_free to where it is needed.
32310         obstack: tidy part 1
32311         a) Rename temp fields.  temp.tempint and temp.tempptr just looks ugly
32312            to me, and result in overlong lines after later patches.
32313         b) Move error handling code, to avoid a forward declaration and to
32314            simplify later patches in this series.
32315         * lib/obstack.h (struct obstack <temp>): Rename fields of union
32316         and update all uses.
32317         * lib/obstack.c: Include stdlib.h earlier.
32318         (obstack_exit_failure, obstack_alloc_failed_handler): Move later
32319         in file.
32320         (print_and_abort): Remove now redundant forward declaration.
32322 2014-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32324         socketlib, sockets, sys_socket: Use AC_REQUIRE to pacify autoconf.
32325         Without this change, in bleeding-edge fileutils Autoconf complains
32326         that gl_SOCKETLIB etc. are AC_REQUIREd after being invoked.
32327         * modules/socketlib (configure.ac): AC_REQUIRE gl_SOCKETLIB.
32328         * modules/sockets (configure.ac): AC_REQUIRE gl_SOCKETS.
32329         * modules/sys_socket (configure.ac): AC_REQUIRE gl_HEADER_SYS_SOCKET.
32331 2014-10-24  Daiki Ueno  <ueno@gnu.org>
32333         iconv: avoid false detection of non-working iconv
32334         The INBUF arguments of iconv can be either 'const char **'
32335         or 'char **'.  If CC is g++, the difference causes a compile error
32336         and thus leads to a false detection of non-working iconv.
32337         Reported by Eli Zaretskii and Werner LEMBERG in:
32338         <https://lists.gnu.org/r/bug-gnulib/2014-10/msg00023.html>.
32339         * m4/iconv.m4 (AM_ICONV_LINK): Try all possible argument types of
32340         iconv.  Bump serial number.
32342 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32344         bootstrap: print more diagnostics for missing programs
32345         * build-aux/bootstrap: only suppress stderr when checking for
32346         alternative program names.  This supports programs issuing non
32347         standard error messages.
32349 2014-10-23  Pádraig Brady  <P@draigBrady.com>
32351         bootstrap: only update the gnulib submodule
32352         * build-aux/bootstrap: Restrict the "submodule update" command
32353         to the gnulib path.
32355 2014-10-18  Paul Eggert  <eggert@cs.ucla.edu>
32357         symlinkat: port to AIX 7.1
32358         * doc/posix-functions/symlinkat.texi (symlinkat):
32359         Mention AIX porting problem.
32360         * lib/symlinkat.c: Always include errno.h.
32361         (rpl_symlinkat) [HAVE_SYMLINKAT]: New function.
32362         * lib/unistd.in.h (symlinkat): Add replacement machinery.
32363         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Check symlinkat behavior.
32364         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_SYMLINKAT.
32365         * modules/symlinkat (Depends-on): Add fstatat if REPLACE_SYMLINKAT.
32366         (configure.ac): Also compile replacement if REPLACE_SYMLINKAT.
32367         * modules/unistd (unistd.h): Substitute REPLACE_SYMLINKAT.
32369         readlinkat: port to AIX 7.1
32370         * doc/posix-functions/readlink.texi (readlink):
32371         * doc/posix-functions/readlinkat.texi (readlinkat):
32372         Mention AIX porting problem.
32373         * lib/readlinkat.c (rpl_readlinkat) [HAVE_READLINKAT]:
32374         New function.
32375         * lib/unistd.in.h (readlinkat): Add replacement machinery.
32376         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Check readlinkat signature.
32377         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_READLINKAT.
32378         * modules/readlinkat (configure.ac): Also compile replacement
32379         if REPLACE_READLINKAT.
32380         * modules/unistd (unistd.h): Substitute REPLACE_READLINKAT.
32382 2014-10-12  Karl Berry  <karl@gnu.org>
32384         * doc/posix-functions/dirname.texi: remove spurious {.
32386 2014-09-28  Ben Pfaff  <blp@cs.stanford.edu>
32388         basename, dirname: Improve documentation.
32389         * doc/posix-functions/basename.texi: Mention dirname module and
32390         base_name() function.
32391         * doc/posix-functions/dirname.texi: Mention dir_name() and
32392         mdir_name() functions.
32393         Suggested by Werner LEMBERG <wl@gnu.org>.
32395 2014-09-24  Jim Meyering  <meyering@fb.com>
32397         exclude: declare exclude_patopts static
32398         * lib/exclude.c (exclude_patopts): Declare static,
32399         to avoid triggering a -Wmissing-prototypes warning.
32400         The alternative (declaring it in the .h file) would
32401         require publicizing the private "struct patopts".
32403 2014-09-21  Werner Lemberg  <wl@gnu.org>
32405         dirname: support compilation with C++
32406         * lib/dirname.h: Add necessary C linkage declarations.
32408 2014-09-16  Paul Eggert  <eggert@cs.ucla.edu>
32410         qsort_r: include <config.h>
32411         Problem reported by Tom G. Christensen in:
32412         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00071.html
32413         * lib/qsort.c [!_LIBC]: Include <config.h> first.
32415 2014-09-16  Dylan Cali  <calid1984@gmail.com>
32417         avltree-list: avoid compiler warnings (trivial)
32418         * lib/gl_anytree_list2.h: Add _GL_ATTRIBUTE_PURE to avoid
32419         -Werror=suggest-attribute=pure.
32420         * lib/gl_array_list.c: Likewise.
32421         * lib/gl_avltree_list.c (gl_avltree_list_check_invariants): Add extern
32422         declaration to avoid -Werror=missing-prototypes.  This is not added
32423         to a header as only exported for tests.  Add (void) to the
32424         check_invariants() call to indicate we're discarding the result
32425         in this context which avoids -Werror=unused-value.  Note we don't
32426         use ignore_value here to avoid a dependency as we know we'll not
32427         be adding __attribute__((warn_unused_result)) to check_invariants().
32428         Add _GL_ATTRIBUTE_CONST to avoid -Werror=suggest-attribute=const.
32430 2014-09-15  Paul Eggert  <eggert@cs.ucla.edu>
32432         qsort_r: new module, for GNU-style qsort_r
32433         * m4/qsort_r.m4: New file.  Forgot to add this earlier.
32435 2014-09-15  Werner LEMBERG  <wl@gnu.org>
32437         strerror_r-posix: support compilation with C++
32438         * lib/strerror_r.c: Add necessary C linkage declarations.
32440 2014-09-11  Johannes Zarl  <johannes.zarl@jku.at>
32442         fcntl-h: fix compilation with Intel C++ compiler (trivial)
32443         * lib/fcntl.in.h: ICC has the same issue as GCC <= 4.2.
32445 2014-09-09  Fridolin Pokorny  <fpokorny@redhat.com>
32447         mountlist: use /proc/self/mountinfo when available
32448         Use libmount to propagate device IDs provided by Linux in
32449         /proc/self/mountinfo.  This will give more accurate output when
32450         using df in chroot'ed environments as the device IDs are not
32451         determined by stat() which may be inaccurate within the chroot.
32452         * lib/mountlist.c (read_file_system_list): Use the libmount routines
32453         from util-linux to parse "/proc/self/mountinfo" or fall back to
32454         standard getmntent() processing.
32455         * m4/ls-mntd-fs.m4: Check for libmount only when 1-argument
32456         getmntent() is used, as is the case on GNU/Linux.
32458 2014-09-07  Eric Wong  <normalperson@yhbt.net>
32460         users.txt: add cmogstored
32461         cmogstored has used gnulib since the beginning in 2012 to support
32462         GNU/Linux, FreeBSD, and GNU/kFreeBSD.
32464 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32466         Trivial change.
32467         * gnulib-tool: Use same options as build-aux/bootstrap to download
32468         PO files.
32470 2014-09-05  Mathieu Anquetin  <mathieu@anquetin.eu>
32472         Trivial change.
32473         * gnulib-tool: Fallback to wget when rsync of PO files fails.
32475 2014-09-04  Eric Blake  <eblake@redhat.com>
32477         maintainer-makefile: add syntax check for useless ';;'
32478         * top/maint.mk (sc_prohibit_double_semicolon): New rule.
32480 2014-09-04  Paul Eggert  <eggert@cs.ucla.edu>
32482         pthread, pthread_sigmask, threadlib: port to Ubuntu 14.04
32483         Problem reported by Assaf Gordon in:
32484         http://lists.gnu.org/r/bug-gnulib/2014-09/msg00023.html
32485         Apparently Ubuntu is doing some fancy link-time optimization
32486         that doesn't work with -lpthread but does work with -pthread.
32487         Work around the bug by preferring -pthread to -lpthread.
32488         * m4/pthread.m4 (gl_PTHREAD_CHECK):
32489         * m4/threadlib.m4 (gl_THREADLIB_BODY): Prefer -pthread to -lpthread.
32490         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
32491         Treat -pthread like -lpthread.
32493 2014-09-04  Eric Blake  <eblake@redhat.com>
32495         error: drop spurious semicolon
32496         * lib/error.c (__error_at_line): Fix ';;'.
32498 2014-09-02  Paul Eggert  <eggert@cs.ucla.edu>
32500         gnulib-common.m4: port to GCC 4.2.1 and Sun Studio 12 C++
32501         * m4/gnulib-common.m4 (AC_C_RESTRICT):
32502         Override AC_C_RESTRICT unconditionally.
32503         Update from autoconf, incorporating:
32504         2014-09-02 autoconf: port 'restrict' to GCC 4.2.1
32505         2009-01-28 Fix AC_C_RESTRICT for Sun Studio 12 C++.
32507 2014-09-01  Paul Eggert  <eggert@cs.ucla.edu>
32509         manywarnings: add GCC 4.9 warnings
32510         Also, make it easier to maintain this in the future.
32511         * build-aux/gcc-warning.spec: Add -Wabi-tag,
32512         -Wconditionally-supported, -Wdelete-incomplete,
32513         -Winherited-variadic-ctor, -Wvirtual-move-assign, -Wzerotrip.
32514         Remove duplicates.  Use tabs uniformly, as that's what 'cut' wants.
32515         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add -Wdate-time,
32516         -Wopenmp-simd.  Use -fdiagnostics-show-option and -funit-at-a-time
32517         only for older GCC versions that need them.  Handle
32518         -Wnormalized=nfc specially, so that the 'comm' command used
32519         for maintenance doesn't get confused.
32521 2014-08-31  Paul Eggert  <eggert@cs.ucla.edu>
32523         vasnprintf: fix bugs in width computation
32524         * lib/vasnprintf.c (VASNPRINTF):
32525         Rework previous change, which introduced a bug,
32526         to avoid the warning in a different way.
32527         Avoid undefined behavior if the width arg is less than -INT_MAX.
32528         Avoid unnecessary use of HAS_WIDTH local.
32530 2014-08-31  Thien-Thi Nguyen  <ttn@gnu.org>  (tiny change)
32532         vasnprintf: Avoid signed/unsigned comparison warning.
32533         * lib/vasnprintf.c (VASNPRINTF): To calculate padding,
32534         compare end addr of generated string w/ maximum end addr.
32536 2013-08-30  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
32538         parse-datetime: Avoid pointer difference.
32539         * lib/parse-datetime.y (yylex): Compare pointer to end of buffer,
32540         instead of calculating difference of pointers.  This removes an
32541         annoying warning, devoid of any use.
32543 2014-08-29  Paul Eggert  <eggert@cs.ucla.edu>
32545         qsort_r: new module, for GNU-style qsort_r
32546         This works even on FreeBSD, which has an incompatible qsort_r API.
32547         * MODULES.html.sh: Add it.
32548         * doc/glibc-functions/qsort_r.texi: It's now supported.
32549         * lib/qsort.c: New file, taken from glibc with minor changes
32550         inside "#ifndef _LIBC" and with an unnecessary "#include <alloca.h>"
32551         removed.
32552         * lib/qsort_r.c: New file, compiled only on FreeBSD.
32553         * lib/stdlib.in.h (qsort_r): Declare in the usual way.
32554         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS):
32555         * modules/qsort_r, modules/qsort_r-tests: New files.
32556         * modules/stdlib (Makefile): Set up its defaults.
32557         * tests/test-qsort_r.c: New file.
32559 2014-08-08  Paul Eggert  <eggert@cs.ucla.edu>
32561         vla: new module
32562         GNU RCS can use this, mostly for documentation I expect.  See:
32563         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00025.html
32564         * MODULES.html.sh: Add vla.
32565         * lib/vla.h, modules/vla: New files.
32567 2014-08-07  Daiki Ueno  <ueno@gnu.org>
32569         localename: make gl_locale_name_thread really thread-safe on Windows
32570         * lib/localename.c [WINDOWS_NATIVE && !IN_LIBINTL]: Include
32571         "glthread/lock.h".
32572         (get_lcid_lock) [WINDOWS_NATIVE]: New variable.
32573         (get_lcid) [WINDOWS_NATIVE]: Lock while looking for an LCID.
32575 2014-08-07  Paul Eggert  <eggert@cs.ucla.edu>
32577         getpass: don't assume struct termios
32578         Problem report and trivial fix by Jonas 'Sortie' Termansen in:
32579         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00015.html
32580         * lib/getpass.c (getpass): Port to systems lacking struct termios.
32582         getdtablesize: fall back on sysconf (_SC_OPEN_MAX)
32583         Problem reported by Jonas 'Sortie' Termansen in:
32584         http://lists.gnu.org/r/bug-gnulib/2014-08/msg00023.html
32585         * lib/getdtablesize.c (getdtablesize) [_SC_OPEN_MAX]:
32586         Implement via sysconf for platforms that lack getdtablesize.
32588         vararrays: modernize AC_C_VARARRAYS for C11
32589         This backports a change I recently made to Autoconf.
32590         * m4/vararrays.m4 (AC_C_VARARRAYS): Define __STDC_NO_VLA__ if
32591         VLAs are not supported, as this is what C11 does.  The old macro
32592         HAVE_C_VARARRAYS is still defined if they are supported, but is
32593         now obsolescent.  Also, check for VLA bug in GCC 3.4.3.
32595 2014-08-07  Alessandro Degano  <degano@cern.ch>  (tiny change)
32597         relocatable-prog-wrapper: port gettext to OS X 10.8 + GCC 4.8.1
32598         * build-aux/install-reloc (func_create_wrapper): Also wrap
32599         strerror-override, stat, stat.
32601 2014-08-05  Paul Eggert  <eggert@cs.ucla.edu>
32603         sys_select: fix FD_ZERO problem on Solaris 10
32604         * lib/sys_select.in.h: Fix Solaris 10 bug where "#include
32605         <sys/time.h>" followed by "#include <sys/select.h>" caused FD_ZERO
32606         to expand to an expression that invoked memset without necessarily
32607         including <string.h>.  The problem was that the first include
32608         defined _SYS_TIME_H, causing the second include to short-circuit.
32609         Fix a similar problem with <sys/types.h> followed by <sys/select.h>.
32610         Also, fix what appears to be a cut-and-paste typo, by replacing
32611         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H with
32612         _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TYPES_H.
32614         accept: document Solaris 10 type glitch
32615         * doc/posix-functions/accept.texi (accept): Mention that
32616         Solaris 10 'accept' takes void * last arg, not socklen_t *.
32618 2014-08-04  Paul Eggert  <eggert@cs.ucla.edu>
32620         extern-inline: port to FreeBSD, DragonFly
32621         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Also assume the bug
32622         is present if either __DragonFly__ or __FreeBSD__ is defined.
32623         FreeBSD problem reported by Andrey Borzenkov in:
32624         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00104.html
32625         Also, worry about __APPLE__ only if __MACH__ is also defined,
32626         as this is more consistent with the rest of gnulib.
32627         (_GL_EXTERN_INLINE_STDHEADER_BUG): Rename this internal macro from
32628         _GL_EXTERN_INLINE_APPLE_BUG, since the bug is not limited to Apple.
32630 2014-08-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
32632         regex: Make #if/#ifdef usage consistent for DEBUG
32633         * lib/regex_internal.c: Use "#if defined DEBUG && DEBUG" instead
32634         of the inconsistent usage of #if and #ifdef as that works with
32635         both Glibc and Gnulib's style.
32637 2014-07-31  Eric Blake  <eblake@redhat.com>
32639         openat-die: use _Noreturn markup
32640         * modules/openat-die (Depends-on): Add snippet/_Noreturn.
32641         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Mark
32642         _Noreturn.
32644 2014-07-30  Eric Blake  <eblake@redhat.com>
32646         test-open: port to cygwin, which lacks Fortify
32647         * tests/test-open.h (ALWAYS_INLINE): New macro.
32648         (__always_inline): Don't abuse internal symbol on non-glibc.
32650 2014-07-19  Eli Zaretskii  <eliz@gnu.org>
32652         localename: Enforce declarations before statements.
32653         * localename.c (gl_locale_name_thread): Declare 'lcid' before the
32654         first statement.
32656 2014-07-18  Jim Meyering  <meyering@fb.com>
32658         test-userspec: don't look up numeric user names
32659         * tests/test-userspec.c: I found a system for which getpwnam("0")
32660         returned a pointer to a non-root user's entry, and that made the
32661         test fail.
32662         (T): Prefix each numeric input with "+", to inhibit lookup.
32664 2014-07-15  Eli Zaretskii  <eliz@gnu.org>
32666         localcharset, localename: MS-Windows support for non-default locales
32667         * lib/localcharset.c (locale_charset) [WINDOWS_NATIVE]: Before
32668         falling back on the default system codepage, try extracting
32669         the codepage from what 'setlocale' returns.  This allows to
32670         take into account changes of the codeset due to non-default
32671         locale set by a previous call to 'setlocale'.
32672         * lib/localename.c (LOCALE_NAME_MAX_LENGTH) [WINDOWS_NATIVE]:
32673         Define if not already defined.
32674         (enum_locales_fn, get_lcid) [WINDOWS_NATIVE]: New functions.
32675         (gl_locale_name_thread) [WINDOWS_NATIVE]: Produce the
32676         current locale by calling 'setlocale', then converting the
32677         locale name into LCID by calling 'get_lcid'.  This allows to
32678         take into account changes in the current locale from the
32679         default one, in contrast to GetThreadLocale.
32681 2014-07-14  Daiki Ueno  <ueno@gnu.org>
32683         announce-gen: avoid failure when Digest::SHA is installed
32684         When Digest::SHA is available, Digest::SHA1 is not loaded and thus
32685         Digest::SHA1->new in print_checksums fails.
32686         * build-aux/announce-gen (digest_classes): New associative array
32687         for available message digest implementations.
32688         (print_locations): Use it.
32690 2014-07-13  Pádraig Brady  <P@draigBrady.com>
32692         gettext: revert "update macros to version 0.19"
32693         This reverts commit 9b9370ca, as it currently requires that
32694         developers of any project that explicitly uses the gettext module
32695         or implicitly uses it through the utimens-tests or
32696         futimens-tests modules, use gettext >= 0.19.
32697         However there are some stability and availablity issues with
32698         that version at present.  We can reinstate this soon, when stability
32699         is addressed and packages are more readily available.
32701 2014-07-12  Jim Meyering  <meyering@fb.com>
32703         regex: don't deref NULL upon heap allocation failure
32704         * lib/regcomp.c (parse_dup_op): Handle duplicate_tree
32705         failure in one more place.
32706         To trigger the segfault, configure grep -with-included-regex,
32707         build it, and run these commands:
32708         ( ulimit -v 300000; echo a|src/grep -E a+++++++++++++++++++++ )
32709         I discovered this while replying to a private report from
32710         Jens Schleusener about excessive memory consumption by grep
32711         when using a regular expression like the one above.
32713 2014-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32715         regex: fix memory leak in compiler
32716         Fix by Andreas Schwab in:
32717         https://sourceware.org/ml/libc-alpha/2014-06/msg00503.html
32718         * lib/regcomp.c (parse_reg_exp): Deallocate partially
32719         constructed tree before returning error.
32721 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32723         announce-gen: avoid perl warnings
32724         * build-aux/announce-gen: add two minor checks to avoid
32725         "use of uninitialized value" warnings when command-line parameters are
32726         missing.
32728 2014-07-10  Assaf Gordon  <assafgordon@gmail.com>
32730         localename: avoid -Wsuggest-attribute={const,pure} warnings
32731         * lib/localename.c (string_has): Tag internal function as pure.
32732         * lib/localename.h (gl_locale_name_default): Tag extern declaration
32733         as const when appropriate.
32735 2014-07-10  Eli Zaretskii  <eliz@gnu.org>
32737         nl_langinfo: Fix last change.
32738         * lib/nl_langinfo.c (includes): Drop redundant include.
32740 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
32742         error: Fix -Wundef warnings in glibc
32743         * lib/error.c [_LIBC]: Define default macros for
32744         glibc.
32745         (print_errno_message) [defined HAVE_STRERROR_R || _LIBC]:
32746         Check _LIBC before STRERROR_R_CHAR_P.
32748         error: Sync from glibc master
32749         * lib/error.c [_LIBC]: Remove INTUSE usage.
32750         (error_tail): Remove unused macro ALLOCA_LIMIT.
32751         Fix potential buffer overflow.  Fix potential NULL dereference
32752         in strcmp.
32754 2014-07-09  Pavel Hrdina  <phrdina@redhat.com> (tiny change)
32756         nl_langinfo: fix build under mingw
32757         * lib/nl_langinfo.c (includes): Pick up <windows.h> for GetACP().
32759 2014-07-09  Andrew D Warshall  <warshall@99main.com>
32761         mountlist: do not classify a bind-mounted dir entry as "dummy"
32762         * m4/ls-mntd-fs.m4: Check for hasmntopt() on platforms with
32763         1-argument getmntent() (instead of assuming absence).
32765 2014-07-08  Eric Blake  <eblake@redhat.com>
32767         maint.mk: less syntax-check noise when SIGPIPE is ignored
32768         * top/maint.mk (_sc_header_without_use)
32769         (sc_require_config_h_first): Parse full list.
32771 2014-07-07  Eli Zaretskii  <eliz@gnu.org>
32772             Paul Eggert  <eggert@cs.ucla.edu>
32774         nl_langinfo: CODESET on MS-Windows and more items from localeconv
32775         * lib/langinfo.in.h (DECIMAL_POINT, THOUSANDS_SEP, GROUPING)
32776         (CURRENCY_SYMBOL, INT_CURR_SYMBOL, MON_DECIMAL_POINT)
32777         (MON_THOUSANDS_SEP, MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN)
32778         (FRAC_DIGITS, INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES)
32779         (P_SEP_BY_SPACE, N_SEP_BY_SPACE, P_SIGN_POSN, N_SIGN_POSN): Define.
32780         * lib/nl_langinfo.c: Include <locale.h> and <string.h> early.
32781         Include <stdio.h> if Microsoft Windows.
32782         Include <time.h> if !REPLACE_NL_LANGINFO.
32783         (ctype_codeset): New function, taken from rpl_nl_langinfo,
32784         and with improvements for Microsoft Windows.
32785         (rpl_nl_langinfo): Use it.
32786         (nl_langinfo) [!REPLACE_NL_LANGINFO]: Likewise.
32787         Compute the values of RADIXCHAR, THOUSEP, GROUPING, CRNCYSTR,
32788         INT_CURR_SYMBOL, MON_DECIMAL_POINT, MON_THOUSANDS_SEP,
32789         MON_GROUPING, POSITIVE_SIGN, NEGATIVE_SIGN, FRAC_DIGITS,
32790         INT_FRAC_DIGITS, P_CS_PRECEDES, N_CS_PRECEDES, P_SEP_BY_SPACE,
32791         N_SEP_BY_SPACE, P_SIGN_POSN, and N_SIGN_POSN from the
32792         corresponding values returned by 'localeconv'.  Compute the values
32793         of AM_STR, PM_STR, DAY_n, ABDAY_n, MON_n, and ABMON_n by calling
32794         'strftime' with a suitable struct tm value.
32796 2014-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32798         Bruno Haible has stepped down as maintainer.
32799         See Karl Berry in:
32800         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00004.html
32801         Daiki Ueno has volunteered to maintain libunistring; see:
32802         http://lists.gnu.org/r/bug-gnulib/2014-07/msg00005.html
32803         * modules/gen-uni-tables, modules/libunistring:
32804         * modules/libunistring-optional, modules/ucs4-utf16, modules/ucs4-utf8:
32805         * modules/unicase/base, modules/unicase/cased:
32806         * modules/unicase/empty-prefix-context:
32807         * modules/unicase/empty-suffix-context, modules/unicase/ignorable:
32808         * modules/unicase/locale-language, modules/unicase/special-casing:
32809         * modules/unicase/tocasefold, modules/unicase/tolower:
32810         * modules/unicase/totitle, modules/unicase/toupper:
32811         * modules/unicase/u16-casecmp, modules/unicase/u16-casecoll:
32812         * modules/unicase/u16-casefold, modules/unicase/u16-casemap:
32813         * modules/unicase/u16-casexfrm, modules/unicase/u16-ct-casefold:
32814         * modules/unicase/u16-ct-tolower, modules/unicase/u16-ct-totitle:
32815         * modules/unicase/u16-ct-toupper, modules/unicase/u16-is-cased:
32816         * modules/unicase/u16-is-casefolded, modules/unicase/u16-is-invariant:
32817         * modules/unicase/u16-is-lowercase, modules/unicase/u16-is-titlecase:
32818         * modules/unicase/u16-is-uppercase, modules/unicase/u16-prefix-context:
32819         * modules/unicase/u16-suffix-context, modules/unicase/u16-tolower:
32820         * modules/unicase/u16-totitle, modules/unicase/u16-toupper:
32821         * modules/unicase/u32-casecmp, modules/unicase/u32-casecoll:
32822         * modules/unicase/u32-casefold, modules/unicase/u32-casemap:
32823         * modules/unicase/u32-casexfrm, modules/unicase/u32-ct-casefold:
32824         * modules/unicase/u32-ct-tolower, modules/unicase/u32-ct-totitle:
32825         * modules/unicase/u32-ct-toupper, modules/unicase/u32-is-cased:
32826         * modules/unicase/u32-is-casefolded, modules/unicase/u32-is-invariant:
32827         * modules/unicase/u32-is-lowercase, modules/unicase/u32-is-titlecase:
32828         * modules/unicase/u32-is-uppercase, modules/unicase/u32-prefix-context:
32829         * modules/unicase/u32-suffix-context, modules/unicase/u32-tolower:
32830         * modules/unicase/u32-totitle, modules/unicase/u32-toupper:
32831         * modules/unicase/u8-casecmp, modules/unicase/u8-casecoll:
32832         * modules/unicase/u8-casefold, modules/unicase/u8-casemap:
32833         * modules/unicase/u8-casexfrm, modules/unicase/u8-ct-casefold:
32834         * modules/unicase/u8-ct-tolower, modules/unicase/u8-ct-totitle:
32835         * modules/unicase/u8-ct-toupper, modules/unicase/u8-is-cased:
32836         * modules/unicase/u8-is-casefolded, modules/unicase/u8-is-invariant:
32837         * modules/unicase/u8-is-lowercase, modules/unicase/u8-is-titlecase:
32838         * modules/unicase/u8-is-uppercase, modules/unicase/u8-prefix-context:
32839         * modules/unicase/u8-suffix-context, modules/unicase/u8-tolower:
32840         * modules/unicase/u8-totitle, modules/unicase/u8-toupper:
32841         * modules/unicase/ulc-casecmp, modules/unicase/ulc-casecoll:
32842         * modules/unicase/ulc-casexfrm, modules/unicodeio:
32843         * modules/uniconv/base, modules/uniconv/u16-conv-from-enc:
32844         * modules/uniconv/u16-conv-to-enc:
32845         * modules/uniconv/u16-strconv-from-enc:
32846         * modules/uniconv/u16-strconv-from-locale:
32847         * modules/uniconv/u16-strconv-to-enc:
32848         * modules/uniconv/u16-strconv-to-locale:
32849         * modules/uniconv/u32-conv-from-enc, modules/uniconv/u32-conv-to-enc:
32850         * modules/uniconv/u32-strconv-from-enc:
32851         * modules/uniconv/u32-strconv-from-locale:
32852         * modules/uniconv/u32-strconv-to-enc:
32853         * modules/uniconv/u32-strconv-to-locale:
32854         * modules/uniconv/u8-conv-from-enc, modules/uniconv/u8-conv-to-enc:
32855         * modules/uniconv/u8-strconv-from-enc:
32856         * modules/uniconv/u8-strconv-from-locale:
32857         * modules/uniconv/u8-strconv-to-enc:
32858         * modules/uniconv/u8-strconv-to-locale, modules/unictype/base:
32859         * modules/unictype/bidicategory-all:
32860         * modules/unictype/bidicategory-byname:
32861         * modules/unictype/bidicategory-name, modules/unictype/bidicategory-of:
32862         * modules/unictype/bidicategory-test, modules/unictype/bidiclass-all:
32863         * modules/unictype/bidiclass-byname:
32864         * modules/unictype/bidiclass-longname, modules/unictype/bidiclass-name:
32865         * modules/unictype/bidiclass-of, modules/unictype/bidiclass-test:
32866         * modules/unictype/block-all, modules/unictype/block-list:
32867         * modules/unictype/block-of, modules/unictype/block-test:
32868         * modules/unictype/category-C, modules/unictype/category-Cc:
32869         * modules/unictype/category-Cf, modules/unictype/category-Cn:
32870         * modules/unictype/category-Co, modules/unictype/category-Cs:
32871         * modules/unictype/category-L, modules/unictype/category-LC:
32872         * modules/unictype/category-Ll, modules/unictype/category-Lm:
32873         * modules/unictype/category-Lo, modules/unictype/category-Lt:
32874         * modules/unictype/category-Lu, modules/unictype/category-M:
32875         * modules/unictype/category-Mc, modules/unictype/category-Me:
32876         * modules/unictype/category-Mn, modules/unictype/category-N:
32877         * modules/unictype/category-Nd, modules/unictype/category-Nl:
32878         * modules/unictype/category-No, modules/unictype/category-P:
32879         * modules/unictype/category-Pc, modules/unictype/category-Pd:
32880         * modules/unictype/category-Pe, modules/unictype/category-Pf:
32881         * modules/unictype/category-Pi, modules/unictype/category-Po:
32882         * modules/unictype/category-Ps, modules/unictype/category-S:
32883         * modules/unictype/category-Sc, modules/unictype/category-Sk:
32884         * modules/unictype/category-Sm, modules/unictype/category-So:
32885         * modules/unictype/category-Z, modules/unictype/category-Zl:
32886         * modules/unictype/category-Zp, modules/unictype/category-Zs:
32887         * modules/unictype/category-all, modules/unictype/category-and:
32888         * modules/unictype/category-and-not, modules/unictype/category-byname:
32889         * modules/unictype/category-longname, modules/unictype/category-name:
32890         * modules/unictype/category-none, modules/unictype/category-of:
32891         * modules/unictype/category-or, modules/unictype/category-test:
32892         * modules/unictype/category-test-withtable:
32893         * modules/unictype/combining-class:
32894         * modules/unictype/combining-class-all:
32895         * modules/unictype/combining-class-byname:
32896         * modules/unictype/combining-class-longname:
32897         * modules/unictype/combining-class-name, modules/unictype/ctype-alnum:
32898         * modules/unictype/ctype-alpha, modules/unictype/ctype-blank:
32899         * modules/unictype/ctype-cntrl, modules/unictype/ctype-digit:
32900         * modules/unictype/ctype-graph, modules/unictype/ctype-lower:
32901         * modules/unictype/ctype-print, modules/unictype/ctype-punct:
32902         * modules/unictype/ctype-space, modules/unictype/ctype-upper:
32903         * modules/unictype/ctype-xdigit, modules/unictype/decimal-digit:
32904         * modules/unictype/digit, modules/unictype/joininggroup-all:
32905         * modules/unictype/joininggroup-byname:
32906         * modules/unictype/joininggroup-name, modules/unictype/joininggroup-of:
32907         * modules/unictype/joiningtype-all:
32908         * modules/unictype/joiningtype-byname:
32909         * modules/unictype/joiningtype-longname:
32910         * modules/unictype/joiningtype-name, modules/unictype/joiningtype-of:
32911         * modules/unictype/mirror, modules/unictype/numeric:
32912         * modules/unictype/property-all, modules/unictype/property-alphabetic:
32913         * modules/unictype/property-ascii-hex-digit:
32914         * modules/unictype/property-bidi-arabic-digit:
32915         * modules/unictype/property-bidi-arabic-right-to-left:
32916         * modules/unictype/property-bidi-block-separator:
32917         * modules/unictype/property-bidi-boundary-neutral:
32918         * modules/unictype/property-bidi-common-separator:
32919         * modules/unictype/property-bidi-control:
32920         * modules/unictype/property-bidi-embedding-or-override:
32921         * modules/unictype/property-bidi-eur-num-separator:
32922         * modules/unictype/property-bidi-eur-num-terminator:
32923         * modules/unictype/property-bidi-european-digit:
32924         * modules/unictype/property-bidi-hebrew-right-to-left:
32925         * modules/unictype/property-bidi-left-to-right:
32926         * modules/unictype/property-bidi-non-spacing-mark:
32927         * modules/unictype/property-bidi-other-neutral:
32928         * modules/unictype/property-bidi-pdf:
32929         * modules/unictype/property-bidi-segment-separator:
32930         * modules/unictype/property-bidi-whitespace:
32931         * modules/unictype/property-byname:
32932         * modules/unictype/property-case-ignorable:
32933         * modules/unictype/property-cased:
32934         * modules/unictype/property-changes-when-casefolded:
32935         * modules/unictype/property-changes-when-casemapped:
32936         * modules/unictype/property-changes-when-lowercased:
32937         * modules/unictype/property-changes-when-titlecased:
32938         * modules/unictype/property-changes-when-uppercased:
32939         * modules/unictype/property-combining:
32940         * modules/unictype/property-composite:
32941         * modules/unictype/property-currency-symbol:
32942         * modules/unictype/property-dash:
32943         * modules/unictype/property-decimal-digit:
32944         * modules/unictype/property-default-ignorable-code-point:
32945         * modules/unictype/property-deprecated:
32946         * modules/unictype/property-diacritic:
32947         * modules/unictype/property-extender:
32948         * modules/unictype/property-format-control:
32949         * modules/unictype/property-grapheme-base:
32950         * modules/unictype/property-grapheme-extend:
32951         * modules/unictype/property-grapheme-link:
32952         * modules/unictype/property-hex-digit:
32953         * modules/unictype/property-hyphen:
32954         * modules/unictype/property-id-continue:
32955         * modules/unictype/property-id-start:
32956         * modules/unictype/property-ideographic:
32957         * modules/unictype/property-ids-binary-operator:
32958         * modules/unictype/property-ids-trinary-operator:
32959         * modules/unictype/property-ignorable-control:
32960         * modules/unictype/property-iso-control:
32961         * modules/unictype/property-join-control:
32962         * modules/unictype/property-left-of-pair:
32963         * modules/unictype/property-line-separator:
32964         * modules/unictype/property-logical-order-exception:
32965         * modules/unictype/property-lowercase, modules/unictype/property-math:
32966         * modules/unictype/property-non-break:
32967         * modules/unictype/property-not-a-character:
32968         * modules/unictype/property-numeric:
32969         * modules/unictype/property-other-alphabetic:
32970         * modules/unictype/property-other-default-ignorable-code-point:
32971         * modules/unictype/property-other-grapheme-extend:
32972         * modules/unictype/property-other-id-continue:
32973         * modules/unictype/property-other-id-start:
32974         * modules/unictype/property-other-lowercase:
32975         * modules/unictype/property-other-math:
32976         * modules/unictype/property-other-uppercase:
32977         * modules/unictype/property-paired-punctuation:
32978         * modules/unictype/property-paragraph-separator:
32979         * modules/unictype/property-pattern-syntax:
32980         * modules/unictype/property-pattern-white-space:
32981         * modules/unictype/property-private-use:
32982         * modules/unictype/property-punctuation:
32983         * modules/unictype/property-quotation-mark:
32984         * modules/unictype/property-radical:
32985         * modules/unictype/property-sentence-terminal:
32986         * modules/unictype/property-soft-dotted:
32987         * modules/unictype/property-space:
32988         * modules/unictype/property-terminal-punctuation:
32989         * modules/unictype/property-test, modules/unictype/property-titlecase:
32990         * modules/unictype/property-unassigned-code-value:
32991         * modules/unictype/property-unified-ideograph:
32992         * modules/unictype/property-uppercase:
32993         * modules/unictype/property-variation-selector:
32994         * modules/unictype/property-white-space:
32995         * modules/unictype/property-xid-continue:
32996         * modules/unictype/property-xid-start:
32997         * modules/unictype/property-zero-width, modules/unictype/scripts:
32998         * modules/unictype/scripts-all, modules/unictype/syntax-c-ident:
32999         * modules/unictype/syntax-c-whitespace:
33000         * modules/unictype/syntax-java-ident:
33001         * modules/unictype/syntax-java-whitespace, modules/unigbrk/base:
33002         * modules/unigbrk/u16-grapheme-breaks:
33003         * modules/unigbrk/u16-grapheme-next, modules/unigbrk/u16-grapheme-prev:
33004         * modules/unigbrk/u32-grapheme-breaks:
33005         * modules/unigbrk/u32-grapheme-next, modules/unigbrk/u32-grapheme-prev:
33006         * modules/unigbrk/u8-grapheme-breaks, modules/unigbrk/u8-grapheme-next:
33007         * modules/unigbrk/u8-grapheme-prev, modules/unigbrk/uc-gbrk-prop:
33008         * modules/unigbrk/uc-is-grapheme-break:
33009         * modules/unigbrk/ulc-grapheme-breaks, modules/unilbrk/base:
33010         * modules/unilbrk/tables, modules/unilbrk/u16-possible-linebreaks:
33011         * modules/unilbrk/u16-width-linebreaks:
33012         * modules/unilbrk/u32-possible-linebreaks:
33013         * modules/unilbrk/u32-width-linebreaks:
33014         * modules/unilbrk/u8-possible-linebreaks:
33015         * modules/unilbrk/u8-width-linebreaks, modules/unilbrk/ulc-common:
33016         * modules/unilbrk/ulc-possible-linebreaks:
33017         * modules/unilbrk/ulc-width-linebreaks, modules/uniname/base:
33018         * modules/uniname/uniname, modules/uninorm/base:
33019         * modules/uninorm/canonical-decomposition:
33020         * modules/uninorm/compat-decomposition, modules/uninorm/composition:
33021         * modules/uninorm/decompose-internal, modules/uninorm/decomposing-form:
33022         * modules/uninorm/decomposition, modules/uninorm/decomposition-table:
33023         * modules/uninorm/filter, modules/uninorm/nfc, modules/uninorm/nfd:
33024         * modules/uninorm/nfkc, modules/uninorm/nfkd:
33025         * modules/uninorm/u16-normalize, modules/uninorm/u16-normcmp:
33026         * modules/uninorm/u16-normcoll, modules/uninorm/u16-normxfrm:
33027         * modules/uninorm/u32-normalize, modules/uninorm/u32-normcmp:
33028         * modules/uninorm/u32-normcoll, modules/uninorm/u32-normxfrm:
33029         * modules/uninorm/u8-normalize, modules/uninorm/u8-normcmp:
33030         * modules/uninorm/u8-normcoll, modules/uninorm/u8-normxfrm:
33031         * modules/unistdio/base, modules/unistdio/u-printf-args:
33032         * modules/unistdio/u16-asnprintf, modules/unistdio/u16-asprintf:
33033         * modules/unistdio/u16-printf-parse, modules/unistdio/u16-snprintf:
33034         * modules/unistdio/u16-sprintf, modules/unistdio/u16-u16-asnprintf:
33035         * modules/unistdio/u16-u16-asprintf, modules/unistdio/u16-u16-snprintf:
33036         * modules/unistdio/u16-u16-sprintf:
33037         * modules/unistdio/u16-u16-vasnprintf:
33038         * modules/unistdio/u16-u16-vasprintf:
33039         * modules/unistdio/u16-u16-vsnprintf:
33040         * modules/unistdio/u16-u16-vsprintf, modules/unistdio/u16-vasnprintf:
33041         * modules/unistdio/u16-vasprintf, modules/unistdio/u16-vsnprintf:
33042         * modules/unistdio/u16-vsprintf, modules/unistdio/u32-asnprintf:
33043         * modules/unistdio/u32-asprintf, modules/unistdio/u32-printf-parse:
33044         * modules/unistdio/u32-snprintf, modules/unistdio/u32-sprintf:
33045         * modules/unistdio/u32-u32-asnprintf:
33046         * modules/unistdio/u32-u32-asprintf, modules/unistdio/u32-u32-snprintf:
33047         * modules/unistdio/u32-u32-sprintf:
33048         * modules/unistdio/u32-u32-vasnprintf:
33049         * modules/unistdio/u32-u32-vasprintf:
33050         * modules/unistdio/u32-u32-vsnprintf:
33051         * modules/unistdio/u32-u32-vsprintf, modules/unistdio/u32-vasnprintf:
33052         * modules/unistdio/u32-vasprintf, modules/unistdio/u32-vsnprintf:
33053         * modules/unistdio/u32-vsprintf, modules/unistdio/u8-asnprintf:
33054         * modules/unistdio/u8-asprintf, modules/unistdio/u8-printf-parse:
33055         * modules/unistdio/u8-snprintf, modules/unistdio/u8-sprintf:
33056         * modules/unistdio/u8-u8-asnprintf, modules/unistdio/u8-u8-asprintf:
33057         * modules/unistdio/u8-u8-snprintf, modules/unistdio/u8-u8-sprintf:
33058         * modules/unistdio/u8-u8-vasnprintf, modules/unistdio/u8-u8-vasprintf:
33059         * modules/unistdio/u8-u8-vsnprintf, modules/unistdio/u8-u8-vsprintf:
33060         * modules/unistdio/u8-vasnprintf, modules/unistdio/u8-vasprintf:
33061         * modules/unistdio/u8-vsnprintf, modules/unistdio/u8-vsprintf:
33062         * modules/unistdio/ulc-asnprintf, modules/unistdio/ulc-asprintf:
33063         * modules/unistdio/ulc-fprintf, modules/unistdio/ulc-printf-parse:
33064         * modules/unistdio/ulc-snprintf, modules/unistdio/ulc-sprintf:
33065         * modules/unistdio/ulc-vasnprintf, modules/unistdio/ulc-vasprintf:
33066         * modules/unistdio/ulc-vfprintf, modules/unistdio/ulc-vsnprintf:
33067         * modules/unistdio/ulc-vsprintf, modules/unistr/base:
33068         * modules/unistr/u16-check, modules/unistr/u16-chr:
33069         * modules/unistr/u16-cmp, modules/unistr/u16-cmp2:
33070         * modules/unistr/u16-cpy, modules/unistr/u16-cpy-alloc:
33071         * modules/unistr/u16-endswith, modules/unistr/u16-mblen:
33072         * modules/unistr/u16-mbsnlen, modules/unistr/u16-mbtouc:
33073         * modules/unistr/u16-mbtouc-unsafe, modules/unistr/u16-mbtoucr:
33074         * modules/unistr/u16-move, modules/unistr/u16-next:
33075         * modules/unistr/u16-prev, modules/unistr/u16-set:
33076         * modules/unistr/u16-startswith, modules/unistr/u16-stpcpy:
33077         * modules/unistr/u16-stpncpy, modules/unistr/u16-strcat:
33078         * modules/unistr/u16-strchr, modules/unistr/u16-strcmp:
33079         * modules/unistr/u16-strcoll, modules/unistr/u16-strcpy:
33080         * modules/unistr/u16-strcspn, modules/unistr/u16-strdup:
33081         * modules/unistr/u16-strlen, modules/unistr/u16-strmblen:
33082         * modules/unistr/u16-strmbtouc, modules/unistr/u16-strncat:
33083         * modules/unistr/u16-strncmp, modules/unistr/u16-strncpy:
33084         * modules/unistr/u16-strnlen, modules/unistr/u16-strpbrk:
33085         * modules/unistr/u16-strrchr, modules/unistr/u16-strspn:
33086         * modules/unistr/u16-strstr, modules/unistr/u16-strtok:
33087         * modules/unistr/u16-to-u32, modules/unistr/u16-to-u8:
33088         * modules/unistr/u16-uctomb, modules/unistr/u32-check:
33089         * modules/unistr/u32-chr, modules/unistr/u32-cmp:
33090         * modules/unistr/u32-cmp2, modules/unistr/u32-cpy:
33091         * modules/unistr/u32-cpy-alloc, modules/unistr/u32-endswith:
33092         * modules/unistr/u32-mblen, modules/unistr/u32-mbsnlen:
33093         * modules/unistr/u32-mbtouc, modules/unistr/u32-mbtouc-unsafe:
33094         * modules/unistr/u32-mbtoucr, modules/unistr/u32-move:
33095         * modules/unistr/u32-next, modules/unistr/u32-prev:
33096         * modules/unistr/u32-set, modules/unistr/u32-startswith:
33097         * modules/unistr/u32-stpcpy, modules/unistr/u32-stpncpy:
33098         * modules/unistr/u32-strcat, modules/unistr/u32-strchr:
33099         * modules/unistr/u32-strcmp, modules/unistr/u32-strcoll:
33100         * modules/unistr/u32-strcpy, modules/unistr/u32-strcspn:
33101         * modules/unistr/u32-strdup, modules/unistr/u32-strlen:
33102         * modules/unistr/u32-strmblen, modules/unistr/u32-strmbtouc:
33103         * modules/unistr/u32-strncat, modules/unistr/u32-strncmp:
33104         * modules/unistr/u32-strncpy, modules/unistr/u32-strnlen:
33105         * modules/unistr/u32-strpbrk, modules/unistr/u32-strrchr:
33106         * modules/unistr/u32-strspn, modules/unistr/u32-strstr:
33107         * modules/unistr/u32-strtok, modules/unistr/u32-to-u16:
33108         * modules/unistr/u32-to-u8, modules/unistr/u32-uctomb:
33109         * modules/unistr/u8-check, modules/unistr/u8-chr:
33110         * modules/unistr/u8-cmp, modules/unistr/u8-cmp2, modules/unistr/u8-cpy:
33111         * modules/unistr/u8-cpy-alloc, modules/unistr/u8-endswith:
33112         * modules/unistr/u8-mblen, modules/unistr/u8-mbsnlen:
33113         * modules/unistr/u8-mbtouc, modules/unistr/u8-mbtouc-unsafe:
33114         * modules/unistr/u8-mbtoucr, modules/unistr/u8-move:
33115         * modules/unistr/u8-next, modules/unistr/u8-prev:
33116         * modules/unistr/u8-set, modules/unistr/u8-startswith:
33117         * modules/unistr/u8-stpcpy, modules/unistr/u8-stpncpy:
33118         * modules/unistr/u8-strcat, modules/unistr/u8-strchr:
33119         * modules/unistr/u8-strcmp, modules/unistr/u8-strcoll:
33120         * modules/unistr/u8-strcpy, modules/unistr/u8-strcspn:
33121         * modules/unistr/u8-strdup, modules/unistr/u8-strlen:
33122         * modules/unistr/u8-strmblen, modules/unistr/u8-strmbtouc:
33123         * modules/unistr/u8-strncat, modules/unistr/u8-strncmp:
33124         * modules/unistr/u8-strncpy, modules/unistr/u8-strnlen:
33125         * modules/unistr/u8-strpbrk, modules/unistr/u8-strrchr:
33126         * modules/unistr/u8-strspn, modules/unistr/u8-strstr:
33127         * modules/unistr/u8-strtok, modules/unistr/u8-to-u16:
33128         * modules/unistr/u8-to-u32, modules/unistr/u8-uctomb, modules/unitypes:
33129         * modules/uniwbrk/base, modules/uniwbrk/table:
33130         * modules/uniwbrk/u16-wordbreaks, modules/uniwbrk/u32-wordbreaks:
33131         * modules/uniwbrk/u8-wordbreaks, modules/uniwbrk/ulc-wordbreaks:
33132         * modules/uniwbrk/wordbreak-property, modules/uniwidth/base:
33133         * modules/uniwidth/u16-strwidth, modules/uniwidth/u16-width:
33134         * modules/uniwidth/u32-strwidth, modules/uniwidth/u32-width:
33135         * modules/uniwidth/u8-strwidth, modules/uniwidth/u8-width:
33136         * modules/uniwidth/width, modules/utf16-ucs4:
33137         * modules/utf16-ucs4-unsafe, modules/utf8-ucs4:
33138         * modules/utf8-ucs4-unsafe:
33139         Change maintainer from Bruno Haible to Daiki Ueno.
33140         This is my guess at the libunistring modules; please feel free
33141         to fix if I guessed incorrectly.
33142         * modules/accept4, modules/acl, modules/acos, modules/acosf:
33143         * modules/alignof, modules/amemxfrm, modules/ansi-c++-opt:
33144         * modules/areadlink, modules/array-list, modules/array-mergesort:
33145         * modules/array-oset, modules/asin, modules/asinf, modules/astrxfrm:
33146         * modules/atan, modules/atan2, modules/atan2f, modules/atanf:
33147         * modules/avltree-list, modules/avltree-oset, modules/avltreehash-list:
33148         * modules/binary-io, modules/bison-i18n, modules/btowc:
33149         * modules/c-ctype, modules/c-strcase, modules/c-strcaseeq:
33150         * modules/c-strcasestr, modules/c-strstr, modules/calloc-posix:
33151         * modules/canonicalize-lgpl, modules/careadlinkat, modules/carray-list:
33152         * modules/cbrt, modules/cbrt-ieee, modules/cbrtf, modules/cbrtf-ieee:
33153         * modules/cbrtl, modules/cbrtl-ieee, modules/ceil, modules/ceil-ieee:
33154         * modules/ceilf, modules/ceilf-ieee, modules/ceill, modules/ceill-ieee:
33155         * modules/chdir, modules/classpath, modules/clean-temp, modules/close:
33156         * modules/closedir, modules/concat-filename, modules/copy-file:
33157         * modules/copysign, modules/copysignf, modules/copysignl, modules/cos:
33158         * modules/cosf, modules/cosh, modules/coshf, modules/csharpcomp:
33159         * modules/csharpcomp-script, modules/csharpexec:
33160         * modules/csharpexec-script, modules/ctype, modules/diffseq:
33161         * modules/dprintf, modules/dprintf-posix, modules/dup:
33162         * modules/dup2-obsolete, modules/dup3, modules/duplocale:
33163         * modules/eealloc, modules/environ, modules/erf, modules/erfc:
33164         * modules/errno, modules/execute, modules/exp, modules/exp-ieee:
33165         * modules/exp2, modules/exp2-ieee, modules/exp2f, modules/exp2f-ieee:
33166         * modules/exp2l, modules/exp2l-ieee, modules/expf, modules/expf-ieee:
33167         * modules/expl, modules/expl-ieee, modules/expm1, modules/expm1-ieee:
33168         * modules/expm1f, modules/expm1f-ieee, modules/expm1l:
33169         * modules/expm1l-ieee, modules/fabs, modules/fabs-ieee, modules/fabsf:
33170         * modules/fabsf-ieee, modules/fabsl, modules/fabsl-ieee:
33171         * modules/fatal-signal, modules/fbufmode, modules/fchdir:
33172         * modules/fclose, modules/fd-hook, modules/fdopen, modules/filename:
33173         * modules/findprog, modules/findprog-lgpl, modules/floor:
33174         * modules/floor-ieee, modules/floorf, modules/floorf-ieee:
33175         * modules/floorl, modules/floorl-ieee, modules/fma, modules/fma-ieee:
33176         * modules/fmaf, modules/fmaf-ieee, modules/fmal, modules/fmal-ieee:
33177         * modules/fmod, modules/fmod-ieee, modules/fmodf, modules/fmodf-ieee:
33178         * modules/fmodl, modules/fmodl-ieee, modules/fopen, modules/fpieee:
33179         * modules/fprintf-posix, modules/fpucw, modules/fpurge:
33180         * modules/freadable, modules/freadahead, modules/freadptr:
33181         * modules/freadseek, modules/freopen, modules/frexp:
33182         * modules/frexp-ieee, modules/frexp-nolibm, modules/frexpf:
33183         * modules/frexpf-ieee, modules/frexpl, modules/frexpl-ieee:
33184         * modules/frexpl-nolibm, modules/fseek, modules/fseeko:
33185         * modules/fseterr, modules/fstat, modules/fstrcmp, modules/ftell:
33186         * modules/ftello, modules/full-read, modules/full-write:
33187         * modules/fwritable, modules/fwriteerror, modules/gcd:
33188         * modules/get-rusage-as, modules/get-rusage-data:
33189         * modules/getdtablesize, modules/getrusage, modules/gettext:
33190         * modules/gettext-h, modules/git-merge-changelog, modules/gperf:
33191         * modules/grantpt, modules/havelib, modules/host-cpu-c-abi:
33192         * modules/hostent, modules/hypot, modules/hypot-ieee, modules/hypotf:
33193         * modules/hypotf-ieee, modules/hypotl, modules/hypotl-ieee:
33194         * modules/iconv, modules/iconv-h, modules/iconv_open:
33195         * modules/iconv_open-utf, modules/idpriv-drop, modules/idpriv-droptemp:
33196         * modules/ilogb, modules/ilogbf, modules/ilogbl, modules/imaxabs:
33197         * modules/imaxdiv, modules/integer_length, modules/integer_length_l:
33198         * modules/integer_length_ll, modules/ioctl, modules/isatty:
33199         * modules/isblank, modules/isnand, modules/isnand-nolibm:
33200         * modules/isnanf, modules/isnanf-nolibm, modules/isnanl:
33201         * modules/isnanl-nolibm, modules/iswblank, modules/iswctype:
33202         * modules/j0, modules/j1, modules/javacomp, modules/javacomp-script:
33203         * modules/javaexec, modules/javaexec-script, modules/javaversion:
33204         * modules/jn, modules/langinfo, modules/ldd, modules/ldexp:
33205         * modules/ldexp-ieee, modules/ldexpf, modules/ldexpf-ieee:
33206         * modules/ldexpl, modules/ldexpl-ieee, modules/lgamma:
33207         * modules/lib-symbol-visibility, modules/libsigsegv:
33208         * modules/linked-list, modules/linkedhash-list, modules/list:
33209         * modules/localcharset, modules/locale, modules/localeconv:
33210         * modules/localename, modules/lock, modules/log, modules/log-ieee:
33211         * modules/log10, modules/log10-ieee, modules/log10f:
33212         * modules/log10f-ieee, modules/log10l, modules/log10l-ieee:
33213         * modules/log1p, modules/log1p-ieee, modules/log1pf:
33214         * modules/log1pf-ieee, modules/log1pl, modules/log1pl-ieee:
33215         * modules/log2, modules/log2-ieee, modules/log2f, modules/log2f-ieee:
33216         * modules/log2l, modules/log2l-ieee, modules/logb, modules/logb-ieee:
33217         * modules/logbf, modules/logbf-ieee, modules/logbl, modules/logbl-ieee:
33218         * modules/logf, modules/logf-ieee, modules/login_tty:
33219         * modules/logl-ieee, modules/malloc-posix, modules/malloca:
33220         * modules/mbchar, modules/mbfile, modules/mbiter, modules/mbmemcasecmp:
33221         * modules/mbmemcasecoll, modules/mbrlen, modules/mbrtowc:
33222         * modules/mbscasecmp, modules/mbscasestr, modules/mbschr:
33223         * modules/mbscspn, modules/mbsinit, modules/mbslen:
33224         * modules/mbsncasecmp, modules/mbsnlen, modules/mbsnrtowcs:
33225         * modules/mbspbrk, modules/mbspcasecmp, modules/mbsrchr:
33226         * modules/mbsrtowcs, modules/mbssep, modules/mbsspn, modules/mbsstr:
33227         * modules/mbstok_r, modules/mbswidth, modules/mbtowc, modules/mbuiter:
33228         * modules/memchr-obsolete, modules/memcmp2, modules/minmax:
33229         * modules/mkdtemp, modules/mkostemp, modules/mktime-internal:
33230         * modules/modf, modules/modf-ieee, modules/modff, modules/modff-ieee:
33231         * modules/modfl, modules/modfl-ieee, modules/msvc-inval:
33232         * modules/msvc-nothrow, modules/multiarch, modules/nextafter:
33233         * modules/nl_langinfo, modules/no-c++, modules/nocrash:
33234         * modules/nonblocking, modules/open, modules/opendir, modules/openmp:
33235         * modules/oset, modules/pclose, modules/pipe, modules/pipe-filter-gi:
33236         * modules/pipe-filter-ii, modules/pipe2, modules/poll-h:
33237         * modules/posix_spawn, modules/posix_spawn-internal:
33238         * modules/posix_spawn_file_actions_addclose:
33239         * modules/posix_spawn_file_actions_adddup2:
33240         * modules/posix_spawn_file_actions_addopen:
33241         * modules/posix_spawn_file_actions_destroy:
33242         * modules/posix_spawn_file_actions_init:
33243         * modules/posix_spawnattr_destroy, modules/posix_spawnattr_getflags:
33244         * modules/posix_spawnattr_getpgroup:
33245         * modules/posix_spawnattr_getschedparam:
33246         * modules/posix_spawnattr_getschedpolicy:
33247         * modules/posix_spawnattr_getsigdefault:
33248         * modules/posix_spawnattr_getsigmask, modules/posix_spawnattr_init:
33249         * modules/posix_spawnattr_setflags, modules/posix_spawnattr_setpgroup:
33250         * modules/posix_spawnattr_setschedparam:
33251         * modules/posix_spawnattr_setschedpolicy:
33252         * modules/posix_spawnattr_setsigdefault:
33253         * modules/posix_spawnattr_setsigmask, modules/posix_spawnp:
33254         * modules/pow, modules/powf, modules/printf-frexp:
33255         * modules/printf-frexpl, modules/printf-posix, modules/printf-safe:
33256         * modules/progname, modules/propername, modules/pselect:
33257         * modules/pthread_sigmask, modules/ptsname, modules/ptsname_r:
33258         * modules/qacl, modules/quotearg-simple, modules/raise, modules/random:
33259         * modules/rbtree-list, modules/rbtree-oset, modules/rbtreehash-list:
33260         * modules/read, modules/readdir, modules/readlink:
33261         * modules/realloc-posix, modules/regex-quote, modules/relocatable-lib:
33262         * modules/relocatable-lib-lgpl, modules/relocatable-perl:
33263         * modules/relocatable-prog, modules/relocatable-prog-wrapper:
33264         * modules/relocatable-script, modules/remainder:
33265         * modules/remainder-ieee, modules/remainderf, modules/remainderf-ieee:
33266         * modules/remainderl, modules/remainderl-ieee, modules/rewinddir:
33267         * modules/rint, modules/rint-ieee, modules/rintf, modules/rintf-ieee:
33268         * modules/rintl, modules/rintl-ieee, modules/round-ieee:
33269         * modules/roundf-ieee, modules/roundl-ieee, modules/safe-read:
33270         * modules/safe-write, modules/sched, modules/servent, modules/setenv:
33271         * modules/setlocale, modules/sh-quote, modules/shutdown:
33272         * modules/signal, modules/signbit, modules/sigpipe:
33273         * modules/sigpipe-die, modules/sigprocmask, modules/sin, modules/sinf:
33274         * modules/sinh, modules/sinhf, modules/size_max, modules/sleep:
33275         * modules/snippet/arg-nonnull, modules/snippet/c++defs:
33276         * modules/snippet/link-warning, modules/snippet/unused-parameter:
33277         * modules/snprintf, modules/snprintf-posix, modules/spawn:
33278         * modules/spawn-pipe, modules/sprintf-posix, modules/sqrt:
33279         * modules/sqrt-ieee, modules/sqrtf, modules/sqrtf-ieee:
33280         * modules/sqrtl-ieee, modules/stdalign, modules/stdarg:
33281         * modules/stdbool, modules/stpcpy, modules/stpncpy, modules/strcase:
33282         * modules/strcasestr, modules/strcasestr-simple, modules/strcspn:
33283         * modules/streq, modules/strerror_r-posix, modules/striconv:
33284         * modules/striconveh, modules/striconveha, modules/strncat:
33285         * modules/strnlen1, modules/strpbrk, modules/strtod-obsolete:
33286         * modules/sublist, modules/sys_resource, modules/sys_utsname:
33287         * modules/sys_wait, modules/system-posix, modules/system-quote:
33288         * modules/tan, modules/tanf, modules/tanh, modules/tanhf:
33289         * modules/tcgetsid, modules/termios, modules/threadlib, modules/tls:
33290         * modules/tmpdir, modules/towctrans, modules/trunc, modules/trunc-ieee:
33291         * modules/truncf, modules/truncf-ieee, modules/truncl:
33292         * modules/truncl-ieee, modules/ttyname_r, modules/uname:
33293         * modules/unlockpt, modules/unsetenv, modules/vasnprintf:
33294         * modules/vasnprintf-posix, modules/vasprintf, modules/vasprintf-posix:
33295         * modules/vdprintf, modules/vdprintf-posix, modules/vfprintf-posix:
33296         * modules/vfscanf, modules/vma-iter, modules/vprintf-posix:
33297         * modules/vscanf, modules/vsnprintf-posix, modules/vsprintf-posix:
33298         * modules/wait-process, modules/waitpid, modules/wcpcpy:
33299         * modules/wcpncpy, modules/wcrtomb, modules/wcscasecmp, modules/wcscat:
33300         * modules/wcschr, modules/wcscmp, modules/wcscoll, modules/wcscpy:
33301         * modules/wcscspn, modules/wcsdup, modules/wcslen, modules/wcsncasecmp:
33302         * modules/wcsncat, modules/wcsncmp, modules/wcsncpy, modules/wcsnlen:
33303         * modules/wcsnrtombs, modules/wcspbrk, modules/wcsrchr:
33304         * modules/wcsrtombs, modules/wcsspn, modules/wcsstr, modules/wcstok:
33305         * modules/wcswidth, modules/wcsxfrm, modules/wctob, modules/wctomb:
33306         * modules/wctrans, modules/wctype, modules/wcwidth, modules/wmemchr:
33307         * modules/wmemcmp, modules/wmemcpy, modules/wmemmove, modules/wmemset:
33308         * modules/write, modules/xconcat-filename, modules/xlist:
33309         * modules/xmalloca, modules/xoset, modules/xprintf-posix:
33310         * modules/xreadlink, modules/xsetenv, modules/xsize, modules/xstriconv:
33311         * modules/xstriconveh, modules/xsublist, modules/xvasprintf-posix:
33312         * modules/y0, modules/y1, modules/yn:
33313         Remove Bruno Haible as maintainer; if he's the sole maintainer,
33314         change the maintainer to 'all'.  Let's hope someone volunteers.
33316 2014-06-27  Paul Eggert  <eggert@cs.ucla.edu>
33318         mktime: merge #if/#ifdef usage from glibc
33319         * lib/mktime.c: Use "#if defined DEBUG && DEBUG", not "#if DEBUG",
33320         as that works with both Glibc's and Gnulib's style.
33321         See thread starting at Siddhesh Poyarekar's bug report at:
33322         http://lists.gnu.org/r/bug-gnulib/2014-06/msg00102.html
33324 2014-06-20  Alfred M. Szmidt  <ams@gnu.org>
33326         git-version-gen: improve option descriptions
33327         * build-aux/git-version-gen: Mention that --prefix and --fallback
33328         have a mandatory argument.
33330 2014-06-19  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33332         regex: fix memory leak in compiler
33333         Fix by Andreas Schwab in:
33334         https://sourceware.org/ml/libc-alpha/2014-06/msg00462.html
33335         * lib/regcomp.c (parse_expression): Deallocate partially
33336         constructed tree before returning error.
33338         regex: merge patch from libc
33339         2014-02-12  Joseph Myers  <joseph@codesourcery.com>
33340         Combine __USE_BSD and __USE_SVID into __USE_MISC.
33341         * lib/regex.h [__USE_BSD]: Change condition to [__USE_MISC].
33343 2014-06-17  Paul Eggert  <eggert@cs.ucla.edu>
33345         acl: port to gcc -Wredundant-decls
33346         From a request by Dmitry Antipov in:
33347         http://lists.gnu.org/r/emacs-devel/2014-06/msg00263.html
33348         * lib/acl.h (_GL_ACL_H): New macro.  Protect entire contents with
33349         "#ifndef _GL_ACL_H".
33351 2014-06-11  Bruce Korb  <bkorb@gnu.org>
33352         Jim Meyering  <meyering@fb.com>
33354         parse-duration: eliminate 68-year duration limit
33355         * lib/parse-duration.c: Include "intprops.h".
33356         (TIME_MAX): Rename to MAX_DURATION and define to
33357         TYPE_MAXIMUM(time_t).
33358         * modules/parse-duration (Depends-on): Add intprops.
33359         Reported by Jonas 'Sortie' Termansen.
33361 2014-06-14  Paul Eggert  <eggert@cs.ucla.edu>
33363         pthread: don't assume AC_CANONICAL_HOST, port better to Solaris, etc.
33364         * modules/pthread (Depends-on): Add 'extensions', as it defines
33365         _POSIX_PTHREAD_SEMANTICS, which is needed on Solaris.
33366         (configure.ac-early): New section.
33367         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, as
33368         it is no longer needed.
33370 2014-06-14  Pádraig Brady  <P@draigBrady.com>
33372         pthread: define thread-safe macros on some platforms
33373         * m4/pthread.m4 (gl_PTHREAD_CHECK): Define macros needed
33374         for thread-safe operation on some platforms.
33376 2014-06-13  Paul Eggert  <eggert@cs.ucla.edu>
33378         regex: don't be multithreaded if USE_UNLOCKED_IO.
33379         Problem reported by Michael Felt in: http://bugs.gnu.org/17773
33380         * lib/regex_internal.h: Do not use multithreaded version if
33381         USE_UNLOCKED_IO is defined.  This is a hack, but it works
33382         around a porting bug with coreutils 8.22 on AIX 7.1.
33384 2014-06-11  Daiki Ueno  <ueno@gnu.org>
33386         gettext: update macros to version 0.19
33387         * m4/intl.m4, m4/po.m4: Update from gettext-0.19.  In particular,
33388         depend on gl_EXTERN_INLINE and drop support for older Bison
33389         versions.
33391 2014-06-10  Pádraig Brady  <P@draigBrady.com>
33393         select,poll: fix console handle check on windows 8
33394         lib/poll.c (IsConsoleHandle): Change from testing the lower
33395         2 bits of the handle to the more expensive but accurate syscall.
33396         lib/select.c: Likewise.
33398 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33400         select: fix waiting on anonymous pipes on MS-Windows
33401         * lib/select.c (rpl_select): Fall back to polling when select()
33402         indicates there is nothing to check, while due to the timeout not
33403         expiring, activity is indicated on one of the handles.
33404         Also clear the TIMEOUT argument if the timer does expire.
33406 2014-06-10  Eli Zaretskii  <eliz@gnu.org>
33408         times: fix to return non constant value on MS-Windows
33409         * lib/times.c (times): Don't use the process creation time,
33410         rather clock() which on windows returns the number of
33411         clock ticks since the process started.
33413 2014-06-09  Michael Goffioul  <michael.goffioul@gmail.com>
33415         isatty: fix to work on windows 8
33416         * lib/isatty.c (IsConsoleHandle): Change from testing the lower
33417         2 bits of the handle to the more expensive but accurate syscall.
33419 2014-06-07  Paul Eggert  <eggert@cs.ucla.edu>
33421         maint: fix typo in fdl.texi
33422         * doc/fdl.texi: Fix typo (missing '@').
33423         Somehow this was in fdl.texi but not fdl-1.3.texi.
33425 2014-06-06  Ben Walton  <bdwalton@gmail.com>
33427         mountlist: avoid hasmntopt const type warning on solaris
33428         * lib/mountlist.c: Solaris defines the OPT param of hasmntopt()
33429         with char * instead of const char *.  Passing the constant string
33430         "ignore" generates a compiler warning.  For Solaris cast MNT_IGNORE
33431         to avoid the warning.
33433 2014-06-04  Eric Blake  <eblake@redhat.com>
33435         maintainer-makefile: delete obsolete code
33436         * top/maint.mk (build_aux): Drop old code, as threatened.
33438         maintainer-makefile: avoid spurious error messages
33439         * top/maint.mk (syntax-check): Guard definition and use of
33440         $(shell) by whether Makefile is present.
33442 2014-06-03  Ben Walton  <bdwalton@gmail.com>
33444         rename: avoid unused-but-set-variable compiler warning
33445         * lib/rename.c (rpl_rename):  In the non-Win32 variant of rpl_rename,
33446         it is possible that dst_exists may be set but not used.  Mark it with
33447         the unused attribute to avoid compiler warnings.
33449 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33451         rename: mark a label as potentially unused
33452         * lib/rename.c (rpl_rename): Avoid compiler warnings seen on Solaris,
33453         by marking the out label as potentially unused.
33454         * m4/gnulib-common.m4: Mention the need for the trailing ; for C++.
33456 2014-06-01  Paul Eggert  <eggert@cs.ucla.edu>
33458         gnulib-common.m4: Fix typo in _GL_UNUSED_LABEL.
33459         * m4/gnulib-common.m4 (_GL_UNUSED_LABEL): Omit trailing semicolon.
33461 2014-06-02  Ben Walton  <bdwalton@gmail.com>
33463         acl: apply pure attribute to two functions
33464         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial):
33465         Mark as "pure" as flagged by gcc 4.9 on Solaris 10.
33467 2014-06-01  Pádraig Brady  <P@draigBrady.com>
33469         gnulib-common.m4: add _GL_UNUSED_LABEL
33470         * m4/gnulib-common.m4: Add _GL_UNUSED_LABEL which is similar to
33471         _GL_UNUSED, but handles g++ < 4.5 not supporting this syntax.
33473 2014-05-31  Paul Eggert  <eggert@cs.ucla.edu>
33475         dup2, fcntl, fcntl-h: port to AIX 7.1
33476         This fixes some porting problems discovered when testing the latest
33477         grep snapshot on AIX 7.1.  I don't think if fixes any bugs
33478         in grep but it could be important for other applications.
33479         * doc/posix-functions/dup2.texi:
33480         * doc/posix-functions/fcntl.texi:
33481         * doc/posix-headers/fcntl.texi:
33482         Document AIX bugs.
33483         * lib/fcntl.in.h (O_CLOEXEC, O_NOFOLLOW, O_TTY_INIT) [_AIX]:
33484         Define to 0 if outside 'int' range.
33485         * m4/dup2.m4 (gl_FUNC_DUP2):
33486         * m4/fcntl.m4 (gl_FUNC_FCNTL):
33487         Check for getdtablesize.  If it's available, test a value just
33488         outside its range instead of testing 1000000.  When cross-compiling,
33489         guess that AIX will fail this improved test.
33491 2014-05-30  Paul Eggert  <eggert@cs.ucla.edu>
33493         printf, config.rpath: Port to FreeBSD 10.
33494         Problem reported by Tijl Coosemans in:
33495         http://lists.gnu.org/r/bug-gnulib/2014-05/msg00078.html
33496         * build-aux/config.rpath (hardcode_libdir_flag_spec)
33497         (hardcode_direct): Simplify FreeBSD configuration.
33498         (library_names_spec): Don't mishandle FreeBSD 10+.
33499         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE)
33500         (gl_PRINTF_INFINITE_LONG_DOUBLE, gl_PRINTF_DIRECTIVE_F)
33501         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99)
33502         (gl_SNPRINTF_DIRECTIVE_N, gl_VSNPRINTF_ZEROSIZE_C99):
33503         Don't mishandle FreeBSD 10+ when cross-compiling.
33505         ftoastr: work around compiler bug in IBM xlc 12.1
33506         * lib/ftoastr.h (_GL_FLT_PREC_BOUND, _GL_DBL_PREC_BOUND)
33507         (_GL_LDBL_PREC_BOUND): Make these macros, not enums, to work
33508         around a compiler bug in IBM xlc 12.1.0.0: it complains
33509         '"ftoastr.c", line 80.37: 1506-045 (S) Undeclared identifier
33510         _GL_FLT_PREC_BOUND.'
33512 2014-05-30  Kieran Colford  <colfordk@gmail.com>
33514         valgrind-tests: fixed misleading help message
33515         * m4/valgrind-tests.m4: The help message generated by configure
33516         implied that valgrind was disabled by default, which it wasn't.
33517         Adjusted the help message using s/enable/disable/ to clarify.
33519 2014-05-30  Ulrich Weigand  <uweigand@de.ibm.com>
33521         isfinite, isinf, isnan tests: fix for little-endian PowerPC
33522         * tests/test-isfinite.c (test_isfinitel): Only manipulate the
33523         first double of a PowerPC "double double" pair.
33524         * tests/test-isinf.c (test_isinfl): Likewise.
33525         * tests/test-isnan.c (test_long_double): Likewise.
33526         * tests/test-isnanl.h (main): Likewise.
33527         * tests/test-signbit.c (test_signbitl): Likewise.
33529 2014-05-29  Paul Eggert  <eggert@cs.ucla.edu>
33531         exclude-tests: port to AIX 7.1
33532         * modules/exclude-tests (test_exclude_LDADD): Add $(LIBTHREAD).
33533         Needed on AIX 7.1 with xlc V12.1, otherwise it won't link because
33534         the regex code uses locks.
33536 2014-05-28  Paul Eggert  <eggert@cs.ucla.edu>
33538         pthread_sigmask, timer-time: use gl_THREADLIB only if needed
33539         Without this fix, Emacs would sometimes call sigprocmask instead
33540         of pthread_sigmask, which is a no-no in multithreaded applications.
33541         Problem reported by Jorgen Schaefer in <http://bugs.gnu.org/17561>.
33542         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
33543         Suppress check for pthread_sigmask working without -lpthread if
33544         the application always links with -lpthread.  Do not link with
33545         $LIBMULTITHREAD if gl_THREADLIB is not defined.
33546         * m4/timer_time.m4 (gl_TIMER_TIME):
33547         Require gl_THREADLIB only if it is defined.  Do not append
33548         $LIBMULTITHREAD to LIB_TIMER_TIME if gl_THREADLIB is not defined.
33550 2014-05-27  Sylvain Beucler  <beuc@beuc.net>.
33552         gnulib-tool: wget translations using --no-verbose rather than --quiet
33553         This allows the user to see error messages if any (--quiet hides them)
33554         * gnulib-tool: Invoke wget with --no-verbose, rather than --quiet.
33556 2014-05-27  Sylvain Beucler  <beuc@beuc.net>
33558         gnulib-tool: adjust translation wget to avoid a https redirection
33559         Context: http://translationproject.org/latest/gnulib redirects to
33560            https://translationproject.org/latest/gnulib/
33561         Rationale: if the user falls back to wget, she doesn't have rsync and
33562         is probably in a minimal build environment, where packages such as
33563         'ca-certificates' are missing as well, resulting in a failed (and
33564         difficult to detect since ignored) translation initial fetch.
33565         Consequently let's avoid https if possible, and add the missing
33566         trailing slash.  This also avoids an unnecessary 302 redirection.
33567         * gnulib-tool: Add trailing slash to gnulib URL.
33569 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33571         getlogin_r-tests: check return value rather than errno
33572         * tests/test-getlogin_r.c (main): As per POSIX we should be
33573         verifying the return value from getlogin_r() rather than errno.
33575 2014-05-22  Pádraig Brady  <P@draigBrady.com>
33577         getlogin_r-tests: fix various issues in recent change
33578         * tests/test-getlogin_r.c: Include required headers that were
33579         missed in recent commit eec20b4e.
33580         Also consistently check the errno rather than the return value from
33581         getlogin_r as POSIX only specifies that non zero is returned on error.
33582         * modules/getlogin_r-tests (configure.ac): Add the check for ttyname().
33584 2014-05-21  Paul Eggert  <eggert@cs.ucla.edu>
33586         fchdir: port 'open' and 'close' redefinitions to AIX 7.1
33587         * lib/chown.c, lib/clean-temp.c, lib/copy-file.c, lib/execute.c:
33588         * lib/fsusage.c, lib/gc-gnulib.c, lib/javacomp.c, lib/mountlist.c:
33589         * lib/openat-proc.c, lib/pagealign_alloc.c, lib/progreloc.c:
33590         * lib/spawn-pipe.c:
33591         Do not #undef 'open' and 'close'.  AIX 7 does '#define open open64'
33592         and then 'int open64(const char *, int, ...);', which means the
33593         declaration for 'open' gets lost if we later '#undef open'.
33594         Discovered while building grep pretest 2.18.151-1c770 on AIX 7.1,
33595         where the compilation reported the non-fatal error "In function
33596         'openat_proc_name' ... warning: implicit declaration of function
33597         'open'".  In this case the error is relatively harmless, but in
33598         other cases it might not be so minor.
33600 2014-05-20  Paul Eggert  <eggert@cs.ucla.edu>
33602         xalloc: don't potentially generate invalid code for xmemdup calls
33603         * lib/xalloc.h (xmemdup): Do not mark with _GL_ATTRIBUTE_ALLOC, as
33604         this function can initialize the newly-allocated storage with new
33605         pointers, which means this function is not malloc-like.  See:
33606         https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56955
33608 2014-05-19  Pádraig Brady  <P@draigBrady.com>
33610         getlogin_r-tests: avoid false failure under sudo/ssh etc.
33611         * tests/test-getlogin_r.c (main): Sync up with test-getlogin.c
33612         changes from commit 97249cf29 to not depend on environment variables.
33614 2014-05-18  Pádraig Brady  <P@draigBrady.com>
33616         getlogin-tests: avoid false failure under cron
33617         * tests/test-getlogin.c (main): Avoid verifying errnos from ttyname()
33618         since that's not what's under test.  Centos 6 was seen to return
33619         EINVAL for ttyname() when run from cron.
33621 2014-05-16  Jim Meyering  <meyering@fb.com>
33623         mbrtowc.m4: fix a comment typo
33624         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Fix typo s/2/-2/ in
33625         emitted documentation string.
33627 2014-05-16  Paul Eggert  <eggert@cs.ucla.edu>
33629         mbrlen, mbrtowc: fix bug with empty input
33630         * lib/mbrtowc.c (rpl_mbrtowc) [MBRTOWC_EMPTY_INPUT_BUG]: Fix the bug.
33631         * m4/mbrlen.m4 (gl_MBRLEN_EMPTY_INPUT): New macro.  It's not used,
33632         so this is mainly for documentation.
33633         * m4/mbrtowc.m4 (gl_MBRTOWC_EMPTY_INPUT): New macro.
33634         (gl_FUNC_MBRTOWC): Use it.
33635         * tests/test-mbrtowc.c (main): Test for the bug.
33637 2014-05-15  Paul Eggert  <eggert@cs.ucla.edu>
33639         doc: document mbrtowc and mbrlen problem with empty input
33640         * doc/posix-functions/mbrlen.texi (mbrlen):
33641         * doc/posix-functions/mbrtowc.texi (mbrtowc):
33642         Document portability problem when the input string is empty.  See:
33643         https://sourceware.org/bugzilla/show_bug.cgi?id=16950
33645         doc: document exec* = spawn+exit bug with non-Cygwin Windows platforms
33646         Problem reported by Eli Zaretskii in:
33647         http://lists.gnu.org/r/bug-grep/2014-05/msg00118.html
33648         * doc/posix-functions/execl.texi (execl):
33649         * doc/posix-functions/execle.texi (execle):
33650         * doc/posix-functions/execlp.texi (execlp):
33651         * doc/posix-functions/execv.texi (execv):
33652         * doc/posix-functions/execve.texi (execve):
33653         * doc/posix-functions/execvp.texi (execvp):
33654         Mention spawn+exit problem on non-Cygwin Windows platforms.
33656 2014-05-14  Guilherme de Almeida Suckevicz  <guito.linux@gmail.com>
33658         getlogin-tests: avoid false failure under sudo/ssh etc.
33659         * modules/getlogin-tests (configure.ac): Check for ttyname().
33660         * tests/test-getlogin.c (main): Don't depend on environment variables
33661         to correlate with getlogin(), since sudo and ssh etc. can tamper
33662         with the LOGNAME and USER env vars.  Instead lookup the name from
33663         the uid associated with the stdin tty.
33665 2014-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33667         mbsstr, quotearg, xstrtol: pacify IRIX 6.5 cc
33668         These were found when building the latest grep snapshot on IRIX 6.5.
33669         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Break "a=b=c;" into
33670         "b=c; a=b;", since IRIX 6.5 cc complains about the former if b is
33671         never used later.
33672         * lib/quotearg.c (quoting_options_from_style):
33673         * lib/xstrtol.c (__xstrtol):
33674         Use enum instead of 0, to pacify IRIX 6.5 cc.
33676 2014-04-18  Pádraig Brady  <P@draigBrady.com>
33678         gitlog-to-changelog: revert inclusion of git-log-fix file
33679         * build-aux/git-log-fix: Delete dummy file.
33680         * modules/gitlog-to-changelog: Don't reference (overwrite)
33681         the project specific git-log-fix file.
33683 2014-04-18  Assaf Gordon  <agordon@wi.mit.edu>
33685         maint.mk: Relax the copyright check to cater for non FSF projects
33686         * top/maint.mk (sc_copyright_check): Relax the check for $PACKAGE.texi
33687         to not require the "Free" suffix after the copyright years.
33689 2014-04-18  Natanael Copa  <ncopa@alpinelinux.org>
33691         physmem: use sysinfo on linux-gnu if _SC_PHYS_PAGES unavailable
33692         * lib/physmem.c (physmem_total): Some systems like musl libc don't yet
33693         support _SC_PHYS_PAGES.  Use the linux syscall sysinfo as fallback
33694         if _SC_PHYS_PAGES or _SC_PAGESIZE fails.
33695         (physmem_available): Likewise for _SC_AVPHYS_PAGES.
33697 2014-04-18  Paul Eggert  <eggert@cs.ucla.edu>
33699         exclude: port to strict C99
33700         Strict C does not allow converting a function pointer to void *
33701         and vice versa.  Pass a pointer to a function pointer instead.
33702         * lib/exclude.c (add_exclude_file):
33703         Pass the address of the function pointer.
33704         (call_addfn): And deference the address here, to match.
33706 2014-04-17  Paul Eggert  <eggert@cs.ucla.edu>
33708         regex: do not depend on malloc-gnu
33709         * modules/regex (Depends-on): Remove malloc-gnu.
33710         It's no longer needed, because of the 2012-12-29 patch
33711         "regex: port to hosts where malloc (0) == NULL".
33712         Reported by Nathan Kennedy in:
33713         http://lists.gnu.org/r/bug-gnulib/2014-04/msg00026.html
33715 2014-04-16  Assaf Gordon  <agordon@wi.mit.edu>
33717         expl: avoid incorrect expl(small_value) on OpenBSD 5.4
33718         * m4/expl.m4 (gl_FUNC_EXPL): Add a check for this condition.
33719         * doc/posix-functions/expl.texi: Mention the workaround.
33721 2014-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33723         xalloc: allow x2nrealloc (P, PN, S) where P && !*PN
33724         * lib/xalloc.h (x2nrealloc): Extend slightly, to allow the current
33725         size to be zero even when the pointer is nonnull.  This
33726         accommodates the use case where P is malloc (0) and *PN is 0 on a
33727         host where malloc (0) yields nonnull.
33729 2014-04-09  Eric Blake  <eblake@redhat.com>
33731         fts: avoid unnecessary strlen calls
33732         * lib/fts.c (_D_EXACT_NAMLEN): Restore definition when needed.
33734 2014-04-09  Paul Eggert  <eggert@cs.ucla.edu>
33736         fts: avoid unnecessary strlen calls
33737         * lib/fts.c (fts_build): Go back to using _D_EXECT_NAMLEN
33738         when that can be faster than strlen.
33740 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33742         fts: avoid unnecessary strlen calls
33743         * lib/fts.c (_D_EXACT_NAMLEN): Remove macro.
33744         (fts_build): Store the length of the dp->d_name entry in a local variable
33745         instead of calling strlen() several times via the above, removed macro.
33746         For 'rm -rf some-dir' with e.g. 1M directory entries, this speeds up the
33747         run by ~4%, yet this reduces the execution time by about a third if run
33748         via "ltrace -c rm -rf some-dir".
33750 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33752         obstack: Remove ancient NeXTSTEP gcc support conditional
33753         This change will ease merging with glibc.  The "#if ... __NEXT__"
33754         causes a warning with -Wundef which glibc now enables by default.
33755         Problem reported by Will Newton in
33756         <http://lists.gnu.org/r/bug-gnulib/2014-03/msg00032.html>.
33757         glibc <sys/cdefs.h> now uses __extension__ for GCC 2.8 or later,
33758         so go with that.
33759         * lib/obstack.h (__extension__):
33761 2014-03-27  Paul Eggert  <eggert@cs.ucla.edu>
33763         obstack: merge with glibc changes
33764         * lib/obstack.c, lib/obstack.h: Merge from glibc.
33765         This is mostly indenting and commentary changes.
33766         Instances of 'register' have been removed.
33768 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33770         strftime: wrap macros in "do {...} while(0)"
33771         * lib/strftime.c (DO_NUMBER): Wrap multi-statement code block of
33772         this macro in "do {...} while(0)" to prevent false use as a
33773         single statement, e.g., in an un-braced "{}" else-block.
33774         (DO_SIGNED_NUMBER, DO_TZ_OFFSET, DO_NUMBER_SPACEPAD): Likewise.
33775         (strftime_case_): Remove 'else' after 'goto' - which was the
33776         only non-fatal, un-braced use of one of the above macros.
33777         Spotted by coverity (NESTING_INDENT_MISMATCH).
33779 2014-03-26  Bernhard Voelker  <mail@bernhard-voelker.de>
33781         modechange: avoid memory leaks for invalid octal modes
33782         * lib/modechange.c (mode_compile): During the parsing of
33783         notations like +40, free the 'mc' buffer for invalid mode
33784         strings like +17777 (greater than the maximum octal mode),
33785         =18 (bad octal mode characters) or u=1 ('affected' with
33786         octal modes).
33787         Reproducer, e.g.:
33788             $ valgrind --leak-check=full chmod +17777 file
33789         Introduced via the 2012-03-09 commit, 4730c3e3, "modechange:
33790         add notations +40, 00440, etc.".
33791         Spotted by coverity (RESOURCE_LEAK).
33793 2014-03-24  Paul Eggert  <eggert@cs.ucla.edu>
33795         gitlog-to-changelog: include a dummy git-log-fix file
33796         Problem reported by Nathan Stratton Treadway in:
33797         http://lists.gnu.org/r/bug-tar/2014-03/msg00082.html
33798         * build-aux/git-log-fix: New file.
33800 2014-03-13  Jim Meyering  <meyering@fb.com>
33802         gitlog-to-changelog: also include the file, git-log-fix
33803         * modules/gitlog-to-changelog (Files): Add git-log-fix.
33804         Reported by Assaf Gordon.
33806 2014-03-06  Paul Eggert  <eggert@cs.ucla.edu>
33808         regex: port to OS X 10.8.5 en_US.UTF-8 locale
33809         This fixes a bug when ignoring case and when comparing the
33810         titlecase letter 'Lj' (U+01C8 LATIN CAPITAL LETTER L WITH SMALL
33811         LETTER J) to the corresponding uppercase letter 'LJ' (U+01C7 LATIN
33812         CAPITAL LETTER LJ).  In the OS X 10.8.5 en_US.UTF-8 locale, the
33813         titlecase letter is neither lowercase nor uppercase, but
33814         uppercasing the titlecase letter (via towupper) yields the
33815         uppercase letter, so the two letters should match when ignoring case.
33816         Problem reported by Jim Meyering in <http://debbugs.gnu.org/16911#16>.
33817         * lib/regex_internal.c (build_wcs_upper_buffer, build_upper_buffer):
33818         Don't test whether a character is lowercase before uppercasing it.
33820 2014-03-04  Kevin Cernekee  <cernekee@gmail.com>
33822         stdint, read-file: fix missing SIZE_MAX on Android (tiny change)
33823         This is basically one of the options Bruno Haible proposed in:
33824         http://lists.gnu.org/r/bug-gnulib/2012-01/msg00282.html
33825         * lib/sys_types.in.h (_GL_INCLUDING_UNISTD_H): New macro.
33826         * lib/stdint.in.h: Use it.
33827         * modules/stdint (Depends-on): Add sys_types.
33829 2014-02-26  Pádraig Brady  <P@draigBrady.com>
33831         parse-datetime: fix crash or infloop in TZ="" parsing
33832         * lib/parse-datetime.y (parse_datetime): Break out of the
33833         TZ="" parsing loop once the second significant " is found.
33834         Also skip over any subsequent whitespace to be consistent
33835         with the non TZ= case.
33836         * tests/test-parse-datetime.c: Add test cases for TZ="" parsing.
33838 2014-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33840         savedir: new symbol for fast-read version
33841         * lib/savedir.h (SAVEDIR_SORT_FASTREAD): New symbol, for programs
33842         like GNU cp that want to use SAVEDIR_SORT_INODE if available,
33843         SAVEDIR_SORT_NONE otherwise.  Problem reported by Bernhard Voelker in:
33844         http://lists.gnu.org/r/coreutils/2014-02/msg00037.html
33846 2014-02-25  Paul Eggert  <eggert@penguin.cs.ucla.edu>
33848         unistd: port readlink to Mac OS X 10.3.9
33849         * lib/unistd.in.h (_GL_INCLUDING_UNISTD_H): New macro, to work
33850         around self-include problem in Mac OS X 10.3.9 when combined with
33851         readlink module.  Problem reported by Klaus Zietler in
33852         <http://bugs.gnu.org/16825>.
33854 2014-02-23  Paul Eggert  <eggert@cs.ucla.edu>
33856         diffseq: remove TOO_EXPENSIVE heuristic
33857         Problem with diffutils reported by Vincent Lefevre in
33858         <http://bugs.gnu.org/16848>.  The simplest solution is to remove
33859         the TOO_EXPENSIVE heuristic that I added to GNU diff in 1993.
33860         Although appropriate for circa-1993 hardware, these days the heuristic
33861         seems to be more trouble than it's worth.
33862         * lib/diffseq.h: Modernize citations.
33863         (struct context): Remove member too_expensive.
33864         All uses changed.
33865         (struct partition): Remove members lo_minimal, hi_minimal.
33866         All uses changed.
33867         (diag, compareseq): Remove arg find_minimal.  All uses changed.
33868         (diag): Remove the TOO_EXPENSIVE heuristic that I added back in
33869         1993 to make 'diff' run faster (but not as well) on large inputs.
33870         These days, computers are fast enough that it's typically better
33871         to run slower but more accurately.
33872         * lib/fstrcmp.c: Remove duplicate comment.
33873         * lib/fstrcmp.c (strcmp_bounded):
33874         * lib/git-merge-changelog.c (compute_differences):
33875         Adjust to diffseq.h changes.
33876         * NEWS: Document the change.
33878         savedir: simplify by using stpcpy
33879         * lib/savedir.c (direntry_t): Remove size member.  All uses removed.
33880         (streamsavedir): Use stpcpy instead.
33881         * modules/savedir (Depends-on): Add stpcpy.
33883 2014-02-21  Pádraig Brady  <P@draigBrady.com>
33885         spawn: fix link error on uclibc
33886         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): use AC_SEARCH_LIBS,
33887         to incorporate -lrt if needed (on uclibc for example).
33888         * modules/posix_spawn: Reference the substituted LIB.
33890 2014-02-21  Thomas Petazzoni  <thomas.petazzoni@free-electrons.com>  (tiny change)
33891         timer: fix uClibc detection of threading
33892         * m4/time_time.m4 (gl_TIMER_TIME): Detect whether threads are
33893         enabled in uClibc.
33895 2014-02-21  Eric Blake  <eblake@redhat.com>
33897         maintainer-makefiles: provide AC_PROG_SED for older autoconf
33898         * m4/gnulib-common.m4 (AC_PROG_SED): Copy from newer autoconf.
33900 2014-02-21  Sergey Poznyakoff  <gray@gnu.org.ua>
33902         exclude: add support for posix regexps
33904         This commit adds support for POSIX extended regular expressions
33905         and fixes a long-standing memory leak (pattern buffer was never
33906         freed).  It also implements a new interface function to read
33907         exclude patterns from a FILE, which passes an additional parameter
33908         to its callback function, thereby allowing to preserve its state
33909         between invocations.
33911         * lib/exclude.c (struct patopts): Pack regex and pattern into union.
33912         (pattern_buffer): New struct.
33913         (exclude): New member patbuf.
33914         (exclude_add_pattern_buffer): New function.
33915         (free_exclude_segment): Free regexps.
33916         (free_exclude): Free allocated pattern buffers.
33917         (exclude_patopts): New function.
33918         (file_pattern_matches): Use exclude_patopts.
33919         (add_exclude): support regexps.
33920         (add_exclude_fp): New function.
33921         (add_exclude_file): Rewrite using add_exclude_fp.
33922         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33923         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33924         (add_exclude_fp)
33925         (add_exclude_file): Rewrite using add_exclude_fp.
33926         (fnmatch_pattern_has_wildcards): Support posix extended regexps.
33927         * lib/exclude.h (EXCLUDE_REGEX, EXCLUDE_ALLOC): New flags.
33928         (add_exclude_fp)
33929         (exclude_add_pattern_buffer): New prototypes.
33930         * modules/exclude: Depends on regex and filename.
33932 2014-02-20  Eric Blake  <eblake@redhat.com>
33934         maintainer-makefiles: use $(SED) for syntax check
33935         * modules/maintainer-makefile (configure.ac): Check for sane sed.
33936         * top/maint.mk: Change sed to $(SED).
33938 2014-02-11  Sergey Poznyakoff  <gray@gnu.org.ua>
33939             Paul Eggert  <eggert@cs.ucla.edu>
33941         savedir: add sorting arg to savedir, streamsavedir; remove fdsavedir
33942         Patch based on an idea by Dick Streefland in
33943         <https://savannah.gnu.org/patch/?7892>.
33944         * NEWS: Document this.
33945         * lib/savedir.c (NAME_SIZE_DEFAULT): Remove.
33946         (direntry_t, comparison_function): New types.
33947         (direntry_cmp_name): New function.
33948         (direntry_cmp_inode) [D_INO_IN_DIRENT]: New function.
33949         (streamsavedir, savedir): New arg OPTION.
33950         (streamsavedir): Simplify memory allocation.
33951         (fdsavedir): Remove.
33952         * lib/savedir.h (enum savedir_option): New type.
33953         (streamsavedir, savedir): New arg OPTION.
33954         (fdsavedir): Remove.
33956 2014-02-05  Paul Eggert  <eggert@cs.ucla.edu>
33958         file-type: add support for doors and other less-common file types
33959         Problem with S_ISDOOR reported by Rich Burridge.
33960         * lib/file-type.c (file_type): Do S_ISLNK early too.  Do S_TYPEIS*
33961         macros before the rest.  Add S_ISCTG, S_ISDOOR, S_ISMPB, S_ISMPC,
33962         S_ISMPX, S_ISNAM, S_ISNWK, S_ISOFD, S_ISOFL, S_ISPORT, S_ISWHT.
33964 2014-01-23  Eric Blake  <eblake@redhat.com>
33966         pthread: work around winpthread header pollution on mingw
33967         * lib/time.in.h: Move pthread workarounds...
33968         * lib/pthread.in.h: ...here.
33969         * m4/pthread.m4 (gl_PTHREAD_CHECK): Also build pthread.h when we
33970         detect macro pollution on mingw.
33971         * doc/posix-headers/pthread.texi (pthread.h): Document the problems.
33973 2014-01-22  Paul Eggert  <eggert@cs.ucla.edu>
33975         qacl: check for fchmod
33976         * m4/acl.m4 (gl_FUNC_ACL): Check for fchmod, since acl-internal.h
33977         and qset-acl.c both use HAVE_FCHMOD.
33979 2014-01-20  Paul Eggert  <eggert@cs.ucla.edu>
33981         fdopen-tests: port to Tru64
33982         * tests/test-fdopen.c (main): Don't invoke fdopen on a file
33983         descriptor that is not open, as POSIX doesn't specify the
33984         resulting behavior and the test does not work on Tru64.
33985         Problem reported by Steven M. Schweda in:
33986         http://lists.gnu.org/r/bug-gnulib/2014-01/msg00079.html
33988         stdalign: port to HP-UX compilers
33989         * lib/stdalign.in.h (_Alignas): Use __attribute__ (__aligned__ (x))
33990         if __HP_cc or __HP_aCC are nonzero.
33992 2014-01-16  Paul Eggert  <eggert@cs.ucla.edu>
33994         strtoimax: port to platforms lacking 'long long'
33995         VMS's pre-C99 compiler lacks 'long long', so 'configure' doesn't
33996         check whether strtoll is declared, which causes the C file to
33997         wrongly report an error.  Problem reported by Steven M. Schweda in:
33998         http://lists.gnu.org/r/bug-diffutils/2014-01/msg00003.html
33999         * lib/strtoimax.c (strtoull):
34000         Declare only if HAVE_UNSIGNED_LONG_LONG_INT.
34001         (strtoll): Declare only if HAVE_LONG_LONG_INT.
34003 2014-01-16  Daniel Albers  <daniel@lbe.rs>  (tiny change)
34005         relocatable-perl: fix texi syntax
34006         * doc/relocatable-maint.texi: Escape braces.
34008 2014-01-09  Reuben Thomas  <rrt@sc3d.org>
34010         relocatable-perl: like relocatable-script, but for Perl scripts
34011         * build-aux/relocatable.pl.in: Add.
34012         * doc/relocatable-maint.texi: Add documentation.
34013         * modules/relocatable-perl: Add.
34015 2014-01-07  Paul Eggert  <eggert@cs.ucla.edu>
34017         tests: fix export bug in previous patch
34018         Problem reported by Jim Meyering.
34019         * tests/init.sh (re_shell): New var, which is exported instead of
34020         re_shell_.
34022         tests: simplify porting to Solaris 10 /bin/sh
34023         Some test cases in 'grep' need a shell that groks '$(';
34024         export re_shell_ for their benefit.  Problem reported for 'grep'
34025         by Dagobert Michelsen in <http://bugs.gnu.org/16380>.
34026         * tests/init.sh (re_shell_): Export if it's used.
34028 2014-01-06  Eric Blake  <eblake@redhat.com>
34030         md5, sha1, sha256, sha512: support older autoconf
34031         * m4/00gnulib.m4 (m4_divert_push): Wrap diversion stack
34032         for autoconf < 2.63b.
34034         include_next: port to autoconf 2.63
34035         * m4/gnulib-common.m4 (AS_VAR_COPY): Define if missing.
34037 2014-01-04  Jim Meyering  <meyering@fb.com>
34039         maint: add a gnulib-local rule to keep non-ascii out of .texi files
34040         * cfg.mk (sc_keep_gnulib_texi_files_mostly_ascii): New rule,
34041         so that "make sc_maint" will ding anyone who puts non-ascii
34042         in any of gnulib's .texi files.
34044 2014-01-03  Jim Meyering  <meyering@fb.com>
34046         freadable, fwritable, fwriting: declare with the "pure" attribute
34047         * lib/freadable.h (freadable): Declare with the "pure" attribute.
34048         * lib/fwritable.h (fwritable): Likewise.
34049         * lib/fwriting.h (fwriting): Likewise.
34050         Suggested by Bruno Haible.
34052         maint.mk: adapt openat.h-include-without-use test
34053         * top/maint.mk (sc_prohibit_openat_without_use): Also check for
34054         FCHMODAT_INLINE, FCHOWNAT_INLINE and STATAT_INLINE, to avoid
34055         failing on gnulib's own lib/{chmod,chown,stat}at.c files.
34056         With this change, running "make sc_maint" in gnulib's top-level
34057         directory now passes for me.
34059 2014-01-03  Paul Eggert  <eggert@cs.ucla.edu>
34061         doc: use ASCII in .texi files where UTF-8 isn't needed
34062         * doc/posix-functions/crypt.texi, doc/posix-functions/encrypt.texi:
34063         * doc/posix-functions/setkey.texi, doc/regex.texi:
34064         Use ASCII input, not UTF-8.
34066 2014-01-02  Jim Meyering  <meyering@fb.com>
34068         freading: declare with the "pure" attribute
34069         * lib/freading.h (freading): Declare with the "pure" attribute.
34071         manywarnings: remove -Wmudflap
34072         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove -Wmudflap, since
34073         it is no longer supported in gcc-4.9-to-be.
34075 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34077         relocatable-script: remove unused code
34078         Problem reported by Reuben Thomas in:
34079         http://lists.gnu.org/r/bug-gnulib/2013-12/msg00117.html
34080         * build-aux/relocatable.sh.in (func_tmpdir): Remove unused function.
34082 2014-01-01  Jim Meyering  <meyering@fb.com>
34084         maint: fix public-submodule-commit to work with newer git
34085         * top/maint.mk (public-submodule-commit): Remove excess quoting.
34086         We were over-quoting the test arguments, and somewhere prior to
34087         version 1.8.5.2.229, git stopped removing those excess quotes,
34088         which made the test fail, since the unexpanded strings would
34089         always differ; using GIT_TRACE=1 confirmed that the git merge-base
34090         command wasn't even being run.
34092 2014-01-01  Paul Eggert  <eggert@cs.ucla.edu>
34094         doc: update main copyright year
34095         * doc/gnulib.texi: Update copyright date.
34097 2014-01-01  Eric Blake  <eblake@redhat.com>
34099         version-etc: new year
34100         * lib/version-etc.c (COPYRIGHT_YEAR): Bump to 2014.
34101         * all files: run 'make update-copyright'
34103 2013-12-24  Eric Blake  <eblake@redhat.com>
34105         passfd: give nicer error for recvfd at eof
34106         * lib/passfd.c (recvfd): Fake ENOTCONN if other end closes early.
34107         * tests/test-passfd.c (main): Enhance test to cover this.
34109 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34111         gettimeofday: port recent C++ fix to Emacs
34112         Without this further patch, Emacs won't build due to
34113         the portcheck failing.  Also, this simplifies the patch a bit.
34114         * lib/time.in.h (localtime, gmtime): Don't replace unless
34115         GNULIB_GETTIMEOFDAY.  Treat them more like mktime.
34116         * lib/time.in.h (localtime, gmtime):
34117         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME):
34118         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34119         * modules/time (time.h):
34120         Don't worry about the possibility of localtime and gmtime
34121         being absent; they're present in all C libraries we know about.
34122         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS):
34123         Don't assume sys_time is present and has been initialized.
34124         Instead, use a hack that should work even if it hasn't been.
34125         Don't use a portcheck for gmtime or localtime; this supports
34126         the hack.
34127         * modules/time (time.h): Substitute GNULIB_GETTIMEOFDAY.
34129 2013-12-17  John W. Eaton  <jwe@gnu.org>
34131         gettimeofday: fix C++ crosscompilation
34133         Never replace gmtime and localtime by macros when compiling with
34134         C++, this prevents <ctime> from being included.
34136         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Do not
34137         define gmtime and localtime as preprocessor macros.  Instead
34138         define some HAVE_GMTIME, HAVE_LOCALTIME, REPLACE_GMTIME, and
34139         REPLACE_LOCALTIME substitutions.
34140         * lib/time.in.h: Declare gmtime and localtime when needed.
34141         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): AC_SUBST HAVE_GMTIME,
34142         HAVE_LOCALTIME, REPLACE_GMTIME, and REPLACE_LOCALTIME.
34143         * modules/time: Depend on gettimeofday, and substitute the above
34144         variables in time.h.
34146 2013-12-17  Paul Eggert  <eggert@cs.ucla.edu>
34148         qacl: port to Windows better
34149         See Eli Zaretskii in
34150         <http://lists.gnu.org/r/emacs-devel/2013-12/msg00593.html>.
34151         * lib/file-has-acl.c (acl_access_nontrivial):
34152         Return -1 and set errno if !HAVE_ACL_FIRST_ENTRY &&
34153         !HAVE_ACL_TO_SHORT_TEXT && !HAVE_ACL_FREE_TEXT.
34155 2013-12-12  Alexander V. Lukyanov  <lav@netis.ru>
34157         md5, sha1, sha256, sha512: fix (trivial) compile error in c++ mode.
34158         * lib/gl_openssl.h: Cast void pointers to a specific type.
34160 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34162         open-tests: fix build failure with -Werror=old-style-declaration
34163         * tests/test-open.h: Reorder the inline to avoid the issue.
34165 2013-12-07  Pádraig Brady  <P@draigBrady.com>
34167         md5, sha1, sha256, sha512: fix link error with partial libcrypto
34168         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): Only clear LIB_CRYPTO at
34169         init time, so that if early checks find crypto routines,
34170         while the last does not, then @LIB_CRYPTO@ is replaced correctly,
34171         avoiding link failures.
34173 2013-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34175         md5, sha1, sha256, sha512: add gl_SET_CRYPTO_CHECK_DEFAULT
34176         This provides a new way to specify the default for
34177         gl_CRYPTO_CHECK, one that is reflected in the --help message.
34178         Emacs uses this, as well as the old way.
34179         This attempts to implement a suggestion by Pádraig Brady in
34180         <http://lists.gnu.org/r/coreutils/2013-12/msg00080.html>.
34181         * m4/gl-openssl.m4(gl_SET_CRYPTO_CHECK_DEFAULT): New macro.
34182         (gl_CRYPTO_CHECK): Use it.  Mention the default in --help output.
34184         md5, sha1, sha256, sha512: add 'auto', and a way to specify default
34185         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK):
34186         Add support for a new option, --with-openssl=auto, which causes
34187         the library to be used if available and silently ignored if not.
34188         Add support to allow configure.ac to specify its own
34189         default, by setting with_openssl_default before invoking gl_INIT.
34191 2013-12-05  Paul Eggert  <eggert@cs.ucla.edu>
34193         open-tests: port to glibc with _FORTIFY_SOURCE and -O1
34194         Problem reported by Daiki Ueno in:
34195         http://lists.gnu.org/r/bug-gnulib/2013-06/msg00052.html
34196         * tests/test-open.h (__always_inline):
34197         New macro, if not already defined.
34198         (test_open): Use it.
34200 2013-12-04  Eric Blake  <eblake@redhat.com>
34202         include_next: minimize code duplication
34203         * modules/include_next (Depends-on): Add absolute-header.
34204         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Reuse
34205         gl_ABSOLUTE_HEADER_ONE instead of open-coding it.
34207 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34209         getcwd: fix compile error in configure check
34210         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Include errno.h
34212 2013-12-04  Pádraig Brady  <P@draigBrady.com>
34214         regex: suppress core dumps from detection code
34215         * m4/regex.m4 (gl_REGEX): Catch the SIGABRT and convert to SIGTERM
34216         to suppress core dumps that may well occur on glibc systems.
34217         These core dumps might not be cleaned up automatically, or could
34218         trigger some system core dump handling logic.
34220 2013-12-03  Pádraig Brady  <P@draigBrady.com>
34222         md5, sha1, sha256, sha512: support mandating use of openssl
34223         * m4/gl-openssl.m4 (gl_crypto_check): Adjust the --with-openssl
34224         description, to list the now 3 separate options.  also don't
34225         mention the default=no, since this is implicit given the option
34226         is described as --with-openssl rather than --without-openssl.
34227         If projects change the default they're free to document that.
34228         with --with-openssl[=yes] we now error out when the specified
34229         hash algorithm is not available in libcrypto.
34231 2013-12-03  Ivailo  <xakepa10@gmail.com>
34233         test-xvasprintf: (trivial) fix to disable some -Wformat-security diags
34234         * tests/test-xvasprintf.c: Disable -Wformat-zero-length and
34235         -Wformat-nonliteral checks, as these edge cases are part of the test.
34237 2013-12-03  Eric Blake  <eblake@redhat.com>
34239         regex: avoid glibc deadlock during configure
34240         * m4/regex.m4 (gl_REGEX): Avoid recursive malloc deadlock when
34241         glibc bug 15078 in turn triggers bug 16159.
34242         Reported by Michal Privoznik.
34244 2013-12-02  Pádraig Brady  <P@draigBrady.com>
34246         md5, sha1, sha256, sha512: use openssl routines if available.
34247         --with-openssl the libcrypto md5, sha1, sha224, sha256, sha384, sha256
34248         routines will be used if available, requiring apps to link @LIB_CRYPTO@
34249         * lib/gl_openssl.h: Provide wrappers for specified openssl hash.
34250         * m4/gl-openssl.m4 (gl_CRYPTO_CHECK): New function to lookup libcrypto
34251         in the standard system location.
34252         * m4/sha1.m4: Call gl_CRYPTO_CHECK() for SHA1.
34253         * m4/sha256.m4: Likewise with SHA256.
34254         * m4/sha512.m4: Likewise with SHA512.
34255         * m4/md5.m4: Likewise with MD5.
34256         * m4/gc.m4: Ensure @LIB_CRYPTO@ set for tests.
34257         * lib/sha1.h: Include wrappers if HAVE_OPENSSL_SHA1.
34258         * lib/sha256.h: Likewise with SHA256.
34259         * lib/sha512.h: Likewise with SHA512.
34260         * lib/md5.h: Likewise with MD5.
34261         * lib/sha1.c: Exlude functionality if HAVE_OPENSSL_SHA1.
34262         * lib/sha256.c: Likewise with SHA256.
34263         * lib/sha512.c: Likewise with SHA512.
34264         * lib/md5.c: Likewise with MD5.
34265         * modules/crypto/sha1 (Link:): Add the new optional lib.
34266         (Depends-on:): Add dependency on extern-inline.
34267         * modules/crypto/sha256: Likewise.
34268         * modules/crypto/sha512: Likewise.
34269         * modules/crypto/md5: Likewise.
34270         * modules/crypto/sha1-tests: Reference the lib here too.
34271         * modules/crypto/md5-tests: Likewise.
34272         * modules/crypto/gc-des-tests: Likewise.
34273         * modules/crypto/gc-hmac-md5-tests: Likewise.
34274         * modules/crypto/gc-hmac-sha1-tests: Likewise.
34275         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34276         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34277         * modules/crypto/gc-md5-tests: Likewise.
34278         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
34279         * modules/crypto/gc-sha1-tests: Likewise.
34280         * modules/crypto/gc-tests: Likewise.
34281         * modules/crypto/hmac-md5-tests: Likewise.
34282         * modules/crypto/hmac-sha1-tests: Likewise.
34283         * modules/crypto/hmac-sha256-tests: Likewise.
34284         * modules/crypto/hmac-sha512-tests: Likewise.
34286 2013-11-29  RV1971  <rv1971@web.de>
34288         base64: (trivial) fix compilation regression on some compilers
34289         * lib/base64.c: Don't return the void function,
34290         instead split to a separate return statement.
34292 2013-11-28  Paul Eggert  <eggert@cs.ucla.edu>
34294         ignore-value: revert previous code change
34295         * lib/ignore-value.h (ignore_value): Use __extension__ and
34296         __typeof__ only for GCC 3.4 and later.  Reported by Eric Blake in
34297         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00102.html>.
34298         Change the comment to try to explain this better.
34300 2013-11-27  Pádraig Brady  <P@draigBrady.com>
34302         selinux-h: improve stub types and add more stub functions
34304         * lib/se-selinux.in.h: Change security_context_t to a typedef
34305         rather than a define, as it's a pointer type and so is better
34306         as a typedef to avoid issues declaring multiple variables
34307         with the comma operator.  Also add stub for string_to_security_class().
34308         * lib/se-context.in.h: Add stub functions for
34309         context_{type,range,role,user}_get().
34311 2013-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34313         ignore-value: prefer GCC version back through 2.0
34314         The code didn't match the comments, so I did a bit of software
34315         archaeology.  GCC 2.0 seems to support __extension__ and
34316         __typeof__, so fix both code and comments to use 2.0.
34317         * lib/ignore-value.h (ignore_value): Use __extension__ and
34318         __typeof__ for GCC 2.0 through 3.3, too.
34320 2013-11-25  Mats Erik Andersson  <gnu@gisladisker.se>
34322         pty: Activate the signature wrapper of forkpty.
34323         The intended preprocessor macro HAVE_FORKPTY is
34324         never defined, yet `lib/forkpty.c' depends on it.
34326         * m4/pty.m4 (gl_FUNC_FORKPTY): At completed analysis,
34327         apply AC_DEFINE_UNQUOTED to HAVE_FORKPTY with value
34328         $HAVE_FORKPTY for access to wrapper in `lib/forkpty.c'.
34330 2013-11-18  Jim Meyering  <meyering@fb.com>
34331         and Paul Eggert  <eggert@cs.ucla.edu>
34333         quotearg: don't attempt to store 1 << 31 into an "int"
34334         * lib/quotearg.c (quotearg_buffer_restyled): Building coreutils with
34335         gcc's new -fsanitize=undefined and running its tests triggered some
34336         new test failures due to undefined behavior, all with this diagnostic:
34337           lib/quotearg.c:629:62: runtime error: left shift of 1 by 31 places \
34338             cannot be represented in type int
34339         Rather than shifting "1" left to form a mask, shift the bits right and
34340         simply use "1" as the mask.
34342 2013-11-21  Paul Eggert  <eggert@cs.ucla.edu>
34344         error: depend on stdio
34345         Problem reported by Nikos Mavrogiannopoulos in
34346         <http://lists.gnu.org/r/bug-gnulib/2013-11/msg00084.html>
34347         * modules/error (Depends-on): Add stdio.
34349 2013-11-18  Ben Pfaff  <blp@cs.stanford.edu>
34351         * doc/relocatable-maint.texi (Supporting Relocation): Improve
34352         wording.
34353         Reported by Reuben Thomas <rrt@sc3d.org>.
34355 2013-11-13  Paul Eggert  <eggert@cs.ucla.edu>
34357         * lib/getgroups.c (posix_getgroups, getgroups) [__APPLE__]:
34358         New function and macro, to work around _DARWIN_C_SOURCE problem.
34359         Reported by Jack Howarth in <http://bugs.gnu.org/14463>.
34361 2013-11-11  Pádraig Brady  <P@draigBrady.com>
34363         base64: provide a fast path for encoding well sized buffers
34364         Avoid conditionals in the base64 encoding loop,
34365         which was seen to give 60% better throughput.
34366         * lib/base64.c (base64_encode_fast): A new function to be called
34367         when we don't want to NUL terminate, and we have enough space
34368         in the output to encode the given input.
34369         (base64_encode): Call the _fast() version when appropriate.
34370         Also remove a redundant mask with 0x3F on the first encoded byte.
34372 2013-11-08  Paul Eggert  <eggert@cs.ucla.edu>
34374         extern-inline: port better to OS X 10.9
34375         * m4/extern-inline.m4: Omit serial number; this file doesn't use them.
34376         (gl_EXTERN_INLINE): Do not suppress the use of extern inline on
34377         OS X 10.9, except for g++ where the bug is still present.
34378         See <http://trac.macports.org/ticket/41033>.
34380 2013-11-08  Eric Blake  <eblake@redhat.com>
34382         fpending: fix regression on DragonFly BSD
34383         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for declaration.
34384         * lib/fpending.h (__fpending): Don't declare twice.
34385         Reported by GW in
34386         <https://lists.gnu.org/r/bug-m4/2013-11/msg00000.html>
34388 2013-11-05  Jim Meyering  <meyering@fb.com>
34390         hash: relax license to LGPLv2+, for libguestfs
34391         * modules/hash (License): Change from GPL to LGPLv2+.
34393 2013-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34395         intprops: port to Oracle Studio c99
34396         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__SUNPRO_C && __STDC__]:
34397         Define to 0, to avoid diagnostics when Oracle Studio is pedantic.
34399 2013-10-31  Paul Eggert  <eggert@cs.ucla.edu>
34401         obstack: pacify HP C
34402         * lib/obstack.h (obstack_free) [!__GNUC__]: Rewrite to avoid
34403         warning "conversion from pointer to smaller integer" from HP
34404         C-ANSI-C - cc version B9007AA/B3910B A.06.26.  It's safe to assume
34405         C89 or later nowadays, so cast to void instead of int.  Privately
34406         reported by H.Merijn Brand.  Also, change header to match glibc's,
34407         to make checking against glibc easier.
34409 2013-10-29  Jim Meyering  <meyering@fb.com>
34411         maint.mk: prefer gpgv2 over gpgv
34412         * top/maint.mk (gpgv): Use gpgv2 if present, else gpgv.
34413         (gpg_key_ID): Use $(gpgv), rather than hard-coding "gpgv".
34414         Reported by Gary Vaughan.
34416 2013-10-30  Paul Eggert  <eggert@cs.ucla.edu>
34418         isnan: port to VAX
34419         Reported by John Klos for NetBSD-5/VAX in
34420         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00133.html>.
34421         * lib/isnan.c (IEEE_FLOATING_POINT): New macro, stolen from Emacs.
34422         (FUNC): Use it.
34424 2013-10-28  Jim Meyering  <meyering@fb.com>
34426         gnulib-tool: protect against CDPATH
34427         * gnulib-tool: Many "cd" built-in functions print a directory name
34428         to stdout when CDPATH is set, e.g.,
34429           $ bash -c 'CDPATH=/; cd tmp'
34430           /tmp
34431         Unset it, when possible.  Prompted by a comment from Bruce Korb.
34433         maint.mk: restore functionality removed by recent change...
34434         Sunday's change, v0.0-8062-g6b24f60, may have appeared correct from
34435         the context of a shallow-cloned gnulib repository: "git describe"
34436         would fail in such a directory.  However, that change made it so
34437         the reported gnulib revision no longer includes the version number
34438         or a commit count, even when run from a full clone.
34439         * top/maint.mk (gnulib-version): Use the full "git describe"
34440         output when possible, e.g., the form above, rather than the
34441         abbreviated, no-tag, no-commit-count string, and fall back to
34442         using a 10-byte hash, rather than the default minimal-length
34443         hash prefix, since while the minimal-length one may be fine today,
34444         it is likely not to be unique for very long.
34446 2013-10-26  Jim Meyering  <meyering@fb.com>
34448         maint.mk: fix "release" target to build _version
34449         This fixes a bug in README-release whereby following the outlined
34450         steps, one would publish a tarball whose programs would report
34451         --version output not consistent with the package version number.
34452         This bug caused grep-2.15 to produce a grep program whose
34453         --version option made it print 2.14.56-1e3d rather than 2.15.
34454         * top/maint.mk (release): Making this target build "_version"
34455         ensures that the new version number is reflected in configure.
34457 2013-10-21  Ben Pfaff  <blp@cs.stanford.edu>
34459         install-reloc: Support multi-binary installation.
34460         * build-aux/install-reloc: Support installing multiple programs in
34461         one invocation, as done by Automake starting with commit
34462         4295fe33eb23f (Multi-file install for PROGRAMS.).  From Bruno
34463         Haible <bruno@clisp.org>, archived at
34464         http://lists.debian.org/debian-bsd/2012/05/msg00032.html.
34465         Reported by Sylvain <beuc@gnu.org>.
34467 2013-10-21  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
34469         selinux-h: Really build without selinux when library is missing.
34470         * m4/selinux-selinux-h.m4: When the selinux library is missing, really
34471         continue without selinux, as already told in the warning message.
34473 2013-10-21  Jim Meyering  <meyering@fb.com>
34475         regex: also remove dependency on HAVE_WCSCOLL
34476         * lib/regex_internal.h: Remove final vestige of the wcscoll dependency.
34478 2013-10-21  Reuben Thomas  <rrt@sc3d.org>
34480         xfreopen: Fix typo. s/frepoen/freopen/
34481         * lib/xfreopen.c: Fix description.
34482         * modules/xfreopen: Likewise.
34484 2013-10-21  Jim Meyering  <meyering@fb.com>
34486         regex: don't depend on wcscoll
34487         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wcscoll.
34488         It is no longer used.
34490 2013-10-20  Jim Meyering  <meyering@fb.com>
34492         error: add the printf attribute to a static function
34493         * lib/error.c (error_tail): Add the printf attribute, to placate
34494         gcc's -Werror=suggest-attribute=format option.
34496 2013-09-30  Jim Meyering  <meyering@fb.com>
34498         fpending, obstack, strerror-override: use pure+const function attrs
34499         * lib/fpending.h (__fpending): Declare with the "pure" attribute.
34500         * lib/obstack.c (_obstack_allocated_p): Likewise.
34501         * lib/obstack.h (_obstack_memory_used): Likewise.
34502         (_obstack_memory_used): Likewise.
34503         * lib/strerror-override.h (strerror_override): Declare with
34504         the "const" attribute.
34506 2013-10-18  Eric Blake  <eblake@redhat.com>
34508         extern-inline: make safe for -Wundef usage
34509         Reported by Vladimir 'phcoder' Serbinenko in
34510         https://lists.gnu.org/r/bug-gnulib/2013-10/msg00078.html
34511         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Port to older gcc.
34513 2013-10-16  Paul Eggert  <eggert@cs.ucla.edu>
34515         mkfifo-tests, etc.: allow HP-UX 11.11 bug
34516         Problem reported by Daniel Richard G. in
34517         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00068.html>.
34518         * doc/posix-functions/mkfifo.texi (mkfifo):
34519         * doc/posix-functions/mkfifoat.texi (mkfifoat):
34520         * doc/posix-functions/mknod.texi (mknod):
34521         * doc/posix-functions/mknodat.texi (mknodat):
34522         Document the HP-UX 11.11 bug.
34523         * tests/test-mkfifo.h (test_mkfifo):
34524         Allow the HP-UX 11.11 bug.
34526 2013-10-14  Paul Eggert  <eggert@cs.ucla.edu>
34528         acl: allow cross-compilation to Gentoo
34529         Problem reported by Gabriel Marcano in
34530         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00058.html>.
34531         * m4/acl.m4 (gl_ACL_GET_FILE): When cross-compiling,
34532         test only whether it links.
34534 2013-10-13  Paul Eggert  <eggert@cs.ucla.edu>
34536         mgetgroups: remove dependency on realloc-gnu
34537         The dependency violates the comment in realloc-gnu, which
34538         says that tests can't depend on realloc-gnu; some tests depend
34539         on mgetgroups, so mgetgroups can't depend on realloc-gnu.
34540         Problem reported by Daniel Richard G. in
34541         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00056.html>.
34542         * lib/mgetgroups.c (mgetgroups): Don't call realloc (NULL, 0).
34543         * modules/mgetgroups (Depends-on): Depend on realloc-posix,
34544         not realloc-gnu.
34546 2013-10-12  Paul Eggert  <eggert@cs.ucla.edu>
34548         regex-tests: port to HP-UX 11.11
34549         Problem reported by Daniel Richard G. in
34550         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00052.html>.
34551         * modules/regex-tests (test_regex_LDADD): Add LIBTHREAD, LIB_PTHREAD.
34553 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34555         verify: document some 'assume' pitfalls
34556         * doc/verify.texi (Compile-time Assertions):
34557         Mention that 'assume (E)' can sometimes slow things down.
34558         Use CHAR_MAX + 1, not UCHAR_MAX + 1.
34560 2013-10-10  Eric Blake  <eblake@redhat.com>
34562         strtoumax: fix typo in previous commit.
34563         * modules/strtoumax (Depends-on): Fix typo.
34564         * modules/strtoimax (Depends-on): Likewise.
34566 2013-10-10  Paul Eggert  <eggert@cs.ucla.edu>
34568         strtoumax: port to Solaris 8
34569         This problem was introduced in the recent HP-UX patch.
34570         Reported by Tom G. Christensen in
34571         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00037.html>.
34572         * modules/strtoumax (Depends-on): Test HAVE_STRTOUMAX
34573         and REPLACE_STRTOUMAX rather than ac_cv_func_strtoumax.
34575 2013-10-09  Paul Eggert  <eggert@cs.ucla.edu>
34577         strtoimax, strtoumax: port to HP-UX 11.11
34578         Problem reported by Daniel Richard G. in
34579         <http://lists.gnu.org/r/bug-gnulib/2013-10/msg00023.html>.
34580         * lib/inttypes.in.h (strtoumax): Replace strtoumax if
34581         REPLACE_STRTOUMAX, thus treating it consistently with strtoimax.
34582         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Add default for
34583         REPLACE_STRTOUMAX.
34584         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX):
34585         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX):
34586         Replace the function if defined as a macro but not as a function.
34587         * modules/inttypes-incomplete (inttypes.h): Substitute
34588         REPLACE_STRTOUMAX.
34589         * modules/strtoumax (configure.ac): Replace strtoumax if
34590         REPLACE_STRTOUMAX.
34592 2013-10-08  Paul Eggert  <eggert@cs.ucla.edu>
34594         strtoimax: port to HP-UX 11.11
34595         Problem reported by Daniel Richard G.
34596         * lib/strtoimax.c (Strtoimax, Strtol, Strtoll): New macros.
34597         (strtoimax, strtol, strtoll) [UNSIGNED]: Remove, since
34598         they might clash with inttypes.h.
34600 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34602         New module 'count-trailing-zeros'.
34603         * MODULES.html.sh: Mention it.
34604         * lib/count-trailing-zeros.c, lib/count-trailing-zeros.h:
34605         * m4/count-trailing-zeros.m4, modules/count-trailing-zeros:
34606         * modules/count-trailing-zeros-tests:
34607         * tests/test-count-trailing-zeros.c:
34608         New files.
34610         count-leading-zeros: port to MSC; support types wider than 64 bits
34611         The ideas behind the MSC port are stolen from Emacs.
34612         * lib/count-leading-zeros.h:
34613         Don't include verify.h: it's no longer needed, as types wider than
34614         64 bits are now supported.
34615         (COUNT_LEADING_ZEROS): New arg MSC_BUILTIN, for better
34616         performance with MSC.  All uses changed.  Do not assume that TYPE
34617         has at most 64 bits.
34618         (count_leading_zeros_32): Assume 0 < X < 2**32, for speed.
34619         All uses changed.  Fold the subtraction from 31 into the table.
34621         count-one-bits: port to MSC; support types wider than 64 bits
34622         The ideas behind the MSC port are stolen from Emacs.
34623         * lib/count-one-bits.c (popcount_support) [_MSC_VER]: New variable.
34624         * lib/count-one-bits.h: Include limits.h, for CHAR_BIT.
34625         Don't include verify.h: it's no longer needed, as types wider than
34626         64 bits are now supported.
34627         (COUNT_ONE_BITS_GENERIC): New macro.
34628         (popcount_supported) [_MSC_VER]: New inline function.
34629         (COUNT_ONE_BITS): Use it.  New arg MSC_BUILTIN, for better
34630         performance with MSC.  All uses changed.  Do not assume that TYPE
34631         has at most 64 bits.
34632         * modules/count-one-bits (Depends-on): Do not depend on 'verify'.
34634 2013-10-06  Andrew Borodin  <aborodin@vmail.ru>
34636         mountlist: fix resource leak with MOUNTED_INTERIX_STATVFS
34637         * lib/mountlist.c (read_file_system_list): fix leak of directory
34638         streams in case of #ifdef MOUNTED_INTERIX_STATVFS.
34640 2013-10-06  Paul Eggert  <eggert@cs.ucla.edu>
34642         tests: improve diagnostic when an assertion fails
34643         * tests/macros.h (ASSERT): Report the assertion that failed.
34645 2013-10-02  Paul Eggert  <eggert@cs.ucla.edu>
34647         verify: new macro 'assume'
34648         This is taken from Emacs, and should be generally useful.
34649         * doc/verify.texi (assume): Document it.
34650         * lib/verify.h (assume): New macro.
34651         (__has_builtin): Expand to 0 if not defined.
34653 2013-09-26  Eric Blake  <eblake@redhat.com>
34655         dup2, dup3: work around another cygwin crasher
34656         * m4/dup2.m4 (gl_FUNC_DUP2): Expose the bug.
34657         * m4/dup3.m4 (gl_FUNC_DUP3): Likewise.
34658         * tests/test-dup2.c (main): Likewise.
34659         * lib/dup2.c (rpl_dup2): Use setdtablesize to avoid it.
34660         * lib/dup3.c (dup3): Likewise.
34661         * doc/posix-functions/dup2.texi (dup2): Document it.
34662         * doc/glibc-functions/dup3.texi (dup3): Likewise.
34664         getdtablesize: work around cygwin issue
34665         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Detect problem.
34666         * modules/getdtablesize (configure.ac): Build replacement.
34667         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set up a witness.
34668         * modules/unistd (Makefile.am): Expose the witness.
34669         * lib/unistd.in.h (getdtablesize): Declare replacement.
34670         * lib/getdtablesize.c (rpl_getdtablesize): Work around it.
34671         * tests/test-getdtablesize.c (main): Test it.
34672         * doc/glibc-functions/getdtablesize.texi (getdtablesize): Document it.
34674 2013-09-25  Mats Erik Andersson  <gnu@gisladisker.se>
34676         pmccabe2html: escaping of special characters
34677         Escape all '<', '>', and '&' in HTML output.
34678         * build-aux/pmccabe2html (html_fnc): Call gsub()
34679         instead of sub() to capture all '<', '>', and '&'.
34680         Neither of '<' and '>' is special in a regexp,
34681         so first arguments to gsub() are corrected. Also,
34682         in replacement strings, ampersand must be escaped.
34683         Finally, '&' must be handled first, then '<' and '>'.
34685 2013-09-24  Eric Blake  <eblake@redhat.com>
34687         manywarnings: enable nicer gcc warning messages
34688         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Older gcc requires
34689         some -f options for optimal warnings.
34691 2013-09-21  Jim Meyering  <meyering@fb.com>
34693         timespec: use the new TIMESPEC_RESOLUTION in a few more places
34694         * lib/timespec-add.c (timespec_add): Also replace 999999999
34695         with TIMESPEC_RESOLUTION - 1.
34696         * lib/timespec-sub.c (timespec_sub): Likewise.
34698 2013-09-23  Paul Eggert  <eggert@cs.ucla.edu>
34700         warnings: port --enable-gcc-warnings to Solaris Studio 12.3
34701         Problem reported by Dagobert Michelsen via Eric Blake in
34702         <http://lists.gnu.org/r/bug-gnulib/2013-09/msg00052.html>.
34703         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use AC_LINK_IFELSE,
34704         not AC_COMPILE_IFELSE.
34706 2013-09-23  Eric Blake  <eblake@redhat.com>
34708         configmake: support new --runstatedir option
34709         * m4/configmake.m4 (gl_CONFIGMAKE_PREP): Substitute runstatedir
34710         even if autoconf was too old to provide the command line option.
34711         * modules/configmake (Makefile.am): Propagate it to .h file.
34713 2013-09-22  Paul Eggert  <eggert@cs.ucla.edu>
34715         ctype, string: depend on extern-inline
34716         This is needed to complete the recent OS X fixes.
34717         Also, fix related documentation as suggested by Eric Blake.
34718         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34719         * doc/posix-functions/isascii.texi, doc/posix-functions/iscntrl.texi:
34720         * doc/posix-functions/isdigit.texi, doc/posix-functions/isgraph.texi:
34721         * doc/posix-functions/islower.texi, doc/posix-functions/isprint.texi:
34722         * doc/posix-functions/ispunct.texi, doc/posix-functions/isspace.texi:
34723         * doc/posix-functions/isupper.texi, doc/posix-functions/isxdigit.texi:
34724         * doc/posix-functions/toascii.texi, doc/posix-functions/tolower.texi:
34725         * doc/posix-functions/toupper.texi:
34726         List the 'ctype' gnulib module.
34727         * doc/posix-functions/strcat.texi, doc/posix-functions/strcpy.texi:
34728         * doc/posix-functions/strncpy.texi:
34729         List the 'string' gnulib module.
34730         * modules/memcpy, modules/memmove, modules/memset (Depends-on):
34731         Add string.
34732         * modules/ctype, modules/string (Depends-on): Add extern-inline.
34734 2013-09-19  Pádraig Brady  <P@draigBrady.com>
34736         userspec: support optional parameters to parse_user_spec()
34737         * lib/userspec.c (parse_user_spec): If the GID param is NULL,
34738         then avoid group processing and treat the full spec as a user.
34739         (parse_with_separator): Allow the USERNAME and GROUPNAME to
34740         be optional params (NULL), in which case they're ignored.
34742 2013-09-19  Paul Eggert  <eggert@cs.ucla.edu>
34744         timespec: new function make_timespec, and new constants
34745         * lib/timespec.h: Incorporate recent changes on the Emacs trunk.
34746         (TIMESPEC_RESOLUTION, LOG10_TIMESPEC_RESOLUTION): New constants.
34747         (make_timespec): New function.
34748         * lib/dtotimespec.c (dtotimespec):
34749         * lib/timespec-add.c (timespec_add):
34750         * lib/timespec-sub.c (timespec_sub):
34751         * lib/utimens.c (validate_timespec):
34752         * lib/utimensat.c (rpl_utimensat):
34753         Use these new constants and functions.
34755         stdio: OS X port of putc_unlocked + extern inline
34756         * lib/stdio.in.h (putc_unlocked): #undef on problematic Apple platforms.
34757         * doc/posix-functions/putc_unlocked.texi:
34758         * doc/posix-functions/putchar_unlocked.texi:
34759         Document this portability problem.
34761         signal: OS X port of sigaddset etc. + extern inline
34762         * lib/signal.in.h (sigaddset, sigdelset, sigemptyset, sigfillset)
34763         (sigismember): #undef on problematic Apple platforms.
34764         * doc/posix-functions/sigaddset.texi:
34765         * doc/posix-functions/sigdelset.texi:
34766         * doc/posix-functions/sigemptyset.texi:
34767         * doc/posix-functions/sigfillset.texi:
34768         * doc/posix-functions/sigismember.texi:
34769         Document this portability problem.
34771         extern-inline: do not always suppress extern inline on OS X
34772         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Suppress the use of
34773         extern inline on Apple only if the particular compile-time
34774         configuration is known to have the problem.
34775         (_GL_EXTERN_INLINE_APPLE_BUG): New private macro, to implement this.
34776         (_GL_EXTERN_INLINE_IN_USE): New macro, intended for use by
34777         other Gnulib modules.
34779         extern-inline: document fixes for ctype and wctype macros
34780         * doc/posix-functions/isalnum.texi, doc/posix-functions/isalpha.texi:
34781         * doc/posix-functions/isascii.texi, doc/posix-functions/isblank.texi:
34782         * doc/posix-functions/iscntrl.texi, doc/posix-functions/isdigit.texi:
34783         * doc/posix-functions/isgraph.texi, doc/posix-functions/islower.texi:
34784         * doc/posix-functions/isprint.texi, doc/posix-functions/ispunct.texi:
34785         * doc/posix-functions/isspace.texi, doc/posix-functions/isupper.texi:
34786         * doc/posix-functions/iswalnum.texi, doc/posix-functions/iswalpha.texi:
34787         * doc/posix-functions/iswcntrl.texi, doc/posix-functions/iswctype.texi:
34788         * doc/posix-functions/iswdigit.texi, doc/posix-functions/iswgraph.texi:
34789         * doc/posix-functions/iswlower.texi, doc/posix-functions/iswprint.texi:
34790         * doc/posix-functions/iswpunct.texi, doc/posix-functions/iswspace.texi:
34791         * doc/posix-functions/iswupper.texi, doc/posix-functions/iswxdigit.texi:
34792         * doc/posix-functions/isxdigit.texi, doc/posix-functions/toascii.texi:
34793         * doc/posix-functions/memcpy.texi, doc/posix-functions/memmove.texi:
34794         * doc/posix-functions/memset.texi, doc/posix-functions/stpcpy.texi:
34795         * doc/posix-functions/stpncpy.texi, doc/posix-functions/strcat.texi:
34796         * doc/posix-functions/strcpy.texi, doc/posix-functions/strncat.texi:
34797         * doc/posix-functions/strncpy.texi:
34798         * doc/posix-functions/tolower.texi, doc/posix-functions/toupper.texi:
34799         * doc/posix-functions/towlower.texi, doc/posix-functions/towupper.texi:
34800         Document that Gnulib fixes portability problems with these
34801         functions on OS X 10.8 and earlier when called from plain inline
34802         or extern inline functions.
34804 2013-09-17  Kevin Cernekee  <cernekee@gmail.com>
34806         fflush, freadahead, fseeko: Fix for Android
34807         Suggested by Bruno Haible in:
34808         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00306.html>
34809         * lib/stdio-impl.h: Use local __sfileext definition.
34811 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>
34813         pmccabe2html: Portability to other awk versions.
34814         The functions systime() and strftime() are available
34815         in Gawk only.  Properly close two HTML-tags 'style'
34816         and 'span'.
34817         * build-aux/pmccabe2html (BEGIN): Store timing
34818         strings in EPOCH_TIME and CHRONOS_TIME.  Replace
34819         systime() in HTML_COMMENT.
34820         (html_header): Correctly close tag 'style'.
34821         (END): Replace strftime() by CHRONOS_TIME.  Close
34822         tag 'span' correctly, not as 'div'.
34824 2013-09-17  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
34826         getgroups: statement without effect
34827         * lib/getgroups.c (rpl_getgroups) [HAVE_GETGROUPS]:
34828         Change equality conditional to expected assignment.
34830 2013-09-09  Eric Blake  <eblake@redhat.com>
34832         glob: fix compilation
34833         * lib/glob.in.h (__THROW): Fix missing line in previous commit.
34835 2013-09-07  Eric Blake  <eblake@redhat.com>
34837         glob: fix build for platforms without __THROW
34838         * lib/glob.in.h (__THROW): Add definition again.
34840 2013-09-04  Anton Ovchinnikov  <revolver112@gmail.com>  (tiny change)
34842         regex-quote: fix buffer access out of bounds
34843         http://lists.gnu.org/r/bug-gnulib/2013-09/msg00001.html
34844         * lib/regex-quote.c (regex_quote_spec_pcre):
34845         Fix typo that resulted in an out-of-bounds read.
34847 2013-09-04  Eric Blake  <eblake@redhat.com>
34849         glob: avoid -Wattribute warnings on glibc
34850         * lib/glob.c (next_brace_sub, prefix_array, collated_compare): Use
34851         __THROWNL, not __THROW, on static functions.
34852         * lib/glob.in.h (__THROW): Adjust...
34853         (__THROWNL): ...accordingly.
34855 2013-08-28  Paul Eggert  <eggert@cs.ucla.edu>
34857         headers: check that _GL_INLINE_HEADER_BEGIN is defined
34858         Suggested by Bruce Korb in:
34859         http://lists.gnu.org/r/bug-gnulib/2013-08/msg00070.html
34860         * doc/extern-inline.texi (extern inline):
34861         Suggest checking that _GL_INLINE_HEADER_BEGIN is defined.
34862         * lib/acl-internal.h, lib/argp-fmtstream.h, lib/argp.h:
34863         * lib/binary-io.h, lib/bitrotate.h, lib/count-leading-zeros.h:
34864         * lib/count-one-bits.h, lib/eealloc.h, lib/execinfo.in.h:
34865         * lib/gethrxtime.h, lib/gl_list.h, lib/gl_oset.h, lib/gl_xlist.h:
34866         * lib/gl_xoset.h, lib/gl_xsublist.h, lib/glthread/cond.h:
34867         * lib/glthread/thread.h, lib/math.in.h, lib/mbchar.h, lib/mbfile.h:
34868         * lib/mbiter.h, lib/mbuiter.h, lib/openat.h, lib/pipe-filter-aux.h:
34869         * lib/priv-set.h, lib/pthread.in.h, lib/savewd.h, lib/se-context.in.h:
34870         * lib/se-selinux.in.h, lib/sig-handler.h, lib/stat-time.h:
34871         * lib/sys_socket.in.h, lib/timespec.h, lib/u64.h, lib/unistd.in.h:
34872         * lib/utimens.h, lib/wctype.in.h, lib/xalloc.h, lib/xsize.h:
34873         * lib/xtime.h:
34874         Check that _GL_INLINE_HEADER_BEGIN is defined.
34876 2013-08-29  Pádraig Brady  <P@draigBrady.com>
34878         bootstrap: remove the --version requirement from ancillary tools
34879         * build-aux/bootstrap (check_exists): A new refactored function to
34880         determine if a command exists.
34881         (find_tool): Use the new function which does not require the
34882         --version option to be supported.
34883         (check_versions): Use the new function.
34885 2013-08-26  Simon Josefsson  <simon@josefsson.org>
34887         gc: support HMAC-SHA256 and HMAC-SHA512.
34888         * lib/gc.h: Add gc_hmac_sha256 and gc_hmac_sha512.
34889         * lib/gc-libgcrypt.c (gc_hmac_sha256, gc_hmac_sha512): New
34890         functions.
34891         (gc_hmac_md5): Use symbolic constant.
34892         * lib/gc-gnulib.c: Include hmac.h for HMAC-SHA256/512 too.
34893         (gc_hmac_sha256, gc_hmac_sha512): New functions.
34894         * lib/hmac.h: Add hmac_sha256 and hmac_sha512 prototypes.
34895         * m4/sha256.m4: Protect against empty expansion.
34896         * m4/sha512.m4: Likewise.
34897         * lib/hmac-sha256.c: New file.
34898         * lib/hmac-sha512.c: Likewise.
34899         * m4/gc-hmac-sha256.m4: Likewise.
34900         * m4/gc-hmac-sha512.m4: Likewise.
34901         * m4/gc-sha256.m4: Likewise.
34902         * m4/gc-sha512.m4: Likewise.
34903         * modules/crypto/gc-hmac-sha256: Likewise.
34904         * modules/crypto/gc-hmac-sha256-tests: Likewise.
34905         * modules/crypto/gc-hmac-sha512: Likewise.
34906         * modules/crypto/gc-hmac-sha512-tests: Likewise.
34907         * modules/crypto/hmac-sha256: Likewise.
34908         * modules/crypto/hmac-sha256-tests: Likewise.
34909         * modules/crypto/hmac-sha512: Likewise.
34910         * modules/crypto/hmac-sha512-tests: Likewise.
34911         * tests/test-gc-hmac-sha256.c: Likewise.
34912         * tests/test-gc-hmac-sha512.c: Likewise
34913         * tests/test-hmac-sha256.c: Likewise.
34914         * tests/test-hmac-sha512.c: Likewise
34916 2013-08-24  Daiki Ueno  <ueno@gnu.org>
34918         * m4/intl.m4: Update from gettext-0.18.3.1, which fixes a misuse
34919         of AC_CHECK_DECLS.
34921 2013-08-23  Paul Eggert  <eggert@cs.ucla.edu>
34923         selinux-at: omit unnecessary include
34924         * lib/selinux-at.c: Don't include dosname.h; not needed, since
34925         this source file doesn't use its macros, and subsidiary files that
34926         use the macros already include it.
34928 2013-08-21  Eric Blake  <eblake@redhat.com>
34930         d-ino: avoid false negative on symlink
34931         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use lstat.
34932         Reported by Stephane Chazelas.
34934 2013-08-12  Mike Miller  <mtmiller@ieee.org>  (tiny change)
34936         bootstrap: port to OpenBSD sed
34937         * build-aux/bootstrap (insert_if_absent): Port to OpenBSD sed which
34938         does not interpret `-' as a file argument to mean stdin.
34940 2013-08-15  Eric Blake  <eblake@redhat.com>
34942         warnings: minor optimization
34943         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): Use fewer processes.
34945         warnings: check -Wfoo rather than -Wno-foo
34946         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): If name begins with
34947         -Wno-, test if the compiler recognizes the positive form instead.
34949 2013-08-15  Karl Berry  <karl@gnu.org>
34951         * config/srclist-update: add option "doclicense" to placate
34952         pulling *.texi files from Emacs.  Write terse usage
34953         documentation at the top.
34955 2013-08-13  Paul Eggert  <eggert@cs.ucla.edu>
34957         xvasprintf-tests: port to GCC with hardening flags
34958         * tests/test-xvasprintf.c (test_xasprintf): Pass another arg to
34959         xasprintf, to pacify GCC.  Reported by Santiago Vila in:
34960         http://lists.gnu.org/r/bug-diffutils/2013-08/msg00002.html
34962 2013-08-11  Paul Eggert  <eggert@cs.ucla.edu>
34964         fpending: port to recent Cygwin change to stdio_ext.h
34965         Reported by LRN in
34966         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00028.html>.
34967         * lib/fpending.h: Don't worry about HAVE_DECL___FPENDING;
34968         just declare __fpending unless it's a macro.
34969         A duplicate decl shouldn't hurt.
34970         * m4/fpending.m4 (gl_FUNC_FPENDING): Check that an __fpending
34971         call compiles and links, instead of separately checking for
34972         decl and lib function.
34973         * modules/fpending (configure-ac):
34974         Adjust to fpending.m4's renaming of shell variable.
34976 2013-08-10  Paul Eggert  <eggert@cs.ucla.edu>
34978         sys_time: port to OpenBSD
34979         * lib/sys_time.in.h: Simply delegate to the system's header
34980         in the BSDish cases as well.  Problem reported by Mike Miller in
34981         <http://lists.gnu.org/r/bug-gnulib/2013-08/msg00016.html>.
34982         * tests/test-sys_select.c, tests/test-sys_time.c (verify_tv_sec_type):
34983         Allow platforms like 64-bit OpenBSD where timeval's tv_sec is
34984         wider than time_t.
34986 2013-08-09  Pádraig Brady  <P@draigBrady.com>
34988         bootstrap: support checksum utils having -c but not --status
34989         * build-aux/bootstrap: Only look for sha1sum if updating po files.
34990         Add sha1 to the list of supported checksum utils since it's now
34991         supported through adjustments below.
34992         (update_po_files): Remove the use of --status
34993         in a way that will suppress all error messages, but since this is
34994         only used to minimize updates, it shouldn't cause an issue.
34995         Exit early if there is a problem updating the po file checksums.
34996         (find_tool): Remove the check for --version support as this
34997         is optional as per commit 86186b17.  Don't even check for the
34998         presence of the command as if that is needed, it's supported
34999         through configuring prerequisites in bootstrap.conf.
35000         Prompt that when a tool isn't found, one can define an environment
35001         variable to add to the hardcoded search list.
35003 2013-08-05  Jim Meyering  <meyering@fb.com>
35005         regex: port to non-glibc/lock-using systems
35006         Since 29-05-2013 commit, 55ba71f4, compilation on a non-glibc
35007         system with GNULIB_LOCK would fail due to absence of the
35008         included "glthread/lock.h".  This would affect any package
35009         for which the "lock" module is used only by the regex module,
35010         and not explicitly used.
35011         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_GLIBC21.
35012         * modules/regex (Depends-on) [!GLIBC && $ac_use_included_regex]:
35013         Add a dependency on the "lock" module.
35015 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35017         localecharset: make locale_charset thread-safe on Mac OS X
35018         * lib/localcharset.c (locale_charset) [DARWIN7]: Use MB_CUR_MAX_L
35019         instead of MB_CUR_MAX.
35021 2013-07-20  Daiki Ueno  <ueno@gnu.org>
35023         gettext: update to version 0.18.3
35024         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.3.  In particular,
35025         require AC_PROG_SED to allow user to specify custom sed command when
35026         generating en@quot PO file.
35028 2013-07-18  Werner Lemberg  <wl@gnu.org>  (tiny change)
35030         bootstrap: use correct source when copying build-aux files
35031         * build-aux/bootstrap (gnulib_extra_files): This variable is
35032         relative to upstream gnulib layout, not downstream.
35034 2013-07-17  Paul Eggert  <eggert@cs.ucla.edu>
35036         tmpdir: fix bug in VMS port
35037         * lib/tmpdir.c (path_search) [__VMS]: Never add slash.
35038         See Steven M. Schweda in
35039         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00026.html>.
35041 2013-07-15  Paul Eggert  <eggert@cs.ucla.edu>
35043         tmpdir: port to VMS, to // != /, and to long dirs
35044         * lib/tmpdir.c (__libc_secure_getenv) [!_LIBC]: Rename from
35045         __secure_getenv, so that we're more like the glibc version.
35046         All uses changed.
35047         (path_search): Don't put slash after directory if __VMS.
35048         Problem reported by Steven M. Schweda in
35049         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00019.html>.
35050         Simplify code to add slash; no need for a loop.
35051         Do not remove trailing slash from "//".
35052         Do not assume dlen <= INT_MAX.
35054 2013-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35056         regex: port to --with-included-regex --enable-gcc-warnings non-threaded
35057         * lib/regex_internal.h (lock_fini, lock_lock): Rework to avoid
35058         gcc warnings in the non-threaded case.  Reported by Charlie Brown in
35059         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00015.html>.
35061         accept4, dup3, pipe2: port to Cygwin
35062         Problem reported for Emacs by Ken Brown in <http://bugs.gnu.org/14821>.
35063         * lib/accept4.c (accept4) [O_BINARY]:
35064         * lib/dup3.c (dup3) [O_BINARY]:
35065         * lib/pipe2.c (pipe2) [O_BINARY]:
35066         Use set_binary_mode, not setmode.
35067         * lib/pipe2.c [!GNULIB_BINARY_IO]: Include binary-io.h.
35068         * modules/binary-io (Depends-on): Remove module indicator.
35069         These last two bits undo the previous change to pipe2 and binary-io.
35071 2013-07-09  Pádraig Brady  <P@draigBrady.com>
35073         mountlist: add support for deallocating returned list entries
35074         * lib/mountlist.c (free_mount_entry): A new exported function
35075         to deallocate a mount list entry.
35076         (read_file_system_list): Refactor to use the new deallocation function.
35077         Suggested by Anton Ovchinnikov.
35079 2013-07-07  Paul Eggert  <eggert@cs.ucla.edu>
35081         stdalign, verify: port to FreeBSD 9.1, to C11, and to C++11
35082         Problem reported by Ulrich Mueller in <http://bugs.gnu.org/14812>.
35083         * lib/stdalign.in.h (_Alignas, _Alignof):
35084         Port to FreeBSD 9.1, and to C11 and C++11.
35085         (_Alignas): Also support ICC.
35086         * lib/verify.h (_Static_assert): Undef if <stddef.h> defines it.
35087         * m4/stdalign.m4 (gl_STDALIGN_H): Port to ICC and to C++11.
35089 2013-07-06  Paul Eggert  <eggert@cs.ucla.edu>
35091         fnmatch: don't goto over declaration
35092         * lib/fnmatch_loop.c (FCT): Hoist local up one level, to avoid
35093         undefined behavior for goto over a declaration.
35094         Problem reported by Charlie Brown in
35095         <http://lists.gnu.org/r/bug-gnulib/2013-07/msg00009.html>.
35097         pipe2: decouple from binary-io a bit
35098         This is for Emacs, which needs pipe2 but not binary-io.
35099         * lib/pipe2.c [!GNULIB_BINARY_IO]: Don't include binary-io.h.
35100         * modules/binary-io (Depends-on): Add module indicator.
35102 2013-07-03  Eric Blake  <eblake@redhat.com>
35104         mgetgroups: relax license to LGPLv2+
35105         * modules/getugroups (License): Change from GPLv3+.
35106         * modules/mgetgroups (License): Likewise.
35107         * modules/getgroups (License): Change from LGPLv3+.
35109         xalloc-oversized: relax license to LGPLv2+
35110         * modules/xalloc-oversized (License): Change from GPLv3+.
35112         nproc: relax license to LGPLv2+
35113         * modules/nproc (License): Change from LGPLv3+.
35115         bootstrap: honor --no-git
35116         * build-aux/bootstrap: Don't even try to use git when user is
35117         pointing to a static checkout.
35119 2013-06-23  Paul Eggert  <eggert@cs.ucla.edu>
35121         ignore-value: port to gcc -pedantic
35122         * lib/ignore-value.h (ignore_value):
35123         Port to gcc -pedantic, by using __extension__.
35124         Reindent as per usual gnulib style nowadays.
35125         Simplify GCC version check.
35127 2013-06-21  Paul Eggert  <eggert@cs.ucla.edu>
35129         extern-inline: port to gcc -std=c89
35130         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
35131         Do not use __gnu_inline__ if pedantic and pre-C99.
35133 2013-06-18  Paul Eggert  <eggert@cs.ucla.edu>
35135         doc: document extern-inline
35136         * doc/extern-inline.texi: New file.
35137         * doc/gnulib.texi (alloca-opt): Include it.
35138         * m4/extern-inline.m4: Move some comments to documentation,
35139         and others closer to what they describe.
35141         doc: chatter less
35142         * doc/Makefile (NEWEST_GNULIB_TEXI_FILE): New macro.
35143         (updated-stamp): Use it.  This causes 'make' to output just
35144         one file name rather than zillions.
35146         fflush, fseeko: port to musl cross-compiles
35147         * lib/fseeko.c (fseeko): Assume that fflushing stdin works if
35148         on some implementation that (1) is not known to be buggy,
35149         (2) claims conformance to POSIX.1-2008 or later, and (3) is being
35150         cross-compiled to so we can't easily check for lack of
35151         conformance.  This is for cross-compiling to musl.
35152         Reported by Rich Felker in
35153         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00043.html>.
35154         * m4/fclose.m4 (gl_FUNC_FCLOSE):
35155         * m4/fflush.m4 (gl_FUNC_FFLUSH):
35156         * m4/fseeko.m4 (gl_FUNC_FSEEKO):
35157         Adjust to above change.
35158         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): Set gl_cv_func_fflush_stdin
35159         to 'cross', not to 'no', when cross-compiling.  AC_DEFINE
35160         FUNC_FFLUSH_STDIN to 1, 0, -1 if fflushing stdin is known to work,
35161         known not to work, or unknown.
35163 2013-06-15  Paul Eggert  <eggert@cs.ucla.edu>
35165         msvc-inval: port to mingw-w64
35166         * lib/msvc-inval.c (gl_msvc_invalid_parameter_handler):
35167         Use __cdecl, not cdecl, for mingw-w64.  Reported by LRN in
35168         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00039.html>.
35170 2013-06-11  Paul Eggert  <eggert@cs.ucla.edu>
35172         getcwd-lgpl: port to Tru64
35173         * lib/getcwd-lgpl.c: Include <stdlib.h>, for malloc etc.
35174         Problem reported by Steven M. Schweda in
35175         <http://lists.gnu.org/r/bug-gzip/2013-06/msg00010.html>.
35177         tests: port large-fd POSIX spawn tests to OS X
35178         Problem reported by Daiki Ueno in
35179         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00031.html>.
35180         * tests/test-posix_spawn_file_actions_addclose.c:
35181         * tests/test-posix_spawn_file_actions_adddup2.c:
35182         * tests/test-posix_spawn_file_actions_addopen.c:
35183         Include <limits.h>, for OPEN_MAX, if available.
35184         (big_fd): New static function.
35185         (main): Use it.
35187 2013-06-04  Bernhard Voelker  <mail@bernhard-voelker.de>
35189         tests/nap.h: use an adaptive delay to avoid ctime update issues
35190         The recent change in nap.h (5191133e) decreased the probability of lost
35191         races to about a third, however such problems could still be observed
35192         in virtual machines and openSUSE's OBS.
35193         Before, nap() detected the needed time once empirically and then used
35194         that delay (together with a small correction multiplier) in further
35195         calls.  This problem has been reported and discussed several times,
35196         including guesses about possible kernel issues:
35197         https://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html
35198         http://lists.gnu.org/r/coreutils/2012-03/msg00088.html
35199         https://lists.gnu.org/r/bug-gnulib/2011-11/msg00226.html
35200         http://bugs.gnu.org/12820
35201         https://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html
35202         https://lists.gnu.org/r/bug-gnulib/2009-11/msg00007.html
35203         Now, nap() avoids the race alltogether by verifying on a reference
35204         file whether a timestamp difference has happened.
35205         * tests/nap.h (nap_fd): Define file descriptor variable for the
35206         witness file.
35207         (nap_works): Change return value to bool.  Change passing
35208         the old file's status by value instead of by reference as this function
35209         does no longer update that timestamp; rename the function argument from
35210         st to old_st.  Remove the local variables cdiff and mdiff because that
35211         function now returns true/false instead of the precise delay.
35212         (guess_delay): Remove function.
35213         (clear_tmp_file): Add new function to close and unlink the witness file.
35214         (nap): Instead of re-using the delay which has been calculated during
35215         the first call, avoid the race by actually verifying that a timestamp
35216         difference can be observed on the current file system.  Use an adaptive
35217         approach for the delay to minimize execution time.  Assert that the
35218         maximum delay is <= ~2 seconds, more precisely sum(2^n) from 0 to 30
35219         = 2^31 - 1 = 2.1s.
35220         Use atexit to call clear_tmp_file when the process terminates.
35222 2013-06-02  Paul Eggert  <eggert@cs.ucla.edu>
35224         sig2str: port to C++
35225         * lib/sig2str.h (sig2str, str2sig): Declare as extern "C".
35226         Reported by Daniel J Sebald in
35227         <http://lists.gnu.org/r/bug-gnulib/2013-06/msg00000.html>.
35229 2013-05-30  Eric Blake  <eblake@redhat.com>
35231         docs: mention cygwin shortcoming in <sys/un.h>
35232         * doc/posix-headers/sys_un.texi (sys/un.h): Mention problem.
35234         vasnprintf: silence mingw compiler warning
35235         * lib/vasnprintf.c (VASNPRINTF): Avoid unused variable warning.
35237 2013-05-29  Paul Eggert  <eggert@cs.ucla.edu>
35239         c-ctype, regex, verify: port to gcc -std=c90 -pedantic
35240         Avoid constructions that are rejected by gcc -std=c90 -pedantic.
35241         This fixes a porting bug I recently reintroduced in regex, and
35242         some other instances that I discovered while testing the fix.
35243         * lib/c-ctype.h [__STRICT_ANSI__]: Avoid ({ ... }).
35244         * lib/regcomp.c (utf8_sb_map) [__STRICT_ANSI__]: Avoid [0 ... N] = E.
35245         * lib/regex_internal.h [!_LIBC && GNULIB_LOCK]: Do not use a macro
35246         with an empty argument if this is a pedantic pre-C99 GCC.
35247         * lib/verify.h: Do not use _Static_assert if this is a pedantic
35248         pre-C11 GCC.
35250         regex: adapt to locking regime instead of depending on pthread
35251         Instead of depending on pthread, adapt to whatever thread
35252         modules are in use.  Problem reported by Ludovic Courtès in
35253         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00082.html>
35254         and by Mats Erik Andersson in
35255         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00100.html>.
35256         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35257         Support either the 'lock' module, or the 'pthread' module, or
35258         no module.
35259         (lock_lock, lock_unlock): New macros.
35260         * lib/regexec.c (regexec, re_search_stub): Use the new macros.
35261         * modules/lock, modules/pthread (configure.ac): Add module indicator.
35262         * modules/regex (Depends-on): Remove pthread.
35264 2013-05-22  Eric Blake  <eblake@redhat.com>
35266         getgroups: document portability issues
35267         * doc/glibc-functions/initgroups.texi (initgroups): Mention
35268         multithread safety.
35269         * doc/posix-functions/getpwuid.texi (getpwuid): Likewise.
35270         * doc/posix-functions/getpwuid_r.texi (getpwuid_r): Likewise.
35271         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Mention
35272         getugroups.
35273         * doc/posix-functions/getgroups.texi (getgroups): Mention
35274         multithread safety and mgetgroups.
35276 2013-05-22  Bernhard Voelker  <mail@bernhard-voelker.de>
35278         test-lchown, test-chown: also skip test if chown fails with EPERM
35279         * tests/test-lchown.h (test_lchown): Add EPERM to the condition to
35280         skip this test, to handle FAT file systems.
35281         * tests/test-chown.h (test_chown): Likewise.
35283 2013-05-19  Paul Eggert  <eggert@cs.ucla.edu>
35285         regex: fix dfa race in multithreaded uses
35286         Problem reported by Ludovic Courtès in
35287         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00058.html>.
35288         * lib/regex_internal.h (lock_define, lock_init, lock_fini):
35289         New macros.  All uses of __libc_lock_define, __libc_lock_init
35290         changed to use the first two of these.
35291         (__libc_lock_lock, __libc_lock_unlock): New macros, for
35292         non-glibc platforms.
35293         (struct re_dfa_t): Define the lock unconditionally.
35294         * lib/regexec.c (regexec, re_search_stub): Remove some now-incorrect
35295         '#ifdef _LIBC"s.
35296         * modules/regex (Depends-on): Add pthread, if we use the
35297         included regex.
35299         * lib/regcomp.c: Do actions that are not needed for glibc,
35300         but may be needed elsewhere.
35301         (regfree, re_compile_internal): Destroy the lock.
35302         (re_compile_internal): Check for lock-initialization failure.
35304         malloca: port to compilers that reject size-zero arrays
35305         This fixes a bug introduced in my previous patch.
35306         * lib/malloca.c (struct preliminary_header): Use an int
35307         rather than a character array of size int; that's simpler.
35308         (struct header): Remove, replacing with ...
35309         (union header): New type.  This avoids the need for declaring a
35310         character array of size zero, which is not allowed on some platforms.
35311         All uses changed.
35313 2013-05-18  Paul Eggert  <eggert@cs.ucla.edu>
35315         parse-datetime, tests: don't use "string" + int
35316         Recent versions of 'clang' complain about C source code that
35317         uses expressions of the form '"string literal" + integer',
35318         I guess on the theory that it's confusing for readers who are
35319         used to C++.  On those grounds I suppose it's OK to make this
35320         minor style change.
35321         * lib/parse-datetime.y (parse_datetime):
35322         * tests/test-fchdir.c (main):
35323         * tests/test-snprintf-posix.h (test_function):
35324         * tests/test-snprintf.c (main):
35325         * tests/test-vasnprintf-posix.c (test_function):
35326         * tests/test-vasnprintf.c (test_function):
35327         * tests/test-vsnprintf.c (main):
35328         * tests/unistdio/test-ulc-asnprintf1.h (test_function):
35329         Rewrite '"str" + E' to '&"str"[E]'.
35331 2013-05-17  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
35333         argmatch: port to C++
35334         * lib/argmatch.h [__cplusplus]: Add extern "C".
35336         argp: typo fix
35337         * lib/argp-help.c: Typo in comment.
35339 2013-05-15  Paul Eggert  <eggert@cs.ucla.edu>
35341         manywarnings: update for GCC 4.8.0
35342         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC):
35343         Add -Waggressive-loop-optimizations, -Wreturn-local-addr, which
35344         are new to GCC 4.8.  Remove -Wformat=2, -Wmissing-format-attribute,
35345         -Wmissing-noreturn, as they are duplicates of other warnings.
35346         Remove -Wunreachable-code, as it is removed in GCC 4.8 and
35347         was documented to be flaky in earlier versions of GCC.
35349         spawn-tests, sys_socket-tests, sys_wait-tests: port to clang
35350         * tests/test-spawn.c (main):
35351         * tests/test-sys_socket.c (main):
35352         * tests/test-sys_wait.c (main):
35353         Don't have a switch value that isn't covered by a case.
35355         getaddrinfo-tests: port --enable-gcc-warnings to clang
35356         * tests/test-getaddrinfo.c (simple):
35357         Avoid casts from looser to stricter-aligned pointers.
35359         thread: port --enable-gcc-warnings to clang
35360         * lib/glthread/thread.h [__clang__ && USE_POSIX_THREADS_WEAK]:
35361         Include <signal.h>, to pacify a warning about pthread_sigmask.
35363         stdio: use __REDIRECT for fwrite, fwrite_unlocked
35364         * lib/stdio.in.h (fwrite):
35365         When working around bug 11959, use __REDIRECT rather than '#define
35366         fwrite(...) ... fwrite (...) ...'.  This is a more-targeted way to
35367         fix the -Wunused-value issue with clang, and it works with GCC too.
35368         Problem with targeting reported by Eric Blake in
35369         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00067.html>.
35370         (fwrite_unlocked): Treat like fwrite.  I ran into this issue while
35371         debugging the fwrite issue.
35373         stdio: port --enable-gcc-warnings to clang
35374         * lib/stdio.in.h (fwrite) [__clang__]: Ignore -Wunused-value entirely,
35375         since the GCC workaround for fwrite does not pacify clang.
35377         sig2str: port --enable-gcc-warnings to clang
35378         * lib/sig2str.c (sig2str): Avoid warning about unused printf argument.
35380         obstack: port --enable-gcc-warnings to clang
35381         * lib/obstack.h (obstack_ptr_grow_fast, obstack_int_grow_fast):
35382         Avoid casts from looser to stricter-aligned pointers.
35384         memchr2: port --enable-gcc-warnings to clang
35385         * lib/memchr2.c (memchr2):
35386         Avoid casts from looser to stricter-aligned pointers.
35388         mbsstr: port --enable-gcc-warnings to clang
35389         * lib/mbsstr.c (knuth_morris_pratt_multibyte):
35390         Avoid casts from looser to stricter-aligned pointers.
35392         malloca: port --enable-gcc-warnings to clang
35393         * lib/malloca.c (struct header): New member 'magic', to avoid casts.
35394         (mmalloca): Avoid casts from looser to stricter-aligned pointers.
35396         inttostr: port --enable-gcc-warnings to clang
35397         * lib/anytostr.c [__clang__]: Ignore -Wtautological-compare.
35399         warnings: port to clang
35400         Problem reported by Daniel P. Berrange via Eric Blake in
35401         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00055.html>.
35402         * m4/warnings.m4 (gl_UNKNOWN_WARNINGS_ARE_ERRORS): New macro.
35403         (gl_WARN_ADD): Use it.
35405 2013-05-11  Jim Meyering  <meyering@fb.com>
35407         quotearg: do not read beyond end of buffer
35408         * lib/quotearg.c (quotearg_buffer_restyled): Do not read beyond the
35409         end of an ARG for which no length was specified.  With an N-byte
35410         quote string, (e.g., N is 3 in the fr_FR.UTF-8 locale), this function
35411         would read N-2 bytes beyond ARG's trailing NUL.  This was triggered
35412         via coreutils' misc/sort-debug-keys.sh test and detected by running
35413         the test against a binary compiled with gcc-4.8.0's -fsanitize=address.
35414         * tests/test-quotearg-simple.c (main): Add a test to trigger the bug.
35415         * modules/quotearg-simple-tests (Files): Add tests/zerosize-ptr.h.
35416         Introduced via the 2000-01-15 commit, c4b7f3f8, "Quote multibyte
35417         characters correctly."
35419 2013-05-11  Daiki Ueno  <ueno@gnu.org>
35421         lock: work around pthread recursive mutexes bug in Mac OS X 10.6
35422         * m4/lock.m4: Don't define HAVE_PTHREAD_MUTEX_RECURSIVE if the
35423         compilation target is Mac OS X 10.6.
35424         Problem reported by parafin and Andoni Morales in
35425         <http://savannah.gnu.org/bugs/?37844> and
35426         <http://lists.gnu.org/r/bug-gettext/2013-05/msg00007.html>.
35428 2013-05-11  Paul Eggert  <eggert@cs.ucla.edu>
35430         mkdir-p: remove assumptions about umask and mode
35431         * lib/mkdir-p.c (make_dir_parents): Do not assume that the current
35432         umask is 0, or that MODE is a subset of MODE_BITS.
35434 2013-05-10  Eric Blake  <eblake@redhat.com>
35436         maint.mk: catch more abuse of HAVE_DECL in syntax-check
35437         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Relax regex.
35439 2013-05-10  Stefano Lattarini  <stefano.lattarini@gmail.com>
35441         deps: require Automake >= 1.9.6 in generated Makefile fragments
35443         That is the same minimal version required in the DEPENDENCIES file.
35444         Moreover, the old code generated a requirement of Automake >= 1.5,
35445         and that is an insanely outdated version.
35447         * gnulib-tool: Bump minimal version requirement in AUTOMAKE_OPTIONS.
35448         * tests/havelib/rpathlx/Makefile.am: Likewise.
35449         * tests/havelib/rpathly/Makefile.am: Likewise.
35450         * tests/havelib/rpathlyx/Makefile.am: Likewise.
35451         * tests/havelib/rpathlz/Makefile.am: Likewise.
35452         * tests/havelib/rpathlzyx/Makefile.am: Likewise.
35453         * tests/havelib/rpathx/Makefile.am: Likewise.
35454         * tests/havelib/rpathy/Makefile.am: Likewise.
35455         * tests/havelib/rpathz/Makefile.am: Likewise.
35457 2013-05-08  Eric Blake  <eblake@redhat.com>
35459         bootstrap: AC_INIT may have more than four parameters
35460         * build-aux/bootstrap (extract_package_name): Correctly extract
35461         non-empty tarname field.  Avoid range in regex.
35462         Based on a report by Sami Kerola <kerolasa@iki.fi>.
35464 2013-05-07  Paul Eggert  <eggert@cs.ucla.edu>
35466         qacl: port to MS-Windows port of GNU Emacs
35467         * lib/acl-errno-valid.c (acl_errno_valid) [ENOTSUP == ENOSYS]:
35468         Omit the duplicate ENOTSUP case.  Needed for the MS-Windows
35469         port of GNU Emacs.  Problem reported by Eli Zaretskii in
35470         <http://bugs.gnu.org/14295#14>.
35472 2013-05-07  Mike Frysinger  <vapier@gentoo.org>
35474         acl: include quote.h
35475         * lib/copy-acl.c: Include quote.h.
35476         * lib/set-acl.c: Likewise.
35478 2013-05-06  Mike Frysinger  <vapier@gentoo.org>
35480         fchownat, renameat, unlinkat: update statat dependencies
35481         These modules use statat and lstatat, not fstatat; so depend on
35482         the statat module, which was split out recently from fstatat.
35483         * modules/fchownat, modules/unlinkat: Change fstatat to statat.
35484         * modules/renameat: Likewise.  Also delete fstat.
35485         URL: http://bugs.gentoo.org/468790
35487 2013-05-04  Stefano Lattarini  <stefano.lattarini@gmail.com>
35489         Assume gnulib is checked out from Git, not CVS
35491         In fact, access to the gnulib repository through CVS has been
35492         disabled, or more precisely, got broken and was never restored; see:
35493         <http://lists.gnu.org/r/bug-gnulib/2013-05/msg00008.html>
35495         Note that support for CVS is not removed completely and unthinkingly
35496         by this change: only support for CVS checkouts of gnulib itself is
35497         removed.  For example, the 'bootstrap' script still cater to .cvsingore
35498         files and CVS directories, for the benefit of those poor gnulib clients
35499         still stuck with CVS.  Ditto for the 'gnulib-tool' script itself.
35501         * gnulib-tool: Simplify accordingly.
35502         * posix-modules: Likewise.
35503         * MODULES.html.sh: Likewise.
35504         * doc/gnulib.texi: No longer mention the decommissioned CVS gnulib
35505         repository.
35506         * doc/gnulib-intro.texi: Likewise.
35507         * doc/gnulib-readme.texi: Likewise.
35508         * doc/gnulib-tool.texi: In the examples and explanations, refer to a
35509         sample '.gitignore' file rather than a sample '.cvsignore'.
35510         * NEWS: Update.
35511         * m4/extensions.m4: While at it, remove a comment mistakenly referring
35512         to "CVS Autoconf" rather than "git Autoconf".
35514 2013-04-30  Paul Eggert  <eggert@cs.ucla.edu>
35516         utimensat-tests, etc.: try to fix some races
35517         Problem reported by Bernhard Voelker in
35518         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00071.html>.
35519         I don't know whether this patch fixes that race condition, but it
35520         fixes *some* race conditions, so it should be a win.
35521         * modules/chown-tests (Depends-on):
35522         * modules/fchownat-tests (Depends-on):
35523         * modules/fdutimensat-tests (Depends-on):
35524         * modules/futimens-tests (Depends-on):
35525         * modules/lchown-tests (Depends-on):
35526         * modules/stat-time-tests (Depends-on):
35527         * modules/utimens-tests (Depends-on):
35528         * modules/utimensat-tests (Depends-on):
35529         Depend on nanosleep, not usleep.
35530         * modules/chown-tests (test_chown_LDADD):
35531         * modules/lchown-tests (test_lchown_LDADD):
35532         * modules/stat-time-tests (test_stat_time_LDADD):
35533         New macro.
35534         * modules/fchownat-tests (test_fchownat_LDADD):
35535         * modules/fdutimensat-tests (test_fdutimensat_LDADD):
35536         * modules/futimens-tests (test_futimens_LDADD):
35537         * modules/utimens-tests (test_utimens_LDADD):
35538         * modules/utimensat-tests (test_utimensat_LDADD):
35539         Add $(LIB_NANOSLEEP).
35540         * modules/stat-time-tests (Files): Add tests/nap.h.
35541         * tests/nap.h: Include <limits.h>, for INT_MAX.
35542         (lt_mtime): Remove.
35543         (diff_timespec): New function.
35544         (get_stat): Rename from get_mtime.  All callers changed.
35545         (nap_works): Determine the needed delay by inspecting the
35546         file system's timestamp jumps; this should be more reliable.
35547         Look at both mtime and ctime, and take the maximum of the two jumps.
35548         (nap_works, guess_delay):
35549         Return a nanosecond count, not a microsecond count.
35550         All callers changed.
35551         (nap_works, nap): Use nanosleep, not usleep.  Check for nanosleep
35552         failure.
35553         (nap): Multiply the guess by 1.125, to accommodate the case where
35554         the file system's clock is a bit slower than nanosleep's clock.
35555         * tests/test-stat-time.c (BASE): New macro.
35556         Include nap.h.
35557         (nap): Remove; nap.h now defines this.  This removes a duplicate
35558         implementation of 'nap'.
35560         utimens, utimensat: work around Solaris UTIME_OMIT bug
35561         Solaris 11.1 and Solaris 10 have the same UTIME_OMIT bug that
35562         Linux kernel 2.6.32 does.  Work around it in the same way.
35563         * doc/posix-functions/futimens.texi (futimens):
35564         * doc/posix-functions/utimensat.texi (utimensat): Document the bug.
35565         * lib/utimens.c (fdutimens, lutimens):
35566         * lib/utimensat.c (rpl_utimensat): Work around the bug.
35568         gettext: now it's your responsibility to add -I$(top_builddir)/intl
35569         Formerly, it was your responsibility to do this for all Makefile.ams
35570         other than Gnulib's.  Now it's your responsibility to do it for
35571         Gnulib's Makefile.am, too.
35572         * NEWS: Document this.
35573         * modules/gettext (AM_CPPFLAGS): Don't append -$(top_builddir)/intl.
35575         acl: include errno.h to get errno
35576         Reported by Daiki Ueno in
35577         <http://lists.gnu.org/r/bug-gnulib/2013-04/msg00073.html>.
35578         * lib/copy-acl.c, lib/set-acl.c: Include errno.h.
35580 2013-04-29  Paul Eggert  <eggert@cs.ucla.edu>
35582         tests: don't assume getdtablesize () <= 10000000
35583         * modules/cloexec-tests:
35584         * modules/dup2-tests:
35585         * modules/dup3-tests:
35586         * modules/nonblocking-tests:
35587         * modules/posix_spawn_file_actions_addclose-tests:
35588         * modules/posix_spawn_file_actions_adddup2-tests:
35589         * modules/posix_spawn_file_actions_addopen-tests:
35590         * modules/unistd-safer-tests:
35591         Depend on the getdtablesize module.
35592         * tests/test-cloexec.c:
35593         * tests/test-dup-safer.c:
35594         * tests/test-dup2.c:
35595         * tests/test-dup3.c:
35596         * tests/test-fcntl.c:
35597         * tests/test-nonblocking.c:
35598         * tests/test-posix_spawn_file_actions_addclose.c:
35599         * tests/test-posix_spawn_file_actions_adddup2.c:
35600         * tests/test-posix_spawn_file_actions_addopen.c:
35601         Don't assume getdtablesize () <= 10000000.
35603 2013-04-28  Paul Eggert  <eggert@cs.ucla.edu>
35605         extern-inline: work around bug in Sun c99
35606         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35607         Work around bug in Sun C 5.12 c99's implementation of 'inline'.
35609 2013-04-27  Paul Eggert  <eggert@cs.ucla.edu>
35611         qacl: new module, broken out from the acl module
35612         This is for GNU Emacs, which wants the acl functions but does
35613         not want 'error' invoked when they fail.
35614         * lib/acl-internal.h: Do not include error.h, quote.h.
35615         (ENOSYS, ENOTSUP): Remove; no longer needed.
35616         (ACL_NOT_WELL_SUPPORTED): Remove; replaced by acl_errno_valid.
35617         * lib/acl.h: Include <stdbool.h>.
35618         (acl_errno_valid): New function.
35619         * lib/copy-acl.c, lib/set-acl.c: Include errno,h, not acl-internal.h.
35620         * lib/copy-acl.c (qcopy_acl): Move to lib/qcopy-acl.c.
35621         * lib/set-acl.c: Rename from lib/set-mode-acl.c.
35622         (chmod_or_fchmod, qset_acl): Move to lib/qset-acl.c.
35623         (ACL_INTERNAL_INLINE): Remove; no longer needed.
35624         * lib/file-has-acl.c (file_has_acl):
35625         * lib/qcopy-acl.c (qcopy_acl):
35626         * lib/qset-acl.c (qset_acl):
35627         Use acl_errno_valid instead of ACL_NOT_WELL_SUPPORTED.
35628         * modules/acl (Files): Move lib/acl.h, lib/acl-internal.h,
35629         lib/acl_entries.c, lib/set-mode-acl.c (renamed to lib/set-acl.c),
35630         lib/file-has-acl.c, m4/acl.m4 to qacl module.
35631         Add lib/set-acl.c.
35632         (Depends-on): Move extern-inline, fstat, sys_stat to qacl module.
35633         Add qacl.
35634         (configure.ac): Move gl_FUNC_ACL to qacl module.
35635         (lib_SOURCES): Remove file-has-acl.c (moved to qacl module).
35636         Rename set-mode-acl.c to set-acl.c.
35637         * lib/acl-errno-valid.c: New file.
35638         * lib/qcopy-acl.c: New file, moved from the old lib/copy-acl.c; the
35639         copy_acl function remains in copy-acl.c.
35640         * lib/qcopy-acl.c, lib/qset-acl.c: Do not include gettext.h.
35641         (_): Remove; not needed.
35642         * lib/qset-acl.c: New file, moved from the old lib/set-mode-acl.c; the
35643         set_acl function remains in set-acl.c (renamed from set-mode-acl.c).
35644         * modules/qacl: New file, moved from the old modules/acl.
35645         (Files, lib_SOURCES): Add acl-errno-valid.c, qcopy-acl.c, qset-acl.c.
35646         Remove set-mode-acl.c, copy-acl.c.
35647         (Depends-on): Remove error, gettext-h, quote.  Add stdbool.
35649         alignof, intprops, malloca: port better to IBM's C compiler
35650         * lib/alignof.h (alignof_type) [__IBM_ALIGNOF__]: Use __alignof__.
35651         * lib/intprops.h (_GL_HAVE___TYPEOF__) [__IBM_TYPEOF__]: Now 1.
35652         * lib/malloca.h (sa_alignof): [__IBM_ALIGNOF__]: Use __alignof__.
35654 2013-04-25  Daiki Ueno  <ueno@gnu.org>
35656         wctype-h: fix gettext link error on mingw
35657         Reported by Josue Andrade Gomes and Takayuki Tsunakawa in
35658         <https://lists.gnu.org/r/bug-gettext/2013-03/msg00086.html>.
35659         * lib/wctype.in.h [__MINGW32__]: Include <ctype.h> before defining
35660         rpl_towupper and rpl_towupper.
35662 2013-04-11  Dmitry V. Levin  <ldv@altlinux.org>
35664         regex-tests, regex: allow glibc re_search behavior
35665         * tests/test-regex.c (main): In test for glibc bug 15078, reformat
35666         re_search input data to make the multi-character collating element
35667         in it clearly visible, and treat re_search return code 0 as valid.
35668         * m4/regex.m4 (gl_REGEX): Likewise.
35670 2013-03-30  Paul Eggert  <eggert@cs.ucla.edu>
35672         stdalign: doc fix
35673         * doc/posix-headers/stdalign.texi (stdalign.h):
35674         Gnulib doesn't support '_Alignof expr'.
35676 2013-03-29  Paul Eggert  <eggert@cs.ucla.edu>
35678         stdalign: port to stricter ISO C11
35679         ISO C11 says that _Alignof's operand must be a parenthesized type.
35680         Problem reported by Eli Zaretskii in
35681         <http://lists.gnu.org/r/emacs-devel/2013-03/msg00960.html>.
35682         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
35683         * m4/stdalign.m4 (gl_STDALIGN_H): Don't use _Alignof (expr).
35685 2013-03-21  Paul Eggert  <eggert@cs.ucla.edu>
35687         sys_select, sys_time: port 2013-01-30 Solaris 2.6 fix to Cygwin
35688         Problem reported by Marco Atzeri in
35689         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00000.html>.
35690         * lib/sys_select.in.h [HAVE_SYS_SELECT_H && _CYGWIN_SYS_TIME_H]:
35691         Simply delegate to the system <sys/select.h> in this case too.
35692         Also, pay attention to _GL_SYS_SELECT_H_REDIRECT_FROM_SYS_TIME_H only
35693         if OSF/1, since otherwise Cygwin breaks, and it doesn't seem to
35694         be needed on Solaris either.
35695         * lib/sys_time.in.h [_CYGWIN_SYS_TIME_H]:
35696         Simply delegate to the system <sys/time.h> in this case.
35698 2013-03-19  Karl Berry  <karl@gnu.org>
35700         * build-aux/gnupload: check for erroneous (with gnupload) use of
35701         ftp-upload.gnu.org, tweak help.
35703 2013-03-19  Paul Eggert  <eggert@cs.ucla.edu>
35705         copy-file, rpmatch: fix problems found by cppcheck
35706         Reported by Arno Onken in
35707         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00069.html>.
35708         * lib/rpmatch.c (try): Fix memory leak.
35709         * lib/copy-file.c: Include "ignore-value.h".
35710         (qcopy_file_preserving): Ignore chown value.
35711         * modules/copy-file (Depends-on): Add ignore-value.
35713 2013-01-27  Jim Meyering  <jim@meyering.net>
35715         prefix-gnulib-mk: give better diagnostics
35716         * build-aux/prefix-gnulib-mk: Don't just "die".
35717         Give better diagnostics upon failure.
35719 2013-03-13  Paul Eggert  <eggert@cs.ucla.edu>
35721         putenv: port to Solaris 10
35722         * lib/putenv.c (_unsetenv, putenv): Use HAVE_DECL__PUTENV, not
35723         HAVE__PUTENV.  Solaris 10 has a _putenv that's not declared and
35724         is not what is wanted here.
35725         * m4/putenv.m4 (gl_PREREQ_PUTENV): Check for _putenv's
35726         declaration, not for its existence.
35728 2013-03-12  Paul Eggert  <eggert@cs.ucla.edu>
35730         mktime: fix configure typo
35731         * m4/mktime.m4 (gl_FUNC_MKTIME): Fix typo in previous change.
35733 2013-03-12  Eric Blake  <eblake@redhat.com>
35735         regex-tests: skip UTF-8 test on mingw
35736         * modules/regex-tests (Depends-on): Add localcharset.
35737         * tests/test-regex.c (main): Use it to skip test on mingw.
35739 2013-03-11  Eric Blake  <eblake@redhat.com>
35741         tests: make it easier to bypass alarm time in debugger
35742         * tests/test-file-has-acl.c (main): Allow gdb to override alarm.
35743         * tests/test-memmem.c (main): Likewise.
35744         * tests/test-passfd.c (main): Likewise.
35745         * tests/test-ptsname.c (main): Likewise.
35746         * tests/test-ptsname_r.c (main): Likewise.
35747         * tests/test-strcasestr.c (main): Likewise.
35748         * tests/test-strstr.c (main): Likewise.
35750         regex: port to mingw's recent addition of undeclared alarm
35751         * doc/posix-functions/alarm.texi (alarm): Document that alarm
35752         exists but still doesn't work in newer mingw.
35753         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm declaration,
35754         not existence.  Ensure SIGALRM is not trapped.
35755         * m4/mktime.m4 (gl_FUNC_MKTIME): Likewise.
35756         * m4/regex.m4 (gl_REGEX): Likewise.
35757         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): Likewise.
35758         * tests/test-regex.c (main): Use correct probe for alarm.
35760         putenv: avoid compilation warning on mingw
35761         * lib/putenv.c (_unsetenv): Protect variable declaration.
35762         (putenv): Fix indentation.
35764 2013-03-11  Gary V. Vaughan  <gary@gnu.org>
35766         unistd: don't prevent Tru64 Unix from using gnulib strtod.
35767         * lib/unistd.in.h: be careful not to include un-needed system
35768         stdlib.h from here, because that prevents gnulib stdlib.h from
35769         defining rpl_strtod correctly.
35771 2013-03-09  Gary V. Vaughan  <gary@gnu.org>
35773         vasprintf-posix-tests: allow rounding 1.51 to 1, per the previous
35774         changesets, but for the 'precision 0' test.
35775         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35776         round-to-even, since POSIX says rounding is implementation-defined
35777         and OS X 10.8.2 rounds 1.51 to 1 here.
35779         vasprintf-posix-tests: allow rounding 1.5 to 1, per the previous
35780         changeset.
35781         * tests/test-vasprintf-posix.c (test_function): Don't insist on
35782         round-to-even, since POSIX says rounding is implementation-defined
35783         and OS X 10.8.2 rounds 1.5 to 1 here.
35785 2013-03-08  Paul Eggert  <eggert@cs.ucla.edu>
35787         vasnprintf-posix-tests: allow rounding 1.5 to 1
35788         * tests/test-vasnprintf-posix.c (test_function): Don't insist on
35789         round-to-even, since POSIX says rounding is implementation-defined
35790         and OS X 10.8.2 rounds 1.5 to 1 here.  Reported by Gary V. Vaughan in
35791         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00019.html>.
35793         bootstrap: port to FreeBSD
35794         * build-aux/bootstrap (bootstrap_sync): Port sh -c usage to shells
35795         that treat '--' differently.  Reported by Mats Erik Andersson in
35796         <http://lists.gnu.org/r/bug-gnulib/2013-03/msg00012.html>.
35798 2013-03-08  Gary V. Vaughan  <gary@gnu.org>
35800         regex: rename remaining __attribute calls to __attribute__.
35801         2012-02-25 changed definition of __attribute, but left some uses
35802         unchanged, preventing compilation of regex module on most non-gcc
35803         environments.
35804         * lib/regcomp.c (re_set_fastmap, seek_collating_symbol_entry)
35805         (lookup_collation_sequence_value, build_range_exp)
35806         (build_collating_symbol): Set attributes with newly renamed
35807         __attribute__ decorator.
35808         * lib/regex_internal.c (re_string_peek_byte_case)
35809         (re_node_set_compare, re_node_set_contains): Likewise.
35810         * lib/regexec.c (acquire_init_state_context): Likewise.
35812 2013-03-06  Bruno Haible  <bruno@clisp.org>
35814         execute: Revert last change, but use a different condition.
35815         * lib/execute.c (nonintr_close, nonintr_open): Reintroduce, but only
35816         on Windows.
35818 2013-03-05  Eric Blake  <eblake@redhat.com>
35820         execute: drop dead code
35821         * lib/execute.c (nonintr_close, nonintr_open): Delete.
35823 2013-03-04  Paul Eggert  <eggert@cs.ucla.edu>
35825         non-recursive-gnulib-prefix-hack: port coreutils 8.21 to HP NonStop
35826         * m4/non-recursive-gnulib-prefix-hack.m4
35827         (gl_NON_RECURSIVE_GNULIB_PREFIX_HACK): Don't mess with ALLOCA.
35828         Problem reported for HP NonStop + coreutils 8.21 by Joachim Schmitz in
35829         <http://bugs.gnu.org/10305#237>.
35831 2013-03-04  Eric Blake  <eblake@redhat.com>
35833         test-getsockopt: avoid compiler warning
35834         * tests/test-getsockopt.c (includes): Ensure close is declared.
35836 2013-03-02  Bruno Haible  <bruno@clisp.org>
35838         sys_types: Avoid autoconf warning about gl_SYS_TYPES_H.
35839         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Define through AC_DEFUN_ONCE.
35841 2013-03-02  Bruno Haible  <bruno@clisp.org>
35843         gettext: Update to version 0.18.2.
35844         * m4/intl.m4, m4/po.m4: Update from gettext-0.18.2. In particular:
35845         2012-12-07  Stefano Lattarini  <stefano.lattarini@gmailcom>
35846                 * intl.m4, po.m4: Bump requirement in AC_PREREQ to 2.60.
35848 2013-02-25  Paul Eggert  <eggert@cs.ucla.edu>
35850         regex: merge patches from libc
35852         2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
35853         * lib/regex_internal.h (__attribute__): Rename from __attribute.
35854         All uses changed.
35855         (bitset_not, bitset_merge, bitset_mask, re_string_char_size_at)
35856         (re_string_wchar_at, re_string_elem_size_at):
35857         Mark function as possibly unused.
35859         2013-02-12  Andreas Schwab  <schwab@suse.de>  [BZ #11561]
35860         * lib/regcomp.c (parse_bracket_exp) [_LIBC]: When looking up collating
35861         elements compare against the byte sequence of it, not its name.
35863 2013-02-21  Paul Eggert  <eggert@cs.ucla.edu>
35865         putenv: port better to native Windows
35866         * lib/putenv.c [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35867         Define WIN32_LEAN_AND_MEAN and include <windows.h>.
35868         (_unsetenv): Use _putenv if available.
35869         (putenv): Temporarily set NAME=' ' rather than NAME='x' as that's
35870         a bit less likely to cause damage.
35871         (putenv) [(_WIN32 || __WIN32__) && ! __CYGWIN__]:
35872         Fix the wrong value with SetEnvironmentVariable.
35873         (putenv) [!HAVE__PUTENV]: Simplify and match the HAVE__PUTENV
35874         code better.
35876 2013-02-20  Paul Eggert  <eggert@cs.ucla.edu>
35878         regex: ignore old-style-definition warnings
35879         * lib/regex.c: Add pragma to ignore these warnings.
35880         Problem reported for GNU tar by Pavel Raiskup.
35882 2013-02-19  Paul Eggert  <eggert@cs.ucla.edu>
35884         getcwd: support coreutils better
35885         Like strtod, getcwd incorrectly referred to HAVE_RAW_DECL_GETCWD,
35886         but this might not be correct in coreutils, which disables
35887         the raw decl checks.  Problem reported by Nagendra in
35888         <http://bugs.gnu.org/10305#192>.
35889         * lib/getcwd.c (__getcwd): Do not depend on HAVE_RAW_DECL_GETCWD.
35890         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
35891         Test the getcwd function, not any macro, since getcwd.c wants the
35892         function.
35893         * m4/getcwd.m4 (gl_FUNC_GETCWD):
35894         Don't define HAVE_MINIMALLY_WORKING_GETCWD if the code doesn't
35895         compile, as might happen if there's a macro but no function.
35897         strtod: support coreutils better
35898         * lib/strtod.c (underlying_strtod): Just invoke the underlying strtod.
35899         HAVE_RAW_DECL_STRTOD might not be correct in coreutils, which
35900         disables the raw decl checks.  This assumes there is an underlying
35901         strtod, but that's a safe assumption these days.
35902         (HAVE_RAW_DECL_STRTOD): Remove; no longer used.
35904         mountlist: port to HP NonStop
35905         Reported by Joachim Schmitz in
35906         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00084.html>.
35907         * lib/mountlist.c (hasmntopt) [!HAVE_HASMNTOPT]: New function.
35908         (MNT_IGNORE) [MNTOPT_IGNORE]: Use it.
35910 2013-02-18  Paul Eggert  <eggert@cs.ucla.edu>
35912         extern-inline: avoid compilation error with HP-UX cc
35913         Reported by Richard Lloyd in
35914         <http://lists.gnu.org/r/bug-texinfo/2013-02/msg00030.html>.
35915         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE):
35916         Suppress extern inline with HP-UX cc.  This should be safe,
35917         though it may hurt performance.  Perhaps someone with some HP-UX
35918         experience can come up with a higher-performance fix.
35920 2013-02-14  Paul Eggert  <eggert@cs.ucla.edu>
35922         putenv: fix heap corruption with mixed putenv/_putenv
35923         Problem reported by Michael Goffioul in
35924         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00061.html>.
35925         * lib/putenv.c (putenv) [HAVE__PUTENV]:
35926         Rely on _putenv to allocate the new environment.
35927         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
35928         * modules/putenv (configure.ac): Use it.
35930 2013-02-11  Paul Eggert  <eggert@cs.ucla.edu>
35932         unsetenv etc.: port to Solaris 11 + GNU Emacs
35933         * lib/canonicalize-lgpl.c, lib/getaddrinfo.c, lib/getdelim.c:
35934         * lib/glob.c, lib/random_r.c, lib/setenv.c, lib/tsearch.c:
35935         * lib/unsetenv.c (_GL_ARG_NONNULL): Define before including <config.h>.
35936         GNU Emacs's <config.h> includes <stdlib.h> (which is not a great
35937         idea but is too painful to fix right now), and without this gnulib
35938         change <stdlib.h> was defining _GL_ARG_NONNULL incorrectly when
35939         compiling unsetenv.c on Solaris 11.  Fix the problem for
35940         unsetenv.c, and fix other similar occurrences.
35942 2013-02-09  Paul Eggert  <eggert@cs.ucla.edu>
35944         secure_getenv: fix C++ declaration typo
35945         * lib/stdlib.in.h (secure_getenv): Fix typo with return type
35946         in _GL_CXXALIAS_SYS macro.  Reported by John W. Eaton in
35947         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00057.html>.
35949 2013-02-08  Paul Eggert  <eggert@cs.ucla.edu>
35951         careadlinkat: stop exporting careadlinkatcwd
35952         Only Emacs used it directly, and Emacs no longer needs it.
35953         * NEWS: Document this simplification.
35954         * lib/areadlink.c (careadlinkatcwd): Move here from careadlinkat.c,
35955         and make it static.  Include <stdlib.h>, for abort, and unistd.h,
35956         for readlink.
35957         * lib/careadlinkat.c (careadlinkatcwd): Move to areadlink.c.
35958         Don't include stdlib.h; no longer needed.
35959         * lib/careadlinkat.h (careadlinkatcwd): Remove decl.
35960         * lib/relocwrapper.c: Adjust comment to match new dependencies.
35961         * modules/areadlink (Depends-on): Add readlink.
35962         (Maintainer): Add self.
35963         * modules/careadlinkat (Depends-on): Remove readlink.
35965         extensions: port better to HP-UX
35966         This is merged from git Autoconf.
35967         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35968         On hosts that need _XOPEN_SOURCE, define it when configuring, too,
35969         so that it's compatible with the value used when compiling.
35971         openpty: fix bug where HAVE_OPENPTY is mistakenly 1
35972         Problem reported by Mats Erik Andersson in
35973         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00051.html>.
35974         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
35975         openpty function exists, not merely when we intend to replace it.
35976         This corrects the 2013-01-31 patch, which mistakenly defined
35977         HAVE_OPENPTY even on hosts that lacked it.
35979 2013-02-07  Paul Eggert  <eggert@cs.ucla.edu>
35981         secure_getenv: fix include typo
35982         * lib/secure_getenv.c: Include config.h.  Somehow I forgot!
35984         secure_getenv: port better to FreeBSD and Solaris
35985         * lib/secure_getenv.c [!HAVE___SECURE_GETENV]:
35986         Include unistd.h if HAVE_ISSETUGID, otherwise define a dummy issetugid.
35987         (secure_getenv) [!HAVE___SECURE_GETENV]: Use getenv if not issetugid.
35988         This works better on BSDish platforms.
35989         * m4/secure_getenv.m4 (gl_PREREQ_SECURE_GETENV):
35990         Test for issetugid if __secure_getenv is missing.
35992 2013-02-06  Paul Eggert  <eggert@cs.ucla.edu>
35994         extensions: port better to MINIX 3, HP-UX, autoheader 2.62
35995         Some of these changes are merged in from git Autoconf.
35996         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
35997         When deciding whether to define _XOPEN_SOURCE, inspect the
35998         preprocessor macro __hpux instead of the more-heavyweight
35999         operation of requiring AC_CANONICAL_HOST.  Define _NETBSD_HOST on
36000         MINIX, for MINIX 3.  Use USE_SYSTEM_EXTENSIONS, not __EXTENSIONS__,
36001         as the key for __EXTENSIONS__.
36003         unistd: avoid namespace pollution on non-glibc systems
36004         * lib/unistd.in.h: #define __need_getopt before including <getopt.h>.
36005         This avoids namespace pollution on non-glibc systems, by causing
36006         gnulib unistd.h to behave more like glibc unistd.h.  I also hope
36007         that this fixes a bug on FreeBSD, reported by Mats Erik Andersson in
36008         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00027.html>.
36010 2013-02-04  Paul Eggert  <eggert@cs.ucla.edu>
36012         tmpdir: use secure_getenv
36013         * lib/tmpdir.c (__secure_getenv) [!LIBC]:
36014         Define to secure_getenv, not getenv.
36015         * m4/tmpdir.m4 (gt_TMPDIR): Don't check for __secure_getenv,
36016         as that's now secure_getenv's job.
36017         * modules/tmpdir (Depends-on): Add secure_getenv.
36019         tempname: use secure_getenv
36020         * lib/tempname.c (__secure_getenv) [!_LIBC]:
36021         Define to secure_getenv, not getenv.
36022         * modules/tempname (Depends-on):
36023         Add secure_getenv.
36025         secure_getenv: new module
36026         * MODULES.html.sh (Extra functions based on ANSI C 89):
36027         Add secure_getenv.
36028         * doc/glibc-functions/secure_getenv.texi: New file.
36029         * doc/gnulib.texi: Include it.
36030         * lib/secure_getenv.c, m4/secure_getenv.m4, modules/secure_getenv:
36031         New files.
36032         * lib/stdlib.in.h (secure_getenv): New decl.
36033         * m4/stdlib_h.m4 (gl_STDLIB_H, gl_STDLIB_H_DEFAULTS):
36034         * modules/stdlib (stdlib.h):
36035         Add secure_getenv checks.
36037 2013-02-03  Paul Eggert  <eggert@cs.ucla.edu>
36039         getcwd: break fdopendir + save_cwd recursive loop (Bug#13516)
36040         Reported for OS X 10.8.2 by Assaf Gordon in
36041         <http://bugs.gnu.org/13516>.
36042         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Do not define if
36043         !HAVE_OPENAT && !HAVE_FDOPENDIR.
36044         * m4/getcwd-abort-bug.m4: Reformat to match test-getcwd.c
36045         so that they can be kept in sync more easily.  Avoid PATH_MAX
36046         test on the Hurd.  Sync from test-getcwd.c for errno tests after
36047         mkdir or chdir failure.
36048         * tests/test-getcwd.c (HAVE_OPENAT_SUPPORT): New macro, from
36049         lib/getcwd.c.
36050         (test_abort_bug): Do not test for the deep directory bug unless we
36051         have openat support.  Avoid PATH_MAX test on the Hurd.
36053         regex-tests, regex: fix bug: memset undeclared
36054         * tests/test-regex.c: Don't include regex.h twice.  Include
36055         string.h, to declare memset.  Christensen's report also mentioned
36056         this issue.
36057         * m4/regex.m4 (gl_REGEX): Keep test program more in sync with
36058         test-regex.c, to avoid future problems like this.  Remove
36059         AC_INCLUDES_DEFAULT.  Include <string.h>.  Don't include <regex.h>
36060         twice.
36062         regex-tests: fix link errors on older Solaris
36063         These need to link with @LIBINTL@ to get libintl_gettext.
36064         Problem reported by Tom G. Christensen in
36065         <http://lists.gnu.org/r/bug-gnulib/2013-02/msg00003.html>.
36066         * modules/regex-tests (test_regex_LDADD): New macro.
36068 2013-01-31  Paul Eggert  <eggert@cs.ucla.edu>
36070         regex-tests: new module
36071         * modules/regex-tests, tests/test-regex.c: New files.
36073         regex: fix off-by-one error in configure test
36074         * m4/regex.m4 (gl_REGEX): Test should return 21, not 20.
36076 2013-01-31  Eric Blake  <eblake@redhat.com>
36078         regex: avoid infinite configure test
36079         * m4/regex.m4 (gl_REGEX): Add an alarm escape hatch.
36081 2013-01-31  Reuben Thomas  <rrt@sc3d.org>
36083         openpty: fix bug where HAVE_OPENPTY wasn't defined
36084         See the thread starting at:
36085         http://lists.gnu.org/r/bug-gnulib/2013-01/msg00185.html
36086         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when the
36087         openpty function exists, not merely when we intend to replace it.
36089 2013-01-30  Paul Eggert  <eggert@cs.ucla.edu>
36091         sys_time: port to Solaris 2.6
36092         There is a circularity problem on Solaris 2.6, where <time.h> includes
36093         <sys/time.h> for struct timespec.  The include nesting is gnulib
36094         <time.h>, system <time.h>, gnulib <sys/time.h>, system
36095         <sys/time.h>, gnulib <sys/types.h>, system <sys/types.h>, gnulib
36096         <sys/select.h>, gnulib <signal.h>, system <sys/signal.h>, system
36097         <sys/siginfo.h>; the last, innermost file needs struct
36098         timestruc_t, which is defined in <sys/time.h>, which has not been
36099         fully parsed.  Problem reported by Tom G. Christensen in
36100         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00113.html>.
36101         * lib/sys_select.in.h: Treat Solaris 2.6's problem with
36102         <sys/time.h> and <sys/types.h> like OSF/1's similar problem.
36103         * lib/sys_time.in.h: Redo to resemble sys_select.in.h, which
36104         uses split double-inclusion guards.
36106 2013-01-29  Paul Eggert  <eggert@cs.ucla.edu>
36108         regex: test for buffer overrun
36109         * m4/regex.m4 (gl_REGEX): Add test case, by Andreas Schwab,
36110         for the just-fixed regex bug.
36112 2013-01-29  Andreas Schwab  <schwab@suse.de>
36114         regex: fix buffer overrun in regexp matcher [BZ #15078]
36115         * lib/regexec.c (extend_buffers): Add parameter min_len.
36116         (check_matching): Pass minimum needed length.
36117         (clean_state_log_if_needed): Likewise.
36118         (get_subexp): Likewise.
36120 2013-01-28  Pádraig Brady  <P@draigBrady.com>
36122         mountlist: don't consider "devtmpfs" as dummy
36123         * lib/mountlist.c (ME_DUMMY_0): Remove "devtmpfs"
36124         as there is storage associcated with it.
36126 2013-01-27  Paul Eggert  <eggert@cs.ucla.edu>
36128         futimens-tests, utimens-tests: Depend on gettext.
36129         This works around a problem introduced in my 2013-01-12 patch,
36130         which added @LIBINTL@ to these modules.
36131         * modules/futimens-tests (Depends-on):
36132         * modules/utimens-tests (Depends-on): Add gettext.
36134 2013-01-26  Eric Blake  <eblake@redhat.com>
36136         test-getpeername: fix typo
36137         * tests/test-getpeername.c: Fix typo introduced in fd cleanup.
36139 2013-01-20  Bernhard Voelker  <mail@bernhard-voelker.de>
36141         bootstrap: remove the need for a sorted .gitignore file
36142         * build-aux/bootstrap (insert_sorted_if_absent): Adjust and
36143         rename to insert_if_absent(), so that we don't need or generate
36144         a sorted .gitignore file.  We do require a .gitignore with no
36145         existing duplicate entries and enforce that.
36146         (sort_patterns): Remove this function as we now use the simpler
36147         technigue of inserting blacklist entries at the top of the file,
36148         assuming gnulib won't be inserting !whitelist entries.
36150 2013-01-23  Paul Eggert  <eggert@cs.ucla.edu>
36152         readlinkat: don't depend on gl_FUNC_OPENAT
36153         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Don't require gl_FUNC_OPENAT.
36154         Perhaps a similar change needs to be made for linkat.m4, mkfifoat.m4,
36155         renameat.m4, symlinkat.m4; but one thing at a time.
36157         statat: new module, split out from fstatat
36158         GNU Emacs needs the POSIX-specified fstatat, but not the
36159         gnulib-specified statat and lstat.  Split the latter two into a
36160         new module 'statat'.
36161         * lib/openat.h: Depend on GNULIB_STATAT, not GNULIB_FSTATAT.
36162         * lib/openat.h, lib/statat.c (STATAT_INLINE):
36163         Rename from FSTATAT_INLINE. All uses changed.
36164         * modules/fstatat (Files): Remove lib/statat.c.
36165         (gl_MODULE_INDICATOR([fstatat])): Remove.
36166         (lib_SOURCES): Remove.
36167         (Maintainer): Add self.
36168         * modules/statat, modules/statat-tests, tests/test-statat.c: New files.
36169         * tests/test-fstatat.c (BASE): Don't define if already defined.
36170         (do_stat, do_lstat) [!TEST_STATAT]: Test fstatat instead.
36172 2013-01-22  Paul Eggert  <eggert@cs.ucla.edu>
36174         tests: don't assume fd 99 is closed
36175         * tests/test-accept.c, tests/test-accept4.c, tests/test-bind.c:
36176         * tests/test-close.c, tests/test-connect.c, tests/test-dprintf.c:
36177         * tests/test-dup.c, tests/test-dup2.c, tests/test-faccessat.c:
36178         * tests/test-fchdir.c, tests/test-fchmod.c, tests/test-fchmodat.c:
36179         * tests/test-fchown.c, tests/test-fchownat.c, tests/test-fclose.c:
36180         * tests/test-fdatasync.c, tests/test-fdopen.c, tests/test-fdopendir.c:
36181         * tests/test-fflush.c, tests/test-fgetc.c, tests/test-fputc.c:
36182         * tests/test-fread.c, tests/test-freopen.c, tests/test-fseeko4.c:
36183         * tests/test-fstat.c, tests/test-fstatat.c, tests/test-fsync.c:
36184         * tests/test-ftello4.c, tests/test-ftruncate.c, tests/test-futimens.h:
36185         * tests/test-fwrite.c, tests/test-getpeername.c:
36186         * tests/test-getsockname.c, tests/test-getsockopt.c:
36187         * tests/test-grantpt.c, tests/test-ioctl.c, tests/test-isatty.c:
36188         * tests/test-linkat.c, tests/test-listen.c, tests/test-lseek.c:
36189         * tests/test-mkdirat.c, tests/test-mkfifoat.c, tests/test-openat.c:
36190         * tests/test-pread.c, tests/test-pwrite.c, tests/test-read.c:
36191         * tests/test-readlinkat.c, tests/test-recv.c, tests/test-recvfrom.c:
36192         * tests/test-renameat.c, tests/test-select.h, tests/test-send.c:
36193         * tests/test-sendto.c, tests/test-setsockopt.c, tests/test-shutdown.c:
36194         * tests/test-symlinkat.c, tests/test-ttyname_r.c:
36195         * tests/test-unlinkat.c, tests/test-unlockpt.c:
36196         * tests/test-utimensat.c, tests/test-vdprintf.c, tests/test-write.c:
36197         Close file descriptor 99, instead of assuming it's already closed.
36199 2013-01-21  Paul Eggert  <eggert@cs.ucla.edu>
36201         stpncpy: port to OS X 10.8
36202         * lib/stpncpy.c (__stpncpy): Parenthesize name when defining function.
36203         Problem reported by Assaf Gordon in <http://bugs.gnu.org/13495>.
36205 2013-01-16  Paul Eggert  <eggert@cs.ucla.edu>
36207         unistd: port to recent mingw
36208         * lib/unistd.in.h: Remove special invocation convention for mingw,
36209         which breaks for the latest mingw version.  See John W. Eaton in
36210         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00100.html>.
36212         largefile: port better to Mac OS X 10.5
36213         This patch is backported from Autoconf git.
36214         * m4/largefile.m4 (AC_SYS_LARGEFILE): Use AC_DEFINE, not
36215         AH_VERBATIM, to define _DARWIN_USE_64_BIT_INODE, to avoid problems
36216         with ino_t size being different for configuration time versus
36217         build/run time.  Problem reported by PHO in
36218         <http://lists.gnu.org/r/bug-autoconf/2013-01/msg00040.html>.
36220 2013-01-15  Paul Eggert  <eggert@cs.ucla.edu>
36222         doc: clarify -Werror
36223         * doc/warnings.texi (warnings): -Werror is not always a bad idea;
36224         clarify that it's intended for developers, not for ordinary builds,
36225         and mention --enable-gcc-warnings as one possible use.
36227 2013-01-15  Andoni Morales Alastruey  <ylatuya@gmail.com>  (tiny change)
36229         stdint: fix build with Android's Bionic fox x86
36230         * lib/stdint.in.h: fix check to test if included-fixed/sys/types.h
36231         was already included as _SSIZE_T_DEFINED_ might also be defined
36232         in include/machine/_types.h, which is included by stdio.h
36234 2013-01-13  Paul Eggert  <eggert@cs.ucla.edu>
36236         net_if-tests: port to Solaris 7 + GCC 3.4.6
36237         Problem reported by Tom G. Christensen in
36238         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00091.html>.
36239         * tests/test-net_if.c (ni): Move to next the code that uses it,
36240         so that it's declared only if needed.
36242 2013-01-12  Paul Eggert  <eggert@cs.ucla.edu>
36244         net_if-tests: port to older Solaris
36245         Problem reported by Tom G. Christensen in
36246         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36247         * modules/net_if-tests (NET_IF_LIB): New substitution.
36248         (test_net_if_LDADD): New makefile macro, which uses NET_IF_LIB.
36249         (HAVE_IF_NAMEINDEX): New C macro.
36250         * tests/test-net_if.c: Bypass most of the test if !HAVE_IF_NAMEINDEX.
36252         system-quote-tests: port to older Solaris
36253         Problem reported by Tom G. Christensen in
36254         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36255         * tests/test-system-quote-child.c (fopen, fread): Undef.
36257         c-xvasprintf etc.: fix link errors on older Solaris
36258         These need to link with @LIBINTL@ to get libintl_gettext.
36259         Problem reported by Tom G. Christensen in
36260         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00086.html>.
36261         * modules/c-xvasprintf-tests (test_c_xvasprintf_LDADD):
36262         * modules/readtokens-tests (test_readtokens_LDADD): New macros.
36263         * modules/futimens-tests (test_futimens_LDADD):
36264         * modules/utimens-tests (test_utimens_LDADD): Add @LIBINTL@.
36266 2013-01-10  Paul Eggert  <eggert@cs.ucla.edu>
36268         locale: port to Solaris 2.6 and 7 + GNU gettext
36269         * lib/locale.in.h: Just include_next <locale.h> when
36270         being invoked recursively.  This prevents problems on Solaris 2.6 and 7
36271         when combining the localename module with GNU gettext 0.18.2.
36272         Problem reported by Tom G. Christensen in
36273         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00084.html>.
36275 2013-01-09  Paul Eggert  <eggert@cs.ucla.edu>
36277         stdlib: port to Solaris 2.6
36278         Also, the code worked on Solaris 7 through 9 only by accident.
36279         Problem reported by Tom G. Christensen in
36280         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00059.html>.
36281         * lib/stdlib.in.h: If __need_system_stdlib_h is defined,
36282         simply include the system stdlib.h.
36283         * lib/getopt.in.h (__need_system_stdlib_h):
36284         * lib/pthread.in.h (__need_system_stdlib_h):
36285         * lib/unistd.in.h (__need_system_stdlib_h) [!__GLIBC__]:
36286         Define when including <stdlib.h>, to avoid problems at least for
36287         the pthread case on Solaris 2.6 and 7.  These .h files can get by
36288         with the system stdlib.h.
36290 2013-01-06  Paul Eggert  <eggert@cs.ucla.edu>
36292         doc: update main copyright year
36293         * doc/gnulib.texi: Update copyright date.
36295         doc: improve ISO 8601 discussion
36296         * doc/parse-datetime.texi (Combined date and time of day items):
36297         Specify more carefully what formats are supported and what is
36298         done with excess precision.
36300 2013-01-05  Paul Eggert  <eggert@cs.ucla.edu>
36302         doc: avoid small caps
36303         * doc/parse-datetime.texi, doc/regex.texi: Don't use small caps;
36304         they're more trouble than they're worth.  Suggested by Karl Berry
36305         in <http://bugs.gnu.org/13360>.
36307         regex: conform to strict C
36308         * lib/regcomp.c (parse_bracket_exp): Add cast to conform to strict C.
36309         From Aharon Robbins.
36311         gnulib-tool: fix incompatibility with autopoint 0.18.2
36312         * gnulib-tool: Don't indent AM_GNU_GETTEXT_VERSION line.
36313         Problem reported by Tom G. Christensen in
36314         <http://lists.gnu.org/r/bug-gnulib/2013-01/msg00053.html>.
36316 2013-01-04  Paul Eggert  <eggert@cs.ucla.edu>
36318         fprintftime: bring back and reword fwrite comment
36319         * lib/strftime.c (cpy) [FPRINTFTIME]: Re-add reworded comment.
36321         stdio: remove now-unnecessary stdio.c
36322         Since stdio.in.h no longer uses inline functions, we no longer
36323         need to compile the extern versions.
36324         * lib/stdio.c: Remove.
36325         * modules/stdio (Files): Remove lib/stdio.c.
36326         (lib_SOURCES): Remove.
36328         unicodeio: depend on stdio, not ignore-value
36329         * lib/unicodeio.c: Do not include ignore-value.h.
36330         (fwrite_success_callback): Use plain fwrite, not ignore_value + fwrite.
36331         * modules/unicodeio (Depends-on): Depend on stdio, not ignore-value.
36333         fprintftime: depend on stdio, not ignore-value
36334         * lib/strftime.c [FPRINTFTIME]: Do not include ignore-value.h.
36335         (cpy) [FPRINTFTIME]: Use plain fwrite, not ignore_value of fwrite,
36336         since the stdio module arranges to silence that warning now.
36337         * modules/fprintftime (Depends-on): Depend on stdio, not ignore-value.
36339 2012-10-04  Simon Josefsson  <simon@josefsson.org>
36341         stdint-tests: Fix expanded-before-required-warning.
36342         * modules/stdint-tests (Depends-on): Use AC_REQUIRE.
36344 2013-01-03  Paul Eggert  <eggert@cs.ucla.edu>
36346         fwrite: silence __wur only for older glibc versions
36347         * lib/stdio.in.h (fwrite): Limit workaround to glibc 2.4 through 2.15.
36348         This will help us remove this workaround some time in the far future.
36350 2013-01-03  Eric Blake  <eblake@redhat.com>
36352         fwrite: silence __wur without using inline
36353         * lib/stdio.in.h (fwrite): Limit warn_unused_result workaround to
36354         just gcc, and in a way that avoids inline issues.
36355         * modules/stdio (Depends-on): Drop extern-inline.
36357 2013-01-03  Jim Meyering  <jim@meyering.net>
36359         update-copyright: avoid copyright notice date corruption
36360         Given a sequence of copyright year numbers in which the final
36361         one was a two-digit number that happened to be a substring of
36362         a preceding four-digit year number, we would mistakenly update
36363         the substring (from two- to four-digit) rather than the two-digit
36364         number at the end, which, combined with the addition of the current
36365         4-digit year number would yield two 5-digit year numbers, e.g.,
36366         here, it would convert the first "99" to "1999, 2013" rather than
36367         the final one:
36368           1991, 99
36369           11999, 20131, 1999
36370         * build-aux/update-copyright: Tighten a regexp.
36371         * tests/test-update-copyright.sh: Add a test case to trigger the bug.
36372         Reported by Joseph Myers in
36373         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/32281
36375 2013-01-01  Paul Eggert  <eggert@cs.ucla.edu>
36377         regex: omit needless signed-pointer casts
36378         * lib/regcomp.c (build_charclass, build_charclass_op):
36379         Use char *, not unsigned char *, for class name and extra.
36380         The char values are always nonnegative so there's no need to
36381         insist on unsigned char * here, and using char * removes the need
36382         for casts.  Reported by Aharon Robbins in
36383         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36385         regex: support Gawk, which never uses alloca
36386         * lib/regex_internal.h [!_LIBC && !HAVE_ALLOCA]:
36387         Do not include in this case.  Gawk doesn't supply a substitute
36388         alloca.h and doesn't need one.
36390         regex: port __libc_lock_define usage to C89
36391         * lib/regex_internal.h (__libc_lock_define) [!_LIBC]: Remove.
36392         (struct re_dfa_t): Use #ifdef instead.  '__libc_lock_define (, lock)'
36393         does not conform to C89, as it has an empty macro argument.
36394         Reported by Aharon Robbins in
36395         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36397 2013-01-01  Eric Blake  <eblake@redhat.com>
36399         maint: update all copyright year number ranges
36400         Run "make update-copyright".
36402         version-etc: bump copyright year reported in --version
36403         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2013.
36405 2012-12-31  Eric Blake  <eblake@redhat.com>
36407         sigprocmask-tests: skip test if pid is unexpectedly large
36408         * tests/test-sigprocmask.c (main): Add range check.
36410         git-version-gen: avoid test -z portability glitch
36411         * build-aux/git-version-gen: Prefer portable test spelling, since
36412         git-version-gen is run on more than just developer machines.
36414 2012-12-31  Peter Rosin  <peda@lysator.liu.se>  (tiny change)
36416         git-version-gen: add --fallback option to use if git is not present
36417         * build-aux/git-version-gen: Add support for the new option --fallback,
36418         which comes into play when there is no $tarball_version_file and
36419         git is not working.
36420         (scriptversion): Update.
36422         maint.mk: handle missing git with more grace
36423         * top/maint.mk (no-submodule-changes, public-submodule-commit):
36424         Quietly proceed if git is not present.
36426 2012-12-31  Eric Blake  <eblake@redhat.com>
36428         dup2: work around cygwin bug
36429         * m4/dup2.m4 (gl_FUNC_DUP2): Flush out cygwin core dump.
36430         * lib/dup2.c (rpl_dup2): Work around it.
36431         * doc/posix-functions/dup2.texi (dup2): Document it.
36433 2012-12-30  Paul Eggert  <eggert@cs.ucla.edu>
36435         regex: remove unnecessary dependency on localcharset.h
36436         * lib/regex_internal.h [!_LIBC]: Don't include localcharset.h;
36437         hasn't been needed for years.
36438         * modules/regex (Depends-on): Remove localcharset.
36440         regex: revert single-byte change
36441         * lib/regexec.c (check_node_accept_bytes): Revert previous change
36442         to this function.  This was alredy fixed in a different way, at
36443         bdb56bacd57070eced9998569ffe3f3c37ef5964 in the glibc git; see
36444         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=510219> and
36445         <http://sourceware.org/bugzilla/show_bug.cgi?id=9697>.
36447         regex: simplify based on Gawk version
36448         * lib/regex_internal.c (re_dfa_add_node): Simplify.
36449         Reported by Aharon Robbins in
36450         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36452 2012-12-29  Paul Eggert  <eggert@cs.ucla.edu>
36454         regex: check that pattern char is single-byte
36455         Reported by Aharon Robbins in
36456         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36457         * lib/regexec.c (check_node_accept_bytes):
36458         Return 0 if the pattern string has a multibyte character here.
36460         regex: implement rational ranges
36461         Reported by Aharon Robbins in
36462         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36463         * lib/regcomp.c (build_range_exp) [!_LIBC]:
36464         * lib/regexec.c (check_node_accept_bytes) [!_LIBC]:
36465         Implement rational ranges.
36467         regex: avoid redefining __wctype
36468         Reported by Aharon Robbins in
36469         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36470         * lib/regex_internal.h (__wctype, __iswctype) [!_LIBC]:
36471         #undef before defining.
36473         regex: port to hosts where malloc (0) == NULL
36474         Reported by Aharon Robbins in
36475         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36476         * lib/regex_internal.c (re_node_set_alloc):
36477         Don't assume that malloc (0) yields nonnull.
36478         * lib/regex_internal.h (MALLOC_0_IS_NONNULL): New macro.
36479         * m4/regex.m4 (gl_PREREQ_REGEX): Require gl_EEMALLOC.
36480         * modules/regex (Files): Add m4/eealloc.m4.
36482         regex: port to C89
36483         Reported by Aharon Robbins in
36484         <http://sourceware.org/ml/libc-alpha/2012-12/msg00456.html>.
36485         * lib/regcomp.c (init_word_char): Declaration before statement.
36487         regex: merge glibc changes
36488         Also, copy the license wording from glibc.  This simplifies
36489         merging changes.  gnulib-tool will change the wording to GPL as
36490         appropriate, when importing it to other packages.  The only
36491         glibc change made since the last merge, which needs merging, is:
36492         2012-05-24 Andreas Schwab <schwab@linux-m68k.org>
36493         * lib/regex_internal.h (gettext): Remove use of INTUSE.
36495         * users.txt: Add Emacs.
36497         doc: omit mention of version when not needed
36498         * doc/gnulib-intro.texi (Portability and Application Code):
36499         * doc/gnulib.texi (Brief Overview, Legacy Function Substitutes):
36500         Don't mention particular dates or versions when not necessary, so
36501         that the documentation won't go out of date so quickly.
36503         * doc/intprops.texi (Integer Properties): Fix Texinfo typo.
36505 2012-12-28  Akim Demaille  <akim@lrde.epita.fr>
36507         bootstrap: pass --force to autoreconf.
36508         * build-aux/bootstrap (AUTORECONFFLAGS): New.
36509         Add "--force" so that Automake's ylwrap and other such tools
36510         be updated at each bootstrap invocation.
36511         Use it.
36513 2012-12-27  Paul Eggert  <eggert@cs.ucla.edu>
36515         argp: fix port of port new 'inline' approach to Sun C 5.12 + Solaris 10
36516         The earlier patch forgot to update one of the #if conditions, causing
36517         a problem on Debian testing i386 reported by Mats Erik Andersson
36518         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00124.html>.
36519         * lib/argp-fmtstream.h (__argp_fmtstream_putc, argp_fmtstream_putc)
36520         (__argp_fmtstream_puts, argp_fmtstream_puts)
36521         (__argp_fmtstream_write, argp_fmtstream_write)
36522         [!_LIBC && !__OPTIMIZE__]: Declare as ARGP_FS_EI, not as extern.
36524         * doc/gnulib-readme.texi: Minor fixups.
36525         (Portability guidelines): Modernize URLs.  Remove some repetition.
36526         (Indent with spaces not TABs): Reword to avoid too-long lines.
36527         Remove some '@ifset standalone' stuff that isn't used.
36529         * doc/gnulib-readme.texi (Portability guidelines):
36530         ctype.h, not ctime.h.
36532         Correct name of POSIX.1-2001.
36533         * doc/posix-functions/fgetc.texi (fgetc):
36534         * doc/posix-functions/fgets.texi (fgets):
36535         * doc/posix-functions/fread.texi (fread):
36536         * doc/posix-functions/fscanf.texi (fscanf):
36537         * doc/posix-functions/getc.texi (getc):
36538         * doc/posix-functions/getchar.texi (getchar):
36539         * doc/posix-functions/scanf.texi (scanf):
36540         POSIX.1-2001, not POSIX-2001.
36542         doc: move README into manual
36543         * README: Move contents to new file doc/gnulib-readme.texi.
36544         Replace with a one-line summary.
36545         * doc/gnulib.texi (Brief Overview): New section,
36546         with old intro preface.  Include gnulib-readme.texi for contents.
36547         (Philosophy): Rename from "Introduction", since this
36548         section no longer introduces the rest.  Write a new preface.
36549         * doc/gnulib-readme.texi: New file, with the old contents of
36550         README texinfo-ized.  This way, the README info appears
36551         in the online and printed manual.
36553 2012-12-25  Ben Pfaff  <blp@cs.stanford.edu>
36555         c-xvasprintf: Fix "implicit declaration of function" GCC warning.
36556         * lib/c-xvasprintf.c: Add missing #include "c-vasprintf.h", for
36557         c_vasprintf() prototype.
36559 2012-12-24  Ben Pfaff  <blp@cs.stanford.edu>
36561         c-vasprintf: Fix "empty declaration" warning reported by GCC.
36562         * lib/c-vasprintf.h: Remove stray semicolon.
36564 2012-12-23  Paul Eggert  <eggert@cs.ucla.edu>
36566         gettext: avoid obsolete macro AM_PROG_MKDIR_P
36567         It is obsolete and is planned to be removed from Automake 1.14; see
36568         <http://lists.gnu.org/r/automake/2012-12/msg00029.html>.
36569         * build-aux/po/Makefile.in.in (install-data, install-data-yes)
36570         (installdirs-data, installdirs-data-yes):
36571         Use $(MKDIR_P), not $(mkdir_p).
36572         * m4/intl.m4 (AM_INTL_SUBDIR):
36573         * m4/po.m4 (AM_PO_SUBDIRS):
36574         Require AC_PROG_MKDIR_P, not AM_PROG_MKDIR_P.
36576 2012-12-22  Paul Eggert  <eggert@cs.ucla.edu>
36578         argp: port new 'inline' approach to Sun C 5.12 + Solaris 10
36579         On this platform, we are not optimizing but we are using
36580         the substitute for extern inlines, so compile as if
36581         C99-style extern inline, or a substitute, is available.
36582         * lib/argp-fmtstream.h (argp_fmtstream_set_lmargin)
36583         (__argp_fmtstream_set_lmargin, argp_fmtstream_set_rmargin)
36584         (__argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin)
36585         (__argp_fmtstream_set_wmargin, argp_fmtstream_point)
36586         (__argp_fmtstream_point) [!_LIBC && !__OPTIMIZE__]:
36587         Declare as ARGP_FS_EI, not as extern.
36588         * lib/argp.h (argp_usage, __argp_usage, _option_is_short)
36589         (__option_is_short, _option_is_end, __option_is_end)
36590         [!_LIBC && __USE_EXTERN_INLINES]:
36591         Declare as ARGP_EI, not as extern.
36593 2012-12-21  Paul Eggert  <eggert@cs.ucla.edu>
36595         AC_PROG_MKDIR_P: port workaround to pre-2.62 Autoconf
36596         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P, AC_C_RESTRICT):
36597         Use m4_ifndef([AC_AUTOCONF_VERSION], ...), not
36598         m4_if(m4_version_compare(m4_defn([AC_AUTOCONF_VERSION]),[2.62]),[-1],
36599         ...), as the latter is fatal with older Autoconfs.
36600         Problem reported and fix suggested by Eric Blake in thread starting at
36601         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00097.html>.
36603 2012-12-20  Paul Eggert  <eggert@cs.ucla.edu>
36605         AC_PROG_MKDIR_P: don't workaround if not buggy
36606         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P):
36607         Define only for Autoconf versions before 2.62.
36608         (AC_C_RESTRICT): Use documented AC_AUTOCONF_VERSION, not
36609         undocumented m4_PACKAGE_VERSION, for consistency with the
36610         abovementioned change to AC_PROG_MKDIR_P.  This should suffice
36611         since we're checking for 2.62 or later, and AC_AUTOCONF_VERSION
36612         was introduced in 2.62.
36614 2012-12-15  Ben Pfaff  <blp@cs.stanford.edu>
36616         New 'c-*printf' modules for formatted output in C locale.
36618         New module 'c-vasnprintf'.
36619         * modules/c-vasnprintf: New file.
36620         * lib/c-vasnprintf.c: New file.
36621         * lib/c-vasnprintf.h: New file.
36623         New module 'c-snprintf'.
36624         * modules/c-snprintf: New file.
36625         * modules/c-snprintf-tests: New file.
36626         * lib/c-snprintf.c: New file.
36627         * lib/c-snprintf.h: New file.
36628         * tests/test-c-snprintf.c: New file.
36629         * tests/test-c-snprintf.sh: New file.
36631         New module 'c-vsnprintf'.
36632         * modules/c-vsnprintf: New file.
36633         * modules/c-vsnprintf-tests: New file.
36634         * lib/c-vsnprintf.c: New file.
36635         * lib/c-vsnprintf.h: New file.
36636         * tests/test-c-vsnprintf.c: New file.
36637         * tests/test-c-vsnprintf.sh: New file.
36639         New module 'c-vasprintf'.
36640         * modules/c-vasprintf: New file.
36641         * modules/c-vasprintf-tests: New file.
36642         * lib/c-asprintf.c: New file.
36643         * lib/c-vasprintf.c: New file.
36644         * lib/c-vasprintf.h: New file.
36645         * tests/test-c-vasprintf.c  +: New file.
36646         * tests/test-c-vasprintf.sh: New file.
36648         New module 'c-xvasprintf'.
36649         * modules/c-xvasprintf: New file.
36650         * modules/c-xvasprintf-tests: New file.
36651         * lib/c-xasprintf.c: New file.
36652         * lib/c-xvasprintf.c: New file.
36653         * lib/c-xvasprintf.h: New file.
36654         * tests/test-c-xvasprintf.c: New file.
36655         * tests/test-c-xvasprintf.sh: New file.
36657 2012-12-18  Paul Eggert  <eggert@cs.ucla.edu>
36659         argp: better 'inline'
36660         Use extern-inline module to declare extern inline functions.
36661         This avoids some bogus warning diagnostics.  Problem discovered
36662         when modifying GNU tar to use the manywarnings module.
36663         * lib/argp.h, lib/argp-xinl.c (ARGP_EI) [!_LIBC]:
36664         * lib/argp-fmtstream.h, lib/argp-fs-xinl.c (ARGP_FS_EI) [!_LIBC]:
36665         Define based on extern-inline.
36666         * modules/argp (Depends-on): Add extern-inline.
36668 2012-12-17  Paul Eggert  <eggert@cs.ucla.edu>
36670         filemode, sys_stat: Handle MPX files a la AIX.
36671         * lib/filemode.c (ftypelet): Report 'm' for MPX files.
36672         * lib/sys_stat.in.h (S_ISMPX): New macro.
36673         * tests/test-sys_stat.c: Add tests for MPX files.
36675 2012-12-16  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
36677         x-to-1: honor $PERL
36678         * build-aux/x-to-1.in: Run $HELP2MAN via $PERL so that the user gets
36679         a chance to use his preferred version of Perl.  This is typically
36680         required by Darwin users whose default /usr/bin/perl does not have all
36681         the libraries required by help2man, and who need to use their MacPorts
36682         installation of Perl instead.
36684 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36686         gnu-web-doc-update: add all the new files, even in new directories
36687         See http://lists.gnu.org/r/bug-gnulib/2012-12/msg00057.html
36688         * build-aux/gnu-web-doc-update (--dry-run, $dryrun): New.
36689         Use it.
36690         (main): Don't use cvsutils to get the list of unknown files,
36691         just add all the existing files and directories.
36693 2012-12-16  Akim Demaille  <akim@lrde.epita.fr>
36695         gnu-web-doc-update: improve --help
36696         * build-aux/gnu-web-doc-update: Move comments into --help.
36698 2012-12-07  Eric Wong  <normalperson@yhbt.net>
36700         mountlist: recognize more "dummy" file systems
36701         * lib/mountlist.c (ME_DUMMY_0):
36702         Add these dummy FS names to the list:
36703         - "debugfs" virtual filesystem for kernel debugging
36704         - "devpts" PTY slave filesystem
36705         - "devtmpfs" device filesystem on top of tmpfs/ramfs
36706         - "fusectl" control filesystem for FUSE
36707         - "mqueue" enumerates POSIX message queues
36708         - "rpc_pipefs" kernel <-> userspace bridge for NFS
36709         - "sysfs" is for exporting kernel objects
36710         - "devfs" device filesystem for Linux 2.4 and FreeBSD
36712 2012-12-11  Paul Eggert  <eggert@cs.ucla.edu>
36714         extern-inline: avoid incompatibility with Darwin Libc
36715         * m4/extern-inline.m4 (_GL_INLINE, _GL_EXTERN_INLINE): Do not use
36716         extern inline if __APPLE__.  Use _GL_UNUSED in the non-inline branch.
36717         Problem reported by Akim Demaille in
36718         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00023.html>.
36720 2012-12-11  Simon Josefsson  <simon@josefsson.org>
36722         gnupload: Work with GnuPG using gpg-agent (for smartcards).
36723         * build-aux/gnupload: If GnuPG is configured to use gpg-agent,
36724         let it handle password prompting.
36726 2012-12-10  Eli Zaretskii  <eliz@gnu.org>
36728         canonicalize, canonicalize-lgpl: Microsoft Windows prefix fixes
36729         * lib/canonicalize.c (canonicalize_filename_mode):
36730         * lib/canonicalize-lgpl.c (__realpath): Recompute prefix_len after
36731         fetching the current directory.  Don't overrun the beginning of
36732         rpath if there's no slashes after the MS-Windows drive letter.
36734 2012-12-08  Stefano Lattarini  <stefano.lattarini@gmail.com>
36736         maint.mk: avoid extra forks
36737         * top/maint.mk (_cfg_mk): The GNU make manual documents that
36738         "$(wildcard FILE)" expands to empty if FILE doesn't exist.
36739         So use that instead of "$(shell test -f FILE && echo FILE)".
36741 2012-12-07  Paul Eggert  <eggert@cs.ucla.edu>
36743         vasnprintf: fix ASCII_ONLY typo
36744         * lib/unistdio/u8-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36745         * lib/unistdio/u16-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36746         * lib/unistdio/u32-vasnprintf.c (FCHAR_T_ONLY_ASCII):
36747         New macro, replacing ASCII_ONLY.  This fixes a typo.  See thread at
36748         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00021.html>.
36750 2012-12-05  Paul Eggert  <eggert@cs.ucla.edu>
36752         list, oset, xlist, xoset: fix extern inline issue with C99
36753         This was introduced by my recent changes for 'inline'.
36754         Problem reported for gettext by Daiki Ueno in
36755         <http://lists.gnu.org/r/bug-gnulib/2012-12/msg00000.html>.
36756         * lib/gl_list.h (gl_list_nx_create_empty, gl_list_create)
36757         (gl_list_nx_create, gl_list_size, gl_list_node_value)
36758         (gl_list_node_set_value, gl_list_node_nx_set_value, gl_list_next_node)
36759         (gl_list_previous_node, gl_list_get_at)
36760         (gl_list_nx_set_at, gl_list_search, gl_list_search_from)
36761         (gl_list_search_from_to, gl_list_indexof, gl_list_indexof_from)
36762         (gl_list_indexof_from_to, gl_list_nx_add_first, gl_list_nx_add_last)
36763         (gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at)
36764         (gl_list_remove_node, gl_list_remove_at, gl_list_remove, gl_list_free)
36765         (gl_list_iterator, gl_list_iterator_from_to, gl_list_iterator_next)
36766         (gl_list_iterator_free, gl_sortedlist_search)
36767         (gl_sortedlist_search_from_to, gl_sortedlist_indexof)
36768         (gl_sortedlist_indexof_from_to, gl_sortedlist_add, gl_sortedlist_nx_add)
36769         (gl_sortedlist_remove):
36770         * lib/gl_oset.h (go_oset_nx_create_empty, gl_oset_size, gl_oset_search)
36771         (gl_oset_search_atleast, gl_oset_nx_add, gl_oset_remove, gl_oset_free)
36772         (gl_oset_iterator, gl_oset_iterator_next, gl_oset_iterator_free):
36773         * lib/gl_xlist.h (gl_list_create_empty, gl_list_create)
36774         (gl_list_node_set_value, gl_list_set_at, gl_list_add_first)
36775         (gl_list_add_last, gl_list_add_before, gl_list_add_after)
36776         (gl_list_add_at, gl_sortedlist_add):
36777         * lib/gl_xoset.h (gl_oset_create_empty, gl_oset_add):
36778         Wrap these extern decls inside "#if 0", because they are implemented
36779         as inline functions, and extern inline is not what's wanted here.
36780         It would simplify these .h files to remove the extern decls entirely,
36781         although a downside would be less-clear separation between
36782         specification and implementation.
36784 2012-11-29  Paul Eggert  <eggert@cs.ucla.edu>
36786         sys_stat: no 'static inline'
36787         * lib/sys_stat.in.h (rpl_mkdir): Now static, not static inline.
36788         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Do not require AC_C_INLINE.
36790         extern-inline: no 'static inline'
36791         * m4/extern-inline.m4 (gl_EXTERN_INLINE):
36792         Do not require AC_C_INLINE.
36793         (_GL_INLINE, _GL_EXTERN_INLINE): Define as 'static', not as
36794         'static inline', for older compilers.
36796         snippet/warn-on-use: no 'static inline'
36797         * build-aux/snippet/warn-on-use.h:
36798         Remove unnecessary 'inline' in comment.
36800         rbtree-list, rbtreehash-list: no 'static inline'
36801         * lib/gl_anyrbtree_list2.h (rotate_left, rotate_right):
36802         * lib/gl_anytree_list2.h (node_at):
36803         * lib/gl_anytreehash_list1.h (hash_resize_after_add)
36804         (gl_oset_first, add_nodes_to_buckets):
36805         Now static, not static inline.
36807         regex: no 'static inline'
36808         * lib/regex_internal.c (calc_state_hash):
36809         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain)
36810         (bitset_empty, bitset_set_all, bitset_copy, bitset_not, bitset_merge)
36811         (bitset_mask, re_string_char_size_at, re_string_wchar_at):
36812         Now static, not static inline.
36813         (inline) [__GNUC__ < 3 && _LIBC]:
36814         Remove macro; no longer needed.
36816         xvasprintf: no 'static inline'
36817         * lib/xvasprintf.c (xstrcat):
36818         Now static, not static inline.
36819         * m4/xvasprintf.m4 (gl_XVASPRINTF):
36820         Do not require AC_C_INLINE.
36822         parse-datetime, parse-duration: no 'static inline'
36823         * lib/parse-datetime.y (to_uchar):
36824         * lib/parse-duration.c (str_const_to_ul, str_const_to_l)
36825         (scale_n_add):
36826         Now static, not static inline.
36827         * m4/parse-datetime.m4 (gl_PARSE_DATETIME):
36828         * modules/parse-duration (configure.ac):
36829         Do not require AC_C_INLINE.
36831         getaddrinfo: no 'static inline'
36832         * lib/getaddrinfo.c (validate_family):
36833         Now static, not static inline.
36834         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO):
36835         Do not require AC_C_INLINE.
36837         ftruncate, fts, lstat, openat, raise: no 'static inline'
36838         * lib/ftruncate.c (chsize_nothrow):
36839         * lib/fts.c (opendirat, diropen):
36840         * lib/lstat.c (orig_lstat):
36841         * lib/openat.c (orig_openat):
36842         * lib/raise.c (raise_nothrow):
36843         Now static, not static inline.
36844         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE):
36845         * m4/fts.m4 (gl_FUNC_FTS_CORE):
36846         * m4/lstat.m4 (gl_PREREQ_LSTAT):
36847         * m4/openat.m4 (gl_PREREQ_OPENAT):
36848         * m4/raise.m4 (gl_PREREQ_RAISE):
36849         Do not require AC_C_INLINE.
36851         fflush, stat: no 'static inline'
36852         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
36853         (clear_ungetc_buffer, disable_seek_optimization)
36854         (restore_seek_optimization, update_fpos_cache):
36855         * lib/stat.c (orig_stat):
36856         Now static, not static inline.
36857         * lib/fflush.c (disable_seek_optimization, restore_seek_optimization)
36858         (update_fpos_cache):
36859         Define only if ! (defined _IO_ftrylockfile || __GNU_LIBRARY__ == 1).
36860         * m4/fflush.m4 (gl_PREREQ_FFLUSH):
36861         * m4/stat.m4 (gl_PREREQ_STAT):
36862         Do not require AC_C_INLINE.
36864         error, filevercmp: no 'static inline'
36865         * lib/error.c (is_open, flush_stdout):
36866         * lib/filevercmp.c (order):
36867         Now static, not static inline.
36868         * m4/error.m4 (gl_PREREQ_ERROR):
36869         * modules/filevercmp (configure.ac):
36870         Do not require AC_C_INLINE.
36872         dup, execute, fatal-signal, etc.: no 'static inline'
36873         * lib/dup.c (dup_nothrow):
36874         * lib/execute.c (nonintr_close, nonintr_open):
36875         * lib/fatal-signal.c (uninstall_handlers, install_handlers):
36876         * lib/fopen.c (orig_fopen):
36877         * lib/freadseek.c (freadptrinc):
36878         * lib/freopen.c (orig_freopen):
36879         * lib/fstat.c (orig_fstat, fstat_nothrow):
36880         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit)
36881         (get_rusage_as_via_iterator):
36882         * lib/get-rusage-data.c (get_rusage_data_via_setrlimit):
36883         * lib/getdtablesize.c (_setmaxstdio_nothrow):
36884         * lib/isatty.c (_isatty_nothrow):
36885         * lib/open.c (orig_open):
36886         * lib/read.c (read_nothrow):
36887         * lib/sigprocmask.c (signal_nothrow):
36888         * lib/spawn-pipe.c (nonintr_close, nonintr_open):
36889         * lib/vasnprintf.c (MAX_ROOM_NEEDED):
36890         * lib/wait-process.c (unregister_slave_subprocess):
36891         * lib/write.c (write_nothrow):
36892         Now static, not static inline.
36893         * lib/spawn-pipe.c (nonintr_open): Define only if
36894         (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__.
36895         * m4/dup.m4 (gl_PREREQ_DUP):
36896         * m4/execute.m4 (gl_EXECUTE):
36897         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL):
36898         * m4/fopen.m4 (gl_PREREQ_FOPEN):
36899         * m4/freadseek.m4 (gl_FUNC_FREADSEEK):
36900         * m4/freopen.m4 (gl_PREREQ_FREOPEN):
36901         * m4/fstat.m4 (gl_PREREQ_FSTAT):
36902         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE):
36903         * m4/isatty.m4 (gl_PREREQ_ISATTY):
36904         * m4/open.m4 (gl_PREREQ_OPEN):
36905         * m4/read.m4 (gl_PREREQ_READ):
36906         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK):
36907         * m4/spawn-pipe.m4 (gl_SPAWN_PIPE):
36908         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF):
36909         * m4/wait-process.m4 (gl_WAIT_PROCESS):
36910         * m4/write.m4 (gl_PREREQ_WRITE):
36911         * modules/get-rusage-as, modules/get-rusage-data (configure.ac):
36912         Do not require AC_C_INLINE.
36914         c-strtod, memcoll, readutmp: no 'static inline'
36915         * lib/c-strtod.c (c_locale):
36916         * lib/memcoll.c (strcoll_loop):
36917         * lib/readutmp.c (desirable_utmp_entry):
36918         Now static, not static inline.
36919         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD):
36920         * m4/memcoll.m4 (gl_MEMCOLL):
36921         * m4/readutmp.m4 (gl_READUTMP):
36922         Do not require AC_C_INLINE.
36924         arctwo, md4, md5, sha1, sha256, sha512: no 'static inline'
36925         * lib/arctwo.c (to_uchar):
36926         * lib/md4.c (set_uint32):
36927         * lib/md5.c (set_uint32):
36928         * lib/sha1.c (set_uint32):
36929         * lib/sha256.c (set_uint32):
36930         * lib/sha512.c (set_uint64):
36931         Now static, not static inline.  This is a bit simpler, and doesn't
36932         affect performance with GCC and default optimization.
36933         * m4/arctwo.m4 (gl_ARCTWO):
36934         * m4/md4.m4 (gl_MD4):
36935         * m4/md5.m4 (gl_MD5):
36936         * m4/sha1.m4 (gl_SHA1):
36937         * m4/sha256.m4 (gl_SHA256):
36938         * m4/sha512.m4 (gl_SHA512):
36939         Do not require AC_C_INLINE.
36941         cond, lock, thread: better 'inline'
36942         * lib/glthread/cond.c, lib/glthread/cond.h (_GLTHREAD_COND_INLINE):
36943         * lib/glthread/thread.c, lib/glthread/thread.h (_GLTHREAD_THREAD_INLINE):
36944         New macros.  Use them instead of static inline, for header functions.
36945         * lib/glthread/cond.c (gl_waitqueue_init, gl_waitqueue_remove)
36946         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36947         * lib/glthread/lock.c (gl_waitqueue_init)
36948         (gl_waitqueue_notify_first, gl_waitqueue_notify_all):
36949         * lib/glthread/thread.c (get_current_thread_handle):
36950         Change 'static inline' to 'inline'.
36951         * lib/glthread/cond.h, lib/glthread/thread.h:
36952         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36953         * m4/cond.m4 (gl_COND):
36954         * m4/lock.m4 (gl_PREREQ_LOCK):
36955         * m4/thread.m4 (gl_THREAD):
36956         Do not require AC_C_INLINE.
36957         * modules/cond, modules/thread (Depends-on): Add extern-inline.
36959         chdir-long, cycle-check, savewd: better 'inline'
36960         * lib/chdir-long.c (cdb_init, cdb_fchdir, cdb_free)
36961         (find_non_slash):
36962         * lib/cycle-check.c (is_zero_or_power_of_two):
36963         * lib/savewd.c (savewd_delegating):
36964         Change 'static inline' to 'inline'.
36965         * lib/savewd.c, lib/savewd.h (SAVEWD_INLINE): New macro.
36966         Replace all remaining uses of 'static inline' with it.
36967         * lib/savewd.h:
36968         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
36969         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG):
36970         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
36971         * m4/savewd.m4 (gl_SAVEWD):
36972         Do not require AC_C_INLINE.
36973         * modules/savewd (Depends-on): Add extern-inline.
36975         base32, base64: no need for 'inline'
36976         * lib/base32.c (to_uchar, get_8, decode_8):
36977         * lib/base64.c (to_uchar, get_4, decode_4):
36978         Change 'static inline' to 'inline'.
36979         * m4/base32.m4 (gl_PREREQ_BASE32):
36980         * m4/base64.m4 (gl_PREREQ_BASE64):
36981         Do not require AC_C_INLINE.
36983         array-oset, linkedhash-list, rbtree-oset: no need for 'inline'
36984         * lib/gl_array_oset.c (gl_array_nx_add_at):
36985         (gl_array_remove_at):
36986         * lib/gl_linkedhash_list.c (hash_resize_after_add)
36987         (add_to_bucket, remove_from_bucket):
36988         * lib/gl_rbtree_oset.c (rotate_left, rotate_right):
36989         Change 'static inline' to 'static', as it's simpler to omit
36990         'inline' unless there's a significant performance advantage.
36992         list, oset, xlist, xoset, xsublist: simplify via extern inline
36993         * lib/gl_list.h, lib/gl_list.c (GL_LIST_INLINE):
36994         * lib/gl_oset.c, lib/gl_oset.h (GL_OSET_INLINE):
36995         * lib/gl_xlist.c, lib/gl_xlist.h (GL_XLIST_INLINE):
36996         * lib/gl_xoset.c, lib/gl_xoset.h (GL_XOSET_INLINE):
36997         * lib/gl_xsublist.c, lib/gl_xsublist.h (GL_XSUBLIST_INLINE):
36998         New macro.  Replace all uses of 'static inline' with it.
36999         [HAVE_INLINE]: Implement functions as *_INLINE functions,
37000         instead of as macros FOO that are defined to static inline
37001         functions FOO_inline.
37002         * lib/gl_list.c, lib/gl_oset.c, lib/gl_xlist.c, lib/gl_xoset.c:
37003         * lib/gl_xsublist.c:
37004         Reimplement from scratch, by defining the corresponding *_INLINE
37005         macro and including the corresponding .h file.  This is simpler.
37006         * modules/list, modules/oset, modules/xlist, modules/xoset:
37007         (Files): Remove m4/gl_list.m4.
37008         (configure.ac): Remove gl_LIST.
37009         * m4/gl_list.m4: Remove.
37010         * modules/list, modules/oset, modules/xlist, modules/xoset:
37011         * modules/xsublist:
37012         (Depends-on): Depend on extern-inline, not inline.
37014         xalloc: better 'inline'
37015         * lib/xmalloc.c, lib/xalloc.h (XALLOC_INLINE):
37016         New macro.  Replace all uses of 'static inline' with it.
37017         (static_inline): Remove.
37018         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
37019         Let 'extern inline' do the work automatically, instead of doing
37020         it by hand.
37021         * m4/xalloc.m4 (gl_PREREQ_XALLOC, gl_PREREQ_XMALLOC):
37022         Remove.  All uses removed.
37023         * modules/xalloc (Depends-on): Remove 'inline'.  Add 'extern-inline'.
37025         gethrxtime: better 'inline'
37026         * lib/xtime.c: New file.
37027         * lib/gethrxtime.c, lib/gethrxtime.h (GETHRXTIME_INLINE):
37028         * lib/xtime.h (XTIME_INCLUDE):
37029         New macros.  Replace all uses of 'static inline' with them.
37030         * lib/gethrxtime.c (gethrxtime): Define only if
37031         ! (HAVE_ARITHMETIC_HRTIME_T && HAVE_DECL_GETHRTIME), since
37032         this source file is now always compiled, because of the extern inline.
37033         * lib/gethrxtime.h, lib/xtime.h:
37034         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37035         * m4/gethrxtime.m4 (gl_GETHRXTIME): Do not check for clock macros
37036         if gethrtime works, as they're not needed in that case.
37037         (gl_XTIME): Do not require AC_C_INLINE.
37038         (gl_PREREQ_GETHRXTIME): Remove; all uses removed, as it's always
37039         compiled now.  Move the check into gl_GETHRXTIME.
37040         * modules/gethrxtime (Files, lib_SOURCES): Add lib/xtime.c.
37041         (Depends-on): Add extern-inline.
37042         (configure.ac): gethrxtime is always compiled now.
37043         (lib_SOURCES): Add gethrxtime.c.
37045         wctype-h: better 'inline'
37046         * lib/wctype-h.c: New file.
37047         * lib/wctype.in.h (_GL_WCTYPE_INLINE):
37048         New macro.  Replace all uses of 'static inline' with it.
37049         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37050         * m4/wctype_h.m4 (gl_WCTYPE_H): Do not require AC_C_INLINE.
37051         * modules/wctype-h (Files, lib_SOURCES): Add lib/wctype-h.c.
37052         (Depends-on): Add extern-inline.
37054         unistd: better 'inline'
37055         * lib/unistd.c: New file.
37056         * lib/unistd.in.h (_GL_UNISTD_INLINE):
37057         New macro.  Replace all uses of 'static inline' with it.
37058         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37059         * m4/unistd_h.m4 (gl_UNISTD_H): Do not require AC_C_INLINE.
37060         * modules/unistd (Files, lib_SOURCES): Add lib/unistd.c.
37061         (Depends-on): Add extern-inline.
37063         sys_socket: better 'inline'
37064         * lib/sys_socket.c: New file.
37065         * lib/sys_socket.in.h (_GL_SYS_SOCKET_INLINE):
37066         New macro.  Replace all uses of 'static inline' with it.
37067         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37068         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Do not require AC_C_INLINE.
37069         * modules/sys_socket (Files, lib_SOURCES): Add lib/sys_socket.c.
37070         (Depends-on): Add extern-inline.
37072         stdio: better 'inline'
37073         * lib/stdio.c: New file.
37074         * lib/stdio.in.h (_GL_STDIO_INLINE):
37075         New macro.  Replace all uses of 'static inline' with it.
37076         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37077         * m4/stdio_h.m4 (gl_STDIO_H): Do not require AC_C_INLINE.
37078         * modules/stdio (Files, lib_SOURCES): Add lib/stdio.c.
37079         (Depends-on): Add extern-inline.
37081         sigaction: better 'inline'
37082         * lib/sig-handler.c: New file.
37083         * lib/sig-handler.h (SIG_HANDLER_INLINE):
37084         New macro.  Replace all uses of 'static inline' with it.
37085         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37086         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): Do not require AC_C_INLINE.
37087         * modules/sigaction (Files, lib_SOURCES): Add lib/sig-handler.c.
37088         (Depends-on): Add extern-inline.
37090         selinux-h: better 'inline'
37091         * lib/se-context.c, lib/se-selinux.c: New files.
37092         * lib/getfilecon.c (map_to_failure): Omit 'inline' for static function.
37093         * lib/se-context.in.h (SE_CONTEXT_INLINE):
37094         New macro.  Replace all uses of 'static inline' with it.
37095         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37096         * lib/se-selinux.in.h (SE_SELINUX_INLINE):
37097         New macro.  Replace all uses of 'static inline' with it.
37098         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37099         * modules/selinux-h (Files, lib_SOURCES):
37100         Add lib/se-context.c, lib/se-selinux.c.
37101         (Depends-on): Add extern-inline.
37102         (configure.ac): Do not require AC_C_INLINE.
37104         pthread: better 'inline'
37105         * lib/pthread.c: New file.
37106         * lib/pthread.in.h (_GL_PTHREAD_INLINE):
37107         New macro.  Replace all uses of 'static inline' with it.
37108         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37109         * m4/pthread.m4 (gl_PTHREAD_CHECK):
37110         Add AC_LIBOBJ([pthread]).  Do not require AC_C_INLINE.
37111         * modules/pthread (Files): Add lib/pthread.c.
37112         (Depends-on): Add extern-inline.
37114         math: better 'inline'
37115         * lib/math.c: New file.
37116         * lib/math.in.h (_GL_MATH_INLINE):
37117         New macro.  Replace all uses of 'static inline' with it.
37118         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37119         * m4/math_h.m4 (gl_MATH_H):
37120         Do not require AC_C_INLINE.
37121         * modules/math (Files, lib_SOURCES):
37122         Add lib/math.c.
37123         (Depends-on): Add extern-inline.
37125         count-one-bits: better 'inline'
37126         * lib/count-one-bits.c: New file.
37127         * lib/count-one-bits.h (COUNT_ONE_BITS_INLINE):
37128         New macro.  Replace all uses of 'static inline' with it.
37129         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37130         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS):
37131         Do not require AC_C_INLINE.
37132         * modules/count-one-bits (Files, lib_SOURCES):
37133         Add lib/count-one-bits.c.
37134         (Depends-on): Add extern-inline.
37136         count-leading-zeros: better 'inline'
37137         * lib/count-leading-zeros.c: New file.
37138         * lib/count-leading-zeros.h (COUNT_LEADING_ZEROS_INLINE):
37139         New macro.  Replace all uses of 'static inline' with it.
37140         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37141         * m4/count-leading-zeros.m4 (gl_COUNT_LEADING_ZEROS):
37142         Do not require AC_C_INLINE.
37143         * modules/count-leading-zeros (Files, lib_SOURCES):
37144         Add lib/count-leading-zeros.c.
37145         (Depends-on): Add extern-inline.
37147         bitrotate: better 'inline'
37148         * lib/bitrotate.c: New file.
37149         * lib/bitrotate.h (BITROTATE_INLINE):
37150         New macros.
37151         Replace all uses of 'static inline' with them.
37152         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37153         * modules/bitrotate (Files, lib_SOURCES): Add lib/bitrotate.c.
37154         (Depends-on): Add extern-inline.
37155         (configure.ac): Do not require AC_C_INLINE.
37157 2012-11-20  Theophile Ranquet  <ranquet@lrde.epita.fr>
37159         maint.mk: avoid gratuitous failure
37160         Reported by Stefano Lattarini in
37161         <http://lists.gnu.org/r/bug-bison/2012-11/msg00022.html>
37162         * top/maint.mk (public-submodule-commit): Quote more safely.
37164 2012-11-20  Eli Zaretskii  <eliz@gnu.org>
37166         canonicalize, canonicalize-lgpl: support MS-Windows file names
37167         See <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00074.html>
37168         for test cases, which it'd be nice to add at some point.
37169         * lib/canonicalize.c, lib/canonicalize-lgpl.c: Include dosname.h.
37170         * lib/canonicalize.c (canonicalize_filename_mode):
37171         * lib/canonicalize-lgpl.c (__realpath):
37172         Use FILE_SYSTEM_PREFIX_LEN instead of assuming that the first
37173         slash is at the beginning of the file name.  Use ISSLASH, instead
37174         of a literal '/'.  Use IS_ABSOLUTE_FILE_NAME instead of comparing
37175         the first character with '/'.  Test for
37176         DOUBLE_SLASH_IS_DISTINCT_ROOT only if the file name does not begin
37177         with a drive letter.
37178         * lib/canonicalize.c (SLASHES): New macro.
37179         (canonicalize_filename_mode): Use SLASHES instead of a literal "/".
37181 2012-11-17  Dmitry V. Levin  <ldv@altlinux.org>
37183         fts: introduce FTS_VERBATIM
37184         * lib/fts_.h (FTS_VERBATIM): New bit flag.
37185         (FTS_OPTIONMASK, FTS_NAMEONLY, FTS_STOP): Adjust.
37186         * lib/fts.c (fts_open): Honor it.
37188 2012-11-09  Pádraig Brady  <P@draigBrady.com>
37190         getlogin-tests: allow errno == ENXIO
37191         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37192         with errno == ENXIO (No controlling tty).
37193         getlogin_r-tests: Likewise. Also allow errno == ENOENT
37194         * tests/test-getlogin_r.c (main): Skip tests if getlogin_r fails
37195         with errno == ENOENT.  This was reported to happen in various
37196         situations on GNU/Linux.
37198 2012-11-09  Paul Eggert  <eggert@cs.ucla.edu>
37200         getlogin-tests: allow errno == ENOENT
37201         * tests/test-getlogin.c (main): Skip tests if getlogin fails
37202         with errno == ENOENT.  This happened to me on Ubuntu 12.04.1 x86,
37203         when running a test in an Emacs shell buffer.
37205 2012-11-08  Jim Meyering  <jim@meyering.net>
37207         tests/nap.h: avoid warning about unused variable
37208         * tests/nap.h (nap_works): Remove now-unused declaration of "result".
37210         prefix-gnulib-mk: avoid overzealous "lib/"-prefix addition
37211         * build-aux/prefix-gnulib-mk (prefix): Tighten a regexp to require
37212         white space before each of the special-cased file names, to avoid
37213         adding "lib/" after $(libdir)/.  Reported by Matias A. fonzo
37214         in http://bugs.gnu.org/12830.
37216 2012-11-08  Paul Eggert  <eggert@cs.ucla.edu>
37218         fcntl-h: default O_SEARCH, O_EXEC back to O_RDONLY
37219         O_PATH doesn't work with Linux kernel 3.6.5, as fchmod (fd, ...)
37220         fails with errno == EBADF when fd is opened with O_PATH.
37221         Reported by Jim Meyering in
37222         <http://lists.gnu.org/r/bug-gnulib/2012-11/msg00026.html>.
37223         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37224         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default back to O_RDONLY.
37226 2012-11-07  Paul Eggert  <eggert@cs.ucla.edu>
37228         test-utimens: speed up by taking shorter naps
37229         * tests/nap.h (lt_mtime, get_mtime, nap_works, guess_delay):
37230         New functions.
37231         (nap): Use them, to do a better job of guessing the delay.
37232         On Fedora 17 with ext4 atop md atop hard disks, this made
37233         test-utimens run 10x faster, because the test napped for
37234         1 ms at a time rather than 20 ms.  Reported by Stefano Lattarini in
37235         <http://bugs.gnu.org/12820#11>.
37237 2012-11-07  Jim Meyering  <jim@meyering.net>
37239         mountlist.c: fix a compilation failure
37240         * lib/mountlist.c (read_file_system_list): Fix a compilation failure
37241         I introduced while transforming commit v0.0-7683-g613bcb6
37243 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37245         errno: port to LynxOS 178 2.2.2
37246         Problem reported by Joel Brobecker in
37247         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00088.html>.
37248         * doc/posix-headers/errno.texi (errno.h): Document this.
37249         * lib/errno.in.h (EILSEQ, GNULIB_defined_EILSEQ) [!EILSEQ]: New macros.
37250         * lib/strerror-override.c, lib/strerror-override.h (strerror_override):
37251         Supply a string for EILSEQ.
37252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Check for EILSEQ.
37254 2012-11-05  Paul Eggert  <eggert@cs.ucla.edu>
37256         fcntl-h: default O_SEARCH, O_EXEC to O_PATH if available
37257         Linux kernel 2.6.39 introduced O_PATH (see
37258         <http://lwn.net/Articles/433854/>) and this is a better fallback
37259         for O_SEARCH and O_EXEC than O_RDONLY, if O_PATH is available.
37260         * doc/posix-headers/fcntl.texi (fcntl.h): Document this.
37261         * lib/fcntl.in.h (O_EXEC, O_SEARCH) [O_PATH]: Default to O_PATH.
37262         * lib/fcntl.in.h (O_ACCMODE):
37263         * tests/test-fcntl-h.c (main):
37264         Do not reject O_ACCMODE merely because it has more than the
37265         minimal number of bits, as POSIX allows extensions here.
37267 2012-11-04  Andrew Warshall  <warshall@99main.com>  (tiny change)
37269         mountlist: do not classify a bind-mounted dir entry as "dummy"
37270         * lib/mountlist.c (ME_DUMMY_0): Rename from ME_DUMMY, but omit
37271         the "none"-testing clause.
37272         (ME_DUMMY) [MOUNTED_GETMNTENT1]: New macro to encapsulate the
37273         exception for bind-mounted directories.
37275 2012-11-01  Akim Demaille  <akim@lrde.epita.fr>
37277         quote: provide a means to escape strings with nul characters
37278         * lib/quote.h, lib/quotearg.c (quote_mem, quote_n_mem): New functions.
37279         (quote, quote_n): Rename formal arguments for consistency with
37280         quotearg.
37282 2012-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37284         test-raise: don't assume 199 is an invalid signal
37285         * tests/test-raise.c (main): Don't assume 199 is not a signal number.
37287         sh-quote-tests: port to Solaris 9
37288         * modules/sh-quote-tests (test_sh_quote_LDADD): Add @LIBINTL@.
37289         Problem reported by Dagobert Michelsen in
37290         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00114.html>.
37292 2012-10-28  Jim Meyering  <jim@meyering.net>
37294         maint.mk: rename a new configurable variable
37295         * top/maint.mk (_gl_translatable_string_re): Rename from
37296         translation-markers: _gl_ prefix to insulate from user Makefile code,
37297         and the _re suffix to inform that it's a regular expression.
37299 2012-10-26  Eric Blake  <eblake@redhat.com>
37301         maint.mk: let packages tweak sc_po_check pattern
37302         * top/maint.mk (sc_po_check): Add translation-markers, to allow
37303         finding files with other translation markers.
37305 2012-10-16  Paul Eggert  <eggert@cs.ucla.edu>
37307         euidaccess: speed up 'configure' on GNU hosts
37308         * m4/euidaccess.m4 (gl_FUNC_NONREENTRANT_EUIDACCESS):
37309         Check for setregid here, not in gl_PREREQ_EUIDACCESS, since
37310         it's needed only in this case.  Use AC_CHECK_DECLS, not
37311         AC_CHECK_DECLS_ONCE.
37312         (gl_PREREQ_EUIDACCESS): Do not use AC_CHECK_HEADERS_ONCE libgen.h
37313         or AC_REQUIRE for AC_FUNC_GETGROUPS.
37315         * lib/regexec.c (re_search_internal): Fix grammar in comment.
37317 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37319         fchmodat, fchownat, fstatat: port to non-inlining compilers
37320         Problem reported for FreeBSD 9 by Jim Meyering in
37321         <http://lists.gnu.org/r/bug-gnulib/2012-10/msg00070.html>.
37322         * lib/chmodat.c, lib/chownat.c, lib/statat.c:
37323         New files, which define FCHMODAT_INLINE etc.
37324         * lib/fchmodat.c (FCHMODAT_INLINE):
37325         * lib/fchownat.c (FCHOWNAT_INLINE):
37326         * lib/fstatat.c (FSTATAT_INLINE):
37327         Remove, as chmodat.c etc. now do this.
37328         * modules/fchmodat (Files): Add lib/chmodat.c.
37329         * modules/fchownat (Files): Add lib/chownat.c.
37330         * modules/fstatat (Files): Add lib/statat.c.
37332 2012-10-15  Jim Meyering  <jim@meyering.net>
37334         fchmodat.c, fchownat.c: compile-impeding typos
37335         * lib/fchmodat.c (FCHMODAT_INLINE): Fix typo: s/#include/#define/
37336         * lib/fchownat.c (FCHOWNAT_INLINE): Likewise.
37337         Introduced in commit v0.0-7636-gd202279.
37339 2012-10-15  Paul Eggert  <eggert@cs.ucla.edu>
37341         fcntl-h: support GNU flags like O_IGNORE_CTTY
37342         * doc/posix-headers/fcntl.texi (fcntl.h): Support O_IGNORE_CTTY,
37343         O_NOLINK, and O_NOTRANS.  These flags are nonzero on GNU/Hurd
37344         systems.  Discovered when using fcntl-h with GNU Emacs, which uses
37345         O_IGNORE_CTTY.  Fix misspelling of F_SETLKW.
37346         * lib/fcntl.in.h (O_IGNORE_CTTY, O_NOLINK, O_NOTRANS):
37347         Define to 0 if not already defined.
37348         * tests/test-fcntl-h.c: Test these new flags.
37350 2012-10-14  Paul Eggert  <eggert@cs.ucla.edu>
37352         faccessat, etc.: support AT_FDCWD-only use
37353         * lib/at-func.c: If GNULIB_SUPPORT_ONLY_AT_FDCWD, then support
37354         this function only if its first argument is AT_FDCWD.
37355         Emacs wants faccessat for AT_EACCESS but not for any first-arg
37356         values other than AT_FDCWD, so it doesn't want all the openat
37357         machinery with fchdir etc.
37358         * modules/faccessat, modules/fchmodat, modules/fchownat (Files):
37359         * modules/fstatat, modules/mkdirat, modules/openat (Files):
37360         * modules/unlinkat (Files):
37361         Remove lib/openat-priv.h, as at-internal supplies this file.
37362         Removing this file here allows us to support programs like Emacs
37363         that avoid at-internal.
37365         faccessat: speed up 'configure' on mainstream hosts
37366         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT):
37367         Use AT_CHECK_FUNCS for 'access', not AC_CHECK_FUNCS_ONCE,
37368         since it's only on unusual platforms that we need to check for
37369         'access', and it's better not to slow 'configure' down on all
37370         platforms.
37372         faccessat: port to Solaris 10
37373         * lib/faccessat.c: Include <fcntl.h>, for AT_EACCESS.
37374         Needed on Solaris 10, which doesn't have AT_EACCESS,
37375         so we need the Gnulib fcntl.h, which defines it.
37377 2012-10-14  Pádraig Brady  <P@draigBrady.com>
37378         canonicalize: fix C89 compilation
37379         * lib/canonicalize.c (canonicalize_filename_mode): Swap order of
37380         declarations so C89 is supported.  Also remove the comment
37381         referencing memorty allocation as the suggested feature could
37382         not be implemented as suggested.
37383         Reported by Michael Goffioul.
37385 2012-10-12  Paul Eggert  <eggert@cs.ucla.edu>
37387         group-member: omit unnecessary dependencies
37388         This is for Emacs, which has its own allocator and where we
37389         don't want to use xalloc.
37390         * lib/group-member.c: Include xalloc-oversized.h, not xalloc.h,
37391         since we no longer use xmalloc.  Do not include stdbool.h, since
37392         the changes below happen to remove the only use of bool.
37393         (GROUPBUF_SIZE): New constant.
37394         (struct group_info): Remove n_groups member.  Add groupbuf member.
37395         This lets us get the groups without using malloc, usually.
37396         (free_group_info, get_group_info): Adjust to this.
37397         (get_group_info): Return the number of groups found, or -1 on error.
37398         Use plain malloc not xmalloc, and treat its failure as if there
37399         are no groups, as the user already loses in case of error.
37400         (group_member): Simplify, based on changes to get_group_info.
37401         * modules/group-member (Depends-on): Remove dependencies on
37402         xalloc and stdbool.  Add dependency on xalloc-oversized.
37404 2012-10-08  Alexandre Duret-Lutz  <adl@lrde.epita.fr>  (tiny change)
37406         gethrxtime: port to C++
37407         * lib/gethrxtime.h, lib/xtime.h [__cplusplus]: Add extern "C".
37409 2012-10-04  Paul Eggert  <eggert@cs.ucla.edu>
37411         ptsname: fix macro-name typo
37412         * lib/stdlib.in.h (ptsname): Fix misspelling of GNULIB_NAMESPACE.
37414 2012-10-03  Simon Josefsson  <simon@josefsson.org>
37416         inttostr: Relax license.
37417         * modules/inttostr (License): Change from LGPL to LGPLv2+.
37419 2012-10-03  Eric Blake  <eblake@redhat.com>
37421         ptsname_r: support ptys returned by FreeBSD posix_openpt
37422         * lib/ptsname_r.c (__ptsname_r): Don't munge name if it already
37423         lives in /dev/pts/.
37425 2012-10-02  Eric Blake  <eblake@redhat.com>
37427         pselect: reject invalid file descriptors
37428         * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug.
37429         * lib/pselect.c (rpl_pselect) [!win32]: Work around it.
37430         * modules/pselect (Depends-on): Add dup2.
37431         * doc/posix-functions/pselect.texi (pselect): Document this.
37433         select: reject invalid file descriptors
37434         * m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
37435         * lib/select.c (rpl_select) [!win32]: Work around it.
37436         * modules/select (Depends-on): Add dup2.
37437         * doc/posix-functions/select.texi (select): Document this.
37439         select: enhance test
37440         * tests/test-select.h (do_select_bad_nfd_nowait, test_bad_nfd):
37441         New functions.
37442         (test_function): Enhance test.
37443         (do_select_bad_fd): Avoid any stale errno values.
37445         ptsname: reject invalid file descriptors
37446         http://www.austingroupbugs.net/view.php?id=503
37447         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Probe for FreeBSD bug.
37448         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add new witness.
37449         * modules/stdlib (Makefile.am): Replace witness.
37450         * lib/stdlib.in.h (ptsname): Allow for replacement.
37451         * modules/ptsname (configure.ac): Trigger replacement.
37452         * doc/posix-functions/ptsname.texi (ptsname): Document this.
37454 2012-10-02:  Nikos Mavrogiannopoulos  <nmav@gnutls.org>  (tiny change)
37456         hash-pjw-bare: new module
37457         * lib/hash-pjw-bare.c: New file, very much like hash-pjw.c.
37458         * lib/hash-pjw-bare.h: Likewise.
37459         * modules/hash-pjw-bare: New file.
37460         * MODULES.html.sh (Misc): Add it.
37462 2012-10-02  Eric Blake  <eblake@redhat.com>
37464         manywarnings: cater to more gcc infelicities
37465         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add test for
37466         -Wuninitialized without -O.
37468 2012-10-01  Ed Maste  <emaste@freebsd.org>  (tiny change)
37470         select, poll tests: Make setsockopt invocation effective.
37471         * tests/test-poll.c (open_server_socket): Move setsockopt() call before
37472         the bind() call.
37473         * tests/test-select.h (open_server_socket): Likewise.
37475 2012-09-30  Paul Eggert  <eggert@cs.ucla.edu>
37477         sockets, sys_stat: restore AC_C_INLINE
37478         This undoes the 2012-09-22 patch.
37479         * m4/sockets.m4 (gl_SOCKETS):
37480         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37481         Restore AC_C_INLINE, since MSVC requires __inline or _inline
37482         and does not support plain 'inline'.  Reported by Bruno Haible in
37483         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00183.html>.
37485 2012-09-30  Bruno Haible  <bruno@clisp.org>
37487         localeconv tests: Avoid test failure on OpenIndiana.
37488         * tests/test-localeconv.c (main): On OpenIndiana (a Solaris 11 variant)
37489         skip the 'grouping' and 'mon_grouping' tests.
37490         Reported by Jim Meyering.
37492 2012-09-30  Bruno Haible  <bruno@clisp.org>
37494         havelib: Follow libtool developments.
37495         * m4/lib-ld.m4: Rebase on libtool.m4 from libtool-2.4.
37496         Suggested by Simon Josefsson.
37498 2012-09-29  Jim Meyering  <meyering@redhat.com>
37500         fstatat.c: fix a compile-impeding typo
37501         * lib/fstatat.c (FSTATAT_INLINE): Fix typo: s/#include/#define/
37502         Introduced in commit v0.0-7636-gd202279.
37503         Mats Erik Andersson reported the resulting OpenBSD compilation failure.
37505 2012-09-28  Akim Demaille  <akim@lrde.epita.fr>
37507         extern-inline: provide a -Wundef safe config.h
37508         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Protect
37509         "#if __GNUC_STDC_INLINE__" with "defined __GNUC_STDC_INLINE__"
37510         to produce a -Wundef warning free config.h.
37512 2012-09-26  Paul Eggert  <eggert@cs.ucla.edu>
37514         hash-pjw: relax license to LGPLv2+
37515         * modules/hash-pjw (License): Relax, with consent of author.
37517 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37519         maint.mk: fix strict vs. lazy variable issues with RELEASE
37520         * top/maint.mk (_equal): New function.
37521         (member_check): Strip the result to avoid spurious spaces.
37522         (url_dir_list): Do not use ifeq, which is strict, as it will
37523         require RELEASE_TYPE to be defined.
37524         (announcement_Cc_, announcement_mail_headers_): Likewise: instead
37525         of relying on ifeq, use $(release_type) to dispatch (lazily) onto...
37526         (announcement_Cc_alpha,announcement_mail_headers_alpha)
37527         (announcement_Cc_beta,announcement_mail_headers_beta)
37528         (announcement_Cc_stable,announcement_mail_headers_stable): these.
37529         (release): Do not depend on $(release-type), as it forces its
37530         evaluation.  Bounce to it.
37532 2012-09-25  Akim Demaille  <akim@lrde.epita.fr>
37534         maint.mk: formatting changes
37535         * top/maint.mk: Indent bodies of if's.
37537 2012-09-21  Akim Demaille  <akim@lrde.epita.fr>
37539         maint.mk: factor the validation of RELEASE_TYPE
37540         With help from Jim Meyering.
37541         http://lists.gnu.org/r/bug-gnulib/2012-09/msg00132.html
37542         * top/maint.mk (_empty, _sp): Move their definition earlier.
37543         (member-check, release-type): New.
37544         Use the latter instead of $(RELEASE_TYPE).
37545         Remove now useless local checks.
37547 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37549         maint.mk: provide "make upload" to ease uploading
37550         See
37551         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00028.html>.
37552         Do not depend simply on the current $(VERSION), as there may have been
37553         new commits since the tarball generation.  Rather, rely on $(RELEASE),
37554         as "make release-commit" already does.
37556         For consistency, add "make release RELEASE='X.Y TYPE'" as an alias for
37557         "make TYPE".
37559         * top/maint.mk (upload_command, upload, release): New.
37560         (RELEASE_TYPE): If undefined, default to the second word of $(RELEASE).
37561         (VERSION): first word of $(RELEASE) is always right.
37562         (emit_upload_commands): Adjust.
37563         * top/README-release: Update.
37565 2012-09-20  Akim Demaille  <akim@lrde.epita.fr>
37567         maint.mk: silent rules
37568         With help from Stefano Lattarini.
37569         * top/maint.mk (writable-files): Use $(AM_V_GEN).
37570         (announcement): Use $(AM_V_at).
37572 2012-09-24  Paul Eggert  <eggert@cs.ucla.edu>
37574         localename: port gl_locale_name_thread_unsafe to FreeBSD
37575         * lib/localename.c (gl_locale_name_thread_unsafe): Port to FreeBSD,
37576         and use the simpler FreeBSD implementation on Mac OS X as well.
37577         Original idea suggested by Ed Maste in
37578         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00094.html>.
37580 2012-09-22  Paul Eggert  <eggert@cs.ucla.edu>
37582         binary-io, eealloc, mbfile, mbiter, mbutil, xsize: better 'inline'
37583         * lib/binary-io.c, lib/eealloc.c, lib/mbfile.c, lib/mbiter.c:
37584         * lib/mbuiter.c, lib/xsize.c: New files.
37585         * lib/binary-io.h (BINARY_IO_INLINE):
37586         * lib/eealloc.h (EEALLOC_INLINE):
37587         * lib/mbfile.h (MBFILE_INLINE):
37588         * lib/mbiter.h (MBITER_INLINE):
37589         * lib/mbuiter.h (MBUITER_INLINE):
37590         * lib/xsize.h (XSIZE_INLINE):
37591         New macros.
37592         Replace all uses of 'static inline' with them.
37593         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37594         * m4/eealloc.m4 (gl_EEALLOC):
37595         * m4/mbfile.m4 (gl_MBFILE):
37596         * m4/mbiter.m4 (gl_MBITER):
37597         * m4/xsize.m4 (gl_XSIZE):
37598         Do not require AC_C_INLINE.
37599         * modules/binary-io (Files, lib_SOURCES): Add lib/binary-io.c
37600         * modules/eealloc (Files, lib_SOURCES): Add lib/eealloc.c.
37601         * modules/mbfile (Files, lib_SOURCES): Add lib/mbfile.c.
37602         * modules/mbiter (Files, lib_SOURCES): Add lib/mbiter.c.
37603         * modules/mbuiter (Files, lib_SOURCES): Add lib/mbuiter.c.
37604         * modules/xsize (Files, lib_SOURCES): Add lib/xsize.c.
37605         * modules/binary-io, modules/eealloc, modules/mbfile:
37606         * modules/mbiter, modules/mbuiter:
37607         (Depends-on): Add extern-inline.
37609         pipe-filter-gi, pipe-filter-ii: better use of 'inline'
37610         * lib/pipe-filter-aux.c: New file.
37611         * lib/pipe-filter-aux.h (PIPE_FILTER_AUX_INLINE): New macro.
37612         Replace all uses of 'static inline' with it.
37613         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37614         * lib/pipe-filter-gi.c (filter_init, filter_cleanup)
37615         (filter_retcode): No real need for inline here.
37616         * modules/pipe-filter-gi, modules/pipe-filter-ii:
37617         (Files): Add lib/pipe-filter-aux.c.
37618         (Depends-on): Add extern-inline.
37619         (configure.ac): Do not require AC_C_INLINE.
37620         (lib_SOURCES): Add pipe-filter-aux.c.
37622         fdutimensat: omit unnecessary AC_C_INLINE
37623         * modules/fdutimensat (configure.ac): Remove AC_C_INLINE.
37625         fchmodat, fchownat, fstatat: use extern-inline
37626         * lib/fchmodat.c, lib/openat.h (FCHMODAT_INLINE):
37627         * lib/fchownat.c, lib/openat.h (FCHOWNAT_INLINE):
37628         * lib/fstatat.c, lib/openat.h (FSTATAT_INLINE):
37629         New macros.
37630         * lib/openat.h:
37631         Replace all uses of 'static inline' with them.
37632         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37633         * modules/fchmodat, modules/fchownat, modules/fstatat:
37634         * modules/openat-h:
37635         (Depends-on):
37636         Add extern-inline.
37637         (configure.ac): Remove AC_C_INLINE.
37639         acl, mbchar, priv-set: use extern-inline
37640         * lib/set-mode-acl.c, lib/acl-internal.h (ACL_INTERNAL_INLINE):
37641         * lib/mbchar.c, lib/mbchar.h (MBCHAR_INLINE):
37642         * lib/priv-set.c, lib/priv-set.h (PRIV_SET_INLINE):
37643         New macros.
37644         * lib/acl-internal.h, lib/mbchar.h, lib/priv-set.h:
37645         Replace all uses of 'static inline' with it.
37646         Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
37647         * m4/acl.m4 (gl_FUNC_ACL):
37648         * m4/mbchar.m4 (gl_MBCHAR):
37649         * m4/priv-set.m4 (gl_PRIV_SET):
37650         Remove AC_C_INLINE, since 'inline' is no longer used directly.
37651         * modules/acl, modules/mbchar, modules/priv-set (Depends-on):
37652         Add extern-inline.
37654         sockets, sys_stat: remove AC_C_INLINE in MSVC-only cases
37655         * m4/sockets.m4 (gl_SOCKETS):
37656         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H):
37657         Remove AC_C_INLINE.  Here, 'inline' is used only in MSVC
37658         environments where it's already guaranteed to work, so we needn't
37659         check for it at 'configure'-time.
37661         tls-tests: omit unnecessary 'inline'
37662         * tests/test-tls.c (perhaps_yield): No longer inline.
37663         Simplicity and portability trump efficiency in test cases.
37665         utimens-tests: avoid unnecessary 'inline'
37666         * modules/fdutimensat-tests (configure.ac):
37667         * modules/futimens-tests (configure.ac):
37668         * modules/utimens-tests (configure.ac):
37669         * modules/utimensat-tests (configure.ac):
37670         Remove AC_C_INLINE.
37671         * tests/test-utimens-common.h (ctime_compare):
37672         No longer inline.  Simplicity and portability trump efficiency here.
37674         misc: don't limit commentary to inline functions
37675         * lib/binary-io.h, lib/malloca.h, lib/safe-alloc.c:
37676         * lib/xalloc-oversized.h, lib/xsize.h:
37677         Contrast macros to functions in general, not just to inline functions,
37678         when the commentary does not apply only to inline functions.
37680 2012-09-20  Jim Meyering  <meyering@redhat.com>
37682         non-recursive-gnulib-prefix-hack: new module
37683         * build-aux/prefix-gnulib-mk: Copied from coreutils, derived from
37684         the file that originated in Bison.
37685         * m4/non-recursive-gnulib-prefix-hack.m4: Likewise, this code is
37686         largely copied from a snippet that resided in bison's configure.ac.
37687         * modules/non-recursive-gnulib-prefix-hack: New file.
37688         * MODULES.html.sh (Support for maintaining and releasing projects):
37689         Add it.
37691 2012-09-18  Jim Meyering  <meyering@redhat.com>
37693         maint.mk: generalize _gl_tight_scope for non-recursive make
37694         * top/maint.mk (_gl_tight_scope): Remove a hard-coded assumption
37695         that *.h would describe additional .h files in the directory
37696         specified by $(_gl_TS_dir).  I.e., add this...
37697         (_gl_TS_other_headers): New variable.
37699         maint.mk: exempt trailing blanks found in "binary" files
37700         * top/maint.mk (sc_trailing_blank): Filter out any matches found in
37701         "binary" files, as reported by grep.  Suggested by Richard W.M. Jones
37702         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37704 2012-09-17  Jim Meyering  <meyering@redhat.com>
37706         maint.mk: sc_prohibit_path_max_allocation: don't FP for UNIX_PATH_MAX
37707         * top/maint.mk (sc_prohibit_path_max_allocation): Avoid false-positive
37708         match for symbols like UNIX_PATH_MAX. Reported by Richard W.M. Jones
37709         in http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37711 2012-09-17  Jim Meyering  <meyering@redhat.com>
37713         maint.mk: teach sc_prohibit_magic_number_exit to accept 77
37714         * top/maint.mk (sc_prohibit_magic_number_exit): Do not complain about
37715         uses like "exit (77)".  "77" is automake's "skip this test" exit code.
37716         It is not in the same category as "exit (0)" or "exit (1)", and
37717         besides, I know of no symbolic name for that 77.  Reported by
37718         Richard W.M. Jones in
37719         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37721 2012-09-17  Jim Meyering  <meyering@redhat.com>
37723         maint.mk: relax sc_prohibit_strcmp, to avoid a false positive
37724         * top/maint.mk (sc_prohibit_strcmp): Relax regexp, so as to match
37725         all uses of #define, not just those that start in column 1.
37726         Richard W.M. Jones reported a false positive in
37727         http://thread.gmane.org/gmane.comp.emulators.guestfs/1902
37729 2012-09-16  Paul Eggert  <eggert@cs.ucla.edu>
37731         localcharset: work around Mac OS X bug with UTF-8 and MB_CUR_MAX
37732         * lib/localcharset.c (locale_charset) [DARWIN7]:
37733         Return "ASCII" if the system reports "UTF-8" and MB_CUR_MAX <= 1,
37734         as these two values are incompatible.  Problem reported by Max Horn.
37735         For more discussion, please see
37736         <http://lists.gnu.org/r/bug-gnulib/2012-09/msg00061.html>.
37738         doc: document sticky-EOF issue
37739         * doc/posix-functions/fgetc.texi (fgetc):
37740         * doc/posix-functions/fgets.texi (fgets):
37741         * doc/posix-functions/fread.texi (fread):
37742         * doc/posix-functions/fscanf.texi (fscanf):
37743         * doc/posix-functions/getc.texi (getc):
37744         * doc/posix-functions/getchar.texi (getchar):
37745         * doc/posix-functions/scanf.texi (scanf):
37746         Mention that glibc and default Solaris do not conform to
37747         C99 and POSIX-2001 or later, with respect to how getchar
37748         etc. behave when feof reports nonzero.
37750 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37752         poll: fix poll(0, NULL, msec)
37753         * lib/poll.c: don't exit early if NULL is the 1st arg to poll(),
37754         but nfd is 0.  In that case poll should behave like select.
37756 2012-09-13  Joachim Schmitz  <jojo@schmitz-digital.de>  (tiny change)
37757             Paolo Bonzini  <bonzini@gnu.org>
37759         poll: fix for systems that can't recv() on a non-socket
37760         * lib/poll.c: if recv returns ENOTSOCK, assume the descriptor
37761         is readable.  In this case POLLHUP will not be supported.
37762         * doc/posix-functions/poll.texi: Document this.
37764 2012-09-13  Paolo Bonzini  <bonzini@gnu.org>
37766         poll/select: document portability problems not fixed by Gnulib.
37767         * doc/posix-functions/poll.texi: poll does not work well on
37768         pipes under Windows.  It has the same limitations as select on
37769         BeOS.
37770         * doc/posix-functions/select.texi: select does not work well
37771         on pipes under Windows.
37773 2012-09-10  Paul Eggert  <eggert@cs.ucla.edu>
37775         fcntl-h: check for AIX 7.1 bug with O_NOFOLLOW and O_CREAT
37776         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Check for AIX 7.1 bug
37777         that caused a GNU tar test failure.  Problem reported by Jez Wain; see
37778         <http://lists.gnu.org/r/bug-tar/2012-07/msg00018.html>.
37780 2012-09-06  Eric Blake  <eblake@redhat.com>
37782         net_if: give more details about the bug being fixed
37783         * doc/posix-headers/net_if.texi: Add clarification.
37785 2012-09-05  Eric Blake  <eblake@redhat.com>
37787         net_if: new module
37788         * modules/net_if: New module, borrowing ideas from netinet_in.
37789         * m4/net_if_h.m4: New file.
37790         * lib/net_if.in.h: Likewise.
37791         * doc/posix-headers/net_if.texi (net/if.h): Document it.
37792         * MODULES.html.sh (lacking POSIX:2008): Likewise.
37793         * tests/test-net_if.c: Make function checks conditional.
37794         Reported by Jasper Lievisse Adriaanse <jasper@humppa.nl>.
37796 2012-09-05  Mats Erik Andersson  <gnu@gisladisker.se>  (tiny change)
37798         readutmp: fix non-portable UT_PID use
37799         * lib/readutmp.c (desirable_utmp_entry) <READ_UTMP_CHECK_PIDS>:
37800         Use `UT_PID (u) > 0' as absolute condition.
37802 2012-09-04  Jim Meyering  <meyering@redhat.com>
37804         fts: reduce two or more trailing spaces to just one, usually
37805         * lib/fts.c (fts_open): Upon initialization, if a name ends in two
37806         or more slashes, trim all but the final one.  But if a name consists
37807         solely of two slashes, don't modify it.  If it consists solely of
37808         three or more slashes, strip all but one.
37810         This is part of the solution to a minor problem with rm:
37811         it would print a bogus ELOOP diagnostic when failing to remove
37812         the slash-decorated name of a symlink-to-directory:
37814             $ mkdir d && ln -s d s && env rm -r s/
37815             rm: cannot remove 's': Too many levels of symbolic links
37817         With the change below and a trivial don't-trim-trailing-slashes
37818         adjustment to remove.c, it does this:
37820             $ env rm -r s/
37821             rm: cannot remove 's/': Not a directory
37823         Improved by: Eric Blake
37825         fts: when there is no risk of overlap, use memcpy, not memmove
37826         * lib/fts.c (fts_alloc): Fix unjustified memcopy: s/memmove/memcpy/
37828 2012-08-29  Paul Eggert  <eggert@cs.ucla.edu>
37830         stdbool: be more compatible with mixed C/C++ compiles
37831         * lib/stdbool.in.h (_Bool, true, false) [__cplusplus]:
37832         Define to bool, true, false, respectively, as GCC's builtin
37833         stdbool.h does.  Problem reported by Michael Goffioul in
37834         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00143.html>.
37836 2012-08-28  Jim Meyering  <meyering@redhat.com>
37838         revert last change: it was not needed
37839         * tests/test-vc-list-files-git.sh: There's already a test for
37840         a working git, just below.
37842 2012-08-28  Jim Meyering  <meyering@redhat.com>
37844         tests: test-vc-list-files-git.sh: skip if git is not available
37845         * tests/test-vc-list-files-git.sh: Skip this test when git is
37846         not available.
37848 2012-08-26  Bruno Haible  <bruno@clisp.org>
37850         gnulib-tool: Remove no-op option --no-changelog.
37851         * gnulib-tool (func_usage): Don't mention --no-changelog.
37852         (do_changelog): Remove variable.
37853         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37855 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37857         doc: remove fdl-1.2.texi
37858         It is no longer used or maintained, and its use of @acronym
37859         is problematic.  See the thread containing
37860         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00134.html>.
37861         * config/srclist.txt: Remove doc/old-licenses/fdl-1.2.texi.
37862         * doc/old-licenses/fdl-1.2.texi: Remove.
37864         execinfo: port to FreeBSD
37865         * m4/execinfo.m4 (gl_EXECINFO_H): Set LIB_EXECINFO to -lexecinfo
37866         if needed, as in FreeBSD.  Reported by Bastien Roucariès in
37867         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00113.html>.
37868         * modules/execinfo (Link): Add $(LIB_EXECINFO).
37870 2012-08-23  Jim Meyering  <meyering@redhat.com>
37872         xstrtol.h: avoid "_Noreturn is not at beginning of declaration" warning
37873         * lib/xstrtol.h: Put "_Noreturn" before "void" in declaration,
37874         to placate gcc's -Wold-style-declaration.
37876 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
37878         doc: do not use @acronym
37879         * doc/inet_ntoa.texi (inet_ntoa):
37880         * doc/parse-datetime.texi (Seconds since the Epoch)
37881         (Specifying time zone rules):
37882         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
37883         Don't use @acronym.  Problem reported by John Darlington in
37884         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00124.html>.
37886 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
37888         stdnoreturn: port to newer GCCs
37889         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
37890         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
37891         Problem reported by Jim Meyering in
37892         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00121.html>.
37893         Also, rename the 'test' function to a void a clash with the
37894         already-supplied 'main' function; this fixes a bug that incorrectly
37895         rejected GCC 4.7.1's <stdnoreturn.h>.
37896         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
37897         Document GCC problem.
37899 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
37901         pipe-filter: fix comment typo
37902         * lib/pipe-filter.h: Mention correct function.
37904 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
37906         execinfo: new module
37907         This is for Emacs.  Currently, it provides a no-effect stub
37908         on all platforms where it does not already work.
37909         It already works on glibc-based systems, and on Solaris 11.
37910         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
37911         New files.
37912         * doc/glibc-headers/execinfo.texi (execinfo.h):
37913         * MODULES.html.sh (Misc): Document it.
37915 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
37917         extern-inline: support old GCC 'inline'
37918         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
37919         if available.  This applies to GCC versions 2.7 through 4.2, or
37920         when newer GCC is using -fgnu89-inline.  The goal is to address
37921         some of the performance issues mentioned by Bruno Haible in
37922         <http://lists.gnu.org/r/bug-gnulib/2012-08/msg00097.html>.
37924 2012-08-20  Eric Blake  <eblake@redhat.com>
37926         maint.mk: avoid redundant file name in message
37927         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
37928         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
37929         (sc_makefile_path_separator_check): Remove bogus $(ME).
37931 2012-08-20  Mike Frysinger  <vapier@gentoo.org>
37933         timer-time: fix link order when static linking on glibc
37934         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
37935         _after_ -lrt so that it's significant.
37937 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
37939         timespec: omit unnecessary AC_C_INLINE
37940         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
37942         stat-time: omit unnecessary AC_C_INLINE
37943         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
37944         Do not require AC_C_INLINE.
37946         ignore-value: omit unnecessary AC_C_INLINE
37947         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
37949         sys_select: avoid 'static inline'
37950         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
37952         mktime: avoid 'static inline'
37953         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
37954         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
37956 2012-08-19  Bruno Haible  <bruno@clisp.org>
37958         gnulib-tool: Improve coding style.
37959         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
37960         func_emit_lib_Makefile_am.
37961         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37963 2012-08-19  Bruno Haible  <bruno@clisp.org>
37965         gnulib-tool: Fix indentation.
37966         * gnulib-tool (func_import): Fix indentation.
37968 2012-08-19  Bruno Haible  <bruno@clisp.org>
37970         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
37971         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
37972         on the list of removed files.
37974 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
37976         test-parse-datetime: avoid glibc leap-second glitch
37977         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
37978         with the 2012 rules.  Problem reported by Bruce Dubbs in
37979         <http://bugs.gnu.org/12206>.
37981 2012-08-14  Bruno Haible  <bruno@clisp.org>
37983         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
37984         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
37985         from argument.
37986         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
37988 2012-08-14  Eric Blake  <eblake@redhat.com>
37990         ldexp: relax license
37991         * modules/ldexp (License): Trivial relax, since the module only
37992         provides a permissively licensed m4 file.
37994 2012-08-13  Bruno Haible  <bruno@clisp.org>
37996         gnulib-tool: Fix persistence of --witness-c-macro option.
37997         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
37998         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
38000 2012-08-11  Eric Blake  <eblake@redhat.com>
38002         count-leading-zeros: use a lookup table on non-gcc compilers
38003         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
38004         alternate implementation, suggested by Jim Meyering.
38006 2012-08-10  Eric Blake  <eblake@redhat.com>
38008         count-leading-zeros: new module
38009         * modules/count-leading-zeros: New module.
38010         * m4/count-leading-zeros.m4: New file.
38011         * lib/count-leading-zeros.h: Likewise.
38012         * modules/count-leading-zeros-tests: New test.
38013         * tests/test-count-leading-zeros.c: New file.
38014         * MODULES.html.sh (Integer arithmetic functions): Document it.
38016 2012-08-07  Simon Josefsson  <simon@josefsson.org>
38017             Jim Meyering  <meyering@redhat.com>
38019         maintainer-makefile: Fix syntax error with dash.
38020         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
38021         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
38023 2012-08-05  Jim Meyering  <meyering@redhat.com>
38025         extern-inline: also ignore -Wmissing-declarations
38026         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
38027         required with gcc-4.8.0-to-be.
38029         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
38030         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
38031         for /error ?([^,]*)/.  This avoids false-positives for strings like
38032         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
38034 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
38036         gnumakefile: better interaction with Automake-NG
38037         * modules/gnumakefile [Makefile.am]: The makefiles generated by
38038         Automake-NG always contain a definition of VPATH, even in non-VPATH
38039         builds (its value being simply '.' in that case).  So, in the
38040         'clean-GNUmakefile' rule, to determine whether running under a
38041         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
38042         '$(VPATH)' expands to the empty string.
38044 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
38046         base64: Use extern C scope in header file, for C++.
38047         * lib/base64.h: Add C++ namespace protection.
38049 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
38051         stat-time, timespec, u64: support naive out-of-dir builds
38052         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
38053         Use '#include "foo.h"', not '#include <foo.h>', when including
38054         one's own interface.  This works better when configuring with
38055         out-of-directory builds, since packages need not add an
38056         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
38058 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
38060         utimens: use extern-inline
38061         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
38062         * lib/utimens.h: Add copyright notice, since this is now large enough
38063         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38064         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
38065         * modules/utimens (Depends-on): Add extern-inline.
38067         u64: use extern-inline
38068         * lib/u64.c: New file.
38069         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38070         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
38071         * modules/u64 (Files): Add lib/u64.c.
38072         (Depends-on): Add extern-inline.
38073         (configure.ac): No need to require AC_C_INLINE, since extern-inline
38074         does that now.
38075         (lib_SOURCES): Add u64.c.
38077         timespec: use extern-inline
38078         * lib/timespec.c: New file.
38079         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38080         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
38081         * modules/timespec (Files): Add lib/timespec.c.
38082         (Depends-on): Add extern-inline.
38083         (lib_SOURCES): Add timespec.c.
38085         stat-time: use extern-inline
38086         * lib/stat-time.c: New file.
38087         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
38088         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
38089         * modules/stat-time (Files): Add lib/stat-time.c.
38090         (Depends-on): Add extern-inline.
38091         (lib_SOURCES): Add stat-time.c.
38093         extern-inline: new module
38094         * modules/extern-inline, m4/extern-inline.m4: New files.
38095         This is for better support of 'extern inline' a la ISO C99,
38096         with a portable alternative on compilers that do not support
38097         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
38098         of the Emacs executable, when compiled with debugging disabled,
38099         which is a typical way that Emacs is built while developing.
38101 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
38103         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
38104         * build-aux/do-release-commit-and-tag: Move variable definitions
38105         together.
38106         ($branch): Instead of defaulting to "master", default to the current
38107         branch (as gnu-web-doc-update does).
38108         (help): Display the current values of the option arguments.
38109         * top/maint.mk (release-commit): New.
38110         * top/README-release: Simplify the corresponding step.
38112 2012-07-30  Eric Blake  <eblake@redhat.com>
38114         passfd: fix comment on recvfd
38115         * lib/passfd.c (recvfd): Fix comment.
38116         Reported by Jann Horn <jannhorn@googlemail.com>.
38118 2012-07-30  Jim Meyering  <meyering@redhat.com>
38120         maint.mk: avoid a sub-shell
38121         * top/maint.mk (release-prep): Remove unneeded sub-shell.
38123 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38125         maint.mk: use silent-rules support from Automake
38126         * top/maint.mk (news-check, vc-diff-check, announcement)
38127         (no-submodule-changes, alpha beta stable, release-prep)
38128         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
38130 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38132         maint.mk: provide a web-manual-update target
38133         * top/maint.mk: here.
38134         * top/README-release: Use it to simplify the web manual update step.
38136 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38138         README-release: shorten the circuit to post a news
38139         * top/README-release: Point directly to the news submission form.
38141 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38143         gnu-web-doc-update: fix --help
38144         * build-aux/gnu-web-doc-update: The information "top level" was written
38145         twice.
38147 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
38149         maint.mk: absolute VPATH issue
38150         * top/maint.mk (release-prep): Help Git find .git/.
38151         From Jim Meyering.
38153 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38155         gitlog-to-changelog: fix previous change
38156         * build-aux/gitlog-to-changelog: Fix condition.
38157         Add missing ";".
38159 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38161         gitlog-to-changelog: don't expect .git to be in $srcdir
38162         Reported by Bruno Haible.
38163         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00265.html>
38164         * build-aux/gitlog-to-changelog (&git_dir_option): New.
38165         Use it.
38167 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
38169         maint.mk: absolute VPATH build fix
38170         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
38171         $(srcdir) is not a parent of $(builddir).
38173 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
38175         clean-temp: Fix memory leak.
38176         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
38177         'files' members of tmpdir.
38179 2012-07-27  Jim Meyering  <meyering@redhat.com>
38181         maint.mk: new rule: refresh-gnulib-patches
38182         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
38183         Use this rule to refresh them.
38184         * top/maint.mk (refresh-gnulib-patches): New rule.
38186 2012-07-24  Bruno Haible  <bruno@clisp.org>
38188         gnulib-tool: Fix handling of inctests variable.
38189         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
38190         Reported by Nick Bowler <nbowler@elliptictech.com>.
38192 2012-07-22  Bruno Haible  <bruno@clisp.org>
38194         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
38195         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
38196         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38197         Remove exemption for getpass.h.
38198         Suggested by Eric Blake.
38200 2012-07-20  Eric Blake  <eblake@redhat.com>
38202         verify: document conflict with -Wnested-externs
38203         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
38205         maint.mk: forbid exit(-1)
38206         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
38208 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
38210         fsusage: port back to Solaris
38211         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
38212         error (fsd not declared) on Solaris 10.  Reported privately by
38213         Andrew Borodin.
38215 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
38217         gnu-web-doc-update: fix error messages
38218         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
38220         gnu-web-doc-update: check the requirements.
38221         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
38222         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
38223         * build-aux/bootstrap (find_tool): Comment change.
38225 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
38227         maint.mk: minor simplication.
38228         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
38229         for default values.
38231 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
38233         gitlog-to-changelog: VPATH build issues
38234         If builddir is not a subdirectory of srcdir, running git from it will
38235         fail.
38236         * build-aux/gitlog-to-changelog (--srcdir): New option.
38238 2012-07-15  Bruno Haible  <bruno@clisp.org>
38240         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
38241         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
38242         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
38243         Remove exemption for fpending.h.
38244         Suggested by Eric Blake.
38246 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
38248         pthread_sigmask: fix bug on FreeBSD 9
38249         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
38250         Include string.h.
38251         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
38252         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
38253         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
38254         but pthread_sigmask (1729, NULL, NULL) returns zero.
38255         See <http://bugs.gnu.org/11884>.
38256         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
38257         by inspecting whether the main call changed the old mask.
38259 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
38261         README-release: make it more legible
38262         * top/README-release: Improve typography slightly.
38264 2012-07-15  Jim Meyering  <meyering@redhat.com>
38266         maint: require that each sc_... command start with "@"
38267         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
38268         "make sc_maint" helps us avoid this nit.
38270 2012-07-15  Jim Meyering  <meyering@redhat.com>
38272         maint.mk: add leading "@" to quiet new "make syntax-check" rule
38273         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
38275 2012-07-13  Eric Blake  <eblake@redhat.com>
38277         maint.mk: new syntax check for HAVE_DECL checks
38278         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
38279         * cfg.mk
38280         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
38281         Exempt some false positives.
38282         Based on a report by Karel Zak.
38284         argp: make HAVE_DECL usage consistent
38285         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
38286         macros, not whether they are defined.
38287         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
38288         convention with other declaration checks.
38289         Reported by Karel Zak, with suggestions from Paul Eggert.
38291         stat-time: relax license to LGPLv2+
38292         * modules/stat-time (License): Relax, with consent of all authors.
38294         strndup: fix m4 usage error
38295         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
38296         defined, to either 0 or 1.
38297         Reported by Karel Zak.
38299 2012-07-11  Jim Meyering  <meyering@redhat.com>
38301         maint: enable the sc_avoid_if_before_free syntax-check rule
38302         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
38303         (if_before_free_offenders_): Define.
38304         (if_before_free_basename_re_): Define.
38305         Exempt current files with useless if-before-free.
38307 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
38309         gettext: do not assume '#define ... defined ...' behavior
38310         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
38311         Do not use '#define FOO ... defined BAR ...', as the C standard says
38312         it's not portable to expect that this works after macro expansion.
38313         Problem reported for gzip by Steven M. Schweda in
38314         <http://lists.gnu.org/r/bug-gzip/2012-07/msg00000.html>.
38316 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
38318         getloadavg: clean out old Emacs and Autoconf cruft
38319         See Glenn Morris in <http://bugs.gnu.org/11905>.
38320         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
38321         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
38322         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
38323         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
38325 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
38327         bootstrap: let warn be like tests/init.sh's warn_
38328         Reported by Jim Meyering.
38329         * build-aux/bootstrap (warn): Remove, replaced by...
38330         (warnf_, warn_): these.
38331         Adjust callers.
38332         Shorten messages that no longer fit in 80 columns.
38334 2012-07-09  Bruno Haible  <bruno@clisp.org>
38336         getopt: Simplify after Emacs changed.
38337         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
38338         (gl_GETOPT_IFELSE): Remove macro.
38340 2012-07-09  Jim Meyering  <meyering@redhat.com>
38342         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
38343         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
38345         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
38346         Bugs in both of those conspired to make the
38347         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
38348         _sc_search_regexp's handling of non-empty $in_files would filter
38349         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
38350         choice of in_files value meant there would be no match in most
38351         projects, due to the presence of two or more Makefile.in files.
38352         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
38353         Fix a bug in how a non-empty $$in_files was processed:
38354         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
38355         in spite of the name, it's a regexp, not a list of file names.
38357 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
38359         getloadavg, getopt: fix commentary re configure.in
38360         Autoconf is deprecating the name 'configure.in', so change it to
38361         to the new name 'configure.ac' in a couple of places.
38362         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
38363         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
38364         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
38365         Emacs has renamed it to configure.ac, and it no longer refers
38366         to these macros anyway.
38368         timespec: mark functions with const attributes
38369         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
38370         Mark with _GL_ATTRIBUTE_CONST.
38372 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38374         canonicalize[-lgpl]: handle "guessing" values when cross-building
38375         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
38376         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
38377         matches "*yes" instead of just "yes".  Regression introduced in commit
38378         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
38380 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
38381             Bruno Haible  <bruno@clisp.org>
38383         canonicalize: make the right guess when cross-compiling to GNU
38384         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
38385         determine whether cross-compiling to glibc systems, so as to
38386         include GNU/Hurd.
38388 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
38390         timespec-sub: avoid duplicate include
38391         * lib/timespec-sub.c: Do not include <config.h> twice.
38392         Reported by Juanma Barranquero.
38394 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
38396         bootstrap: use a more consistent error reporting scheme
38397         * build-aux/bootstrap (warn, die): New.
38398         Use them.
38400 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
38402         sys_time: allow too-wide tv_sec
38403         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
38404         timeval even if tv_sec is wider than time_t.  This allows
38405         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
38406         as without this patch gnulib replaces struct timeval
38407         and OpenBSD futimes therefore has a type mismatch.
38408         * doc/posix-headers/sys_time.texi: Mention this.
38410         pthread: check for both pthread_create and pthread_join
38411         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
38412         alter the check so that it tests for both pthread_create and
38413         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
38414         Suggested by Bruno Haible and Richard Yao in
38415         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00048.html>.
38417         parse-datetime: doc tuneup
38418         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
38419         spacing issues.
38421 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
38423         do-release-commit-and-tag: fix the previous commit
38424         * build-aux/do-release-commit-and-tag: Actually the test was right,
38425         but the comment and the error message were misleading.
38426         Fix comment, and improve error message.
38427         Perform check first, so that NEWS is not modified uselessly.
38429         do-release-commit-and-tag: fix typo
38430         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
38431         _not_ start with a stub.
38433 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
38435         pthread: check for pthread_create, not pthread_join
38436         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
38437         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
38438         pthread_join in libc.  I hope this removes the need for all the
38439         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
38440         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00042.html>.
38442 2012-07-04  Jim Meyering  <meyering@redhat.com>
38444         parse-datetime: fix failure to diagnose invalid input
38445         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
38446         rather than diagnosing the invalid input.  Now it reports this:
38447         date: invalid date '\260'
38448         * lib/parse-datetime.y (to_uchar): Define.
38449         (yylex): Don't sign-extend "other" bytes.
38450         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
38451         Thanks to Bruno Haible for the patch to this file.
38452         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
38453         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
38455 2012-07-03  Jim Meyering  <meyering@redhat.com>
38457         bootstrap: do not require now-removed build-aux/missing
38458         Now that build-aux/missing is, er, missing, bootstrap would
38459         silently fail.
38460         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
38461         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
38462         no longer part of gnulib.
38463         Diagnose the failure.
38465 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
38467         alloca: add support for HP NonStop TNS/E native
38468         * lib/alloca.in.h (alloca): Support the new host.
38469         From a suggestion by Joachim Schmitz in
38470         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00355.html>.
38472 2012-07-02  Pádraig Brady  <P@draigBrady.com>
38474         fsusage: remove code not needed on non GNU/Linux systems.
38476         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38477         Don't include headers no longer needed in this case.
38478         * lib/fsusage.c [STAT_STATVFS &&
38479         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
38480         STAT_STATFS2_FRSIZE to exclude code not used in this case.
38482 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
38484         fsusage: include files needed for glibc 2.6 fallback
38485         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
38486         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
38487         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
38488         Problem reported by Ludovic Courtès in
38489         <http://lists.gnu.org/r/bug-gnulib/2012-07/msg00005.html>.
38491         fsusage: avoid needless check on GNU/Linux
38492         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
38493         on GNU/Linux systems, since it can't possibly work.
38495 2012-07-01  Bruno Haible  <bruno@clisp.org>
38497         log: Fix an autoconf >= 2.64 warning.
38498         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
38499         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38501 2012-06-28  Bruno Haible  <bruno@clisp.org>
38503         log10f: Fix possible configuration problem.
38504         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
38505         $LOGF_LIBM.
38506         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38508 2012-06-28  Bruno Haible  <bruno@clisp.org>
38510         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
38511         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
38512         not gl_cv_func_unlink_works.
38513         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
38515 2012-06-27  Eric Blake  <eblake@redhat.com>
38517         config: drop scripts that automake says are not independent
38518         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
38519         * build-aux/elisp-comp: Delete.
38520         * build-aux/missing: Likewise.
38521         * build-aux/ylwrap: Likewise.
38522         * modules/elisp-comp: Likewise.
38523         * MODULES.html.sh: Drop mention of elisp-comp.
38524         * NEWS: Mention this.
38526 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
38528         root-uid: new module
38529         This is for portability to Tandem's NonStop Kernel.
38530         * lib/root-uid.h, modules/root-uid: New files.
38531         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
38532         * lib/write-any-file.c, tests/test-sethostname2.c:
38533         Include "root-uid.h".
38534         * lib/euidaccess.c (euidaccess):
38535         * lib/pt_chown.c (main):
38536         * lib/unlinkdir.c (cannot_unlink_dir):
38537         * lib/write-any-file.c (can_write_any_file):
38538         * m4/mknod.m4 (gl_FUNC_MKNOD):
38539         * tests/test-sethostname2.c (geteuid, main):
38540         Don't assume ROOT_UID == 0.
38541         * modules/euidaccess (Depends-on):
38542         * modules/pt_chown (Depends-on):
38543         * modules/sethostname-tests (Depends-on):
38544         * modules/unlinkdir (Depends-on):
38545         * modules/write-any-file (Depends-on):
38546         Add root-uid.
38548         regex: use locale-independent comparison for codeset name
38549         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
38550         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
38551         for codeset name.
38552         * lib/regex_internal.h: Do not include <strings.h>, since we
38553         no longer use strcasecmp.
38554         * modules/regex (Depends-on): Remove strcase.
38556 2012-06-23  Bruno Haible  <bruno@clisp.org>
38558         getopt-posix: No longer guarantee that option processing is resettable.
38559         * doc/posix-functions/getopt.texi: Drop description of problem with
38560         internal state. Fix info about mingw and msvc9.
38561         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
38562         option processing by getopt(). Run three test programs instead of one.
38563         Simplify cross-compilation guess.
38564         * NEWS: Mention the change.
38565         Reported by Rich Felker <dalias@aerifal.cx>.
38567 2012-06-26  Bruno Haible  <bruno@clisp.org>
38569         argp, regex: Ensure strcasecmp gets declared.
38570         * lib/argp-help.c: Include <strings.h>.
38571         * lib/regex_internal.h: Likewise.
38572         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
38574 2012-06-24  Bruno Haible  <bruno@clisp.org>
38576         ptsname_r: Make it consistent with ptsname on AIX.
38577         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
38578         implementation as for OSF/1.
38579         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
38580         a pty master.
38582         ptsname_r: Make it consistent with ptsname on OSF/1.
38583         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38584         OSF/1.
38586 2012-06-24  Bruno Haible  <bruno@clisp.org>
38588         ttyname_r: Fix result on OSF/1, Solaris.
38589         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
38591 2012-06-24  Bruno Haible  <bruno@clisp.org>
38593         ptsname_r: Add support for Solaris.
38594         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
38595         Solaris.
38597         ptsname_r: Fix test failure on native Windows.
38598         * modules/ptsname_r (Depends-on): Add isatty.
38600         ptsname_r: Fix test failures on IRIX, Solaris.
38601         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
38602         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
38603         accordingly.
38604         * lib/ptsname_r.c: Include <fcntl.h>.
38605         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
38606         set errno if fd is invalid.
38607         * tests/test-isatty.c (main): Update comments.
38609 2012-06-24  Bruno Haible  <bruno@clisp.org>
38611         ptsname test: Extend test.
38612         * tests/test-ptsname.c: Include <errno.h>.
38613         (main): Test behaviour with invalid file descriptor.
38615 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
38617         time: fix obsolete comment
38618         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
38619         reference to HAVE_STRUCT_TIMESPEC in comment.
38621 2012-06-23  Bruno Haible  <bruno@clisp.org>
38623         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
38624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
38625         does not handle abbreviated long options with equivalent
38626         disambiguations, set gl_replace_getopt to yes.
38627         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
38629 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
38631         time_r: fix typo that always overrode localtime_r decl
38632         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
38633         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
38634         not in a standard include.
38636 2012-06-22  Bruno Haible  <bruno@clisp.org>
38638         Write "Mac OS X" instead of "MacOS X".
38639         * README: Write "Mac OS X" instead of "MacOS X".
38640         * build-aux/bootstrap: Likewise.
38641         * build-aux/install-reloc: Likewise.
38642         * lib/acl-internal.h: Likewise.
38643         * lib/acl_entries.c: Likewise.
38644         * lib/argp-ba.c: Likewise.
38645         * lib/argp-pv.c: Likewise.
38646         * lib/config.charset: Likewise.
38647         * lib/copy-acl.c: Likewise.
38648         * lib/csharpexec.c: Likewise.
38649         * lib/euidaccess.c: Likewise.
38650         * lib/fbufmode.c: Likewise.
38651         * lib/fflush.c: Likewise.
38652         * lib/file-has-acl.c: Likewise.
38653         * lib/filemode.h: Likewise.
38654         * lib/fpurge.c: Likewise.
38655         * lib/freadable.c: Likewise.
38656         * lib/freadahead.c: Likewise.
38657         * lib/freading.c: Likewise.
38658         * lib/freadptr.c: Likewise.
38659         * lib/freadseek.c: Likewise.
38660         * lib/fseeko.c: Likewise.
38661         * lib/fseterr.c: Likewise.
38662         * lib/fsusage.c: Likewise.
38663         * lib/fwritable.c: Likewise.
38664         * lib/fwriting.c: Likewise.
38665         * lib/get-rusage-as.c: Likewise.
38666         * lib/get-rusage-data.c: Likewise.
38667         * lib/getdomainname.c: Likewise.
38668         * lib/idpriv-drop.c: Likewise.
38669         * lib/idpriv-droptemp.c: Likewise.
38670         * lib/localcharset.c: Likewise.
38671         * lib/locale.in.h: Likewise.
38672         * lib/localename.c: Likewise.
38673         * lib/mbsrtowcs-state.c: Likewise.
38674         * lib/nproc.c: Likewise.
38675         * lib/passfd.c: Likewise.
38676         * lib/posix_openpt.c: Likewise.
38677         * lib/printf-parse.c: Likewise.
38678         * lib/progreloc.c: Likewise.
38679         * lib/safe-read.h: Likewise.
38680         * lib/safe-write.h: Likewise.
38681         * lib/sched.in.h: Likewise.
38682         * lib/set-mode-acl.c: Likewise.
38683         * lib/signal.in.h: Likewise.
38684         * lib/stdint.in.h: Likewise.
38685         * lib/stdio-impl.h: Likewise.
38686         * lib/stdlib.in.h: Likewise.
38687         * lib/strtod.c: Likewise.
38688         * lib/sys_select.in.h: Likewise.
38689         * lib/tcgetsid.c: Likewise.
38690         * lib/unistd.in.h: Likewise.
38691         * lib/unlockpt.c: Likewise.
38692         * lib/vasnprintf.c: Likewise.
38693         * lib/vma-iter.c: Likewise.
38694         * lib/wcsrtombs-state.c: Likewise.
38695         * m4/acl.m4: Likewise.
38696         * m4/acosl.m4: Likewise.
38697         * m4/asinl.m4: Likewise.
38698         * m4/atanl.m4: Likewise.
38699         * m4/c-stack.m4: Likewise.
38700         * m4/cosl.m4: Likewise.
38701         * m4/expl.m4: Likewise.
38702         * m4/extensions.m4: Likewise.
38703         * m4/fdatasync.m4: Likewise.
38704         * m4/fmal.m4: Likewise.
38705         * m4/frexp.m4: Likewise.
38706         * m4/frexpf.m4: Likewise.
38707         * m4/frexpl.m4: Likewise.
38708         * m4/fsusage.m4: Likewise.
38709         * m4/getdomainname.m4: Likewise.
38710         * m4/getloadavg.m4: Likewise.
38711         * m4/getopt.m4: Likewise.
38712         * m4/gettext.m4: Likewise.
38713         * m4/gnulib-common.m4: Likewise.
38714         * m4/intdiv0.m4: Likewise.
38715         * m4/intlmacosx.m4: Likewise.
38716         * m4/largefile.m4: Likewise.
38717         * m4/ldexpl.m4: Likewise.
38718         * m4/link-follow.m4: Likewise.
38719         * m4/locale-ar.m4: Likewise.
38720         * m4/locale-fr.m4: Likewise.
38721         * m4/locale-ja.m4: Likewise.
38722         * m4/locale-tr.m4: Likewise.
38723         * m4/locale-zh.m4: Likewise.
38724         * m4/locale_h.m4: Likewise.
38725         * m4/lock.m4: Likewise.
38726         * m4/logl.m4: Likewise.
38727         * m4/mathfunc.m4: Likewise.
38728         * m4/minus-zero.m4: Likewise.
38729         * m4/mktime.m4: Likewise.
38730         * m4/mmap-anon.m4: Likewise.
38731         * m4/multiarch.m4: Likewise.
38732         * m4/nanosleep.m4: Likewise.
38733         * m4/nocrash.m4: Likewise.
38734         * m4/poll.m4: Likewise.
38735         * m4/printf-frexpl.m4: Likewise.
38736         * m4/printf.m4: Likewise.
38737         * m4/signbit.m4: Likewise.
38738         * m4/sinl.m4: Likewise.
38739         * m4/sqrtl.m4: Likewise.
38740         * m4/strerror_r.m4: Likewise.
38741         * m4/tanl.m4: Likewise.
38742         * m4/threadlib.m4: Likewise.
38743         * m4/ttyname_r.m4: Likewise.
38744         * m4/unlink.m4: Likewise.
38745         * m4/visibility.m4: Likewise.
38746         * m4/wcwidth.m4: Likewise.
38747         * tests/minus-zero.h: Likewise.
38748         * tests/test-alloca-opt.c: Likewise.
38749         * tests/test-copy-acl.sh: Likewise.
38750         * tests/test-copy-file.sh: Likewise.
38751         * tests/test-fdatasync.c: Likewise.
38752         * tests/test-file-has-acl.sh: Likewise.
38753         * tests/test-flock.c: Likewise.
38754         * tests/test-fsync.c: Likewise.
38755         * tests/test-localename.c: Likewise.
38756         * tests/test-malloca.c: Likewise.
38757         * tests/test-nonblocking-pipe.h: Likewise.
38758         * tests/test-nonblocking-socket.h: Likewise.
38759         * tests/test-openpty.c: Likewise.
38760         * tests/test-posix_openpt.c: Likewise.
38761         * tests/test-ptsname.c: Likewise.
38762         * tests/test-ptsname_r.c: Likewise.
38763         * tests/test-sameacls.c: Likewise.
38764         * tests/test-select.h: Likewise.
38765         * tests/test-set-mode-acl.sh: Likewise.
38766         * tests/test-snprintf-posix.h: Likewise.
38767         * tests/test-sprintf-posix.h: Likewise.
38768         * tests/test-strtod.c: Likewise.
38769         * tests/test-time.c: Likewise.
38770         * tests/test-vasnprintf-posix.c: Likewise.
38771         * tests/test-vasprintf-posix.c: Likewise.
38772         * doc/acl-resources.txt: Likewise.
38773         * doc/**/*.texi: Likewise.
38774         Reported by Max Horn <max@quendi.de>.
38776 2012-06-22  Bruno Haible  <bruno@clisp.org>
38778         grantpt: Relax requirement regarding invalid file descriptors.
38779         * lib/grantpt.c: Don't include <fcntl.h>.
38780         (grantpt): Don't verify the validity of the file descriptor.
38781         * modules/grantpt (Depends-on): Remove fcntl-h.
38782         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
38783         file descriptors.
38784         * doc/posix-functions/grantpt.texi: Document more platforms on which
38785         grantpt succeeds for invalid file descriptors.
38786         Reported by Rich Felker <dalias@aerifal.cx>.
38788 2012-06-22  Bruno Haible  <bruno@clisp.org>
38790         fbufmode test: Don't test unportable behaviour.
38791         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
38792         (main): Invoke it three times.
38793         Reported by Szabolcs Nagy <nsz@port70.net>
38794         and Rich Felker <dalias@aerifal.cx>.
38796 2012-06-21  Bruno Haible  <bruno@clisp.org>
38798         gnulib-tool: Refactor inctests variable.
38799         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
38800         (func_modules_transitive_closure,
38801         func_modules_transitive_closure_separately,
38802         func_import, func_create_testdir): Update.
38804         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
38805         * gnulib-tool: Accept option --without-tests.
38806         (func_usage): Document --without-tests option. Rearrange.
38807         (inctests): Normalize according to the mode.
38808         * NEWS: Mention the change.
38809         Suggested by Simon Josefsson.
38811 2012-06-21  Bruce Korb  <bkorb@gnu.org>
38813         parse-duration test: Avoid spurious output.
38814         * tests/test-parse-duration.sh: Reindent with leading tabs.
38816 2012-06-21  Jim Meyering  <meyering@redhat.com>
38818         maint: disable the strncpy prohibition
38819         * cfg.mk: Do not prohibit strncpy here.
38821 2012-06-21  Bruno Haible  <bruno@clisp.org>
38823         nonblocking: Avoid compilation error on mingw64.
38824         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
38825         fscanf.
38826         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
38827         * modules/vfscanf (configure.ac): Likewise.
38828         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
38829         definition only if stdio.h has prepared it.
38830         Reported by Daniel P. Berrange <berrange@redhat.com>.
38832 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
38834         gnulib-tool: Use readlink if it is available.
38835         * gnulib-tool (func_readlink): Choose function more appropriately.
38837 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
38839         posixtm-tests: port to buggy compiler
38840         Problem reported by Simon Josefsson in
38841         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00246.html>.
38842         * modules/posixtm-tests (Depends-on): Add stdint.
38843         * tests/test-posixtm.c (struct posixtm_test.t_expected):
38844         Now of type int_least64_t, not int64_t, both because that's
38845         what INT64_C returns and because int_least64_t works even
38846         on 72-bit hosts.
38847         (T): Use INT64_C on constants outside the traditional int range,
38848         to work around compiler bug noted by Simon.
38850         mktime: fix integer overflow in 'configure'-time test
38851         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
38852         after integer overflow.  Problem reported by Rich Felker in
38853         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00257.html>.
38854         Also, don't look for further instances of a bug if we've already
38855         found one instance; this helps 'configure' run faster.
38857 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
38859         tmpfile, clean-temp: Fix invocation of GetVersionEx.
38860         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
38861         GetVersionEx correctly.
38862         * lib/clean-temp.c (supports_delete_on_close): Likewise.
38864 2012-06-20  Bruno Haible  <bruno@clisp.org>
38866         fdopen: Allow implementations that don't reject invalid fd arguments.
38867         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
38868         succeeds.
38869         Reported by Rich Felker <dalias@aerifal.cx>.
38871 2012-06-20  Simon Josefsson  <simon@josefsson.org>
38873         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
38874         bring in LIBINTL.
38876 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
38878         init.sh: do not rely on autoupated PWD
38879         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
38880         <http://lists.gnu.org/r/bug-gzip/2012-06/msg00008.html>.
38881         Although Nelson's bug was not necessarily fixed by this patch,
38882         it seems wise to make the change for safety.
38883         * tests/init.sh (path_prepend_): Do not rely on PWD updating
38884         automagically after 'cd'; this is not reliable on older shells.
38885         (setup_): Fail if we cannot cd to temporary directory.
38887 2012-06-19  Bruno Haible  <bruno@clisp.org>
38889         stat, fstat: Avoid warnings on mingw64.
38890         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
38891         redefining.
38892         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
38893         Reported by Daniel P. Berrange <berrange@redhat.com>.
38895 2012-06-19  Bruno Haible  <bruno@clisp.org>
38897         stdioext: Add support for musl libc.
38899         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
38900         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
38902         * m4/fseterr.m4: New file.
38903         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
38904         function exists.
38905         * modules/fseterr (Files): Add m4/fseterr.m4.
38906         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
38907         __fseterr does not exist.
38908         (Makefile.am): Remove fseterr.c from lib_SOURCES.
38910         * lib/freadable.h: Update comment.
38912         * lib/fwritable.h: Update comment.
38914         * lib/freading.h: Update comment.
38916         * lib/fwriting.h: Update comment.
38918         * m4/freadahead.m4: New file.
38919         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
38920         that function exists.
38921         * modules/freadahead (Files): Add m4/freadahead.m4.
38922         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
38923         __freadahead does not exist.
38924         (Makefile.am): Remove freadahead.c from lib_SOURCES.
38926         * m4/freadptr.m4: New file.
38927         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
38928         function exists.
38929         * modules/freadptr (Files): Add m4/freadptr.m4.
38930         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
38931         __freadptr does not exist.
38932         (Makefile.am): Remove freadptr.c from lib_SOURCES.
38934         * m4/freadseek.m4: New file.
38935         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
38936         exists.
38937         * modules/freadseek (Files): Add m4/freadseek.m4.
38938         (configure.ac): Invoke gl_FUNC_FREADSEEK.
38940         * lib/fpurge.c (fpurge): Update comment.
38942         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
38944 2012-06-19  Bruno Haible  <bruno@clisp.org>
38946         *printf-posix: Put more info into config.log.
38947         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
38948         exit code into config.log.
38950 2012-06-19  Bruno Haible  <bruno@clisp.org>
38952         getopt-gnu: Fix exit code overflow in autoconf test.
38953         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
38954         to keep them below < 128.
38956 2012-06-17  Jim Meyering  <meyering@redhat.com>
38958         maint.mk: fix typo in code to derive GPG key at release time
38959         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
38961 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
38963         regex: avoid warning when pointers are not long
38964         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
38965         and uintptr_t, not long, for portability to hosts where pointers and
38966         long have different sizes.  Issue noted by Daniel P. Berrange in
38967         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00122.html>
38968         and fix suggested by Bruno Haible in
38969         <http://lists.gnu.org/r/bug-gnulib/2012-06/msg00128.html>.
38971 2012-06-17  Bruno Haible  <bruno@clisp.org>
38973         dummy: Relicense into the public domain.
38974         * modules/dummy (License): Set to "public domain".
38975         Suggested by Reuben Thomas.
38977 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38979         announce-gen: VPATH issues
38980         * build-aux/announce-gen (--srcdir): New option, used to trim the
38981         $srcdir part of the path from $builddir to NEWS.
38982         * top/maint.mk (announcement): Adjust.
38984 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
38986         gnu-web-doc-update: VPATH builds
38987         * build-aux/gnu-web-doc-update (--builddir): New option.
38988         Revamp the handling of options.
38989         Prefer $(...) to `...`.
38990         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
38991         the template, and it is GNU mktemp specific.
38992         Prefer set -e to long series of &&.
38993         Restore the initial git branch, not "master".
38994         Properly initialize submodules (don't rely only on bootstrap).
38995         Do not reconfigure blindly, use config.status.
38996         * top/README-release: Update instructions for gnu-web-doc-update.
38998 2012-06-11  Jim Meyering  <meyering@redhat.com>
39000         maint.mk: revert most of the previous change re "all these"
39001         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
39002         For rationale, see the discussion at
39003         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
39005 2012-06-10  Karl Berry  <karl@gnu.org>
39007         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
39009         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
39011 2012-06-10  Bruce Korb  <bkorb@gnu.org>
39013         parse-duration: Relicense under LGPLv2+.
39014         * modules/parse-duration (License): Change to LGPLv2+.
39016 2012-06-10  Jim Meyering  <meyering@redhat.com>
39018         maint.mk: prohibit common grammar error: "all these"
39019         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
39020         the list of prohibited word sequences.  It should be "all of these".
39021         * lib/tempname.c (__gen_tempname): Fix one of them.
39023 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39025         do-release-commit-and-tag: support VPATH builds
39026         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
39027         (noteworthy): Defined earlier to factor its value.
39028         (noteworthy_stub): New.
39029         Use it to factor.
39030         (help_version): Split into...
39031         (help, version): these.
39032         Adjust the option processing part.
39033         Support "--option=value" in addition to "--option value".
39034         (builddir): New.
39035         (--builddir): New option.
39036         * top/README-release: Document this.
39037         Reword slightly so that the reader cannot understand that he
39038         has to do these steps before calling do-release-commit-and-tag.
39040 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39042         readme-release: also require announce-gen and maintainer-makefile
39043         * modules/readme-release (Depends-on): here.
39044         * modules/announce-gen, modules/do-release-commit-and-tag,
39045         modules/gnu-web-doc-update, modules/maintainer-makefile
39046         (Description): Point to readme-release.
39048 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
39050         maint.mk: fix VPATH issues.
39051         * top/maint.mk (news-check): GNU Make understand $< very well.
39052         (release-prep): NEWS is in $(srcdir).
39054 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
39056         readme-release: require the promoted modules.
39057         * modules/readme-release (Depends-on): Add
39058         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
39059         in this text.
39061 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39062             Bruno Haible  <bruno@clisp.org>
39064         error, strerror-override: Support mingw64 from Fedora 17.
39065         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
39066         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
39067         EINPROGRESS.
39068         * lib/strerror-override.h (strerror_override): Test it.
39069         * lib/strerror-override.c (strerror_override): Likewise.
39070         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
39072 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39073             Bruno Haible  <bruno@clisp.org>
39075         error, strerror-override: Support mingw64 from Fedora 17.
39076         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
39077         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
39078         * lib/strerror-override.h (strerror_override): Test it.
39079         * lib/strerror-override.c (strerror_override): Likewise.
39081 2012-06-03  Bruno Haible  <bruno@clisp.org>
39083         error, strerror-override: Support new errno values from POSIX:2008.
39084         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
39085         ENOTRECOVERABLE.
39086         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
39087         platforms.
39088         * lib/strerror-override.c (strerror_override): Conditionalize the
39089         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
39090         * lib/strerror-override.h (strerror_override): Declare also if
39091         GNULIB_defined_EOWNERDEAD is defined.
39092         * tests/test-errno.c (e130, e131): New variables.
39093         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
39094         ENOTRECOVERABLE.
39095         Reported by Paolo Bonzini.
39097 2012-05-31  Jim Meyering  <meyering@redhat.com>
39099         savewd: add missing dependency on sys_wait module
39100         * modules/savewd (Depends-on): Add sys_wait, needed at least
39101         for MSVC.  Report and suggested change by Michael Goffioul.
39103 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
39105         system-quote-tests: port to CentOS 5
39106         Problem reported by Tom G. Christensen in
39107         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00255.html>.
39108         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
39110 2012-05-29  Jim Meyering  <meyering@redhat.com>
39112         maint: fix typos in comments and ChangeLog
39113         Culprits identified and fixed mostly automatically using these commands:
39114         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
39115         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
39116         using http://github.com/lyda/misspell-check
39117         * ChangeLog: Fix typos.
39118         * doc/solaris-versions: Likewise.
39119         * lib/regexec.c (re_search_stub): Likewise.
39120         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
39122 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
39124         manywarnings: remove duplicate -Wmultichar entry
39125         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
39126         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
39127         so keep the entry marked as documented.
39129 2012-05-27  Karl Berry  <karl@gnu.org>
39131         * config/srclist.txt (mktime.c): remove last libc sync,
39132         perhaps just temporarily.
39134 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
39136         regex: don't assume uint64_t or uint32_t
39137         * lib/regcomp.c (init_word_char): Don't assume that the types
39138         uint64_t and uint32_t exist.  The C standard doesn't guarantee
39139         them, and on some 32-bit compilers there is no uint64_t.
39140         Problem reported by Gianluigi Tiesi in
39141         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00154.html>.
39143 2012-05-25  Jim Meyering  <meyering@redhat.com>
39145         maint.mk: add strncpy-prohibiting syntax-check rule
39146         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
39148 2012-05-24  Jim Meyering  <meyering@redhat.com>
39150         maint.mk: compute $(gpg_key_ID) more portably
39151         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
39152         That use of sed is not portable to some fringe systems.
39153         Reported by Paul Eggert in
39154         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
39156 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
39158         mktime: sync from glibc
39159         * config/srclist.txt: Uncomment mktime.c.
39160         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
39161         First, indent with tabs, since glibc uses tabs and doesn't want to
39162         change and we'd rather be identical to glibc.  Also, two small
39163         coding changes:
39164         (isdst_differ): Use &&, not &, as && is the usual style.
39165         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
39166         for clarity.
39168 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39170         announce-gen: du -h is more portable than du --human
39171         * build-aux/announce-gen (sizes): Invoke du with -h instead
39172         of --human.  Accept leading white space in its output.
39174 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39176         announce-gen: Improve diagnostics.
39177         * build-aux/announce-gen: When parsing command line options,
39178         prefer "announce-gen: option --release-type requires an argument"
39179         to "Option release-type requires an argument".
39181 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
39183         maint.mk: gpg_key_ID: use sed more portably
39184         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
39185         the closing brace.
39186         (refresh-po): Fuse two sed invocations into one.
39188 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
39190         gitlog-to-changelog: support the log message format used in Bison.
39191         * build-aux/gitlog-to-changelog: Support --strip-tab and
39192         --strip-cherry-picked.
39194 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
39196         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
39197         the rest of the current time slice to another thread in the current
39198         process. So if the thread that feeds the file decscriptor we're
39199         polling is not in the current process, we get busy-waiting.
39200         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
39201         Patch from Theodore Leblond.
39202         * lib/select.c: Split polling out of the loop that sets the output
39203         fd_sets.  Check for zero result and loop if the wait timeout is
39204         infinite.
39206 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39208         select: Fix build error on IRIX 6.5.
39209         * lib/select.c: Include stddef.h for NULL.
39211 2012-05-21  Simon Josefsson  <simon@josefsson.org>
39213         gc: fix libgcrypt detection on older machines.
39214         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
39215         copyright years because the file has been distributed every year
39216         since it was created.
39218 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
39220         crypto: fix bug in large buffer handling
39221         Problem reported by Serge Belyshev for glibc in
39222         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
39223         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00226.html>.
39224         * lib/md4.c (md4_process_block):
39225         * lib/md5.c (md5_process_block):
39226         * lib/sha1.c (sha1_process_block):
39227         * lib/sha256.c (sha256_process_block):
39228         Don't assume the buffer length is less than 2**32.
39229         * lib/sha512.c (sha512_process_block): Likewise.
39230         Here, the bug is present only in the rare case where the host does
39231         not support uint64_t or where size_t is wider than 64 bits.
39232         Use u64size to work around the problems.
39233         * lib/u64.h (u64size): New macro.
39235 2012-05-15  Pádraig Brady  <P@draigBrady.com>
39237         fsusage: fix block size returned on older Linux 2.6
39239         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
39240         which is available since Linux 2.6.
39241         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
39242         when the member is available so it can be used as a fallback.
39243         * doc/posix-functions/statvfs.texi: Mention the hang issue
39244         on Linux < 2.6.36.
39246 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
39248         bootstrap: suppress stderr chatter
39249         * build-aux/bootstrap (insert_sorted_if_absent, main program):
39250         Omit unnecessary chatter to stderr.  The main program chatter
39251         was there only inadvertantly.
39253         bootstrap: .gitignore files created by autopoint, libtool
39254         I ran into this problem when bootstrapping the latest diffutils.
39255         After './bootstrap', 'git status' reported lots of untracked files
39256         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
39257         autopoint and do not need to be version-controlled.
39258         * build-aux/bootstrap: Put into .gitignore the files that
39259         autopoint and libtool create, by keeping track of files that exist
39260         after but not before these programs are run.
39261         (version_controlled_file): Move up.  2nd arg is now full file
39262         name, not base name; this is more convenient.  Put CVS at the end,
39263         as it's now somewhat deprecated.
39265 2012-05-14  Jim Meyering  <meyering@redhat.com>
39267         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
39268         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
39269         definition.  Reported by Bruno Haible.
39271 2012-05-13  Bruno Haible  <bruno@clisp.org>
39272             Paul Eggert  <eggert@cs.ucla.edu>
39274         binary-io: Define set_binary_mode function.
39275         * lib/binary-io.h (set_binary_mode): New function.
39276         (SET_BINARY): Define in terms of set_binary_mode.
39277         * modules/binary-io (configure.ac): Require AC_C_INLINE.
39278         * tests/test-binary-io.c (main): Accept an argument, and test either
39279         set_binary_mode or SET_BINARY depending on the argument.
39280         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
39281         argument. Clean up also t-bin-out0.tmp.
39283 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
39285         bootstrap: take advantage of POSIX shell features
39287         The 'bootstrap' script offered by Gnulib script already uses POSIX
39288         shell features (like $((...)) arithmetic expansions) that are not
39289         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
39290         means that bootstrap must already be run using a proper POSIX shell,
39291         which will thus provide more features, like ${var#pattern} parameter
39292         expansion or inversion of a command exit status with '!'.  We can
39293         thus use these features to improve the clarity and the performances
39294         of the bootstrap script.
39296         Suggested by Eric Blake.
39298         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
39299         of sed/expr plus command substitutions, to save some forks.  While
39300         we are at it, prefer the POSIX $(...) form of command substitution,
39301         rather than the legacy form `...` (since the former is visually
39302         clearer and interacts better with quoting), and prefer the idiom:
39303           "if ! CMD; then ACTION ..."
39304         over the idiom:
39305           "if CMD; then :; else ACTION ..."
39306         which was required by legacy Bourne shells not supporting '!'.
39308 2012-05-12  Bruno Haible  <bruno@clisp.org>
39310         system-quote: Add more comments.
39311         * lib/system-quote.h: Add more comments about wilcards and limitations.
39312         Suggested by Eli Zaretskii <eliz@gnu.org>.
39314         sh-quote, system-quote: Add comments about wildcards.
39315         * lib/sh-quote.h: Clarify what happens with wildcard characters.
39316         * lib/system-quote.h: Likewise.
39317         Reported by Eli Zaretskii <eliz@gnu.org>.
39319 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
39321         fsusage: check for GNU/Linux statvfs problem dynamically
39322         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
39323         Define STAT_STATFS2_BSIZE too, since in this case the code now
39324         checks dynamically whether statvfs is reliable, falling back on
39325         Linux-style statfs otherwise.
39326         (statvfs_works): New function, for dynamically testing statvfs.
39327         (get_fs_usage) [STAT_STATVFS]: Use it.
39328         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
39329         statvfs on GNU/Linux hosts, since it's now done dynamically.
39331 2012-05-10  Bruno Haible  <bruno@clisp.org>
39333         system-quote, execute, spawn-pipe: Escape '?' on Windows.
39334         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
39335         '?' character.
39336         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
39337         * tests/test-system-quote-main.c (check_all): Check also strings like
39338         "??????????".
39339         Reported by Eli Zaretskii <eliz@gnu.org>.
39341 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
39343         _Noreturn: port config.h to gcc -Wundef
39344         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
39345         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
39346         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00147.html>.
39348 2012-05-10  Bruno Haible  <bruno@clisp.org>
39350         system-quote: Refactor.
39351         * lib/system-quote.h (system_quote_copy): Fix comment.
39352         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
39353         New functions, extracted from system_quote_copy.
39354         (system_quote_length, system_quote_copy): Use these functions.
39355         Reported by Paul Eggert.
39357 2012-05-08  Bruno Haible  <bruno@clisp.org>
39359         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
39360         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
39362 2012-05-08  Bruno Haible  <bruno@clisp.org>
39364         Tests for module 'system-quote'.
39365         * modules/system-quote-tests: New file.
39366         * tests/test-system-quote.sh: New file.
39367         * tests/test-system-quote-main.c: New file.
39368         * tests/test-system-quote-child.c: New file.
39370         New module 'system-quote'.
39371         * lib/system-quote.h: New file.
39372         * lib/system-quote.c: New file.
39373         * modules/system-quote: New file.
39375 2012-05-08  Bruno Haible  <bruno@clisp.org>
39377         sh-quote: Make C++ safe and allow multiple inclusion.
39378         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
39379         declarations in extern "C".
39381 2012-05-08  Bruno Haible  <bruno@clisp.org>
39383         sh-quote tests: Make tests stricter.
39384         * tests/test-sh-quote.c (check_one): Check the return value of
39385         shell_quote_copy.
39386         (main): Check a string with a CR character. Check a string that
39387         contains UCHAR_MAX.
39389 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
39391         warnings.m4: provide a means to specify the program to compile.
39392         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
39393         (gl_WARN_ADD): here.
39394         Use gl_AS_VAR_APPEND.
39395         Support an argument to specify the program to compile.
39396         (gl_WARN_ADD): Accept an argument to specify the program to compile.
39397         AC_SUBST the WARN_CFLAGS when they are used.
39398         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
39399         leave this to gl_WARN_ADD.
39401 2012-05-08  Eric Blake  <eblake@redhat.com>
39403         doc: recommendations on gettext version
39404         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
39405         choice between versions.
39406         * DEPENDENCIES (gettext): Cover both approaches.
39408 2012-05-08  Jim Meyering  <meyering@redhat.com>
39410         init.sh: explain why EXEEXT support uses aliases rather than functions
39411         * tests/init.sh: Add a comment.
39413         init.sh: don't let bash aliases interfere with tests
39414         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
39415         is bash.  This avoids problems for those who alias standard commands to
39416         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
39417         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
39419 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
39421         stdint: be more consistent with glibc, SunOS libc
39422         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
39423         (gl_int_fast16_t, gl_uint_fast16_t)
39424         (gl_int_fast32_t, gl_uint_fast32_t)
39425         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
39426         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
39427         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
39428         Be consistent with glibc by default, and with SunOS 5.10 and later
39429         if __sun is defined.  This lessens the likelihood of clashes if
39430         code compiled for older hosts is combined with code compiled for
39431         newer ones.  Problem reported by Niels Möller in
39432         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00074.html>.
39434 2012-05-07  Eric Blake  <eblake@redhat.com>
39436         isatty: relax license to LGPLv2+
39437         * modules/isatty (License): Relax license.
39439 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39441         stat-size: comment fix
39442         * lib/stat-size.h: Remove obsolete comment about indenting.
39444 2012-05-06  Bruno Haible  <bruno@clisp.org>
39446         Tests for module 'sh-quote'.
39447         * modules/sh-quote-tests: New file.
39448         * tests/test-sh-quote.c: New file.
39450 2012-05-06  Bruno Haible  <bruno@clisp.org>
39452         sh-quote: Improve shell_quote_argv's signature.
39453         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
39454         * lib/sh-quote.c (shell_quote_argv): Likewise.
39456 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
39458         stdint: document issues with int_fast8_t etc.
39459         * doc/posix-headers/stdint.texi (stdint.h): Say that other
39460         stdint.h substitutes may define these types differently.  See
39461         <http://lists.gnu.org/r/bug-gnulib/2012-05/msg00071.html>.
39463 2012-05-05  Bruno Haible  <bruno@clisp.org>
39465         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
39466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
39467         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
39468         or 'guessing no (mishandles large arguments)'.
39470 2012-05-05  Bruno Haible  <bruno@clisp.org>
39472         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
39473         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
39474         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39475         set gl_cv_func_link_follows_symlink to "guessing no".
39477 2012-05-05  Bruno Haible  <bruno@clisp.org>
39479         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
39480         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
39481         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
39482         "guessing no".
39483         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
39485 2012-05-05  Bruno Haible  <bruno@clisp.org>
39487         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
39488         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
39489         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
39490         set gl_cv_struct_dirent_d_ino to "guessing yes".
39492 2012-05-05  Bruno Haible  <bruno@clisp.org>
39494         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
39495         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
39496         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
39497         "guessing yes".
39499 2012-05-05  Bruno Haible  <bruno@clisp.org>
39501         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
39502         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
39503         compiling to a glibc system, set gl_cv_func_signbit and
39504         gl_cv_func_signbit_gcc to "guessing yes".
39506 2012-05-05  Bruno Haible  <bruno@clisp.org>
39508         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
39509         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
39510         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
39511         to "guessing yes".
39512         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
39513         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
39515 2012-05-05  Bruno Haible  <bruno@clisp.org>
39517         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
39518         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
39519         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
39520         gl_cv_func_realpath_works to "guessing yes".
39522 2012-05-05  Bruno Haible  <bruno@clisp.org>
39524         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
39525         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
39526         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
39528 2012-05-04  Bruno Haible  <bruno@clisp.org>
39530         Tweak last commit.
39531         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
39532         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
39534 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
39536         unistd_h: make it easier to avoid sys_types_h
39537         This is useful for Emacs, which has its own method of porting to
39538         Windows, and which therefore does not need the sys_types_h module.
39539         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
39540         code moved here from gl_SYS_TYPES_H.
39541         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
39542         using the code directly.
39543         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
39544         gl_SYS_TYPES_H.
39545         * modules/sys_types (Files):
39546         * modules/unistd (Files): Add m4/off_t.m4.
39548 2012-05-03  Bruno Haible  <bruno@clisp.org>
39550         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
39551         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
39552         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
39553         "guessing yes" or "guessing no".
39554         (gl_FUNC_LSTAT): Update.
39555         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
39556         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
39557         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
39559 2012-05-03  Bruno Haible  <bruno@clisp.org>
39561         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
39562         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
39563         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
39564         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
39565         cross-compiling, choose the first alternative on glibc systems.
39566         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
39568 2012-05-03  Bruno Haible  <bruno@clisp.org>
39570         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
39571         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
39572         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
39574 2012-05-03  Bruno Haible  <bruno@clisp.org>
39576         chown: Avoid "guessing no" when cross-compiling to glibc systems.
39577         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
39579 2012-05-03  Bruno Haible  <bruno@clisp.org>
39581         Avoid "guessing no" guesses when cross-compiling to glibc systems.
39582         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
39583         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
39584         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
39585         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
39586         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
39587         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
39588         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
39589         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
39590         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
39591         compiling to glibc systems, set gl_cv_func_chown_slash_works,
39592         gl_cv_func_chown_ctime_works to "guessing yes".
39593         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
39594         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
39595         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
39596         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
39597         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
39598         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
39599         compiling to glibc systems, set gl_cv_func_open_directory_works to
39600         "guessing yes".
39601         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
39602         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
39603         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
39604         "guessing yes".
39605         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
39606         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
39607         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
39608         compiling to glibc systems, set gl_cv_func_floorf_ieee to
39609         "guessing yes".
39610         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
39611         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
39612         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
39613         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
39614         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
39615         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
39616         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
39617         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
39618         "guessing yes".
39619         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
39620         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
39621         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
39622         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
39623         "guessing yes".
39624         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
39625         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
39626         "guessing yes".
39627         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
39628         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
39629         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
39630         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
39631         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
39632         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
39633         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
39634         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
39635         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
39636         compiling to glibc systems, set gl_cv_func_log10f_ieee to
39637         "guessing yes".
39638         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
39639         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
39640         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
39641         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
39642         "guessing yes".
39643         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
39644         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
39645         "guessing yes".
39646         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
39647         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
39648         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
39649         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
39650         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
39651         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
39652         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
39653         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
39654         compiling to glibc systems, set gl_cv_func_mkfifo_works to
39655         "guessing yes".
39656         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
39657         compiling to glibc systems, set gl_cv_func_mknod_works to
39658         "guessing yes".
39659         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
39660         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
39661         "guessing yes".
39662         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
39663         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
39664         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
39665         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
39666         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
39667         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
39668         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
39669         compiling to glibc systems, set gl_cv_func_svid_putenv to
39670         "guessing yes".
39671         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
39672         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
39673         "guessing yes".
39674         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
39675         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
39676         "guessing yes".
39677         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
39678         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
39679         to "guessing yes".
39680         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
39681         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
39682         to "guessing yes".
39683         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
39684         compiling to glibc systems, set gl_cv_func_rmdir_works to
39685         "guessing yes".
39686         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
39687         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
39688         gl_cv_func_unlink_parent_fails to "guessing yes".
39689         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
39690         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
39691         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
39692         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
39693         gl_cv_func_rename_dest_works to "guessing yes".
39694         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
39695         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
39696         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
39697         compiling to glibc systems, set gl_cv_func_roundf_ieee to
39698         "guessing yes".
39699         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
39700         compiling to glibc systems, set gl_cv_func_roundl_ieee to
39701         "guessing yes".
39702         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
39703         compiling to glibc systems, set gl_cv_func_setenv_works to
39704         "guessing yes".
39705         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
39706         compiling to glibc systems, set gl_cv_func_unsetenv_works to
39707         "guessing yes".
39708         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
39709         compiling to glibc systems, set gl_cv_func_sleep_works to
39710         "guessing yes".
39711         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
39712         compiling to glibc systems, set gl_cv_func_stat_file_slash to
39713         "guessing yes".
39714         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
39715         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
39716         "guessing yes".
39717         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
39718         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
39719         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
39720         compiling to glibc systems, set gl_cv_func_truncf_ieee to
39721         "guessing yes".
39722         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
39723         compiling to glibc systems, set gl_cv_func_truncl_ieee to
39724         "guessing yes".
39725         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
39726         compiling to glibc systems, set gl_cv_func_usleep_works to
39727         "guessing yes".
39728         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
39729         compiling to glibc systems, set gl_cv_func_futimesat_works to
39730         "guessing yes".
39732 2012-05-03  Bruno Haible  <bruno@clisp.org>
39734         Say "guessing yes" or "guessing no" when cross-compiling.
39735         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
39736         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
39737         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
39738         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
39739         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
39740         am_cv_func_working_getline to "guessing yes" or "guessing no".
39741         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
39742         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
39743         (gl_FUNC_MEMMEM): When cross-compiling, set
39744         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
39745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
39746         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
39747         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
39748         set gl_cv_func_strcasestr_works_always to "guessing yes" or
39749         "guessing no".
39750         (gl_FUNC_STRCASESTR): When cross-compiling, set
39751         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
39752         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
39753         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
39754         (gl_FUNC_STRSTR): When cross-compiling, set
39755         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
39756         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
39757         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
39758         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
39759         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
39761 2012-05-01  Bruno Haible  <bruno@clisp.org>
39763         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
39764         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
39765         * build-aux/reloc-ldflags: Likewise.
39766         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
39768 2012-05-01  Bruno Haible  <bruno@clisp.org>
39770         gnulib-tool: Remove transitional code.
39771         * gnulib-tool: Don't warn about --import with 0 arguments any more.
39772         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
39774 2012-05-01  Bruno Haible  <bruno@clisp.org>
39776         getcwd: Fix misindentation.
39777         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
39779 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
39781         exclude: process exclude and include directives in order
39782         This restores the pre-2009 behavior, and is part of a fix of a
39783         grep bug reported by Quentin Arce in
39784         <http://lists.gnu.org/r/bug-grep/2012-04/msg00056.html>.
39785         * lib/exclude.c (struct exclude): Remove 'tail' member.
39786         (new_exclude_segment): Prepend the new segment instead of appending.
39787         Return void, since that's now more convenient.
39788         (file_pattern_matches): Renamed from excluded_file_pattern_p.
39789         (file_name_matches): Renamed from excluded_file_name_p.
39790         (file_pattern_matches, file_name_matches):
39791         Return true if the pattern matches, not if it excludes.
39792         All callers changed.
39793         (excluded_file_name): Process the list in reverse order;
39794         since the list is now reversed this restores the pre-2009 behavior.
39795         (add_exclude): Adjust to new reversed-order list.  Use local var
39796         rather than macro, for clarity.
39797         * tests/test-exclude7.sh: Adjust to corrected behavior.
39799         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
39800         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
39801         it's not possible here.  Handle the case of \ at end of pattern
39802         without dumping core.
39803         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
39805         _Noreturn: future-proof non-GNU and non-MSVC compilers
39806         * build-aux/snippet/_Noreturn.h (_Noreturn):
39807         * m4/gnulib-common.m4 (gl_COMMON_BODY):
39808         Do not define _Noreturn if __STDC_VERSION__ indicates this is
39809         C11 or later.  This is more likely to work with random future C
39810         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
39811         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00195.html>.
39813         exclude: handle wildcards with FNM_EXTMATCH
39814         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
39815         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
39816         comment that "has wildcards" really means "has or may have
39817         wildcards".  Simplify by avoiding the need to call strcspn.
39819 2012-04-29  Bruno Haible  <bruno@clisp.org>
39821         gnulib-tool: Fix list of authors.
39822         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
39824 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
39826         bootstrap: support Automake-NG in $buildreq
39827         * bootstrap (check_versions): Handle automake and aclocal from
39828         Automake-NG specially.  They can be specified as respectively
39829         the "automake-ng" and "aclocal-ng" requirements.
39831 2012-04-25  Eric Blake  <eblake@redhat.com>
39833         bootstrap: only force latest Makefile.in.in for gettext module
39834         * build-aux/bootstrap (with_gettext): Only install latest
39835         Makefile.in.in for projects requesting bleeding edge gettext.
39837 2012-04-22  Bruno Haible  <bruno@clisp.org>
39839         doc: Mention reason for replacement on glibc/Linux systems.
39840         * doc/posix-functions/dprintf.texi: Mention the problem with special
39841         'long double' values.
39842         * doc/posix-functions/fprintf.texi: Likewise.
39843         * doc/posix-functions/printf.texi: Likewise.
39844         * doc/posix-functions/snprintf.texi: Likewise.
39845         * doc/posix-functions/sprintf.texi: Likewise.
39846         * doc/posix-functions/vdprintf.texi: Likewise.
39847         * doc/posix-functions/vfprintf.texi: Likewise.
39848         * doc/posix-functions/vprintf.texi: Likewise.
39849         * doc/posix-functions/vsnprintf.texi: Likewise.
39850         * doc/posix-functions/vsprintf.texi: Likewise.
39851         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
39852         platforms with F_DUPFD_CLOEXEC problems.
39853         * doc/posix-functions/glob.texi: Mention which platforms are affected
39854         by the problem with symbolic links.
39855         * doc/posix-functions/linkat.texi: Mention the problem with
39856         AT_SYMLINK_FOLLOW on Linux.
39858 2012-04-22  Bruno Haible  <bruno@clisp.org>
39860         pwrite: Don't replace on all platforms.
39861         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
39863 2012-04-22  Bruno Haible  <bruno@clisp.org>
39865         rint* tests: Avoid gcc warnings.
39866         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
39867         * tests/test-rintf.c (INFINITY, NAN): Likewise.
39868         * tests/test-rintl.c (INFINITY, NAN): Likewise.
39870 2012-04-21  Bruno Haible  <bruno@clisp.org>
39872         users.txt: Update.
39873         * users.txt: Add freedink, wdiff. Update URLs for projects that have
39874         switched from CVS to git, bzr, or svn.
39876 2012-04-21  Bruno Haible  <bruno@clisp.org>
39878         Large File Support for native Windows platforms.
39880         * m4/largefile.m4 (gl_LARGEFILE): New macro.
39881         * modules/largefile (configure.ac): Require gl_LARGEFILE.
39883         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
39884         type.
39885         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
39886         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
39887         * doc/posix-headers/sys_types.texi: Mention the effect of the
39888         'largefile' module.
39890         * lib/fcntl.in.h: Add comments about off_t.
39891         * modules/fcntl-h (Depends-on): Add sys_types.
39893         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
39894         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
39895         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
39896         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
39897         * modules/unistd (Depends-on): Add sys_types.
39898         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
39900         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
39901         instead of lseek.
39902         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
39903         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
39904         * modules/lseek (Depends-on): Add sys_types.
39906         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
39907         msvc-nothrow.h.
39908         (SetFileSize): New function.
39909         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
39910         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
39911         if Large File Support is requested.
39912         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
39913         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
39915         * lib/stdio.in.h: Add comments about off_t.
39916         * modules/stdio (Depends-on): Add sys_types.
39918         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
39919         instead of ftello.
39920         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
39921         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
39922         (gl_PREREQ_FTELLO): New macro.
39923         * modules/ftello (Depends-on): Add sys_types.
39924         (configure.ac): Incoke gl_PREREQ_FTELLO.
39926         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
39927         instead of fseeko.
39928         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
39929         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
39930         (gl_PREREQ_FSEEKO): New macro.
39931         * modules/fseeko (Depends-on): Add sys_types.
39932         (configure.ac): Invoke gl_PREREQ_FSEEKO.
39934         * lib/sys_stat.in.h: Add comments about off_t.
39935         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
39936         64-bit integer for st_size in 'struct stat'.
39937         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
39938         Define _GL_WINDOWS_64_BIT_ST_SIZE.
39939         * modules/sys_stat (Depends-on): Add sys_types.
39940         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
39942         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
39943         instead of stat or _stat.
39945         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
39946         'struct _stati64' instead of fstat and 'struct stat'.
39947         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
39948         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
39950         Reported by Ray Satiro <raysatiro@yahoo.com>.
39952 2012-04-19  Eric Blake  <eblake@redhat.com>
39954         bootstrap: accommodate older libtool
39955         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
39956         Reported by Daniel P. Berrange.
39958 2012-04-19  Jim Meyering  <meyering@redhat.com>
39960         announce-gen: avoid failure due to lack of Digest::SHA1
39961         Even with the preferred Digest::SHA available, this script
39962         would fail when the backup module, Digest::SHA1, was not installed.
39963         * build-aux/announce-gen: Quote the conditional use of "use".
39964         Reported by Reuben Thomas in:
39965         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
39967         bootstrap: don't let a user's CDPATH setting affect this script
39968         When CDPATH is set, cd will sometimes generate output.
39969         When "cd" is run in a subshell whose output matters, that
39970         surprising-to-some output can cause malfunction.
39971         Unsetting CDPATH turns off this shell "feature."
39972         * build-aux/bootstrap (CDPATH): Unset.
39973         Reported by Reuben Thomas in:
39974         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
39975         and inspired by his patch here:
39976         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
39978 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
39979         and Jim Meyering  <meyering@redhat.com>
39981         maint.mk: catch "see @xref{}" and similar
39982         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
39983         prohibit "See also @xref{", "Also see @pxref{", and similar.
39985 2012-04-16  Jim Meyering  <meyering@redhat.com>
39987         bootstrap: really use gnulib's po/Makefile.in.in
39988         * build-aux/bootstrap: Correct the source file name in previous change.
39989         Reported by Akim Demaille.
39991         configmake: correct minor inconsistency in Makefile rule
39992         * modules/configmake (Makefile.am): All other rules like this one
39993         run the final "mv -f ..." in the same backslash-continued command
39994         as the one that does everything else.  This one put the mv -f ...
39995         command on a separate, non-backslash-continued line.
39996         Make it like the others.
39998         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
39999         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
40000         the one from gettext.  Reported by Akim Demaille.
40002 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
40004         Fix recursion of install-* into po directories.
40005         Bison's install-pdf bug reported by Hans Aberg at
40006         <http://lists.gnu.org/r/bug-bison/2011-05/msg00008.html>.
40007         * build-aux/po/Makefile.in.in (install-dvi, install-html)
40008         (install-info, install-pdf, install-ps): New targets.
40010 2012-04-16  Jim Meyering  <meyering@redhat.com>
40012         maint: avoid spurious "make sc_maint" failure
40013         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
40014         exempt all *.class file names, for lib/javaversion.class.
40016 2012-04-15  Bruno Haible  <bruno@clisp.org>
40018         lseek: Make configure test independent of environment.
40019         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
40020         Windows, we know that lseek() on pipes is broken; skip the runtime
40021         test.
40023 2012-04-14  Bruno Haible  <bruno@clisp.org>
40025         stat: Bypass buggy override in mingw64.
40026         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
40027         * lib/stat.c (stat) [mingw64]: Define to _stat.
40028         * doc/posix-functions/stat.texi: Mention mingw64 bug.
40030 2012-04-14  Bruno Haible  <bruno@clisp.org>
40032         pathmax: Fix compilation error on MSVC 9.
40033         * modules/pathmax (Depends-on): Add unistd.
40035 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
40037         README: document pointer comparison assumption
40038         * README (Portability guidelines): Document assumption about
40039         pointer comparisons, in response to a recent bug-gnulib comment by
40040         Jeffrey Kegler.
40042 2012-04-12  Bruno Haible  <bruno@clisp.org>
40044         Tests for module 'getrusage'.
40045         * modules/getrusage-tests: New file.
40046         * tests/test-getrusage.c: New file.
40048         New module 'getrusage'.
40049         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
40050         warn-on-use.h.
40051         (getrusage): New declaration.
40052         * lib/getrusage.c: New file.
40053         * m4/getrusage.m4: New file.
40054         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
40055         is declared.
40056         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
40057         HAVE_GETRUSAGE.
40058         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
40059         snippet/c++defs, snippet/warn-on-use.
40060         (Makefile.am): Update generation of sys/resource.h. Substitute
40061         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
40062         * modules/getrusage: New file.
40063         * doc/posix-functions/getrusage.texi: Mention the new module.
40065 2012-04-12  Bruno Haible  <bruno@clisp.org>
40067         Tests for module 'sys_resource'.
40068         * modules/sys_resource-tests: New file.
40069         * tests/test-sys_resource.c: New file.
40071         New module 'sys_resource'.
40072         * lib/sys_resource.in.h: New file.
40073         * m4/sys_resource_h.m4: New file.
40074         * modules/sys_resource: New file.
40075         * doc/posix-headers/sys_resource.texi: Mention the new module.
40077 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
40079         ioctl: Fix compilation error on mingw.
40080         * lib/ioctl.c: Include <windows.h>.
40081         Also reported by Ray Satiro <raysatiro@yahoo.com>.
40083 2012-04-04  Jim Meyering  <meyering@redhat.com>
40085         regex: correct #pragma guard expression
40086         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
40087         not 4.3.  Correct its cpp guard expression.
40089 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
40091         regex: remove unnecessary type punning
40092         Problem reported by Vladimir Serbinenko in
40093         <http://lists.gnu.org/r/bug-gnulib/2012-04/msg00006.html>.
40094         * lib/regex.h (struct re_pattern_buffer): Change the type of
40095         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
40096         Fix comment to match code.
40097         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
40098         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
40099         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
40100         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
40101         (set_regs):
40102         Omit no-longer-necessary casts.
40104 2012-04-03  Bruno Haible  <bruno@clisp.org>
40106         Tests for module 'ilogbl'.
40107         * modules/ilogbl-tests: New file.
40108         * tests/test-ilogbl.c: New file.
40110         New module 'ilogbl'.
40111         * lib/math.in.h (ilogbl): New declaration.
40112         * lib/ilogbl.c: New file.
40113         * m4/ilogbl.m4: New file.
40114         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
40115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
40116         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
40117         Split sed invocation, to avoid the limit of 100 substitutions of
40118         HP-UX 'sed'.
40119         * modules/ilogbl: New file.
40120         * tests/test-math-c++.cc: Check the declaration of ilogbl.
40121         * doc/posix-functions/ilogbl.texi: Mention the new module.
40123 2012-04-03  Bruno Haible  <bruno@clisp.org>
40125         Tests for module 'ilogbf'.
40126         * modules/ilogbf-tests: New file.
40127         * tests/test-ilogbf.c: New file.
40129         New module 'ilogbf'.
40130         * lib/math.in.h (ilogbf): New declaration.
40131         * lib/ilogbf.c: New file.
40132         * m4/ilogbf.m4: New file.
40133         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
40134         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
40135         REPLACE_ILOGBF.
40136         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
40137         REPLACE_ILOGBF.
40138         * modules/ilogbf: New file.
40139         * tests/test-math-c++.cc: Check the declaration of ilogbf.
40140         * doc/posix-functions/ilogbf.texi: Mention the new module.
40142 2012-04-03  Bruno Haible  <bruno@clisp.org>
40144         Tests for module 'ilogb'.
40145         * modules/ilogb-tests: New file.
40146         * tests/test-ilogb.c: New file.
40147         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
40148         tests/test-logb-ieee.h.
40150         New module 'ilogb'.
40151         * lib/math.in.h (ilogb): New declaration.
40152         * lib/ilogb.c: New file.
40153         * m4/ilogb.m4: New file.
40154         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
40155         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
40156         REPLACE_ILOGB.
40157         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
40158         REPLACE_ILOGB.
40159         * modules/ilogb: New file.
40160         * tests/test-math-c++.cc: Check the declaration of ilogb.
40161         * doc/posix-functions/ilogb.texi: Mention the new module.
40163 2012-04-03  Bruno Haible  <bruno@clisp.org>
40165         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
40166         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
40167         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
40168         (main): Check their values.
40169         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
40170         problem.
40172 2012-04-03  Bruno Haible  <bruno@clisp.org>
40174         Tests for module 'logbl-ieee'.
40175         * modules/logbl-ieee-tests: New file.
40176         * tests/test-logbl-ieee.c: New file.
40178         New module 'logbl-ieee'.
40179         * modules/logbl-ieee: New file.
40181         Tests for module 'logb-ieee'.
40182         * modules/logb-ieee-tests: New file.
40183         * tests/test-logb-ieee.c: New file.
40185         New module 'logb-ieee'.
40186         * modules/logb-ieee: New file.
40188         Tests for module 'logbf-ieee'.
40189         * modules/logbf-ieee-tests: New file.
40190         * tests/test-logbf-ieee.c: New file.
40191         * tests/test-logb-ieee.h: New file.
40193         New module 'logbf-ieee'.
40194         * modules/logbf-ieee: New file.
40196 2012-04-03  Bruno Haible  <bruno@clisp.org>
40198         Tests for module 'logbl'.
40199         * modules/logbl-tests: New file.
40200         * tests/test-logbl.c: New file.
40202         New module 'logbl'.
40203         * lib/math.in.h (logbl): New declaration.
40204         * lib/logbl.c: New file.
40205         * m4/logbl.m4: New file.
40206         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
40207         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
40208         REPLACE_LOGBL.
40209         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
40210         REPLACE_LOGBL.
40211         * modules/logbl: New file.
40212         * tests/test-math-c++.cc: Check the declaration of logbl.
40213         * doc/posix-functions/logbl.texi: Mention the new module.
40215 2012-04-02  Bruno Haible  <bruno@clisp.org>
40217         Tests for module 'logbf'.
40218         * modules/logbf-tests: New file.
40219         * tests/test-logbf.c: New file.
40221         New module 'logbf'.
40222         * lib/math.in.h (logbf): New declaration.
40223         * lib/logbf.c: New file.
40224         * m4/logbf.m4: New file.
40225         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
40226         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
40227         REPLACE_LOGBF.
40228         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
40229         REPLACE_LOGBF.
40230         * modules/logbf: New file.
40231         * tests/test-math-c++.cc: Check the declaration of logbf.
40232         * doc/posix-functions/logbf.texi: Mention the new module.
40234 2012-04-02  Bruno Haible  <bruno@clisp.org>
40236         logb tests: More tests.
40237         * tests/test-logb.h: New file, based on tests/test-logb.c and
40238         tests/test-frexp.h.
40239         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
40240         (main): Just invoke test_function.
40241         * modules/logb-tests (Files): Add tests/test-logb.h,
40242         tests/minus-zero.h, tests/randomd.c.
40243         (Makefile.am): Add randomd.c to test_logb_SOURCES.
40245         logb: Provide replacement and workarounds.
40246         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
40247         is 1.
40248         * lib/logb.c: New file.
40249         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
40250         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
40251         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
40252         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
40253         * modules/logb (Files): Add lib/logb.c.
40254         (Depends-on): Add isfinite, frexp, isnand.
40255         (configure.ac): Compile the replacement code logb.c if needed.
40256         * tests/test-math-c++.cc: Check the declaration of logb.
40257         * doc/posix-functions/logb.texi: Mention the replacement and the bug
40258         with subnormal numbers.
40260 2012-04-02  Bruno Haible  <bruno@clisp.org>
40262         log10* tests: Speed up.
40263         * tests/test-log10.h (test_function): Reduce amount of random numbers
40264         to test.
40266 2012-04-01  Bruno Haible  <bruno@clisp.org>
40268         logf-ieee: Fix test whether logf works.
40269         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
40271 2012-04-01  Bruno Haible  <bruno@clisp.org>
40273         log10l: Work around log10l-ieee test failure on IRIX 6.5.
40274         * lib/log10l.c: Include <float.h>
40275         (log10l): On IRIX, normalize the +Infinity value.
40276         * modules/log10l (Depends-on): Add 'float'.
40277         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
40278         +Infinity.
40280         log10f-ieee: Work around test failure on NetBSD 5.1.
40281         * m4/log10f-ieee.m4: New file.
40282         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
40283         test whether log10f works with a negative argument. Replace it if not.
40284         * lib/log10f.c (log10f): For negative arguments, return NaN.
40285         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
40286         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
40287         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
40289         log10f-ieee: Work around test failure on Solaris 9.
40290         * modules/log10f-ieee (Depends-on): Add log10-ieee.
40291         (configure.ac): Require gl_FUNC_LOG10F.
40293         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
40294         * m4/log10-ieee.m4: New file.
40295         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
40296         whether log10 works with a negative argument. Replace it if not.
40297         * lib/log10.c (log10): For negative arguments, return NaN.
40298         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
40299         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
40300         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
40302         Tests for module 'log10l-ieee'.
40303         * modules/log10l-ieee-tests: New file.
40304         * tests/test-log10l-ieee.c: New file.
40306         New module 'log10l-ieee'.
40307         * modules/log10l-ieee: New file.
40309         Tests for module 'log10-ieee'.
40310         * modules/log10-ieee-tests: New file.
40311         * tests/test-log10-ieee.c: New file.
40313         New module 'log10-ieee'.
40314         * modules/log10-ieee: New file.
40316         Tests for module 'log10f-ieee'.
40317         * modules/log10f-ieee-tests: New file.
40318         * tests/test-log10f-ieee.c: New file.
40319         * tests/test-log10-ieee.h: New file.
40321         New module 'log10f-ieee'.
40322         * modules/log10f-ieee: New file.
40324 2012-04-01  Bruno Haible  <bruno@clisp.org>
40326         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
40327         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
40328         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
40329         workaround.
40330         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
40331         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
40332         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
40333         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
40334         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
40335         (Depends-on): Update conditions.
40336         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
40337         IRIX 6.5, OSF/1 5.1 problems.
40339 2012-04-01  Bruno Haible  <bruno@clisp.org>
40341         log10f: Work around OSF/1 5.1 bug.
40342         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
40343         * lib/log10f.c (log10f): If logf exists, use it and provide just the
40344         workaround.
40345         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
40346         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
40347         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
40348         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
40349         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
40350         (Depends-on): Update conditions.
40351         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
40353 2012-04-01  Bruno Haible  <bruno@clisp.org>
40355         log10: Work around OSF/1 5.1 bug.
40356         * lib/math.in.h (log10): New declaration.
40357         * lib/log10.c: New file.
40358         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
40359         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
40360         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
40361         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
40362         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
40363         * modules/log10 (Files): Add lib/log10.c.
40364         (Depends-on): Add math.
40365         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
40366         * tests/test-math-c++.cc: Check the declaration of log10.
40367         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
40369 2012-03-31  Bruno Haible  <bruno@clisp.org>
40371         log10l tests: More tests.
40372         * modules/log10l-tests (Files): Add tests/test-log10l.h,
40373         tests/minus-zero.h, tests/randoml.c.
40374         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
40375         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
40376         (main): Invoke test_function.
40378         log10f tests: More tests.
40379         * modules/log10f-tests (Files): Add tests/test-log10.h,
40380         tests/minus-zero.h, tests/randomf.c.
40381         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
40382         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
40383         (main): Invoke test_function.
40385         log10 tests: More tests.
40386         * tests/test-log10.h: New file.
40387         * modules/log10-tests (Files): Add tests/test-log10.h,
40388         tests/minus-zero.h, tests/randomd.c.
40389         (Makefile.am): Add randomd.c to test_log10_SOURCES.
40390         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
40391         (main): Invoke test_function.
40393 2012-03-31  Simon Josefsson  <simon@josefsson.org>
40395         fflush: Fix syntax error.
40396         * lib/fflush.c: Include unused-parameter.h, needed for
40397         _GL_UNUSED_PARAMETER.
40398         * modules/fflush (Depends-on): Add snippet/unused-parameter.
40400 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
40402         regex: pacify GCC when compiling GRUB
40403         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
40404         a diagnostic.  Reported by Vladimir Serbinenko in
40405         <http://lists.gnu.org/r/bug-gnulib/2012-03/msg00163.html>.
40407 2012-03-29  Eric Blake  <eblake@redhat.com>
40409         stdio: don't assume gets any more
40410         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
40411         support.
40412         * modules/stdio (Makefile.am): Likewise.
40413         * lib/stdio-read.c (gets): Likewise.
40414         * tests/test-stdio-c++.cc: Likewise.
40415         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
40416         * lib/stdio.in.h (gets): Make warning occur in more places.
40417         * doc/posix-functions/gets.texi (gets): Update documentation.
40418         Reported by Christer Solskogen.
40420         maint.mk: fix syntax checks without exclusions
40421         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
40422         Reported by Daniel P. Berrange.
40424         strerror_r: avoid compiler warning
40425         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
40426         level.
40428         fflush: avoid compiler warning
40429         * lib/fflush.c (update_fpos_cache): Mark variables that are
40430         potentially unused.
40432 2012-03-25  Bruno Haible  <bruno@clisp.org>
40434         Tests for module 'localeconv'.
40435         * modules/localeconv-tests: New file.
40436         * tests/test-localeconv.c: New file.
40438         New module 'localeconv'.
40439         * lib/locale.in.h (localeconv): New declaration.
40440         * lib/localeconv.c: New file.
40441         * m4/localeconv.m4: New file.
40442         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
40443         REPLACE_LOCALECONV.
40444         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
40445         REPLACE_LOCALECONV.
40446         * modules/localeconv: New file.
40447         * modules/nl_langinfo (Depends-on): Add localeconv.
40448         * modules/human (Depends-on): Likewise.
40449         * doc/posix-functions/localeconv.texi: Mention the new module.
40451 2012-03-25  Bruno Haible  <bruno@clisp.org>
40453         locale: Provide a complete 'struct lconv'.
40454         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40455         'struct lconv' does not contain int_p_cs_precedes.
40456         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40457         * doc/posix-headers/locale.texi: Update.
40459         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
40460         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
40461         * doc/posix-headers/locale.texi: Update.
40463         locale: Provide a working 'struct lconv'.
40464         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
40465         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
40466         'struct lconv' does not even contain decimal_point.
40467         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
40468         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
40469         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
40470         * doc/posix-headers/locale.texi: Mention the problems with
40471         'struct lconv'.
40472         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
40474 2012-03-24  Bruno Haible  <bruno@clisp.org>
40476         Enable common subexpression optimization in GCC.
40477         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
40478         macros.
40479         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
40480         GCC attribute 'const'.
40481         (uc_locale_language): Declare with GCC attribute 'pure'.
40482         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
40483         with GCC attribute 'const'.
40484         * lib/unictype.in.h (uc_is_general_category_withtable,
40485         uc_combining_class, uc_combining_class_name,
40486         uc_combining_class_long_name, uc_bidi_class_name,
40487         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
40488         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
40489         uc_decimal_value, uc_digit_value, uc_numeric_value,
40490         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
40491         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
40492         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
40493         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
40494         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
40495         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
40496         Declare with GCC attribute 'const'.
40497         (uc_general_category_name, uc_general_category_long_name,
40498         uc_general_category_byname, uc_general_category,
40499         uc_is_general_category, uc_combining_class_byname,
40500         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
40501         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
40502         Declare with GCC attribute 'pure'.
40503         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
40504         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
40505         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
40506         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
40507         with GCC attribute 'pure'.
40508         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
40509         'const'.
40510         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
40511         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
40512         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
40513         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
40514         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
40515         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
40516         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
40517         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
40518         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
40519         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
40520         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
40521         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
40522         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
40523         GCC attribute 'pure'.
40524         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
40525         'const'.
40526         * lib/uniwidth.in.h (uc_width): Simplify declaration.
40527         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
40528         u32_strwidth): Declare with GCC attribute 'pure'.
40530         Enable common subexpression optimization in GCC.
40531         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40532         (alphasort): Declare with GCC attribute 'pure'.
40533         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40534         (atoll): Declare with GCC attribute 'pure'.
40535         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
40536         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
40537         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
40538         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
40539         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
40540         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
40541         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
40543 2012-03-24  Bruno Haible  <bruno@clisp.org>
40545         gnulib-tool: Avoid unintended error output from 'cmp'.
40546         * gnulib-tool (func_add_file, func_update_file, func_import): Use
40547         "cmp -s", not "cmp > /dev/null".
40549 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
40551         gnulib-tool: fix imprecise comments w.r.t. an automake bug
40553         It's not just Automake versions < 1.9b that creates an empty
40554         pkgdatadir at installation time if pkgdata_DATA is specified
40555         to empty; modern automake versions do this as well, at least
40556         until automake 1.11.4 (not yet released at the moment of writing,
40557         but soon to appear).  That behaviour was generally considered a
40558         feature rather than a bug, at least until this discussion:
40559         <http://lists.gnu.org/r/automake/2012-03/msg00014.html>
40561         See also automake bugs #10997 and #11030.
40563         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
40564         reference to relevant automake bug numbers.
40565         (func_emit_tests_Makefile_am): Likewise.
40567 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40569         announce-gen: use Digest::SHA when possible
40570         * build-aux/announce-gen: Use Digest::SHA when possible, falling
40571         back to Digest::SHA1 if necessary.
40573 2012-03-20  Jim Meyering  <meyering@redhat.com>
40575         tests: avoid gcc warnings about argv vs. const initializers
40576         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
40577         warnings about discarding 'const' qualifier from pointer target type.
40578         * tests/test-posix_spawn2.c (main): Likewise.
40580 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
40582         README-release: simplify slightly
40583         * top/README-release: Run "git checkout master" only once.
40585 2012-03-15  Mark Wielaard  <mark@klomp.org>
40587         git-merge-changelog: add specific example on how to use with hg.
40588         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
40590 2012-03-18  Mark Wielaard  <mark@klomp.org>
40592         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
40594 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
40596         git-version-gen: don't let "prefix" envvar cause trouble
40597         * build-aux/git-version-gen (prefix): Initialize properly,
40598         so as not to use a value specified via the environment.
40599         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
40601 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40603         regex: diagnose too-large repeat counts in EREs
40604         Previously, the code did not diagnose the too-large repeat count
40605         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
40606         as if it were 'b\{1000000000}', which is unexpected.
40607         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
40608         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
40609         is a reasonable one for this problem.  Another option would be to
40610         create a new REG_OVERFLOW error for repeat counts that are too large.
40611         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
40612         count is too large, so that the caller can distinguish the two cases.
40613         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
40614         "Too large" return code, and that repeat counts are one example of this.
40616 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
40618         doc: some glibc x32 integer width issues
40619         * doc/posix-headers/sys_types.texi (sys/types.h):
40620         * doc/posix-headers/time.texi (time.h):
40621         Mention that glibc x32 does not conform to POSIX in a couple of
40622         areas related to integer widths.
40624 2012-03-15  Bruno Haible  <bruno@clisp.org>
40626         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
40627         * lib/fma.c (VOLATILE): New macro.
40628         (FUNC): Use it to work around a GCC compiler bug.
40630 2012-03-13  Bruno Haible  <bruno@clisp.org>
40632         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40633         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
40634         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
40635         REPLACE_HYPOTL to 1.
40636         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
40638 2012-03-13  Bruno Haible  <bruno@clisp.org>
40640         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40641         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
40642         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
40643         REPLACE_REMAINDERL to 1.
40644         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
40645         bug.
40647 2012-03-13  Bruno Haible  <bruno@clisp.org>
40649         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40650         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
40651         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
40652         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
40653         too big rounding errors.
40654         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
40655         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
40656         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
40657         (Depends-on): Update conditions.
40658         * tests/test-sqrtl.c (my_ldexpl): New function.
40659         (main): Add test of a particular value.
40660         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40662 2012-03-13  Pádraig Brady  <P@draigBrady.com>
40664         doc: Update timer_* platform portability notes.
40665         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
40666         that always return ENOSYS.
40667         * doc/posix-functions/timer_delete.texi: Likewise.
40668         * doc/posix-functions/timer_gettime.texi: Likewise.
40669         * doc/posix-functions/timer_settime.texi: Likewise.
40671 2012-03-13  Bruno Haible  <bruno@clisp.org>
40673         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
40674         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
40675         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
40676         REPLACE_CBRTL to 1.
40677         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
40679 2012-03-13  Bruno Haible  <bruno@clisp.org>
40681         remainderl: Avoid compilation error on AIX >= 5.2.
40682         * lib/math.in.h (remainderl): Undefine macro from the system header.
40684 2012-03-13  Bruno Haible  <bruno@clisp.org>
40686         Avoid compilation errors with MSVC option -fp:strict.
40687         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
40688         * lib/cbrtf.c: Likewise.
40689         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
40691 2012-03-12  Bruno Haible  <bruno@clisp.org>
40693         uninorm: Don't crash in out-of-memory conditions.
40694         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
40695         gracefully.
40696         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
40697         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
40699 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
40701         quote: fix syntax-check
40702         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
40703         also exports quote_quoting_options.
40705 2012-03-12  Simon Josefsson  <simon@josefsson.org>
40707         Collapse list of copyright years to ranges.  See
40708         <https://lists.gnu.org/r/bug-gnulib/2012-03/msg00051.html>.
40709         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
40710         build-aux/csharpexec.sh.in, build-aux/gnupload,
40711         build-aux/install-reloc, build-aux/javacomp.sh.in,
40712         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
40713         build-aux/move-if-change, build-aux/reloc-ldflags,
40714         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
40716 2012-03-11  Bruno Haible  <bruno@clisp.org>
40718         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40719         * m4/log2f-ieee.m4: New file.
40720         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
40721         whether log2f works with a minus zero argument. Replace it if not.
40722         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
40723         (Depends-on): Add log2-ieee.
40724         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
40725         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
40727         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
40728         * m4/log2-ieee.m4: New file.
40729         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
40730         whether log2 works with a minus zero argument. Replace it if not.
40731         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
40732         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
40733         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
40735         Tests for module 'log2l-ieee'.
40736         * modules/log2l-ieee-tests: New file.
40737         * tests/test-log2l-ieee.c: New file.
40739         New module 'log2l-ieee'.
40740         * modules/log2l-ieee: New file.
40742         Tests for module 'log2-ieee'.
40743         * modules/log2-ieee-tests: New file.
40744         * tests/test-log2-ieee.c: New file.
40746         New module 'log2-ieee'.
40747         * modules/log2-ieee: New file.
40749         Tests for module 'log2f-ieee'.
40750         * modules/log2f-ieee-tests: New file.
40751         * tests/test-log2f-ieee.c: New file.
40752         * tests/test-log2-ieee.h: New file.
40754         New module 'log2f-ieee'.
40755         * modules/log2f-ieee: New file.
40757 2012-03-11  Bruno Haible  <bruno@clisp.org>
40759         Tests for module 'log2l'.
40760         * modules/log2l-tests: New file.
40761         * tests/test-log2l.c: New file.
40763         New module 'log2l'.
40764         * lib/math.in.h (log2l): New declaration.
40765         * lib/log2l.c: New file.
40766         * m4/log2l.m4: New file.
40767         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
40768         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
40769         REPLACE_LOG2L.
40770         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
40771         REPLACE_LOG2L.
40772         * modules/log2l: New file.
40773         * tests/test-math-c++.cc: Check the declaration of log2l.
40774         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
40775         and OSF/1 problems.
40777 2012-03-11  Bruno Haible  <bruno@clisp.org>
40779         Tests for module 'log2f'.
40780         * modules/log2f-tests: New file.
40781         * tests/test-log2f.c: New file.
40783         New module 'log2f'.
40784         * lib/math.in.h (log2f): New declaration.
40785         * lib/log2f.c: New file.
40786         * m4/log2f.m4: New file.
40787         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
40788         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
40789         REPLACE_LOG2F.
40790         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
40791         REPLACE_LOG2F.
40792         * modules/log2f: New file.
40793         * tests/test-math-c++.cc: Check the declaration of log2f.
40794         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
40795         and OSF/1 and Cygwin problems.
40797 2012-03-11  Bruno Haible  <bruno@clisp.org>
40799         Tests for module 'log2'.
40800         * modules/log2-tests: New file.
40801         * tests/test-log2.c: New file.
40802         * tests/test-log2.h: New file.
40804         New module 'log2'.
40805         * lib/math.in.h (log2): New declaration.
40806         * lib/log2.c: New file.
40807         * m4/log2.m4: New file.
40808         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
40809         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
40810         REPLACE_LOG2.
40811         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
40812         REPLACE_LOG2.
40813         * modules/log2: New file.
40814         * tests/test-math-c++.cc: Check the declaration of log2.
40815         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
40816         and OSF/1 and Cygwin problems.
40818 2012-03-11  Bruno Haible  <bruno@clisp.org>
40820         exp2* tests: More tests.
40821         * tests/test-exp2.h (test_function): Test all integral arguments that
40822         don't need to overflow or denormalized numbers.
40823         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
40824         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
40825         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
40827 2012-03-10  Bruno Haible  <bruno@clisp.org>
40829         log1pl-ieee: Work around test failure on AIX 7.1.
40830         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
40832         log1pl-ieee: Work around test failure on IRIX 6.5.
40833         * m4/log1pl-ieee.m4: New file.
40834         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
40835         test whether log1pl works with a minus zero argument. Replace it if
40836         not.
40837         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
40838         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
40839         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
40840         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
40841         (Depends-on): Update conditions.
40842         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40843         m4/signbit.m4.
40844         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
40845         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
40847         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
40848         * m4/log1pf-ieee.m4: New file.
40849         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
40850         test whether log1pf works with a minus zero argument. Replace it if
40851         not.
40852         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
40853         m4/signbit.m4.
40854         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
40855         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
40857         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
40858         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
40859         (configure.ac): Require gl_FUNC_LOG1PF.
40861         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
40862         * m4/log1p-ieee.m4: New file.
40863         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
40864         whether log1p works with a minus zero argument. Replace it if not.
40865         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
40866         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
40867         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
40868         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
40869         (Depends-on): Update conditions.
40870         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
40871         m4/signbit.m4.
40872         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
40873         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
40875         Tests for module 'log1pl-ieee'.
40876         * modules/log1pl-ieee-tests: New file.
40877         * tests/test-log1pl-ieee.c: New file.
40879         New module 'log1pl-ieee'.
40880         * modules/log1pl-ieee: New file.
40882         Tests for module 'log1p-ieee'.
40883         * modules/log1p-ieee-tests: New file.
40884         * tests/test-log1p-ieee.c: New file.
40886         New module 'log1p-ieee'.
40887         * modules/log1p-ieee: New file.
40889         Tests for module 'log1pf-ieee'.
40890         * modules/log1pf-ieee-tests: New file.
40891         * tests/test-log1pf-ieee.c: New file.
40892         * tests/test-log1p-ieee.h: New file.
40894         New module 'log1pf-ieee'.
40895         * modules/log1pf-ieee: New file.
40897 2012-03-10  Bruno Haible  <bruno@clisp.org>
40899         Tests for module 'log1pl'.
40900         * modules/log1pl-tests: New file.
40901         * tests/test-log1pl.c: New file.
40903         New module 'log1pl'.
40904         * lib/math.in.h (log1pl): New declaration.
40905         * lib/log1pl.c: New file.
40906         * m4/log1pl.m4: New file.
40907         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
40908         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
40909         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
40910         * modules/log1pl: New file.
40911         * tests/test-math-c++.cc: Check the declaration of log1pl.
40912         * doc/posix-functions/log1pl.texi: Mention the new module.
40914 2012-03-10  Bruno Haible  <bruno@clisp.org>
40916         Tests for module 'log1pf'.
40917         * modules/log1pf-tests: New file.
40918         * tests/test-log1pf.c: New file.
40920         New module 'log1pf'.
40921         * lib/math.in.h (log1pf): New declaration.
40922         * lib/log1pf.c: New file.
40923         * m4/log1pf.m4: New file.
40924         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
40925         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
40926         REPLACE_LOG1PF.
40927         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
40928         REPLACE_LOG1PF.
40929         * modules/log1pf: New file.
40930         * tests/test-math-c++.cc: Check the declaration of log1pf.
40931         * doc/posix-functions/log1pf.texi: Mention the new module.
40933 2012-03-10  Bruno Haible  <bruno@clisp.org>
40935         log1p tests: More tests.
40936         * tests/test-log1p.h: New file.
40937         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
40938         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
40939         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
40940         (main): Invoke test_function.
40942         log1p: Provide replacement for Minix and MSVC.
40943         * lib/math.in.h (log1p): New declaration.
40944         * lib/log1p.c: New file.
40945         * m4/log1p.m4: New file.
40946         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
40947         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
40948         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
40949         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
40950         (Depends-on): Add math, isnand, log, round.
40951         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
40952         HAVE_LOG1P is 0.
40953         * tests/test-math-c++.cc: Check the declaration of log1p.
40954         * doc/posix-functions/log1p.texi: Mention the replacement.
40956 2012-03-10  Bruno Haible  <bruno@clisp.org>
40958         math tests: Small simplification.
40959         * tests/test-exp.h (test_function): Use the same err_bound for
40960         'double' on platforms with sizeof (long double) == sizeof (double)
40961         than on platforms with sizeof (long double) > sizeof (double).
40962         * tests/test-exp2.h (test_function): Likewise.
40963         * tests/test-expm1.h (test_function): Likewise.
40964         * tests/test-log.h (test_function): Likewise.
40966 2012-03-10  Bruno Haible  <bruno@clisp.org>
40968         Fix some comments.
40969         * lib/expl.c: Fix an ambiguous comment.
40970         * lib/expm1.c: Likewise.
40971         * lib/expm1l.c: Likewise.
40972         * lib/exp2.c: Likewise.
40973         * lib/exp2l.c: Likewise.
40975 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
40977         regex: allow inclusion of <regex.h> before <limits.h>
40978         Without this patch, portable programs had to include <limits.h> before
40979         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
40980         I ran into this problem with a test version of GNU grep on Solaris 8.
40981         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
40982         This is done conditionally so that this change can be merged
40983         back to glibc.
40984         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
40985         using the included regex.
40987         fts: depend on fdopendir
40988         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
40989         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
40990         problem was introduced when fdopendir was split out.
40992 2012-03-10  Bruno Haible  <bruno@clisp.org>
40994         Remove unused variables.
40995         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
40996         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
40998 2012-03-10  Bruno Haible  <bruno@clisp.org>
41000         isnanf-nolibm: Fix last commit.
41001         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
41003         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
41004         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
41006 2012-03-10  Bruno Haible  <bruno@clisp.org>
41008         logf-ieee: Work around test failure on NetBSD 5.1.
41009         * m4/logf-ieee.m4: New file.
41010         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
41011         whether logf works with a negative argument. Replace it if not.
41012         * lib/logf.c (logf): For negative arguments, return NaN.
41013         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
41014         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
41015         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
41017         logf-ieee: Work around test failure on Solaris 9.
41018         * modules/logf-ieee (Depends-on): Add log-ieee.
41019         (configure.ac): Require gl_FUNC_LOGF.
41021         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
41022         * m4/log-ieee.m4: New file.
41023         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
41024         log works with a negative argument. Replace it if not.
41025         * lib/log.c (log): For negative arguments, return NaN.
41026         * modules/log-ieee (Files): Add m4/log-ieee.m4.
41027         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
41028         * doc/posix-functions/log.texi: Mention the log-ieee module.
41030         Tests for module 'logl-ieee'.
41031         * modules/logl-ieee-tests: New file.
41032         * tests/test-logl-ieee.c: New file.
41034         New module 'logl-ieee'.
41035         * modules/logl-ieee: New file.
41037         Tests for module 'log-ieee'.
41038         * modules/log-ieee-tests: New file.
41039         * tests/test-log-ieee.c: New file.
41041         New module 'log-ieee'.
41042         * modules/log-ieee: New file.
41044         Tests for module 'logf-ieee'.
41045         * modules/logf-ieee-tests: New file.
41046         * tests/test-logf-ieee.c: New file.
41047         * tests/test-log-ieee.h: New file.
41049         New module 'logf-ieee'.
41050         * modules/logf-ieee: New file.
41052 2012-03-10  Bruno Haible  <bruno@clisp.org>
41054         log: Fix bug introduced on 2012-03-09.
41055         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
41057 2012-03-10  Pádraig Brady  <P@draigBrady.com>
41059         timer-time: link explicitly with pthreads on glibc
41060         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
41061         to support static linking, when newer glibc is
41062         detected, as that contains pthread emulation of
41063         POSIX timer functions where required.
41064         * modules/timer-time: Depend on threadlib to
41065         pull in the appropriate library to link.
41067 2012-03-10  Bruno Haible  <bruno@clisp.org>
41069         log* tests: More tests.
41070         * tests/test-log.h: New file.
41071         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
41072         (main): Invoke test_function.
41073         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
41074         (main): Invoke test_function.
41075         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
41076         (main): Invoke test_function.
41077         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41078         tests/randomd.c.
41079         (Makefile.am): Add randomd.c to test_log_SOURCES.
41080         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41081         tests/randomf.c.
41082         (Makefile.am): Add randomf.c to test_logf_SOURCES.
41083         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
41084         tests/randoml.c.
41085         (Depends-on): Add 'float'.
41086         (Makefile.am): Add randoml.c to test_logl_SOURCES.
41088 2012-03-09  Bruno Haible  <bruno@clisp.org>
41090         logl: Work around OSF/1 5.1 bug.
41091         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
41092         * lib/logl.c (logl): If logl exists, use it and provide just the
41093         workaround.
41094         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
41095         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
41096         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
41097         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
41098         * modules/logl (configure.ac): Consider REPLACE_LOGL.
41099         (Depends-on): Update conditions.
41100         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
41102 2012-03-09  Bruno Haible  <bruno@clisp.org>
41104         logf: Work around OSF/1 5.1 bug.
41105         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
41106         * lib/logf.c (logf): If logf exists, use it and provide just the
41107         workaround.
41108         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
41109         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
41110         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
41111         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
41112         * modules/logf (configure.ac): Consider REPLACE_LOGF.
41113         (Depends-on): Update conditions.
41114         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
41116 2012-03-09  Bruno Haible  <bruno@clisp.org>
41118         log: Work around OSF/1 5.1 bug.
41119         * lib/math.in.h (log): New declaration.
41120         * lib/log.c: New file.
41121         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
41122         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
41123         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
41124         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
41125         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
41126         * modules/log (Files): Add lib/log.c.
41127         (Depends-on): Add math.
41128         (configure.ac): If REPLACE_LOG is 1, compile an override.
41129         * tests/test-math-c++.cc: Check the declaration of log.
41130         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
41132 2012-03-09  Jim Meyering  <meyering@redhat.com>
41134         readtokens.c: adjust wording in a comment
41135         * lib/readtokens.c: Insert omitted "that" in a comment.
41137 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41139         modechange: add notations +40, 00440, etc.
41140         * lib/modechange.c (mode_compile): Support new notations
41141         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
41143 2012-03-08  Bruno Haible  <bruno@clisp.org>
41145         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
41146         * m4/exp2l-ieee.m4: New file.
41147         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
41148         test whether exp2l works with a NaN argument and with a negative
41149         infinity argument. Replace it if not.
41150         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
41151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
41152         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
41153         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
41154         (Depends-on): Update conditions.
41155         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
41156         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
41157         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
41159         Tests for module 'exp2l-ieee'.
41160         * modules/exp2l-ieee-tests: New file.
41161         * tests/test-exp2l-ieee.c: New file.
41163         New module 'exp2l-ieee'.
41164         * modules/exp2l-ieee: New file.
41166         Tests for module 'exp2-ieee'.
41167         * modules/exp2-ieee-tests: New file.
41168         * tests/test-exp2-ieee.c: New file.
41170         New module 'exp2-ieee'.
41171         * modules/exp2-ieee: New file.
41173         Tests for module 'exp2f-ieee'.
41174         * modules/exp2f-ieee-tests: New file.
41175         * tests/test-exp2f-ieee.c: New file.
41176         * tests/test-exp2-ieee.h: New file.
41178         New module 'exp2f-ieee'.
41179         * modules/exp2f-ieee: New file.
41181 2012-03-08  Bruno Haible  <bruno@clisp.org>
41183         Tests for module 'exp2l'.
41184         * modules/exp2l-tests: New file.
41185         * tests/test-exp2l.c: New file.
41187         New module 'exp2l'.
41188         * lib/math.in.h (exp2l): New declaration.
41189         * lib/exp2l.c: New file.
41190         * lib/expl-table.c: New file, extracted from lib/expl.c.
41191         * lib/expl.c (gl_expl_table): New declaration.
41192         (expl): Remove expl_table. Update reference.
41193         * m4/exp2l.m4: New file.
41194         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
41195         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
41196         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
41197         * modules/exp2l: New file.
41198         * modules/expl (Files): Add lib/expl-table.c.
41199         (configure.ac): Compile also expl-table.c.
41200         * tests/test-math-c++.cc: Check the declaration of exp2l.
41201         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
41202         problem.
41204 2012-03-08  Bruno Haible  <bruno@clisp.org>
41206         Tests for module 'exp2f'.
41207         * modules/exp2f-tests: New file.
41208         * tests/test-exp2f.c: New file.
41210         New module 'exp2f'.
41211         * lib/math.in.h (exp2f): New declaration.
41212         * lib/exp2f.c: New file.
41213         * m4/exp2f.m4: New file.
41214         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
41215         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
41216         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
41217         * modules/exp2f: New file.
41218         * tests/test-math-c++.cc: Check the declaration of exp2f.
41219         * doc/posix-functions/exp2f.texi: Mention the new module and the
41220         IRIX problem.
41222 2012-03-08  Bruno Haible  <bruno@clisp.org>
41224         Tests for module 'exp2'.
41225         * modules/exp2-tests: New file.
41226         * tests/test-exp2.c: New file.
41227         * tests/test-exp2.h: New file.
41229         New module 'exp2'.
41230         * lib/math.in.h (exp2): New declaration.
41231         * lib/exp2.c: New file.
41232         * m4/exp2.m4: New file.
41233         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
41234         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
41235         REPLACE_EXP2.
41236         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
41237         REPLACE_EXP2.
41238         * modules/exp2: New file.
41239         * tests/test-math-c++.cc: Check the declaration of exp2.
41240         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
41241         and OpenBSD problems.
41243 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
41245         savedir: fix comment typo
41246         * lib/savedir.c (savedirstream): Fix typo in comment.
41248 2012-03-08  Bruno Haible  <bruno@clisp.org>
41250         test-readtokens.c: use const; remove unwarranted cast
41251         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
41253 2012-03-08  Bruno Haible  <bruno@clisp.org>
41255         fmal: Avoid compilation error on AIX.
41256         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
41257         AIX 5.2..7.1.
41259 2012-03-08  Bruno Haible  <bruno@clisp.org>
41261         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
41262         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
41263         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
41264         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
41265         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
41266         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
41267         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
41269 2012-03-08  Bruno Haible  <bruno@clisp.org>
41271         remainderf: Override buggy system function on IRIX 6.5.
41272         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
41273         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
41274         when it exists.
41275         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
41277 2012-03-08  Jim Meyering  <meyering@redhat.com>
41279         test-readtokens.c: avoid const-related compilation warnings
41280         * tests/test-readtokens.c: Avoid const-related compilation warnings.
41282 2012-03-07  Jim Meyering  <meyering@redhat.com>
41283             Bruno Haible  <bruno@clisp.org>
41285         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
41286         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
41287         tests/randomd.c.
41288         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
41289         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
41290         tests/randoml.c.
41291         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
41293 2012-03-07  Bruno Haible  <bruno@clisp.org>
41295         expm1l: Avoid compilation error on AIX.
41296         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
41297         AIX 5.2..7.1.
41299 2012-03-07  Bruno Haible  <bruno@clisp.org>
41301         expm1l: Don't override undeclared system function on IRIX 6.5.
41302         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
41303         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
41304         it exists. Set HAVE_DECL_EXPM1L.
41305         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
41306         HAVE_EXPM1L.
41307         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
41308         HAVE_EXPM1L.
41309         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
41311 2012-03-07  Bruno Haible  <bruno@clisp.org>
41313         remainderl: Don't override undeclared system function on IRIX 6.5.
41314         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
41315         HAVE_REMAINDERL.
41316         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
41317         declared when it exists. Set HAVE_DECL_REMAINDERL.
41318         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
41319         not HAVE_REMAINDERL.
41320         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
41321         HAVE_REMAINDERL.
41322         * doc/posix-functions/remainderl.texi: Mention missing declaration
41323         problem.
41325 2012-03-07  Bruno Haible  <bruno@clisp.org>
41327         rintf: Don't override undeclared system function on IRIX 6.5.
41328         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
41329         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
41330         exists. Set HAVE_DECL_RINTF.
41331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
41332         HAVE_RINTF.
41333         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
41334         HAVE_RINTF.
41335         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
41337 2012-03-07  Bruno Haible  <bruno@clisp.org>
41339         roundl: Avoid compilation error on AIX.
41340         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
41341         AIX 5.2..7.1.
41343 2012-03-07  Bruno Haible  <bruno@clisp.org>
41345         roundl: Don't override undeclared system function on IRIX 6.5.
41346         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
41347         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
41348         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41349         * modules/roundl (configure.ac): For replacement code, test
41350         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
41351         (Depends-on): Update conditions.
41352         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
41354 2012-03-07  Bruno Haible  <bruno@clisp.org>
41356         roundf: Don't override undeclared system function on IRIX 6.5.
41357         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
41358         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
41359         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41360         * modules/roundf (configure.ac): For replacement code, test
41361         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
41362         (Depends-on): Update conditions.
41363         * modules/roundf-ieee (Depends-on): Update conditions.
41364         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
41366 2012-03-07  Bruno Haible  <bruno@clisp.org>
41368         round: Don't override undeclared system function on IRIX 6.5.
41369         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
41370         argument.
41371         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
41372         also when it is not declared. Set HAVE_ROUND. For replacement code,
41373         test HAVE_ROUND, not HAVE_DECL_ROUND.
41374         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
41375         not HAVE_DECL_ROUND.
41376         (Depends-on): Update conditions.
41377         * modules/round-ieee (Depends-on): Update conditions.
41378         * doc/posix-functions/round.texi: Mention the IRIX problem.
41380 2012-03-07  Bruno Haible  <bruno@clisp.org>
41382         copysignf: Don't override undeclared system function on IRIX 6.5.
41383         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
41384         HAVE_COPYSIGNF.
41385         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
41386         declared when it exists. Set HAVE_DECL_COPYSIGNF.
41387         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
41388         not HAVE_COPYSIGNF.
41389         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
41390         HAVE_COPYSIGNF.
41391         * doc/posix-functions/copysignf.texi: Mention missing declaration
41392         problem.
41394 2012-03-07  Jim Meyering  <meyering@redhat.com>
41396         readtokens: add tests
41397         * modules/readtokens-tests: New file.
41398         * tests/test-readtokens.c: New file.
41400 2012-03-07  Jim Meyering  <meyering@redhat.com>
41402         quotearg: the module must now include quote.h
41403         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
41404         So must the module.
41405         * modules/quotearg (Files): Add quote.h.
41407 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
41409         readtokens: avoid core dumps with unusual calling patterns
41410         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
41411         * lib/readtokens.c: Include limits.h.
41412         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
41413         (readtoken): Don't cache the delimiters; the cache code was buggy
41414         if !delim && saved_delim, or if the new n_delim differs from the old.
41415         Also, it wasn't thread-safe.
41417 2012-03-07  Bruno Haible  <bruno@clisp.org>
41419         quote: Adhere to common module description layout.
41420         * modules/quote (Makefile.am): Add back empty section.
41422 2012-03-06  Akim Demaille  <demaille@gostai.com>
41424         quote: fuse into quotearg
41425         This patch is made for the benefit of Bison.
41426         quote does not leave the choice of the quoting style to the user.
41427         quoting_style provides poor customizability, yet quoting_options,
41428         which is very rich, is hidden inside quotearg.c.  So in order to
41429         allow quote customization, move its implementation to quotearg.c.
41430         * lib/quote.c: Remove.
41431         * modules/quote: Adjust.
41432         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
41433         warning: provide all the members of literal structs.
41434         (quote_quoting_options): New.
41435         (quote, quote_n): Import implementation from quote.c.
41436         * lib/quote.h: Import the comments from quote.c.
41437         (quote_quoting_options): New.
41439 2012-03-06  Bruno Haible  <bruno@clisp.org>
41441         Tests for module 'expm1l-ieee'.
41442         * modules/expm1l-ieee-tests: New file.
41443         * tests/test-expm1l-ieee.c: New file.
41445         New module 'expm1l-ieee'.
41446         * modules/expm1l-ieee: New file.
41448         Tests for module 'expm1f-ieee'.
41449         * modules/expm1f-ieee-tests: New file.
41450         * tests/test-expm1f-ieee.c: New file.
41452         New module 'expm1f-ieee'.
41453         * modules/expm1f-ieee: New file.
41455         Tests for module 'expm1-ieee'.
41456         * modules/expm1-ieee-tests: New file.
41457         * tests/test-expm1-ieee.c: New file.
41458         * tests/test-expm1-ieee.h: New file.
41460         New module 'expm1-ieee'.
41461         * modules/expm1-ieee: New file.
41462         * m4/expm1-ieee.m4: New file.
41463         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
41464         whether expm1 works with a minus zero argument. Replace it if not.
41465         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
41466         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
41467         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
41468         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
41469         (Depends-on): Update conditions.
41470         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
41471         AIX problem.
41473 2012-03-06  Bruno Haible  <bruno@clisp.org>
41475         Work around expm1f bug on IRIX 6.5.
41476         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
41477         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
41478         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
41479         not work.
41480         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
41481         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
41482         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
41483         (Depends-on): Update conditions.
41484         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
41486 2012-03-06  Bruno Haible  <bruno@clisp.org>
41488         Tests for module 'expm1l'.
41489         * modules/expm1l-tests: New file.
41490         * tests/test-expm1l.c: New file.
41492         New module 'expm1l'.
41493         * lib/math.in.h (expm1l): New declaration.
41494         * lib/expm1l.c: New file.
41495         * m4/expm1l.m4: New file.
41496         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
41497         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
41498         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
41499         * modules/expm1l: New file.
41500         * tests/test-math-c++.cc: Check the declaration of expm1l.
41501         * doc/posix-functions/expm1l.texi: Mention the new module.
41503 2012-03-06  Bruno Haible  <bruno@clisp.org>
41505         Tests for module 'expm1f'.
41506         * modules/expm1f-tests: New file.
41507         * tests/test-expm1f.c: New file.
41509         New module 'expm1f'.
41510         * lib/math.in.h (expm1f): New declaration.
41511         * lib/expm1f.c: New file.
41512         * m4/expm1f.m4: New file.
41513         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
41514         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
41515         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
41516         * modules/expm1f: New file.
41517         * tests/test-math-c++.cc: Check the declaration of expm1f.
41518         * doc/posix-functions/expm1f.texi: Mention the new module.
41520 2012-03-06  Bruno Haible  <bruno@clisp.org>
41522         Tests for module 'expm1'.
41523         * modules/expm1-tests: New file.
41524         * tests/test-expm1.c: New file.
41525         * tests/test-expm1.h: New file.
41527         New module 'expm1'.
41528         * lib/math.in.h (expm1): New declaration.
41529         * lib/expm1.c: New file.
41530         * m4/expm1.m4: New file.
41531         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
41532         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
41533         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
41534         * modules/expm1: New file.
41535         * tests/test-math-c++.cc: Check the declaration of expm1.
41536         * doc/posix-functions/expm1.texi: Mention the new module.
41538 2012-03-06  Bruno Haible  <bruno@clisp.org>
41540         math: Ensure declarations of math functions.
41541         * modules/acosf (Depends-on): Add 'extensions'.
41542         * modules/asinf (Depends-on): Likewise.
41543         * modules/atan2f (Depends-on): Likewise.
41544         * modules/atanf (Depends-on): Likewise.
41545         * modules/cbrt (Depends-on): Likewise.
41546         * modules/cbrtf (Depends-on): Likewise.
41547         * modules/cbrtl (Depends-on): Likewise.
41548         * modules/copysignf (Depends-on): Likewise.
41549         * modules/copysignl (Depends-on): Likewise.
41550         * modules/cosf (Depends-on): Likewise.
41551         * modules/coshf (Depends-on): Likewise.
41552         * modules/expf (Depends-on): Likewise.
41553         * modules/fabsf (Depends-on): Likewise.
41554         * modules/fabsl (Depends-on): Likewise.
41555         * modules/fmaf (Depends-on): Likewise.
41556         * modules/fmal (Depends-on): Likewise.
41557         * modules/fmodf (Depends-on): Likewise.
41558         * modules/fmodl (Depends-on): Likewise.
41559         * modules/frexpf (Depends-on): Likewise.
41560         * modules/frexpl (Depends-on): Likewise.
41561         * modules/hypot (Depends-on): Likewise.
41562         * modules/hypotf (Depends-on): Likewise.
41563         * modules/hypotl (Depends-on): Likewise.
41564         * modules/ldexpf (Depends-on): Likewise.
41565         * modules/ldexpl (Depends-on): Likewise.
41566         * modules/log10f (Depends-on): Likewise.
41567         * modules/log10l (Depends-on): Likewise.
41568         * modules/log1p (Depends-on): Likewise.
41569         * modules/logb (Depends-on): Likewise.
41570         * modules/logf (Depends-on): Likewise.
41571         * modules/modff (Depends-on): Likewise.
41572         * modules/modfl (Depends-on): Likewise.
41573         * modules/powf (Depends-on): Likewise.
41574         * modules/remainderf (Depends-on): Likewise.
41575         * modules/remainderl (Depends-on): Likewise.
41576         * modules/rintf (Depends-on): Likewise.
41577         * modules/rintl (Depends-on): Likewise.
41578         * modules/sinf (Depends-on): Likewise.
41579         * modules/sinhf (Depends-on): Likewise.
41580         * modules/sqrtf (Depends-on): Likewise.
41581         * modules/tanf (Depends-on): Likewise.
41582         * modules/tanhf (Depends-on): Likewise.
41583         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
41584         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
41585         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
41586         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
41587         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
41588         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
41589         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
41590         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
41591         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
41592         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
41593         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
41594         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
41595         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
41596         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
41597         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
41598         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
41599         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
41600         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
41601         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
41602         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
41603         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
41604         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
41605         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
41606         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
41607         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
41608         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
41609         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
41610         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
41611         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
41612         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
41613         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
41614         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
41615         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
41616         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
41617         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
41618         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
41619         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
41620         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
41621         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
41622         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
41623         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
41625 2012-03-06  Bruno Haible  <bruno@clisp.org>
41627         math: Update module names in warnings.
41628         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
41629         tanl): Use specific module name in warn-on-use warning.
41631 2012-03-06  Bruno Haible  <bruno@clisp.org>
41633         expl: Simplify computation.
41634         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
41636 2012-03-05  Bruno Haible  <bruno@clisp.org>
41638         exp* tests: More tests.
41639         * tests/test-exp.h: New file.
41640         * tests/test-exp.c: Include <float.h> and test-exp.h.
41641         (main): Invoke test_function.
41642         * tests/test-expf.c: Include <float.h> and test-exp.h.
41643         (main): Invoke test_function.
41644         * tests/test-expl.c: Include <float.h> and test-exp.h.
41645         (main): Invoke test_function.
41646         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
41647         (Makefile.am): Add randomd.c to test_exp_SOURCES.
41648         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
41649         (Makefile.am): Add randomf.c to test_expf_SOURCES.
41650         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
41651         (Depends-on): Add 'float'.
41652         (Makefile.am): Add randoml.c to test_expl_SOURCES.
41654         expl: Fix precision of computed result.
41655         * lib/expl.c: Completely rewritten.
41656         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
41657         (Maintainer): Add me.
41658         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
41660 2012-03-05  Bruno Haible  <bruno@clisp.org>
41662         cbrt* tests: More tests.
41663         * tests/test-cbrt.h: New file.
41664         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
41665         (main): Invoke test_function.
41666         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
41667         (main): Invoke test_function.
41668         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
41669         (main): Invoke test_function.
41670         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
41671         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
41672         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
41673         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
41674         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
41675         (Depends-on): Add 'float'.
41676         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
41678 2012-03-05  Bruno Haible  <bruno@clisp.org>
41680         hypot* tests: More tests.
41681         * tests/test-hypot.h: New file, partially extracted from
41682         tests/test-hypotl.c.
41683         * tests/test-hypot.c: Include test-hypot.h.
41684         (main): Invoke test_function.
41685         * tests/test-hypotf.c: Include test-hypot.h.
41686         (main): Invoke test_function.
41687         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
41688         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
41689         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
41690         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
41691         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
41692         tests/randomf.c.
41693         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
41694         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
41695         tests/randoml.c.
41696         (Depends-on): Add 'fpucw', 'float'.
41697         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
41699 2012-03-05  Bruno Haible  <bruno@clisp.org>
41701         fpucw: Doc about FreeBSD.
41702         * lib/fpucw.h: Mention FreeBSD in comments.
41704 2012-03-04  Bruno Haible  <bruno@clisp.org>
41706         sqrt* tests: More tests.
41707         * tests/test-sqrt.h: New file.
41708         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
41709         (main): Invoke test_function.
41710         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
41711         (main): Invoke test_function.
41712         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
41713         (main): Invoke test_function.
41714         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
41715         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
41716         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
41717         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
41718         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
41719         (Depends-on): Add 'float'.
41720         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
41722 2012-03-04  Bruno Haible  <bruno@clisp.org>
41724         remainder* tests: More tests.
41725         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
41726         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
41727         (main): Invoke test_function.
41728         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
41729         (main): Invoke test_function.
41730         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
41731         (main): Invoke test_function.
41732         * modules/remainder-tests (Files): Add tests/test-remainder.h,
41733         tests/randomd.c.
41734         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
41735         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
41736         tests/randomf.c.
41737         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
41738         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
41739         tests/randoml.c.
41740         (Depends-on): Add 'float'.
41741         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
41743 2012-03-04  Bruno Haible  <bruno@clisp.org>
41745         remainder, remainderf, remainderl: Fix computation for large quotients.
41746         * lib/remainder.c: Completely rewritten.
41747         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
41748         USE_FLOAT.
41749         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
41750         USE_LONG_DOUBLE.
41751         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
41752         isnand, isinf. Remove round, fma.
41753         * modules/remainderf (Files): Add lib/remainder.c.
41754         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
41755         Remove roundf, fmaf.
41756         * modules/remainderl (Files): Add lib/remainder.c.
41757         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
41758         isinf. Remove roundl, fmal.
41759         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
41760         REMAINDER_LIBM.
41761         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
41762         REMAINDERF_LIBM.
41763         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
41764         REMAINDERL_LIBM.
41766 2012-03-04  Bruno Haible  <bruno@clisp.org>
41768         fmod* tests: More tests.
41769         * tests/test-fmod.h (my_ldexp): New function.
41770         (test_function): Reduce amount of random numbers to test. Add tests
41771         of very large quotients x / y.
41772         * tests/test-fmod.c (MAX_EXP): New macro.
41773         * tests/test-fmodf.c (MAX_EXP): Likewise.
41774         * tests/test-fmodl.c (MAX_EXP): Likewise.
41776 2012-03-04  Bruno Haible  <bruno@clisp.org>
41778         fmod, fmodl: Fix computation for large quotients x / y.
41779         * lib/fmod.c: Completely rewritten.
41780         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
41781         USE_LONG_DOUBLE.
41782         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
41783         isnand. Remove fma.
41784         * modules/fmodl (Files): Add lib/fmod.c.
41785         (Depends-on): Add float, isfinite, signbit, fabsl,
41786         frexpl, ldexpl, isnanl. Remove fma.
41787         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
41788         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
41790 2012-03-03  Bruno Haible  <bruno@clisp.org>
41792         fmod* tests: More tests.
41793         * tests/test-fmod.h: New file.
41794         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
41795         (main): Invoke test_function.
41796         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
41797         (main): Invoke test_function.
41798         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
41799         (main): Invoke test_function.
41800         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
41801         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
41802         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
41803         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
41804         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
41805         (Depends-on): Add 'float'.
41806         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
41808 2012-03-03  Bruno Haible  <bruno@clisp.org>
41810         rint* tests: More tests.
41811         * tests/test-rint.h: New file, partially extracted from
41812         tests/test-rintl.c.
41813         * tests/test-rint.c: Include test-rint.h.
41814         (main): Invoke test_function.
41815         * tests/test-rintf.c: Include test-rint.h.
41816         (main): Invoke test_function.
41817         * tests/test-rintl.c: Include test-rint.h.
41818         (main): Invoke test_function.
41819         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
41820         (Makefile.am): Add randomd.c to test_rint_SOURCES.
41821         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
41822         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
41823         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
41824         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
41826 2012-03-03  Bruno Haible  <bruno@clisp.org>
41828         modf* tests: More tests.
41829         * tests/test-modf.h: New file.
41830         * tests/test-modf.c: Include <float.h> and test-modf.h.
41831         (main): Invoke test_function.
41832         * tests/test-modff.c: Include <float.h> and test-modf.h.
41833         (main): Invoke test_function.
41834         * tests/test-modfl.c: Include <float.h> and test-modf.h.
41835         (main): Invoke test_function.
41836         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
41837         (Makefile.am): Add randomd.c to test_modf_SOURCES.
41838         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
41839         (Makefile.am): Add randomf.c to test_modff_SOURCES.
41840         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
41841         (Depends-on): Add 'float'.
41842         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
41844 2012-03-03  Bruno Haible  <bruno@clisp.org>
41846         fabs* tests: More tests.
41847         * tests/test-fabs.h: New file, partially extracted from
41848         tests/test-fabsl.c.
41849         * tests/test-fabs.c (RANDOM): New macro.
41850         * tests/test-fabsf.c (RANDOM): New macro.
41851         * tests/test-fabsl.c (RANDOM): New macro.
41852         * modules/fabs-tests (Files): Add tests/randomd.c.
41853         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
41854         * modules/fabsf-tests (Files): Add tests/randomf.c.
41855         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
41856         * modules/fabsl-tests (Files): Add tests/randoml.c.
41857         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
41859 2012-03-03  Bruno Haible  <bruno@clisp.org>
41861         ldexp* tests: More tests.
41862         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
41863         * tests/test-ldexp.c (RANDOM): New macro.
41864         * tests/test-ldexpf.c (RANDOM): New macro.
41865         * tests/test-ldexpl.c (RANDOM): New macro.
41866         * modules/ldexp-tests (Files): Add tests/randomd.c.
41867         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
41868         * modules/ldexpf-tests (Files): Add tests/randomf.c.
41869         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
41870         * modules/ldexpl-tests (Files): Add tests/randoml.c.
41871         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
41873 2012-03-03  Bruno Haible  <bruno@clisp.org>
41875         frexp* tests: More tests.
41876         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
41877         * tests/test-frexp.c (RANDOM): New macro.
41878         * tests/test-frexpf.c (RANDOM): New macro.
41879         * tests/test-frexpl.c (RANDOM): New macro.
41880         * modules/frexp-tests (Files): Add tests/randomd.c.
41881         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
41882         * modules/frexpf-tests (Files): Add tests/randomf.c.
41883         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
41884         * modules/frexpl-tests (Files): Add tests/randoml.c.
41885         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
41887 2012-03-03  Bruno Haible  <bruno@clisp.org>
41889         Support for pseudo-random numbers in tests.
41890         * tests/randomf.c: New file.
41891         * tests/randomd.c: New file.
41892         * tests/randoml.c: New file.
41893         * tests/macros.h (randomf, randomd, randoml): New declarations.
41895 2012-03-03  Bruno Haible  <bruno@clisp.org>
41897         frexp* tests: Refactor.
41898         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
41899         * tests/test-frexp.c: Include and use it.
41900         * tests/test-frexpf.c: Likewise.
41901         * tests/test-frexpl.c: Likewise.
41902         * modules/frexp-tests (Files): Add tests/test-frexp.h.
41903         * modules/frexpf-tests (Files): Likewise.
41904         * modules/frexpl-tests (Files): Likewise.
41906 2012-03-02  Jim Meyering  <meyering@redhat.com>
41908         maint: don't specify XZ_OPT=-9ev in dist-related rule
41909         Using xz's -9 option is warranted only if you have a very large
41910         tarball (see xz's documentation for the sizes vs. presets), and
41911         requires 64MiB of memory at decompression time.
41912         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
41913         Automake's default of just "-e" is fine.  Override on a
41914         per-package basis by setting XZ_OPT e.g., in cfg.mk.
41916 2012-03-01  Eric Blake  <eblake@redhat.com>
41918         maint.mk: allow announcement for non-gnulib project
41919         * maint.mk (announcement): Skip gnulib version if not used.
41921 2012-03-01  Jim Meyering  <meyering@redhat.com>
41923         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
41924         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
41925         envvar settings cannot interfere.  Otherwise, setting envvars like
41926         prohibit=foo require=bar, etc. would cause spurious test failures.
41928 2012-03-01  Eric Blake  <eblake@redhat.com>
41930         maint.mk: add per-line exclusions to prohibitions
41931         * maint.mk (_sc_search_regexp): Add $exclude parameter.
41932         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
41933         (sc_const_long_option): Use it.
41935 2012-03-01  Bruno Haible  <bruno@clisp.org>
41937         Tests for module 'expl-ieee'.
41938         * modules/expl-ieee-tests: New file.
41939         * tests/test-expl-ieee.c: New file.
41941         New module 'expl-ieee'.
41942         * modules/expl-ieee: New file.
41944         Tests for module 'exp-ieee'.
41945         * modules/exp-ieee-tests: New file.
41946         * tests/test-exp-ieee.c: New file.
41948         New module 'exp-ieee'.
41949         * modules/exp-ieee: New file.
41951         Tests for module 'expf-ieee'.
41952         * modules/expf-ieee-tests: New file.
41953         * tests/test-expf-ieee.c: New file.
41954         * tests/test-exp-ieee.h: New file.
41956         New module 'expf-ieee'.
41957         * modules/expf-ieee: New file.
41959 2012-02-29  Bruno Haible  <bruno@clisp.org>
41961         cbrtl-ieee: Work around test failure on IRIX 6.5.
41962         * m4/cbrtl-ieee.m4: New file.
41963         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
41964         test whether cbrtl works with a minus zero argument. Replace it if not.
41965         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
41966         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
41967         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
41968         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
41969         (Depends-on): Update conditions.
41970         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
41971         m4/signbit.m4.
41972         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
41973         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
41974         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
41976         Tests for module 'cbrtl-ieee'.
41977         * modules/cbrtl-ieee-tests: New file.
41978         * tests/test-cbrtl-ieee.c: New file.
41980         New module 'cbrtl-ieee'.
41981         * modules/cbrtl-ieee: New file.
41983         Tests for module 'cbrt-ieee'.
41984         * modules/cbrt-ieee-tests: New file.
41985         * tests/test-cbrt-ieee.c: New file.
41987         New module 'cbrt-ieee'.
41988         * modules/cbrt-ieee: New file.
41990         Tests for module 'cbrtf-ieee'.
41991         * modules/cbrtf-ieee-tests: New file.
41992         * tests/test-cbrtf-ieee.c: New file.
41993         * tests/test-cbrt-ieee.h: New file.
41995         New module 'cbrtf-ieee'.
41996         * modules/cbrtf-ieee: New file.
41998 2012-02-29  Bruno Haible  <bruno@clisp.org>
42000         cbrtf: Work around bug in IRIX 6.5 system function.
42001         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
42002         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
42003         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
42004         work.
42005         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
42006         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
42007         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
42008         (Depends-on): Update conditions.
42009         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
42011 2012-02-29  Bruno Haible  <bruno@clisp.org>
42013         Tests for module 'cbrtl'.
42014         * modules/cbrtl-tests: New file.
42015         * tests/test-cbrtl.c: New file.
42017         New module 'cbrtl'.
42018         * lib/math.in.h (cbrtl): New declaration.
42019         * lib/cbrtl.c: New file.
42020         * m4/cbrtl.m4: New file.
42021         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
42022         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
42023         HAVE_DECL_CBRTL.
42024         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
42025         HAVE_DECL_CBRTL.
42026         * modules/cbrtl: New file.
42027         * tests/test-math-c++.cc: Check the declaration of cbrtl.
42028         * doc/posix-functions/cbrtl.texi: Mention the new module.
42030 2012-02-29  Bruno Haible  <bruno@clisp.org>
42032         Tests for module 'cbrtf'.
42033         * modules/cbrtf-tests: New file.
42034         * tests/test-cbrtf.c: New file.
42036         New module 'cbrtf'.
42037         * lib/math.in.h (cbrtf): New declaration.
42038         * lib/cbrtf.c: New file.
42039         * m4/cbrtf.m4: New file.
42040         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
42041         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
42042         HAVE_DECL_CBRTF.
42043         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
42044         HAVE_DECL_CBRTF.
42045         * modules/cbrtf: New file.
42046         * tests/test-math-c++.cc: Check the declaration of cbrtf.
42047         * doc/posix-functions/cbrtf.texi: Mention the new module.
42049 2012-02-29  Bruno Haible  <bruno@clisp.org>
42051         cbrt: Provide replacement on MSVC and Minix.
42052         * lib/math.in.h (cbrt): New declaration.
42053         * lib/cbrt.c: New file.
42054         * m4/cbrt.m4: New file.
42055         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
42056         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
42057         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
42058         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
42059         (Depends-on): Add dependencies.
42060         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
42061         * tests/test-math-c++.cc: Check the declaration of cbrt.
42062         * doc/posix-functions/cbrt.texi: Mention that the module provides a
42063         replacement.
42065 2012-02-29  Bruno Haible  <bruno@clisp.org>
42067         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
42068         * m4/hypotl-ieee.m4: New file.
42069         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
42070         test whether hypotl works with mixed NaN and Infinity arguments.
42071         Replace it if not.
42072         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
42073         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
42074         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
42075         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
42076         (Depends-on): Update conditions.
42077         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
42078         (Depends-on): Add hypot-ieee.
42079         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
42080         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
42082         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
42083         * m4/hypotf-ieee.m4: New file.
42084         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
42085         test whether hypotf works with mixed NaN and Infinity arguments.
42086         Replace it if not.
42087         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
42088         (Depends-on): Add hypot-ieee.
42089         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
42090         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
42092         hypot-ieee: Work around test failure on OSF/1 and native Windows.
42093         * lib/math.in.h (hypot): New declaration.
42094         * lib/hypot.c: New file.
42095         * m4/hypot-ieee.m4: New file.
42096         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
42097         whether hypot works with mixed NaN and Infinity arguments. Replace it
42098         if not.
42099         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
42100         REPLACE_HYPOT.
42101         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
42102         * modules/hypot (Files): Add lib/hypot.c.
42103         (Depends-on): Add dependencies.
42104         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
42105         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
42106         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
42107         * tests/test-math-c++.cc: Check the declaration of hypot.
42108         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
42110         Tests for module 'hypotl-ieee'.
42111         * modules/hypotl-ieee-tests: New file.
42112         * tests/test-hypotl-ieee.c: New file.
42114         New module 'hypotl-ieee'.
42115         * modules/hypotl-ieee: New file.
42117         Tests for module 'hypot-ieee'.
42118         * modules/hypot-ieee-tests: New file.
42119         * tests/test-hypot-ieee.c: New file.
42121         New module 'hypot-ieee'.
42122         * modules/hypot-ieee: New file.
42124         Tests for module 'hypotf-ieee'.
42125         * modules/hypotf-ieee-tests: New file.
42126         * tests/test-hypotf-ieee.c: New file.
42127         * tests/test-hypot-ieee.h: New file.
42129         New module 'hypotf-ieee'.
42130         * modules/hypotf-ieee: New file.
42132 2012-02-29  Bruno Haible  <bruno@clisp.org>
42134         Remove unused variables.
42135         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
42136         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
42137         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
42138         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
42140 2012-02-29  Eric Blake  <eblake@redhat.com>
42142         termios: fix pid_t always, not just for tcgetsid
42143         * doc/posix-headers/termios.texi (termios.h): Mention problem.
42144         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
42145         just when building tcgetsid.
42147 2012-02-29  Bruno Haible  <bruno@clisp.org>
42149         Tests for module 'hypotl'.
42150         * modules/hypotl-tests: New file.
42151         * tests/test-hypotl.c: New file.
42153         New module 'hypotl'.
42154         * lib/math.in.h (hypotl): New declaration.
42155         * lib/hypotl.c: New file.
42156         * m4/hypotl.m4: New file.
42157         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42158         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
42159         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
42160         * modules/hypotl: New file.
42161         * tests/test-math-c++.cc: Check the hypotl declaration.
42162         * doc/posix-functions/hypotl.texi: Mention the new module.
42164 2012-02-29  Eric Blake  <eblake@redhat.com>
42166         tcgetsid: fix cygwin header bug
42167         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
42169         docs: update cygwin progress
42170         * doc/posix-functions/llround.texi (llround): Added in cygwin
42171         1.7.8.
42172         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
42173         * doc/glibc-functions/program_invocation_name.texi
42174         (program_invocation_name): Likewise.
42175         * doc/glibc-functions/program_invocation_short_name.texi
42176         (program_invocation_short_name): Likewise.
42177         * doc/glibc-functions/madvise.texi (madvise): Likewise.
42178         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
42179         Likewise.
42180         * doc/posix-functions/pthread_spin_destroy.texi
42181         (pthread_spin_destroy): Added in cygwin 1.7.10.
42182         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
42183         Likewise.
42184         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
42185         Likewise.
42186         * doc/posix-functions/pthread_spin_trylock.texi
42187         (pthread_spin_trylock): Likewise.
42188         * doc/posix-functions/pthread_spin_unlock.texi
42189         (pthread_spin_unlock): Likewise.
42190         * doc/posix-functions/pthread_setschedprio.texi
42191         (pthread_setschedprio): Likewise.
42192         * doc/posix-functions/pthread_attr_getstack.texi
42193         (pthread_attr_getstack): Likewise.
42194         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
42195         (pthread_attr_getstackaddr): Likewise.
42196         * doc/glibc-functions/pthread_getattr_np.texi
42197         (pthread_getattr_np): Likewise.
42198         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
42199         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
42200         * doc/posix-functions/clock_settime.texi (clock_settime):
42201         Likewise.
42202         * doc/posix-functions/pthread_attr_getguardsize.texi
42203         (pthread_attr_getguardsize): Likewise.
42204         * doc/posix-functions/pthread_attr_setguardsize.texi
42205         (pthread_attr_setguardsize): Likewise.
42206         * doc/posix-functions/pthread_attr_setstack.texi
42207         (pthread_attr_setstack): Likewise.
42208         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
42209         (pthread_attr_setstackaddr): Likewise.
42210         * doc/posix-functions/clock_getcpuclockid.texi
42211         (clock_getcpuclockid): Likewise.
42212         * doc/posix-functions/pthread_getcpuclockid.texi
42213         (pthread_getcpuclockid): Likewise.
42214         * doc/glibc-functions/error.texi (error): Likewise.
42215         * doc/glibc-functions/error_at_line.texi (error_at_line):
42216         Likewise.
42217         * doc/glibc-functions/error_message_count.texi
42218         (error_message_count): Likewise.
42219         * doc/glibc-functions/error_one_per_line.texi
42220         (error_one_per_line): Likewise.
42221         * doc/glibc-functions/error_print_progname.texi
42222         (error_print_progname): Likewise.
42223         * doc/posix-functions/pthread_condattr_getclock.texi
42224         (pthread_condattr_getclock): Likewise.
42225         * doc/posix-functions/pthread_condattr_setclock.texi
42226         (pthread_condattr_setclock): Likewise.
42227         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
42228         Likewise.
42229         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
42230         * doc/glibc-functions/getpt.texi (getpt): Likewise.
42231         * doc/glibc-functions/get_current_dir_name.texi
42232         (get_current_dir_name): Likewise.
42233         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
42234         Likewise.
42235         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
42236         wrong return type.
42237         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
42238         1.7.11.
42240 2012-02-29  Bruno Haible  <bruno@clisp.org>
42242         Tests for module 'hypotf'.
42243         * modules/hypotf-tests: New file.
42244         * tests/test-hypotf.c: New file.
42246         New module 'hypotf'.
42247         * lib/math.in.h (hypotf): New declaration.
42248         * lib/hypotf.c: New file.
42249         * m4/hypotf.m4: New file.
42250         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
42251         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
42252         REPLACE_HYPOTF.
42253         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
42254         REPLACE_HYPOTF.
42255         * modules/hypotf: New file.
42256         * tests/test-math-c++.cc: Check the hypotf declaration.
42257         * doc/posix-functions/hypotf.texi: Mention the new module.
42259         hypot: Prepare for hypotf module.
42260         * m4/hypot.m4: New file.
42261         * modules/hypot (Files): Add m4/hypot.m4.
42262         (configure.ac): Invoke gl_FUNC_HYPOT.
42264 2012-02-29  Bruno Haible  <bruno@clisp.org>
42266         hypot tests: More tests.
42267         * tests/test-hypot.c: Include <float.h>.
42268         (main): Add tests about overflow and underflow.
42270 2012-02-29  Bruno Haible  <bruno@clisp.org>
42272         math code: Add comments.
42273         * lib/acosl.c: Add comment about related glibc source files.
42274         * lib/asinl.c: Likewise.
42275         * lib/atanl.c: Likewise.
42276         * lib/expl.c: Likewise.
42277         * lib/logl.c: Likewise.
42278         * lib/sincosl.c: Likewise.
42279         * lib/sinl.c: Likewise.
42280         * lib/tanl.c: Likewise.
42281         * lib/trigl.c: Likewise.
42282         * lib/cosl.c: Likewise. Fix comments.
42284 2012-02-28  Bruno Haible  <bruno@clisp.org>
42286         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
42287         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
42288         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
42289         HUGE_VALL are defined.
42290         (numeric_equald): Renamed from numeric_equal.
42291         (numeric_equalf, numeric_equall): New functions.
42292         (main): Check also HUGE_VALF, HUGE_VALL.
42293         * modules/math-tests (Files): Add tests/macros.h.
42294         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
42295         HUGE_VALL.
42297 2012-02-28  Bruno Haible  <bruno@clisp.org>
42299         doc: Move ISO C11 feature notes into POSIX chapters.
42300         * doc/posix-functions/aligned_alloc.texi: Renamed from
42301         doc/glibc-functions/aligned_alloc.texi.
42302         * doc/posix-functions/quick_exit.texi: Renamed from
42303         doc/glibc-functions/quick_exit.texi.
42304         * doc/posix-headers/uchar.texi: Renamed from
42305         doc/glibc-headers/uchar.texi.
42306         * doc/posix-functions/c16rtomb.texi: Renamed from
42307         doc/glibc-functions/c16rtomb.texi.
42308         * doc/posix-functions/c32rtomb.texi: Renamed from
42309         doc/glibc-functions/c32rtomb.texi.
42310         * doc/posix-functions/mbrtoc16.texi: Renamed from
42311         doc/glibc-functions/mbrtoc16.texi.
42312         * doc/posix-functions/mbrtoc32.texi: Renamed from
42313         doc/glibc-functions/mbrtoc32.texi.
42314         * doc/gnulib.texi: Update.
42315         (Glibc uchar.h): Remove section.
42316         Suggested by Eric Blake.
42318 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
42320         stdnoreturn: port to MSVC better
42321         MSVC standard headers use __declspec(noreturn), so #define noreturn
42322         to empty on that platform.  Reported by Bruno Haible in
42323         <http://lists.gnu.org/r/bug-gnulib/2012-02/msg00152.html>.
42324         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
42325         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
42327 2012-02-28  Bruno Haible  <bruno@clisp.org>
42329         doc: Mention new glibc headers and functions.
42330         * doc/glibc-headers/uchar.texi: New file.
42331         * doc/glibc-functions/aligned_alloc.texi: New file.
42332         * doc/glibc-functions/c16rtomb.texi: New file.
42333         * doc/glibc-functions/c32rtomb.texi: New file.
42334         * doc/glibc-functions/clock_adjtime.texi: New file.
42335         * doc/glibc-functions/fanotify_init.texi: New file.
42336         * doc/glibc-functions/fanotify_mark.texi: New file.
42337         * doc/glibc-functions/inet6_opt_append.texi: New file.
42338         * doc/glibc-functions/inet6_opt_find.texi: New file.
42339         * doc/glibc-functions/inet6_opt_finish.texi: New file.
42340         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
42341         * doc/glibc-functions/inet6_opt_init.texi: New file.
42342         * doc/glibc-functions/inet6_opt_next.texi: New file.
42343         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
42344         * doc/glibc-functions/inet6_rth_add.texi: New file.
42345         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
42346         * doc/glibc-functions/inet6_rth_init.texi: New file.
42347         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
42348         * doc/glibc-functions/inet6_rth_segments.texi: New file.
42349         * doc/glibc-functions/inet6_rth_space.texi: New file.
42350         * doc/glibc-functions/login.texi: New file.
42351         * doc/glibc-functions/mbrtoc16.texi: New file.
42352         * doc/glibc-functions/mbrtoc32.texi: New file.
42353         * doc/glibc-functions/name_to_handle_at.texi: New file.
42354         * doc/glibc-functions/ntp_gettimex.texi: New file.
42355         * doc/glibc-functions/open_by_handle_at.texi: New file.
42356         * doc/glibc-functions/prlimit.texi: New file.
42357         * doc/glibc-functions/process_vm_readv.texi: New file.
42358         * doc/glibc-functions/process_vm_writev.texi: New file.
42359         * doc/glibc-functions/recvmmsg.texi: New file.
42360         * doc/glibc-functions/scandirat.texi: New file.
42361         * doc/glibc-functions/sendmmsg.texi: New file.
42362         * doc/glibc-functions/setns.texi: New file.
42363         * doc/glibc-functions/timespec_get.texi: New file.
42364         * doc/gnulib.texi: Include them.
42365         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
42366         sections.
42367         Reported by Eric Blake.
42369 2012-02-28  Bruno Haible  <bruno@clisp.org>
42371         Avoid compilation errors with MSVC option -fp:strict.
42372         * lib/floor.c: Use MSVC specific pragma fenv_access.
42373         * lib/ceil.c: Likewise.
42374         * lib/trunc.c: Likewise.
42375         * lib/round.c: Likewise.
42376         * lib/rint.c: Likewise.
42377         * lib/fma.c: Likewise.
42378         * lib/integer_length.c: Likewise.
42379         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42380         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42381         * tests/test-floor2.c: Likewise.
42382         * tests/test-floorf2.c: Likewise.
42383         * tests/test-ceil2.c: Likewise.
42384         * tests/test-ceilf2.c: Likewise.
42385         * tests/test-trunc2.c: Likewise.
42386         * tests/test-truncf2.c: Likewise.
42387         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
42389 2012-02-27  Bruno Haible  <bruno@clisp.org>
42391         Tests for module 'sqrtl-ieee'.
42392         * modules/sqrtl-ieee-tests: New file.
42393         * tests/test-sqrtl-ieee.c: New file.
42395         New module 'sqrtl-ieee'.
42396         * modules/sqrtl-ieee: New file.
42398         Tests for module 'sqrt-ieee'.
42399         * modules/sqrt-ieee-tests: New file.
42400         * tests/test-sqrt-ieee.c: New file.
42402         New module 'sqrt-ieee'.
42403         * modules/sqrt-ieee: New file.
42405         Tests for module 'sqrtf-ieee'.
42406         * modules/sqrtf-ieee-tests: New file.
42407         * tests/test-sqrtf-ieee.c: New file.
42408         * tests/test-sqrt-ieee.h: New file.
42410         New module 'sqrtf-ieee'.
42411         * modules/sqrtf-ieee: New file.
42413 2012-02-27  Bruno Haible  <bruno@clisp.org>
42415         remainderl-ieee: Work around test failure on OSF/1.
42416         * m4/remainderl-ieee.m4: New file.
42417         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
42418         present, test whether remainderl works with a zero second argument.
42419         Replace it if not.
42420         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
42421         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
42422         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
42423         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
42424         (Depends-on): Update conditions.
42425         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
42426         (Depends-on): Add remainder-ieee.
42427         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
42428         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
42429         module.
42431         remainderf-ieee: Work around test failure on OSF/1.
42432         * m4/remainderf-ieee.m4: New file.
42433         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
42434         present, test whether remainderf works with a zero second argument.
42435         Replace it if not.
42436         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
42437         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
42438         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
42439         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
42440         (Depends-on): Update conditions.
42441         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
42442         (Depends-on): Add remainder-ieee.
42443         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
42444         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
42445         module.
42447         remainder-ieee: Work around test failure on OSF/1.
42448         * m4/remainder-ieee.m4: New file.
42449         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
42450         present, test whether remainder works with a zero second argument.
42451         Replace it if not.
42452         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
42453         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
42454         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
42455         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
42456         (Depends-on): Update dependencies.
42457         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
42458         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
42459         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
42461         Tests for module 'remainderl-ieee'.
42462         * modules/remainderl-ieee-tests: New file.
42463         * tests/test-remainderl-ieee.c: New file.
42465         New module 'remainderl-ieee'.
42466         * modules/remainderl-ieee: New file.
42468         Tests for module 'remainder-ieee'.
42469         * modules/remainder-ieee-tests: New file.
42470         * tests/test-remainder-ieee.c: New file.
42472         New module 'remainder-ieee'.
42473         * modules/remainder-ieee: New file.
42475         Tests for module 'remainderf-ieee'.
42476         * modules/remainderf-ieee-tests: New file.
42477         * tests/test-remainderf-ieee.c: New file.
42478         * tests/test-remainder-ieee.h: New file.
42480         New module 'remainderf-ieee'.
42481         * modules/remainderf-ieee: New file.
42483 2012-02-27  Bruno Haible  <bruno@clisp.org>
42485         modff, modfl: Fix configure syntax error.
42486         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
42487         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
42489 2012-02-27  Bruno Haible  <bruno@clisp.org>
42491         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
42492         * m4/fmodl-ieee.m4: New file.
42493         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
42494         whether fmodl works with zero arguments. Replace it if not.
42495         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
42496         (Depends-on): Add fmod-ieee.
42497         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
42498         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
42500         fmodf-ieee: Work around test failure on OSF/1.
42501         * m4/fmodf-ieee.m4: New file.
42502         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
42503         whether fmodf works with zero arguments. Replace it if not.
42504         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
42505         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
42506         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
42507         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
42508         (Depends-on): Update dependencies.
42509         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
42510         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
42511         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
42513         fmodf-ieee: Work around test failure on MSVC 9.
42514         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
42515         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
42517         fmod-ieee: Work around test failures on OSF/1, mingw.
42518         * m4/fmod-ieee.m4: New file.
42519         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
42520         whether fmod works with zero arguments. Replace it if not.
42521         * lib/math.in.h (fmod): New declaration.
42522         * lib/fmod.c: New file.
42523         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
42524         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
42525         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
42526         * modules/fmod (Files): Add lib/fmod.c.
42527         (Depends-on): Add math, isinf, trunc, fma.
42528         (configure.ac): Arrange to compile lib/fmod.c if needed.
42529         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
42530         m4/signbit.m4.
42531         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
42532         * tests/test-math-c++.cc: Check the declaration of fmod.
42533         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
42535         fmodl-ieee: Fix test failures.
42536         * lib/fmodl.c (fmodl): Treat Inf specially.
42537         * modules/fmodl (Depends-on): Add isinf.
42539         Tests for module 'fmodl-ieee'.
42540         * modules/fmodl-ieee-tests: New file.
42541         * tests/test-fmodl-ieee.c: New file.
42543         New module 'fmodl-ieee'.
42544         * modules/fmodl-ieee: New file.
42546         Tests for module 'fmod-ieee'.
42547         * modules/fmod-ieee-tests: New file.
42548         * tests/test-fmod-ieee.c: New file.
42550         New module 'fmod-ieee'.
42551         * modules/fmod-ieee: New file.
42553         Tests for module 'fmodf-ieee'.
42554         * modules/fmodf-ieee-tests: New file.
42555         * tests/test-fmodf-ieee.c: New file.
42556         * tests/test-fmod-ieee.h: New file.
42558         New module 'fmodf-ieee'.
42559         * modules/fmodf-ieee: New file.
42561 2012-02-27  Bruno Haible  <bruno@clisp.org>
42563         Tests for module 'rintl-ieee'.
42564         * modules/rintl-ieee-tests: New file.
42565         * tests/test-rintl-ieee.c: New file.
42567         New module 'rintl-ieee'.
42568         * modules/rintl-ieee: New file.
42570         Tests for module 'rint-ieee'.
42571         * modules/rint-ieee-tests: New file.
42572         * tests/test-rint-ieee.c: New file.
42574         New module 'rint-ieee'.
42575         * modules/rint-ieee: New file.
42577         Tests for module 'rintf-ieee'.
42578         * modules/rintf-ieee-tests: New file.
42579         * tests/test-rintf-ieee.c: New file.
42580         * tests/test-rint-ieee.h: New file.
42582         New module 'rintf-ieee'.
42583         * modules/rintf-ieee: New file.
42585 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
42587         regex: re_search etc. should return -2 when memory exhausted
42588         This bug was uncovered when testing 'grep'.  Without the fix,
42589         re_search and friends return -1 when memory is exhausted, but -1
42590         means no match, and this causes grep to falsely report no-match
42591         instead of memory-exhaustion.  See
42592         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
42593         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
42594         trouble; this can occur if re_search_internal ran out of memory.
42596 2012-02-26  Bruno Haible  <bruno@clisp.org>
42598         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
42599         * m4/modfl-ieee.m4: New file.
42600         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
42601         whether modfl works with Inf. Replace it if not.
42602         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
42603         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
42604         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
42605         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
42606         (Depends-on): Update dependencies.
42607         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
42608         m4/signbit.m4.
42609         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
42610         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
42612         modfl-ieee: Fix dependencies.
42613         * modules/modfl-ieee (Depends-on): Add modf-ieee.
42615         modfl-ieee: Fix test failures.
42616         * lib/modfl.c (modfl): Treat NaN and Inf specially.
42617         * modules/modfl (Depends-on): Add isfinite, isinf.
42619         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
42620         * m4/modff-ieee.m4: New file.
42621         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
42622         whether modff works with NaN and Inf. Replace it if not.
42623         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
42624         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
42625         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
42626         * modules/modff (configure.ac): Consider REPLACE_MODFF.
42627         (Depends-on): Update dependencies.
42628         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
42629         m4/signbit.m4.
42630         (Depends-on): Add modf-ieee.
42631         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
42632         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
42634         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
42635         * m4/modf-ieee.m4: New file.
42636         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
42637         whether modf works with NaN and Inf. Replace it if not.
42638         * lib/math.in.h (modf): New declaration.
42639         * lib/modf.c: New file.
42640         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
42641         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
42642         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
42643         * modules/modf (Files): Add lib/modf.c.
42644         (Depends-on): Add math, isfinite, trunc, isinf.
42645         (configure.ac): Addrange to compile lib/modf.c if needed.
42646         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
42647         m4/signbit.m4.
42648         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
42649         * tests/test-math-c++.cc: Check the declaration of modf.
42650         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
42652         Tests for module 'modfl-ieee'.
42653         * modules/modfl-ieee-tests: New file.
42654         * tests/test-modfl-ieee.c: New file.
42656         New module 'modfl-ieee'.
42657         * modules/modfl-ieee: New file.
42659         Tests for module 'modf-ieee'.
42660         * modules/modf-ieee-tests: New file.
42661         * tests/test-modf-ieee.c: New file.
42663         New module 'modf-ieee'.
42664         * modules/modf-ieee: New file.
42666         Tests for module 'modff-ieee'.
42667         * modules/modff-ieee-tests: New file.
42668         * tests/test-modff-ieee.c: New file.
42669         * tests/test-modf-ieee.h: New file.
42671         New module 'modff-ieee'.
42672         * modules/modff-ieee: New file.
42674 2012-02-26  Bruno Haible  <bruno@clisp.org>
42676         Tests for module 'fabsl-ieee'.
42677         * modules/fabsl-ieee-tests: New file.
42678         * tests/test-fabsl-ieee.c: New file.
42680         New module 'fabsl-ieee'.
42681         * modules/fabsl-ieee: New file.
42683         Tests for module 'fabs-ieee'.
42684         * modules/fabs-ieee-tests: New file.
42685         * tests/test-fabs-ieee.c: New file.
42687         New module 'fabs-ieee'.
42688         * modules/fabs-ieee: New file.
42690         Tests for module 'fabsf-ieee'.
42691         * modules/fabsf-ieee-tests: New file.
42692         * tests/test-fabsf-ieee.c: New file.
42693         * tests/test-fabs-ieee.h: New file.
42695         New module 'fabsf-ieee'.
42696         * modules/fabsf-ieee: New file.
42698 2012-02-26  Bruno Haible  <bruno@clisp.org>
42700         Tests for module 'fmal-ieee'.
42701         * modules/fmal-ieee-tests: New file.
42702         * tests/test-fmal-ieee.c: New file.
42704         New module 'fmal-ieee'.
42705         * modules/fmal-ieee: New file.
42707         Tests for module 'fma-ieee'.
42708         * modules/fma-ieee-tests: New file.
42709         * tests/test-fma-ieee.c: New file.
42711         New module 'fma-ieee'.
42712         * modules/fma-ieee: New file.
42714         Tests for module 'fmaf-ieee'.
42715         * modules/fmaf-ieee-tests: New file.
42716         * tests/test-fmaf-ieee.c: New file.
42717         * tests/test-fma-ieee.h: New file.
42719         New module 'fmaf-ieee'.
42720         * modules/fmaf-ieee: New file.
42722 2012-02-26  Bruno Haible  <bruno@clisp.org>
42724         Tests for module 'ldexpl-ieee'.
42725         * modules/ldexpl-ieee-tests: New file.
42726         * tests/test-ldexpl-ieee.c: New file.
42728         New module 'ldexpl-ieee'.
42729         * modules/ldexpl-ieee: New file.
42731         Tests for module 'ldexp-ieee'.
42732         * modules/ldexp-ieee-tests: New file.
42733         * tests/test-ldexp-ieee.c: New file.
42735         New module 'ldexp-ieee'.
42736         * modules/ldexp-ieee: New file.
42738         Tests for module 'ldexpf-ieee'.
42739         * modules/ldexpf-ieee-tests: New file.
42740         * tests/test-ldexpf-ieee.c: New file.
42741         * tests/test-ldexp-ieee.h: New file.
42743         New module 'ldexpf-ieee'.
42744         * modules/ldexpf-ieee: New file.
42746 2012-02-26  Bruno Haible  <bruno@clisp.org>
42748         Refactor frexp*-ieee tests.
42749         * tests/test-frexp-ieee.h: New file.
42750         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
42751         (main): Just call test_function.
42752         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
42753         (main): Just call test_function.
42754         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
42755         (main): Just call test_function.
42756         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
42757         * modules/frexp-ieee-tests (Files): Likewise.
42758         * modules/frexpl-ieee-tests (Files): Likewise.
42760         Tests for module 'frexpl-ieee'.
42761         * modules/frexpl-ieee-tests: New file.
42762         * tests/test-frexpl-ieee.c: New file.
42764         New module 'frexpl-ieee'.
42765         * modules/frexpl-ieee: New file.
42767         Tests for module 'frexp-ieee'.
42768         * modules/frexp-ieee-tests: New file.
42769         * tests/test-frexp-ieee.c: New file.
42771         New module 'frexp-ieee'.
42772         * modules/frexp-ieee: New file.
42774         Tests for module 'frexpf-ieee'.
42775         * modules/frexpf-ieee-tests: New file.
42776         * tests/test-frexpf-ieee.c: New file.
42778         New module 'frexpf-ieee'.
42779         * modules/frexpf-ieee: New file.
42781 2012-02-26  Bruno Haible  <bruno@clisp.org>
42783         roundl-ieee tests: More tests.
42784         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42785         (main): Add tests for [MX] shaded specification in POSIX.
42786         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42787         (Depends-on): Add isnanl-nolibm.
42789         round-ieee tests: More tests.
42790         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42791         (main): Add tests for [MX] shaded specification in POSIX.
42792         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42793         (Depends-on): Add isnand-nolibm.
42795         roundf-ieee tests: More tests.
42796         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42797         (main): Add tests for [MX] shaded specification in POSIX.
42798         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42799         (Depends-on): Add isnanf-nolibm.
42801         truncl-ieee tests: More tests.
42802         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42803         (main): Add tests for [MX] shaded specification in POSIX.
42804         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42805         (Depends-on): Add isnanl-nolibm.
42807         trunc-ieee tests: More tests.
42808         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42809         (main): Add tests for [MX] shaded specification in POSIX.
42810         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42811         (Depends-on): Add isnand-nolibm.
42813         truncf-ieee tests: More tests.
42814         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42815         (main): Add tests for [MX] shaded specification in POSIX.
42816         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42817         (Depends-on): Add isnanf-nolibm.
42819         ceill-ieee tests: More tests.
42820         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42821         (main): Add tests for [MX] shaded specification in POSIX.
42822         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42823         (Depends-on): Add isnanl-nolibm.
42825         ceil-ieee tests: More tests.
42826         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42827         (main): Add tests for [MX] shaded specification in POSIX.
42828         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42829         (Depends-on): Add isnand-nolibm.
42831         ceilf-ieee tests: More tests.
42832         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42833         (main): Add tests for [MX] shaded specification in POSIX.
42834         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42835         (Depends-on): Add isnanf-nolibm.
42837         floorl-ieee tests: More tests.
42838         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
42839         (main): Add tests for [MX] shaded specification in POSIX.
42840         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42841         (Depends-on): Add isnanl-nolibm.
42843         floor-ieee tests: More tests.
42844         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
42845         (main): Add tests for [MX] shaded specification in POSIX.
42846         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42847         (Depends-on): Add isnand-nolibm.
42849         floorf-ieee tests: More tests.
42850         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
42851         (main): Add tests for [MX] shaded specification in POSIX.
42852         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
42853         (Depends-on): Add isnanf-nolibm.
42855 2012-02-26  Bruno Haible  <bruno@clisp.org>
42857         fpieee: More comments.
42858         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
42860 2012-02-25  Bruno Haible  <bruno@clisp.org>
42862         Tests for module 'log10l'.
42863         * modules/log10l-tests: New file.
42864         * tests/test-log10l.c: New file.
42865         * tests/test-math-c++.cc: Check the declaration of log10l.
42867         New module 'log10l'.
42868         * lib/math.in.h (log10l): New declaration.
42869         * lib/log10l.c: New file.
42870         * m4/log10l.m4: New file.
42871         * modules/log10l: New file.
42872         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
42873         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
42874         HAVE_DECL_LOG10L.
42875         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
42876         HAVE_DECL_LOG10L.
42877         * doc/posix-functions/log10l.texi: Mention the new module.
42879 2012-02-25  Bruno Haible  <bruno@clisp.org>
42881         fmodl, remainder*: Avoid wrong results due to rounding errors.
42882         * lib/fmodl.c (fmodl): Correct the result if it is not within the
42883         expected bounds.
42884         * lib/remainderf.c (remainderf): Likewise.
42885         * lib/remainder.c (remainder): Likewise.
42886         * lib/remainderl.c (remainderl): Likewise.
42888 2012-02-25  Bruno Haible  <bruno@clisp.org>
42890         Tests for module 'remainderl'.
42891         * modules/remainderl-tests: New file.
42892         * tests/test-remainderl.c: New file.
42893         * tests/test-math-c++.cc: Check the declaration of remainderl.
42895         New module 'remainderl'.
42896         * lib/math.in.h (remainderl): New declaration.
42897         * lib/remainderl.c: New file.
42898         * m4/remainderl.m4: New file.
42899         * modules/remainderl: New file.
42900         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
42901         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
42902         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
42903         HAVE_REMAINDERL.
42904         * doc/posix-functions/remainderl.texi: Mention the new module.
42906 2012-02-25  Bruno Haible  <bruno@clisp.org>
42908         Tests for module 'remainderf'.
42909         * modules/remainderf-tests: New file.
42910         * tests/test-remainderf.c: New file.
42911         * tests/test-math-c++.cc: Check the declaration of remainderf.
42913         New module 'remainderf'.
42914         * lib/math.in.h (remainderf): New declaration.
42915         * lib/remainderf.c: New file.
42916         * m4/remainderf.m4: New file.
42917         * modules/remainderf: New file.
42918         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
42919         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
42920         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
42921         HAVE_REMAINDERF.
42922         * doc/posix-functions/remainderf.texi: Mention the new module.
42924 2012-02-25  Bruno Haible  <bruno@clisp.org>
42926         remainder: Support for MSVC.
42927         * lib/math.in.h (remainder): New declaration.
42928         * lib/remainder.c: New file.
42929         * m4/remainder.m4: New file.
42930         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
42931         (Depends-on): Add math, round, fma.
42932         (configure.ac): Use results of gl_FUNC_REMAINDER.
42933         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
42934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
42935         HAVE_DECL_REMAINDER.
42936         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
42937         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
42938         * tests/test-math-c++.cc: Check the declaration of remainder.
42939         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
42940         problems are fixed.
42942 2012-02-25  Bruno Haible  <bruno@clisp.org>
42944         Tests for module 'fmodl'.
42945         * modules/fmodl-tests: New file.
42946         * tests/test-fmodl.c: New file.
42947         * tests/test-math-c++.cc: Check the declaration of fmodl.
42949         New module 'fmodl'.
42950         * lib/math.in.h (fmodl): New declaration.
42951         * lib/fmodl.c: New file.
42952         * m4/fmodl.m4: New file.
42953         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
42954         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
42955         REPLACE_FMODL.
42956         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
42957         REPLACE_FMODL.
42958         * modules/fmodl: New file.
42959         * doc/posix-functions/fmodl.texi: Mention the new module.
42961 2012-02-25  Bruno Haible  <bruno@clisp.org>
42963         Tests for module 'modfl'.
42964         * modules/modfl-tests: New file.
42965         * tests/test-modfl.c: New file.
42966         * tests/test-math-c++.cc: Check the declaration of modfl.
42968         New module 'modfl'.
42969         * lib/math.in.h (modfl): New declaration.
42970         * lib/modfl.c: New file.
42971         * m4/modfl.m4: New file.
42972         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
42973         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
42974         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
42975         * modules/modfl: New file.
42976         * doc/posix-functions/modfl.texi: Mention the new module.
42978 2012-02-25  Bruno Haible  <bruno@clisp.org>
42980         Tests for module 'fabsl'.
42981         * modules/fabsl-tests: New file.
42982         * tests/test-fabsl.c: New file.
42983         * tests/test-math-c++.cc: Check the declaration of fabsl.
42985         New module 'fabsl'.
42986         * lib/math.in.h (fabsl): New declaration.
42987         * lib/fabsl.c: New file.
42988         * m4/fabsl.m4: New file.
42989         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
42990         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
42991         REPLACE_FABSL.
42992         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
42993         REPLACE_FABSL.
42994         * modules/fabsl: New file.
42995         * doc/posix-functions/fabsl.texi: Mention the new module.
42997 2012-02-25  Bruno Haible  <bruno@clisp.org>
42999         fabs tests: More tests.
43000         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
43001         (zero): New variable.
43002         (main): Add tests for signed zero.
43003         * modules/fabs-tests (Files): Add tests/minus-zero.h.
43005         fabsf tests: More tests.
43006         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
43007         (zero): New variable.
43008         (main): Add tests for signed zero.
43009         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
43011 2012-02-24  Bruno Haible  <bruno@clisp.org>
43013         atanl: Provide function definition on MSVC.
43014         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
43015         function pointer.
43016         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
43018 2012-02-24  Bruno Haible  <bruno@clisp.org>
43020         acosl: Provide function definition on MSVC.
43021         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
43022         function pointer.
43023         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
43025 2012-02-24  Bruno Haible  <bruno@clisp.org>
43027         asinl: Provide function definition on MSVC.
43028         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
43029         function pointer.
43030         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
43032 2012-02-24  Bruno Haible  <bruno@clisp.org>
43034         tanl: Provide function definition on MSVC.
43035         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
43036         function pointer.
43037         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
43039 2012-02-24  Bruno Haible  <bruno@clisp.org>
43041         cosl: Provide function definition on MSVC.
43042         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
43043         function pointer.
43044         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
43046 2012-02-24  Bruno Haible  <bruno@clisp.org>
43048         sinl: Provide function definition on MSVC.
43049         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
43050         function pointer.
43051         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
43053 2012-02-24  Bruno Haible  <bruno@clisp.org>
43055         logl: Provide function definition on MSVC.
43056         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
43057         function pointer.
43058         * lib/math.in.h (logl): Undefine if it does not exist as a function.
43060 2012-02-24  Bruno Haible  <bruno@clisp.org>
43062         expl: Provide function definition on MSVC.
43063         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
43064         function pointer.
43065         * lib/math.in.h (expl): Undefine if it does not exist as a function.
43067 2012-02-24  Bruno Haible  <bruno@clisp.org>
43069         sqrtl: Provide function definition on MSVC.
43070         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
43071         a function pointer.
43072         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
43074 2012-02-24  Bruno Haible  <bruno@clisp.org>
43076         ceill: Provide function definition on MSVC.
43077         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
43078         used as a function pointer.
43079         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
43081 2012-02-24  Bruno Haible  <bruno@clisp.org>
43083         floorl: Provide function definition on MSVC.
43084         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
43085         used as a function pointer.
43086         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
43088 2012-02-24  Bruno Haible  <bruno@clisp.org>
43090         ceilf: Provide function definition on MSVC.
43091         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
43092         used as a function pointer.
43093         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
43095 2012-02-24  Bruno Haible  <bruno@clisp.org>
43097         floorf: Provide function definition on MSVC.
43098         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
43099         used as a function pointer.
43100         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
43102 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
43104         stdnoreturn: new module
43105         This implements a replacement for C11's <stdnoreturn.h>.
43106         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
43107         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
43108         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
43109         * tests/test-stdnoreturn.c: New files.
43111 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
43113         regex: fix false multibyte matches in some regular expressions
43114         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
43115         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
43116         * lib/regex_internal.c (re_string_skip_chars):
43117         Fix miscomputation of remain_len that may cause incomplete
43118         multi-byte character and false match.
43120 2012-02-24  Jim Meyering  <meyering@redhat.com>
43122         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
43123         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
43124         uses with "==" *before* the call, e.g., 0 == strcmp (...)
43125         Remove now-unnecessary str''cmp obfuscation.
43126         Suggested by Akim Demaille.
43128 2012-02-24  Bruno Haible  <bruno@clisp.org>
43130         streq: Rename macro.
43131         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
43132         * NEWS: Mention the change.
43133         * lib/mbrtowc.c (mbrtowc): Update.
43134         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
43135         * lib/wcwidth.c (wcwidth): Update.
43136         Suggested by Akim Demaille and Jim Meyering.
43138 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
43140         regex: fix typo in definition of MIN
43141         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
43142         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
43144 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43145             Bruno Haible  <bruno@clisp.org>
43147         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
43148         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
43149         entries into a stack-allocated buffer directly.
43150         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
43152 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
43153             Bruno Haible  <bruno@clisp.org>
43155         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
43157          - There were several instances of this pattern:
43159              for (;;) {
43160                n = acl (f, GETACLCNT, 0, NULL);
43161                [ allocate an array A of size N ]
43162                if (acl (f, GETACL, n, a) == n)
43163                  break;
43164              }
43166            This loop might never terminate if some other process is constantly
43167            manipulating the file's ACL.  The loop should be rewritten to
43168            terminate.
43170          - The acl (... GETACLNT ...) call is merely an optimization; its value
43171            is merely a hint as to how big to make the array.  A better
43172            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
43173            and just guess a reasonably-big size, growing the size and trying
43174            again if it's not large enough.  This guarantees termination, and
43175            saves a system call.
43177         * lib/acl-internal.h: Include <limits.h>.
43178         (MIN, SIZE_MAX): New macros.
43179         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
43180         a stack-allocated buffer, and use malloc if it does not fit. Don't
43181         use GETACLCNT.
43182         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43184 2012-02-19  Bruno Haible  <bruno@clisp.org>
43186         acl: Fix endless loop on Solaris with vxfs.
43187         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
43188         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
43189         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
43190         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
43191         * tests/test-sameacls.c (main)[Solaris]: Likewise.
43192         Reported by Bill Jones in
43193         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
43195 2012-02-19  Bruno Haible  <bruno@clisp.org>
43197         acl: Fix copy-acl test failure on Solaris 11.0.
43198         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
43199         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
43200         that this function returns 0 in some more cases.
43202 2012-02-19  Bruno Haible  <bruno@clisp.org>
43204         acl: Update doc references.
43205         * doc/acl-resources.txt: Update links to Solaris documentation.
43207 2012-02-19  Bruno Haible  <bruno@clisp.org>
43209         Fix test failure in many locales on Solaris 11.
43210         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
43211         'tr' arguments.
43212         * tests/test-pipe-filter-ii1.c (main): Likewise.
43213         * build-aux/bootstrap (check_versions): Run 'tr' command with range
43214         expressions in the C locale.
43215         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
43216         * m4/host-os.m4 (gl_HOST_OS): Likewise.
43218 2012-02-19  Bruno Haible  <bruno@clisp.org>
43220         gnulib-tool: Improve usage message.
43221         * gnulib-tool (func_usage): Move doc of --help and --version to the
43222         section "Operation modes".
43224 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
43226         README-release: make it easier to execute commands
43227         * top/README-release: break commands out on to separate lines.
43229 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
43231         GNUmakefile: simplify detection of unconfigured trees
43232         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
43233         whether the tree make is being run from is already configured or
43234         not.  Related simplifications.
43236 2012-02-13  Simon Josefsson  <simon@josefsson.org>
43238         * gnulib-tool (func_usage): Document --help and --version.
43240 2012-02-11  Jim Meyering  <meyering@redhat.com>
43242         bootstrap: don't exit 0 upon gnulib-tool failure
43243         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
43244         its exit status, not 0.
43246 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
43248         README-release: various improvements
43249         * top/README-release: Give a command to push changes for the
43250         release.  Add "distcheck" to list of other pre-release checks.
43251         Fix instance of "make stable" which should be "make TYPE".
43253 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
43255         maint: replace FSF snail-mail addresses with URLs
43256         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
43257         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
43258         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
43259         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
43260         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
43261         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
43262         * lib/check-version.c, lib/check-version.h, lib/config.charset:
43263         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
43264         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
43265         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
43266         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
43267         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
43268         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
43269         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
43270         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
43271         * lib/glthread/thread.c, lib/glthread/thread.h:
43272         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
43273         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
43274         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
43275         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
43276         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
43277         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
43278         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
43279         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
43280         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
43281         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
43282         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
43283         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
43284         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
43285         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
43286         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
43287         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
43288         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
43289         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
43290         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
43291         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
43292         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
43293         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
43294         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
43295         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
43296         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
43297         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
43298         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
43299         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
43300         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
43301         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
43302         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
43303         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
43304         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
43305         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
43306         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
43307         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
43308         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
43309         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
43310         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
43311         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
43312         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
43313         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
43314         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
43315         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
43316         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
43317         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
43318         * tests/test-poll.c, tests/test-quotearg-simple.c:
43319         * tests/test-quotearg.c, tests/test-quotearg.h:
43320         * tests/test-round-ieee.c, tests/test-round1.c:
43321         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
43322         * tests/test-roundl-ieee.c, tests/test-roundl.c:
43323         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
43324         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
43325         * tests/test-strerror.c, tests/test-strerror_r.c:
43326         * tests/test-strsignal.c, tests/test-strverscmp.c:
43327         * tests/test-xmemdup0.c:
43328         Replace FSF snail mail addresses with URLs, as per GNU coding
43329         standards.  See glibc bug
43330         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
43332 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
43334         README-release: capitalize a word and split a line
43335         * top/README-release: Fix punctuation and spacing.
43337 2012-02-08  Akim Demaille  <demaille@gostai.com>
43339         fatal-signal: use C prototypes (with explicit void).
43340         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
43341         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
43343 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43345         regex: spelling fix
43346         * lib/regexec.c: spelling fix
43348         regex: rely on stdint.h for SIZE_MAX
43349         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
43351 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
43353         regex: merge glibc changes
43355         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
43356         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
43357         (init_word_char): Work even if bitset words are not exactly 32 or
43358         64 bits wide.  Don't assume there are no padding bits.
43359         * lib/regex.c [_LIBC]: Do not include <config.h>.
43360         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
43361         and -Wtype-limits.
43362         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
43363         needless disagreement with glibc.  All uses changed.  Define it to
43364         1 only if _GNU_SOURCE, to match glibc.
43365         (_REG_RM_NAME): Remove; no longer needed, since the names in
43366         question are now all protected by __USE_GNU.
43367         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
43368         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
43369         * lib/regex_internal.h (MIN): New macro.
43371         2012-01-03 Ulrich Drepper <drepper@gmail.com>
43372         * lib/regcomp.c (init_word_char): Optimize regex a bit.
43374         2011-12-30 Jakub Jelinek <jakub@redhat.com>
43375         * lib/regex_internal.c (re_string_fetch_byte_case):
43376         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
43377         is miscompiled, and it turns out it is because of an incorrect
43378         attribute on re_string_fetch_byte_case.  Unlike
43379         re_string_peek_byte_case, this one is really not pure, it modifies
43380         memory (increments pstr->cur_idx), and with the pure attribute GCC
43381         assumed it doesn't and it cached the presumed value of
43382         regexp->cur_idx in a variable across the
43383          for (;; ++i)
43384            {
43385              if (i >= BRACKET_NAME_BUF_SIZE)
43386                return REG_EBRACK;
43387              if (token->type == OP_OPEN_CHAR_CLASS)
43388                ch = re_string_fetch_byte_case (regexp);
43389              else
43390                ch = re_string_fetch_byte (regexp);
43391              if (re_string_eoi(regexp))
43392                return REG_EBRACK;
43393              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
43394                break;
43395              elem->opr.name[i] = ch;
43396            }
43398         2011-11-29 Andreas Schwab <schwab@redhat.com>
43399         * lib/regcomp.c (build_equiv_class):
43400         Fix access after end of search string in regex matcher.
43402         2011-11-12 Ulrich Drepper <drepper@redhat.com>
43403         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
43405         2011-10-12 Ulrich Drepper <drepper@redhat.com>
43406         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
43408         2011-10-11 Ulrich Drepper <drepper@redhat.com>
43409         * lib/regcomp.c (parse_branch, parse_sub_exp):
43410         More regex memory leak fixes and tests.
43411         (parse_sub_exp, parse_bracket_exp):
43412         Fix memory leak for some invalid regular expressions.
43414         2011-05-28 Ulrich Drepper <drepper@gmail.com>
43415         * lib/regex_internal.c, lib/regexec.c:
43416         Fix unnecessary overallocation due to incomplete character.  When
43417         incomplete characters are found at the end of a string the code
43418         ran amok and allocated lots of memory.  Stricter limits are now in
43419         place.
43421         2011-05-20 Reuben Thomas <rrt@sc3d.org>
43422         * lib/regex.h: Update documentation.
43424         2011-05-16 Aharon Robbins <arnold@skeeve.com>
43425         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
43427         2010-05-05 Andreas Schwab <schwab@redhat.com>
43428         * lib/regexec.c (find_collation_sequence_value):
43429         Fix lookup of collation sequence value during regexp matching.
43431         2010-01-22 Ulrich Drepper <drepper@redhat.com>
43432         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
43434         2008-01-16 Ulrich Drepper <drepper@redhat.com>
43435         * lib/regex.h: Cleanup namespace.
43437         2007-11-26 Ulrich Drepper <drepper@redhat.com>
43438         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
43440         2007-08-26 Ulrich Drepper <drepper@redhat.com>
43441         * lib/regex_internal.h: Prevent some declarations and definitions
43442         to be seen when used in tests.
43444         2005-05-06 Ulrich Drepper <drepper@redhat.com>
43445         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
43446         __libc_lock_* macros if not _LIBC.
43447         (struct re_dfa_t): Add lock.
43449 2012-02-07  Eric Blake  <eblake@redhat.com>
43451         maint.mk: also prohibit lower-case @var@
43452         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
43453         lower case, like @top_srcdir@.
43455 2012-02-04  Eric Blake  <eblake@redhat.com>
43457         canonicalize: avoid uninitialized memory use
43458         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
43459         random '/' left in dest.
43460         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
43462 2012-02-04  Bruno Haible  <bruno@clisp.org>
43464         isatty: Fix test failure of ptsname_r on native Windows.
43465         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
43466         and don't set errno.
43467         (isatty): Test first whether fd is valid. Set errno when returning 0.
43469 2012-02-04  Bruno Haible  <bruno@clisp.org>
43471         spawn-pipe tests: Fix a NULL program name in a diagnostic.
43472         * tests/test-spawn-pipe-main.c: Include progname.h.
43473         (main): Invoke set_program_name.
43474         * modules/spawn-pipe-tests (Depends-on): Add progname.
43476         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
43477         * tests/test-nonblocking-socket-main.c: Include progname.h.
43478         (main): Invoke set_program_name.
43479         * modules/nonblocking-socket-tests (Depends-on): Add progname.
43481         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
43482         * tests/test-nonblocking-pipe-main.c: Include progname.h.
43483         (main): Invoke set_program_name.
43484         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
43486 2012-02-04  Eric Blake  <eblake@redhat.com>
43488         canonicalize-lgpl: fix // handling
43489         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
43491         canonicalize: fix // handling
43492         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
43493         /// to //, since only // is special.
43495 2012-02-04  Bruno Haible  <bruno@clisp.org>
43497         ioctl: Fix test failure on native Windows.
43498         * lib/ioctl.c: Include msvc-nothrow.h.
43499         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
43501 2012-02-04  Bruno Haible  <bruno@clisp.org>
43503         fsync: Avoid test failure on native Windows.
43504         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
43505         read-only.
43507 2012-02-04  Bruno Haible  <bruno@clisp.org>
43509         sys_select: Avoid syntax error on OpenBSD 5.0.
43510         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
43511         currently being included, just include the system's <sys/select.h>.
43513 2012-02-04  Bruno Haible  <bruno@clisp.org>
43515         sys_select: Avoid syntax error on OpenBSD 5.0.
43516         * lib/sys_select.in.h: Include <signal.h> only after the include_next
43517         <sys/select.h>, not before.
43518         Reported by Jiri B <jirib@devio.us>.
43520 2012-02-04  Bruno Haible  <bruno@clisp.org>
43522         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
43523         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
43524         global variables.
43525         * tests/test-get-rusage-data.c (main): Likewise.
43526         Reported by Jim Meyering.
43528 2012-02-04  Bruno Haible  <bruno@clisp.org>
43530         stdioext: Fix last commit.
43531         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
43533 2012-02-03  Bruno Haible  <bruno@clisp.org>
43535         stdioext: Add tentative support for Plan9.
43536         * lib/stdio-impl.h: Include <errno.h>.
43537         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
43538         * lib/freadable.c (freadable): Likewise.
43539         * lib/fwritable.c (fwritable): Likewise.
43540         * lib/fbufmode.c (fbufmode): Likewise.
43541         * lib/freading.c (freading): Likewise.
43542         * lib/fwriting.c (fwriting): Likewise.
43543         * lib/freadptr.c (freadptr): Likewise.
43544         * lib/freadseek.c (freadptrinc): Likewise.
43545         * lib/freadahead.c (freadahead): Likewise.
43546         * lib/fpurge.c (fpurge): Likewise.
43547         * lib/fseeko.c (rpl_fseeko): Likewise.
43548         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
43549         Reported by Jens Staal <staal1978@gmail.com>.
43551 2012-02-02  Jim Meyering  <meyering@redhat.com>
43553         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
43554         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
43555         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
43556         not even to try to add the attribute.  Instead, add a pragma to suppress
43557         the suggestion/warning.
43559 2012-01-31  Karl Berry  <karl@gnu.org>
43561         setstate doc: typo.
43562         * doc/posix-functions/setstate.texi (setstate): { not (.
43564 2012-01-31  Bruno Haible  <bruno@clisp.org>
43566         popen: Make more robust on Windows.
43567         * lib/popen.c: On native Windows, use the _popen based code even if
43568         HAVE_POPEN is set.
43569         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
43570         environment variable on native Windows.
43572 2012-01-30  Bruno Haible  <bruno@clisp.org>
43574         pclose: Fix typo.
43575         * lib/stdio.in.h (pclose): Fix typo in warning message.
43577 2012-01-30  Bruno Haible  <bruno@clisp.org>
43579         doc about getlogin_r, setstate.
43580         * doc/posix-functions/getlogin_r.texi: List the incompatible
43581         declaration problem under "not fixed by gnulib".
43582         * doc/posix-functions/setstate.texi: Mention incompatible declaration
43583         problem on Solaris 11 and other platforms.
43585 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
43586             Bruno Haible  <bruno@clisp.org>
43588         poll tests: Make test more robust.
43589         * tests/test-poll.c: Include macros.h.
43590         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
43591         return value of various I/O operations.
43592         * modules/poll-tests (Files): Add tests/macros.h.
43594 2012-01-30  Bruno Haible  <bruno@clisp.org>
43596         sys_stat: Fix support for mingw64 and MSVC.
43597         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
43598         header files already do it.
43599         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
43600         stat itself.
43601         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43603 2012-01-30  Bruno Haible  <bruno@clisp.org>
43605         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
43606         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
43607         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
43609 2012-01-29  Bruno Haible  <bruno@clisp.org>
43611         quotearg: Fix test failure on MacOS X 10.5.
43612         * tests/test-quotearg-simple.c: Include localcharset.h.
43613         (main): If the locale encoding is not ASCII, bypass the tests of
43614         locale_quoting_style and clocale_quoting_style.
43615         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
43617 2012-01-29  Jim Meyering  <meyering@redhat.com>
43619         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
43620         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
43621         detect uses of canonicalize_file_name.
43623 2012-01-28  Bruno Haible  <bruno@clisp.org>
43625         test-framework-sh: Fix test failure with AIX 7.1 diff.
43626         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
43627         in column 1, like 'diff -c' does.
43628         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
43629         whether 'diff -u' is used. Instead, test whether the output contains
43630         some '@' character.
43632 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
43634         strtoimax: eliminate need for stdint.h, inttypes.h checks
43635         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
43636         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
43637         the prerequisites for a recently-introduced strtoimax test.
43638         I guess this might cause strtoimax to be replaced when not
43639         strictly necessary on older hosts, but this shouldn't introduce
43640         any bugs and it should make Emacs 'configure' faster on typical
43641         modern hosts.  Problem discovered when importing the latest gnulib
43642         to an Emacs test version.
43643         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
43645 2012-01-28  Bruno Haible  <bruno@clisp.org>
43647         sys_time: Override 'struct timeval' on some native Windows platforms.
43648         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
43649         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
43650         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
43651         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
43652         needs to be overridden.
43653         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
43654         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
43655         * tests/test-sys_select.c: Check that the tv_sec member has the same
43656         size as a 'time_t'.
43657         * tests/test-sys_time.c: Likewise.
43658         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
43659         is set, set also REPLACE_GETTIMEOFDAY.
43660         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
43661         convert the resulting 'struct timeval' before returning.
43662         * lib/select.c: Include <sys/time.h>.
43663         (select, timeval): Undefine at the right place.
43664         * modules/select (Depends-on): Add sys_time.
43665         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
43666         some Windows platforms.
43667         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
43669 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43671         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
43672         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
43673         an integer.
43674         * lib/fcntl.c (dupfd): Likewise.
43675         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
43677 2012-01-28  Bruno Haible  <bruno@clisp.org>
43679         fcntl: Avoid compilation error on native Windows.
43680         * modules/fcntl (Depends-on): Add 'close'.
43682 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43684         select, poll, isatty: Avoid warnings on x86_64 mingw64.
43685         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
43686         pointer to an integer.
43687         * lib/poll.c (IsConsoleHandle): Likewise.
43688         * lib/isatty.c (IsConsoleHandle): Likewise.
43690 2012-01-28  Jim Meyering  <meyering@redhat.com>
43692         doc: clarify README-release
43693         * top/README-release: Clarify: you should make a point to have
43694         the latest stable versions of build tools in your PATH, and the
43695         reference to buildreq is solely for its list of tool names, not
43696         for its minimal-functional version numbers.
43697         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
43699         maint.mk: use more readable (yet functionally equivalent) quoting
43700         It is common to quote a single quote in a single quoted string like
43701         this:  '...'\''...'.  Unless you know the idiom, that looks like
43702         gibberish, so prefer to double-quote the string when possible.
43703         Then you can use a more readable, lone single quote: "...'..."
43704         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
43705         "don't" is more readable than the equivalent 'don'\''t'.
43706         (sc_cast_of_x_alloc_return_value): Likewise.
43707         (sc_cast_of_alloca_return_value): Likewise.
43708         (sc_makefile_path_separator_check): Similar: use ":" in '...',
43709         rather than '\'':'\''.
43711 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43713         stdalign: relax _Alignof and tighten _Alignas test
43714         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
43715         as it was too strict: alignof must divide offsetof, but it need
43716         not equal offsetof.  Inspired by Joseph S. Myers's comment
43717         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
43718         Conversely, tighten the _Alignas test a bit, as the resulting
43719         alignment must be exactly 8.
43721 2012-01-27  Bruno Haible  <bruno@clisp.org>
43723         stdalign: Document the last change.
43724         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
43726 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
43728         stdalign: check that alignof and offsetof are consistent
43729         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
43730         Problem reported for gnulib by Richard W.M. Jones in
43731         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00340.html>.
43733 2012-01-27  Jim Meyering  <meyering@redhat.com>
43735         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
43736         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
43737         convert a sequence with gaps to the minimal containing range.
43738         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
43739         * tests/test-update-copyright.sh: Test for this.
43740         The FSF confirmed it is ok to do this, assuming there is at
43741         least one significant change per year in the affected range:
43742         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
43744 2012-01-26  Bruno Haible  <bruno@clisp.org>
43746         pipe2: refine doc about thread-safety
43747         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
43748         multithread-safety problem.
43749         * doc/glibc-functions/accept4.texi: Likewise.
43751 2012-01-26  Bruno Haible  <bruno@clisp.org>
43753         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
43754         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
43755         In the test program, include <fcntl.h>, for O_RDONLY.
43757 2012-01-26  Eric Blake  <eblake@redhat.com>
43759         pipe2: document lack of thread-safety in replacement
43760         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
43761         issue in replacement.
43762         * doc/glibc-functions/accept4.texi (accept4): Likewise.
43763         Based on a report by Eric Wong.
43765 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
43766             Bruno Haible  <bruno@clisp.org>
43768         malloca: Avoid warnings on x86_64 mingw64.
43769         * lib/malloca.c: Include <stdint.h>.
43770         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
43771         * modules/malloca (Depends-on): Add stdint.
43772         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
43774 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
43776         obstack: remove __STDC__ conditionals
43777         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
43778         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
43779         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
43780         m4/include_next.m4 as the only gnulib-maintained places that still
43781         refer to __STDC__.
43783 2012-01-24  Bruno Haible  <bruno@clisp.org>
43785         havelib: Modern quoting.
43786         * build-aux/config.rpath: Quote 'like this', not `like this', as per
43787         the recent change to the GNU coding standards.
43789 2012-01-24  Bruno Haible  <bruno@clisp.org>
43791         stdint: Improve support for Android.
43792         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
43793         Reported by Simon Josefsson <simon@josefsson.org>.
43795 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
43797         doc: omit trailing empty lines from INSTALL etc.
43798         * doc/Makefile (INSTALL): Omit trailing empty lines.
43799         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
43800         omit trailing empty lines.  This simplifies the build procedure.
43802 2012-01-23  Jim Meyering  <meyering@redhat.com>
43804         tests: avoid spurious warnings about gl_sockets_startup
43805         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
43806         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
43807         reporting a "statement with no effect".
43808         * tests/test-accept.c (main): Mark as "(void)".
43809         * tests/test-accept4.c (main): Likewise.
43810         * tests/test-bind.c (main): Likewise.
43811         * tests/test-connect.c (main): Likewise.
43812         * tests/test-getpeername.c (main): Likewise.
43813         * tests/test-getsockname.c (main): Likewise.
43814         * tests/test-getsockopt.c (main): Likewise.
43815         * tests/test-listen.c (main): Likewise.
43816         * tests/test-recv.c (main): Likewise.
43817         * tests/test-recvfrom.c (main): Likewise.
43818         * tests/test-send.c (main): Likewise.
43819         * tests/test-sendto.c (main): Likewise.
43820         * tests/test-setsockopt.c (main): Likewise.
43821         * tests/test-shutdown.c (main): Likewise.
43823 2012-01-21  Bruno Haible  <bruno@clisp.org>
43825         locale-fr.m4: Fix for Android.
43826         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
43827         failure of the test program on Bionic libc.
43829 2012-01-21  Jim Meyering  <meyering@redhat.com>
43831         bootstrap: fail when bootstrap_post_import_hook fails
43832         Otherwise, it's far too easy to miss diagnostics emitted
43833         between gnulib-tool's output and that of running configure.
43834         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
43836 2012-01-17  Jim Meyering  <meyering@redhat.com>
43838         maint: enable sc_trailing_blank
43839         * build-aux/pmccabe.css: Remove trailing blanks.
43840         * doc/acl-cygwin.txt: Likewise.
43841         * doc/gnu-oids.texi: Likewise
43842         * cfg.mk: Enable sc_trailing_blank.
43843         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
43845 2012-01-17  Jim Meyering  <meyering@redhat.com>
43847         maint: enable sc_prohibit_openat_without_use
43848         * cfg.mk: Enable sc_prohibit_openat_without_use.
43849         Exempt lib/selinux-at.c.
43851 2012-01-17  Jim Meyering  <meyering@redhat.com>
43853         maint: enable sc_prohibit_cloexec_without_use
43854         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
43855         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
43857 2012-01-17  Jim Meyering  <meyering@redhat.com>
43859         maint: enable sc_prohibit_intprops_without_use
43860         * cfg.mk: Enable sc_prohibit_intprops_without_use
43861         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
43863 2012-01-17  Jim Meyering  <meyering@redhat.com>
43865         maint: enable sc_prohibit_hash_pjw_without_use
43866         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
43867         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
43868         to match any use of \<hash_pjw\>, i.e., not necessarily with a
43869         following " (".
43871 2012-01-17  Jim Meyering  <meyering@redhat.com>
43873         maint: enable double-word-prohibiting rule
43874         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
43875         Exempt three files.
43877 2012-01-17  Jim Meyering  <meyering@redhat.com>
43879         maint: remove empty lines at EOF, but excluding modules/*
43880         Apply syntax rules at home as well as abroad.  Most changes
43881         were induced by running this:
43882           make srcdir=. _build-aux=build-aux -f top/maint.mk \
43883             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
43884             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
43885         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
43886         Exempt modules/* and two binary files.
43887         Also exempt doc/INSTALL*, per request from Bruno Haible.
43888         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
43889         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
43890         * doc/Copyright/request-assign.future: Likewise.
43891         * doc/Copyright/request-disclaim.changes: Likewise.
43892         * doc/INSTALL: Likewise.
43893         * doc/INSTALL.ISO: Likewise.
43894         * doc/INSTALL.UTF-8: Likewise.
43895         * doc/acl-cygwin.txt: Likewise.
43896         * doc/acl-resources.txt: Likewise.
43897         * doc/fdl-1.2.texi: Likewise.
43898         * doc/fdl-1.3.texi: Likewise.
43899         * doc/fdl.texi: Likewise.
43900         * lib/argp-pin.c: Likewise.
43901         * lib/round.c: Likewise.
43902         * lib/unicase/u16-totitle.c: Likewise.
43903         * lib/unictype/block_test.c: Likewise.
43904         * lib/uninorm/canonical-decomposition.c: Likewise.
43905         * m4/README: Likewise.
43906         * m4/relocatable-lib.m4: Likewise.
43907         * tests/test-isnand-nolibm.c: Likewise.
43908         * tests/test-isnand.c: Likewise.
43909         * tests/uninorm/NormalizationTest.txt: Likewise.
43911 2012-01-17  Jim Meyering  <meyering@redhat.com>
43913         maint: add framework to run syntax-check rules against gnulib sources
43914         * cfg.mk: New file, to disable all currently-failing tests.
43915         We'll enable them one by one, as they are made to pass.
43916         * Makefile (sc_maint): New rule.
43918 2012-01-21  Bruno Haible  <bruno@clisp.org>
43920         stdint: Add support for Android.
43921         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
43922         include the system's <stdint.h>.
43923         Reported by Simon Josefsson <simon@josefsson.org>.
43925 2012-01-19  Jim Meyering  <meyering@redhat.com>
43927         bootstrap: add bootstrap_post_import_hook
43928         Bison does still need something like the gnulib_mk_hook whose
43929         invocation I had to remove along with slurp in commit 767ccd40.
43930         Technically, we could get along without it, but doing so would
43931         have required living with a warning and a mandatory post-bootstrap
43932         automake rerun.
43933         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
43934         (bootstrap_post_import_hook): New function.
43935         Invoke it after gnulib-tool --import and before autoreconf.
43937 2012-01-18  Jim Meyering  <meyering@redhat.com>
43939         gitlog-to-changelog: don't use "no_"-prefixed variable name
43940         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
43941         to enable both --cluster and --no-cluster.  Change variable name,
43942         s/\$no_cluster/$cluster/, and reverse usage to match.
43944         gitlog-to-changelog: use "||", not "or" in expressions
43945         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
43946         expressions.
43948 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
43950         gitlog-to-changelog: new option --no-cluster
43951         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
43952         clustering of adjacent commit messages.
43954 2012-01-17  Jim Meyering  <meyering@redhat.com>
43956         maint: spell file systems with two words, not one
43957         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
43958         two words, not one.
43960 2012-01-16  Jim Meyering  <meyering@redhat.com>
43962         bootstrap: add a FIXME comment to ensure we eventually remove the hack
43963         * build-aux/bootstrap (gnulib_tool_options): Add comment.
43965 2012-01-16  Eric Blake  <eblake@redhat.com>
43967         bootstrap: cater to autoconf 2.59
43968         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
43969         is not available.
43971         bootstrap: properly check for libtool
43972         * build-aux/bootstrap (libtoolize): Also run libtool when older
43973         usage is detected.
43975 2012-01-15  Bruno Haible  <bruno@clisp.org>
43977         Improve support for MSVC 9.
43978         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
43979         clashes on MSVC.
43980         * lib/fcntl.in.h: Likewise.
43981         * lib/stdlib.in.h: Likewise.
43982         * lib/sys_stat.in.h: Likewise.
43984 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
43986         gnupload: we hold the master copy of this script now
43987         For motivation and more information, see:
43988         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00222.html>
43989         * build-aux/gnupload: Make it clear in the heading comments that the
43990         master copy of this file is maintained by gnulib.  Since we are at
43991         it, bump its copyright year and ...
43992         ($scriptversion): ... the date in its version.
43993         ($usage): Patches and bug reports should be sent to the gnulib list,
43994         not the automake one.
43995         * config/srclist.txt: Don't try to sync 'gnupload' from automake
43996         anymore.
43998 2012-01-15  Bruno Haible  <bruno@clisp.org>
44000         Fix module 'random'.
44001         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
44002         initstate, setstate are declared.
44004 2012-01-14  Bruno Haible  <bruno@clisp.org>
44006         Tests for module 'random'.
44007         * modules/random-tests: New file.
44008         * tests/test-random.c: New file, based on tests/test-random_r.c.
44010         New module 'random'.
44011         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
44012         declarations.
44013         * lib/random.c: New file, based on glibc/stdlib/random.c.
44014         * m4/random.m4: New file.
44015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
44016         HAVE_RANDOM.
44017         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
44018         * modules/random: New file.
44019         * config/srclist.txt: Add an entry for random.c.
44020         * doc/posix-functions/random.texi: Mention the 'random' module.
44021         * doc/posix-functions/initstate.texi: Likewise.
44022         * doc/posix-functions/setstate.texi: Likewise.
44023         * doc/posix-functions/srandom.texi: Likewise.
44025 2012-01-12  Bruno Haible  <bruno@clisp.org>
44027         random_r: Use common idioms.
44028         * lib/random_r.c: Include <stdlib.h> first.
44030         random_r: Override incompatible API on AIX, OSF/1.
44031         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
44032         Override the system function if REPLACE_RANDOM_R is 1.
44033         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
44034         and OSF/1, set REPLACE_RANDOM_R.
44035         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
44036         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
44037         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
44038         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
44039         * doc/glibc-functions/random_r.texi: Likewise.
44040         * doc/glibc-functions/setstate_r.texi: Likewise.
44042         random_r: Support for MSVC 9.
44043         * lib/random_r.c: Include stdint.h, not inttypes.h.
44045 2012-01-12  Eric Blake  <eblake@redhat.com>
44047         inet_ntop: guard extra work by IF_LINT
44048         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
44049         better code generation when not checking for warnings.
44050         Suggested by Paul Eggert and Jim Meyering.
44052         strptime: fix regression on mingw
44053         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
44054         Fix regression.  Reported by Bruno Haible.
44056 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
44057             Bruno Haible  <bruno@clisp.org>
44059         copy-file: add error-code-returning variant.
44060         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
44061         (qcopy_file_preserving): New declaration.
44062         * lib/copy-file.c (qcopy_file_preserving): Renamed from
44063         copy_file_preserving. Change return type to 'int'. Don't emit an error
44064         message here.
44065         (copy_file_preserving): New function.
44066         * tests/test-copy-file.c: Include <stdlib.h>.
44067         (main): Test qcopy_file_preserving if the environment variable
44068         NO_STDERR_OUTPUT is set.
44069         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
44070         with NO_STDERR_OUTPUT
44071         * tests/test-copy-file-2.sh: Likewise.
44073 2012-01-10  Bruno Haible  <bruno@clisp.org>
44075         copy-file: Use 'quote' module consistently.
44076         * lib/copy-file.c (copy_file_preserving): Use quote().
44078         copy-file: Refactor.
44079         * lib/copy-file.c: Include quote.h.
44080         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
44081         message here.
44082         * modules/copy-file (Depends-on): Add quote.
44084         acl: Export qcopy_acl.
44085         * lib/acl.h (qcopy_acl): New declaration.
44086         * lib/copy-acl.c (qcopy_acl): Make non-static.
44088         acl: Rename a local variable.
44089         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
44091         acl: Align return values of copy_acl and qcopy_acl.
44092         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
44093         maybe < -1.
44095 2012-01-11  Eric Blake  <eblake@redhat.com>
44097         strptime: silence gcc warnings
44098         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
44099         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
44100         Reported by Daniel P. Berrange.
44102         inet_ntop: silence gcc warning
44103         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
44104         Reported by Daniel P. Berrange.
44106 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
44108         getloadavg test: skip the test on GNU/Linux without /proc mounted
44109         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
44110         file.  When /proc is not mounted, it always fails with ENOENT.
44111         * tests/test-getloadavg.c (main): Treat ENOENT return code from
44112         getloadavg(3) the same way as ENOSYS and ENOTSUP.
44114 2012-01-10  Bruno Haible  <bruno@clisp.org>
44116         regex: Avoid link error on MSVC 9.
44117         * modules/regex (Depends-on): Add wctype.
44119 2012-01-10  Bruno Haible  <bruno@clisp.org>
44121         doc: Mention --with-tests option.
44122         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
44123         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
44124         --with-tests.
44125         Reported by Reuben Thomas.
44127 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
44129         users.txt: order package names lexicographically.
44130         * users.txt: Order package names lexicographically.
44132 2012-01-10  Jim Meyering  <meyering@redhat.com>
44134         maint.mk: fix description in comment
44135         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
44137         ignore-value: remove deprecated ignore_ptr function
44138         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
44139         * NEWS: Note this.
44141 2012-01-09  Jim Meyering  <meyering@redhat.com>
44143         test-init.sh: avoid a subshell
44144         * tests/test-init.sh: Remove protective subshell.
44145         Suggested by Bernhard Voelker.  While a subshell is normally
44146         required to protect against older shells (Solaris, FreeBSD) that
44147         warn about a missing program before performing redirection, the
44148         shell-selection tests performed by init.sh probably exclude any
44149         offending shell.
44151 2012-01-08  Bruno Haible  <bruno@clisp.org>
44153         setlocale tests: Avoid test failure on Solaris 11.0.
44154         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
44155         variable.
44157 2012-01-08  Bruno Haible  <bruno@clisp.org>
44159         posix_spawn_file_actions_addopen: Work around Solaris 11.0 bug.
44160         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44161         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44162         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
44163         macro.
44164         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
44165         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44166         * lib/spawn_faction_addopen.c: Add workaround implementation if
44167         HAVE_WORKING_POSIX_SPAWN.
44168         * modules/spawn (Makefile): Substitute
44169         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
44170         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
44171         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
44172         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
44173         (Depends-on): Update conditions.
44174         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
44175         the Solaris 11 bug.
44177 2012-01-08  Bruno Haible  <bruno@clisp.org>
44179         posix_spawn_file_actions_adddup2: Work around Solaris 11.0 bug.
44180         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44181         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44182         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
44183         macro.
44184         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
44185         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44186         * lib/spawn_faction_adddup2.c: Add workaround implementation if
44187         HAVE_WORKING_POSIX_SPAWN.
44188         * modules/spawn (Makefile): Substitute
44189         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
44190         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
44191         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
44192         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
44193         (Depends-on): Update conditions.
44194         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
44195         the Solaris 11 bug.
44197 2012-01-08  Bruno Haible  <bruno@clisp.org>
44199         posix_spawn_file_actions_addclose: Work around Solaris 11.0 bug.
44200         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
44201         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44202         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
44203         HAVE_WORKING_POSIX_SPAWN.
44204         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
44205         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
44206         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44207         * lib/spawn_faction_addclose.c: Add workaround implementation if
44208         HAVE_WORKING_POSIX_SPAWN.
44209         * modules/spawn (Makefile): Substitute
44210         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
44211         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
44212         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
44213         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
44214         (Depends-on): Update conditions.
44215         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
44216         the Solaris 11 bug.
44218 2012-01-08  Bruno Haible  <bruno@clisp.org>
44220         doc: Update for Solaris 11.0.
44221         * doc/*/*.texi: Mention Solaris 11.0 where appropriate.
44222         * m4/printf.m4: Update comments.
44224 2012-01-08  Bruno Haible  <bruno@clisp.org>
44226         mktime: Avoid compilation error on Solaris 11.
44227         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
44229 2012-01-08  Bruno Haible  <bruno@clisp.org>
44231         doc: Small fix.
44232         * doc/posix-headers/nl_types.texi: Correct platforms list.
44234 2012-01-08  Simon Josefsson  <simon@josefsson.org>
44236         Add lgpl-3.0 module.
44237         * MODULES.html.sh (Support for building documentation): Add
44238         lgpl-3.0.
44239         * modules/lgpl-3.0: New file.
44241 2012-01-08  Jim Meyering  <meyering@redhat.com>
44243         select.c: indent with spaces, not TABs
44244         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
44246 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44248         quotearg: do not use grave accent for left quote
44249         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
44250         locale_quoting_style.
44251         (quotearg_buffer_restyled): Fix example.
44252         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
44254 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44256         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
44257         Most programs do not have translation catalogs for English and much
44258         less separate catalogs for British and American English.  Drop the
44259         suggestion to translators about these two, and provide it
44260         automatically for Unicode locales.  Like most programs, even those
44261         using American English, we use single quotation marks.  This conflicts
44262         with the American typographic convention, but works better when you
44263         cite the entire error message within double quotes.  It also tries not
44264         to clash with established practice and with what non-gnulib programs
44265         will usually do.
44266         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
44267         using an UTF-8 or GB-18030 locale.  The list of other locales with
44268         quotes was provided by Bruno Haible.
44269         (quotearg_buffer_restyled): Adjust instructions to translators.
44270         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
44271         text, since this would be wrong when using Unicode.
44272         * modules/quotearg: Depend on c-strcaseeq.
44274 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
44276         quotearg: fix Wikipedia link
44277         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
44279 2012-01-07  Simon Josefsson  <simon@josefsson.org>
44281         Fix for mingw with MSVC9.
44282         * m4/ld-version-script.m4: Check that compiler rejects version
44283         scripts with syntax errors.  Reported by Bruno Haible
44284         <bruno@clisp.org>.
44286 2012-01-06  Bruno Haible  <bruno@clisp.org>
44288         Talk about "native Windows API", not "Woe32".
44289         * lib/accept4.c: Update comments to mention native Windows.
44290         * lib/execute.c: Likewise.
44291         * lib/fatal-signal.c: Likewise.
44292         * lib/localcharset.c: Likewise.
44293         * lib/nanosleep.c: Likewise.
44294         * lib/nl_langinfo.c: Likewise.
44295         * lib/pclose.c: Likewise.
44296         * lib/pipe-filter-gi.c: Likewise.
44297         * lib/pipe-filter-ii.c: Likewise.
44298         * lib/pipe.c: Likewise.
44299         * lib/pipe2.c: Likewise.
44300         * lib/popen.c: Likewise.
44301         * lib/progreloc.c: Likewise.
44302         * lib/relocatable.c: Likewise.
44303         * lib/sigaction.c: Likewise.
44304         * lib/sigprocmask.c: Likewise.
44305         * lib/spawn-pipe.h: Likewise.
44306         * lib/spawn-pipe.c: Likewise.
44307         * lib/spawni.c: Likewise.
44308         * lib/stat-time.h: Likewise.
44309         * lib/w32spawn.h: Likewise.
44310         * tests/test-isatty.c: Likewise.
44311         * lib/config.charset: More comments.
44312         * doc/gnulib-intro.texi: Mention native Windows.
44313         * doc/posix-functions/_Exit_C99.texi: Likewise.
44314         * doc/posix-headers/fcntl.texi: Likewise.
44316 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
44318         argp: Avoid crash if translator uses % characters in a translation.
44319         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
44320         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44322 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
44324         doc: C11 and C++11 are now official
44325         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
44326         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
44327         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
44328         * modules/stdalign:
44329         Replace references to draft C1X to C11, and to draft C++0X to C++11.
44331 2012-01-06  Bruno Haible  <bruno@clisp.org>
44333         uc-is-grapheme-break tests: Tweak.
44334         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
44335         message.
44337 2012-01-06  Bruno Haible  <bruno@clisp.org>
44339         test-init.sh: correct the test for diff -u
44340         * tests/test-init.sh: Also redirect stdout to /dev/null.
44342 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
44344         Use ', not `, for quoting output.
44345         * build-aux/announce-gen (usage, sizes, print_news_deltas)
44346         (print_changelog_deltas, get_tool_versions, main program):
44347         * build-aux/git-version-gen:
44348         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
44349         * build-aux/move-if-change (help):
44350         * build-aux/useless-if-before-free (usage, main program):
44351         * check-module (parse_module_file, usage)
44352         (find_included_lib_files, check_module):
44353         * lib/argmatch.c (main) [TEST]:
44354         * lib/argp-help.c (_help):
44355         * lib/getopt1.c (main) [TEST]:
44356         * lib/git-merge-changelog.c (usage):
44357         * lib/xstrtol-error.c (xstrtol_error):
44358         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
44359         * m4/argz.m4 (gl_FUNC_ARGZ):
44360         * m4/bison.m4 (gl_BISON):
44361         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
44362         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
44363         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
44364         * m4/fpending.m4 (gl_PREREQ_FPENDING):
44365         * m4/gc-random.m4 (gl_GC_RANDOM):
44366         * m4/intl.m4 (gt_CHECK_DECL):
44367         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
44368         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
44369         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
44370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
44371         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
44372         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
44373         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
44374         * tests/test-dirname.c (main):
44375         * tests/test-getpass.c (main):
44376         * tests/test-iconvme.c (main):
44377         * tests/test-parse-datetime.c (LOG):
44378         * tests/test-xstrtoimax.sh:
44379         * tests/test-xstrtol.sh:
44380         * tests/test-xstrtoll.sh:
44381         * tests/test-xstrtoumax.sh:
44382         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
44383         * top/GNUmakefile (abort-due-to-no-makefile):
44384         Quote 'like this', not `like this', as per the recent change to
44385         the GNU coding standards.
44387 2012-01-05  Bruno Haible  <bruno@clisp.org>
44389         strtoimax: Don't force a replacement on systems where intmax_t is int.
44390         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
44391         'intmax_t' is not larger than 'int'.
44392         Reported by Pádraig Brady <P@draigBrady.com>.
44394 2012-01-05  Bruno Haible  <bruno@clisp.org>
44396         doc: Mention NetBSD bugs.
44397         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
44398         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
44400 2012-01-05  Bruno Haible  <bruno@clisp.org>
44402         strtoumax tests: Enhance tests.
44403         * tests/test-strtoumax.c (main): Add tests for large values.
44405 2012-01-05  Bruno Haible  <bruno@clisp.org>
44407         strtoimax: Work around AIX 5.1 bug.
44408         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
44409         definition.
44410         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
44411         Set HAVE_STRTOIMAX.
44412         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
44413         REPLACE_STRTOIMAX.
44414         * modules/inttypes-incomplete (Makefile.am): Substitute
44415         REPLACE_STRTOIMAX.
44416         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
44417         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
44418         (Depends-on): Update conditions.
44419         * tests/test-strtoimax.c (main): Add tests for large values.
44420         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
44422 2012-01-05  Bruno Haible  <bruno@clisp.org>
44424         inttypes: Modernize.
44425         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
44426         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
44427         (Makefile.am): Update inttypes.h rule.
44429 2012-01-05  Jim Meyering  <meyering@redhat.com>
44431         init.sh: don't waste a subshell just to redirect stderr
44432         * tests/init.sh: In testing for diff -u and diff -c, use a
44433         stderr-redirecting exec inside `...` rather than a subshell.
44435         test-init.sh: avoid failure on HP-UX 11.00
44436         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
44437         resolves to diff -c or cmp.  Reported by Bruno Haible.
44439 2012-01-05  Bruno Haible  <bruno@clisp.org>
44441         Tests for module 'strtoull'.
44442         * modules/strtoull-tests: New file.
44443         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
44445 2012-01-05  Bruno Haible  <bruno@clisp.org>
44447         Tests for module 'strtoll'.
44448         * modules/strtoll-tests: New file.
44449         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
44451 2012-01-05  Bruno Haible  <bruno@clisp.org>
44453         Tests for module 'strtoul'.
44454         * modules/strtoul-tests: New file.
44455         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
44457 2012-01-05  Bruno Haible  <bruno@clisp.org>
44459         Tests for module 'strtol'.
44460         * modules/strtol-tests: New file.
44461         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
44463 2012-01-04  Jim Meyering  <meyering@redhat.com>
44465         test-init.sh: accommodate Solaris 5.10's different diff -u output
44466         * tests/test-init.sh: Also exempt @@ lines from the comparison
44467         of diff output, since Solaris 5.10 and GNU diff formats differ.
44468         Reported by Stefano Lattarini.
44470 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44472         test-posixtm: don't assume signed integer wraparound
44473         * tests/test-posixtm.c (main): Don't assume wraparound semantics
44474         after signed integer overflow.  Inspired by (though it may not
44475         fix) Bruno Haible's bug report in
44476         <http://lists.gnu.org/r/bug-gnulib/2012-01/msg00066.html>.
44478         Spell out "Windows 9x" and "Windows XP".
44479         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
44480         "Windows 9x" and "WinXP" with "Windows XP".
44482 2012-01-04  Jim Meyering  <meyering@redhat.com>
44484         test-vc-list-files-cvs.sh: remove obsolete comment
44485         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
44486         double exit.  Now that's all encapsulated via skip_ and Exit.
44488 2012-01-04  Bruno Haible  <bruno@clisp.org>
44490         Talk about "native Windows API", not "Win32".
44491         * lib/classpath.c: Update comments to mention native Windows.
44492         * lib/csharpexec.c: Likewise.
44493         * lib/dup2.c: Likewise.
44494         * lib/error.c: Likewise.
44495         * lib/fcntl.c: Likewise.
44496         * lib/filename.h: Likewise.
44497         * lib/findprog.c: Likewise.
44498         * lib/get-rusage-as.c: Likewise.
44499         * lib/get-rusage-data.c: Likewise.
44500         * lib/getpagesize.c: Likewise.
44501         * lib/javaexec.c: Likewise.
44502         * lib/msvc-inval.c: Likewise.
44503         * lib/msvc-nothrow.c: Likewise.
44504         * lib/nanosleep.c: Likewise.
44505         * lib/nonblocking.c: Likewise.
44506         * lib/printf-parse.c: Likewise.
44507         * lib/setlocale.c: Likewise.
44508         * lib/sigaction.c: Likewise.
44509         * lib/strerror_r.c: Likewise.
44510         * lib/tmpdir.c: Likewise.
44511         * lib/vasnprintf.c: Likewise.
44512         * lib/w32spawn.h: Likewise.
44513         * lib/waitpid.c: Likewise.
44514         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
44515         * m4/locale-ar.m4: Likewise.
44516         * m4/locale-fr.m4: Likewise.
44517         * m4/locale-ja.m4: Likewise.
44518         * m4/locale-tr.m4: Likewise.
44519         * m4/locale-zh.m4: Likewise.
44520         * m4/printf.m4: Likewise.
44521         * tests/test-cloexec.c: Likewise.
44522         * tests/test-copy-acl.sh: Likewise.
44523         * tests/test-copy-file.sh: Likewise.
44524         * tests/test-file-has-acl.sh: Likewise.
44525         * tests/test-set-mode-acl.sh: Likewise.
44526         * tests/test-dup-safer.c: Likewise.
44527         * tests/test-dup2.c: Likewise.
44528         * tests/test-dup3.c: Likewise.
44529         * tests/test-fcntl.c: Likewise.
44530         * tests/test-nonblocking-pipe.h: Likewise.
44531         * tests/test-nonblocking-socket.h: Likewise.
44532         * tests/test-pipe.c: Likewise.
44533         * tests/test-pipe2.c: Likewise.
44534         * tests/test-spawn-pipe-child.c: Likewise.
44535         * doc/acl-resources.txt: Likewise.
44536         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44537         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
44538         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
44539         * lib/localcharset.c: Update comments to mention native Windows.
44540         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44541         * lib/localename.c: Likewise.
44542         * lib/progreloc.c: Likewise.
44543         * lib/relocatable.c: Likewise.
44544         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
44545         (windows_compute_revents): Renamed from win32_compute_revents.
44546         (windows_compute_revents_socket): Renamed from
44547         win32_compute_revents_socket.
44548         * lib/select.c: Update comments to mention native Windows.
44549         (windows_poll_handle): Renamed from win32_poll_handle.
44550         * m4/threadlib.m4: Update comments to mention native Windows.
44551         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
44552         --enable-threads=windows instead of --enable-threads=win32. Set
44553         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
44554         * lib/glthread/lock.h: Update comments to mention native Windows.
44555         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
44556         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
44557         USE_WIN32_THREADS.
44558         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
44559         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
44560         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
44561         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
44562         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
44563         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
44564         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
44565         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
44566         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
44567         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
44568         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
44569         * tests/test-tls.c: Likewise.
44570         Rationale:
44571         Microsoft renamed the "Win32 API" to "Windows API", as it is available
44572         on both 32-bit and 64-bit Windows systems.
44573         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
44574         line of distinction is between "native Windows" on one side and Unix/
44575         POSIX systems on the other side. More details in
44576         <https://lists.gnu.org/r/bug-gnulib/2012-01/msg00027.html>.
44577         Suggested by Paul Eggert.
44579 2012-01-03  Bruno Haible  <bruno@clisp.org>
44581         isatty: Support for MSVC 9.
44582         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
44583         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
44584         (_isatty_nothrow): New function.
44585         (isatty): Use it instead of _isatty.
44586         (IsConsoleHandle): Add comment, from Paolo Bonzini.
44587         * lib/poll.c (IsConsoleHandle): Likewise.
44588         * lib/select.c (IsConsoleHandle): Likewise.
44589         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
44590         (gl_PREREQ_ISATTY): New macro.
44591         * modules/isatty (Depends-on): Add msvc-inval.
44592         (configure.ac): Invoke gl_PREREQ_ISATTY.
44594 2012-01-03  Jim Meyering  <meyering@redhat.com>
44596         maint.mk: remove temporary transition aid from over 1.5 years ago
44597         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
44598         purpose was to aid in the transition (avoiding silent malfunction)
44599         from that old name to the new _sc_search_regexp.  This shim was
44600         added by commit 219c504b.
44602         init.sh: do not try to accommodate compare arguments starting with "-"
44603         * tests/init.sh (compare_dev_null_): Do not try to accommodate
44604         compare arguments that start with "-".  Besides, we do not worry
44605         about this when invoking diff or cmp; why start now with sed?
44606         Using "--" to separate options from argument would trigger sed
44607         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
44608         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
44610 2012-01-02  Bruno Haible  <bruno@clisp.org>
44612         Enhance tests for module 'isatty'.
44613         * modules/isatty-tests (Depends-on): Add pipe-posix.
44614         * tests/test-isatty.c: Include <fcntl.h>.
44615         (DEV_NULL): New macro.
44616         (main): Test the resut of isatty() also on regular files, pipes, and
44617         /dev/null.
44619         New module 'isatty'.
44620         * lib/unistd.in.h (isatty): New declaration.
44621         * lib/isatty.c: New file, based on an idea of
44622         Bastien Roucariès <roucaries.bastien@gmail.com>.
44623         * m4/isatty.m4: New file.
44624         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
44625         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
44626         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
44627         REPLACE_ISATTY.
44628         * modules/isatty: New file.
44629         * doc/posix-functions/isatty.texi: Mention the new module.
44630         Suggested by Paolo Bonzini.
44632 2012-01-02  Bruno Haible  <bruno@clisp.org>
44634         canonicalize: Tweak 2011-12-29 commit.
44635         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
44636         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
44638 2012-01-02  Jim Meyering  <meyering@redhat.com>
44640         gitlog-to-changelog: describe input syntax in --help output
44641         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
44643         gitlog-to-changelog: fix typo in --help: show backslash before email @
44644         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
44645         in sources, but not in actual output.
44647 2011-12-30  Jim Meyering  <meyering@redhat.com>
44649         gitlog-to-changelog: don't malfunction when name contains %-directive
44650         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
44651         in a name string cause trouble.  E.g., with a user name of "%s",
44652         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
44654 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
44656         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
44657         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
44658         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
44659         the "  (tiny change)" notation that is appended to the standard
44660         ChangeLog "date  name  email" header line.
44662 2012-01-01  Jim Meyering  <meyering@redhat.com>
44664         test-framework-sh: init.sh: fix "make dist" failure
44665         When using gnulib-tool's --with-tests option and any module that
44666         depends on test-framework-sh, "make dist" would fail due to the
44667         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
44668         in the gltests directory, and not in the gllib/ directory.
44669         One way to work around that is to move the EXTRA_DIST += init.sh
44670         from the primary module to the -tests one:
44671         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
44672         * modules/test-framework-sh (Makefile.am): ...not here.
44673         Reported by Tom G. Christensen in
44674         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
44676         version-etc: update copyright year reported by --version
44677         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
44679 2011-12-31  Pádraig Brady  <P@draigBrady.com>
44681         canonicalize: only stat() if required
44682         * lib/canonicalize.c (canonicalize_filename_mode):
44683         Avoid calling l?stat() when both CAN_MISSING,
44684         and CAN_NOLINKS are set, as we neither need
44685         to resolve symlinks or test component existence.
44687 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
44689         doc: cover st_ino issues once; add OpenVMS etc.
44690         * doc/posix-functions/stat.texi (stat):
44691         * doc/posix-functions/lstat.texi (lstat):
44692         * doc/posix-functions/fstatat.texi (fstatat):
44693         * doc/posix-functions/fstat.texi (fstat):
44694         Move general 'struct stat' stuff to sys_stat.texi,
44695         leaving behind a pointer.
44696         * doc/posix-headers/sys_stat.texi (sys/stat.h):
44697         Merge duplicate info about 'struct stat' problems into here.
44698         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
44699         and suggest partial workarounds.
44701         same-inode: port to OpenVMS
44702         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
44703         three st_ino values.
44705 2011-12-30  Pádraig Brady  <P@draigBrady.com>
44707         canonicalize: fix references to stat() and lstat()
44708         * lib/canonicalize.c (canonicalize_filename_mode):
44709         Ensure references always resolve to a replacement
44710         function if required (even via a macro).
44712 2011-12-30  Jim Meyering  <meyering@redhat.com>
44714         gitlog-to-changelog: remove a little duplication
44715         * build-aux/gitlog-to-changelog (main): Grep @lines once,
44716         rather than twice.
44718 2011-12-29  Pádraig Brady  <P@draigBrady.com>
44720         canonicalize: add support for not resolving symlinks
44721         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
44722         indicate we don't want to follow symlinks.  Also
44723         provide CAN_MODE_MASK to aid setting these existing
44724         mutually exclusive values.
44725         * lib/canonicalize.c (canonicalize_filename_mode):
44726         Extract the flags from can_mode parameter, which
44727         are currently just used to select between stat()
44728         and lstat().  Also ensure that mutually exclusive
44729         values are flagged immediately as invalid.
44730         * tests/test-canonicalize.c: Verify symlinks are
44731         not followed, and that invalid flag combinations
44732         are diagnosed.
44734 2011-12-25  Jim Meyering  <meyering@redhat.com>
44736         gitlog-to-changelog: do not clump multi-paragraph entries
44737         Identical header lines (date,name,email+coauthors) are suppressed,
44738         thus putting all entries with those same characteristics under
44739         a single header.  However, when a log entry consists of two or
44740         more paragraphs, it may not be clear where it starts and ends.
44741         This change makes it so that such an entry is always separated
44742         from others by a header line, even when that header would
44743         otherwise be suppressed.
44744         * build-aux/gitlog-to-changelog: Implement the above.
44745         Inspired by a related request from Stefano Lattarini in
44746         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
44748 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
44750         announce-gen: fix `cmd' typo in diagnostic
44751         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
44752         diagnostic: a missing '$' meant that the command was not output.
44754 2011-12-23  Jim Meyering  <meyering@redhat.com>
44756         test-framework-sh: distribute init.sh
44757         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
44758         Otherwise, "make -C gnulib-tests check" (at least in grep) would
44759         fail due to the lack of init.sh.
44761         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
44762         * modules/atexit-tests: Rather than listing tests/init.sh,
44763         now that there's a module for it, simply depend on that new module.
44764         * modules/closein-tests: Likewise.
44765         * modules/exclude-tests: Likewise.
44766         * modules/getcwd-tests: Likewise.
44767         * modules/perror-tests: Likewise.
44768         * modules/pread-tests: Likewise.
44769         * modules/pwrite-tests: Likewise.
44770         * modules/vc-list-files-tests: Likewise.
44771         * modules/verify-tests: Likewise.
44772         * modules/xalloc-die-tests: Likewise.
44773         * modules/xstrtoimax-tests: Likewise.
44774         * modules/xstrtol-tests: Likewise.
44775         * modules/xstrtoll-tests: Likewise.
44776         * modules/xstrtoumax-tests: Likewise.
44777         * modules/yesno-tests: Likewise.
44779 2011-12-22  Jim Meyering  <meyering@redhat.com>
44781         test-framework-sh: add minimal tests of init.sh's compare function
44782         * modules/test-framework-sh-tests: New file.
44783         * tests/test-init.sh: New file.
44785         test-framework-sh: new module
44786         * modules/test-framework-sh: New file.
44787         * MODULES.html.sh (Support for maintaining and releasing projects):
44788         List it.
44790         init.sh: do not emit simulated diff output to stderr
44791         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
44793 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
44795         .gitignore: ignore gnulib.dvi and regex.info
44796         * doc/.gitignore:add gnulib.dvi and regex.info
44798 2011-12-22  Jim Meyering  <meyering@redhat.com>
44800         init.sh: correct previous change
44801         * tests/init.sh (compare): My previous change was wrong.
44802         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
44804         init.sh: avoid unwarranted test failure when using "set -e"
44805         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
44806         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
44807         a use like "compare exp out" would get evoke an unconditional failure.
44809 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
44811         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
44812         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
44813         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
44814         autoreconf that did not.
44815         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
44816         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
44818 2011-12-17  Jim Meyering  <meyering@redhat.com>
44820         bootstrap: remove some now-unneeded code
44821         This script arose back when gnulib-tool was young.
44822         Since then, it has seen improvements that render much of this
44823         script unnecessary.  In particular, it can now make symlinks
44824         to the files it uses.  Also, I no longer see as much value in
44825         marking files as read-only via comments.
44826         If you relied on the symlink-creation feature of the preceding
44827         version of this script, you can get most of that functionality
44828         by adding the --symlink option to the definition of
44829         gnulib_tool_option_extras in your bootstrap.conf file.
44830         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
44831         Run autopoint and libtoolize *before* gnulib-tool.
44832         After it, run an abbreviated autoreconf, rather than a loop around
44833         all tools.
44834         (slirp, bt_mark_as_generated): Remove functions.
44836 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
44838         ftoastr: fix typo
44839         * lib/ftoastr.h: Fix misspelling in comment.
44841 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
44843         * top/README-release: fix punctuation.
44845 2011-12-17  Jim Meyering  <meyering@redhat.com>
44847         bootstrap: correct the recent buildreq change
44848         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
44849         had no effect.
44850         * build-aux/bootstrap (buildreq): Bracket each search term with
44851         "*...*", so that the shell "case" statement works as intended.
44852         Add comments.
44854 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
44856         build: let bootstrap resort to wget when downloading .po files
44857         * build-aux/bootstrap (download_po_files): Fallback to wget when
44858         downloading the .po files via rsync fails.  This is necessary to
44859         bootstrap from behind a strict firewall.
44861 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44863         stdint: don't assume C++11 when compiling with g++
44864         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
44865         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00099.html>.
44866         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
44867         work also in C++ before C++11, as that improperly inhibits
44868         generating a substitute stdint.h for that case.
44870 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
44872         alloca: protect comment from gnulib-tool
44873         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
44874         that gnulib-tool doesn't think it's a license, and munge it to
44875         say "GCC version 3".
44877 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
44879         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
44880         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
44881         $(abs_top_builddir) instead of $(top_builddir).
44883 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
44885         strftime-tests: also test nanoseconds
44886         * tests/test-strftime.c (T): Add a test of %N.
44888 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
44890         inttypes, stdint: add C++11 support
44891         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
44892         when including inttypes.h and stdint.h.  Support this change to
44893         the standard.
44894         * doc/posix-headers/inttypes.texi (inttypes.h):
44895         * doc/posix-headers/stdint.texi (stdint.h): Document this.
44896         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
44897         Define if not defined already, for the benefit of pre-C++11 hosts.
44898         Define the standard format macros (e.g., PRId8) always.
44899         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
44900         Likewise, if __cpluspus.  Define the standard constant and limit
44901         macros (e.g., INT8_C, INT8_MAX) always.
44902         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
44903         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
44904         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
44905         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
44906         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
44907         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
44908         Likewise.
44910 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44912         nonblocking tests: Fix test failure on Linux/PPC.
44913         Suggested by Prerna Saxena in
44914         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00080.html>.
44915         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
44916         Set to 1100000.
44918 2011-12-12  Jim Meyering  <meyering@redhat.com>
44920         argmatch: don't hard-code `' when listing valid option arguments
44921         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
44922         use the quote function to add quotes.  Use fputs rather than
44923         fprintf for the format string with no format directive.
44925 2011-12-07  Eric Blake  <eblake@redhat.com>
44927         bootstrap: detect tools required by gnulib-tool
44928         * build-aux/bootstrap (buildreq): Provide minimum implicit
44929         dependencies.
44930         * DEPENDENCIES: Mention patch as a prereq.
44932 2011-12-04  Bruno Haible  <bruno@clisp.org>
44934         sethostname: Port to Windows platforms.
44935         * lib/sethostname.c: Provide an alternate implementation for Windows
44936         platforms.
44937         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
44938         (main): Skip the test if sethostname() fails with EPERM. On Windows
44939         platforms, don't check the result of gethostname().
44941 2011-12-04  Bruno Haible  <bruno@clisp.org>
44942             Jim Meyering  <meyering@redhat.com>
44944         tests: Avoid spurious error message on platforms without mktemp program.
44945         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
44947 2011-12-04  Bruno Haible  <bruno@clisp.org>
44949         sethostname: Fix documentation.
44950         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
44951         "not fixed" section.
44953 2011-12-03  Bruno Haible  <bruno@clisp.org>
44955         gnulib-tool: Verify that the License field is present and non-empty.
44956         * gnulib-tool (func_get_license_raw): New function, extracted from
44957         func_get_license.
44958         (func_get_license): Use it. Warn if the module is not a test module and
44959         has no license.
44960         Suggested by Jim Meyering.
44962 2011-12-03  Bruno Haible  <bruno@clisp.org>
44964         sethostname tests: Fix link error on mingw.
44965         * tests/test-sethostname1.c: New file, extracted from
44966         tests/test-sethostname.c.
44967         * tests/test-sethostname2.c: New file, extracted from
44968         tests/test-sethostname.c.
44969         * tests/test-sethostname.c: Remove file.
44970         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
44971         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
44972         (Depends-on): Add gethostname.
44973         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
44974         Link the latter with $(GETHOSTNAME_LIB).
44976         sethostname tests: Fix compilation error on mingw.
44977         * tests/test-sethostname.c: Don't include <sys/types.h>.
44978         (geteuid): Use a dummy value without uid_t.
44979         * modules/sethostname-tests (Depends-on): Remove sys_types.
44981         sethostname tests: Avoid a gcc warning.
44982         * tests/test-sethostname.c (main): Remove an unused variable.
44984         Tweak last commit.
44985         * modules/sethostname-tests (Files): Sort by decreasing importance.
44986         (configure.ac): Check for geteuid.
44987         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
44988         the test when there's nothing to test. Drop an unnecessary cast.
44989         Improve an error message. Verify that the final sethostname() call
44990         succeeds.
44992 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
44994         Add a test suite for the sethostname module.
44995         * modules/sethostname-tests: New file.  A test program
44996         for the sethostname module.
44997         * tests/test-sethostname.c: Likewise.
44999 2011-12-03  Bruno Haible  <bruno@clisp.org>
45001         Tweak last commit.
45002         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
45003         Fix preprocessor directives indentation. Fix typos.
45004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
45005         * modules/unistd (Makefile): Likewise.
45007 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45009         Integrate the sethostname module into unistd.
45010         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
45011         into the unistd.h header.
45012         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
45013         preprocessor directives.
45014         * modules/unistd: Setup the Makefile substitutions of the
45015         SETHOSTNAME preprocessor directives.
45017 2011-12-03  Bruno Haible  <bruno@clisp.org>
45019         Tweak last commit.
45020         * lib/sethostname.c: Don't include <string.h>.
45021         (sethostname): No need to copy the argument string to the stack. Don't
45022         call clearerr. Preserve errno when fprintf failed.
45023         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
45024         Don't invoke AC_REPLACE_FUNCS.
45025         * modules/sethostname (Link): Remove empty section.
45026         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
45027         failure problem.
45029 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45031         New module 'sethostname'.
45032         * lib/sethostname.c (sethostname): New file.  Provide sethostname
45033         for systems that lack it.
45034         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
45035         sethostname declaration and function.
45036         * modules/sethostname: New file.  Define the sethostname module.
45038 2011-12-03  Bruno Haible  <bruno@clisp.org>
45040         Tweak last commit.
45041         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
45043 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
45045         Split the HOST_NAME_MAX detection into a separate m4 macro.
45046         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
45047         macro so it can be used by the pending sethostname module.
45049 2011-12-03  Bruno Haible  <bruno@clisp.org>
45051         Fix module descriptions syntax.
45052         * modules/argv-iter (License): Fix syntax.
45053         * modules/di-set (License): Likewise.
45054         * modules/ino-map (License): Likewise.
45055         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
45057 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
45059         stdalign: port to Clang 3.0
45060         Problem reported by Simon Josefsson in
45061         <http://lists.gnu.org/r/bug-gnulib/2011-12/msg00005.html>.
45062         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
45063         which has <stdalign.h> but which does not define alignof.
45064         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
45066 2011-12-01  Eric Blake  <eblake@redhat.com>
45068         mktempd: silence dd usage
45069         * build-aux/mktempd (rand_bytes): Silence dd.
45071 2011-11-30  Simon Josefsson  <simon@josefsson.org>
45073         manywarnings: Don't mention gcc version in docstring.
45074         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
45075         Jim Meyering <meyering@redhat.com>.
45077 2011-11-30  Jim Meyering  <meyering@redhat.com>
45079         hash: mark a few floating point constants with "f" suffix
45080         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
45081         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
45082         floating point constants with "f", since they're destined to be
45083         saved/used as "float"s.
45085 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
45087         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
45088         * tests/test-float.c (test_long_double): Correct and re-enable the
45089         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
45091 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
45093         Avoid subtracting two pointers that don't point into the same block.
45094         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
45095         only pointers into the same memory block are subtracted. We cannot
45096         assume that sizeof (ptrdiff_t) == sizeof (void *).
45098 2011-11-29  Eric Blake  <eblake@redhat.com>
45100         maint.mk: add syntax check for use of compare from init.sh
45101         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
45102         moved here from coreutils.
45104         manywarnings: drop -Wunsuffixed-float-constants
45105         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
45106         '1.0D', which is the only way to silence this warning for 'double'.
45108 2011-11-29  Jim Meyering  <meyering@redhat.com>
45110         hash: mark compute_bucket_size with the pure attribute
45111         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
45113         quotearg, propername: correct pragma guard expression
45114         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
45115         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
45117 2011-11-28  Jim Meyering  <meyering@redhat.com>
45119         propername: do not mark proper_name with the const attribute
45120         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
45121         since it examines data pointed to by its parameter.
45122         * lib/propername.c (proper_name): Instead, add a pragma to suppress
45123         the suggestion from -Wsuggest-attribute=const.
45125         propername: mark one more function as const
45126         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
45128 2011-11-27  Jim Meyering  <meyering@redhat.com>
45130         mark functions with const and pure attributes
45132         Mark functions per suggestions from gcc-4.6 when using these options:
45133         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
45134         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
45135         Follow these guidelines: when possible, apply the attribute to
45136         an extern declaration, not to its definition.  Apply it to the
45137         definition only when the definition is static.
45138         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
45139         * lib/argv-iter.h (argv_iter_n_args): Likewise.
45140         * lib/base64.h (isbase64): Likewise.
45141         * lib/basename-lgpl.c (last_component, base_len): Likewise.
45142         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
45143         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
45144         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
45145         (c_tolower, c_toupper): Likewise.
45146         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
45147         * lib/chdir-long.c (find_non_slash): Likewise.
45148         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
45149         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
45150         * lib/file-type.h (file_type): Likewise.
45151         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
45152         * lib/filevercmp.c (verrevcmp): Likewise.
45153         * lib/freadahead.h (freadahead): Likewise.
45154         * lib/fts.c (fts_maxarglen): Likewise.
45155         * lib/hash-pjw.h (hash_pjw): Likewise.
45156         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
45157         * lib/hash.c (is_prime, next_prime): Likewise.
45158         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
45159         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
45160         (hash_table_ok, hash_get_first, hash_string): Likewise.
45161         (compute_bucket_size): Likewise.
45162         * lib/i-ring.h (i_ring_empty): Likewise.
45163         * lib/isnan.c (isnanl): Likewise.
45164         * lib/math.h (isnanl, rpl_isnanl): Likewise.
45165         * lib/memcasecmp.h (memcasecmp): Likewise.
45166         * lib/memchr2.h (memchr2): Likewise.
45167         * lib/memcmp2.h (memcmp2): Likewise.
45168         * lib/parse-datetime.y (lookup_zone): Likewise.
45169         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
45170         [!WINDOWS_SOCKETS]: Likewise.
45171         * lib/strnlen1.h (strnlen1): Likewise.
45172         * lib/uniwidth.in.h (uc_width): Likewise.
45173         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
45174         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
45175         (quoting_options_from_style): Add a comment.
45176         * lib/propername.h (proper_name): Add a comment.
45178 2011-11-27  Bruno Haible  <bruno@clisp.org>
45180         Remove unused macros from !_LIBC code in glibc-borrowed files.
45181         * lib/fnmatch.c (STRCOLL): Remove macro.
45182         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
45183         * lib/glob.c (__stat, __readdir64): Remove macros.
45184         * lib/tempname.c (__open64, __xstat64): Remove macros.
45185         Suggested by Paul Eggert.
45187 2011-11-27  Bruno Haible  <bruno@clisp.org>
45189         getcwd: Fix link error on MSVC 9.
45190         * modules/getcwd (Depends-on): Add readdir, rewinddir.
45192 2011-11-27  Bruno Haible  <bruno@clisp.org>
45194         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
45195         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
45196         HAVE_OPENDIR is 0.
45197         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
45198         HAVE_CLOSEDIR is 0.
45199         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
45200         is 0.
45201         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
45203 2011-11-27  Bruno Haible  <bruno@clisp.org>
45205         getcwd: Fix bug from 2011-08-17.
45206         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
45207         platforms that need it.
45208         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
45209         code of 4 to be a failure, not a success. This ensures that
45210         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
45212 2011-11-27  Bruno Haible  <bruno@clisp.org>
45214         binary-io tests: Avoid test failure on mingw when libtool is used.
45215         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
45216         Don't verify the size of t-bin-out1.tmp here.
45217         * tests/test-binary-io.sh: Verify it here.
45218         Reported by Simon Josefsson.
45220 2011-11-26  Bruno Haible  <bruno@clisp.org>
45222         Fix conflict between two instantiations of module 'unistd'.
45223         * gnulib-tool (func_emit_autoconf_snippet): Substitute
45224         ${include_guard_prefix} also in the autoconf snippet.
45225         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
45226         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
45227         GNULIB_UNISTD_H_GETOPT.
45228         * modules/getopt-posix (configure.ac): Set the
45229         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
45230         * modules/getopt-gnu (configure.ac): Likewise.
45231         * modules/unistd (Makefile.am): Change the substitution value of
45232         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
45233         Reported by Simon Josefsson.
45235 2011-11-25  Bruno Haible  <bruno@clisp.org>
45237         pagealign_alloc: Doc and comments.
45238         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
45239         module.
45240         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
45242 2011-11-25  Jim Meyering  <meyering@redhat.com>
45244         test-update-copyright.sh: avoid false-positive failure
45245         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
45246         around false positive failure on Cygwin/Windows.  The latter was
45247         matching erroneously-created files with names like
45248         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
45250 2011-11-25  Simon Josefsson  <simon@josefsson.org>
45252         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
45253         * m4/valgrind-tests.m4: Check that the parameters that will be
45254         used works, not just a subset of them.  Reported by Bruno Haible
45255         <bruno@clisp.org>.
45257 2011-11-24  Jim Meyering  <meyering@redhat.com>
45259         test-stdalign.c: comment out long double tests
45260         * tests/test-stdalign.c: Don't try to reduce alignment of long double
45261         variables.  That provokes errors like this from gcc-4.7.0 20111124:
45262         error: '_Alignas' specifiers cannot reduce alignment of \
45263         'static_longdouble_alignas'.
45265 2011-11-22  Jim Meyering  <meyering@redhat.com>
45267         init.sh: make "compare /dev/null FILE" output more readable
45268         * tests/init.sh (compare_): Document the preferred order of arguments.
45269         (emit_diff_u_header_): New function.
45270         (compare_dev_null_): Emit a simulated diff, rather than just the
45271         contents of the unexpected file.  Suggestion from Bruno Haible.
45273 2011-11-21  Jim Meyering  <meyering@redhat.com>
45274             Eric Blake  <eblake@redhat.com>
45276         init.sh: work around OSF/1 5.1's mishandling of /dev/null
45277         * tests/init.sh: Make our compare function slightly more portable.
45278         Reported by Bruno Haible in
45279         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
45281 2011-11-21  Simon Josefsson  <simon@josefsson.org>
45283         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
45284         before using it, in code that ends up in config.h.
45286 2011-11-20  Bruno Haible  <bruno@clisp.org>
45288         getcwd: Work around getcwd bug on AIX 5..7.
45289         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
45290         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
45291         Use a different value for gl_cv_func_getcwd_path_max. Move the
45292         definition of HAVE_PARTLY_WORKING_GETCWD from here...
45293         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
45294         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
45295         Define HAVE_MINIMALLY_WORKING_GETCWD.
45296         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
45297         where it is not even minimally working, that is, on AIX.
45298         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
45299         m4/getcwd-path-max.m4.
45300         (main): Update exit code computation.
45301         * doc/posix-functions/getcwd.texi: Mention list of platforms where
45302         getcwd does not handle long file names.
45304 2011-11-20  Bruno Haible  <bruno@clisp.org>
45306         getcwd: Fix bug from 2009-09-10.
45307         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
45308         like "no".
45310 2011-11-20  Simon Josefsson  <simon@josefsson.org>
45312         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
45314 2011-11-20  Bruno Haible  <bruno@clisp.org>
45316         fma tests: Avoid shadowing local variables.
45317         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
45318         expected.
45320 2011-11-20  Bruno Haible  <bruno@clisp.org>
45322         copysignf tests: Fix.
45323         * tests/test-copysignf.c: Fix signature check.
45325 2011-11-20  Bruno Haible  <bruno@clisp.org>
45327         fma: Remove unused code.
45328         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
45329         unused macros.
45331 2011-11-20  Bruno Haible  <bruno@clisp.org>
45333         sethostname: Fix doc about AIX.
45334         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
45335         sethostname; it has it.
45337         sethostname: Mention more portability problems.
45338         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
45339         problem.
45340         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
45342 2011-11-19  Bruno Haible  <bruno@clisp.org>
45344         Depend on module fcntl-h when AT_FDCWD is used.
45345         * modules/utimens (Depends-on): Add fcntl-h.
45346         * modules/areadlinkat (Depends-on): Likewise.
45347         * modules/areadlinkat-with-size (Depends-on): Likewise.
45348         * modules/faccessat (Depends-on): Likewise.
45349         * modules/fchmodat (Depends-on): Likewise.
45350         * modules/fchownat (Depends-on): Likewise.
45351         * modules/getcwd (Depends-on): Likewise.
45352         * modules/mkdirat (Depends-on): Likewise.
45353         * modules/mkfifoat (Depends-on): Likewise.
45354         * modules/readlinkat (Depends-on): Likewise.
45355         * modules/symlinkat (Depends-on): Likewise.
45356         * modules/dup2-tests (Depends-on): Likewise.
45357         * modules/fdutimensat-tests (Depends-on): Likewise.
45358         * modules/futimens-tests (Depends-on): Likewise.
45360 2011-11-19  Bruno Haible  <bruno@clisp.org>
45362         euidaccess: Update a comment.
45363         * lib/euidaccess.c: Update comment about platforms with faccessat.
45365 2011-11-19  Bruno Haible  <bruno@clisp.org>
45367         openat: Fix file list.
45368         * modules/openat (Files): Remove lib/at-func.c.
45370 2011-11-19  Bruno Haible  <bruno@clisp.org>
45372         fstatat: Simplify.
45373         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
45374         gnulib should define rpl_fstatat, there is a
45375         "#define fstatat rpl_fstatat" in <sys/stat.h>.
45377 2011-11-19  Bruno Haible  <bruno@clisp.org>
45379         Ensure 'inline' can be used in tests/test-utimens-common.h.
45380         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
45381         * modules/futimens-tests (configure.ac): Likewise.
45382         * modules/utimens-tests (configure.ac): Likewise.
45383         * modules/utimensat-tests (configure.ac): Likewise.
45385 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45387         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
45388         not hash_insert0.
45389         (hash_insert_if_absent): Doc fix.
45391 2011-11-19  Simon Josefsson  <simon@josefsson.org>
45393         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
45395 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
45397         test-getcwd: disambiguate exit status
45398         * tests/test-getcwd.c (test_long_name): Return 0..7.
45399         (main): Exit with an unambiguous exit status.  The old
45400         code yielded a mysterious mixture of two failure codes.
45402         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
45403         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
45404         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
45405         rpl_fstatat or fstatat.  This should fix the other problem
45406         reported by Kai Habel in
45407         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45408         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
45409         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00239.html>
45410         and I reproduced it on a Solaris 8 host we still have in production.
45412 2011-11-18  Jim Meyering  <meyering@redhat.com>
45414         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
45415         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
45416         Add a sentence to the comment.
45417         (hash_insert0): New function that simply calls hash_insert_if_absent.
45418         * lib/hash.h (hash_insert_if_absent): Declare it.
45419         (hash_insert0): Add deprecation attribute.
45420         (_GL_ATTRIBUTE_DEPRECATED): Define.
45421         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
45422         not hash_insert0.
45423         * NEWS: Mention it, even though it's not really an incompatible change.
45425 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
45427         openat: avoid compilation failure due to lack of <errno.h> inclusion
45428         * lib/openat.c: Include <errno.h>.
45430 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45432         * modules/getcwd (Depends-on): Add fdopendir.
45433         This fixes one of the two problems reported by Kai Habel in
45434         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00237.html>.
45436         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
45437         stdalign problem reported by Ian Beckwith in
45438         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00238.html>.
45439         * modules/crypto/gc-arcfour (Depends-on):
45440         Depend conditionally on crypto/arcfour.
45441         * modules/crypto/gc-arctwo (Depends-on):
45442         Depend conditionally on crypto/arctwo.
45443         * modules/crypto/gc-des (Depends-on):
45444         Depend conditionally on crypto/des.
45445         * modules/crypto/gc-hmac-md5 (Depends-on):
45446         Depend conditionally on crypto/hmac-md5.
45447         * modules/crypto/gc-hmac-sha1 (Depends-on):
45448         Depend conditionally on crypto/hmac-sha1.
45449         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
45450         * modules/crypto/gc-md4 (Depends-on):
45451         Depend conditionally on crypto/md4.
45452         * modules/crypto/gc-md5 (Depends-on):
45453         Depend conditionally on crypto/md5.
45454         * modules/crypto/gc-rijndael (Depends-on):
45455         Depend conditionally on crypto/rijndael.
45456         * modules/crypto/gc-sha1 (Depends-on):
45457         Depend conditionally on crypto/sha1.
45458         * modules/crypto/gc-arcfour:
45459         * modules/crypto/gc-arctwo:
45460         * modules/crypto/gc-des:
45461         * modules/crypto/gc-hmac-md5:
45462         * modules/crypto/gc-hmac-sha1:
45463         * modules/crypto/gc-md2:
45464         * modules/crypto/gc-md4:
45465         * modules/crypto/gc-md5:
45466         * modules/crypto/gc-rijndael:
45467         * modules/crypto/gc-sha1:
45468         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
45469         now that the conditional dependencies do the work for us.
45471 2011-11-17  Jim Meyering  <meyering@redhat.com>
45473         tests: factor st_ctime-comparison out of two headers
45474         * tests/test-utimens-common.h (ctime_compare): Define.
45475         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
45476         * tests/test-lutimens.h (test_lutimens): Likewise.
45477         * tests/test-utimens.h (test_utimens): Likewise.
45479         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
45480         Invoke the test program via an init.sh-using wrapper.
45481         * tests/test-getcwd.sh: New file.
45482         * modules/getcwd-tests (Files): Add it.
45483         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
45485 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
45487         gitlog-to-changelog: support multi-author commits.
45488         The FSF cares about keeping track of all authors of patches to its
45489         projects, but Git doesn't provide obvious support for multi-author
45490         changesets. Consensus seems to be forming around the use of extra
45491         Signed-off-by inspired lines in the log message formatted as
45492         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
45493         multi-author commits between version control systems.
45494         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
45495         log message and output in standard ChangeLog multi-author format.
45496         Reported by Peter Rosin <peda@lysator.liu.se>
45498 2011-11-15  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
45499             Bruno Haible  <bruno@clisp.org>
45501         Fix some modules' file list.
45502         * modules/fstatat (Files): Add m4/lstat.m4.
45503         * modules/openat (Files): Likewise.
45504         * modules/unlinkat (Files): Likewise.
45506 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
45508         maint.mk: fix tight-scope.mk generation in VPATH builds.
45509         * top/maint.mk (tight-scope.mk): Make sure to prefix file
45510         reference with $(srcdir) so that the file is found correctly even
45511         when running `make syntax-check' in a VPATH build.
45513 2011-11-13  Bruno Haible  <bruno@clisp.org>
45514             Jim Meyering  <meyering@redhat.com>
45516         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
45517         * tests/init.sh (compare): Remove "No differences encountered" or
45518         synonymous output from the 'diff' program.
45520 2011-11-13  Bruno Haible  <bruno@clisp.org>
45522         Makefile: Tweak indentation.
45523         * Makefile: Use tab as first character in every line that contains rule
45524         commands.
45526 2011-11-13  Bruno Haible  <bruno@clisp.org>
45528         Syntax check for copyright statements.
45529         * check-copyright: New file.
45530         * Makefile (sc_check_copyright): New rule.
45532 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45534         * build-aux/git-version-gen: Add --prefix to configure the tag
45535         match string.
45537 2011-11-13  Simon Josefsson  <simon@josefsson.org>
45539         * build-aux/git-version-gen: Add --help and --version.
45541 2011-11-12  Jim Meyering  <meyering@redhat.com>
45543         revamp the other test-exclude?.sh scripts to use init.sh, too
45544         * tests/test-exclude1.sh: Use init.sh.
45545         * tests/test-exclude2.sh: Likewise.
45546         * tests/test-exclude3.sh: Likewise.
45547         * tests/test-exclude4.sh: Likewise.
45548         * tests/test-exclude5.sh: Likewise.
45549         * tests/test-exclude6.sh: Likewise.
45550         * tests/test-exclude7.sh: Likewise.
45551         * tests/test-exclude8.sh: Likewise.
45552         * modules/exclude-tests (Files): List init.sh.
45554         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
45555         These shell scripts ignored failure of the binary test-exclude,
45556         so making the latter return 77 didn't cause them to be skipped.
45557         * tests/test-exclude5.sh: Exit with test-exclude's error status
45558         when that program fails.  Revamp to use init.sh.
45559         * tests/test-exclude2.sh: Likewise.
45561         test-exclude: fix a typo
45562         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
45564 2011-11-11  Bruno Haible  <bruno@clisp.org>
45566         obstack: Fix compilation error on MSVC 9.
45567         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
45569 2011-11-11  Jim Meyering  <meyering@redhat.com>
45571         test-exclude: skip tests rather than failing on deficient systems
45572         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
45573         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
45574         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
45575         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
45577 2011-11-10  Bruno Haible  <bruno@clisp.org>
45579         ptsname_r test: Avoid gcc warning on glibc systems.
45580         * tests/test-ptsname_r.c (null_ptr): New function.
45581         (test_errors): Use it.
45583 2011-11-10  Bruno Haible  <bruno@clisp.org>
45585         ptsname_r: Avoid compilation error on OSF/1 5.1.
45586         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
45587         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
45588         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
45589         function is not declared or incompatibly declared.
45590         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
45591         * modules/ptsname_r (Depends-on, configure.ac): Update.
45592         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
45594 2011-11-10  Bruno Haible  <bruno@clisp.org>
45596         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
45597         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
45598         When cross-compiling, guess yes on all platforms except AIX.
45599         Reported by Ludovic Courtès <ludo@gnu.org>.
45601 2011-11-09  Bruno Haible  <bruno@clisp.org>
45603         ptsname_r tests: Fix bugs.
45604         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
45605         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
45607 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45609         fstatat: work with cross-compilation
45610         Problem reported by Ludovic Courtès in
45611         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00136.html>.
45612         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
45613         "cross-compiling" and assume the bug is present.  Replace
45614         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
45615         an inverted sense, to be more conservative about our assumptions.
45616         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
45618 2011-11-09  Bruno Haible  <bruno@clisp.org>
45620         Improve MODULES.html output.
45621         * modules/mkfifoat (Description): Use the word "function".
45622         * modules/readlinkat (Description): Likewise.
45623         * modules/symlinkat (Description): Likewise.
45625 2011-11-09  Eric Blake  <eblake@redhat.com>
45627         ptsname_r-tests: new test module
45628         * modules/ptsname_r-tests: New module.
45629         * tests/test-ptsname_r.c: New file.
45631         ptsname_r: new module
45632         * modules/ptsname_r: New module.
45633         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
45634         * lib/ptsname.c (__ptsname_r): Split...
45635         * lib/ptsname_r.c: ...into new file.
45636         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
45637         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
45638         * modules/stdlib (Makefile.am): Substitute witnesses.
45639         * lib/stdlib.in.h (ptsname_r): Declare it.
45640         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
45641         * MODULES.html.sh (Misc): Likewise.
45642         * modules/ptsname (Depends-on): Alter dependency.
45643         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
45645 2011-11-09  Jim Meyering  <meyering@redhat.com>
45647         announce-gen: be more concise when there's only one URL+tarball
45648         * build-aux/announce-gen (get_tool_versions): When you distribute
45649         only one type of tarball, combine the first two "Here are..."
45650         sections and make the key-checking grammar independent of
45651         how many tarballs there are.
45653 2011-11-09  Eric Blake  <eblake@redhat.com>
45655         openpty: provide a stub on mingw
45656         * lib/pty.in.h (includes): Provide forward declarations.
45657         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
45659         raise: fix mingw handling of SIGPIPE
45660         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
45662 2011-11-08  Bruno Haible  <bruno@clisp.org>
45664         More conditional dependencies.
45665         * modules/faccessat (Depends-on): Add conditions.
45666         * modules/fchmodat (Depends-on): Likewise.
45667         * modules/fchownat (Depends-on): Likewise.
45668         * modules/fstatat (Depends-on): Likewise.
45669         * modules/mkfifoat (Depends-on): Likewise.
45670         * modules/readlinkat (Depends-on): Likewise.
45671         * modules/symlinkat (Depends-on): Likewise.
45672         * modules/unlinkat (Depends-on): Likewise.
45673         * modules/utimensat (Depends-on): Likewise.
45674         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
45675         * modules/linkat (Depends-on): Refine the conditions.
45676         * modules/renameat (Depends-on): Likewise.
45678 2011-11-08  Bruno Haible  <bruno@clisp.org>
45680         faccessat: Move AC_LIBOBJ invocation to module description.
45681         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
45682         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
45683         invocation from here...
45684         * modules/faccessat (configure.ac): ... to here. Invoke
45685         gl_PREREQ_FACCESSAT.
45687 2011-11-08  Bruno Haible  <bruno@clisp.org>
45689         faccessat: Simplify autoconf macro.
45690         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
45691         gl_FUNC_EUIDACCESS.
45693 2011-11-08  Bruno Haible  <bruno@clisp.org>
45695         renameat: Fix dependencies.
45696         * modules/renameat (Depends-on): Add stdbool.
45698 2011-11-08  Bruno Haible  <bruno@clisp.org>
45700         mkfifoat: Fix module description.
45701         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
45702         not gl_UNISTD_MODULE_INDICATOR.
45704 2011-11-08  Bruno Haible  <bruno@clisp.org>
45706         fstatat: Remove unused dependency.
45707         * modules/fstatat (Depends-on): Remove fstat.
45709 2011-11-08  Simon Josefsson  <simon@josefsson.org>
45711         GNUmakefile: behave when Makefile is missing.
45712         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
45714 2011-11-08  Bruno Haible  <bruno@clisp.org>
45716         openat: Conditionalize dependencies.
45717         * lib/openat.c: Reduce the scope of some #includes.
45718         * modules/openat (Depends-on): Add conditions.
45720 2011-11-07  Jim Meyering  <meyering@redhat.com>
45722         maint.mk: extract GPG key ID without using a temporary file
45723         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
45724         without using a temporary file.  Based on a suggestion from Werner Koch
45725         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
45727 2011-11-07  Eric Blake  <eblake@redhat.com>
45729         grantpt: fix typo
45730         * lib/stdlib.in.h (grantpt): Check correct function.
45732         maint.mk: silence new syntax check
45733         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
45735 2011-11-06  Bruno Haible  <bruno@clisp.org>
45737         Doc about floating-point and math API.
45738         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
45739         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
45741 2011-11-06  Bruno Haible  <bruno@clisp.org>
45743         stdalign tests: Skip the test when compiled by Sun C.
45744         * tests/test-stdalign.c (main): Skip the test on Sun C.
45746 2011-11-06  Bruno Haible  <bruno@clisp.org>
45748         ansi-c++-opt: Complete the 2011-06-05 change.
45749         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
45750         does not support namespaces, set the variable to "no", not to ":".
45752 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
45754         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
45756 2011-11-06  Bruno Haible  <bruno@clisp.org>
45758         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
45759         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
45760         (minus_zerol) [HP-UX]: New macro.
45761         (unary_minus) [HP-UX]: New function.
45762         (copysignl) [HP-UX]: Use unary_minus function.
45764 2011-11-06  Bruno Haible  <bruno@clisp.org>
45766         ldexp, ldexpf, ldexpl: Enhance tests.
45767         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
45768         and tests/test-ldexpl.c.
45769         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
45770         LDEXP, MIN_EXP, MAX_EXP): New macros.
45771         Include test-ldexp.h.
45772         (main): Just call test_function.
45773         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
45774         infinity.h, nan.h.
45775         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45776         MAX_EXP): New macros.
45777         Include test-ldexp.h.
45778         (x, y): Remove variables.
45779         (main): Just call test_function.
45780         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
45781         infinity.h, nan.h.
45782         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
45783         MAX_EXP): New macros.
45784         Include test-ldexp.h.
45785         (x, y): Remove variables.
45786         (main): Just call test_function.
45787         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
45788         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
45789         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45790         (Depends-on): Add isnand-nolibm, signbit, float.
45791         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
45792         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
45793         (Depends-on): Add isnanf-nolibm, signbit, float.
45795 2011-11-06  Bruno Haible  <bruno@clisp.org>
45797         math tests: Cosmetics.
45798         * tests/test-math-c++.cc: Reorder declarations.
45800 2011-11-05  Bruno Haible  <bruno@clisp.org>
45802         fma*: Simplify test.
45803         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
45804         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
45806         Tests for module 'fmal'.
45807         * modules/fmal-tests: New file.
45808         * tests/test-fmal1.c: New file.
45809         * tests/test-fmal2.c: New file.
45811         New module 'fmal'.
45812         * lib/math.in.h (fmal): New declaration.
45813         * lib/fmal.c: New file.
45814         * m4/fmal.m4: New file.
45815         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
45816         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
45817         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
45818         REPLACE_FMAL.
45819         * modules/fmal: New file.
45820         * doc/posix-functions/fmal.texi: Mention the new module and the various
45821         bugs.
45823         Tests for module 'fmaf'.
45824         * modules/fmaf-tests: New file.
45825         * tests/test-fmaf1.c: New file.
45826         * tests/test-fmaf2.c: New file.
45828         New module 'fmaf'.
45829         * lib/math.in.h (fmaf): New declaration.
45830         * lib/fmaf.c: New file.
45831         * m4/fmaf.m4: New file.
45832         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
45833         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
45834         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
45835         REPLACE_FMAF.
45836         * modules/fmaf: New file.
45837         * doc/posix-functions/fmaf.texi: Mention the new module and the various
45838         bugs.
45840         Tests for module 'fma'.
45841         * modules/fma-tests: New file.
45842         * tests/test-fma1.c: New file.
45843         * tests/test-fma1.h: New file.
45844         * tests/test-fma2.c: New file.
45845         * tests/test-fma2.h: New file.
45847         New module 'fma'.
45848         * lib/math.in.h (fma): New declaration.
45849         * lib/fma.c: New file.
45850         * m4/fma.m4: New file.
45851         * m4/fegetround.m4: New file.
45852         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
45853         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
45854         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
45855         REPLACE_FMA.
45856         * modules/fma: New file.
45857         * doc/posix-functions/fma.texi: Mention the new module and the various
45858         bugs.
45860         Extend gl_MATHFUNC.
45861         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
45862         Support 'void' as argument type.
45863         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
45865 2011-11-05  Jim Meyering  <meyering@redhat.com>
45867         maint.mk: also prohibit inclusion of dirent.h without use
45868         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
45870 2011-11-05  Bruno Haible  <bruno@clisp.org>
45872         ldexpl tests: Avoid test failure on MSVC 9.
45873         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
45874         value. Needed in order to enforce the conversion from a value greater
45875         than LDBL_MAX to Infinity.
45877 2011-11-05  Bruno Haible  <bruno@clisp.org>
45879         New modules 'at-internal', 'openat-h', split off from module 'openat'.
45880         * modules/at-internal: New file, extracted from modules/openat.
45881         * modules/openat-h: New file.
45882         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
45883         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
45884         * modules/openat (Description): Add reference to POSIX function.
45885         (Files): Remove lib/openat.h, lib/openat-proc.c.
45886         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
45887         intprops, unistd.
45888         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
45889         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
45890         gl_FCNTL_MODULE_INDICATOR.
45891         (Include): Remove unistd.h, openat.h.
45892         * modules/areadlinkat (Files): Add lib/at-func.c.
45893         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45894         openat-die, openat-h, save-cwd.
45895         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
45896         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45897         openat-die, openat-h, save-cwd, unistd.
45898         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
45899         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45900         openat-h, save-cwd. Remove fcntl-h, openat.
45901         * modules/fchmodat (Files): Remove lib/openat.h.
45902         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45903         openat, stdbool, unistd.
45904         * modules/fchownat (Files): Remove lib/openat.h.
45905         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45906         openat, stdbool, sys_stat.
45907         * modules/fdopendir (Files): Remove lib/openat-priv.h,
45908         lib/openat-proc.c.
45909         (Depends-on): Add at-internal.
45910         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
45911         * modules/fstatat (Files): Remove lib/openat.h.
45912         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45913         stdbool, unistd.
45914         * modules/fts (Depends-on): Add openat-h.
45915         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
45916         openat.
45917         * modules/mkdirat (Files): Remove lib/openat.h.
45918         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
45919         openat, stdbool, sys_stat.
45920         * modules/mkfifoat (Files): Add lib/at-func.c.
45921         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45922         openat-h, save-cwd. Remove fcntl-h, openat.
45923         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
45924         * modules/readlinkat (Files): Add lib/at-func.c.
45925         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45926         openat-h, save-cwd. Remove fcntl-h, openat.
45927         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
45928         openat.
45929         * modules/selinux-at (Files): Add lib/at-func.c.
45930         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
45931         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
45932         * modules/symlinkat (Files): Add lib/at-func.c.
45933         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
45934         openat-h, save-cwd. Remove fcntl-h, openat.
45935         * modules/unlinkat (Files): Remove lib/openat.h.
45936         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
45937         stdbool.
45938         * modules/utimensat (Files): Add lib/at-func.c.
45939         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
45940         openat-die, openat-h, save-cwd.
45941         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
45942         * modules/fdutimensat-tests (Depends-on): Add openat.
45943         * modules/fstatat-tests (Depends-on): Add openat-h.
45944         * modules/readlinkat-tests (Depends-on): Add openat.
45945         * modules/symlinkat-tests (Depends-on): Add openat.
45947 2011-11-05  Bruno Haible  <bruno@clisp.org>
45949         openat: Include <stdbool.h>.
45950         * lib/openat.c: Include <stdbool.h>.
45952 2011-11-04  Bruno Haible  <bruno@clisp.org>
45954         fchownat, renameat, unlinkat: Fix dependencies.
45955         * modules/fchownat (Depends-on): Add fstatat.
45956         * modules/renameat (Depends-on): Likewise.
45957         * modules/unlinkat (Depends-on): Likewise.
45959 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
45961         openat: remove direct dependency on dirent
45962         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
45963         and hasn't been needed ever since fdopendir was split into its own
45964         module on 2009-08-31.
45965         * modules/openat (Depends-on): Remove dirent.
45967 2011-11-04  Bruno Haible  <bruno@clisp.org>
45969         renameat: Optimize code size.
45970         * modules/renameat (configure.ac): Don't compile at-func2.c if
45971         REPLACE_RENAMEAT is 1.
45973 2011-11-04  Bruno Haible  <bruno@clisp.org>
45975         openat tests: Fix file list.
45976         * modules/openat-tests (Files): Add tests/test-open.h.
45978 2011-11-04  Bruno Haible  <bruno@clisp.org>
45980         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
45981         * modules/fchmodat (Depends-on): Add openat-die.
45982         * modules/fchownat (Depends-on): Likewise.
45983         * modules/linkat (Depends-on): Likewise.
45984         * modules/renameat (Depends-on): Likewise.
45985         * modules/openat (Depends-on): Add dirent.
45987 2011-11-04  Jim Meyering  <meyering@redhat.com>
45989         at-func*.c: fix comments
45990         * lib/at-func2.c: Correct/improve first-line comment.
45991         * lib/at-func.c: Correct grammar in first-line comment.
45993 2011-11-04  Bruno Haible  <bruno@clisp.org>
45995         New module 'mkdirat', split off from module 'openat'.
45996         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
45997         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
45998         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
45999         * modules/mkdirat: New file, extracted from modules/openat.
46000         * modules/openat (Files): Remove lib/mkdirat.c.
46001         (Depends-on): Remove mkdir.
46002         (configure.ac): Remove AC_LIBOBJ of mkdirat.
46003         (Include): Remove <sys/stat.h>.
46004         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
46005         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
46006         tests/test-mkdir.h.
46007         (Depends-on): Remove ignore-value.
46008         (Makefile.am): Remove rules for test-mkdirat.
46009         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
46010         of module 'openat'.
46011         * NEWS: Mention the change.
46013 2011-11-04  Bruno Haible  <bruno@clisp.org>
46015         closedir: Avoid warning on mingw.
46016         * lib/closedir.c: Include <unistd.h>.
46018 2011-11-04  Bruno Haible  <bruno@clisp.org>
46020         New module 'fstatat', split off from module 'openat'.
46021         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
46022         defined.
46023         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
46024         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
46025         gl_FUNC_FSTATAT.
46026         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
46027         * modules/fstatat: New file, extracted from modules/openat.
46028         * modules/openat (Files): Remove lib/fstatat.c.
46029         (Depends-on): Remove lstat.
46030         (configure.ac): Remove AC_LIBOBJ of fstatat.
46031         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
46032         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
46033         tests/test-lstat.h, tests/test-stat.h.
46034         (Depends-on): Remove getcwd-lgpl.
46035         (Makefile.am): Remove rules for test-fstatat.
46036         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
46037         of module 'openat'.
46038         * NEWS: Mention the change.
46039         * modules/getcwd (Depends-on): Add fstatat.
46040         * modules/linkat (Depends-on): Likewise.
46041         * modules/mkfifoat-tests (Depends-on): Likewise.
46042         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
46044 2011-11-03  Bruno Haible  <bruno@clisp.org>
46046         New module 'unlinkat', split off from module 'openat'.
46047         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
46048         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
46049         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
46050         * modules/unlinkat: New file, extracted from modules/openat. Correct
46051         the dependency conditions.
46052         * modules/openat (Files): Remove lib/unlinkat.c.
46053         (Depends-on): Remove rmdir, unlink.
46054         (configure.ac): Remove AC_LIBOBJ of unlinkat.
46055         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
46056         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
46057         tests/test-rmdir.h, tests/test-unlink.h.
46058         (Depends-on): Remove unlinkdir.
46059         (Makefile.am): Remove rules for test-unlinkat.
46060         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
46061         of module 'openat'.
46062         * NEWS: Mention the change.
46063         * modules/linkat-tests (Depends-on): Add unlinkat.
46064         * modules/mkfifoat-tests (Depends-on): Likewise.
46065         * modules/readlinkat-tests (Depends-on): Likewise.
46067 2011-11-02  Bruno Haible  <bruno@clisp.org>
46069         New module 'fchmodat', split off from module 'openat'.
46070         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
46071         defined.
46072         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
46073         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
46074         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
46075         * modules/fchmodat: New file, extracted from modules/openat.
46076         * modules/openat (Files): Remove lib/fchmodat.c.
46077         (configure.ac): Remove AC_LIBOBJ of fchmodat.
46078         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
46079         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
46080         (Makefile.am): Remove rules for test-fchmodat.
46081         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
46082         of module 'openat'.
46083         * NEWS: Mention the change.
46085 2011-11-02  Jim Meyering  <meyering@redhat.com>
46087         putenv: indent #definition of "environ" to placate cppi
46088         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
46090         gitlog-to-changelog: provide a ChangeLog-repair mechanism
46091         Git logs are often treated as immutable, because editing them
46092         changes the SHA1 checksums of all descendants.  Thus, errors in
46093         git logs tend to stay there forever.  However, when we generate
46094         a ChangeLog file -- typically for distribution -- from that git log,
46095         we can actually make corrections in the generated file.  The key
46096         lies in recording in machine-readable/applicable form the desired
46097         corrections.  See --help for description and an example.
46098         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
46099         (usage): Describe it; alphabetize option descriptions.
46100         (main): Honor the new option, carefully.
46102 2011-11-01  Jim Meyering  <meyering@redhat.com>
46104         gitlog-to-changelog: avoid an infloop
46105         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
46106         that ends up being empty.
46108 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46110         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
46111         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
46112         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
46113         contains (possibly-quoted) backslashes.  This should avoid
46114         all-too-common shell bugs if COMPLICATED contains backslashes in
46115         the "wrong" places.  Reported by David Evans in
46116         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00013.html>.
46117         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
46118         because we want ASCII ranges.  Is there some reason we don't use
46119         the C locale everywhere in this script?
46120         (func_module, top level): Avoid unwanted pathname expansion when
46121         $repo_url_prefix or $repo_url_suffix_repl contain shell
46122         metacharacters like '?' and '*'.
46124 2011-11-01  Bruno Haible  <bruno@clisp.org>
46126         fchownat: Improve description.
46127         * modules/fchownat (Description): Add link to function.
46129 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
46131         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
46132         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
46133         <http://lists.gnu.org/r/bug-gnulib/2011-11/msg00006.html>.
46134         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
46136 2011-11-01  Bruno Haible  <bruno@clisp.org>
46138         alignof: Avoid collision with stdalign module.
46139         * lib/alignof.h (alignof): Remove macro.
46140         * NEWS: Mention the change.
46141         Reported by Paul Eggert.
46143 2011-11-01  Bruno Haible  <bruno@clisp.org>
46145         New module 'fchownat', split off from module 'openat'.
46146         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
46147         defined.
46148         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
46149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
46150         invoke gl_FUNC_FCHOWNAT.
46151         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
46152         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
46153         * modules/fchownat: New file, extracted from modules/openat.
46154         * modules/openat (Files): Remove lib/fchownat.c.
46155         (Depends-on): Remove lchown.
46156         (configure.ac): Remove AC_LIBOBJ of fchownat.
46157         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
46158         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
46159         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
46160         (Depends-on): Remove mgetgroups, usleep, stat-time.
46161         (configure.ac): Remove test for getegid.
46162         (Makefile.am): Remove rules for test-fchownat.
46163         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
46164         of module 'openat'.
46165         * NEWS: Mention the change.
46167 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
46169         stdalign: port better to MSVC and to Sun C 5.11
46170         This fixes some of the problems reported by Bruno Haible in
46171         <http://lists.gnu.org/r/bug-gnulib/2011-10/msg00300.html>.
46172         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
46173         shortcomings of MSVC and of Sun C 5.11.
46174         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
46175         around __declspec arg.
46176         * modules/stdalign-tests (Files): Add tests/macros.h.
46177         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
46178         Include macros.h, for ASSERT.
46179         (DECLARE_ALIGNED): Remove.
46180         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
46181         to catch bug), and to 1 if not (simplifies the rest of the code).
46182         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
46183         (CHECK_AUTO): Remove.
46184         (CHECK_ALIGNED): Check only the alignment of the static vars,
46185         since auto var alignment isn't supported by Sun C 5.11.
46186         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
46187         ASSERT failures are easier to diagnose.
46189 2011-10-31  Bruno Haible  <bruno@clisp.org>
46191         doc about some IRIX 5.3 problems.
46192         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
46193         on IRIX 5.3.
46194         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
46195         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
46196         5.3.
46197         * doc/posix-functions/grantpt.texi: Likewise.
46198         * doc/posix-functions/unlockpt.texi: Likewise.
46199         * doc/posix-functions/lgamma.texi: Likewise.
46200         * doc/posix-functions/nextafter.texi: Likewise.
46201         * doc/posix-functions/remainder.texi: Likewise.
46202         * doc/posix-functions/select.texi: Mention misplaced declaration on
46203         IRIX 5.3.
46204         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46206 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
46208         gitlog-to-changelog: fix git-log invocation.
46209         git-log mishandles date strings before 1970-01-01 UTC, and there is
46210         no use to specify --since=1970-01-01 by default anyway.
46211         * build-aux/gitlog-to-changelog: By default, when no --since option
46212         was given, do not specify explicit --since option to git-log.
46214 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
46216         gitlog-to-changelog: new option --append-dot.
46217         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
46218         first non-blank line of each commit message terminated with a dot.
46220 2011-10-30  Bruno Haible  <bruno@clisp.org>
46222         ffsl, ffsll: Avoid compilation error due to 'restrict'.
46223         * lib/ffsl.h: Include <config.h>.
46224         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
46226 2011-10-30  Jim Meyering  <meyering@redhat.com>
46228         GNUmakefile: reenable "make syntax-check" for most projects
46229         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
46230         build-aux variable", "syntax-check" would do nothing but succeed with
46231         the "No version control files detected..." diagnostic (unless you
46232         happened to override _build-aux via cfg.mk).
46233         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
46234         to precede inclusion of maint.mk.  Otherwise, these variables would
46235         be used undefined in any project that does not override the default.
46237 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
46239         gitlog-to-changelog: treat a message with only blank lines as empty.
46240         * build-aux/gitlog-to-changelog: Move the code that removes leading and
46241         trailing blank lines before the code that issues a warning about an
46242         empty commit message.
46244 2011-10-30  Jim Meyering  <meyering@redhat.com>
46246         test-parse-datetime.c: avoid new DST-related false positive test failure
46247         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
46248         based on the time/date we'll convert, not the current time.
46249         Otherwise, the moment we cross a DST boundary like today's in
46250         Europe, (CEST to CET), that offset ends up being one hour off.
46252 2011-10-27  Bruno Haible  <bruno@clisp.org>
46254         fstat: Tweak documentation.
46255         * modules/fstat (Description): More precise description.
46257 2011-10-27  Bruno Haible  <bruno@clisp.org>
46259         Update documentation regarding 'largefile' module.
46260         * doc/posix-functions/fstat.texi: Tweak wording.
46261         * doc/posix-functions/opendir.texi: Mention that the module fixes the
46262         problems with huge directories and/or small ino_t types.
46263         * doc/posix-functions/readdir.texi: Likewise.
46264         * doc/posix-functions/rewinddir.texi: Likewise.
46266 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
46268         maint.mk: don't maintain a second build-aux variable.
46269         * maint.mk (build_aux): Removed.  The maintainer-makefile module
46270         depends on GNUmakefile, which already maintains a cfg.mk
46271         overridable $(_build-aux) for projects with a non-standard
46272         build-aux directory location, although without the $(srcdir)
46273         prefix.  Use that variable consistently instead of introducing a
46274         second one.  Adjust all call sites.
46276 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
46278         Add stdalign module and use it in other modules.
46279         This is based on a previous proposal by Bruno Haible
46280         <https://lists.gnu.org/r/bug-gnulib/2011-07/msg00226.html>.
46282         stdalign: new module
46283         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
46284         * modules/stdalign: New files.
46285         * MODULES.html.sh (c1x_core_properties): Add stdalign.
46286         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
46288         stdalign-tests: new module
46289         * modules/stdalign-tests, tests/test-stdalign.c: New files.
46291         argp: use stdalign
46292         * lib/argp-parse.c: Include <stdalign.h>.
46293         (alignof): Remove.
46294         * modules/argp (Depends-on): Add stdalign.
46296         crypto libraries: use stdalign
46297         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
46298         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
46299         Do not include <stdlib.h> twice, in md4.c.
46300         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
46301         because we are accessing a pointer's bit-pattern, not a size.
46302         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
46303         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
46304         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
46305         * modules/crypto/sha512: Likewise.
46307         sys_socket: use stdalign, not alignof
46308         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
46309         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
46311 2011-10-27  Bruno Haible  <bruno@clisp.org>
46313         raise test: Avoid a test failure on Linux/MIPS.
46314         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
46315         because 99 is a valid signal on Linux/MIPS.
46317 2011-10-27  Bruno Haible  <bruno@clisp.org>
46319         nonblocking tests: Fix test failure on Linux/MIPS.
46320         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
46321         Set to 270000.
46323 2011-10-27  Bruno Haible  <bruno@clisp.org>
46325         utimensat: Work around problem on Linux/hppa.
46326         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
46327         values.
46328         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
46330 2011-10-25  Jim Meyering  <meyering@redhat.com>
46332         maint.mk: fix a bug in sc_prohibit_stddef_without_use
46333         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
46334         after symbols like NULL, size_t, etc.
46335         Reported by Alfred M. Szmidt.
46337         maint.mk: exempt ENODATA from a syntax-check rule
46338         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
46339         from the sc_prohibit_always-defined_macros syntax-check rule.
46340         Add a comment.  See this for more details:
46341         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
46343 2011-10-23  Jim Meyering  <meyering@redhat.com>
46345         fts: close parent dir FD before returning from post-traversal fts_read
46346         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
46347         unlink A, even though an FD open on A remained.  This is suboptimal
46348         (holding a file descriptor open longer than needed), but otherwise not
46349         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
46350         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
46351         that represents a real problem: it causes the removal of A to fail
46352         with e.g., "rm: cannot remove `A': Device or resource busy"
46354         fts visits each directory twice and keeps a cache (fts_fd_ring) of
46355         directory file descriptors.  After completing the final, FTS_DP,
46356         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
46357         cache, but then proceeded to add a new FD to it via the subsequent
46358         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
46359         final file descriptor would be closed only via fts_close's call to
46360         fd_ring_clear.  Now, it is usually closed earlier, via the final
46361         FTS_DP-returning fts_read call.
46362         * lib/fts.c (restore_initial_cwd): New function, converted from
46363         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
46364         Update callers.
46365         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
46366         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
46368 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
46369             Bruno Haible  <bruno@clisp.org>
46370             Jim Meyering  <jim@meyering.net>
46372         readme-release: improve safety of release prep instructions.
46373         * README-release: Don't git pull all branches when only master
46374         is needed for the release process.
46375         Run make maintainer-clean before changing trees and merging.
46376         Don't try to run ./configure right after git pull in case files
46377         that influence the bootstrap process have changed, move the
46378         ./configure step to after running ./bootstrap.
46379         Don't bootstrap "one last time"... it's the first time!
46381 2011-10-22  Bruno Haible  <bruno@clisp.org>
46383         errno, strerror-override: Support for MSVC 10.
46384         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
46385         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
46386         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
46387         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
46388         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
46389         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
46390         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
46391         Assign values compatible with MSVC 10.
46392         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
46393         New macros.
46394         (GNULIB_defined_EWINSOCK): New macro.
46395         * lib/strerror-override.c (strerror_override): Update accordingly.
46396         * lib/strerror-override.h: Likewise.
46397         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
46398         longer equal to the corresponding errno value.
46399         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46401 2011-10-22  Bruno Haible  <bruno@clisp.org>
46403         perror: Recognize when test program crashes.
46404         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
46405         strerror, set gl_cv_func_perror_works to no.
46406         Reported by Daniel Richard G. <skunk@iskunk.org>.
46408         perror: Fix indentation.
46409         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
46411 2011-10-22  Bruno Haible  <bruno@clisp.org>
46413         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
46414         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
46415         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
46416         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
46417         functions, not as a macro.
46418         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
46419         macros.
46420         (isfinite, isinf, isnan, signbit): Check overloaded functions and
46421         absence of macro.
46422         Suggested by Eric Blake.
46423         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
46425 2011-10-21  Bruno Haible  <bruno@clisp.org>
46427         relocatable-prog-wrapper: Don't leave object files behind.
46428         * build-aux/install-reloc: Re-synchronize list of .o files to be
46429         removed with list of compilation units.
46431 2011-10-20  Bruno Haible  <bruno@clisp.org>
46433         openpty, posix_openpt: Remove code duplication.
46434         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
46435         * lib/openpty.c: Include <stdlib.h>.
46436         (openpty): Use posix_openpt on all platforms except IRIX.
46437         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
46439 2011-10-20  Bruno Haible  <bruno@clisp.org>
46441         unlockpt: Detect invalid argument.
46442         * lib/unlockpt.c: Include <fcntl.h>.
46443         (unlockpt): Check whether fd is valid, using fcntl().
46444         * modules/unlockpt (Depends-on): Add fcntl-h.
46446 2011-10-20  Bruno Haible  <bruno@clisp.org>
46448         openpty: Avoid compilation error on AIX 6.1.
46449         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
46451 2011-10-20  Bruno Haible  <bruno@clisp.org>
46453         posix_openpt: Support for OpenBSD.
46454         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
46455         (posix_openpt) [OpenBSD]: New code.
46456         * lib/grantpt.c: Include <fcntl.h>.
46457         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
46458         * modules/grantpt (Depends-on): Add fcntl-h.
46460 2011-10-20  Bruno Haible  <bruno@clisp.org>
46462         posix_openpt test: Coding style.
46463         * tests/test-posix_openpt.c: Use GNU coding style.
46465 2011-10-20  Bruno Haible  <bruno@clisp.org>
46467         grantpt: Support --avoid=pt_chown.
46468         * modules/grantpt (Files): Add lib/pty-private.h.
46470 2011-10-20  Bruno Haible  <bruno@clisp.org>
46472         posix_openpt: Fix autoconf macro.
46473         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
46474         unneeded check for _getpty.
46476 2011-10-20  Bruno Haible  <bruno@clisp.org>
46478         openpty: Update comments.
46479         * lib/openpty.c: Add comments about Minix.
46481 2011-10-19  Eric Blake  <eblake@redhat.com>
46483         openpty: relax license
46484         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
46486         pt_chown: use configmake to simplify build
46487         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
46489         ptsname and others: relax license
46490         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
46491         * modules/unlockpt (License): Likewise.
46492         * modules/pt_chown (License): Likewise.
46493         * modules/ptsname (License): Likewise.
46494         * modules/ttyname_r (License): Likewise.
46496 2011-10-19  Jim Meyering  <meyering@redhat.com>
46498         posix_openpt: remove spurious #endif
46499         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
46501 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
46503         maint.mk: Respect $(build_aux) in web-manual rule.
46504         * top/maint.mk (web-manual): Find gen-announce script in user's
46505         $(build_aux) directory instead of hard-coding 'build-aux'.
46507 2011-10-19  Bruno Haible  <bruno@clisp.org>
46509         posix_openpt: Fix compilation error.
46510         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
46511         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
46512         Mention the openpty module as an alternative.
46514 2011-10-19  Bruno Haible  <bruno@clisp.org>
46516         Support for old NeXTstep 3.3 frexp().
46517         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
46518         execution time of the test to 5 seconds.
46519         Reported by Daniel Richard G. <skunk@iskunk.org>.
46521 2011-10-19  Bruno Haible  <bruno@clisp.org>
46523         Support for old NeXTstep 3.3 sed.
46524         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
46525         part, use /.../, not \|...|. Escape periods in the header file name.
46526         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
46527         Reported by Daniel Richard G. <skunk@iskunk.org>.
46529 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46531         Support for old NeXTstep 3.3 gcc.
46532         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
46533         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
46534         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
46535         * lib/spawn.in.h (_Restrict_arr_): Likewise.
46536         * lib/regex.h (_Restrict_arr_): Likewise.
46537         * lib/regex_internal.h (re_token_t): Likewise.
46538         * lib/regexec.c (check_node_accept_bytes): Likewise.
46539         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
46541 2011-10-18  Eric Blake  <eblake@redhat.com>
46543         posix_openpt: new module
46544         * modules/posix_openpt: New module.
46545         * m4/posix_openpt.m4: New file.
46546         * lib/posix_openpt.c: Likewise.
46547         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
46548         (gl_STDLIB_H_DEFAULTS): Set defaults.
46549         * modules/stdlib (Makefile.am): Substitute macros.
46550         * lib/stdlib.in.h (posix_openpt): Declare.
46551         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
46552         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
46553         * modules/posix_openpt-tests: New test module.
46554         * tests/test-posix_openpt.c: New test.
46556 2011-10-15  Bruno Haible  <bruno@clisp.org>
46558         xstrtoll: Fix compilation failure.
46559         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
46560         from lib/strtol.c.
46561         * doc/posix-headers/limits.texi: Mention missing numerical limits on
46562         some platforms.
46563         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
46565 2011-10-15  Bruno Haible  <bruno@clisp.org>
46567         vasnprintf: Optimize bit search operation.
46568         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
46569         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
46570         gl_DOUBLE_EXPONENT_LOCATION.
46571         * modules/vasnprintf (Files): Add m4/exponentd.m4.
46572         * modules/unistdio/u8-vasnprintf (Files): Likewise.
46573         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
46574         * modules/unistdio/u16-vasnprintf (Files): Likewise.
46575         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
46576         * modules/unistdio/u32-vasnprintf (Files): Likewise.
46577         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
46578         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
46579         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
46581 2011-10-15  Bruno Haible  <bruno@clisp.org>
46583         vasnprintf: Fix comments.
46584         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
46586 2011-10-14  Bruno Haible  <bruno@clisp.org>
46588         Tests for module 'integer_length_ll'.
46589         * modules/integer_length_ll-tests: New file.
46590         * tests/test-integer_length_ll.c: New file.
46592         New module 'integer_length_ll'.
46593         * lib/integer_length_ll.c: New file.
46594         * modules/integer_length_ll: New file.
46596 2011-10-14  Bruno Haible  <bruno@clisp.org>
46598         Tests for module 'integer_length_l'.
46599         * modules/integer_length_l-tests: New file.
46600         * tests/test-integer_length_l.c: New file.
46602         New module 'integer_length_l'.
46603         * lib/integer_length_l.c: New file.
46604         * modules/integer_length_l: New file.
46606 2011-10-14  Bruno Haible  <bruno@clisp.org>
46608         Tests for module 'integer_length'.
46609         * modules/integer_length-tests: New file.
46610         * tests/test-integer_length.c: New file.
46612         New module 'integer_length'.
46613         * lib/integer_length.h: New file.
46614         * lib/integer_length.c: New file.
46615         * modules/integer_length: New file.
46617 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46619         popen: Fix dependency conditions.
46620         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
46622 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
46624         perror: Fix autoconf test.
46625         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
46626         <stdlib.h> and <string.h>.
46628 2011-10-14  Bruno Haible  <bruno@clisp.org>
46630         ffsl: Optimize on 64-bit platforms.
46631         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
46632         unrolling.
46634 2011-10-13  Bruno Haible  <bruno@clisp.org>
46636         ffsl: Optimize on 32-bit platforms.
46637         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
46638         use ffs() without a loop.
46640         ffsl, ffsll: Optimize for GCC.
46641         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
46642         * lib/ffsl.c (GCC_BUILTIN): New macro.
46643         * lib/ffsll.c (GCC_BUILTIN): Likewise.
46645 2011-10-13  Bruno Haible  <bruno@clisp.org>
46647         ffs, bcopy, memset: Support symbol renaming via config.h.
46648         * lib/ffs.c: Include <config.h>.
46649         * lib/bcopy.c: Likewise.
46650         * lib/memset.c: Likewise.
46652 2011-10-10  Bruno Haible  <bruno@clisp.org>
46654         atanl: Simplify for platforms where 'long double' == 'double'.
46655         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46656         alternative implementation.
46657         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46658         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46659         * modules/atanl (Depends-on): Add atan. Update conditions.
46661 2011-10-10  Bruno Haible  <bruno@clisp.org>
46663         acosl: Simplify for platforms where 'long double' == 'double'.
46664         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46665         alternative implementation.
46666         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46667         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46668         * modules/acosl (Depends-on): Add acos. Update conditions.
46670 2011-10-10  Bruno Haible  <bruno@clisp.org>
46672         asinl: Simplify for platforms where 'long double' == 'double'.
46673         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46674         alternative implementation.
46675         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46676         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46677         * modules/asinl (Depends-on): Add asin. Update conditions.
46679 2011-10-10  Bruno Haible  <bruno@clisp.org>
46681         tanl: Simplify for platforms where 'long double' == 'double'.
46682         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46683         implementation.
46684         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46685         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46686         * modules/tanl (Depends-on): Add tan. Update conditions.
46687         (configure.ac): Don't compile trigl.c if
46688         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46690 2011-10-10  Bruno Haible  <bruno@clisp.org>
46692         cosl: Simplify for platforms where 'long double' == 'double'.
46693         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46694         implementation.
46695         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46696         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46697         * modules/cosl (Depends-on): Add cos. Update conditions.
46698         (configure.ac): Don't compile sincosl.c and trigl.c if
46699         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46701 2011-10-10  Bruno Haible  <bruno@clisp.org>
46703         sinl: Simplify for platforms where 'long double' == 'double'.
46704         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46705         implementation.
46706         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46707         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46708         * modules/sinl (Depends-on): Add sin. Update conditions.
46709         (configure.ac): Don't compile sincosl.c and trigl.c if
46710         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46712 2011-10-10  Bruno Haible  <bruno@clisp.org>
46714         logl: Simplify for platforms where 'long double' == 'double'.
46715         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46716         implementation.
46717         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46718         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46719         * modules/logl (Depends-on): Add log. Update conditions.
46721 2011-10-10  Bruno Haible  <bruno@clisp.org>
46723         expl: Simplify for platforms where 'long double' == 'double'.
46724         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
46725         implementation.
46726         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46727         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46728         * modules/expl (Depends-on): Add exp. Update conditions.
46730 2011-10-10  Bruno Haible  <bruno@clisp.org>
46732         sqrtl: Simplify for platforms where 'long double' == 'double'.
46733         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46734         alternative implementation.
46735         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46736         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46737         * modules/sqrtl (Depends-on): Update conditions.
46739 2011-10-10  Bruno Haible  <bruno@clisp.org>
46741         ldexpl: Simplify for platforms where 'long double' == 'double'.
46742         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46743         alternative implementation.
46744         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46745         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46746         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
46748 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
46750         ffsll: set correct witness
46751         * modules/ffsll (configure.ac): Fix typo.
46753 2011-10-10  Bruno Haible  <bruno@clisp.org>
46755         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
46756         * lib/printf-frexpl.c: Include <config.h>.
46757         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46758         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
46759         second time.
46760         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
46761         gl_LONG_DOUBLE_VS_DOUBLE.
46762         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
46763         conditions.
46765 2011-10-10  Bruno Haible  <bruno@clisp.org>
46767         frexpl: Simplify for platforms where 'long double' == 'double'.
46768         * lib/frexpl.c: Include <config.h>.
46769         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46770         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46771         time.
46772         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46773         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46774         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
46775         * modules/frexpl (Depends-on): Add frexp. Update conditions.
46776         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
46777         conditions.
46779 2011-10-10  Jim Meyering  <meyering@redhat.com>
46781         test-renameat: don't leave behind a temporary file
46782         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
46783           ERROR: files left in build directory after distclean:
46784           ./gltests/test-renameat.too
46785           make[1]: *** [distcleancheck] Error 1
46786         Reported by Tom G. Christensen.
46788 2011-10-09  Bruno Haible  <bruno@clisp.org>
46790         rint: Determine RINT_LIBM correctly on AIX 7.
46791         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
46792         directly, not only through a function pointer. Also accept an optional
46793         4th argument with extra code.
46794         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
46795         rintf() call by gcc when optimizing.
46797         mathfunc.m4: Refactor.
46798         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
46799         m4 variable.
46801 2011-10-09  Bruno Haible  <bruno@clisp.org>
46803         rintl: Simplify for platforms where 'long double' == 'double'.
46804         * lib/rintl.c: Include <config.h>.
46805         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46806         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46807         time.
46808         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46809         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46810         * modules/rintl (Depends-on): Add rint. Update conditions.
46812 2011-10-09  Bruno Haible  <bruno@clisp.org>
46814         roundl: Simplify for platforms where 'long double' == 'double'.
46815         * lib/roundl.c: Include <config.h>.
46816         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46817         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46818         time.
46819         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46820         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46821         * modules/roundl (Depends-on): Add round. Update conditions.
46823 2011-10-09  Bruno Haible  <bruno@clisp.org>
46825         truncl: Simplify for platforms where 'long double' == 'double'.
46826         * lib/truncl.c: Include <config.h>.
46827         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46828         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46829         time.
46830         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46831         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46832         * modules/truncl (Depends-on): Add trunc. Update conditions.
46834 2011-10-09  Bruno Haible  <bruno@clisp.org>
46836         ceill: Simplify for platforms where 'long double' == 'double'.
46837         * lib/ceill.c: Include <config.h>.
46838         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46839         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46840         time.
46841         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46842         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46843         * modules/ceill (Depends-on): Add ceil. Update conditions.
46845 2011-10-09  Bruno Haible  <bruno@clisp.org>
46847         floorl: Simplify for platforms where 'long double' == 'double'.
46848         * lib/floorl.c: Include <config.h>.
46849         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
46850         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
46851         time.
46852         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46853         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46854         * modules/floorl (Depends-on): Add floor. Update conditions.
46856 2011-10-09  Bruno Haible  <bruno@clisp.org>
46858         rint: Fix ordering constraints.
46859         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
46860         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
46861         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
46863 2011-10-09  Bruno Haible  <bruno@clisp.org>
46865         copysignl: Simplify for platforms where 'long double' == 'double'.
46866         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
46867         alternative.
46868         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
46869         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
46870         * modules/copysignl (Depends-on): Add copysign. Update conditions.
46872 2011-10-09  Bruno Haible  <bruno@clisp.org>
46874         Tests for module 'rintl'.
46875         * modules/rintl-tests: New file.
46876         * tests/test-rintl.c: New file.
46878         New module 'rintl'.
46879         * lib/math.in.h (rintl): New declaration.
46880         * lib/rintl.c: New file.
46881         * m4/rintl.m4: New file.
46882         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
46883         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
46884         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
46885         * modules/rintl: New file.
46886         * tests/test-math-c++.cc: Check the declaration of rintl.
46887         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46888         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
46889         * doc/posix-functions/rintl.texi: Mention the new module.
46891 2011-10-09  Bruno Haible  <bruno@clisp.org>
46893         Tests for module 'rintf'.
46894         * modules/rintf-tests: New file.
46895         * tests/test-rintf.c: New file.
46897         New module 'rintf'.
46898         * lib/math.in.h (rintf): New declaration.
46899         * lib/rintf.c: New file.
46900         * m4/rintf.m4: New file.
46901         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
46902         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
46903         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
46904         * modules/rintf: New file.
46905         * tests/test-math-c++.cc: Check the declaration of rintf.
46906         * doc/posix-functions/rintf.texi: Mention the new module.
46908 2011-10-09  Bruno Haible  <bruno@clisp.org>
46910         rint: Support for MSVC.
46911         * lib/math.in.h (rint): New declaration.
46912         * lib/rint.c: New file.
46913         * m4/rint.m4: New file.
46914         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
46915         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
46916         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
46917         * modules/rint (Description): Fix.
46918         (Files): Add lib/rint.c, m4/rint.m4.
46919         (Depends-on): Add math.
46920         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
46921         gl_MATH_MODULE_INDICATOR.
46922         * tests/test-math-c++.cc: Check the declaration of rint.
46923         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46924         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
46925         * doc/posix-functions/rint.texi: Mention the replacement provided by
46926         the module.
46928         rint tests: More tests.
46929         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
46930         minus-zero.h, infinity.h, nan.h.
46931         (main): Skip the test if the current rounding mode is not standard. Add
46932         tests for negative numbers, minus zero, infinity, NaN.
46933         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
46934         tests/nan.h.
46935         (Depends-on): Add isnand-nolibm.
46937 2011-10-09  Bruno Haible  <bruno@clisp.org>
46939         Tests for module 'copysignl'.
46940         * modules/copysignl-tests: New file.
46941         * tests/test-copysignl.c: New file.
46943         New module 'copysignl'.
46944         * lib/math.in.h (copysignl): New declaration.
46945         * lib/copysignl.c: New file.
46946         * m4/copysignl.m4: New file.
46947         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
46948         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
46949         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
46950         HAVE_COPYSIGNL.
46951         * modules/copysignl: New file.
46952         * tests/test-math-c++.cc: Check the declaration of copysignl.
46953         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
46954         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
46955         * doc/posix-functions/copysignl.texi: Mention the new module.
46957 2011-10-09  Bruno Haible  <bruno@clisp.org>
46959         Tests for module 'copysignf'.
46960         * modules/copysignf-tests: New file.
46961         * tests/test-copysignf.c: New file.
46963         New module 'copysignf'.
46964         * lib/math.in.h (copysignf): New declaration.
46965         * lib/copysignf.c: New file.
46966         * m4/copysignf.m4: New file.
46967         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
46968         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
46969         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
46970         HAVE_COPYSIGNF.
46971         * modules/copysignf: New file.
46972         * tests/test-math-c++.cc: Check the declaration of copysignf.
46973         * doc/posix-functions/copysignf.texi: Mention the new module.
46975 2011-10-09  Bruno Haible  <bruno@clisp.org>
46977         Ensure that HAVE_* variables are set to 1 before they are set to 0.
46978         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
46979         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
46980         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
46981         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
46982         gl_SIGNAL_H_DEFAULTS.
46984 2011-10-09  Bruno Haible  <bruno@clisp.org>
46986         poll: Make macro safer.
46987         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
46988         ac_cv_header_poll_h is not set.
46990 2011-10-09  Bruno Haible  <bruno@clisp.org>
46992         copysign: Provide replacement.
46993         * lib/math.in.h (copysign): New declaration.
46994         * lib/copysign.c: New file.
46995         * m4/copysign.m4: New file.
46996         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
46997         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
46998         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
46999         HAVE_COPYSIGN.
47000         * modules/copysign (Description): Clarify.
47001         (Files): Add lib/copysign.c, m4/copysign.m4.
47002         (Depends-on): Add math, signbit.
47003         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
47004         gl_MATH_MODULE_INDICATOR.
47005         * tests/test-math-c++.cc: Check the declaration of copysign.
47006         * doc/posix-functions/copysign.texi: Mention the effects of the module
47007         on Minix and MSVC.
47009 2011-10-09  Bruno Haible  <bruno@clisp.org>
47011         isinf: Ensure macro on AIX 5.1.
47012         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
47013         macro.
47014         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
47016 2011-10-09  Bruno Haible  <bruno@clisp.org>
47018         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
47019         * modules/snprintf-posix-tests (configure.ac): Require
47020         gl_LONG_DOUBLE_VS_DOUBLE.
47021         * modules/sprintf-posix-tests (configure.ac): Likewise.
47022         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
47023         * modules/vasprintf-posix-tests (configure.ac): Likewise.
47024         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
47025         * modules/vsprintf-posix-tests (configure.ac): Likewise.
47026         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
47027         tests on platforms where 'long double' is the same as 'double'.
47028         * tests/test-sprintf-posix.h (test_function): Likewise.
47029         * tests/test-vasnprintf-posix.c (test_function): Likewise.
47030         * tests/test-vasprintf-posix.c (test_function): Likewise.
47032         *printf: Fix for platforms where 'long double' == 'double'.
47033         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
47034         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
47035         * modules/dprintf-posix (Files): Add m4/math_h.m4.
47036         * modules/fprintf-posix (Files): Likewise.
47037         * modules/obstack-printf-posix (Files): Likewise.
47038         * modules/snprintf-posix (Files): Likewise.
47039         * modules/sprintf-posix (Files): Likewise.
47040         * modules/vasnprintf (Files): Likewise.
47041         * modules/vasnprintf-posix (Files): Likewise.
47042         * modules/vasprintf-posix (Files): Likewise.
47043         * modules/vdprintf-posix (Files): Likewise.
47044         * modules/vfprintf-posix (Files): Likewise.
47045         * modules/vsnprintf-posix (Files): Likewise.
47046         * modules/vsprintf-posix (Files): Likewise.
47047         * modules/unistdio/u8-vasnprintf (Files): Likewise.
47048         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
47049         * modules/unistdio/u16-vasnprintf (Files): Likewise.
47050         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
47051         * modules/unistdio/u32-vasnprintf (Files): Likewise.
47052         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
47053         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
47055         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
47056         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
47057         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
47058         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
47059         'long double'.
47060         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
47062         isinf: Fix for platforms where 'long double' == 'double'.
47063         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47064         Don't blindly assume 80-bit 'long double'.
47066         isfinite: Fix for platforms where 'long double' == 'double'.
47067         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
47068         Don't blindly assume 80-bit 'long double'.
47070         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
47071         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
47072         * modules/isfinite-tests (configure.ac): Require
47073         gl_LONG_DOUBLE_VS_DOUBLE.
47074         * modules/isinf-tests (configure.ac): Likewise.
47075         * modules/isnan-tests (configure.ac): Likewise.
47076         * modules/isnanl-tests (configure.ac): Likewise.
47077         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
47078         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
47079         tests on platforms where 'long double' is the same as 'double'.
47080         * tests/test-isinf.c (test_isinfl): Likewise.
47081         * tests/test-isnan.c (test_long_double): Likewise.
47082         * tests/test-isnanl.h (main): Likewise.
47084 2011-10-08  Bruno Haible  <bruno@clisp.org>
47086         Tests for module 'tanhf'.
47087         * modules/tanhf-tests: New file.
47088         * tests/test-tanhf.c: New file.
47090         New module 'tanhf'.
47091         * lib/math.in.h (tanhf): New declaration.
47092         * lib/tanhf.c: New file.
47093         * m4/tanhf.m4: New file.
47094         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
47095         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
47096         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
47097         * modules/tanhf: New file.
47098         * tests/test-math-c++.cc: Check the declaration of tanhf.
47099         * doc/posix-functions/tanhf.texi: Mention the new module.
47101         tanh: Use a .m4 file.
47102         * m4/tanh.m4: New file.
47103         * modules/tanh (Files): Add it.
47104         (configure.ac): Just invoke gl_FUNC_TANH.
47106 2011-10-08  Bruno Haible  <bruno@clisp.org>
47108         Tests for module 'coshf'.
47109         * modules/coshf-tests: New file.
47110         * tests/test-coshf.c: New file.
47112         New module 'coshf'.
47113         * lib/math.in.h (coshf): New declaration.
47114         * lib/coshf.c: New file.
47115         * m4/coshf.m4: New file.
47116         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
47117         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
47118         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
47119         * modules/coshf: New file.
47120         * tests/test-math-c++.cc: Check the declaration of coshf.
47121         * doc/posix-functions/coshf.texi: Mention the new module.
47123         cosh: Use a .m4 file.
47124         * m4/cosh.m4: New file.
47125         * modules/cosh (Files): Add it.
47126         (configure.ac): Just invoke gl_FUNC_COSH.
47128 2011-10-08  Bruno Haible  <bruno@clisp.org>
47130         Tests for module 'sinhf'.
47131         * modules/sinhf-tests: New file.
47132         * tests/test-sinhf.c: New file.
47134         New module 'sinhf'.
47135         * lib/math.in.h (sinhf): New declaration.
47136         * lib/sinhf.c: New file.
47137         * m4/sinhf.m4: New file.
47138         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
47139         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
47140         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
47141         * modules/sinhf: New file.
47142         * tests/test-math-c++.cc: Check the declaration of sinhf.
47143         * doc/posix-functions/sinhf.texi: Mention the new module.
47145         sinh: Use a .m4 file.
47146         * m4/sinh.m4: New file.
47147         * modules/sinh (Files): Add it.
47148         (configure.ac): Just invoke gl_FUNC_SINH.
47150 2011-10-08  Bruno Haible  <bruno@clisp.org>
47152         Tests for module 'atan2f'.
47153         * modules/atan2f-tests: New file.
47154         * tests/test-atan2f.c: New file.
47156         New module 'atan2f'.
47157         * lib/math.in.h (atan2f): New declaration.
47158         * lib/atan2f.c: New file.
47159         * m4/atan2f.m4: New file.
47160         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
47161         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
47162         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
47163         * modules/atan2f: New file.
47164         * tests/test-math-c++.cc: Check the declaration of atan2f.
47165         * doc/posix-functions/atan2f.texi: Mention the new module.
47167         atan2: Use a .m4 file.
47168         * m4/atan2.m4: New file.
47169         * modules/atan2 (Files): Add it.
47170         (configure.ac): Just invoke gl_FUNC_ATAN2.
47172 2011-10-08  Bruno Haible  <bruno@clisp.org>
47174         Tests for module 'atanf'.
47175         * modules/atanf-tests: New file.
47176         * tests/test-atanf.c: New file.
47178         New module 'atanf'.
47179         * lib/math.in.h (atanf): New declaration.
47180         * lib/atanf.c: New file.
47181         * m4/atanf.m4: New file.
47182         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
47183         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
47184         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
47185         * modules/atanf: New file.
47186         * tests/test-math-c++.cc: Check the declaration of atanf.
47187         * doc/posix-functions/atanf.texi: Mention the new module.
47189         atan: Use a .m4 file.
47190         * m4/atan.m4: New file.
47191         * modules/atan (Files): Add it.
47192         (configure.ac): Just invoke gl_FUNC_ATAN.
47194 2011-10-08  Bruno Haible  <bruno@clisp.org>
47196         Tests for module 'acosf'.
47197         * modules/acosf-tests: New file.
47198         * tests/test-acosf.c: New file.
47200         New module 'acosf'.
47201         * lib/math.in.h (acosf): New declaration.
47202         * lib/acosf.c: New file.
47203         * m4/acosf.m4: New file.
47204         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
47205         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
47206         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
47207         * modules/acosf: New file.
47208         * tests/test-math-c++.cc: Check the declaration of acosf.
47209         * doc/posix-functions/acosf.texi: Mention the new module.
47211         acos: Use a .m4 file.
47212         * m4/acos.m4: New file.
47213         * modules/acos (Files): Add it.
47214         (configure.ac): Just invoke gl_FUNC_ACOS.
47216 2011-10-08  Bruno Haible  <bruno@clisp.org>
47218         Tests for module 'asinf'.
47219         * modules/asinf-tests: New file.
47220         * tests/test-asinf.c: New file.
47222         New module 'asinf'.
47223         * lib/math.in.h (asinf): New declaration.
47224         * lib/asinf.c: New file.
47225         * m4/asinf.m4: New file.
47226         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
47227         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
47228         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
47229         * modules/asinf: New file.
47230         * tests/test-math-c++.cc: Check the declaration of asinf.
47231         * doc/posix-functions/asinf.texi: Mention the new module.
47233         asin: Use a .m4 file.
47234         * m4/asin.m4: New file.
47235         * modules/asin (Files): Add it.
47236         (configure.ac): Just invoke gl_FUNC_ASIN.
47238 2011-10-08  Bruno Haible  <bruno@clisp.org>
47240         Tests for module 'tanf'.
47241         * modules/tanf-tests: New file.
47242         * tests/test-tanf.c: New file.
47244         New module 'tanf'.
47245         * lib/math.in.h (tanf): New declaration.
47246         * lib/tanf.c: New file.
47247         * m4/tanf.m4: New file.
47248         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
47249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
47250         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
47251         * modules/tanf: New file.
47252         * tests/test-math-c++.cc: Check the declaration of tanf.
47253         * doc/posix-functions/tanf.texi: Mention the new module.
47255         tan: Use a .m4 file.
47256         * m4/tan.m4: New file.
47257         * modules/tan (Files): Add it.
47258         (configure.ac): Just invoke gl_FUNC_TAN.
47260 2011-10-08  Bruno Haible  <bruno@clisp.org>
47262         Tests for module 'cosf'.
47263         * modules/cosf-tests: New file.
47264         * tests/test-cosf.c: New file.
47266         New module 'cosf'.
47267         * lib/math.in.h (cosf): New declaration.
47268         * lib/cosf.c: New file.
47269         * m4/cosf.m4: New file.
47270         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
47271         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
47272         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
47273         * modules/cosf: New file.
47274         * tests/test-math-c++.cc: Check the declaration of cosf.
47275         * doc/posix-functions/cosf.texi: Mention the new module.
47277         cos: Use a .m4 file.
47278         * m4/cos.m4: New file.
47279         * modules/cos (Files): Add it.
47280         (configure.ac): Just invoke gl_FUNC_COS.
47282 2011-10-08  Bruno Haible  <bruno@clisp.org>
47284         Tests for module 'sinf'.
47285         * modules/sinf-tests: New file.
47286         * tests/test-sinf.c: New file.
47288         New module 'sinf'.
47289         * lib/math.in.h (sinf): New declaration.
47290         * lib/sinf.c: New file.
47291         * m4/sinf.m4: New file.
47292         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
47293         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
47294         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
47295         * modules/sinf: New file.
47296         * tests/test-math-c++.cc: Check the declaration of sinf.
47297         * doc/posix-functions/sinf.texi: Mention the new module.
47299         sin: Use a .m4 file.
47300         * m4/sin.m4: New file.
47301         * modules/sin (Files): Add it.
47302         (configure.ac): Just invoke gl_FUNC_SIN.
47304 2011-10-08  Bruno Haible  <bruno@clisp.org>
47306         Tests for module 'powf'.
47307         * modules/powf-tests: New file.
47308         * tests/test-powf.c: New file.
47310         New module 'powf'.
47311         * lib/math.in.h (powf): New declaration.
47312         * lib/powf.c: New file.
47313         * m4/powf.m4: New file.
47314         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
47315         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
47316         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
47317         * modules/powf: New file.
47318         * tests/test-math-c++.cc: Check the declaration of powf.
47319         * doc/posix-functions/powf.texi: Mention the new module.
47321         pow: Use a .m4 file.
47322         * m4/pow.m4: New file.
47323         * modules/pow (Files): Add it.
47324         (configure.ac): Just invoke gl_FUNC_POW.
47326 2011-10-08  Bruno Haible  <bruno@clisp.org>
47328         Tests for module 'log10f'.
47329         * modules/log10f-tests: New file.
47330         * tests/test-log10f.c: New file.
47332         New module 'log10f'.
47333         * lib/math.in.h (log10f): New declaration.
47334         * lib/log10f.c: New file.
47335         * m4/log10f.m4: New file.
47336         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
47337         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
47338         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
47339         * modules/log10f: New file.
47340         * tests/test-math-c++.cc: Check the declaration of log10f.
47341         * doc/posix-functions/log10f.texi: Mention the new module.
47343         log10: Use a .m4 file.
47344         * m4/log10.m4: New file.
47345         * modules/log10 (Files): Add it.
47346         (configure.ac): Just invoke gl_FUNC_LOG10.
47348 2011-10-08  Bruno Haible  <bruno@clisp.org>
47350         Tests for module 'logf'.
47351         * modules/logf-tests: New file.
47352         * tests/test-logf.c: New file.
47354         New module 'logf'.
47355         * lib/math.in.h (logf): New declaration.
47356         * lib/logf.c: New file.
47357         * m4/logf.m4: New file.
47358         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
47359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
47360         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
47361         * modules/logf: New file.
47362         * tests/test-math-c++.cc: Check the declaration of logf.
47363         * doc/posix-functions/logf.texi: Mention the new module.
47365         log: Use a .m4 file.
47366         * m4/log.m4: New file.
47367         * modules/log (Files): Add it.
47368         (configure.ac): Just invoke gl_FUNC_LOG.
47370 2011-10-08  Bruno Haible  <bruno@clisp.org>
47372         Tests for module 'expf'.
47373         * modules/expf-tests: New file.
47374         * tests/test-expf.c: New file.
47376         New module 'expf'.
47377         * lib/math.in.h (expf): New declaration.
47378         * lib/expf.c: New file.
47379         * m4/expf.m4: New file.
47380         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
47381         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
47382         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
47383         * modules/expf: New file.
47384         * tests/test-math-c++.cc: Check the declaration of expf.
47385         * doc/posix-functions/expf.texi: Mention the new module.
47387         exp: Use a .m4 file.
47388         * m4/exp.m4: New file.
47389         * modules/exp (Files): Add it.
47390         (configure.ac): Just invoke gl_FUNC_EXP.
47392 2011-10-08  Bruno Haible  <bruno@clisp.org>
47394         Tests for module 'sqrtf'.
47395         * modules/sqrtf-tests: New file.
47396         * tests/test-sqrtf.c: New file.
47398         New module 'sqrtf'.
47399         * lib/math.in.h (sqrtf): New declaration.
47400         * lib/sqrtf.c: New file.
47401         * m4/sqrtf.m4: New file.
47402         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
47403         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
47404         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
47405         * modules/sqrtf: New file.
47406         * tests/test-math-c++.cc: Check the declaration of sqrtf.
47407         * doc/posix-functions/sqrtf.texi: Mention the new module.
47409 2011-10-08  Bruno Haible  <bruno@clisp.org>
47411         Tests: Avoid link failures w.r.t. libintl.
47412         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
47413         $(LIBINTL).
47414         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
47415         $(LIBINTL).
47416         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
47417         against $(LIBINTL).
47418         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
47419         $(LIBINTL).
47420         * modules/openat-tests (Makefile.am): Link test-fchmodat against
47421         $(LIBINTL).
47422         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
47424 2011-10-08  Bruno Haible  <bruno@clisp.org>
47426         pow tests: Defeat compiler optimizations.
47427         * tests/test-pow.c (main): Assign arguments to x and y before use.
47429 2011-10-08  Bruno Haible  <bruno@clisp.org>
47431         gnulib-tool: Improve last commit.
47432         * gnulib-tool (func_modules_transitive_closure): Simplify code.
47433         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
47434         ignore dependencies that are not among the modules list.
47436 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
47438         gnulib-tool: don't follow dependencies to avoided modules
47439         This fixes a bug that is related to the previous one.
47440         * gnulib-tool (func_modules_transitive_closure)
47441         (func_emit_autoconf_snippets):
47442         Check whether a dependency is acceptable before using it.
47443         (--extract-dependencies): Report an error if --avoid is also used,
47444         since this combination of options is not yet supported.
47446         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
47447         Problem reported by Peter Dyballa in
47448         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
47449         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
47450         when echoing "$condition".
47452 2011-10-07  Bruno Haible  <bruno@clisp.org>
47454         Fix documentation about math functions on MacOS X.
47455         * doc/posix-functions/exp2.texi: Don't say the function is missing on
47456         MacOS X 10.5.
47457         * doc/posix-functions/fdim.texi: Likewise.
47458         * doc/posix-functions/feclearexcept.texi: Likewise.
47459         * doc/posix-functions/fegetenv.texi: Likewise.
47460         * doc/posix-functions/fegetround.texi: Likewise.
47461         * doc/posix-functions/feholdexcept.texi: Likewise.
47462         * doc/posix-functions/feraiseexcept.texi: Likewise.
47463         * doc/posix-functions/fesetenv.texi: Likewise.
47464         * doc/posix-functions/fesetround.texi: Likewise.
47465         * doc/posix-functions/fetestexcept.texi: Likewise.
47466         * doc/posix-functions/feupdateenv.texi: Likewise.
47467         * doc/posix-functions/fmax.texi: Likewise.
47468         * doc/posix-functions/fmin.texi: Likewise.
47469         * doc/posix-functions/log2.texi: Likewise.
47470         * doc/posix-functions/modff.texi: Likewise.
47471         * doc/posix-functions/nan.texi: Likewise.
47472         * doc/posix-functions/nanf.texi: Likewise.
47473         * doc/posix-functions/nextafterf.texi: Likewise.
47474         * doc/posix-functions/remquo.texi: Likewise.
47476 2011-10-07  Bruno Haible  <bruno@clisp.org>
47478         modff: Drop assumption about library that defines modff.
47479         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
47480         AC_CHECK_FUNCS.
47481         * modules/modff (Files): Add m4/mathfunc.m4.
47483 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
47485         raise tests: Avoid a GCC warning.
47486         * tests/test-raise.c (handler): Use _Noreturn.
47488 2011-10-07  Bruno Haible  <bruno@clisp.org>
47490         Tests for module 'ldexpf'.
47491         * modules/ldexpf-tests: New file.
47492         * tests/test-ldexpf.c: New file.
47494         New module 'ldexpf'.
47495         * lib/math.in.h (ldexpf): New declaration.
47496         * lib/ldexpf.c: New file.
47497         * m4/ldexpf.m4: New file.
47498         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
47499         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
47500         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
47501         * modules/ldexpf: New file.
47502         * tests/test-math-c++.cc: Check the declaration of ldexpf.
47503         * doc/posix-functions/ldexpf.texi: Mention the new module.
47505 2011-10-06  Bruno Haible  <bruno@clisp.org>
47507         frexpf: Work around problems on IRIX and mingw.
47508         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
47509         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
47510         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
47511         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
47512         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
47513         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
47514         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
47516 2011-10-06  Bruno Haible  <bruno@clisp.org>
47518         fabsf: Drop assumption about library that defines fabsf.
47519         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
47520         AC_CHECK_FUNCS.
47521         * modules/fabsf (Files): Add m4/mathfunc.m4.
47523 2011-10-06  Bruno Haible  <bruno@clisp.org>
47525         frexpf: Drop assumption about library that defines frexpf.
47526         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
47527         'int *', 'float *', 'long double *', 'float', 'long double'.
47528         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
47529         AC_CHECK_FUNCS.
47530         * modules/frexpf (Files): Add m4/mathfunc.m4.
47532         Tests for module 'frexpf'.
47533         * modules/frexpf-tests: New file.
47534         * tests/test-frexpf.c: New file.
47536         New module 'frexpf'.
47537         * lib/math.in.h (frexpf): New declaration.
47538         * lib/frexpf.c: New file.
47539         * m4/frexpf.m4: New file.
47540         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
47541         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
47542         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
47543         * modules/frexpf: New file.
47544         * tests/test-math-c++.cc: Check the declaration of frexpf.
47545         * doc/posix-functions/frexpf.texi: Mention the new module.
47547 2011-10-06  Bruno Haible  <bruno@clisp.org>
47549         math: Sort function declarations of math.in.h.
47550         * lib/math.in.h (frexp, logb): Move declarations.
47552 2011-10-05  Bruno Haible  <bruno@clisp.org>
47554         Tests for module 'modff'.
47555         * modules/modff-tests: New file.
47556         * tests/test-modff.c: New file.
47558         New module 'modff'.
47559         * lib/math.in.h (modff): New declaration.
47560         * lib/modff.c: New file.
47561         * m4/modff.m4: New file.
47562         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
47563         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
47564         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
47565         * modules/modff: New file.
47566         * tests/test-math-c++.cc: Check the declaration of modff.
47567         * doc/posix-functions/modff.texi: Mention the new module.
47569         modf tests: Make test sharper.
47570         * tests/test-modf.c (main): Strengthen upper bound.
47572         modf: Use a .m4 file.
47573         * m4/modf.m4: New file.
47574         * modules/modf (Files): Add it.
47575         (configure.ac): Just invoke gl_FUNC_MODF.
47577 2011-10-05  Bruno Haible  <bruno@clisp.org>
47579         Tests for module 'fmodf'.
47580         * modules/fmodf-tests: New file.
47581         * tests/test-fmodf.c: New file.
47583         New module 'fmodf'.
47584         * lib/math.in.h (fmodf): New declaration.
47585         * lib/fmodf.c: New file.
47586         * m4/fmodf.m4: New file.
47587         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
47588         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
47589         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
47590         * modules/fmodf: New file.
47591         * tests/test-math-c++.cc: Check the declaration of fmodf.
47592         * doc/posix-functions/fmodf.texi: Mention the new module.
47594         fmod: Use a .m4 file.
47595         * m4/fmod.m4: New file.
47596         * modules/fmod (Files): Add it.
47597         (configure.ac): Just invoke gl_FUNC_FMOD.
47599 2011-10-05  Bruno Haible  <bruno@clisp.org>
47601         Tests for module 'fabsf'.
47602         * modules/fabsf-tests: New file.
47603         * tests/test-fabsf.c: New file.
47605         New module 'fabsf'.
47606         * lib/math.in.h (fabsf): New declaration.
47607         * lib/fabsf.c: New file.
47608         * m4/fabsf.m4: New file.
47609         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
47610         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
47611         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
47612         * modules/fabsf: New file.
47613         * tests/test-math-c++.cc: Check the declaration of fabsf.
47614         * doc/posix-functions/fabsf.texi: Mention the new module.
47616         fabs: Use a .m4 file.
47617         * m4/fabs.m4: New file.
47618         * modules/fabs (Files): Add it.
47619         (configure.ac): Just invoke gl_FUNC_FABS.
47621 2011-10-05  Jim Meyering  <meyering@redhat.com>
47623         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
47624         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
47625         ls -lL regression introduced in coreutils-8.12, it does so at the
47626         cost of an additional stat call in the common case.  Besides, now
47627         that the kernel change that prompted commit 95f7c57f has been reverted
47628         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
47629         we have no use for commit 95f7c57f, "file-has-acl: use
47630         acl_extended_file_nofollow if available".
47632 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
47634         file-has-acl: revert unintended change in behavior of ls -L
47635         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
47636         derived from...
47637         (file_has_acl): ...code here.  Call it.
47638         This problem was introduced with 2011-07-22 commit 95f7c57f,
47639         "file-has-acl: use acl_extended_file_nofollow if available".
47640         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
47642 2011-10-03  Bruno Haible  <bruno@clisp.org>
47644         poll: Avoid link errors on MSVC.
47645         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
47646         * modules/poll (Depends-on): Add sockets.
47647         (Link): New section.
47648         * NEWS: Mention the change.
47649         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
47650         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
47651         $(LIB_POLL) instead of $(LIBSOCKET).
47653 2011-10-03  Bruno Haible  <bruno@clisp.org>
47655         sys_select tests: Fix link error on MSVC 9.
47656         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
47657         with $(LIB_SELECT) instead of $(LIBSOCKET).
47659 2011-10-03  Bruno Haible  <bruno@clisp.org>
47661         sys_select: Fix compilation error on mingw.
47662         * lib/sys_select.in.h: On native Windows, include <io.h>.
47664 2011-10-03  Bruno Haible  <bruno@clisp.org>
47666         wmemset: Support for MSVC.
47667         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
47668         whether wmemset() exists.
47670 2011-10-03  Bruno Haible  <bruno@clisp.org>
47672         wmemmove: Support for MSVC.
47673         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
47674         whether wmemmove() exists.
47676 2011-10-03  Bruno Haible  <bruno@clisp.org>
47678         wmemcpy: Support for MSVC.
47679         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
47680         whether wmemcpy() exists.
47682 2011-10-03  Bruno Haible  <bruno@clisp.org>
47684         wmemcmp: Support for MSVC.
47685         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
47686         whether wmemcmp() exists.
47688 2011-10-03  Bruno Haible  <bruno@clisp.org>
47690         wmemchr: Support for MSVC.
47691         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
47692         whether wmemchr() exists.
47694 2011-10-03  Bruno Haible  <bruno@clisp.org>
47696         glthread/*, strsignal: Support for MSVC.
47697         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
47698         including <winsock.h> on MSVC 9.
47699         * lib/glthread/lock.h: Likewise.
47700         * lib/glthread/thread.h: Likewise.
47701         * lib/glthread/tls.h: Likewise.
47702         * lib/glthread/yield.h: Likewise.
47703         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
47704         if HAVE_UNISTD_H is false.
47705         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
47707 2011-10-03  Bruno Haible  <bruno@clisp.org>
47709         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
47710         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
47711         Set to 100000.
47713 2011-10-03  Bruno Haible  <bruno@clisp.org>
47715         acl: Fix specification.
47716         * lib/file-has-acl.c (file_has_acl): Fix specification.
47718 2011-10-03  Bruno Haible  <bruno@clisp.org>
47720         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
47721         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
47722         (compute_curr_prefix, shared_library_fullname,
47723         find_shared_library_fullname, get_shared_library_fullname, relocate):
47724         Use it together with PIC && INSTALLDIR.
47725         Reported by <jojelino@gmail.com>
47726         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
47728 2011-10-01  Jim Meyering  <meyering@redhat.com>
47730         maint.mk: adjust a release-related rule not to require use of gzip
47731         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
47732         Instead, check each file in $(DIST_ARCHIVES).  This is better for
47733         projects that build only .tar.xz files.  Also fix an erroneous test.
47735         test-linkat: don't leave behind a temporary file
47736         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
47737         Otherwise, coreutils' "make distcheck" would fail with this:
47738           Only in /c/cu/tests/torture/coreutils/test/\
47739             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
47740           make[2]: *** [my-distcheck] Error 1
47742         float, math: add omitted file
47743         * lib/itold.c: Add file, required for yesterday's float change.
47745 2011-10-01  Bruno Haible  <bruno@clisp.org>
47747         isinf: Fix for OpenBSD/x86.
47748         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
47749         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
47750         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
47752 2011-10-01  Bruno Haible  <bruno@clisp.org>
47754         isfinite: Fix syntax error in configure test.
47755         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
47757         isfinite: Fix typo.
47758         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
47759         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
47761 2011-10-01  Bruno Haible  <bruno@clisp.org>
47763         nonblocking tests: Fix test failure on Linux/IA-64.
47764         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
47765         Set to 270000.
47767 2011-10-01  Bruno Haible  <bruno@clisp.org>
47769         mkfifoat tests: Fix a test failure on mingw.
47770         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
47771         with error ENOSYS.
47773 2011-09-30  Bruno Haible  <bruno@clisp.org>
47775         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
47776         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
47777         'long double'. Set REPLACE_ITOLD.
47778         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
47779         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
47780         * lib/itold.c: New file.
47781         * modules/float (Files): Add lib/itold.c.
47782         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
47783         (Makefile.am): Substitute REPLACE_ITOLD.
47784         * modules/math (Depends-on): Add float.
47785         (Makefile.am): Substitute REPLACE_ITOLD.
47786         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
47787         * doc/posix-headers/math.texi: Likewise.
47788         * doc/posix-functions/logl.texi: Likewise.
47790 2011-09-30  Bruno Haible  <bruno@clisp.org>
47792         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
47793         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
47794         Set to 140000.
47796 2011-09-30  Bruno Haible  <bruno@clisp.org>
47798         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
47799         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
47800         invocation, say "right after AC_PROG_CC_STDC", not "right after
47801         AC_PROG_CC".
47802         Reported by Gary V. Vaughan <gary@gnu.org>.
47804 2011-09-30  Bruno Haible  <bruno@clisp.org>
47806         Centralize C99 requirement.
47807         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
47808         * modules/stdarg (configure.ac-early): Invoke it instead of
47809         AC_PROG_CC_STDC.
47810         Reported by Gary V. Vaughan and Paul Eggert.
47812 2011-09-29  Bruno Haible  <bruno@clisp.org>
47814         float: Fix LDBL_MAX value on Linux/PowerPC.
47815         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
47816         on Linux/PowerPC.
47817         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
47818         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
47819         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
47820         platform.
47821         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
47823 2011-09-29  Bruno Haible  <bruno@clisp.org>
47825         doc: Improve doc about gl_EARLY.
47826         * doc/gnulib-tool.texi (Initial import): Mention where to place an
47827         AC_PROG_CC_STDC invocation.
47828         Reported by Gary V. Vaughan <gary@gnu.org>.
47830 2011-09-28  Bruno Haible  <bruno@clisp.org>
47832         fgetc, fputc, fread, fwrite tests: Fix link error.
47833         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
47834         on non-MSVC platforms.
47835         * tests/test-fputc.c (main): Likewise.
47836         * tests/test-fread.c (main): Likewise.
47837         * tests/test-fwrite.c (main): Likewise.
47838         Reported by Jim Meyering.
47840 2011-09-27  Bruno Haible  <bruno@clisp.org>
47842         fputc, fwrite tests: Avoid test failure on MSVC.
47843         * tests/test-fgetc.c: Include msvc-inval.h.
47844         (main): Invoke gl_msvc_inval_ensure_handler.
47845         * tests/test-fputc.c: Include msvc-inval.h.
47846         (main): Invoke gl_msvc_inval_ensure_handler.
47847         * tests/test-fread.c: Include msvc-inval.h.
47848         (main): Invoke gl_msvc_inval_ensure_handler.
47849         * tests/test-fwrite.c: Include msvc-inval.h.
47850         (main): Invoke gl_msvc_inval_ensure_handler.
47851         * modules/fgetc-tests (Depends-on): Add msvc-inval.
47852         * modules/fputc-tests (Depends-on): Likewise.
47853         * modules/fread-tests (Depends-on): Likewise.
47854         * modules/fwrite-tests (Depends-on): Likewise.
47856 2011-09-27  Bruno Haible  <bruno@clisp.org>
47858         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
47859         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
47860         (raise): Remove older, duplicated declaration.
47861         (_gl_raise_SIGPIPE): New declaration.
47862         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
47863         (rpl_raise): Remove function.
47864         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
47865         a gnulib-defined SIGPIPE here.
47866         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
47867         'sigprocmask' has detected missing signal-blocking and the module
47868         'sigpipe' is enabled.
47869         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
47871 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
47873         base64-tests: avoid memory leak
47874         * tests/test-base64.c (main): Plug memory leak.
47876         base32: new module
47877         * modules/base32: New module.
47878         * lib/base32.c: New file.
47879         * lib/base32.h: Likewise.
47880         * m4/base32.m4: Likewise.
47881         * modules/base32-tests: New test.
47882         * tests/test-base32.c: Likewise.
47883         * MODULES.html.sh (Misc): Mention it.
47885 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
47887         gnulib: use more-standard license notice wording
47888         * gnulib-tool (func_emit_copyright_notice): When emitting a
47889         license notice into a file, use the standard wording as suggested
47890         by the current information for GNU maintainers, except say "file"
47891         rather than "program".  The new wording gives a license version
47892         number, which addresses an issue raised by Glenn Morris in
47893         <http://lists.gnu.org/r/bug-gnulib/2011-09/msg00397.html>.
47894         * m4/onceonly.m4: Use that same wording here, too.
47896         dup2: minor simplification
47897         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
47898         as lib/dup2.c no longer uses 'inline'.
47900 2011-09-25  Bruno Haible  <bruno@clisp.org>
47902         strings: Fix compilation error on MSVC.
47903         * lib/strings.in.h: Include <stddef.h> for size_t.
47905 2011-09-25  Bruno Haible  <bruno@clisp.org>
47907         fflush et al.: Document limitation on MSVC.
47908         * doc/posix-functions/fflush.texi: Document possible crash in handling
47909         mode other than DEFAULT_HANDLING.
47910         * doc/posix-functions/fgetc.texi: Likewise.
47911         * doc/posix-functions/fputc.texi: Likewise.
47912         * doc/posix-functions/fread.texi: Likewise.
47913         * doc/posix-functions/fwrite.texi: Likewise.
47915 2011-09-25  Bruno Haible  <bruno@clisp.org>
47917         msvc-inval: Allow three invalid parameter handling modes.
47918         * lib/msvc-inval.h: Don't include <stdlib.h> here.
47919         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
47920         macros.
47921         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
47922         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
47923         SANE_LIBRARY_HANDLING as a no-op.
47924         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
47925         <stdlib.h>.
47926         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
47928 2011-09-25  Bruno Haible  <bruno@clisp.org>
47930         msvc-inval: Make handler multithread-safe.
47931         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
47932         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
47933         declarations.
47934         (gl_msvc_inval_current): New declaration.
47935         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47936         Operate on the structure returned by gl_msvc_inval_current().
47937         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
47938         Remove varaiables.
47939         (tls_index, tls_initialized): New variables.
47940         (not_per_thread): New variable.
47941         (gl_msvc_inval_current): New function.
47942         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
47943         returned by gl_msvc_inval_current().
47945 2011-09-25  Bruno Haible  <bruno@clisp.org>
47947         msvc-inval: Install handler globally.
47948         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
47949         !_MSC_VER.
47950         (gl_msvc_invalid_parameter_handler): Remove declaration.
47951         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
47952         declarations.
47953         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
47954         Install the handler globally, don't uninstall it.
47955         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
47956         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
47957         currently valid, call RaiseException instead.
47958         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
47959         for !_MSC_VER.
47961 2011-09-25  Bruno Haible  <bruno@clisp.org>
47963         strerror_r-posix: Fix for MSVC 9.
47964         * lib/strerror_r.c (local_snprintf): New function.
47965         (snprintf): Define to local_snprintf, not to _snprintf.
47967 2011-09-25  Bruno Haible  <bruno@clisp.org>
47969         ftruncate: Support for MSVC 9.
47970         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
47971         (chsize_nothrow): New function.
47972         (chsize): Redefine as a macro.
47973         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
47974         * modules/ftruncate (Depends-on): Add msvc-inval.
47976 2011-09-25  Bruno Haible  <bruno@clisp.org>
47978         New module 'fstat'.
47979         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
47980         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
47981         * lib/fchdir.c (rpl_fstat): Remove function.
47982         * m4/fstat.m4: New file.
47983         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
47984         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
47985         declared.
47986         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
47987         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
47988         * modules/fstat: New file.
47989         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
47990         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
47991         is set.
47992         * doc/posix-functions/fstat.texi: Mention the new module and the
47993         problem on MSVC.
47994         * NEWS: Mention the change.
47995         * modules/acl (Depends-on): Add fstat.
47996         * modules/chdir-safer (Depends-on): Likewise.
47997         * modules/chown (Depends-on): Likewise.
47998         * modules/copy-file (Depends-on): Likewise.
47999         * modules/fchdir (Depends-on): Likewise.
48000         * modules/fdopendir (Depends-on): Likewise.
48001         * modules/fopen (Depends-on): Likewise.
48002         * modules/fts (Depends-on): Likewise.
48003         * modules/getcwd (Depends-on): Likewise.
48004         * modules/isapipe (Depends-on): Likewise.
48005         * modules/linkat (Depends-on): Likewise.
48006         * modules/lseek (Depends-on): Likewise.
48007         * modules/mkdir-p (Depends-on): Likewise.
48008         * modules/open (Depends-on): Likewise.
48009         * modules/openat (Depends-on): Likewise.
48010         * modules/read-file (Depends-on): Likewise.
48011         * modules/renameat (Depends-on): Likewise.
48012         * modules/utimens (Depends-on): Likewise.
48014 2011-09-25  Bruno Haible  <bruno@clisp.org>
48016         linkat: Fix compilation on MSVC 9.
48017         * lib/linkat.c: Don't include <stdint.h>.
48019 2011-09-25  Bruno Haible  <bruno@clisp.org>
48021         fclose: Support for MSVC 9.
48022         * lib/fclose.c: Include msvc-inval.h.
48023         (fclose_nothrow): New function.
48024         (rpl_fclose): Use it.
48025         * modules/fclose (Depends-on): Add msvc-inval.
48026         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
48028 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
48030         dup2: minor simplifications
48031         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
48032         that it's a performance win.
48033         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
48034         ! defined __CYGWIN__)" to "ifdef F_GETFL".
48036 2011-09-24  Jim Meyering  <meyering@redhat.com>
48038         test-futimens: avoid a warning from gcc -Wshadow
48039         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
48040         to avoid a shadowing warning.
48042 2011-09-24  Bruno Haible  <bruno@clisp.org>
48044         fdopen: Support for MSVC 9.
48045         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
48046         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
48047         * lib/fdopen.c: Include msvc-inval.h.
48048         (fdopen_nothrow): New function.
48049         (rpl_fdopen): Use it.
48050         * modules/fdopen (Depends-on): Add msvc-inval.
48051         * modules/fclose-tests (Depends-on): Add fdopen.
48052         * modules/fflush-tests (Depends-on): Likewise.
48053         * modules/fgetc-tests (Depends-on): Likewise.
48054         * modules/fputc-tests (Depends-on): Likewise.
48055         * modules/fread-tests (Depends-on): Likewise.
48056         * modules/freopen-tests (Depends-on): Likewise.
48057         * modules/fseeko-tests (Depends-on): Likewise.
48058         * modules/ftello-tests (Depends-on): Likewise.
48059         * modules/fwrite-tests  (Depends-on): Likewise.
48060         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
48062 2011-09-24  Bruno Haible  <bruno@clisp.org>
48064         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
48065         * modules/fgetc-tests (Depends-on): Add unistd.
48066         * modules/fputc-tests (Depends-on): Likewise.
48067         * modules/fread-tests (Depends-on): Likewise.
48068         * modules/fwrite-tests (Depends-on): Likewise.
48070 2011-09-24  Bruno Haible  <bruno@clisp.org>
48072         dup: Simplify autoconf test.
48073         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
48074         on gl_MSVC_INVAL's result.
48076 2011-09-24  Bruno Haible  <bruno@clisp.org>
48078         Tests for function fwrite().
48079         * modules/fwrite-tests: New file.
48080         * tests/test-fwrite.c: New file.
48081         * modules/stdio-tests (Depends-on): Add fwrite-tests.
48083         Tests for function fread().
48084         * modules/fread-tests: New file.
48085         * tests/test-fread.c: New file.
48086         * modules/stdio-tests (Depends-on): Add fread-tests.
48088         Activate fputc tests.
48089         * modules/stdio-tests (Depends-on): Add fputc-tests.
48091         Enhance fgetc, fputc tests.
48092         * tests/test-fgetc.c (main): Also test the stream's error indicator.
48093         * tests/test-fputc.c (main): Likewise.
48095 2011-09-24  Bruno Haible  <bruno@clisp.org>
48097         write: Support for MSVC 9.
48098         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48099         is not 1.
48100         * lib/write.c (write_nothrow): New function.
48101         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
48102         not 1. Use write_nothrow.
48103         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
48104         invalid parameter handler.
48105         (gl_PREREQ_WRITE): New macro.
48106         * modules/write (Depends-on): Add msvc-inval.
48107         (configure.ac): Invoke gl_PREREQ_WRITE.
48108         * doc/posix-functions/write.texi: Mention the problem on MSVC.
48110 2011-09-24  Bruno Haible  <bruno@clisp.org>
48112         read: Fix last commit.
48113         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
48115 2011-09-24  Bruno Haible  <bruno@clisp.org>
48117         dup2: Fix last commit.
48118         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
48119         (rpl_dup2): Disable fcntl workaround on native Windows.
48121         sigprocmask: Make code safer.
48122         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
48123         section that changes macro definitions for this compilation unit.
48125 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
48127         dup2: clarify by coalescing Windows-specific material
48128         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
48129         "msvc-nothrow.h"' to the Windows-specific section, so that the
48130         Emacs source need not contain these include files.
48131         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
48132         Windows-specific fixes into this function rather than just the
48133         nothrow fix, as this shortens and clarifies the code.  Always
48134         define as a function, as that's a bit cleaner than having it be
48135         sometimes a function and sometimes a macro.
48136         (rpl_dup2): Move the Windows-specific stuff out of here and into
48137         ms_windows_dup2.  Don't protect the Haiku-related fix with
48138         "#if !defined __linux__", as the same code also works around
48139         a Linux kernel bug, and it doesn't add any system calls on any
48140         platform.  Add comment about FreeBSD 6.1.
48142         sigprocmask: move #include directive
48143         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
48144         Windows-specific section, so that the Emacs source need not
48145         contain msvc-inval.h.
48147 2011-09-23  Bruno Haible  <bruno@clisp.org>
48149         read: Support for MSVC 9.
48150         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
48151         is not 1.
48152         * lib/read.c (read_nothrow): New function.
48153         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
48154         read_nothrow.
48155         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
48156         invalid parameter handler.
48157         (gl_PREREQ_READ): New macro.
48158         * modules/read (Depends-on): Add msvc-inval.
48159         (configure.ac): Invoke gl_PREREQ_READ.
48160         * doc/posix-functions/read.texi: Mention the problem on MSVC.
48162 2011-09-23  Bruno Haible  <bruno@clisp.org>
48164         close: Support for MSVC 9.
48165         * lib/close.c: Include <errno.h>, msvc-inval.h.
48166         (close_nothrow): New function.
48167         (rpl_close): Use it.
48168         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
48169         invalid parameter handler.
48170         * modules/close (Depends-on): Add msvc-inval.
48171         * modules/dup2-tests (Depends-on): Add close.
48172         * modules/dup3-tests (Depends-on): Likewise.
48173         * modules/fcntl-tests (Depends-on): Likewise.
48174         * modules/spawn-pipe-tests (Depends-on): Likewise.
48175         * modules/unistd-safer-tests (Depends-on): Likewise.
48176         * doc/posix-functions/close.texi: Mention the problem on MSVC.
48178 2011-09-23  Bruno Haible  <bruno@clisp.org>
48180         New module 'dup'.
48181         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
48182         Allow replacement.
48183         * lib/dup.c: New file.
48184         * lib/fchdir.c (rpl_dup): Remove function.
48185         * m4/dup.m4: New file.
48186         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
48187         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
48188         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
48189         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
48190         * modules/dup: New file.
48191         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
48192         'dup' module is in use.
48193         * modules/fdopendir (Depends-on): Add dup.
48194         * modules/fdutimensat-tests (Depends-on): Likewise.
48195         * modules/fts (Depends-on): Likewise.
48196         * modules/futimens-tests (Depends-on): Likewise.
48197         * modules/posix_spawnp-tests (Depends-on): Likewise.
48198         * modules/unistd-safer-tests (Depends-on): Likewise.
48199         * modules/utimens-tests (Depends-on): Likewise.
48200         * doc/posix-functions/dup.texi: Mention the new module and the problem
48201         on MSVC.
48203 2011-09-23  Bruno Haible  <bruno@clisp.org>
48205         getdtablesize: Support for MSVC 9.
48206         * lib/getdtablesize.c: Include msvc-inval.h.
48207         (_setmaxstdio_nothrow): New function.
48208         (_setmaxstdio): Redefine it.
48209         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
48210         * modules/getdtablesize (Depends-on): Add msvc-inval.
48211         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
48213 2011-09-23  Bruno Haible  <bruno@clisp.org>
48215         signal-h: Rename from signal.
48216         * modules/signal-h: Renamed from modules/signal.
48217         * modules/pthread_sigmask (Depends-on): Update.
48218         * modules/raise (Depends-on): Likewise.
48219         * modules/sigaction (Depends-on): Likewise.
48220         * modules/sigpipe (Depends-on): Likewise.
48221         * modules/sigprocmask (Depends-on): Likewise.
48222         * modules/sys_select (Depends-on): Likewise.
48223         * modules/signal-h-tests: Renamed from modules/signal-tests.
48224         (Files, Depends-on, Makefile.am): Update.
48225         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
48226         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
48227         (Files, Makefile.am): Update.
48228         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
48229         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
48230         * modules/signal: New placeholder file.
48231         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
48232         * doc/posix-headers/signal.texi: Update.
48233         * NEWS: Mention the change.
48235 2011-09-23  Bruno Haible  <bruno@clisp.org>
48237         sigprocmask: Avoid crashes through signal() on MSVC 9.
48238         * lib/sigprocmask.c: Include msvc-inval.h.
48239         (signal_nothrow): New function.
48240         (signal): Redefine it.
48241         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
48242         * modules/sigprocmask (Depends-on): Add msvc-inval.
48243         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
48245 2011-09-23  Bruno Haible  <bruno@clisp.org>
48247         Tests for module 'raise'.
48248         * modules/raise-tests: New file.
48249         * tests/test-raise.c: New file.
48251         raise: Support for MSVC.
48252         * lib/signal.in.h (raise): New declaration.
48253         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
48254         for native Windows platforms.
48255         * m4/raise.m4: New file.
48256         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
48257         HAVE_RAISE, REPLACE_RAISE.
48258         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
48259         REPLACE_RAISE.
48260         * modules/raise (Status, Notice): Remove fields.
48261         (Files): Add m4/raise.m4.
48262         (Depends-on): Add signal, msvc-inval.
48263         (configure.ac): Use the common idioms.
48264         (Maintainer): Add me.
48265         * tests/test-signal-c++.cc: Check the signature of raise.
48266         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
48268 2011-09-23  Bruno Haible  <bruno@clisp.org>
48270         pipe2: Fix compilation on pre-C99 compilers.
48271         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
48273 2011-09-23  Bruno Haible  <bruno@clisp.org>
48275         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
48276         * lib/msvc-nothrow.h: New file.
48277         * lib/msvc-nothrow.c: New file.
48278         * m4/msvc-nothrow.m4: New file.
48279         * modules/msvc-nothrow: New file.
48280         * lib/dup2.c: Include msvc-nothrow.h.
48281         (rpl_dup2): No need to protect _get_osfhandle call here.
48282         * lib/accept4.c: Include msvc-nothrow.h.
48283         * lib/error.c: Likewise.
48284         * lib/fcntl.c: Likewise.
48285         * lib/lseek.c: Likewise.
48286         * lib/nonblocking.c: Likewise.
48287         * lib/poll.c: Likewise.
48288         * lib/read.c: Likewise.
48289         * lib/select.c: Likewise.
48290         * lib/sockets.h: Likewise.
48291         * lib/sockets.c: Likewise.
48292         * lib/stdio-read.c: Likewise.
48293         * lib/stdio-write.c: Likewise.
48294         * lib/write.c: Likewise.
48295         * lib/w32sock.h: Likewise.
48296         * lib/w32spawn.h: Likewise.
48297         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
48298         * lib/fsync.c: Likewise.
48299         * lib/isapipe.c: Likewise.
48300         * modules/dup2 (Depends-on): Add msvc-nothrow.
48301         * modules/accept4 (Depends-on): Likewise.
48302         * modules/error (Depends-on): Likewise.
48303         * modules/fcntl (Depends-on): Likewise.
48304         * modules/lseek (Depends-on): Likewise.
48305         * modules/nonblocking (Depends-on): Likewise.
48306         * modules/poll (Depends-on): Likewise.
48307         * modules/read (Depends-on): Likewise.
48308         * modules/select (Depends-on): Likewise.
48309         * modules/sockets (Depends-on): Likewise.
48310         * modules/sigpipe (Depends-on): Likewise.
48311         * modules/write (Depends-on): Likewise.
48312         * modules/accept (Depends-on): Likewise.
48313         * modules/bind (Depends-on): Likewise.
48314         * modules/connect (Depends-on): Likewise.
48315         * modules/gethostname (Depends-on): Likewise.
48316         * modules/getpeername (Depends-on): Likewise.
48317         * modules/getsockname (Depends-on): Likewise.
48318         * modules/getsockopt (Depends-on): Likewise.
48319         * modules/ioctl (Depends-on): Likewise.
48320         * modules/listen (Depends-on): Likewise.
48321         * modules/recv (Depends-on): Likewise.
48322         * modules/recvfrom (Depends-on): Likewise.
48323         * modules/send (Depends-on): Likewise.
48324         * modules/sendto (Depends-on): Likewise.
48325         * modules/setsockopt (Depends-on): Likewise.
48326         * modules/shutdown (Depends-on): Likewise.
48327         * modules/socket (Depends-on): Likewise.
48328         * modules/execute (Depends-on): Likewise.
48329         * modules/spawn-pipe (Depends-on): Likewise.
48330         * modules/flock (Depends-on): Likewise.
48331         * modules/fsync (Depends-on): Likewise.
48332         * modules/isapipe (Depends-on): Likewise.
48333         * tests/test-cloexec.c: Include msvc-nothrow.h.
48334         * tests/test-dup-safer.c: Likewise.
48335         * tests/test-dup2.c: Likewise.
48336         * tests/test-dup3.c: Likewise.
48337         * tests/test-fcntl.c: Likewise.
48338         * tests/test-pipe.c: Likewise.
48339         * tests/test-pipe2.c: Likewise.
48340         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
48341         * modules/unistd-safer-tests (Depends-on): Likewise.
48342         * modules/dup2-tests (Depends-on): Likewise.
48343         * modules/dup3-tests (Depends-on): Likewise.
48344         * modules/fcntl-tests (Depends-on): Likewise.
48345         * modules/pipe-posix-tests (Depends-on): Likewise.
48346         * modules/pipe2-tests (Depends-on): Likewise.
48348 2011-09-23  Bruno Haible  <bruno@clisp.org>
48350         dup2: Make code more maintainable.
48351         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
48352         (rpl_dup2): Use it.
48353         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
48354         * modules/dup2 (configure.ac): Invoke it.
48355         Reported by Paul Eggert.
48357 2011-09-23  Bruno Haible  <bruno@clisp.org>
48359         msvc-inval: Fix compilation error.
48360         * lib/msvc-inval.h: Include <excpt.h>.
48362 2011-09-23  Bruno Haible  <bruno@clisp.org>
48364         mkdir: Tweak for MSVC 9.
48365         * lib/sys_stat.in.h: Update comments.
48366         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
48368         Tests for module 'chdir'.
48369         * modules/chdir-tests: New file.
48370         * tests/test-chdir.c: New file.
48372         New module 'chdir'.
48373         * modules/chdir: New file.
48374         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
48375         (chdir): New declaration.
48376         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
48377         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
48378         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
48379         * tests/test-unistd-c++.cc: Check signature of chdir.
48380         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
48381         * modules/chdir-long (Depends-on): Add chdir.
48382         * modules/fchdir (Depends-on): Likewise.
48383         * modules/rename (Depends-on): Likewise.
48384         * modules/savewd (Depends-on): Likewise.
48386         rmdir: Support for mingw, MSVC 9.
48387         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
48388         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
48390         getcwd: Tweak for MSVC 9.
48391         * lib/unistd.in.h: Update comments.
48392         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
48394 2011-09-22  Bruno Haible  <bruno@clisp.org>
48396         strerror_r-posix: Avoid a link error on MSVC.
48397         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
48398         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
48400 2011-09-22  Bruno Haible  <bruno@clisp.org>
48402         select: Avoid link errors on MSVC.
48403         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
48404         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
48405         * modules/pselect (Link): Likewise.
48406         * NEWS: Mention the change.
48407         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
48408         test-select-stdin against $(LIB_SELECT).
48409         * modules/pselect-tests (Makefile.am): Link test-pselect against
48410         $(LIB_SELECT).
48412 2011-09-22  Bruno Haible  <bruno@clisp.org>
48414         select: Avoid compilation error on MSVC.
48415         * lib/select.c: Don't include <stdbool.h>.
48417 2011-09-21  Bruno Haible  <bruno@clisp.org>
48419         Consolidate all uses of PATH_MAX in *.m4 files.
48420         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
48421         macros.
48422         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
48423         and gl_PATHMAX_SNIPPET.
48424         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
48425         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
48426         * modules/chdir-long (Files): Add m4/pathmax.m4.
48427         * modules/getcwd (Files): Likewise.
48429 2011-09-21  Bruno Haible  <bruno@clisp.org>
48431         ftruncate: Un-deprecate, concentrate on Win32 support.
48432         * modules/ftruncate (Status, Notice): Remove sections.
48433         (Depends-on): Add largefile.
48434         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
48435         non-mingw platforms.
48436         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
48437         include <io.h>.
48438         * modules/perror-tests (Depends-on): Add ftruncate.
48439         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
48440         'ftruncate' module.
48442 2011-09-21  Bruno Haible  <bruno@clisp.org>
48444         Add dependencies to new dirent related modules.
48445         * modules/opendir (Depends-on): Add closedir.
48446         * modules/getcwd (Depends-on): Add opendir, closedir.
48447         * modules/dirent-safer-tests (Depends-on): Likewise.
48448         * modules/fdopendir-tests (Depends-on): Likewise.
48449         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
48450         * modules/renameat-tests (Depends-on): Likewise.
48452 2011-09-21  Bruno Haible  <bruno@clisp.org>
48454         opendir: Avoid compilation error on mingw.
48455         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
48456         * modules/opendir (Depends-on): Add unistd.
48458 2011-09-21  Bruno Haible  <bruno@clisp.org>
48460         ftruncate tests: Avoid a test failure on mingw.
48461         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
48463 2011-09-21  Bruno Haible  <bruno@clisp.org>
48465         select tests: Avoid test failures on OSF/1 5.1 and mingw.
48466         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
48467         native Windows.
48469 2011-09-21  Bruno Haible  <bruno@clisp.org>
48471         New module 'fdopen'.
48472         * lib/stdio.in.h (fdopen): New declaration.
48473         * lib/fdopen.c: New file.
48474         * m4/fdopen.m4: New file.
48475         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
48476         REPLACE_FDOPEN.
48477         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
48478         REPLACE_FDOPEN.
48479         * modules/fdopen: New file.
48480         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
48481         * tests/test-stdio-c++.cc: Check signature of fdopen.
48482         * doc/posix-functions/fdopen.texi: Mention the new module.
48484 2011-09-21  Bruno Haible  <bruno@clisp.org>
48486         unlockpt tests: Avoid test failure on NetBSD 5.1.
48487         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
48488         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
48490 2011-09-21  Bruno Haible  <bruno@clisp.org>
48492         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
48493         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
48494         * tests/test-getlogin_r.c (main): Likewise.
48496 2011-09-20  Bruno Haible  <bruno@clisp.org>
48498         time tests: Don't require pid_t.
48499         * doc/posix-headers/time.texi: Revert last change.
48500         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
48501         * tests/test-time.c: Comment out the check for pid_t.
48503 2011-09-20  Bruno Haible  <bruno@clisp.org>
48505         fsync tests: Avoid a test failure on mingw.
48506         * tests/test-fsync.c (main): Allow a failure with EIO.
48508 2011-09-20  Bruno Haible  <bruno@clisp.org>
48510         euidaccess: Update comments.
48511         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
48513 2011-09-20  Bruno Haible  <bruno@clisp.org>
48515         Ensure EBADF returns for socket functions on mingw.
48516         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
48517         descriptor is invalid.
48518         * lib/bind.c (rpl_bind): Likewise.
48519         * lib/connect.c (rpl_connect): Likewise.
48520         * lib/getpeername.c (rpl_getpeername): Likewise.
48521         * lib/getsockname.c (rpl_getsockname): Likewise.
48522         * lib/getsockopt.c (rpl_getsockopt): Likewise.
48523         * lib/listen.c (rpl_listen): Likewise.
48524         * lib/recv.c (rpl_recv): Likewise.
48525         * lib/recvfrom.c (rpl_recvfrom): Likewise.
48526         * lib/send.c (rpl_send): Likewise.
48527         * lib/sendto.c (rpl_sendto): Likewise.
48528         * lib/setsockopt.c (rpl_setsockopt): Likewise.
48529         * lib/shutdown.c (rpl_shutdown): Likewise.
48531 2011-09-20  Bruno Haible  <bruno@clisp.org>
48533         select tests: EBADF tests.
48534         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
48535         test_bad_fd): New functions.
48536         (test_function): Invoke also test_bad_fd.
48538 2011-09-20  Bruno Haible  <bruno@clisp.org>
48540         Tests for module 'posix_spawn_file_actions_addopen.
48541         * modules/posix_spawn_file_actions_addopen-tests: New file.
48542         * tests/test-posix_spawn_file_actions_addopen.c: New file.
48544         Tests for module 'posix_spawn_file_actions_adddup2'.
48545         * modules/posix_spawn_file_actions_adddup2-tests: New file.
48546         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
48548         Tests for module 'posix_spawn_file_actions_addclose'.
48549         * modules/posix_spawn_file_actions_addclose-tests: New file.
48550         * tests/test-posix_spawn_file_actions_addclose.c: New file.
48552 2011-09-20  Bruno Haible  <bruno@clisp.org>
48554         Tests for module 'unlockpt'.
48555         * modules/unlockpt-tests: New file.
48556         * tests/test-unlockpt.c: New file.
48557         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
48559         Tests for module 'grantpt'.
48560         * modules/grantpt-tests: New file.
48561         * tests/test-grantpt.c: New file.
48562         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
48564 2011-09-20  Bruno Haible  <bruno@clisp.org>
48566         freopen tests: EBADF tests.
48567         * tests/test-freopen.c: Include errno.h, unistd.h.
48568         (main): Add tests for EBADF, commented out for the moment.
48570         fclose tests: EBADF tests.
48571         * tests/test-fclose.c (main): Add tests for EBADF.
48573         fflush tests: EBADF tests.
48574         * tests/test-fflush.c: Include errno.h, macros.h.
48575         (main): Add tests for EBADF.
48577         ftello tests: EBADF tests.
48578         * tests/test-ftello4.sh: New file.
48579         * tests/test-ftello4.c: New file.
48580         * modules/ftello-tests (Files): Add them.
48581         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
48583         fseeko tests: EBADF tests.
48584         * tests/test-fseeko4.sh: New file.
48585         * tests/test-fseeko4.c: New file.
48586         * modules/fseeko-tests (Files): Add them.
48587         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
48589         Tests for function fputc().
48590         * modules/fputc-tests: New file.
48591         * tests/test-fputc.c: New file.
48592         * modules/stdio-tests (Depends-on): Add fputc-tests.
48594         Tests for function fgetc().
48595         * modules/fgetc-tests: New file.
48596         * tests/test-fgetc.c: New file.
48597         * modules/stdio-tests (Depends-on): Add fgetc-tests.
48599         Tests for function fdopen().
48600         * modules/fdopen-tests: New file.
48601         * tests/test-fdopen.c: New file.
48602         * modules/stdio-tests (Depends-on): Add fdopen-tests.
48604         Tests for module 'vdprintf'.
48605         * modules/vdprintf-tests: New file.
48606         * tests/test-vdprintf.c: New file.
48608         Tests for module 'dprintf'.
48609         * modules/dprintf-tests: New file.
48610         * tests/test-dprintf.c: New file.
48612 2011-09-20  Bruno Haible  <bruno@clisp.org>
48614         Tests for module 'ioctl'.
48615         * modules/ioctl-tests: New file.
48616         * tests/test-ioctl.c: New file.
48618 2011-09-20  Bruno Haible  <bruno@clisp.org>
48620         fcntl tests: EBADF tests.
48621         * tests/test-fcntl.c (main): Add more tests for EBADF.
48623 2011-09-20  Bruno Haible  <bruno@clisp.org>
48625         utimensat tests: EBADF tests.
48626         * tests/test-utimensat.c (main): Add tests for EBADF.
48628         renameat tests: EBADF tests.
48629         * tests/test-renameat.c (main): Add tests for EBADF.
48631         mkfifoat tests: EBADF tests.
48632         * tests/test-mkfifoat.c (main): Add tests for EBADF.
48634         readlinkat tests: EBADF tests.
48635         * tests/test-readlinkat.c (main): Add tests for EBADF.
48637         symlinkat tests: EBADF tests.
48638         * tests/test-symlinkat.c (main): Add tests for EBADF.
48640         linkat tests: EBADF tests.
48641         * tests/test-linkat.c (main): Add tests for EBADF.
48643         Tests for module 'faccessat'.
48644         * modules/faccessat-tests: New file.
48645         * tests/test-faccessat.c: New file.
48647         fdopendir tests: EBADF tests.
48648         * tests/test-fdopendir.c (main): Add more tests for EBADF.
48650         openat tests: EBADF tests.
48651         * tests/test-fchownat.c (main): Add tests for EBADF.
48652         * tests/test-fstatat.c (main): Likewise.
48653         * tests/test-mkdirat.c (main): Likewise.
48654         * tests/test-openat.c (main): Likewise.
48655         * tests/test-unlinkat.c (main): Likewise.
48656         * tests/test-fchmodat.c: New file.
48657         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
48658         (Makefile.am): Also run 'test-fchmodat'.
48660 2011-09-20  Bruno Haible  <bruno@clisp.org>
48662         utimens, futimens, fdutimensat tests: EBADF tests.
48663         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
48665         Tests for function fstat().
48666         * modules/fstat-tests: New file.
48667         * tests/test-fstat.c: New file.
48668         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
48670 2011-09-20  Bruno Haible  <bruno@clisp.org>
48672         test-ttyname_r tests: EBADF tests.
48673         * tests/test-ttyname_r.c (main): Add tests for EBADF.
48675         Tests for module 'isatty'.
48676         * modules/isatty-tests: New file.
48677         * tests/test-isatty.c: New file.
48679         Tests for module 'write'.
48680         * modules/write-tests: New file.
48681         * tests/test-write.c: New file.
48683         Tests for module 'read'.
48684         * modules/read-tests: New file.
48685         * tests/test-read.c: New file.
48687         pwrite tests: EBADF tests.
48688         * tests/test-pwrite.c (main): Add tests for EBADF.
48690         pread tests: EBADF tests.
48691         * tests/test-pread.c (main): Add tests for EBADF.
48693         lseek tests: EBADF tests.
48694         * tests/test-lseek.c (main): Add more tests for EBADF.
48696         Tests for module 'ftruncate'.
48697         * modules/ftruncate-tests: New file.
48698         * tests/test-ftruncate.sh: New file.
48699         * tests/test-ftruncate.c: New file.
48701         fsync tests: EBADF tests.
48702         * tests/test-fsync.c (main): Add more tests for EBADF.
48704         fdatasync tests: EBADF tests.
48705         * tests/test-fdatasync.c (main): Add more tests for EBADF.
48707         Tests for module 'fchown'.
48708         * modules/fchown-tests: New file.
48709         * tests/test-fchown.c: New file.
48711         Tests for module 'fchmod'.
48712         * modules/fchmod-tests: New file.
48713         * tests/test-fchmod.c: New file.
48715         fchdir tests: EBADF tests.
48716         * tests/test-fchdir.c (main): Add more tests for EBADF.
48718         dup2 tests: EBADF tests.
48719         * tests/test-dup2.c (main): Add more tests for EBADF.
48721         Tests for module 'dup'.
48722         * modules/dup-tests: New file.
48723         * tests/test-dup.c: New file.
48725         Tests for module 'close'.
48726         * modules/close-tests: New file.
48727         * tests/test-close.c: New file.
48729 2011-09-20  Bruno Haible  <bruno@clisp.org>
48731         Tests for module 'shutdown'.
48732         * modules/shutdown-tests: New file.
48733         * tests/test-shutdown.c: New file.
48735         Tests for module 'setsockopt'.
48736         * modules/setsockopt-tests: New file.
48737         * tests/test-setsockopt.c: New file.
48739         Tests for module 'sendto'.
48740         * modules/sendto-tests: New file.
48741         * tests/test-sendto.c: New file.
48743         Tests for module 'send'.
48744         * modules/send-tests: New file.
48745         * tests/test-send.c: New file.
48747         Tests for module 'recvfrom'.
48748         * modules/recvfrom-tests: New file.
48749         * tests/test-recvfrom.c: New file.
48751         Tests for module 'recv'.
48752         * modules/recv-tests: New file.
48753         * tests/test-recv.c: New file.
48755         Tests for module 'listen'.
48756         * modules/listen-tests: New file.
48757         * tests/test-listen.c: New file.
48759         Tests for module 'getsockopt'.
48760         * modules/getsockopt-tests: New file.
48761         * tests/test-getsockopt.c: New file.
48763         Tests for module 'getsockname'.
48764         * modules/getsockname-tests: New file.
48765         * tests/test-getsockname.c: New file.
48767         Tests for module 'getpeername'.
48768         * modules/getpeername-tests: New file.
48769         * tests/test-getpeername.c: New file.
48771         Tests for module 'connect'.
48772         * modules/connect-tests: New file.
48773         * tests/test-connect.c: New file.
48775         Tests for module 'bind'.
48776         * modules/bind-tests: New file.
48777         * tests/test-bind.c: New file.
48779         accept4 tests: Fix for native Windows.
48780         * tests/test-accept4.c: Include sockets.h.
48781         (main): Invoke gl_sockets_startup.
48782         * modules/accept4-tests (Depends-on): Add sockets.
48784         accept tests: Fix for native Windows.
48785         * tests/test-accept.c: Include sockets.h.
48786         (main): Invoke gl_sockets_startup.
48787         * modules/accept-tests (Depends-on): Add sockets.
48789 2011-09-19  Bruno Haible  <bruno@clisp.org>
48791         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
48792         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
48793         do...while(0).
48794         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
48795         Suggested by Paul Eggert.
48797 2011-09-19  Bruno Haible  <bruno@clisp.org>
48799         sched: Ensure pid_t is defined.
48800         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
48801         not define pid_t.
48802         * lib/sched.in.h: Include <sys/types.h>.
48803         * doc/posix-headers/sched.texi: Mention the pid_t problem.
48804         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48806 2011-09-19  Bruno Haible  <bruno@clisp.org>
48808         msvc-inval: Ensure the entire expansion is a single statement.
48809         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
48810         of braces.
48812 2011-09-19  Jim Meyering  <meyering@redhat.com>
48814         tests: use printf, not echo in init.sh's warn_ function
48815         * tests/init.sh (warn_): Use printf, not echo.  The latter would
48816         misbehave when given strings containing a backslash or starting
48817         with e.g., -n.  James Youngman suggested setting IFS.
48819 2011-09-19  Eric Blake  <eblake@redhat.com>
48821         futimens: enhance test
48822         * tests/test-futimens.h (test_futimens): Also check for EBADF on
48823         closed non-negative fd.
48825         date: accept 'hence' as opposite of 'ago'
48826         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
48827         * tests/test-parse-datetime.c (main): Enhance test.
48828         Suggested by Jesse Wilson.
48830 2011-09-19  Jim Meyering  <meyering@redhat.com>
48832         getcwd: don't fail in a deep directory on a system without openat
48833         Before this change, getcwd would fail when called from a directory
48834         of depth PATH_MAX / 3 or greater.  That was due to the fact that
48835         the non-openat implementation used "..", "../..", "../../..", etc.
48836         to access ancestor directories.  With too many, that string would
48837         be longer than PATH_MAX.
48838         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
48839         using gnulib's openat replacement.
48840         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
48841         we're using the replacement function.
48843 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
48845         maint.mk: avoid warnings from perl about missing files
48846         * top/maint.mk (def_sym_regex): Ignore files listed in
48847         $(gl_other_headers_) that do not exist, say because a project
48848         does not use a corresponding module.
48850 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
48852         stat: use pathmax.h only if needed
48853         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
48854         This is better for Emacs, which does not have a mingw port and
48855         therefore can avoid the pathmax module.
48857         utimens: remove dependency on dup2
48858         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
48859         to work around the Linux kernel bug.
48860         * modules/utimens (Depends-on): Remove dup2.
48862 2011-09-18  Bruno Haible  <bruno@clisp.org>
48864         inet_ntop, inet_pton: Look for it also in libresolv.
48865         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
48866         libnsl, search for it in libresolv.
48867         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
48868         Needed on Solaris 7.
48870 2011-09-18  Bruno Haible  <bruno@clisp.org>
48872         accept, accept4 tests: Avoid link error on Solaris.
48873         * modules/accept-tests (Makefile.am): Link test-accept against
48874         $(LIBSOCKET).
48875         * modules/accept4-tests (Makefile.am): Link test-accept4 against
48876         $(LIBSOCKET).
48878         accept4: Avoid link error on Solaris.
48879         * modules/accept4 (Link): New section.
48881         socket functions: Avoid link errors on Solaris.
48882         * modules/accept (Depends-on): Add socketlib.
48883         (Link): New section.
48884         * modules/bind (Depends-on): Add socketlib.
48885         (Link): New section.
48886         * modules/connect (Depends-on): Add socketlib.
48887         (Link): New section.
48888         * modules/getpeername (Depends-on): Add socketlib.
48889         (Link): New section.
48890         * modules/getsockname (Depends-on): Add socketlib.
48891         (Link): New section.
48892         * modules/getsockopt (Depends-on): Add socketlib.
48893         (Link): New section.
48894         * modules/listen (Depends-on): Add socketlib.
48895         (Link): New section.
48896         * modules/recv (Depends-on): Add socketlib.
48897         (Link): New section.
48898         * modules/recvfrom (Depends-on): Add socketlib.
48899         (Link): New section.
48900         * modules/send (Depends-on): Add socketlib.
48901         (Link): New section.
48902         * modules/sendto (Depends-on): Add socketlib.
48903         (Link): New section.
48904         * modules/setsockopt (Depends-on): Add socketlib.
48905         (Link): New section.
48906         * modules/shutdown (Depends-on): Add socketlib.
48907         (Link): New section.
48908         * modules/socket (Depends-on): Add socketlib.
48909         (Link): New section.
48911 2011-09-18  Bruno Haible  <bruno@clisp.org>
48913         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
48914         * tests/test-ptsname.c (main): Terminate the test if it takes longer
48915         than 5 seconds.
48916         * modules/ptsname-tests (configure.ac): Test for alarm.
48918 2011-09-18  Bruno Haible  <bruno@clisp.org>
48920         posix_spawn_file_actions_add*: Fix module dependencies.
48921         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
48922         posix_spawn_file_actions_init.
48923         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
48924         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
48926 2011-09-18  Bruno Haible  <bruno@clisp.org>
48928         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
48929         * tests/test-rename.h (test_rename): Allow error code EEXIST.
48930         * tests/test-renameat.c (main): Likewise.
48932 2011-09-18  Bruno Haible  <bruno@clisp.org>
48934         Tests for module 'accept4'.
48935         * modules/accept4-tests: New file.
48936         * tests/test-accept4.c: New file.
48938 2011-09-18  Bruno Haible  <bruno@clisp.org>
48940         Tests for module 'accept'.
48941         * modules/accept-tests: New file.
48942         * tests/test-accept.c: New file.
48944 2011-09-18  Bruno Haible  <bruno@clisp.org>
48946         dup2: Support for MSVC.
48947         * lib/dup2.c: Include msvc-inval.h.
48948         (rpl_dup2): Handle invalid parameter notifications during dup2 and
48949         _get_osfhandle calls.
48950         * modules/dup2 (Depends-on): Add msvc-inval.
48951         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
48953         New module 'msvc-inval'.
48954         * lib/msvc-inval.h: New file.
48955         * lib/msvc-inval.c: New file.
48956         * m4/msvc-inval.m4: New file.
48957         * modules/msvc-inval: New file.
48959 2011-09-17  Bruno Haible  <bruno@clisp.org>
48961         Tests for module 'pclose'.
48962         * modules/pclose-tests: New file.
48964         New module 'pclose'.
48965         * lib/stdio.in.h (pclose): New declaration.
48966         * lib/pclose.c: New file.
48967         * m4/pclose.m4: New file.
48968         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
48969         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
48970         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
48971         * modules/pclose: New file.
48972         * modules/popen-tests (Depends-on): Add pclose.
48973         * modules/popen-safer-tests (Depends-on): Likewise.
48974         * doc/posix-functions/pclose.texi: Mention the new module.
48976 2011-09-17  Bruno Haible  <bruno@clisp.org>
48978         popen: Support for MSVC.
48979         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
48980         * lib/popen.c (popen): Provide alternate definition for native Windows.
48981         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
48982         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
48983         * modules/popen (Depends-on, configure.ac): Update condition.
48984         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
48985         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
48986         fixed.
48988 2011-09-17  Bruno Haible  <bruno@clisp.org>
48990         isnanl, isnand, isnanf: Work around MSVC bug.
48991         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
48993 2011-09-17  Bruno Haible  <bruno@clisp.org>
48995         sys_socket tests: Fix recent mistake.
48996         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
48998 2011-09-17  Bruno Haible  <bruno@clisp.org>
49000         putenv: Support for MSVC.
49001         * modules/putenv (Depends-on): Add environ.
49002         * lib/putenv.c (environ): Disable declaration.
49003         * lib/unistd.in.h: Update comment.
49005 2011-09-17  Bruno Haible  <bruno@clisp.org>
49007         math: Avoid macro redefinition warnings on MSVC.
49008         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
49009         Undefine before redefining.
49011 2011-09-17  Bruno Haible  <bruno@clisp.org>
49013         doc: Mention functions which are declared as macros.
49014         * doc/posix-functions/*[fl].texi: Mention that some functions are
49015         defined as macros with arguments only.
49017 2011-09-17  Bruno Haible  <bruno@clisp.org>
49019         Add dependencies to new dirent related modules.
49020         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
49021         * modules/fts (Depends-on): Likewise.
49022         * modules/glob (Depends-on): Likewise.
49023         * modules/savedir (Depends-on): Likewise.
49024         * modules/scandir (Depends-on): Likewise.
49025         * modules/dirent-safer (Depends-on): Add opendir, closedir.
49026         * modules/fdopendir (Depends-on): Add opendir.
49028 2011-09-17  Bruno Haible  <bruno@clisp.org>
49030         inet_pton: Support for MSVC on Windows Vista or newer.
49031         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
49032         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
49033         HAVE_DECL_INET_PTON is defined.
49034         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49035         On platforms with <winsock2.h>, test whether inet_pton is declared in
49036         <ws2tcpip.h>. If so, arrange to replace it.
49037         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49038         REPLACE_INET_PTON.
49039         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
49040         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
49041         (Depends-on, configure.ac): Update condition.
49042         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
49044 2011-09-17  Bruno Haible  <bruno@clisp.org>
49046         inet_ntop: Support for MSVC on Windows Vista or newer.
49047         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
49048         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
49049         HAVE_DECL_INET_NTOP is defined.
49050         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
49051         On platforms with <winsock2.h>, test whether inet_ntop is declared in
49052         <ws2tcpip.h>. If so, arrange to replace it.
49053         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
49054         REPLACE_INET_NTOP.
49055         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
49056         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
49057         (Depends-on, configure.ac): Update condition.
49058         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
49060 2011-09-16  Eric Blake  <eblake@redhat.com>
49062         test-fsync: yet another enhancement
49063         * tests/test-fsync.c (main): Also test behavior on read-only text
49064         file.
49066 2011-09-16  Bruno Haible  <bruno@clisp.org>
49068         Enhance fsync, fdatasync tests.
49069         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
49070         * tests/test-fdatasync.c (main): Likewise.
49072 2011-09-16  Bruno Haible  <bruno@clisp.org>
49074         Support for MSVC compiler: Ensure mode_t gets defined.
49075         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
49076         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49077         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
49078         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
49079         * tests/test-fcntl-h.c: Check that mode_t is defined.
49080         * tests/test-sys_stat.c: Likewise.
49081         * tests/test-sys_types.c: Likewise.
49082         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
49083         * doc/posix-headers/sys_stat.texi: Likewise.
49084         * doc/posix-headers/sys_types.texi: Likewise.
49086 2011-09-16  Bruno Haible  <bruno@clisp.org>
49088         sys_stat: Support for MSVC.
49089         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
49090         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
49091         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
49092         MSVC.
49094 2011-09-16  Bruno Haible  <bruno@clisp.org>
49096         Support for MSVC compiler: Ensure off_t gets defined.
49097         * lib/unistd.in.h: Include <sys/types.h>.
49098         * tests/test-fcntl-h.c: Check that off_t is defined.
49099         * tests/test-sys_stat.c: Likewise.
49100         * tests/test-sys_types.c: Likewise.
49102 2011-09-16  Eric Blake  <eblake@redhat.com>
49104         fdatasync: port to Solaris
49105         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
49106         * modules/fdatasync (Link): Document it.
49107         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
49109         fdatasync: port to MacOS X 10.7
49110         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
49111         declared.
49112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
49113         * modules/unistd (Makefile.am): Substitute it.
49114         * lib/unistd.in.h (fdatasync): Declare on MacOS.
49115         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
49117         fdatasync: minor improvements
49118         * modules/fdatasync (Depends-on): Add condition for fsync.
49119         * lib/fdatasync.c (fdatasync): Add comment.
49120         * tests/test-unistd-c++.cc: Test fdatasync.
49122         unistd: update refs to newer POSIX
49123         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
49124         Suggested by Bruno Haible.
49126         fdatasync: new module
49127         * modules/fsync (Description): Document difference to fdatasync.
49128         * modules/fdatasync: New module.
49129         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
49130         * lib/fdatasync.c (fdatasync): Likewise.
49131         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
49132         defaults.
49133         * modules/unistd (Makefile.am): Set witnesses.
49134         * lib/unistd.in.h (fdatasync): Declare.
49135         * MODULES.html.sh: Document it.
49136         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
49137         * modules/fdatasync-tests: New test.
49138         * tests/test-fdatasync.c: Likewise.
49140 2011-09-16  Eric Blake  <eblake@redhat.com>
49142         test-fsync: enhance tests
49143         * modules/fsync-tests (Depends-on): Add errno, for mingw.
49144         * tests/test-fsync.c (main): Enhance test.
49146 2011-09-15  Bruno Haible  <bruno@clisp.org>
49148         Support for MSVC compiler: Ensure ssize_t gets defined.
49149         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
49150         * doc/posix-headers/stdio.texi: Likewise.
49151         * modules/stdio (Depends-on): Add ssize_t.
49152         * modules/sys_socket (Depends-on): Likewise.
49153         * modules/sys_types (Depends-on): Likewise.
49154         * modules/sys_uio (Depends-on): Likewise.
49155         * modules/unistd (Depends-on): Likewise.
49156         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
49157         * tests/test-sys_types.c: Check that ssize_t is defined.
49159 2011-09-14  Bruno Haible  <bruno@clisp.org>
49161         Avoid using #, the m4 comment starter character, near brackets.
49162         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
49163         delimiter character in sed expressions.
49164         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
49165         Suggested by Eric Blake.
49167         Properly quote AC_CHECK_DECLS' 4th argument.
49168         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
49169         argument.
49170         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
49171         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
49172         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
49173         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
49174         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
49175         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
49176         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
49177         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
49178         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
49179         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
49180         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
49181         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
49182         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
49183         * m4/isinf.m4 (gl_ISINF): Likewise.
49184         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
49185         * m4/readutmp.m4 (gl_READUTMP): Likewise.
49186         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
49187         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
49188         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
49189         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
49190         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
49191         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
49192         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
49193         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
49194         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
49195         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
49196         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
49197         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
49198         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
49199         Reported by Eric Blake.
49201         Properly quote AC_CHECK_DECL's 4th argument.
49202         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
49203         argument.
49204         * m4/argp.m4 (gl_ARGP): Likewise.
49205         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
49206         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
49207         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
49208         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
49209         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
49210         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
49211         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
49212         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
49213         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
49214         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
49215         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
49216         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
49217         Reported by Eric Blake.
49219 2011-09-14  Eric Blake  <eblake@redhat.com>
49221         opendir: avoid compile warning
49222         * lib/opendir.c (includes): Always include errno.h.
49223         Reported by Tatsuro MATSUOKA.
49225 2011-09-14  Jim Meyering  <meyering@redhat.com>
49227         maint.mk: sc_tight_scope: propagate failure from sub-make
49228         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
49229         Reported by Martin von Gagern.
49231 2011-09-13  Bruno Haible  <bruno@clisp.org>
49233         tempname: Support for MSVC.
49234         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
49235         MSVC.
49236         * modules/tempname (Depends-on): Add fcntl-h.
49238 2011-09-13  Bruno Haible  <bruno@clisp.org>
49240         sys_time: Support for MSVC.
49241         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
49242         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
49243         include <winsock2.h>.
49244         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
49245         function declarations that collide with POSIX.
49246         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
49247         (Makefile.am): Substitute HAVE_WINSOCK2_H.
49249 2011-09-13  Bruno Haible  <bruno@clisp.org>
49251         stat: Support for MSVC.
49252         * lib/stat.c: Include pathmax.h.
49253         * modules/stat (Depends-on): Add pathmax.
49255         pathmax: Support for native Windows.
49256         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
49258 2011-09-12  Bruno Haible  <bruno@clisp.org>
49260         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
49261         * lib/dirent.in.h (struct dirent): New type.
49262         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
49263         DT_WHT): New macros.
49264         (DIR): New type.
49265         (opendir, closedir): Declare only if the module 'opendir' is enabled.
49266         (readdir, rewinddir): New declarations.
49267         * lib/dirent-private.h: New file.
49268         * lib/opendir.c: New file.
49269         * lib/readdir.c: New file.
49270         * lib/rewinddir.c: New file.
49271         * lib/closedir.c: New file.
49272         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
49273         * m4/opendir.m4: New file.
49274         * m4/readdir.m4: New file.
49275         * m4/rewinddir.m4: New file.
49276         * m4/closedir.m4: New file.
49277         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
49278         REPLACE_CLOSEDIR here.
49279         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
49280         readdir, rewinddir are declared.
49281         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
49282         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
49283         HAVE_REWINDDIR, HAVE_CLOSEDIR.
49284         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
49285         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
49286         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
49287         * modules/opendir: New file.
49288         * modules/readdir: New file.
49289         * modules/rewinddir: New file.
49290         * modules/closedir: New file.
49291         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
49292         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
49293         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
49294         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
49295         * NEWS: Mention the 'fchdir' change.
49297 2011-09-11  Bruno Haible  <bruno@clisp.org>
49299         asm-underscore.m4: Support for MSVC.
49300         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
49301         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
49303 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
49305         Doc about crypt functions.
49306         * doc/posix-functions/crypt.texi: Expand range of glibc versions
49307         needing for _GNU_SOURCE to get crypt.
49308         * doc/posix-functions/encrypt.texi: Likewise.
49309         * doc/posix-functions/setkey.texi: Likewise.
49311 2011-09-11  Bruno Haible  <bruno@clisp.org>
49313         doc: Update regarding MSVC 9.
49314         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
49315         tested".
49316         * doc/posix-functions/*.texi: Update with info about MSVC 9.
49317         * doc/posix-headers/*.texi: Likewise.
49318         * doc/pastposix-functions/*.texi: Likewise.
49319         * doc/glibc-functions/*.texi: Likewise.
49320         * doc/glibc-headers/*.texi: Likewise.
49322 2011-09-11  Bruno Haible  <bruno@clisp.org>
49324         unistd et al.: Don't assume <unistd.h> exists.
49325         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
49326         does not exist.
49327         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
49328         exist. But include <stdlib.h>.
49329         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
49330         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
49331         symlink() does not exist.
49332         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
49333         include <io.h> instead.
49334         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
49335         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
49336         include <direct.h> instead.
49337         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
49338         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
49339         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
49340         <io.h> instead.
49341         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
49342         correctly if the system does not have hard links.
49343         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
49344         <direct.h> instead.
49345         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
49346         it when looking for function declarations.
49347         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
49348         <direct.h> and <io.h> instead.
49349         * doc/posix-headers/unistd.texi: More details about MSVC problem.
49351 2011-09-11  Bruno Haible  <bruno@clisp.org>
49353         strcase: Support for MSVC.
49354         * modules/strcase (Status, Notice): Remove obsoletion mark.
49355         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
49356         * doc/posix-functions/strncasecmp.texi: Likewise.
49358         strings: Don't assume <strings.h> exists.
49359         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
49360         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
49361         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
49362         * doc/posix-headers/strings.texi: Mention the MSVC problem.
49364 2011-09-11  Bruno Haible  <bruno@clisp.org>
49366         dirent: Don't assume <dirent.h> exists.
49367         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
49368         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
49369         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
49370         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
49372 2011-09-11  Bruno Haible  <bruno@clisp.org>
49374         Fix wint_t on MSVC.
49375         * lib/wchar.in.h (wint_t): On MSVC, override it.
49376         * lib/wctype.in.h (wint_t): Likewise.
49377         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
49378         MSVC.
49379         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
49380         * doc/posix-headers/wctype.texi: Likewise.
49382 2011-09-11  Bruno Haible  <bruno@clisp.org>
49384         sys_types: Fix typo.
49385         * lib/sys_types.in.h: Fix typo in comment.
49386         Reported by Paul Eggert.
49388         Support for MSVC compiler: Ensure size_t gets defined.
49389         * modules/strings (Depends-on): Add 'sys_types'.
49390         * modules/sys_uio (Depends-on): Likewise.
49391         * lib/sys_uio.in.h: Update comment.
49393         C++ tests for module 'sys_types'.
49394         * modules/sys_types-c++-tests: New file.
49395         * tests/test-sys_types-c++.cc: New file.
49397         Tests for module 'sys_types'.
49398         * modules/sys_types-tests: New file.
49399         * tests/test-sys_types.c: New file.
49401         New module 'sys_types'.
49402         * lib/sys_types.in.h: New file.
49403         * m4/sys_types_h.m4: New file.
49404         * modules/sys_types: New file.
49405         * doc/posix-headers/sys_types.texi: Mention the new module and the
49406         size_t problem on MSVC 9.
49408 2011-09-11  Bruno Haible  <bruno@clisp.org>
49410         Support for MSVC compiler: Avoid division by a literal 0.
49411         * lib/math.in.h (NAN): Define through a function call also on MSVC.
49412         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
49413         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
49414         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
49415         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
49416         * tests/infinity.h: New file.
49417         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
49418         on MSVC.
49419         * tests/test-ceilf1.c: Include infinity.h.
49420         (main): Use Infinityf.
49421         * tests/test-ceil1.c: Include infinity.h.
49422         (main): Use Infinityd.
49423         * tests/test-ceill.c: Include infinity.h.
49424         (main): Use Infinityl.
49425         * tests/test-dprintf-posix.c: Include infinity.h.
49426         (test_function): Use Infinityd.
49427         * tests/test-floorf1.c: Include infinity.h.
49428         (main): Use Infinityf.
49429         * tests/test-floor1.c: Include infinity.h.
49430         (main): Use Infinityd.
49431         * tests/test-floorl.c: Include infinity.h.
49432         (main): Use Infinityl.
49433         * tests/test-fprintf-posix.c: Include infinity.h.
49434         (test_function): Use Infinityd.
49435         * tests/test-frexp.c: Include infinity.h.
49436         (main): Use Infinityd.
49437         * tests/test-frexpl.c: Include infinity.h.
49438         (main): Use Infinityl.
49439         * tests/test-isfinite.c: Include infinity.h.
49440         (test_isfinitef): Use Infinityf.
49441         (test_isfinited): Use Infinityd.
49442         (test_isfinitel): Use Infinityl.
49443         * tests/test-isinf.c: Include infinity.h.
49444         (test_isinff): Use Infinityf.
49445         (test_isinfd): Use Infinityd.
49446         (test_isinfl): Use Infinityl.
49447         * tests/test-isnan.c: Include infinity.h.
49448         (test_float): Use Infinityf.
49449         (test_double): Use Infinityd.
49450         (test_long_double): Use Infinityl.
49451         * tests/test-isnanf.h: Include infinity.h.
49452         (main): Use Infinityf.
49453         * tests/test-isnand.h: Include infinity.h.
49454         (main): Use Infinityd.
49455         * tests/test-isnanl.h: Include infinity.h.
49456         (main): Use Infinityl.
49457         * tests/test-ldexpl.c: Include infinity.h.
49458         (main): Use Infinityl.
49459         * tests/test-printf-posix.h: Include infinity.h.
49460         (test_function): Use Infinityd.
49461         * tests/test-roundf1.c: Include infinity.h.
49462         (main): Use Infinityf.
49463         * tests/test-round1.c: Include infinity.h.
49464         (main): Use Infinityd.
49465         * tests/test-roundl.c: Include infinity.h.
49466         (main): Use Infinityl.
49467         * tests/test-signbit.c: Include infinity.h.
49468         (test_signbitf): Use Infinityf.
49469         (test_signbitd): Use Infinityd.
49470         (test_signbitl): Use Infinityl.
49471         * tests/test-snprintf-posix.h: Include infinity.h.
49472         (test_function): Use Infinityd, Infinityl.
49473         * tests/test-sprintf-posix.h: Include infinity.h.
49474         (test_function): Use Infinityd, Infinityl.
49475         * tests/test-truncf1.c: Include infinity.h.
49476         (main): Use Infinityf.
49477         * tests/test-trunc1.c: Include infinity.h.
49478         (main): Use Infinityd.
49479         * tests/test-truncl.c: Include infinity.h.
49480         (main): Use Infinityl.
49481         * tests/test-vasnprintf-posix.c: Include infinity.h.
49482         (test_function): Use Infinityd, Infinityl.
49483         * tests/test-vasprintf-posix.c: Include infinity.h.
49484         (test_function): Use Infinityd, Infinityl.
49485         * modules/ceilf-tests (Files): Add tests/infinity.h.
49486         * modules/ceil-tests (Files): Likewise.
49487         * modules/ceill-tests (Files): Likewise.
49488         * modules/dprintf-posix-tests (Files): Likewise.
49489         * modules/floorf-tests (Files): Likewise.
49490         * modules/floor-tests (Files): Likewise.
49491         * modules/floorl-tests (Files): Likewise.
49492         * modules/fprintf-posix-tests (Files): Likewise.
49493         * modules/frexp-tests (Files): Likewise.
49494         * modules/frexp-nolibm-tests (Files): Likewise.
49495         * modules/frexpl-tests (Files): Likewise.
49496         * modules/frexpl-nolibm-tests (Files): Likewise.
49497         * modules/isfinite-tests (Files): Likewise.
49498         * modules/isinf-tests (Files): Likewise.
49499         * modules/isnan-tests (Files): Likewise.
49500         * modules/isnanf-tests (Files): Likewise.
49501         * modules/isnanf-nolibm-tests (Files): Likewise.
49502         * modules/isnand-tests (Files): Likewise.
49503         * modules/isnand-nolibm-tests (Files): Likewise.
49504         * modules/isnanl-tests (Files): Likewise.
49505         * modules/isnanl-nolibm-tests (Files): Likewise.
49506         * modules/ldexpl-tests (Files): Likewise.
49507         * modules/printf-posix-tests (Files): Likewise.
49508         * modules/roundf-tests (Files): Likewise.
49509         * modules/round-tests (Files): Likewise.
49510         * modules/roundl-tests (Files): Likewise.
49511         * modules/signbit-tests (Files): Likewise.
49512         * modules/snprintf-posix-tests (Files): Likewise.
49513         * modules/sprintf-posix-tests (Files): Likewise.
49514         * modules/truncf-tests (Files): Likewise.
49515         * modules/trunc-tests (Files): Likewise.
49516         * modules/truncl-tests (Files): Likewise.
49517         * modules/vasnprintf-posix-tests (Files): Likewise.
49518         * modules/vasprintf-posix-tests (Files): Likewise.
49519         * modules/vdprintf-posix-tests (Files): Likewise.
49520         * modules/vfprintf-posix-tests (Files): Likewise.
49521         * modules/vprintf-posix-tests (Files): Likewise.
49522         * modules/vsnprintf-posix-tests (Files): Likewise.
49523         * modules/vsprintf-posix-tests (Files): Likewise.
49524         * modules/xprintf-posix-tests (Files): Likewise.
49526 2011-09-11  Bruno Haible  <bruno@clisp.org>
49528         Ensure pid_t gets defined.
49529         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
49530         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
49531         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
49532         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
49533         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
49534         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
49535         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
49536         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
49537         * tests/test-fcntl-h.c: Check that pid_t is defined.
49538         * tests/test-sched.c: Likewise.
49539         * tests/test-termios.c: Likewise.
49540         * tests/test-time.c: Likewise.
49541         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
49542         * doc/posix-headers/signal.texi: Likewise.
49543         * doc/posix-headers/sys_types.texi: Likewise.
49544         * doc/posix-headers/time.texi: Likewise.
49546 2011-09-11  Bruno Haible  <bruno@clisp.org>
49548         acl: Fix compilation on Solaris 10 (older version).
49549         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
49550         of ACE_EVERYONE.
49551         * lib/set-mode-acl.c (qset_acl): Likewise.
49552         Reported by Christian Jullien <eligis@orange.fr>.
49554 2011-09-10  Bruno Haible  <bruno@clisp.org>
49556         iconv, unsetenv: Add support for MSVC compiler.
49557         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
49558         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
49560 2011-09-10  Bruno Haible  <bruno@clisp.org>
49562         *printf: Add support for MSVC compiler.
49563         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
49564         handles the exception caused by the %n directive. When cross-compiling,
49565         guess no on native Windows.
49566         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
49567         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
49568         emulate it through vsnprintf.
49569         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
49570         * doc/posix-functions/dprintf.texi: Update documentation regarding
49571         MSVC 9.
49572         * doc/posix-functions/fprintf.texi: Likewise.
49573         * doc/posix-functions/printf.texi: Likewise.
49574         * doc/posix-functions/snprintf.texi: Likewise.
49575         * doc/posix-functions/sprintf.texi: Likewise.
49576         * doc/posix-functions/swprintf.texi: Likewise.
49577         * doc/posix-functions/vdprintf.texi: Likewise.
49578         * doc/posix-functions/vfprintf.texi: Likewise.
49579         * doc/posix-functions/vprintf.texi: Likewise.
49580         * doc/posix-functions/vsnprintf.texi: Likewise.
49581         * doc/posix-functions/vsprintf.texi: Likewise.
49582         * doc/glibc-functions/asprintf.texi: Likewise.
49583         * doc/glibc-functions/obstack_printf.texi: Likewise.
49584         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
49585         * doc/glibc-functions/vasprintf.texi: Likewise.
49587 2011-09-10  Bruno Haible  <bruno@clisp.org>
49589         nocrash: Add support for native Windows.
49590         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
49592 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
49593             Bruno Haible  <bruno@clisp.org>
49595         absolute-header, include-next: Add support for MSVC compiler.
49596         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
49597         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
49598         directory separator in #line directives.
49599         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
49600         recognize also backslash as directory separator in #line directives.
49602 2011-09-08  Jim Meyering  <meyering@redhat.com>
49604         maint.mk: mark the post-release commit log with "maint: " prefix
49605         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
49606         one-line commit-log summary.
49608 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
49609             Bruno Haible  <bruno@clisp.org>
49611         Doc about crypt functions.
49612         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
49613         systems.
49614         * doc/posix-functions/encrypt.texi: Likewise.
49615         * doc/posix-functions/setkey.texi: Likewise.
49617 2011-09-08  Simon Josefsson  <simon@josefsson.org>
49619         * lib/gc.h: Fix copyright header.
49621 2011-09-07  Bruno Haible  <bruno@clisp.org>
49623         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
49624         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
49625         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
49627 2011-09-07  Bruno Haible  <bruno@clisp.org>
49629         openat: Work around compilation error with OSF/1 5.1 DTK cc.
49630         * lib/fopen.c: Use different syntax for include of <stdio.h>.
49631         * lib/freopen.c: Likewise.
49632         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
49633         * lib/lstat.c: Likewise.
49634         * lib/stat.c: Likewise.
49635         * lib/open.c: Use different syntax for include of <fcntl.h>.
49636         * lib/openat.c: Include fcntl.h again, explicitly.
49638 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
49640         parse-datetime: document the newly accepted format
49641         * doc/parse-datetime.texi (Combined date and time of day items):
49642         New section.
49644 2011-09-06  Bruno Haible  <bruno@clisp.org>
49646         acl: Fix a test failure on newer Solaris 10 with ZFS.
49647         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
49648         ENOSYS as no ACL.
49649         Reported by Jim Meyering.
49651 2011-09-06  Bruno Haible  <bruno@clisp.org>
49653         acl: Update for AIX >= 5.3 with NFS.
49654         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
49655         ENOSYS as no ACL.
49657         acl: Fix a test failure on AIX >= 5.3 with NFS.
49658         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
49659         as no ACL.
49661 2011-09-06  Bruno Haible  <bruno@clisp.org>
49663         acl: Fix a test failure on IRIX 6.5 with NFS.
49664         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
49665         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
49666         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
49667         * lib/copy-acl.c (qcopy_acl): Likewise.
49669 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
49671         openat: port to AIX 7.1 with large files
49672         AIX 7.1 does a "#define openat open64at" if large files are in use,
49673         so we can't simply #undef openat.  Use the orig_openat trick (similar
49674         to orig_open in lib/open.c) to work around the problem.  Problem
49675         reported by Kevin Brott for GNU tar, in the thread containing
49676         <http://lists.gnu.org/r/bug-tar/2011-09/msg00032.html>.
49677         * lib/openat.c (__need_system_fcntl_h): Define first.
49678         Include <fcntl.h> and <sys/types.h> before undefining.
49679         (orig_openat) [HAVE_OPENAT]: New inline function.
49680         (openat) [HAVE_OPENAT]: Do not undef.
49681         (rpl_openat): Use orig_openat, not openat.
49683 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
49684             Bruno Haible  <bruno@clisp.org>
49686         acl: Avoid errors on NonStop Kernel.
49687         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
49688         ENOTSUP errors.
49690 2011-09-05  Bruno Haible  <bruno@clisp.org>
49692         acl: Clean up Solaris code.
49693         * lib/acl-internal.h: Remove no-op #if.
49694         * lib/file-has-acl.c: Likewise.
49695         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
49696         * lib/copy-acl.c (qcopy_acl): Likewise.
49698 2011-09-05  Bruno Haible  <bruno@clisp.org>
49700         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
49701         binaries built on the original Solaris 10.
49702         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
49703         trivial.
49705 2011-09-05  Bruno Haible  <bruno@clisp.org>
49707         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49708         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
49709         10.
49710         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
49711         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
49712         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
49713         instead of acl_get, facl_get, acl_set, facl_set.
49715 2011-09-05  Bruno Haible  <bruno@clisp.org>
49717         copy-file: Try unit tests on more file systems.
49718         * tests/test-copy-file-1.sh: New file.
49719         * tests/test-copy-file-2.sh: New file.
49720         * modules/copy-file-tests (Files): Add them.
49721         (Makefile.am): Add them to TESTS.
49723         acl: Try unit tests on more file systems.
49724         * tests/test-file-has-acl-1.sh: New file.
49725         * tests/test-file-has-acl-2.sh: New file.
49726         * tests/test-set-mode-acl-1.sh: New file.
49727         * tests/test-set-mode-acl-2.sh: New file.
49728         * tests/test-copy-acl-1.sh: New file.
49729         * tests/test-copy-acl-2.sh: New file.
49730         * modules/acl-tests (Files): Add them.
49731         (Makefile.am): Add them to TESTS.
49733 2011-09-04  Bruno Haible  <bruno@clisp.org>
49735         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
49736         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
49737         10.
49738         (OLD_ALLOW, OLD_DENY): New macros.
49739         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
49740         ACE_ACCESS_ALLOWED_ACE_TYPE.
49741         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
49742         ACE_ACCESS_DENIED_ACE_TYPE.
49743         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
49744         (NEW_ACE_EXECUTE): Fix value.
49745         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
49746         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
49747         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
49748         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
49749         NEW_ACE_SYNCHRONIZE): New macros.
49750         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
49751         instead of acl_fromtext, acl_set, facl_set.
49752         Fixes a coreutils/tests/cp/perm failure.
49754 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
49756         openat: test for fstatat (..., 0) bug
49757         Further testing with tar suggests that fstatat (..., 0)
49758         does not work in general, on AIX 7.1; see
49759         <http://lists.gnu.org/r/bug-tar/2011-09/msg00023.html>.
49760         So, give up entirely on AIX 7.1's fstatat, and fall back on our
49761         replacement fstatat (which is what older AIX releases were using
49762         anyway).
49763         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
49764         use is now changed to orig_fstatat.  This was probably the right
49765         thing to do anyway.
49766         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
49767         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
49768         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
49769         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
49770         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
49771         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
49772         if the bug is found.
49774         openat: test for fstatat (AT_FDCWD, ..., 0) bug
49775         This tests for another fstatat bug on AIX 7.1:
49776         fstatat (AT_FDCWD, ..., 0) does not work.  See
49777         <http://lists.gnu.org/r/bug-tar/2011-09/msg00015.html>.
49778         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
49779         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
49780         (rpl_fstatat): Adjust so that it works around either (or both)
49781         bugs if present.
49782         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
49784 2011-09-03  Karl Berry  <karl@gnu.org>
49786         * doc/regex.texi (Character Class Operators): Avoid literal ":"
49787         in index entries.
49789 2011-09-02  Bruno Haible  <bruno@clisp.org>
49791         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
49792         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
49793         values of AR, ARFLAGS, RANLIB.
49794         Reported by John W. Eaton <jwe@gnu.org> for Octave.
49796 2011-09-02  Bruno Haible  <bruno@clisp.org>
49798         Find 'ar' program that fits with --host argument.
49799         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
49801 2011-09-02  Bruno Haible  <bruno@clisp.org>
49803         tests: init.sh: Support any non-GNU diff.
49804         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
49805         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
49806         Solaris 8.
49808 2011-09-02  Bruno Haible  <bruno@clisp.org>
49810         tests: init.sh: work also with any non-GNU diff that supports -u
49811         * tests/init.sh: Relax check for diff -u support.
49812         Rather than checking for GNU diff via --version, simply check
49813         for support for -u itself.  Useful at least on OpenBSD 4.9,
49814         AIX 7.1, IRIX 6.5, and Solaris 10.
49816 2011-09-01  Bruno Haible  <bruno@clisp.org>
49818         strtoimax, strtoumax: Document problem on HP-UX 11.
49819         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
49820         * doc/posix-functions/strtoumax.texi: Likewise.
49822 2011-09-01  Bruno Haible  <bruno@clisp.org>
49824         strtoumax: Avoid link error on OSF/1 with DTK cc.
49825         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
49826         defined as a function.
49827         * modules/strtoumax (Depends-on, configure.ac): Test only whether
49828         strtoumax is defined, not whether it is declared.
49830 2011-09-01  Bruno Haible  <bruno@clisp.org>
49832         strtoimax: Avoid link error on OSF/1 with DTK cc.
49833         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
49834         defined as a function.
49835         * modules/strtoimax (Depends-on, configure.ac): Test only whether
49836         strtoimax is defined, not whether it is declared.
49838 2011-09-01  Bruno Haible  <bruno@clisp.org>
49840         imaxdiv: Avoid link error on OSF/1 with DTK cc.
49841         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
49842         as a function.
49843         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
49844         whether it is declared.
49846 2011-09-01  Bruno Haible  <bruno@clisp.org>
49848         imaxabs: Avoid link error on OSF/1 with DTK cc.
49849         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
49850         as a function.
49851         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
49852         whether it is declared.
49854 2011-09-01  Bruno Haible  <bruno@clisp.org>
49856         Tests for module 'strtoumax'.
49857         * modules/strtoumax-tests: New file.
49858         * tests/test-strtoumax.c: New file.
49860         Tests for module 'strtoimax'.
49861         * modules/strtoimax-tests: New file.
49862         * tests/test-strtoimax.c: New file.
49864         Tests for module 'imaxdiv'.
49865         * modules/imaxdiv-tests: New file.
49866         * tests/test-imaxdiv.c: New file.
49868         Tests for module 'imaxabs'.
49869         * modules/imaxabs-tests: New file.
49870         * tests/test-imaxabs.c: New file.
49872 2011-09-01  Bruno Haible  <bruno@clisp.org>
49874         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
49875         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
49876         pthread_create.
49878 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
49880         openat: work around AIX 7.1 fstatat issue
49881         This should fix the problem that was not properly fixed
49882         in the previous change, dated 2011-08-30.
49883         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
49884         __need_system_stat_h defined.
49885         (orig_fstatat) [HAVE_FSTATAT]: New function.
49886         (rpl_fstatat): Go back to the old way of doing things,
49887         except call orig_fstatat instead of fstatat.
49888         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
49889         Remove unnecessary check whether fstatat fills in st_size etc.
49891 2011-09-01  Bruno Haible  <bruno@clisp.org>
49893         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
49894         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
49895         just include the system's header.
49897 2011-08-31  Jim Meyering  <meyering@redhat.com>
49899         tests: avoid spurious assertion failure in test-float.c on ppc64
49900         * tests/test-float.c (test_long_double): Comment out an assertion,
49901         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
49902         with gcc-4.4.4.
49904         maint: indent with spaces, not TABs
49905         I need to get in the habit of running gnulib's "make check".
49906         Both of these would have been caught.
49907         * m4/largefile.m4: Indent with spaces, not TABs.
49908         * lib/parse-datetime.y (iso_8601_time): Likewise.
49909         Spotted by Pádraig Brady.
49911         test-parse-datetime.c: accommodate a relatively strict gcc warning
49912         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
49913         to avoid a warning from gcc's -Werror=missing-declarations.
49914         Insert a few spaces-before-funcall-parenthesis.
49916 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
49918         parse-datetime: accept ISO 8601 date and time rep with "T" separator
49919         The parser now accepts ISO 8601 date-time strings with "T" as the
49920         separator.  It has long parsed dates like "2004-02-29 16:21:42"
49921         with a space between the date and time strings.  Now it also parses
49922         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
49923         variants like "2004-02-29T16:21:42.333-07:00"
49924         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
49925         of day representation using the 'T' separator character.
49926         * doc/parse-datetime.texi (General date syntax): replace use of
49927         deprecated --iso-8601 option with --rfc-3339 in example of date
49928         command output formats that can be parsed.
49929         * tests/test-parse-datetime.c (tm_diff): New function, taken from
49930         lib/parse-datetime.y.
49931         (gmt_offset): New function.
49932         (main): Add additional test cases to validate ISO8601 extended
49933         date and time of day parsing.
49935 2011-08-31  Bruno Haible  <bruno@clisp.org>
49937         freopen: Documentation.
49938         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
49939         name.
49940         Reported by Claudio Bley <claudio.bley@gmail.com>.
49942 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
49944         freopen: Don't crash if the filename argument is NULL.
49945         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
49946         NULL.
49948 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
49950         openat: work around AIX 7.1 fstatat bug
49951         Problem reported by Kevin Brott for GNU tar, in the thread containing
49952         <http://lists.gnu.org/r/bug-tar/2011-08/msg00015.html>.
49953         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
49954         FSTATAT_ST_SIZE_ETC_BROKEN.
49955         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
49956         rpl_fstatat.
49957         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
49958         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
49959         AC_CHECK_FUNCS_ONCE for fstatat.
49960         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
49961         fchmodat, mkdirat, openat and unlinkat.
49963 2011-08-30  Bruno Haible  <bruno@clisp.org>
49965         Avoid endless recursions if config.h includes some header files.
49966         * lib/fopen.c (__need_FILE): Define already before including config.h.
49967         * lib/freopen.c (__need_FILE): Likewise.
49968         * lib/open.c (__need_system_fcntl_h): Likewise.
49969         * lib/stat.c (__need_system_sys_stat_h): Likewise.
49970         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
49971         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
49973 2011-08-25  Karl Berry  <karl@gnu.org>
49975         * config/srclist.txt (ylwrap): new try.
49976         * build-aux/ylwrap: new file.
49978 2011-08-23  Bruno Haible  <bruno@clisp.org>
49980         tmpdir: Use a good default directory on native Windows.
49981         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
49982         (P_tmpdir): Default to _P_tmpdir on native Windows.
49983         (path_search): On native Windows, try the value returned by GetTempPath
49984         before trying P_tmpdir.
49985         * modules/tmpdir (Depends-on): Add pathmax.
49986         Suggested by John Darrington <john@darrington.wattle.id.au>.
49988 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
49990         doc: fix typo in README-release
49991         * top/README-release: Capitalize first word of a sentence.
49993 2011-08-19  Jim Meyering  <meyering@redhat.com>
49995         fts: do not exhaust memory when processing million-entry directories
49996         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
49997         directory would require about 256*N bytes of memory.  Thus, it was
49998         easy to construct a directory too large to be processed by any of
49999         those tools.  With this change, fts' maximum memory utilization is
50000         now limited to around 30MB.
50001         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
50002         (fts_read): When we've processed the final entry (i.e., when
50003         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
50004         using the parent entry to read any remaining entries.  Dispatch
50005         depending on what fts_build returns:
50006         - NULL+stop, aka failure: stop
50007         - NULL otherwise: move up in the dir hierarchy
50008         - non-NULL: handle this new entry
50009         (fts_build): Declare and use new local, continue_readdir.
50010         Prepare to be called from fts_read, when the entries
50011         from a partially-read directory have just been exhausted.
50012         In that case, we'll skip the opendir and instead use the parent's
50013         fts_dirp and derive dir_fd from that.
50014         Finally, in the readdir loop, if we read max_entries entries,
50015         exit the loop ensuring *not* to call closedir.  This is required
50016         so that fts_dirp can be reused on a subsequent call.
50017         Prompted by Ben England's report of memory exhaustion in find
50018         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
50020         maint: fts: move decl of `dp' down into while loop; split a long line
50021         * lib/fts.c (fts_build): No semantic change.
50023         fts: add/use new struct member, fts_dirp
50024         We are about to use this to manage any directory with
50025         too many entries to read all of them into memory at once.
50026         To do that, we'll need to save the DIR* pointer in each
50027         affected FTSENT struct.
50028         * lib/fts_.h: Include <dirent.h>.
50029         (struct FTSENT) [fts_dirp]: New member.
50030         * lib/fts.c (closedir_and_clear): Define.
50031         Use it in place of closedir so that we are sure to
50032         clear the new fts_dirp member when done with it.
50033         (fts_alloc): Initialize the new member.
50034         (fts_lfree): Free, if needed.
50036         maint: fts: give __opendir2 a new parameter and rename
50037         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
50038         than surreptitiously using sole caller's "dir_fd".
50039         (fts_opendir): Rename from __opendir2.
50041         maint: fts.c: remove __opendir2's now-unused parameter, oflag
50042         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
50044         maint: fts.c: correct off-by-one indentation
50045         * lib/fts.c (fts_build): Correct indentation, change style
50046         of a couple of block comments, and bracing style.
50048         maint: fts.c: move __opendir2 #define "up" out of function body
50049         * lib/fts.c (__opendir2): Move "up".  No semantic change.
50051         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
50052         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
50053         out for a long time and besides was useful only on BSD systems.
50055 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
50057         regex: port to Stratus OpenVOS
50058         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
50059         define to empty, rather than attempting nonportable optimizations.
50060         Problem reported by Paul Green in:
50061         http://lists.gnu.org/r/bug-diffutils/2011-08/msg00047.html
50062         and fix suggested by Eric Blake in:
50063         http://lists.gnu.org/r/bug-gnulib/2011-08/msg00143.html
50065 2011-08-17  Eric Blake  <eblake@redhat.com>
50067         getcwd: fix test failures on mingw
50068         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
50069         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
50070         test if long directory cannot be created, and allow mingw errno.
50072         getcwd-lgpl: fix m4 to match relaxed test for BSD
50073         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
50074         (gl_FUNC_GETCWD_SIGNATURE): New macro.
50075         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
50076         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
50077         signature problem.
50079         getcwd: fix compilation on mingw64
50080         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
50081         getcwd.
50082         Reported by Marc-André Lureau.
50084         pipe2: silence compiler warning
50085         * lib/pipe2.c (pipe2): Hide label if it is not used.
50087 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
50089         relocatable-prog: fix link error
50090         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
50091         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
50092         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
50093         into modules/relocatable-lib without noticing that
50094         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
50095         also needs to build relocatable.c.
50097 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
50099         getaddrinfo: fix sh typo in gai_strerrorA decl checking
50100         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
50101         shell code: it contained a 'break' that was not in a loop.
50102         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
50103         via a shell-language loop; this may have been true in old Autoconf
50104         versions, but it's not true in Autoconf 2.68.  I found this bug
50105         when testing coreutils git on Solaris 8, whose shell complains
50106         about the syntax error.
50108 2011-08-12  Simon Josefsson  <simon@josefsson.org>
50110         * lib/base64.c: Fix comment to reference RFC 4648.
50111         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
50112         <gvtulder@gmail.com>.
50114 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
50116         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
50118         po/Makefile.in.in: fix make -q problem
50119         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
50120         rule, since there's no file named 'check-macro-version' and its
50121         use as a file breaks make -q.
50122         (all): Don't depend on check-macro-version.
50123         (CHECK_MACRO_VERSION): New macro.
50124         (stamp-po): Use it.
50126         configmake: fix make -q problem
50127         * modules/configmake (configmake.h): Update configmake.h's time stamp
50128         even if the file does not change.  Otherwise, 'make -q' fails.
50129         Problem reported by Simon Josefsson in
50130         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00088.html>.
50132 2011-08-11  Jim Meyering  <meyering@redhat.com>
50134         git-version-gen: correct the advice in a comment
50135         * build-aux/git-version-gen: Correct comment.
50136         Don't recommend to list .tarball-version in .gitignore.
50138 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
50140         base64: fix off-by-one buffer size bug
50141         Problem and (trivial) fix reported by Gijs van Tulder in
50142         <http://lists.gnu.org/r/bug-gnulib/2011-08/msg00083.html>.
50143         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
50144         * tests/test-base64.c (main): Catch the bug.
50146 2011-08-10  Eric Blake  <eblake@redhat.com>
50148         closein: correct comments
50149         * lib/closein.c (close_stdin): Improve comments.
50151 2011-08-09  Bruno Haible  <bruno@clisp.org>
50153         More tests for 'fseeko'.
50154         * tests/test-fseeko3.c: New file, from Eric Blake.
50155         * tests/test-fseeko3.sh: New file.
50156         * modules/fseeko-tests (Files): Add them.
50157         (TESTS): Add test-fseeko3.sh.
50158         (check_PROGRAMS): Add test-fseeko3.
50160 2011-08-09  Eric Blake  <eblake@redhat.com>
50162         fseeko: remove unneeded hack
50163         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
50165         fseeko: fix bug on glibc
50166         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
50167         Reported by John W. Eaton.
50169 2011-08-08  Bruno Haible  <bruno@clisp.org>
50171         unictype/base: Fix interoperability with preinstalled libunistring.
50172         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
50173         Reported by Simon Josefsson.
50175 2011-08-08  Bruno Haible  <bruno@clisp.org>
50177         iswblank: Detect declaration correctly.
50178         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
50179         AC_CHECK_DECLS invocation.
50181 2011-08-08  Bruno Haible  <bruno@clisp.org>
50183         tcgetsid: Detect declaration correctly.
50184         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
50185         AC_CHECK_DECLS invocation.
50186         Reported by Simon Josefsson.
50188 2011-08-08  Eric Blake  <eblake@redhat.com>
50190         largefile: fix typo that regressed large file support
50191         * modules/largefile (configure.ac-early): Fix section name.
50193 2011-08-06  Karl Berry  <karl@gnu.org>
50195         * MODULES.html.sh (func_all_files): _Noreturn is no longer
50196         a separate module.
50198 2011-08-05  Simon Josefsson  <simon@josefsson.org>
50200         openat: Fix warnings and commens when building unlinkat.c on Hurd.
50201         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
50202         get prototype for free.
50204 2011-08-04  Bruno Haible  <bruno@clisp.org>
50206         Tests for module 'pathmax'.
50207         * modules/pathmax-tests: New file.
50208         * tests/test-pathmax.c: New file.
50210         canonicalize-lgpl: Support larger filenames on the Hurd.
50211         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
50212         Reported by Paul Eggert.
50214         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
50215         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
50216         * lib/chdir-long.h: Include pathmax.h.
50217         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
50218         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
50219         (PATH_MAX): Remove code that is done by pathmax.h.
50220         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
50221         * lib/tmpfile.c: Add a comment.
50222         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
50223         * modules/chdir-long (Depends-on): Add pathmax.
50224         * modules/getcwd (Depends-on): Add pathmax.
50225         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
50226         is not defined.
50227         * doc/posix-headers/limits.texi: Mention the pathmax module.
50228         * NEWS: Mention the change.
50230 2011-08-02  Bruno Haible  <bruno@clisp.org>
50232         pthread_sigmask: Actually use results of gl_THREADLIB.
50233         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
50234         gl_THREADLIB, not gl_[]THREADLIB.
50235         Reported by Eric Blake.
50237 2011-08-02  Jim Meyering  <meyering@redhat.com>
50239         maint.mk: relax the default _gl_TS_function_match regexp
50240         * top/maint.mk (_gl_TS_function_match): Don't require at least one
50241         space between function name and "(" in an "extern" declaration.
50242         That would fail to match a decl with no space there: extern void foo();
50244 2011-07-31  Iain Nicol  <iain@thenicols.net>
50246         git-version-gen: document that EXTRA_DIST must include .version
50247         * build-aux/git-version-gen: In the how-to-use comment, document
50248         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
50249         will fail when run from an unpacked distribution tarball.
50251 2011-08-01  Bruno Haible  <bruno@clisp.org>
50253         wctype-h: Fix last change.
50254         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
50255         REPLACE_TOWLOWER to 0.
50256         Reported by Sam Steingold <sds@gnu.org>.
50258 2011-07-31  Bruno Haible  <bruno@clisp.org>
50260         frexpl: Update autoconf test.
50261         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
50262         according to changes of 2011-06-20.
50264 2011-07-31  Bruno Haible  <bruno@clisp.org>
50266         sys_utsname: Add support for Minix.
50267         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
50268         <sys/utsname.h>.
50269         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
50270         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
50272 2011-07-31  Bruno Haible  <bruno@clisp.org>
50274         strings: Add support for Minix.
50275         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
50276         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
50277         * doc/posix-headers/strings.texi: Document the Minix problem.
50279 2011-07-31  Bruno Haible  <bruno@clisp.org>
50281         wctype-h: Add support for Minix.
50282         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
50283         REPLACE_TOWLOWER.
50284         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
50285         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
50286         REPLACE_ISWCNTRL.
50288 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
50290         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
50291         This is a performance improvement for 64-bit hosts: it causes the
50292         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
50294 2011-07-31  Bruno Haible  <bruno@clisp.org>
50296         stdioext: Add support for Minix.
50297         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
50298         * lib/fpurge.c (fpurge): Likewise.
50299         * lib/freadahead.c (freadahead): Likewise.
50300         * lib/freadable.c (freadable): Likewise.
50301         * lib/freading.c (freading): Likewise.
50302         * lib/freadptr.c (freadptr): Likewise.
50303         * lib/freadseek.c (freadptrinc): Likewise.
50304         * lib/fseeko.c (rpl_fseeko): Likewise.
50305         * lib/fseterr.c (fseterr): Likewise.
50306         * lib/fwritable.c (fwritable): Likewise.
50307         * lib/fwriting.c (fwriting): Likewise.
50308         * lib/fflush.c (clear_ungetc_buffer): Update comment.
50309         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
50311 2011-07-31  Bruno Haible  <bruno@clisp.org>
50313         errno: Port to Minix.
50314         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
50315         ECONNABORTED are defined.
50316         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
50317         GNULIB_defined_ECONNABORTED): New macros.
50318         * lib/strerror-override.h (strerror_override): Test also
50319         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
50320         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
50321         ECONNABORTED.
50322         * doc/posix-headers/errno.texi: Mention the Minix problem.
50324 2011-07-31  Bruno Haible  <bruno@clisp.org>
50326         Work around declaration collisions on Minix.
50327         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
50328         defined, set REPLACE_MBSINIT.
50329         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
50330         defined, set REPLACE_MBRTOWC.
50331         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
50332         set REPLACE_MBRLEN.
50333         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
50334         defined, set REPLACE_MBSRTOWCS.
50335         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
50336         defined, set REPLACE_WCRTOMB.
50337         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
50338         defined, set REPLACE_WCSRTOMBS.
50340 2011-07-31  Bruno Haible  <bruno@clisp.org>
50342         Add support for Minix with ACK compiler.
50343         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
50344         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
50345         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
50347 2011-07-31  Bruno Haible  <bruno@clisp.org>
50349         Documentation about Minix.
50350         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
50351         * doc/glibc-headers/*.texi: Likewise.
50352         * doc/posix-functions/*.texi: Likewise.
50353         * doc/glibc-functions/*.texi: Likewise.
50355 2011-07-31  Bruno Haible  <bruno@clisp.org>
50357         snippet/warn-on-use: Fix indentation.
50358         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
50360 2011-07-25  Jim Meyering  <meyering@redhat.com>
50362         tests: test-update-copyright.sh: remove unnecessary "rm" commands
50363         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
50364         commands.
50366 2011-07-27  Jim Meyering  <meyering@redhat.com>
50368         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
50369         * top/maint.mk (gl_extract_significant_defines_): Now that
50370         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
50371         gnulib/lib/signal.in.h, and now that we recommend to
50372         define-if-undefined those two symbols in application code,
50373         we must filter them out of the "significant" list.
50374         This avoids a "make syntax-check" failure in coreutils.
50376 2011-07-26  Eric Blake  <eblake@redhat.com>
50378         warnings: add comments about previous patch
50379         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
50380         * m4/include_next.m4: Likewise.
50381         * m4/warn-on-use.m4: Likewise.
50382         * m4/warnings.m4: Likewise, and simplify use.
50383         Suggested by Stefano Lattarini.
50385         include-next, warnings: support older autoconf
50386         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
50387         AS_VAR_PUSHDEF in a way that works with older autoconf.
50388         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
50389         Reported by Daniel P. Berrange.
50391 2011-07-25  Bruno Haible  <bruno@clisp.org>
50393         fseek, ftell: Fix doc.
50394         * doc/posix-functions/fseek.texi: Reword statement about
50395         AC_SYS_LARGEFILE.
50396         * doc/posix-functions/ftell.texi: Likewise.
50398 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50399             Bruno Haible  <bruno@clisp.org>
50401         Add dependencies to the 'largefile' module.
50402         * modules/fopen (Depends-on): Add 'largefile'.
50403         * modules/freopen (Depends-on): Likewise.
50404         * modules/fseeko (Depends-on): Likewise.
50405         * modules/ftello (Depends-on): Likewise.
50406         * modules/glob (Depends-on): Likewise.
50407         * modules/lseek (Depends-on): Likewise.
50408         * modules/lstat (Depends-on): Likewise.
50409         * modules/mkostemp (Depends-on): Likewise.
50410         * modules/mkostemps (Depends-on): Likewise.
50411         * modules/mkstemp (Depends-on): Likewise.
50412         * modules/mkstemps (Depends-on): Likewise.
50413         * modules/open (Depends-on): Likewise.
50414         * modules/openat (Depends-on): Likewise.
50415         * modules/pread (Depends-on): Likewise.
50416         * modules/pwrite (Depends-on): Likewise.
50417         * modules/scandir (Depends-on): Likewise.
50418         * modules/stat (Depends-on): Likewise.
50419         * modules/tmpfile (Depends-on): Likewise.
50420         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
50421         since the containing module now depends on the largefile module.
50422         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
50423         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
50424         off_t is fixed by gnulib.
50425         * doc/posix-functions/freopen.texi: Likewise.
50426         * doc/posix-functions/fseeko.texi: Likewise.
50427         * doc/posix-functions/fstatat.texi: Likewise.
50428         * doc/posix-functions/ftello.texi: Likewise.
50429         * doc/posix-functions/glob.texi: Likewise.
50430         * doc/posix-functions/lseek.texi: Likewise.
50431         * doc/posix-functions/lstat.texi: Likewise.
50432         * doc/posix-functions/mkstemp.texi: Likewise.
50433         * doc/posix-functions/open.texi: Likewise.
50434         * doc/posix-functions/openat.texi: Likewise.
50435         * doc/posix-functions/pread.texi: Likewise.
50436         * doc/posix-functions/pwrite.texi: Likewise.
50437         * doc/posix-functions/scandir.texi: Likewise.
50438         * doc/posix-functions/stat.texi: Likewise.
50439         * doc/posix-functions/tmpfile.texi: Likewise.
50440         * doc/glibc-functions/mkostemp.texi: Likewise.
50441         * doc/glibc-functions/mkostemps.texi: Likewise.
50442         * doc/glibc-functions/mkstemps.texi: Likewise.
50444 2011-07-25  Bruno Haible  <bruno@clisp.org>
50446         fcntl: Move AC_LIBOBJ invocation to module description.
50447         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
50448         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
50450         fcntl: Remove call-in from fchdir.m4.
50451         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
50452         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
50454         dup3: Remove potential call-in from fchdir.m4.
50455         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
50456         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
50458         dup2: Move AC_LIBOBJ invocation to module description.
50459         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
50460         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
50461         Don't invoke AC_LIBOBJ.
50462         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
50464         dup2: Remove call-in from fchdir.m4.
50465         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
50466         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
50468         fclose: Move AC_LIBOBJ invocation to module description.
50469         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
50470         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
50471         to 1.
50472         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
50474         fclose: Remove call-in from close.m4.
50475         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
50476         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
50478         close: Move AC_LIBOBJ invocation to module description.
50479         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
50480         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
50481         1.
50482         * modules/close (configure.ac): Invoke AC_LIBOBJ.
50484         close: Remove call-in from fchdir.m4.
50485         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
50486         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
50488         open: Move AC_LIBOBJ invocation to module description.
50489         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
50490         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
50491         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
50493         open: Remove call-in from fchdir.m4.
50494         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
50495         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
50497         fchdir: Start to remove gl_REPLACE_* idiom.
50498         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
50499         (gl_FUNC_FCHDIR): Invoke it.
50501 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
50503         * lib/ftell.c (ftell): Comment out cast.
50505         close: use gl_REPLACE_FCLOSE only if defined
50506         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
50507         is defined.  The close module doesn't depend on the fclose module
50508         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
50509         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00392.html>.
50510         I reproduced the problem with "./gnulib-tool --test close sys_socket".
50512 2011-07-24  Jim Meyering  <meyering@redhat.com>
50514         test-select.h: avoid warning when using gcc's -Wmissing-declarations
50515         * tests/test-select.h (test_function): Declare as "static".
50517 2011-07-24  Bruno Haible  <bruno@clisp.org>
50519         doc: Mention the effects of AC_SYS_LARGEFILE.
50520         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
50521         on this function.
50522         * doc/posix-functions/aio_error.texi: Likewise.
50523         * doc/posix-functions/aio_fsync.texi: Likewise.
50524         * doc/posix-functions/aio_read.texi: Likewise.
50525         * doc/posix-functions/aio_return.texi: Likewise.
50526         * doc/posix-functions/aio_suspend.texi: Likewise.
50527         * doc/posix-functions/aio_write.texi: Likewise.
50528         * doc/posix-functions/fgetpos.texi: Likewise.
50529         * doc/posix-functions/fopen.texi: Likewise.
50530         * doc/posix-functions/freopen.texi: Likewise.
50531         * doc/posix-functions/fsetpos.texi: Likewise.
50532         * doc/posix-functions/fstatvfs.texi: Likewise.
50533         * doc/posix-functions/ftruncate.texi: Likewise.
50534         * doc/posix-functions/ftw.texi: Likewise.
50535         * doc/posix-functions/getrlimit.texi: Likewise.
50536         * doc/posix-functions/glob.texi: Likewise.
50537         * doc/posix-functions/lio_listio.texi: Likewise.
50538         * doc/posix-functions/lockf.texi: Likewise.
50539         * doc/posix-functions/mkstemp.texi: Likewise.
50540         * doc/posix-functions/mmap.texi: Likewise.
50541         * doc/posix-functions/nftw.texi: Likewise.
50542         * doc/posix-functions/openat.texi: Likewise.
50543         * doc/posix-functions/opendir.texi: Likewise.
50544         * doc/posix-functions/posix_fadvise.texi: Likewise.
50545         * doc/posix-functions/posix_fallocate.texi: Likewise.
50546         * doc/posix-functions/pread.texi: Likewise.
50547         * doc/posix-functions/pwrite.texi: Likewise.
50548         * doc/posix-functions/readdir.texi: Likewise.
50549         * doc/posix-functions/readdir_r.texi: Likewise.
50550         * doc/posix-functions/rewinddir.texi: Likewise.
50551         * doc/posix-functions/scandir.texi: Likewise.
50552         * doc/posix-functions/seekdir.texi: Likewise.
50553         * doc/posix-functions/setrlimit.texi: Likewise.
50554         * doc/posix-functions/statvfs.texi: Likewise.
50555         * doc/posix-functions/telldir.texi: Likewise.
50556         * doc/posix-functions/tmpfile.texi: Likewise.
50557         * doc/posix-functions/truncate.texi: Likewise.
50558         * doc/glibc-functions/fallocate.texi: Likewise.
50559         * doc/glibc-functions/fstatfs.texi: Likewise.
50560         * doc/glibc-functions/fts_children.texi: Likewise.
50561         * doc/glibc-functions/fts_read.texi: Likewise.
50562         * doc/glibc-functions/getdirentries.texi: Likewise.
50563         * doc/glibc-functions/mkostemp.texi: Likewise.
50564         * doc/glibc-functions/mkostemps.texi: Likewise.
50565         * doc/glibc-functions/mkstemps.texi: Likewise.
50566         * doc/glibc-functions/preadv.texi: Likewise.
50567         * doc/glibc-functions/pwritev.texi: Likewise.
50568         * doc/glibc-functions/sendfile.texi: Likewise.
50569         * doc/glibc-functions/statfs.texi: Likewise.
50571 2011-07-24  Bruno Haible  <bruno@clisp.org>
50573         doc: Fix typo.
50574         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
50576 2011-07-24  Bruno Haible  <bruno@clisp.org>
50578         doc: Mention fsusage.
50579         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
50581 2011-07-24  Bruno Haible  <bruno@clisp.org>
50583         doc: Mention new glibc headers and functions.
50584         * doc/glibc-headers/gshadow.texi: New file.
50585         * doc/glibc-functions/endsgent.texi: New file.
50586         * doc/glibc-functions/fgetsgent.texi: New file.
50587         * doc/glibc-functions/fgetsgent_r.texi: New file.
50588         * doc/glibc-functions/getsgent.texi: New file.
50589         * doc/glibc-functions/getsgent_r.texi: New file.
50590         * doc/glibc-functions/getsgnam.texi: New file.
50591         * doc/glibc-functions/getsgnam_r.texi: New file.
50592         * doc/glibc-functions/putsgent.texi: New file.
50593         * doc/glibc-functions/setsgent.texi: New file.
50594         * doc/glibc-functions/sgetsgent.texi: New file.
50595         * doc/glibc-functions/sgetsgent_r.texi: New file.
50596         * doc/glibc-functions/malloc_info.texi: New file.
50597         * doc/glibc-functions/preadv.texi: New file.
50598         * doc/glibc-functions/pwritev.texi: New file.
50599         * doc/glibc-functions/register_printf_modifier.texi: New file.
50600         * doc/glibc-functions/register_printf_specifier.texi: New file.
50601         * doc/glibc-functions/register_printf_type.texi: New file.
50602         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
50603         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
50604         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
50605         * doc/glibc-functions/pthread_getname_np.texi: New file.
50606         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
50607         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
50608         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
50609         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
50610         * doc/glibc-functions/pthread_setname_np.texi: New file.
50611         * doc/glibc-functions/pthread_sigqueue.texi: New file.
50612         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
50613         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
50614         * doc/glibc-functions/qsort_r.texi: New file.
50615         * doc/glibc-functions/quick_exit.texi: New file.
50616         * doc/glibc-functions/syncfs.texi: New file.
50617         * doc/gnulib.texi: Include them.
50618         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
50619         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
50620         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
50621         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
50622         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
50623         * doc/glibc-functions/execvpe.texi: Likewise.
50625 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50627         ftell: don't include <unistd.h>
50628         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
50629         guaranteed to define off_t, and the ftell module depends on the
50630         stdio module.
50632         ftell: do not assume wraparound signed arithmetic
50633         * lib/ftell.c: Include <limits.h>.
50634         (ftell): Don't assume wraparound signed arithmetic.
50636 2011-07-24  Bruno Haible  <bruno@clisp.org>
50638         close: No longer depend on module 'fclose'.
50639         * modules/close (Depends-on): Remove fclose.
50640         * NEWS: Mention the change.
50641         Suggested by Sam Steingold <sds@gnu.org>.
50643 2011-07-24  Bruno Haible  <bruno@clisp.org>
50645         fsusage: Enable large volume support on AIX >= 5.2.
50646         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
50647         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
50648         instead of STAT_STATVFS.
50649         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
50651         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
50652         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
50653         f_blocks field only on MacOS X.
50655         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
50656         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
50657         * modules/fsusage (Depends-on): Add largefile.
50659 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
50661         * README: Modernize discussion of signed integers.
50662         Assuming overflow wraparound is no longer safe.
50663         Mention ones' complement and signed magnitude.
50665 2011-07-22  Bruno Haible  <bruno@clisp.org>
50667         select tests, pselect tests: Refactor.
50668         * tests/test-select.h: New file, extracted from tests/test-select.c.
50669         (select_fn): New type.
50670         (test, do_select, do_select_nowait, do_select_wait, test_tty,
50671         test_connect_first, test_accept_first, test_pair, test_socket_pair,
50672         test_pipe): Add my_select argument.
50673         (test_function): Renamed from main. Add my_select argument.
50674         * tests/test-select.c: Move most code to tests/test-select.h. Include
50675         test-select.h.
50676         * modules/select-tests (Files): Add tests/test-select.h.
50677         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
50678         (my_select, main): New functions.
50679         * modules/pselect-tests (Files): Add tests/test-select.h,
50680         tests/macros.h, tests/signature.h.
50681         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
50682         (configure.ac): Check for <sys/wait.h>.
50684 2011-07-22  Bruno Haible  <bruno@clisp.org>
50686         sys_select tests: Check the signature of FD_*.
50687         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
50688         signature tests from here...
50689         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
50690         here.
50691         * modules/sys_select-tests (Files): Add tests/signature.h.
50693 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
50695         largefile: new module, replacing large-inode
50696         Pádraig Brady suggested this in <http://debbugs.gnu.org/9140#20>.
50697         * MODULES.html.sh: Add largefile, remove large-inode.
50698         * modules/largefile, m4/largefile.m4: New files.
50699         * modules/large-inode, m4/large-inode.m4: Remove.
50701         fsusage: port to MacOS X 10.7 with 4 TiB file systems
50702         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
50703         implementations that use only 32 bits to count blocks.
50704         On typical hosts with 1024-byte blocks, this fails with file
50705         systems as small as 4 TiB.  Problem reported by Herb Wartens
50706         <http://debbugs.gnu.org/9140> and this should also fix a similar
50707         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
50709         large-inode: New module
50710         * MODULES.html.sh: Add it.
50711         * modules/large-inode, m4/large-inode.m4: New files.
50713         extensions: Enable extensions on MacOS X 10.5 and later.
50714         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
50716 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
50718         file-has-acl: use acl_extended_file_nofollow if available
50719         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
50720         (acl_extended_file): New macro.
50721         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
50722         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
50724 2011-07-21  Bruno Haible  <bruno@clisp.org>
50726         Declare system functions in a way that works with C++.
50727         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
50728         declare fdopendir as extern "C".
50729         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
50730         declare frexpl as extern "C".
50731         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
50732         declare gai_strerror as extern "C".
50733         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
50734         programs, declare gai_strerror as extern "C".
50735         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
50736         declare getlogin_r as extern "C".
50737         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
50738         as extern "C".
50739         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
50740         declare ldexpl as extern "C".
50741         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
50742         as extern "C".
50743         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
50744         program, declare getmntinfo as extern "C".
50745         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
50746         stpncpy as extern "C".
50747         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
50748         program, declare __xpg_strerror_r as extern "C".
50749         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
50750         strndup as extern "C".
50751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
50752         declare memset and bzero as extern "C".
50753         Reported by Sam Steingold <sds@gnu.org>.
50755 2011-07-12  Jim Meyering  <meyering@redhat.com>
50757         maint.mk: prohibit inclusion of "verify.h" without use
50758         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
50760 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50762         timer-time: A new module to check for timer_settime()
50763         * m4/timer_time.m4: Check for the posix function.
50764         * modules/timer-time: Add the new module.
50765         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
50766         Mention it.
50768 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
50769             Bruno Haible  <bruno@clisp.org>
50771         pthread_sigmask: assume POSIX threads if --avoid=threadlib
50772         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
50773         not defined, assume POSIX threads and look for pthread_sigmask in
50774         $LIBS, without changing $CPPFLAGS.
50776 2011-07-19  Bruno Haible  <bruno@clisp.org>
50778         strstr: Update cross-compilation guess.
50779         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
50780         CPUs, guess no, in view of glibc
50781         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
50782         Suggested by Eric Blake. Reported by Reuben Thomas.
50784 2011-07-19  Pádraig Brady  <P@draigBrady.com>
50786         getopt-gnu: suppress core dumps from detection code
50787         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
50788         to suppress core dumps that may well occur on glibc systems.
50789         * modules/getopt-gnu: Depend on nocrash.
50791 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
50793         pthread_sigmask: ensure usleep is declared
50794         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
50795         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
50797 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
50799         doc: Document NonStop portability issues.
50800         * doc/posix-functions/sigaction.texi (sigaction):
50801         * doc/posix-headers/signal.texi (signal.h):
50802         Document NonStop.  See Joachim Schmitz in
50803         http://lists.gnu.org/r/bug-coreutils/2011-07/msg00062.html
50805 2011-07-15  Bruno Haible  <bruno@clisp.org>
50807         ffsl, ffsll: Avoid unportable behaviour.
50808         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
50810 2011-07-15  Bruno Haible  <bruno@clisp.org>
50812         ffs: More tests.
50813         * tests/test-ffs.c (NBITS): New macro.
50814         (main): Add more tests.
50815         * tests/test-ffsl.c (NBITS): New macro.
50816         (main): Add more tests.
50817         * tests/test-ffsll.c (NBITS): New macro.
50818         (main): Add more tests.
50820 2011-07-15  Eric Blake  <eblake@redhat.com>
50822         ffsl, ffsll: new modules
50823         * modules/ffsl: New file.
50824         * modules/ffsll: Likewise.
50825         * m4/ffsl.m4: Likewise.
50826         * m4/ffsll.m4: Likewise.
50827         * lib/ffsl.c: Likewise.
50828         * lib/ffsl.h: Likewise.
50829         * lib/ffsll.c: Likewise.
50830         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
50831         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
50832         * modules/string (Makefile.am): Substitute witnesses.
50833         * lib/strings.in.h (ffsl, ffsll): Declare.
50834         * modules/ffsl-tests: New test file.
50835         * modules/ffsll-tests: Likewise.
50836         * tests/test-ffsl.c: Likewise.
50837         * tests/test-ffsll.c: Likewise.
50838         * MODULES.html.sh (Integer arithmetic functions): Mention it.
50839         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
50840         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
50842         ffs: fix m4 prerequisite
50843         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
50845         ffs: avoid undefined behavior
50846         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
50847         * tests/test-ffs.c (naive, main): Avoid signed shifts.
50848         Reported by Bruno Haible.
50850 2011-07-12  Bruno Haible  <bruno@clisp.org>
50852         pthread_sigmask: Rely on module 'threadlib'.
50853         * modules/pthread_sigmask (Depends-on): Add threadlib.
50854         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
50855         is defined.
50857 2011-07-12  Bruno Haible  <bruno@clisp.org>
50859         regex: Depend on module 'strcase'.
50860         * modules/regex (Depends-on): Add strcase, for strcasecmp().
50862 2011-07-12  Jim Meyering  <meyering@redhat.com>
50864         warn-on-use: fix typo in file name
50865         * modules/snippet/warn-on-use (Files): Correct file name:
50866         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
50868 2011-07-12  Bruno Haible  <bruno@clisp.org>
50870         strings: Document module.
50871         * doc/posix-headers/strings.texi: Mention module 'strings'.
50873 2011-07-12  Bruno Haible  <bruno@clisp.org>
50875         Rename module '_Noreturn' to 'snippet/_Noreturn'.
50876         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
50877         (Files, Makefile.am): Update.
50878         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
50879         * modules/stdlib (Depends-on): Update.
50881 2011-07-12  Bruno Haible  <bruno@clisp.org>
50883         * NEWS: Mention the changes.
50885         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
50886         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
50887         (Files, Makefile.am): Update.
50888         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
50889         * modules/arpa_inet (Depends-on): Update.
50890         * modules/ctype (Depends-on): Update.
50891         * modules/dirent (Depends-on): Update.
50892         * modules/fcntl-h (Depends-on): Update.
50893         * modules/glob (Depends-on): Update.
50894         * modules/iconv-h (Depends-on): Update.
50895         * modules/inttypes-incomplete (Depends-on): Update.
50896         * modules/langinfo (Depends-on): Update.
50897         * modules/locale (Depends-on): Update.
50898         * modules/math (Depends-on): Update.
50899         * modules/netdb (Depends-on): Update.
50900         * modules/poll-h (Depends-on): Update.
50901         * modules/pty (Depends-on): Update.
50902         * modules/search (Depends-on): Update.
50903         * modules/signal (Depends-on): Update.
50904         * modules/spawn (Depends-on): Update.
50905         * modules/stdio (Depends-on): Update.
50906         * modules/stdlib (Depends-on): Update.
50907         * modules/string (Depends-on): Update.
50908         * modules/strings (Depends-on): Update.
50909         * modules/sys_file (Depends-on): Update.
50910         * modules/sys_ioctl (Depends-on): Update.
50911         * modules/sys_select (Depends-on): Update.
50912         * modules/sys_socket (Depends-on): Update.
50913         * modules/sys_stat (Depends-on): Update.
50914         * modules/sys_time (Depends-on): Update.
50915         * modules/sys_times (Depends-on): Update.
50916         * modules/sys_utsname (Depends-on): Update.
50917         * modules/sys_wait (Depends-on): Update.
50918         * modules/termios (Depends-on): Update.
50919         * modules/time (Depends-on): Update.
50920         * modules/unistd (Depends-on): Update.
50921         * modules/wchar (Depends-on): Update.
50922         * modules/wctype-h (Depends-on): Update.
50923         * MODULES.html.sh (Support for building libraries and executables):
50924         Update.
50926         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
50927         * modules/snippet/unused-parameter: Renamed from
50928         modules/unused-parameter.
50929         (Files, Makefile.am): Update.
50930         * build-aux/snippet/unused-parameter.h: Renamed from
50931         build-aux/unused-parameter.h.
50932         * modules/selinux-h (Depends-on): Update.
50933         * modules/unistr/base (Depends-on): Update.
50934         * MODULES.html.sh (Core language properties): Update.
50936         Rename module 'link-warning' to 'snippet/link-warning'.
50937         * modules/snippet/link-warning: Renamed from modules/link-warning.
50938         (Files, Makefile.am): Update.
50939         * build-aux/snippet/link-warning.h: Renamed from
50940         build-aux/link-warning.h.
50941         * MODULES.html.sh (Support for building libraries and executables):
50942         Update.
50944         Rename module 'c++defs' to 'snippet/c++defs'.
50945         * modules/snippet/c++defs: Renamed from modules/c++defs.
50946         (Files, Makefile.am): Update.
50947         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
50948         * modules/arpa_inet (Depends-on): Update.
50949         * modules/ctype (Depends-on): Update.
50950         * modules/dirent (Depends-on): Update.
50951         * modules/fcntl-h (Depends-on): Update.
50952         * modules/glob (Depends-on): Update.
50953         * modules/iconv-h (Depends-on): Update.
50954         * modules/langinfo (Depends-on): Update.
50955         * modules/locale (Depends-on): Update.
50956         * modules/math (Depends-on): Update.
50957         * modules/netdb (Depends-on): Update.
50958         * modules/poll-h (Depends-on): Update.
50959         * modules/pty (Depends-on): Update.
50960         * modules/search (Depends-on): Update.
50961         * modules/signal (Depends-on): Update.
50962         * modules/spawn (Depends-on): Update.
50963         * modules/stdio (Depends-on): Update.
50964         * modules/stdlib (Depends-on): Update.
50965         * modules/string (Depends-on): Update.
50966         * modules/strings (Depends-on): Update.
50967         * modules/sys_ioctl (Depends-on): Update.
50968         * modules/sys_select (Depends-on): Update.
50969         * modules/sys_socket (Depends-on): Update.
50970         * modules/sys_stat (Depends-on): Update.
50971         * modules/sys_time (Depends-on): Update.
50972         * modules/sys_wait (Depends-on): Update.
50973         * modules/termios (Depends-on): Update.
50974         * modules/time (Depends-on): Update.
50975         * modules/unistd (Depends-on): Update.
50976         * modules/wchar (Depends-on): Update.
50977         * modules/wctype-h (Depends-on): Update.
50979         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
50980         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
50981         (Files, Makefile.am): Update.
50982         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
50983         * modules/argv-iter (Depends-on): Update.
50984         * modules/arpa_inet (Depends-on): Update.
50985         * modules/dirent (Depends-on): Update.
50986         * modules/fcntl-h (Depends-on): Update.
50987         * modules/fnmatch (Depends-on): Update.
50988         * modules/getopt-posix (Depends-on): Update.
50989         * modules/glob (Depends-on): Update.
50990         * modules/iconv-h (Depends-on): Update.
50991         * modules/inttypes-incomplete (Depends-on): Update.
50992         * modules/locale (Depends-on): Update.
50993         * modules/math (Depends-on): Update.
50994         * modules/netdb (Depends-on): Update.
50995         * modules/search (Depends-on): Update.
50996         * modules/signal (Depends-on): Update.
50997         * modules/spawn (Depends-on): Update.
50998         * modules/stdio (Depends-on): Update.
50999         * modules/stdlib (Depends-on): Update.
51000         * modules/string (Depends-on): Update.
51001         * modules/strings (Depends-on): Update.
51002         * modules/sys_socket (Depends-on): Update.
51003         * modules/sys_stat (Depends-on): Update.
51004         * modules/sys_time (Depends-on): Update.
51005         * modules/sys_times (Depends-on): Update.
51006         * modules/sys_utsname (Depends-on): Update.
51007         * modules/time (Depends-on): Update.
51008         * modules/unistd (Depends-on): Update.
51009         * modules/wchar (Depends-on): Update.
51010         * MODULES.html.sh (Support for building libraries and executables):
51011         Update.
51013 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51015         Improvements on _Noreturn and related modules.
51017         modules/_Exit-tests: test _Noreturn too
51018         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
51019         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
51020         (main): Use them.
51022         stdnoreturn, stdnoreturn-tests: remove modules
51023         They're not needed here and a bit premature for use elsewhere.  See
51024         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00209.html>.
51025         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
51026         * tests/test-stdnoreturn.c: Remove files.
51027         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
51028         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
51029         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
51030         and using noreturn.
51031         * modules/openat, modules/sigpipe-die, modules/xalloc:
51032         * modules/xmemdup0, modules/xstrtol:
51033         Remove dependency on stdnoreturn.
51035         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
51036         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
51037         Reparenthesize to avoid GCC warning.
51038         Support Microsoft's syntax.
51039         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
51041         _Noreturn-tests: remove module
51042         * modules/_Noreturn-tests: Remove.
51043         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
51044         * tests/test-_Noreturn.c: Remove.
51045         * tests/test-stdnoreturn.c: Merge from the old
51046         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
51048 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
51050         _Noreturn, stdnoreturn, and related modules.
51052         * top/maint.mk: Adjust to new noreturn support.
51053         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
51054         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
51056         xalloc: use stdnoreturn.h
51057         * lib/xalloc.h: Include <stdnoreturn.h>.
51058         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51059         * modules/xalloc (Depends-on): Add stdnoreturn.
51061         xstrtol: use stdnoreturn.h
51062         * lib/xstrtol.h: Include <stdnoreturn.h>.
51063         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51064         * modules/xstrtol (Depends-on): Add stdnoreturn.
51066         xmemdup0: use stdnoreturn.h
51067         * lib/xmemdup0.h: Include <stdnoreturn.h>.
51068         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51069         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
51071         sigpipe-die: use stdnoreturn.h
51072         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
51073         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51074         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
51076         openat: use stdnoreturn.h
51077         * lib/openat.h: Include <stdnoreturn.h>.
51078         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
51079         * modules/openat (Depends-on): Add stdnoreturn.
51081         * lib/openat-die.c (openat_save_fail): Modernize comment.
51083         * lib/xalloc-die.c (xalloc_die): Modernize comment.
51085         * lib/glthread/thread.h: Modernize comment.
51087         obstack: use _Noreturn
51088         * lib/obstack.c (__attribute__): Remove macro.
51089         (print_and_abort): Use _Noreturn.
51091         c-stack: use _Noreturn
51092         * lib/c-stack.c (die, overflow_handler, segv_handler):
51093         Use _Noreturn rather than __attribute__((noreturn)).
51095         argmatch-tests, exclude_tests: use _Noreturn
51096         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
51097         Remove.
51098         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
51100         stdlib: use _Noreturn
51101         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
51102         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
51103         * modules/stdlib (Depends-on): Add _Noreturn.
51104         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
51106         stdnoreturn-tests: new module
51107         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
51109         stdnoreturn: new module
51110         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
51111         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
51113         _Noreturn-tests: new module
51114         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
51116         _Noreturn: new module
51117         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
51118         New section, mentioning it.
51119         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
51121         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
51123 2011-07-11  Eric Blake  <eblake@redhat.com>
51125         ffs: new module
51126         * modules/ffs: New file.
51127         * m4/ffs.m4: Likewise.
51128         * lib/ffs.c: Likewise.
51129         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
51130         * modules/strings (Makefile.am): Substitute witness.
51131         (Depends-on): Add c++defs.
51132         * lib/strings.in.h (ffs): Declare.
51133         * modules/ffs-tests: New test file.
51134         * tests/test-ffs.c: Test new module.
51135         * MODULES.html.sh (Integer arithmetic functions): Mention it.
51136         * doc/posix-functions/ffs.texi (ffs): Likewise.
51138         regex: avoid compiler warning
51139         * lib/regex.c (includes): Include <strings.h>, for use of
51140         strcasecmp in regcomp.c.
51141         Reported by Joachim Schmitz.
51143 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
51145         stdint: respect system's intmax_t if INTMAX_MAX
51146         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
51147         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
51148         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
51149         long but int64_t is long long, and where we will clash with the
51150         system intmax_t if we override it.  See
51151         <http://lists.gnu.org/r/bug-gnulib/2011-07/msg00160.html>.
51152         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
51153         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
51154         similarly for UINTMAX_C.
51156 2011-07-08  Bruno Haible  <bruno@clisp.org>
51158         pthread_sigmask tests: Avoid a compiler warning.
51159         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
51160         non-zero.
51162         sigprocmask tests: A better way to avoid a compiler warning.
51163         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
51164         (main): Complain if system() returns non-zero.
51165         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
51167 2011-07-08  Bruno Haible  <bruno@clisp.org>
51169         pthread_sigmask: Work around IRIX bug.
51170         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
51171         bug.
51172         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
51173         there may be unblocked pending signals.
51174         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
51176 2011-07-08  Bruno Haible  <bruno@clisp.org>
51178         pthread_sigmask: Work around Cygwin bug.
51179         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
51180         bug.
51181         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
51182         the system's pthread_sigmask function.
51183         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
51185 2011-07-08  Bruno Haible  <bruno@clisp.org>
51187         pthread_sigmask: Work around bug in single-threaded implementation.
51188         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
51189         FreeBSD, HP-UX, Solaris bug.
51190         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
51191         * lib/pthread_sigmask.c: Include <stddef.h>.
51192         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
51193         the system's pthread_sigmask function.
51194         * modules/pthread_sigmask (configure.ac): Invoke
51195         gl_PREREQ_PTHREAD_SIGMASK.
51196         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
51197         HP-UX, Solaris.
51199 2011-07-08  Eric Blake  <eblake@redhat.com>
51201         test-sigprocmask: avoid compiler warning
51202         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
51203         * tests/test-sigprocmask.c (main): Use it to silence warning.
51204         Reported by Jim Meyering.
51206         test-snprintf: avoid compiler warning
51207         * tests/test-snprintf.c (main): Avoid shadowed declaration.
51208         * tests/test-vsnprintf.c (main): Likewise.
51209         Reported by Jim Meyering.
51211 2011-07-08  Bruno Haible  <bruno@clisp.org>
51213         Tests for module 'pthread_sigmask'.
51214         * modules/pthread_sigmask-tests: New file.
51215         * tests/test-pthread_sigmask1.c: New file, based on
51216         tests/test-sigprocmask.c.
51217         * tests/test-pthread_sigmask2.c: New file.
51219 2011-07-08  Jim Meyering  <meyering@redhat.com>
51221         test-getopt.h: avoid warning about an unused variable
51222         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
51224 2011-07-07  Jim Meyering  <meyering@redhat.com>
51226         maint: reduce list of files exempt from sc_prohibit_leading_TABs
51227         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
51228         now that it no longer contains leading TABs.
51229         Remove unused "url=FIXME" statement.
51231 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
51233         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
51234         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51235         When gl_THREADLIB is not in use, assume that the POSIX sematics
51236         are desired.  This is better for Emacs, which uses POSIX semantics
51237         on GNUish and/or POSIXish platforms, and does not use threads at
51238         all otherwise.
51240         pthread_sigmask: fix typo when testing for libraries
51241         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
51242         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
51244 2011-07-08  Eric Blake  <eblake@redhat.com>
51246         fts: introduce FTS_NOATIME
51247         * lib/fts_.h (FTS_NOATIME): New bit flag.
51248         (FTS_OPTIONMASK): Adjust.
51249         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
51250         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
51252 2011-07-08  Bruno Haible  <bruno@clisp.org>
51254         Tests for module 'thread'.
51255         * modules/thread-tests: New file.
51256         * tests/test-thread_self.c: New file.
51257         * tests/test-thread_create.cc: New file.
51259 2011-07-08  Bruno Haible  <bruno@clisp.org>
51261         thread: Avoid gcc warnings when using gl_thread_self().
51262         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
51263         'void *'.
51264         (gl_thread_self_pointer): Update.
51266 2011-07-07  Bruno Haible  <bruno@clisp.org>
51268         signal-c++-tests: Check declaration of pthread_sigmask.
51269         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
51270         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
51271         $(LIB_PTHREAD_SIGMASK).
51273 2011-07-07  Bruno Haible  <bruno@clisp.org>
51275         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
51276         * lib/signal.in.h (pthread_sigmask): Override if
51277         REPLACE_PTHREAD_SIGMASK is 1.
51278         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51279         REPLACE_PTHREAD_SIGMASK.
51280         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
51281         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
51282         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
51283         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51284         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
51286 2011-07-07  Bruno Haible  <bruno@clisp.org>
51288         pthread_sigmask: Ensure declaration in <signal.h>.
51289         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
51290         include <pthread.h>.
51291         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
51292         problem.
51294 2011-07-07  Bruno Haible  <bruno@clisp.org>
51296         pthread_sigmask: Document the module.
51297         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
51299 2011-07-07  Bruno Haible  <bruno@clisp.org>
51301         pthread_sigmask: Follow gnulib conventions.
51302         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
51303         gl_PTHREAD_SIGMASK.
51304         * modules/pthread_sigmask (configure.ac): Update.
51306 2011-07-07  Bruno Haible  <bruno@clisp.org>
51308         pthread_sigmask: Make declaration C++ safe.
51309         * lib/signal.in.h: In two special conditions, just do an #include_next.
51310         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51311         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
51312         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
51313         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
51314         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
51315         not REPLACE_PTHREAD_MASK.
51316         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
51317         not REPLACE_PTHREAD_MASK.
51318         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
51320 2011-07-07  Bruno Haible  <bruno@clisp.org>
51322         pthread_sigmask: Fix return value.
51323         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
51324         * lib/pthread_sigmask.c: New file.
51325         * modules/pthread_sigmask (Files): Add it.
51326         (configure.ac): Invoke AC_LIBOBJ.
51328 2011-07-07  Eric Blake  <eblake@redhat.com>
51330         getopt: more portable argv creation
51331         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
51332         const, use char arrays rather than strings.
51333         Suggested by Paul Eggert.
51335 2011-07-07  Bruno Haible  <bruno@clisp.org>
51337         Tests for module 'sigprocmask'.
51338         * modules/sigprocmask-tests: New file.
51339         * tests/test-sigprocmask.c: New file.
51341 2011-07-07  Bruno Haible  <bruno@clisp.org>
51343         float tests: Tweak.
51344         * tests/test-float.c (main): Tweak skip message.
51346 2011-07-07  Eric Blake  <eblake@redhat.com>
51348         getopt: avoid compiler warning during configure
51349         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
51350         assigning string literals to non-const pointer.
51352         getopt-gnu: avoid crash in glibc getopt
51353         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
51354         * tests/test-getopt.h (test_getopt): Enhance test.
51355         * tests/test-getopt_long.h (test_getopt_long): Likewise.
51356         * doc/posix-functions/getopt.texi (getopt): Document it.
51357         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
51358         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
51359         Likewise.
51361 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
51363         getopt: handle W; without long options in getopt [BZ #12922]
51364         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
51365         but no long options are defined, just return 'W'.
51367 2011-07-07  Bruno Haible  <bruno@clisp.org>
51369         Avoid literal tabs.
51370         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
51371         variable containing a tab instead of a literal tab.
51372         Reported by Jim Meyering.
51374 2011-07-07  Bruno Haible  <bruno@clisp.org>
51376         Comments.
51377         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
51379 2011-07-06  Bruno Haible  <bruno@clisp.org>
51381         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
51382         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
51383         <winsock2.h>.
51384         (rpl_fd_isset, FD_ISSET): New definitions, copied from
51385         lib/sys_socket.in.h.
51386         (close, gethostname): Hide declarations from <winsock2.h>.
51387         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
51388         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
51389         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
51390         (select): Don't override if gnulib's <sys/select.h> was already
51391         included.
51392         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
51393         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
51394         setsockopt, shutdown, select): Tweak indentation.
51396 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51398         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
51399         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
51400         in an application that does not use the sys_select module.
51402 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
51404         poll: do not return 0 on timeout=-1
51405         * lib/poll.c: Loop with yield if no events occurred.
51407 2011-07-06  Eric Blake  <eblake@redhat.com>
51409         pthread_sigmask: always replace when not using pthread
51410         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
51411         replacement when using some threading other than pthread.  Fix
51412         logic bug.
51414 2011-07-06  Bruno Haible  <bruno@clisp.org>
51416         Comments.
51417         * m4/printf.m4: Update comments about mingw.
51419 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
51421         sys_select: define sigset_t more portably
51422         * lib/sys_select.in.h: Always include <sys/types.h>, since
51423         we now need sigset_t and mingw defines it there.
51424         Include <signal.h> before split inclusion guard, to avoid
51425         mishaps on Solaris, whose <signal.h> eventually includes us.
51426         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
51427         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
51428         which come from ...
51429         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
51430         gl_CHECK_TYPE_SIGSET_T.
51431         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
51432         does the real work.
51433         * modules/sys_select (Depends-on): Add 'signal'.
51435         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
51436         Suggested by Bruno Haible.
51438         pselect: Use pthread_sigmask, not sigprocmask.
51439         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
51440         multithreaded apps better than sigprocmask does.
51441         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
51442         sigprocmask directly.
51444 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
51446         * lib/pselect.c (pselect): Use plain name, without "rpl_".
51447         Don't #undef,  since we don't need any underlying pselect.
51448         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
51449         (Depends-on): Add select.
51450         (Link): Add $(LIBSOCKET).
51451         These changes suggested by Bruno Haible.
51453         pselect: document better
51454         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51455         * doc/posix-functions/pselect.texi (pselect): Document new module.
51457         pthread_sigmask: new module
51458         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
51459         * doc/posix-functions/pthread_sigmask.texi: Document new module.
51460         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
51461         This is done only as a macro; I don't know how well that'll
51462         work for C++.  Move <sys/types.h> include before the include_next,
51463         to avoid mishap on Solaris.
51464         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
51465         * modules/signal (Makefile.am): Substitute the check's results.
51466         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
51468         test-pselect: new module
51469         * modules/pselect-tests, tests/test-pselect.c: New files.
51470         * tests/test-select.c, tests/test-sys_select-c++.cc:
51471         If TEST_PSELECT is defined, test pselect instead of testing select.
51473         * tests/test-sys_select.c (sigset_t): Test for it, too.
51474         Suggested by Bruno Haible.
51476 2011-07-05  Eric Blake  <eblake@redhat.com>
51478         snprintf: guarantee %1$d, for libintl
51479         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
51480         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
51481         * doc/posix-functions/snprintf.texi (snprintf): Update.
51482         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
51483         * tests/test-snprintf.c (main): Enhance test.
51484         * tests/test-vsnprintf.c (main): Likewise.
51486 2011-07-05  Jim Meyering  <meyering@redhat.com>
51488         maint: exempt stdio-read.c and stdio-write.c from the cppi check
51489         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
51490         per Bruno's request, to accommodate this idiom (no space after "#")
51491         even when the function is inside an #if block:
51492         char *
51493         gets (char *s)
51494         #undef gets
51495         {
51496           ...
51497         }
51499 2011-07-04  Jim Meyering  <meyering@redhat.com>
51501         maint: indent with spaces, not TABs, and add a rule to check this
51502         * tests/test-userspec.c: Indent with spaces, not TABs.
51503         * tests/test-argp.c: Likewise.
51504         * tests/test-c-stack2.sh: Likewise.
51505         * tests/test-parse-duration.sh: Likewise
51506         * m4/strtod.m4: Likewise.
51507         * m4/alloca.m4: Likewise.
51508         * m4/pselect.m4: Likewise.
51509         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
51511 2011-07-03  Jim Meyering  <meyering@redhat.com>
51513         maint.mk: correct omissions in prohibit_argmatch_without_use check
51514         This rule would mistakenly report that argmatch.h is included without
51515         use even when both the argmatch and invalid_arg macro were used.
51516         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
51517         of argmatch and invalid_arg.
51519 2011-07-03  Bruno Haible  <bruno@clisp.org>
51521         Comments about EINTR.
51522         * lib/safe-read.h: Explain the purpose of this module.
51523         * lib/safe-write.h: Likewise.
51524         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
51525         module.
51526         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
51527         module.
51528         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51530 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
51532         xnanosleep: Rewrite to use new dtotimespec module.
51533         It has the conversion code that used to be in xnanosleep.
51534         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
51535         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
51536         (TIME_T_MAX): Remove.
51537         (xnanosleep): Rewrite in terms of dtotimespec.
51538         * modules/xnanosleep (Depends-on): Add dtotimespec.
51539         Remove intprops, stdbool.
51541         timespec-add, timespec-sub: new modules
51542         * lib/timespec.h (timespec_add, timespec_sub): New decls.
51543         * lib/timespec-add.c, lib/timespec-sub.c:
51544         * modules/timespec-add, modules/timespec-sub: New files.
51546         dtotimespec: new module
51547         * lib/timespec.h (dtotimespec): New decl.
51548         * lib/dtotimespec.c, modules/dtotimespec: New files.
51550         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
51552         pselect: new module
51553         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
51554         (pselect): New decls.
51555         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
51556         since the standard pselect decl uses 'restrict'.
51557         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
51558         HAVE_PSELECT, REPLACE_PSELECT.
51559         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
51560         HAVE_PSELECT, REPLACE_PSELECT.
51561         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
51563         sys_select: don't depend on sys_socket
51564         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
51565         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00358.html>.
51566         This fix works on GNU and GNU-like platforms, but has not been tested
51567         on native Windows.
51568         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
51569         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
51570         gl_HEADER_SYS_SOCKET.
51571         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
51572         gl_PREREQ_SYS_H_WINSOCK2.
51574 2011-06-29  Eric Blake  <eblake@redhat.com>
51576         pipe2: fix C89 compile problem
51577         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
51578         Reported by Bruno Haible.
51580         pipe, pipe2: don't corrupt fd on error
51581         * lib/pipe.c (pipe): Leave fd unchanged on error.
51582         * lib/pipe2.c (pipe2): Likewise.
51583         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
51584         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
51586 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
51588         mmap-anon: do not use regular expressions inadvertently
51589         * m4/mmap-anon.m4: Remove trailing period from strings sought
51590         in the output.
51592 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
51594         nanosleep: fix integer overflow problem
51595         * lib/nanosleep.c (my_usleep): Don't assume signed integer
51596         arithmetic wraps around on overflow.
51598         nanosleep: simplify carrying
51599         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
51600         first call to the underyling nanosleep, not for the last one.
51601         This doesn't fix any bugs, but it simplifies the computation of
51602         the remaining delay.  Found while auditing integer overflow issues.
51604         dup2: remove test for existence of fcntl
51605         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
51606         "#if HAVE_FCNTL", in the configure-time test program.
51607         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
51608         and therefore speeds up "configure" a bit.  Found while
51609         adding the dup2 module to Emacs.
51611 2011-06-24  Eric Blake  <eblake@redhat.com>
51613         maint.mk: enhance useless header checks
51614         * top/maint.mk (_sc_header_without_use): Check both include
51615         styles.
51616         (sc_prohibit_assert_without_use)
51617         (sc_prohibit_close_stream_without_use)
51618         (sc_prohibit_getopt_without_use)
51619         (sc_prohibit_quotearg_without_use)
51620         (sc_prohibit_quote_without_use)
51621         (sc_prohibit_long_options_without_use)
51622         (sc_prohibit_inttostr_without_use)
51623         (sc_prohibit_ignore_value_without_use)
51624         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
51625         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
51626         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
51627         (sc_prohibit_hash_pjw_without_use)
51628         (sc_prohibit_safe_read_without_use)
51629         (sc_prohibit_argmatch_without_use)
51630         (sc_prohibit_canonicalize_without_use)
51631         (sc_prohibit_root_dev_ino_without_use)
51632         (sc_prohibit_openat_without_use)
51633         (sc_prohibit_c_ctype_without_use)
51634         (sc_prohibit_signal_without_use)
51635         (sc_prohibit_stdio--_without_use)
51636         (sc_prohibit_stdio-safer_without_use)
51637         (sc_prohibit_strings_without_use)
51638         (sc_prohibit_intprops_without_use)
51639         (sc_prohibit_stddef_without_use)
51640         (sc_prohibit_xfreopen_without_use): Update clients.
51642 2011-06-24  Jim Meyering  <meyering@redhat.com>
51644         syntax-check: keep one maint.mk rule in sync with its header
51645         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
51646         of the bug Eric has just fixed, with today's commit 25e4c2ec.
51647         I prefer to avoid temporary files here, so use <(...), but that
51648         is not supported by /bin/sh, so...
51649         (SHELL): Define to /bin/bash.
51651 2011-06-24  Eric Blake  <eblake@redhat.com>
51653         maint.mk: update sc_prohibit_intprops_without_use
51654         * top/maint.mk (_intprops_names): Match recent changes.
51656 2011-06-24  Bruno Haible  <bruno@clisp.org>
51658         strerror-override: No-op tweak.
51659         * lib/strerror-override.h (strerror_override): Reorder conditions,
51660         for consistency with lib/strerror-override.c.
51662 2011-06-23  Eric Blake  <eblake@redhat.com>
51664         maint.mk: test further PATH_MAX issues
51665         * top/maint.mk (sc_prohibit_path_max_array): Rename...
51666         (sc_prohibit_path_max_allocation): ...and also test alloca.
51667         Suggested by Jim Meyering.
51669 2011-06-22  Eric Blake  <eblake@redhat.com>
51671         maint.mk: add syntax-check to avoid char[PATH_MAX]
51672         * top/maint.mk (sc_prohibit_path_max_array): New rule.
51674         stat: be robust to PATH_MAX definition
51675         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
51676         * modules/stat (Depends-on): Add verify.
51678         link: work around IRIX bug
51679         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
51680         * lib/link.c (rpl_link): Work around it.
51681         * tests/test-link.h (test_link): Enhance test.
51682         * doc/posix-functions/link.texi (link): Document the bug.
51684         getopt: silence clang warning
51685         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
51686         dereference.
51687         Reported by Gustavo Martin Domato.
51689 2011-06-22  Jim Meyering  <meyering@redhat.com>
51691         bootstrap: do not insert a blank line into each .gitignore file
51692         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
51694 2011-06-21  Eric Blake  <eblake@redhat.com>
51696         perror: test for output mismatch
51697         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
51698         perror on IRIX.
51700         strerror_r: fix OpenBSD behavior on out-of-range
51701         * lib/strerror_r.c (strerror_r): Always use maximal string.
51702         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
51704         strerror_r: fix OpenBSD behavior on 0
51705         * lib/strerror-override.c (strerror_override): Also override 0
51706         when needed.
51707         * lib/strerror-override.h (strerror_override): Likewise.
51708         * lib/strerror.c (strerror): Simplify, now that 0 override is done
51709         earlier.
51710         * lib/strerror_r.c (strerror_r): Likewise.
51711         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
51712         behavior...
51713         (gl_FUNC_STRERROR_0): ...into new macro.
51714         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
51715         is overridden.
51716         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
51717         * modules/strerror-override (Files): Add strerror.m4.
51718         (configure.ac): Also provide override for 0 when needed.
51719         * doc/posix-functions/strerror.texi (strerror): Document this.
51720         * doc/posix-functions/perror.texi (perror): Likewise.
51722         perror: adjust array size
51723         * modules/perror (Depends-on): Add strerror-override.
51724         * lib/perror.c (perror): Use it to avoid magic number.
51726         strerror-override: reduce size
51727         * lib/strerror-override.c (strerror_override): Use fewer lines.
51729 2011-06-20  Bruno Haible  <bruno@clisp.org>
51731         pathmax: Ensure correct value for PATH_MAX on HP-UX.
51732         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
51734 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
51736         alloca: port to compilers that can optimize like GCC 4.6.0
51737         * lib/alloca.c (find_stack_direction): New signature, taken from
51738         Autoconf git.  This works with GCC 4.6.0.  This code should never
51739         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
51740         be used with other compilers that optimize as well as GCC 4.6.0 does.
51741         (alloca): Adjust to new signature.
51742         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
51743         New macro, which patches Autoconf in a similar way.
51745         c-stack: stop worrying about stack direction
51746         * lib/c-stack.c (find_stack_direction): Remove.
51747         (segv_handler): Don't worry about stack direction growth, as it's
51748         too much of a pain to configure this correctly, given how compilers
51749         are optimizing-away our stack-growth detection code.  Instead, assume
51750         that any access to just before or just after the stack is OK.
51751         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
51752         Don't require AC_FUNC_ALLOCA; no longer needed.
51754 2011-06-20  Eric Blake  <eblake@redhat.com>
51756         test-stat: don't allocate PATH_MAX bytes
51757         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
51758         PATH_MAX-sized buffer.
51759         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
51760         * modules/stat-tests (Depends-on): Likewise.
51761         * tests/test-fstatat.c (includes): Drop pathmax.h.
51762         * tests/test-stat.c (includes): Likewise.
51763         Reported by Bruno Haible.
51765 2011-06-20  Bruno Haible  <bruno@clisp.org>
51767         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
51768         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
51769         * lib/float.c: New file.
51770         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
51771         REPLACE_FLOAT_LDBL.
51772         * modules/float (Files): Add lib/float.c.
51773         (configure.ac): Invoke AC_LIBOBJ.
51774         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
51776 2011-06-20  Bruno Haible  <bruno@clisp.org>
51778         Tests for module 'float'.
51779         * modules/float-tests: New file.
51780         * tests/test-float.c: New file.
51782 2011-06-19  Bruno Haible  <bruno@clisp.org>
51784         isinf: Coding style.
51785         * lib/isinf.c: Use GNU coding style.
51787 2011-06-19  Bruno Haible  <bruno@clisp.org>
51789         linkat test: Avoid test failure on AIX 7.1.
51790         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
51791         * tests/test-link.h (test_link): Likewise.
51793 2011-06-19  Bruno Haible  <bruno@clisp.org>
51795         pread test: Avoid test failure on OpenBSD 4.9.
51796         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
51798 2011-06-19  Bruno Haible  <bruno@clisp.org>
51800         sprintf-posix: Fix test failure on AIX 7.1.
51801         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
51802         * doc/posix-functions/dprintf.texi: Mention limited precision problem
51803         on AIX.
51804         * doc/posix-functions/fprintf.texi: Likewise.
51805         * doc/posix-functions/printf.texi: Likewise.
51806         * doc/posix-functions/snprintf.texi: Likewise.
51807         * doc/posix-functions/sprintf.texi: Likewise.
51808         * doc/posix-functions/vdprintf.texi: Likewise.
51809         * doc/posix-functions/vfprintf.texi: Likewise.
51810         * doc/posix-functions/vprintf.texi: Likewise.
51811         * doc/posix-functions/vsnprintf.texi: Likewise.
51812         * doc/posix-functions/vsprintf.texi: Likewise.
51814 2011-06-19  Bruno Haible  <bruno@clisp.org>
51816         roundl-ieee: Fix test failure on AIX 7.1.
51817         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
51818         * doc/posix-functions/roundl.texi: Mention problem with negative
51819         arguments.
51821 2011-06-19  Bruno Haible  <bruno@clisp.org>
51823         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51824         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
51825         * doc/posix-functions/round.texi: Mention problem with negative
51826         arguments.
51827         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
51829 2011-06-19  Bruno Haible  <bruno@clisp.org>
51831         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
51832         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
51833         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
51834         * doc/posix-functions/roundf.texi: Mention problem with negative
51835         arguments.
51836         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
51838 2011-06-19  Bruno Haible  <bruno@clisp.org>
51840         ceilf-ieee: Work around bug on MacOS X 10.5.
51841         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
51843         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
51844         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
51845         IEEE compliant, avoid compiler optimizations.
51846         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
51847         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
51848         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
51849         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
51850         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
51851         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
51852         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
51853         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
51854         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
51855         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
51857 2011-06-19  Bruno Haible  <bruno@clisp.org>
51859         ceilf-ieee: Work around bug on AIX 7.1.
51860         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
51861         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
51863 2011-06-19  Bruno Haible  <bruno@clisp.org>
51865         ceil-ieee: Work around bug on AIX 7.1.
51866         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
51867         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
51869 2011-06-18  Bruno Haible  <bruno@clisp.org>
51871         fsync test: Avoid test failure on MacOS X and AIX.
51872         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
51873         EINVAL.
51875 2011-06-18  Bruno Haible  <bruno@clisp.org>
51877         openat, fdopendir tests: Fix link errors.
51878         * modules/openat-tests (Depends-on): Add progname.
51879         * modules/fdopendir-tests (Depends-on): Likewise.
51880         * tests/test-fchownat.c: Include progname.h.
51881         (main): Call set_program_name.
51882         * tests/test-fstatat.c: Include progname.h.
51883         (main): Call set_program_name.
51884         * tests/test-mkdirat.c: Include progname.h.
51885         (main): Call set_program_name.
51886         * tests/test-openat.c: Include progname.h.
51887         (main): Call set_program_name.
51888         * tests/test-unlinkat.c: Include progname.h.
51889         (main): Call set_program_name.
51890         * tests/test-fdopendir.c: Include progname.h.
51891         (main): Call set_program_name.
51893 2011-06-18  Bruno Haible  <bruno@clisp.org>
51895         Doc update.
51896         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
51897         HP-UX.
51898         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
51900 2011-06-18  Bruno Haible  <bruno@clisp.org>
51902         getcwd tests: Avoid compilation error on HP-UX 11.31.
51903         * modules/getcwd-tests (Depends-on): Add pathmax.
51904         * tests/test-getcwd.c: Include pathmax.h.
51906 2011-06-18  Bruno Haible  <bruno@clisp.org>
51908         isfinite, isinf: Fix link error on AIX 6 and 7.
51909         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
51910         needed, also test the macro with a 'float' argument.
51911         * m4/isinf.m4 (gl_ISINF): Likewise.
51913 2011-06-18  Bruno Haible  <bruno@clisp.org>
51915         getloadavg: Don't clobber LIBS. Regression from previous commit.
51916         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
51917         AC_CHECK_LIB from here...
51918         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
51919         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
51920         gl_func_getloadavg_done.
51921         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51923 2011-06-18  Bruno Haible  <bruno@clisp.org>
51925         clean-temp: Improve documentation.
51926         * lib/clean-temp.h: Explain better how to use this module.
51927         Reported by John Darrington <john@darrington.wattle.id.au>.
51929 2011-06-17  Bruno Haible  <bruno@clisp.org>
51931         pread, pwrite: Avoid cc warning on AIX.
51932         * lib/unistd.in.h (pread): Undefine before defining as a macro.
51933         (pwrite): Likewise.
51935 2011-06-17  Bruno Haible  <bruno@clisp.org>
51937         spawn-pipe tests: Fix link error.
51938         * tests/test-spawn-pipe-child.c: Undefine fprintf.
51939         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51941 2011-06-17  Bruno Haible  <bruno@clisp.org>
51943         Tests: Remove unnecessary dependency.
51944         * modules/canonicalize-tests (Depends-on): Remove progname.
51945         * modules/chown-tests (Depends-on): Likewise.
51946         * modules/dirname-tests (Depends-on): Likewise.
51947         * modules/fdopendir-tests (Depends-on): Likewise.
51948         * modules/fdutimensat-tests (Depends-on): Likewise.
51949         * modules/hash-tests (Depends-on): Likewise.
51950         * modules/lchown-tests (Depends-on): Likewise.
51951         * modules/linkat-tests (Depends-on): Likewise.
51952         * modules/renameat-tests (Depends-on): Likewise.
51953         * modules/spawn-pipe-tests (Depends-on): Likewise.
51954         * modules/utimensat-tests (Depends-on): Likewise.
51956 2011-06-17  Bruno Haible  <bruno@clisp.org>
51958         spawn-pipe tests: Fix link error.
51959         * tests/test-spawn-pipe-child.c: Undefine fflush.
51961 2011-06-17  Bruno Haible  <bruno@clisp.org>
51963         Fix tests link errors.
51964         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
51965         * modules/chown-tests (Makefile.am): Don't link test-chown with
51966         LIBINTL.
51967         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
51968         LIBINTL.
51969         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
51970         LIBINTL.
51971         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
51972         LIBINTL.
51974 2011-06-16  Bruno Haible  <bruno@clisp.org>
51976         crypto/gc-sha1: Fix recent regression.
51977         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
51978         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
51980         crypto/gc-md5: Fix recent regression.
51981         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
51983         crypto/gc-md4: Fix recent regression.
51984         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
51985         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
51987         crypto/gc-arctwo: Fix recent regression.
51988         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
51989         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
51991         crypto/gc-rijndael: Fix recent regression.
51992         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
51993         (configure.ac): Invoke AC_LIBOBJ here.
51994         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
51995         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
51997         crypto/gc-hmac-sha1: Fix recent regression.
51998         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
51999         (configure.ac): Invoke AC_LIBOBJ here.
52000         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
52001         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52003         crypto/gc-hmac-md5: Fix recent regression.
52004         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
52005         (configure.ac): Invoke AC_LIBOBJ here.
52006         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
52007         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52009         crypto/gc-des: Fix recent regression.
52010         * modules/crypto/gc-des (Files): Remove m4/des.m4.
52011         (configure.ac): Invoke AC_LIBOBJ here.
52012         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
52013         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52015         crypto/gc-arcfour: Fix recent regression.
52016         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
52017         (configure.ac): Invoke AC_LIBOBJ here.
52018         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
52019         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
52021 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
52023         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
52024         After the 2011-05-21 change, this macro requires
52025         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
52026         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
52028 2011-06-16  Bruno Haible  <bruno@clisp.org>
52030         fprintftime: Move AC_LIBOBJ invocations to module description.
52031         * m4/fprintftime.m4: Remove file.
52032         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
52033         (configure.ac): Remove gl_FPRINTFTIME call.
52034         (Makefile.am): Augment lib_SOURCES.
52035         Reported by Jim Meyering.
52037 2011-06-16  Bruno Haible  <bruno@clisp.org>
52039         tmpfile-safer: Finish 2011-05-23 commit.
52040         * m4/stdio-safer.m4: Really remove file.
52041         Reported by Jim Meyering.
52043 2011-06-16  Bruno Haible  <bruno@clisp.org>
52045         syntax-check: Fix typo.
52046         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
52047         printf-posix.m4.
52048         Reported by Jim Meyering.
52050 2011-06-13  Jim Meyering  <meyering@redhat.com>
52052         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
52053         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
52055 2011-05-23  Bruno Haible  <bruno@clisp.org>
52057         yesno: Move AC_LIBOBJ invocations to module description.
52058         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
52059         * modules/yesno (Makefile.am): Augment lib_SOURCES.
52061 2011-05-23  Bruno Haible  <bruno@clisp.org>
52063         xstrtol: Move AC_LIBOBJ invocations to module description.
52064         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
52065         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
52067 2011-05-23  Bruno Haible  <bruno@clisp.org>
52069         xstrtold: Move AC_LIBOBJ invocations to module description.
52070         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
52071         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
52073 2011-05-23  Bruno Haible  <bruno@clisp.org>
52075         xstrtod: Move AC_LIBOBJ invocations to module description.
52076         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
52077         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
52079 2011-05-23  Bruno Haible  <bruno@clisp.org>
52081         xnanosleep: Move AC_LIBOBJ invocations to module description.
52082         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
52083         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
52085 2011-05-23  Bruno Haible  <bruno@clisp.org>
52087         xgetcwd: Move AC_LIBOBJ invocations to module description.
52088         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
52089         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
52091 2011-05-23  Bruno Haible  <bruno@clisp.org>
52093         xalloc: Move AC_LIBOBJ invocations to module description.
52094         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
52095         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
52097 2011-05-23  Bruno Haible  <bruno@clisp.org>
52099         write-any-file: Move AC_LIBOBJ invocations to module description.
52100         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
52101         invocation.
52102         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
52104 2011-05-23  Bruno Haible  <bruno@clisp.org>
52106         utimens: Move AC_LIBOBJ invocations to module description.
52107         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
52108         * modules/utimens (Makefile.am): Augment lib_SOURCES.
52110 2011-05-23  Bruno Haible  <bruno@clisp.org>
52112         utimecmp: Move AC_LIBOBJ invocations to module description.
52113         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
52114         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
52116 2011-05-23  Bruno Haible  <bruno@clisp.org>
52118         userspec: Move AC_LIBOBJ invocations to module description.
52119         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
52120         * modules/userspec (Makefile.am): Augment lib_SOURCES.
52122 2011-05-23  Bruno Haible  <bruno@clisp.org>
52124         unlinkdir: Move AC_LIBOBJ invocations to module description.
52125         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
52126         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
52128 2011-05-23  Bruno Haible  <bruno@clisp.org>
52130         unistd-safer: Move AC_LIBOBJ invocations to module description.
52131         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
52132         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
52134 2011-05-23  Bruno Haible  <bruno@clisp.org>
52136         tempname: Move AC_LIBOBJ invocations to module description.
52137         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
52138         * modules/tempname (Makefile.am): Augment lib_SOURCES.
52140 2011-05-23  Bruno Haible  <bruno@clisp.org>
52142         strftime: Move AC_LIBOBJ invocations to module description.
52143         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
52144         * modules/strftime (Makefile.am): Augment lib_SOURCES.
52146 2011-05-23  Bruno Haible  <bruno@clisp.org>
52148         stdlib-safer: Move AC_LIBOBJ invocations to module description.
52149         * m4/stdlib-safer.m4: Remove file.
52150         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
52151         (configure.ac): Remove gl_STDLIB_SAFER call.
52152         (Makefile.am): Augment lib_SOURCES.
52154 2011-05-23  Bruno Haible  <bruno@clisp.org>
52156         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
52157         * m4/stdio-safer.m4: Remove file.
52158         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
52159         (configure.ac): Remove gl_TMPFILE_SAFER call.
52160         (Makefile.am): Augment lib_SOURCES.
52162 2011-05-23  Bruno Haible  <bruno@clisp.org>
52164         popen-safer: Move AC_LIBOBJ invocations to module description.
52165         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
52166         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
52167         (configure.ac): Remove gl_POPEN_SAFER call.
52168         (Makefile.am): Augment lib_SOURCES.
52170 2011-05-23  Bruno Haible  <bruno@clisp.org>
52172         freopen-safer: Move AC_LIBOBJ invocations to module description.
52173         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
52174         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
52175         (configure.ac): Remove gl_FREOPEN_SAFER call.
52176         (Makefile.am): Augment lib_SOURCES.
52178 2011-05-23  Bruno Haible  <bruno@clisp.org>
52180         fopen-safer: Move AC_LIBOBJ invocations to module description.
52181         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
52182         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
52183         (configure.ac): Remove gl_FOPEN_SAFER call.
52184         (Makefile.am): Augment lib_SOURCES.
52186 2011-05-23  Bruno Haible  <bruno@clisp.org>
52188         crypto/sha512: Move AC_LIBOBJ invocations to module description.
52189         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
52190         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
52192 2011-05-23  Bruno Haible  <bruno@clisp.org>
52194         crypto/sha256: Move AC_LIBOBJ invocations to module description.
52195         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
52196         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
52198 2011-05-23  Bruno Haible  <bruno@clisp.org>
52200         crypto/sha1: Move AC_LIBOBJ invocations to module description.
52201         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
52202         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
52204 2011-05-23  Bruno Haible  <bruno@clisp.org>
52206         settime: Move AC_LIBOBJ invocations to module description.
52207         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
52208         * modules/settime (Makefile.am): Augment lib_SOURCES.
52210 2011-05-23  Bruno Haible  <bruno@clisp.org>
52212         savedir: Move AC_LIBOBJ invocations to module description.
52213         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
52214         * modules/savedir (Makefile.am): Augment lib_SOURCES.
52216 2011-05-23  Bruno Haible  <bruno@clisp.org>
52218         save-cwd: Move AC_LIBOBJ invocations to module description.
52219         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
52220         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
52222 2011-05-23  Bruno Haible  <bruno@clisp.org>
52224         same: Move AC_LIBOBJ invocations to module description.
52225         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
52226         * modules/same (Makefile.am): Augment lib_SOURCES.
52228 2011-05-23  Bruno Haible  <bruno@clisp.org>
52230         safe-write: Move AC_LIBOBJ invocations to module description.
52231         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
52232         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
52233         instead of gl_SAFE_WRITE.
52234         (Makefile.am): Augment lib_SOURCES.
52236 2011-05-23  Bruno Haible  <bruno@clisp.org>
52238         safe-read: Move AC_LIBOBJ invocations to module description.
52239         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
52240         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
52241         of gl_SAFE_READ.
52242         (Makefile.am): Augment lib_SOURCES.
52244 2011-05-23  Bruno Haible  <bruno@clisp.org>
52246         safe-alloc: Move AC_LIBOBJ invocations to module description.
52247         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
52248         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
52250 2011-05-23  Bruno Haible  <bruno@clisp.org>
52252         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
52253         * m4/rijndael.m4: Remove file.
52254         * modules/crypto/rijndael (Files): Remove it.
52255         (configure.ac): Remove gl_RIJNDAEL call.
52256         (Makefile.am): Augment lib_SOURCES.
52258 2011-05-23  Bruno Haible  <bruno@clisp.org>
52260         readtokens: Move AC_LIBOBJ invocations to module description.
52261         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
52262         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
52264 2011-05-23  Bruno Haible  <bruno@clisp.org>
52266         read-file: Move AC_LIBOBJ invocations to module description.
52267         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
52268         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
52269         of gl_FUNC_READ_FILE.
52270         (Makefile.am): Augment lib_SOURCES.
52272 2011-05-23  Bruno Haible  <bruno@clisp.org>
52274         quotearg: Move AC_LIBOBJ invocations to module description.
52275         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
52276         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
52278 2011-05-23  Bruno Haible  <bruno@clisp.org>
52280         quote: Move AC_LIBOBJ invocations to module description.
52281         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
52282         * modules/quote (Makefile.am): Augment lib_SOURCES.
52284 2011-05-23  Bruno Haible  <bruno@clisp.org>
52286         posixver: Move AC_LIBOBJ invocations to module description.
52287         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
52288         * modules/posixver (Makefile.am): Augment lib_SOURCES.
52290 2011-05-23  Bruno Haible  <bruno@clisp.org>
52292         posixtm: Move AC_LIBOBJ invocations to module description.
52293         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
52294         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
52296 2011-05-23  Bruno Haible  <bruno@clisp.org>
52298         physmem: Move AC_LIBOBJ invocations to module description.
52299         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
52300         * modules/physmem (Makefile.am): Augment lib_SOURCES.
52302 2011-05-23  Bruno Haible  <bruno@clisp.org>
52304         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
52305         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
52306         invocation.
52307         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
52309 2011-05-23  Bruno Haible  <bruno@clisp.org>
52311         mpsort: Move AC_LIBOBJ invocations to module description.
52312         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
52313         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
52315 2011-05-23  Bruno Haible  <bruno@clisp.org>
52317         modechange: Move AC_LIBOBJ invocations to module description.
52318         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
52319         * modules/modechange (Makefile.am): Augment lib_SOURCES.
52321 2011-05-23  Bruno Haible  <bruno@clisp.org>
52323         mkdir-p: Move AC_LIBOBJ invocations to module description.
52324         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
52325         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
52327 2011-05-23  Bruno Haible  <bruno@clisp.org>
52329         mkancesdirs: Move AC_LIBOBJ invocations to module description.
52330         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
52331         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
52333 2011-05-23  Bruno Haible  <bruno@clisp.org>
52335         mgetgroups: Move AC_LIBOBJ invocations to module description.
52336         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
52337         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
52339 2011-05-23  Bruno Haible  <bruno@clisp.org>
52341         memxor: Move AC_LIBOBJ invocations to module description.
52342         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
52343         * modules/memxor (Makefile.am): Augment lib_SOURCES.
52345 2011-05-23  Bruno Haible  <bruno@clisp.org>
52347         memcoll: Move AC_LIBOBJ invocations to module description.
52348         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
52349         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
52351 2011-05-23  Bruno Haible  <bruno@clisp.org>
52353         memcasecmp: Move AC_LIBOBJ invocations to module description.
52354         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
52355         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
52357 2011-05-23  Bruno Haible  <bruno@clisp.org>
52359         crypto/md5: Move AC_LIBOBJ invocations to module description.
52360         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
52361         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
52363 2011-05-23  Bruno Haible  <bruno@clisp.org>
52365         crypto/md4: Move AC_LIBOBJ invocations to module description.
52366         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
52367         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
52369 2011-05-23  Bruno Haible  <bruno@clisp.org>
52371         crypto/md2: Move AC_LIBOBJ invocations to module description.
52372         * m4/md2.m4: Remove file.
52373         * modules/crypto/md2 (Files): Remove it.
52374         (configure.ac): Remove gl_MD2 call.
52375         (Makefile.am): Augment lib_SOURCES.
52377 2011-05-23  Bruno Haible  <bruno@clisp.org>
52379         long-options: Move AC_LIBOBJ invocations to module description.
52380         * m4/long-options.m4: Remove file.
52381         * modules/long-options (Files): Remove it.
52382         (configure.ac): Remove gl_LONG_OPTIONS call.
52383         (Makefile.am): Augment lib_SOURCES.
52385 2011-05-23  Bruno Haible  <bruno@clisp.org>
52387         i-ring: Move AC_LIBOBJ invocations to module description.
52388         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
52389         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
52391 2011-05-23  Bruno Haible  <bruno@clisp.org>
52393         idcache: Move AC_LIBOBJ invocations to module description.
52394         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
52395         * modules/idcache (Makefile.am): Augment lib_SOURCES.
52397 2011-05-23  Bruno Haible  <bruno@clisp.org>
52399         human: Move AC_LIBOBJ invocations to module description.
52400         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
52401         * modules/human (Makefile.am): Augment lib_SOURCES.
52403 2011-05-23  Bruno Haible  <bruno@clisp.org>
52405         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
52406         * m4/hmac-sha1.m4: Remove file.
52407         * modules/crypto/hmac-sha1 (Files): Remove it.
52408         (configure.ac): Remove gl_HMAC_SHA1 call.
52409         (Makefile.am): Augment lib_SOURCES.
52411 2011-05-23  Bruno Haible  <bruno@clisp.org>
52413         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
52414         * m4/hmac-md5.m4: Remove file.
52415         * modules/crypto/hmac-md5 (Files): Remove it.
52416         (configure.ac): Remove gl_HMAC_MD5 call.
52417         (Makefile.am): Augment lib_SOURCES.
52419 2011-05-23  Bruno Haible  <bruno@clisp.org>
52421         hash: Move AC_LIBOBJ invocations to module description.
52422         * m4/hash.m4: Remove file.
52423         * modules/hash (Files): Remove it.
52424         (configure.ac): Remove gl_HASH call.
52425         (Makefile.am): Augment lib_SOURCES.
52427 2011-05-23  Bruno Haible  <bruno@clisp.org>
52429         hard-locale: Move AC_LIBOBJ invocations to module description.
52430         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
52431         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
52433 2011-05-23  Bruno Haible  <bruno@clisp.org>
52435         getugroups: Move AC_LIBOBJ invocations to module description.
52436         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
52437         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
52439 2011-05-23  Bruno Haible  <bruno@clisp.org>
52441         gettime: Move AC_LIBOBJ invocations to module description.
52442         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
52443         * modules/gettime (Makefile.am): Augment lib_SOURCES.
52445 2011-05-23  Bruno Haible  <bruno@clisp.org>
52447         getndelim2: Move AC_LIBOBJ invocations to module description.
52448         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
52449         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
52451 2011-05-23  Bruno Haible  <bruno@clisp.org>
52453         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
52454         * m4/gc-pbkdf2-sha1.m4: Remove file.
52455         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
52456         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
52457         (Makefile.am): Augment lib_SOURCES.
52459 2011-05-23  Bruno Haible  <bruno@clisp.org>
52461         fts: Move AC_LIBOBJ invocations to module description.
52462         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
52463         * modules/fts (configure.ac): ... to here.
52465 2011-05-23  Bruno Haible  <bruno@clisp.org>
52467         file-type: Move AC_LIBOBJ invocations to module description.
52468         * m4/file-type.m4: Remove file.
52469         * modules/file-type (Files): Remove it.
52470         (configure.ac): Remove gl_FILE_TYPE call.
52471         (Makefile.am): Augment lib_SOURCES.
52473 2011-05-23  Bruno Haible  <bruno@clisp.org>
52475         filenamecat*: Respect rules for use of AC_LIBOBJ.
52476         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
52477         Remove AC_LIBOBJ invocation.
52478         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
52479         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
52481 2011-05-23  Bruno Haible  <bruno@clisp.org>
52483         filemode: Move AC_LIBOBJ invocations to module description.
52484         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
52485         * modules/filemode (Makefile.am): Augment lib_SOURCES.
52487 2011-05-23  Bruno Haible  <bruno@clisp.org>
52489         openat-safer: Move AC_LIBOBJ invocations to module description.
52490         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
52491         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
52493 2011-05-23  Bruno Haible  <bruno@clisp.org>
52495         fcntl-safer: Move AC_LIBOBJ invocations to module description.
52496         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
52497         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
52499 2011-05-23  Bruno Haible  <bruno@clisp.org>
52501         exclude: Move AC_LIBOBJ invocations to module description.
52502         * m4/exclude.m4: Remove file.
52503         * modules/exclude (Files): Remove it.
52504         (configure.ac): Remove gl_EXCLUDE call.
52505         (Makefile.am): Augment lib_SOURCES.
52507 2011-05-23  Bruno Haible  <bruno@clisp.org>
52509         dirname*: Respect rules for use of AC_LIBOBJ.
52510         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
52511         invocations.
52512         * modules/dirname (Makefile.am): Augment lib_SOURCES.
52513         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
52515 2011-05-23  Bruno Haible  <bruno@clisp.org>
52517         dirent-safer: Move AC_LIBOBJ invocations to module description.
52518         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
52519         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
52521 2011-05-23  Bruno Haible  <bruno@clisp.org>
52523         crypto/des: Move AC_LIBOBJ invocations to module description.
52524         * m4/des.m4: Remove file.
52525         * modules/crypto/des (Files): Remove it.
52526         (configure.ac): Remove gl_DES call.
52527         (Makefile.am): Augment lib_SOURCES.
52529 2011-05-23  Bruno Haible  <bruno@clisp.org>
52531         cycle-check: Move AC_LIBOBJ invocations to module description.
52532         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
52533         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
52535 2011-05-23  Bruno Haible  <bruno@clisp.org>
52537         c-strtold: Move AC_LIBOBJ invocations to module description.
52538         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
52539         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
52541 2011-05-23  Bruno Haible  <bruno@clisp.org>
52543         c-strtod: Move AC_LIBOBJ invocations to module description.
52544         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
52545         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
52547 2011-05-23  Bruno Haible  <bruno@clisp.org>
52549         crc: Move AC_LIBOBJ invocations to module description.
52550         * m4/crc.m4: Remove file.
52551         * modules/crc (Files): Remove it.
52552         (configure.ac): Remove gl_CRC call.
52553         (Makefile.am): Augment lib_SOURCES.
52555 2011-05-23  Bruno Haible  <bruno@clisp.org>
52557         close-stream: Move AC_LIBOBJ invocations to module description.
52558         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
52559         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
52561 2011-05-23  Bruno Haible  <bruno@clisp.org>
52563         closeout: Move AC_LIBOBJ invocations to module description.
52564         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
52565         * modules/closeout (Makefile.am): Augment lib_SOURCES.
52567 2011-05-23  Bruno Haible  <bruno@clisp.org>
52569         closein: Move AC_LIBOBJ invocations to module description.
52570         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
52571         * modules/closein (Makefile.am): Augment lib_SOURCES.
52573 2011-05-23  Bruno Haible  <bruno@clisp.org>
52575         cloexec: Move AC_LIBOBJ invocations to module description.
52576         * m4/cloexec.m4: Remove file.
52577         * modules/cloexec (Files): Remove it.
52578         (configure.ac): Remove gl_CLOEXEC call.
52579         (Makefile.am): Augment lib_SOURCES.
52581 2011-05-23  Bruno Haible  <bruno@clisp.org>
52583         check-version: Move AC_LIBOBJ invocations to module description.
52584         * m4/check-version.m4: Remove file.
52585         * modules/check-version (Files): Remove it.
52586         (configure.ac): Remove gl_CHECK_VERSION call.
52587         (Makefile.am): Augment lib_SOURCES.
52589 2011-05-23  Bruno Haible  <bruno@clisp.org>
52591         chdir-safer: Move AC_LIBOBJ invocations to module description.
52592         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
52593         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
52595 2011-05-23  Bruno Haible  <bruno@clisp.org>
52597         canonicalize: Move AC_LIBOBJ invocations to module description.
52598         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
52599         AC_LIBOBJ invocation.
52600         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
52602 2011-05-23  Bruno Haible  <bruno@clisp.org>
52604         canon-host: Move AC_LIBOBJ invocations to module description.
52605         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
52606         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
52607         instead of gl_CANON_HOST.
52608         (Makefile.am): Augment lib_SOURCES.
52610 2011-05-23  Bruno Haible  <bruno@clisp.org>
52612         backupfile: Move AC_LIBOBJ invocations to module description.
52613         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
52614         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
52616 2011-05-23  Bruno Haible  <bruno@clisp.org>
52618         argmatch: Move AC_LIBOBJ invocations to module description.
52619         * m4/argmatch.m4: Remove file.
52620         * modules/argmatch (Files): Remove it.
52621         (configure.ac): Remove gl_ARGMATCH call.
52622         (Makefile.am): Augment lib_SOURCES.
52624 2011-05-23  Bruno Haible  <bruno@clisp.org>
52626         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
52627         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
52628         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
52630 2011-05-23  Bruno Haible  <bruno@clisp.org>
52632         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
52633         * m4/arcfour.m4: Remove file.
52634         * modules/crypto/arcfour (Files): Remove it.
52635         (configure.ac): Remove gl_ARCFOUR call.
52636         (Makefile.am): Augment lib_SOURCES.
52638 2011-05-22  Bruno Haible  <bruno@clisp.org>
52640         write: Move AC_LIBOBJ invocations to module description.
52641         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
52642         * modules/write (configure.ac): ... to here.
52644 2011-05-22  Bruno Haible  <bruno@clisp.org>
52646         wmemset: Move AC_LIBOBJ invocations to module description.
52647         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
52648         here...
52649         * modules/wmemset (configure.ac): ... to here.
52651 2011-05-22  Bruno Haible  <bruno@clisp.org>
52653         wmemmove: Move AC_LIBOBJ invocations to module description.
52654         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
52655         here...
52656         * modules/wmemmove (configure.ac): ... to here.
52658 2011-05-22  Bruno Haible  <bruno@clisp.org>
52660         wmemcpy: Move AC_LIBOBJ invocations to module description.
52661         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
52662         here...
52663         * modules/wmemcpy (configure.ac): ... to here.
52665 2011-05-22  Bruno Haible  <bruno@clisp.org>
52667         wmemcmp: Move AC_LIBOBJ invocations to module description.
52668         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
52669         here...
52670         * modules/wmemcmp (configure.ac): ... to here.
52672 2011-05-22  Bruno Haible  <bruno@clisp.org>
52674         wmemchr: Move AC_LIBOBJ invocations to module description.
52675         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
52676         here...
52677         * modules/wmemchr (configure.ac): ... to here.
52679 2011-05-22  Bruno Haible  <bruno@clisp.org>
52681         wcswidth: Move AC_LIBOBJ invocations to module description.
52682         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
52683         here...
52684         * modules/wcswidth (configure.ac): ... to here.
52686 2011-05-22  Bruno Haible  <bruno@clisp.org>
52688         wcwidth: Respect rules for use of AC_LIBOBJ.
52689         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
52690         invocation from here...
52691         * modules/wcwidth (configure.ac): ... to here.
52692         (Depends-on): Update conditions.
52694 2011-05-22  Bruno Haible  <bruno@clisp.org>
52696         wctype: Move AC_LIBOBJ invocations to module description.
52697         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
52698         invocation from here...
52699         * modules/wctype (configure.ac): ... to here.
52700         (Depends-on): Update conditions.
52702 2011-05-22  Bruno Haible  <bruno@clisp.org>
52704         wctrans: Move AC_LIBOBJ invocations to module description.
52705         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
52706         invocation from here...
52707         * modules/wctrans (configure.ac): ... to here.
52709 2011-05-22  Bruno Haible  <bruno@clisp.org>
52711         wctomb: Move AC_LIBOBJ invocations to module description.
52712         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
52713         invocations from here...
52714         * modules/wctomb (configure.ac): ... to here.
52716 2011-05-22  Bruno Haible  <bruno@clisp.org>
52718         wctob: Move AC_LIBOBJ invocations to module description.
52719         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
52720         gl_PREREQ_WCTOB invocations from here...
52721         * modules/wctob (configure.ac): ... to here.
52722         (Depends-on): Update conditions.
52724 2011-05-22  Bruno Haible  <bruno@clisp.org>
52726         wcsxfrm: Move AC_LIBOBJ invocations to module description.
52727         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
52728         here...
52729         * modules/wcsxfrm (configure.ac): ... to here.
52731 2011-05-22  Bruno Haible  <bruno@clisp.org>
52733         wcstok: Move AC_LIBOBJ invocations to module description.
52734         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
52735         * modules/wcstok (configure.ac): ... to here.
52737 2011-05-22  Bruno Haible  <bruno@clisp.org>
52739         wcsstr: Move AC_LIBOBJ invocations to module description.
52740         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
52741         * modules/wcsstr (configure.ac): ... to here.
52743 2011-05-22  Bruno Haible  <bruno@clisp.org>
52745         wcsspn: Move AC_LIBOBJ invocations to module description.
52746         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
52747         * modules/wcsspn (configure.ac): ... to here.
52749 2011-05-22  Bruno Haible  <bruno@clisp.org>
52751         wcsrtombs: Move AC_LIBOBJ invocations to module description.
52752         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
52753         gl_PREREQ_WCSRTOMBS invocations from here...
52754         * modules/wcsrtombs (configure.ac): ... to here.
52756 2011-05-22  Bruno Haible  <bruno@clisp.org>
52758         wcsrchr: Move AC_LIBOBJ invocations to module description.
52759         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
52760         here...
52761         * modules/wcsrchr (configure.ac): ... to here.
52763 2011-05-22  Bruno Haible  <bruno@clisp.org>
52765         wcspbrk: Move AC_LIBOBJ invocations to module description.
52766         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
52767         here...
52768         * modules/wcspbrk (configure.ac): ... to here.
52770 2011-05-22  Bruno Haible  <bruno@clisp.org>
52772         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
52773         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
52774         gl_PREREQ_WCSNRTOMBS invocations from here...
52775         * modules/wcsnrtombs (configure.ac): ... to here.
52777 2011-05-22  Bruno Haible  <bruno@clisp.org>
52779         wcsnlen: Move AC_LIBOBJ invocations to module description.
52780         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
52781         here...
52782         * modules/wcsnlen (configure.ac): ... to here.
52784 2011-05-22  Bruno Haible  <bruno@clisp.org>
52786         wcsncpy: Move AC_LIBOBJ invocations to module description.
52787         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
52788         here...
52789         * modules/wcsncpy (configure.ac): ... to here.
52791 2011-05-22  Bruno Haible  <bruno@clisp.org>
52793         wcsncmp: Move AC_LIBOBJ invocations to module description.
52794         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
52795         here...
52796         * modules/wcsncmp (configure.ac): ... to here.
52798 2011-05-22  Bruno Haible  <bruno@clisp.org>
52800         wcsncat: Move AC_LIBOBJ invocations to module description.
52801         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
52802         here...
52803         * modules/wcsncat (configure.ac): ... to here.
52805 2011-05-22  Bruno Haible  <bruno@clisp.org>
52807         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
52808         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
52809         from here...
52810         * modules/wcsncasecmp (configure.ac): ... to here.
52812 2011-05-22  Bruno Haible  <bruno@clisp.org>
52814         wcslen: Move AC_LIBOBJ invocations to module description.
52815         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
52816         * modules/wcslen (configure.ac): ... to here.
52818 2011-05-22  Bruno Haible  <bruno@clisp.org>
52820         wcsdup: Move AC_LIBOBJ invocations to module description.
52821         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
52822         * modules/wcsdup (configure.ac): ... to here.
52824 2011-05-22  Bruno Haible  <bruno@clisp.org>
52826         wcscspn: Move AC_LIBOBJ invocations to module description.
52827         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
52828         here...
52829         * modules/wcscspn (configure.ac): ... to here.
52831 2011-05-22  Bruno Haible  <bruno@clisp.org>
52833         wcscpy: Move AC_LIBOBJ invocations to module description.
52834         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
52835         * modules/wcscpy (configure.ac): ... to here.
52837 2011-05-22  Bruno Haible  <bruno@clisp.org>
52839         wcscoll: Move AC_LIBOBJ invocations to module description.
52840         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
52841         here...
52842         * modules/wcscoll (configure.ac): ... to here.
52844 2011-05-22  Bruno Haible  <bruno@clisp.org>
52846         wcscmp: Move AC_LIBOBJ invocations to module description.
52847         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
52848         * modules/wcscmp (configure.ac): ... to here.
52850 2011-05-22  Bruno Haible  <bruno@clisp.org>
52852         wcschr: Move AC_LIBOBJ invocations to module description.
52853         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
52854         * modules/wcschr (configure.ac): ... to here.
52856 2011-05-22  Bruno Haible  <bruno@clisp.org>
52858         wcscat: Move AC_LIBOBJ invocations to module description.
52859         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
52860         * modules/wcscat (configure.ac): ... to here.
52862 2011-05-22  Bruno Haible  <bruno@clisp.org>
52864         wcscasecmp: Move AC_LIBOBJ invocations to module description.
52865         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
52866         here...
52867         * modules/wcscasecmp (configure.ac): ... to here.
52869 2011-05-22  Bruno Haible  <bruno@clisp.org>
52871         wcrtomb: Move AC_LIBOBJ invocations to module description.
52872         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
52873         invocations from here...
52874         * modules/wcrtomb (configure.ac): ... to here.
52876 2011-05-22  Bruno Haible  <bruno@clisp.org>
52878         wcpncpy: Move AC_LIBOBJ invocations to module description.
52879         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
52880         here...
52881         * modules/wcpncpy (configure.ac): ... to here.
52883 2011-05-22  Bruno Haible  <bruno@clisp.org>
52885         wcpcpy: Move AC_LIBOBJ invocations to module description.
52886         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
52887         * modules/wcpcpy (configure.ac): ... to here.
52889 2011-05-22  Bruno Haible  <bruno@clisp.org>
52891         waitpid: Move AC_LIBOBJ invocations to module description.
52892         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
52893         invocation from here...
52894         * modules/waitpid (configure.ac): ... to here.
52896 2011-05-22  Bruno Haible  <bruno@clisp.org>
52898         utimensat: Move AC_LIBOBJ invocations to module description.
52899         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
52900         here...
52901         * modules/utimensat (configure.ac): ... to here.
52903 2011-05-22  Bruno Haible  <bruno@clisp.org>
52905         usleep: Move AC_LIBOBJ invocations to module description.
52906         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
52907         here...
52908         * modules/usleep (configure.ac): ... to here.
52910 2011-05-22  Bruno Haible  <bruno@clisp.org>
52912         unlockpt: Move AC_LIBOBJ invocations to module description.
52913         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
52914         gl_PREREQ_UNLOCKPT invocations from here...
52915         * modules/unlockpt (configure.ac): ... to here.
52917 2011-05-22  Bruno Haible  <bruno@clisp.org>
52919         unlink: Respect rules for use of AC_LIBOBJ.
52920         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
52921         * modules/unlink (configure.ac): ... to here.
52923 2011-05-22  Bruno Haible  <bruno@clisp.org>
52925         uname: Move AC_LIBOBJ invocations to module description.
52926         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
52927         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
52928         here...
52929         * modules/uname (configure.ac): ... to here.
52931 2011-05-22  Bruno Haible  <bruno@clisp.org>
52933         ttyname_r: Move AC_LIBOBJ invocations to module description.
52934         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
52935         gl_PREREQ_TTYNAME_R invocations from here...
52936         * modules/ttyname_r (configure.ac): ... to here.
52938 2011-05-22  Bruno Haible  <bruno@clisp.org>
52940         tsearch: Move AC_LIBOBJ invocations to module description.
52941         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
52942         invocations from here...
52943         * modules/tsearch (configure.ac): ... to here.
52945 2011-05-22  Bruno Haible  <bruno@clisp.org>
52947         towctrans: Move AC_LIBOBJ invocations to module description.
52948         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
52949         AC_LIBOBJ invocation from here...
52950         * modules/towctrans (configure.ac): ... to here.
52952 2011-05-22  Bruno Haible  <bruno@clisp.org>
52954         tmpfile: Move AC_LIBOBJ invocations to module description.
52955         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
52956         invocations from here...
52957         * modules/tmpfile (configure.ac): ... to here.
52959 2011-05-22  Bruno Haible  <bruno@clisp.org>
52961         times: Move AC_LIBOBJ invocations to module description.
52962         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
52963         * modules/times (configure.ac): ... to here.
52965 2011-05-22  Bruno Haible  <bruno@clisp.org>
52967         time_r: Move AC_LIBOBJ invocations to module description.
52968         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
52969         invocations from here...
52970         * modules/time_r (configure.ac): ... to here.
52972 2011-05-22  Bruno Haible  <bruno@clisp.org>
52974         timegm: Move AC_LIBOBJ invocations to module description.
52975         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
52976         invocations from here...
52977         * modules/timegm (configure.ac): ... to here.
52979 2011-05-22  Bruno Haible  <bruno@clisp.org>
52981         tcgetsid: Move AC_LIBOBJ invocations to module description.
52982         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
52983         and gl_PREREQ_TCGETSID invocations from here...
52984         * modules/tcgetsid (configure.ac): ... to here.
52985         (Depends-on): Update conditions.
52987 2011-05-22  Bruno Haible  <bruno@clisp.org>
52989         symlinkat: Move AC_LIBOBJ invocations to module description.
52990         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
52991         here...
52992         * modules/symlinkat (configure.ac): ... to here.
52994 2011-05-22  Bruno Haible  <bruno@clisp.org>
52996         symlink: Move AC_LIBOBJ invocations to module description.
52997         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
52998         here...
52999         * modules/symlink (configure.ac): ... to here.
53001 2011-05-22  Bruno Haible  <bruno@clisp.org>
53003         strverscmp: Move AC_LIBOBJ invocations to module description.
53004         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
53005         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
53006         from here...
53007         * modules/strverscmp (configure.ac): ... to here.
53009 2011-05-22  Bruno Haible  <bruno@clisp.org>
53011         strtok_r: Move AC_LIBOBJ invocations to module description.
53012         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
53013         and gl_PREREQ_STRTOK_R invocations from here...
53014         * modules/strtok_r (configure.ac): ... to here.
53015         (Depends-on): Update conditions.
53017 2011-05-22  Bruno Haible  <bruno@clisp.org>
53019         strtoumax: Move AC_LIBOBJ invocations to module description.
53020         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
53021         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
53022         from here...
53023         * modules/strtoumax (configure.ac): ... to here.
53025 2011-05-22  Bruno Haible  <bruno@clisp.org>
53027         strtoimax: Move AC_LIBOBJ invocations to module description.
53028         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
53029         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
53030         from here...
53031         * modules/strtoimax (configure.ac): ... to here.
53033 2011-05-22  Bruno Haible  <bruno@clisp.org>
53035         strtoull: Move AC_LIBOBJ invocations to module description.
53036         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
53037         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
53038         from here...
53039         * modules/strtoull (configure.ac): ... to here.
53041 2011-05-22  Bruno Haible  <bruno@clisp.org>
53043         strtoll: Move AC_LIBOBJ invocations to module description.
53044         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
53045         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
53046         here...
53047         * modules/strtoll (configure.ac): ... to here.
53049 2011-05-22  Bruno Haible  <bruno@clisp.org>
53051         strtoul: Move AC_LIBOBJ invocations to module description.
53052         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
53053         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53054         * modules/strtoul (configure.ac): ... to here.
53056 2011-05-22  Bruno Haible  <bruno@clisp.org>
53058         strtol: Move AC_LIBOBJ invocations to module description.
53059         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
53060         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
53061         * modules/strtol (configure.ac): ... to here.
53063 2011-05-22  Bruno Haible  <bruno@clisp.org>
53065         strtod: Move AC_LIBOBJ invocations to module description.
53066         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
53067         invocations from here...
53068         * modules/strtod (configure.ac): ... to here.
53070 2011-05-22  Bruno Haible  <bruno@clisp.org>
53072         strstr*: Move AC_LIBOBJ invocations to module description.
53073         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
53074         invocations from here...
53075         * modules/strstr-simple (configure.ac): ... to here.
53076         * modules/strstr (configure.ac): ... and here.
53078 2011-05-22  Bruno Haible  <bruno@clisp.org>
53080         strsignal: Move AC_LIBOBJ invocations to module description.
53081         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
53082         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
53083         * modules/strsignal (configure.ac): ... to here.
53084         (Depends-on): Update conditions.
53086 2011-05-22  Bruno Haible  <bruno@clisp.org>
53088         strsep: Move AC_LIBOBJ invocations to module description.
53089         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
53090         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
53091         here...
53092         * modules/strsep (configure.ac): ... to here.
53094 2011-05-22  Bruno Haible  <bruno@clisp.org>
53096         strptime: Move AC_LIBOBJ invocations to module description.
53097         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
53098         gl_PREREQ_STRPTIME invocations from here...
53099         * modules/strptime (configure.ac): ... to here.
53101 2011-05-22  Bruno Haible  <bruno@clisp.org>
53103         strpbrk: Move AC_LIBOBJ invocations to module description.
53104         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
53105         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
53106         here...
53107         * modules/strpbrk (configure.ac): ... to here.
53109 2011-05-22  Bruno Haible  <bruno@clisp.org>
53111         strnlen: Move AC_LIBOBJ invocations to module description.
53112         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
53113         invocations from here...
53114         * modules/strnlen (configure.ac): ... to here.
53116 2011-05-22  Bruno Haible  <bruno@clisp.org>
53118         strndup: Move AC_LIBOBJ invocations to module description.
53119         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
53120         invocations from here...
53121         * modules/strndup (configure.ac): ... to here.
53122         (Depends-on): Update conditions.
53124 2011-05-22  Bruno Haible  <bruno@clisp.org>
53126         strncat: Move AC_LIBOBJ invocations to module description.
53127         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
53128         invocations from here...
53129         * modules/strncat (configure.ac): ... to here.
53131 2011-05-22  Bruno Haible  <bruno@clisp.org>
53133         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
53134         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
53135         invocations from here...
53136         * modules/strdup (configure.ac): ... to here.
53137         * modules/strdup-posix (configure.ac): ... and here.
53139 2011-05-22  Bruno Haible  <bruno@clisp.org>
53141         strcspn: Move AC_LIBOBJ invocations to module description.
53142         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
53143         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
53144         here...
53145         * modules/strcspn (configure.ac): ... to here.
53147 2011-05-22  Bruno Haible  <bruno@clisp.org>
53149         strchrnul: Move AC_LIBOBJ invocations to module description.
53150         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
53151         gl_PREREQ_STRCHRNUL invocations from here...
53152         * modules/strchrnul (configure.ac): ... to here.
53154 2011-05-22  Bruno Haible  <bruno@clisp.org>
53156         strcasestr*: Move AC_LIBOBJ invocations to module description.
53157         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
53158         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
53159         * modules/strcasestr-simple (configure.ac): ... to here.
53160         * modules/strcasestr (configure.ac): ... and here.
53162 2011-05-22  Bruno Haible  <bruno@clisp.org>
53164         strcase: Move AC_LIBOBJ invocations to module description.
53165         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
53166         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
53167         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
53168         gl_PREREQ_STRNCASECMP invocations from here...
53169         * modules/strcase (configure.ac): ... to here.
53171 2011-05-22  Bruno Haible  <bruno@clisp.org>
53173         stpncpy: Move AC_LIBOBJ invocations to module description.
53174         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
53175         here...
53176         * modules/stpncpy (configure.ac): ... to here.
53178 2011-05-22  Bruno Haible  <bruno@clisp.org>
53180         stpcpy: Move AC_LIBOBJ invocations to module description.
53181         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
53182         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
53183         here...
53184         * modules/stpcpy (configure.ac): ... to here.
53186 2011-05-21  Bruno Haible  <bruno@clisp.org>
53188         stat: Move AC_LIBOBJ invocations to module description.
53189         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
53190         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
53191         here...
53192         * modules/stat (configure.ac): ... to here.
53194 2011-05-21  Bruno Haible  <bruno@clisp.org>
53196         sleep: Move AC_LIBOBJ invocations to module description.
53197         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
53198         * modules/sleep (configure.ac): ... to here.
53200 2011-05-21  Bruno Haible  <bruno@clisp.org>
53202         signbit: Move AC_LIBOBJ invocations to module description.
53203         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
53204         * modules/signbit (configure.ac): ... to here.
53206 2011-05-21  Bruno Haible  <bruno@clisp.org>
53208         sigprocmask: Move AC_LIBOBJ invocations to module description.
53209         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
53210         gl_PREREQ_SIGPROMASK invocations from here...
53211         * modules/sigprocmask (configure.ac): ... to here.
53213 2011-05-21  Bruno Haible  <bruno@clisp.org>
53215         sigaction: Move AC_LIBOBJ invocations to module description.
53216         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
53217         gl_PREREQ_SIGACTION invocations from here...
53218         * modules/sigaction (configure.ac): ... to here.
53220 2011-05-21  Bruno Haible  <bruno@clisp.org>
53222         sig2str: Move AC_LIBOBJ invocations to module description.
53223         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
53224         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
53225         here...
53226         * modules/sig2str (configure.ac): ... to here.
53228 2011-05-21  Bruno Haible  <bruno@clisp.org>
53230         setlocale: Move AC_LIBOBJ invocations to module description.
53231         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
53232         gl_PREREQ_SETLOCALE invocations from here...
53233         * modules/setlocale (configure.ac): ... to here.
53235 2011-05-21  Bruno Haible  <bruno@clisp.org>
53237         unsetenv: Move AC_LIBOBJ invocations to module description.
53238         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
53239         and gl_PREREQ_UNSETENV invocations from here...
53240         * modules/unsetenv (configure.ac): ... to here.
53241         (Depends-on): Update.
53243 2011-05-21  Bruno Haible  <bruno@clisp.org>
53245         setenv: Move AC_LIBOBJ invocations to module description.
53246         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
53247         here...
53248         * modules/setenv (configure.ac): ... to here.
53250 2011-05-21  Bruno Haible  <bruno@clisp.org>
53252         selinux-h: Move AC_LIBOBJ invocations to module description.
53253         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
53254         AC_LIBOBJ invocation from here...
53255         * modules/selinux-h (configure.ac): ... to here.
53257 2011-05-21  Bruno Haible  <bruno@clisp.org>
53259         select: Respect rules for use of AC_LIBOBJ.
53260         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
53261         here...
53262         * modules/select (configure.ac): ... to here.
53264 2011-05-21  Bruno Haible  <bruno@clisp.org>
53266         scandir: Move AC_LIBOBJ invocations to module description.
53267         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
53268         invocations from here...
53269         * modules/scandir (configure.ac): ... to here.
53271 2011-05-21  Bruno Haible  <bruno@clisp.org>
53273         rpmatch: Move AC_LIBOBJ invocations to module description.
53274         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
53275         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
53276         here...
53277         * modules/rpmatch (configure.ac): ... to here.
53279 2011-05-21  Bruno Haible  <bruno@clisp.org>
53281         rmdir: Respect rules for use of AC_LIBOBJ.
53282         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
53283         * modules/rmdir (configure.ac): ... to here.
53285 2011-05-21  Bruno Haible  <bruno@clisp.org>
53287         renameat: Move AC_LIBOBJ invocations to module description.
53288         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
53289         here...
53290         * modules/renameat (configure.ac): ... to here.
53292 2011-05-21  Bruno Haible  <bruno@clisp.org>
53294         rename: Respect rules for use of AC_LIBOBJ.
53295         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
53296         here...
53297         * modules/rename (configure.ac): ... to here.
53299 2011-05-21  Bruno Haible  <bruno@clisp.org>
53301         remove: Move AC_LIBOBJ invocations to module description.
53302         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
53303         here...
53304         * modules/remove (configure.ac): ... to here.
53306 2011-05-21  Bruno Haible  <bruno@clisp.org>
53308         relocatable-lib: Move AC_LIBOBJ invocations to module description.
53309         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
53310         macro.
53311         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
53312         * modules/relocatable-lib (configure.ac): ... to here.
53313         * modules/relocatable-prog-wrapper (configure.ac): Invoke
53314         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
53316 2011-05-21  Bruno Haible  <bruno@clisp.org>
53318         relocatable-prog: Move AC_LIBOBJ invocations to module description.
53319         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
53320         here...
53321         * modules/relocatable-prog (configure.ac): ... to here.
53323 2011-05-21  Bruno Haible  <bruno@clisp.org>
53325         regex: Move AC_LIBOBJ invocations to module description.
53326         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
53327         invocations from here...
53328         * modules/regex (configure.ac): ... to here.
53330 2011-05-21  Bruno Haible  <bruno@clisp.org>
53332         realloc-*: Move AC_LIBOBJ invocations to module description.
53333         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
53334         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
53335         AC_LIBOBJ invocations from here...
53336         * modules/realloc-gnu (configure.ac): ... to here.
53337         * modules/realloc-posix (configure.ac): ... and here.
53339 2011-05-21  Bruno Haible  <bruno@clisp.org>
53341         readutmp: Move AC_LIBOBJ invocations to module description.
53342         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
53343         * modules/readutmp (configure.ac): ... to here.
53345 2011-05-21  Bruno Haible  <bruno@clisp.org>
53347         readlinkat: Move AC_LIBOBJ invocations to module description.
53348         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
53349         here...
53350         * modules/readlinkat (configure.ac): ... to here.
53352 2011-05-21  Bruno Haible  <bruno@clisp.org>
53354         readlink: Move AC_LIBOBJ invocations to module description.
53355         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
53356         gl_PREREQ_READLINK invocations from here...
53357         * modules/readlink (configure.ac): ... to here.
53359 2011-05-21  Bruno Haible  <bruno@clisp.org>
53361         readline: Move AC_LIBOBJ invocations to module description.
53362         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
53363         gl_PREREQ_READLINE invocations from here...
53364         * modules/readline (configure.ac): ... to here.
53366 2011-05-21  Bruno Haible  <bruno@clisp.org>
53368         read: Move AC_LIBOBJ invocations to module description.
53369         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
53370         * modules/read (configure.ac): ... to here.
53372 2011-05-21  Bruno Haible  <bruno@clisp.org>
53374         rawmemchr: Move AC_LIBOBJ invocations to module description.
53375         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
53376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
53377         from here...
53378         * modules/rawmemchr (configure.ac): ... to here.
53380 2011-05-21  Bruno Haible  <bruno@clisp.org>
53382         random_r: Move AC_LIBOBJ invocations to module description.
53383         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
53384         gl_PREREQ_RANDOM_R invocations from here...
53385         * modules/random_r (configure.ac): ... to here.
53387 2011-05-21  Bruno Haible  <bruno@clisp.org>
53389         pwrite: Move AC_LIBOBJ invocations to module description.
53390         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
53391         * modules/pwrite (configure.ac): ... to here.
53393 2011-05-21  Bruno Haible  <bruno@clisp.org>
53395         putenv: Move AC_LIBOBJ invocations to module description.
53396         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
53397         * modules/putenv (configure.ac): ... to here.
53399 2011-05-21  Bruno Haible  <bruno@clisp.org>
53401         login_tty: Move AC_LIBOBJ invocations to module description.
53402         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
53403         * modules/login_tty (configure.ac): ... to here.
53405 2011-05-21  Bruno Haible  <bruno@clisp.org>
53407         openpty: Move AC_LIBOBJ invocations to module description.
53408         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
53409         * modules/openpty (configure.ac): ... to here.
53411 2011-05-21  Bruno Haible  <bruno@clisp.org>
53413         forkpty: Move AC_LIBOBJ invocations to module description.
53414         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
53415         * modules/forkpty (configure.ac): ... to here.
53417 2011-05-21  Bruno Haible  <bruno@clisp.org>
53419         ptsname: Move AC_LIBOBJ invocations to module description.
53420         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
53421         invocations from here...
53422         * modules/ptsname (configure.ac): ... to here.
53424 2011-05-21  Bruno Haible  <bruno@clisp.org>
53426         pread: Move AC_LIBOBJ invocations to module description.
53427         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
53428         * modules/pread (configure.ac): ... to here.
53430 2011-05-21  Bruno Haible  <bruno@clisp.org>
53432         posix_spawn*: Move AC_LIBOBJ invocations to module description.
53433         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
53434         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
53435         * modules/posix_spawn (configure.ac): ... to here.
53436         * modules/posix_spawnp (configure.ac): ... and here.
53438 2011-05-21  Bruno Haible  <bruno@clisp.org>
53440         popen: Move AC_LIBOBJ invocations to module description.
53441         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
53442         invocations from here...
53443         * modules/popen (configure.ac): ... to here.
53445 2011-05-21  Bruno Haible  <bruno@clisp.org>
53447         poll: Move AC_LIBOBJ invocations to module description.
53448         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
53449         invocations from here...
53450         * modules/poll (configure.ac): ... to here.
53452 2011-05-21  Bruno Haible  <bruno@clisp.org>
53454         pipe-posix: Move AC_LIBOBJ invocations to module description.
53455         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
53456         * modules/pipe-posix (configure.ac): ... to here.
53458 2011-05-21  Bruno Haible  <bruno@clisp.org>
53460         openat: Respect rules for use of AC_LIBOBJ.
53461         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
53462         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53463         * modules/openat (configure.ac): ... to here.
53465 2011-05-21  Bruno Haible  <bruno@clisp.org>
53467         obstack-printf*: Move AC_LIBOBJ invocations to module description.
53468         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
53469         invocation from here...
53470         * modules/obstack-printf (configure.ac): ... to here.
53471         * modules/obstack-printf-posix (configure.ac): ... and here.
53473 2011-05-21  Bruno Haible  <bruno@clisp.org>
53475         nl_langinfo: Move AC_LIBOBJ invocations to module description.
53476         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
53477         from here...
53478         * modules/nl_langinfo (configure.ac): ... to here.
53480 2011-05-21  Bruno Haible  <bruno@clisp.org>
53482         nanosleep: Move AC_LIBOBJ invocations to module description.
53483         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
53484         gl_PREREQ_NANOSLEEP invocations from here...
53485         * modules/nanosleep (configure.ac): ... to here.
53487 2011-05-21  Bruno Haible  <bruno@clisp.org>
53489         mountlist: Move AC_LIBOBJ invocations to module description.
53490         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
53491         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
53492         * modules/mountlist (configure.ac): ... to here.
53494 2011-05-21  Bruno Haible  <bruno@clisp.org>
53496         mktime: Respect rules for use of AC_LIBOBJ.
53497         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
53498         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
53499         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
53500         (gl_FUNC_MKTIME_INTERNAL): ... and here...
53501         * modules/mktime (configure.ac): ... to here.
53502         * modules/mktime-internal (configure.ac): ... and here.
53503         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
53505 2011-05-21  Bruno Haible  <bruno@clisp.org>
53507         mkstemps: Move AC_LIBOBJ invocations to module description.
53508         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
53509         here...
53510         * modules/mkstemps (configure.ac): ... to here.
53512 2011-05-21  Bruno Haible  <bruno@clisp.org>
53514         mkstemp: Move AC_LIBOBJ invocations to module description.
53515         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
53516         gl_PREREQ_MKSTEMP invocations from here...
53517         * modules/mkstemp (configure.ac): ... to here.
53519 2011-05-21  Bruno Haible  <bruno@clisp.org>
53521         mkostemps: Move AC_LIBOBJ invocations to module description.
53522         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
53523         here...
53524         * modules/mkostemps (configure.ac): ... to here.
53526 2011-05-21  Bruno Haible  <bruno@clisp.org>
53528         mkostemp: Move AC_LIBOBJ invocations to module description.
53529         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
53530         gl_PREREQ_MKOSTEMP invocations from here...
53531         * modules/mkostemp (configure.ac): ... to here.
53533 2011-05-21  Bruno Haible  <bruno@clisp.org>
53535         mknod: Move AC_LIBOBJ invocations to module description.
53536         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
53537         * modules/mknod (configure.ac): ... to here.
53539 2011-05-21  Bruno Haible  <bruno@clisp.org>
53541         mkfifoat: Move AC_LIBOBJ invocations to module description.
53542         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
53543         here...
53544         * modules/mkfifoat (configure.ac): ... to here.
53546 2011-05-21  Bruno Haible  <bruno@clisp.org>
53548         mkfifo: Respect rules for use of AC_LIBOBJ.
53549         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
53550         here...
53551         * modules/mkfifo (configure.ac): ... to here.
53553 2011-05-21  Bruno Haible  <bruno@clisp.org>
53555         mkdtemp: Move AC_LIBOBJ invocations to module description.
53556         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
53557         invocations from here...
53558         * modules/mkdtemp (configure.ac): ... to here.
53560 2011-05-21  Bruno Haible  <bruno@clisp.org>
53562         mkdir: Move AC_LIBOBJ invocations to module description.
53563         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
53564         * modules/mkdir (configure.ac): ... to here.
53566 2011-05-21  Bruno Haible  <bruno@clisp.org>
53568         memset: Move AC_LIBOBJ invocations to module description.
53569         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
53570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
53571         here...
53572         * modules/memset (configure.ac): ... to here.
53574 2011-05-21  Bruno Haible  <bruno@clisp.org>
53576         memrchr: Move AC_LIBOBJ invocations to module description.
53577         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
53578         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
53579         here...
53580         * modules/memrchr (configure.ac): ... to here.
53582 2011-05-21  Bruno Haible  <bruno@clisp.org>
53584         mempcpy: Move AC_LIBOBJ invocations to module description.
53585         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
53586         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
53587         here...
53588         * modules/mempcpy (configure.ac): ... to here.
53590 2011-05-21  Bruno Haible  <bruno@clisp.org>
53592         memmove: Move AC_LIBOBJ invocations to module description.
53593         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
53594         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
53595         here...
53596         * modules/memmove (configure.ac): ... to here.
53598 2011-05-21  Bruno Haible  <bruno@clisp.org>
53600         memmem*: Move AC_LIBOBJ invocations to module description.
53601         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
53602         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
53603         here...
53604         (gl_FUNC_MEMMEM): ... and here...
53605         * modules/memmem-simple (configure.ac): ... to here.
53606         * modules/memmem (configure.ac): ... and here.
53608 2011-05-21  Bruno Haible  <bruno@clisp.org>
53610         memcpy: Move AC_LIBOBJ invocations to module description.
53611         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
53612         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
53613         here...
53614         * modules/memcpy (configure.ac): ... to here.
53616 2011-05-21  Bruno Haible  <bruno@clisp.org>
53618         memcmp: Simplify autoconf macro.
53619         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
53620         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
53621         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
53623 2011-05-21  Bruno Haible  <bruno@clisp.org>
53625         memcmp: Move AC_LIBOBJ invocations to module description.
53626         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
53627         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
53628         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
53629         * modules/memcmp (configure.ac): ... to here.
53630         (Depends-on): Update conditions.
53632 2011-05-21  Bruno Haible  <bruno@clisp.org>
53634         memchr: Respect rules for use of AC_LIBOBJ.
53635         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
53636         invocations from here...
53637         * modules/memchr (configure.ac): ... to here.
53639 2011-05-21  Bruno Haible  <bruno@clisp.org>
53641         mbtowc: Move AC_LIBOBJ invocations to module description.
53642         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
53643         invocations from here...
53644         * modules/mbtowc (configure.ac): ... to here.
53646 2011-05-21  Bruno Haible  <bruno@clisp.org>
53648         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
53649         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
53650         gl_PREREQ_MBSRTOWCS invocations from here...
53651         * modules/mbsrtowcs (configure.ac): ... to here.
53653 2011-05-21  Bruno Haible  <bruno@clisp.org>
53655         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
53656         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
53657         gl_PREREQ_MBSNRTOWCS invocations from here...
53658         * modules/mbsnrtowcs (configure.ac): ... to here.
53660 2011-05-21  Bruno Haible  <bruno@clisp.org>
53662         mbsinit: Move AC_LIBOBJ invocations to module description.
53663         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
53664         invocations from here...
53665         * modules/mbsinit (configure.ac): ... to here.
53667 2011-05-21  Bruno Haible  <bruno@clisp.org>
53669         mbrlen: Move AC_LIBOBJ invocations to module description.
53670         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
53671         invocations from here...
53672         * modules/mbrlen (configure.ac): ... to here.
53674 2011-05-21  Bruno Haible  <bruno@clisp.org>
53676         mbrtowc: Respect rules for use of AC_LIBOBJ.
53677         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
53678         invocations from here...
53679         * modules/mbrtowc (configure.ac): ... to here.
53681 2011-05-21  Bruno Haible  <bruno@clisp.org>
53683         malloc-*: Move AC_LIBOBJ invocations to module description.
53684         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
53685         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
53686         AC_LIBOBJ invocations from here...
53687         * modules/malloc-gnu (configure.ac): ... to here.
53688         * modules/malloc-posix (configure.ac): ... and here.
53690 2011-05-21  Bruno Haible  <bruno@clisp.org>
53692         lstat, openat: Respect rules for use of AC_LIBOBJ.
53693         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
53694         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
53695         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
53696         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
53697         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
53698         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
53699         here.
53700         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
53702 2011-05-21  Bruno Haible  <bruno@clisp.org>
53704         lseek: Move AC_LIBOBJ invocations to module description.
53705         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
53706         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
53707         * modules/lseek (configure.ac): ... to here.
53709 2011-05-21  Bruno Haible  <bruno@clisp.org>
53711         linkat: Move AC_LIBOBJ invocations to module description.
53712         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
53713         here...
53714         * modules/linkat (configure.ac): ... to here.
53716 2011-05-21  Bruno Haible  <bruno@clisp.org>
53718         link: Respect rules for use of AC_LIBOBJ.
53719         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
53720         * modules/link (configure.ac): ... to here.
53722 2011-05-21  Bruno Haible  <bruno@clisp.org>
53724         lchown: Move AC_LIBOBJ invocations to module description.
53725         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
53726         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
53727         * modules/lchown (configure.ac): ... to here.
53729 2011-05-21  Bruno Haible  <bruno@clisp.org>
53731         iswctype: Move AC_LIBOBJ invocations to module description.
53732         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
53733         here...
53734         * modules/iswctype (configure.ac): ... to here.
53736 2011-05-21  Bruno Haible  <bruno@clisp.org>
53738         iswblank: Move AC_LIBOBJ invocations to module description.
53739         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
53740         here...
53741         * modules/iswblank (configure.ac): ... to here.
53743 2011-05-21  Bruno Haible  <bruno@clisp.org>
53745         atanl: Move AC_LIBOBJ invocations to module description.
53746         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
53747         * modules/atanl (configure.ac): ... to here.
53749 2011-05-21  Bruno Haible  <bruno@clisp.org>
53751         acosl: Move AC_LIBOBJ invocations to module description.
53752         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
53753         * modules/acosl (configure.ac): ... to here.
53755 2011-05-21  Bruno Haible  <bruno@clisp.org>
53757         asinl: Respect rules for use of AC_LIBOBJ.
53758         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
53759         * modules/asinl (configure.ac): ... to here.
53761 2011-05-21  Bruno Haible  <bruno@clisp.org>
53763         tanl: Move AC_LIBOBJ invocations to module description.
53764         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
53765         * modules/tanl (configure.ac): ... to here.
53767 2011-05-21  Bruno Haible  <bruno@clisp.org>
53769         cosl: Move AC_LIBOBJ invocations to module description.
53770         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
53771         * modules/cosl (configure.ac): ... to here.
53773 2011-05-21  Bruno Haible  <bruno@clisp.org>
53775         sinl: Move AC_LIBOBJ invocations to module description.
53776         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
53777         * modules/sinl (configure.ac): ... to here.
53779 2011-05-21  Bruno Haible  <bruno@clisp.org>
53781         logl: Move AC_LIBOBJ invocations to module description.
53782         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
53783         * modules/logl (configure.ac): ... to here.
53785 2011-05-21  Bruno Haible  <bruno@clisp.org>
53787         expl: Move AC_LIBOBJ invocations to module description.
53788         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
53789         * modules/expl (configure.ac): ... to here.
53791 2011-05-21  Bruno Haible  <bruno@clisp.org>
53793         roundl: Move AC_LIBOBJ invocations to module description.
53794         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
53795         * modules/roundl (configure.ac): ... to here.
53797 2011-05-21  Bruno Haible  <bruno@clisp.org>
53799         round: Move AC_LIBOBJ invocations to module description.
53800         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
53801         * modules/round (configure.ac): ... to here.
53803 2011-05-21  Bruno Haible  <bruno@clisp.org>
53805         roundf: Move AC_LIBOBJ invocations to module description.
53806         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
53807         * modules/roundf (configure.ac): ... to here.
53809 2011-05-21  Bruno Haible  <bruno@clisp.org>
53811         truncl: Move AC_LIBOBJ invocations to module description.
53812         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
53813         * modules/truncl (configure.ac): ... to here.
53815 2011-05-21  Bruno Haible  <bruno@clisp.org>
53817         trunc: Move AC_LIBOBJ invocations to module description.
53818         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
53819         * modules/trunc (configure.ac): ... to here.
53821 2011-05-21  Bruno Haible  <bruno@clisp.org>
53823         truncf: Move AC_LIBOBJ invocations to module description.
53824         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
53825         * modules/truncf (configure.ac): ... to here.
53827 2011-05-21  Bruno Haible  <bruno@clisp.org>
53829         ceill: Move AC_LIBOBJ invocations to module description.
53830         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
53831         * modules/ceill (configure.ac): ... to here.
53833 2011-05-21  Bruno Haible  <bruno@clisp.org>
53835         ceil: Move AC_LIBOBJ invocations to module description.
53836         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
53837         * modules/ceil (configure.ac): ... to here.
53839 2011-05-21  Bruno Haible  <bruno@clisp.org>
53841         ceilf: Move AC_LIBOBJ invocations to module description.
53842         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
53843         * modules/ceilf (configure.ac): ... to here.
53845 2011-05-21  Bruno Haible  <bruno@clisp.org>
53847         floorl: Respect rules for use of AC_LIBOBJ.
53848         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
53849         * modules/floorl (configure.ac): ... to here.
53851 2011-05-21  Bruno Haible  <bruno@clisp.org>
53853         floor: Respect rules for use of AC_LIBOBJ.
53854         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
53855         * modules/floor (configure.ac): ... to here.
53857 2011-05-21  Bruno Haible  <bruno@clisp.org>
53859         floorf: Move AC_LIBOBJ invocations to module description.
53860         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
53861         * modules/floorf (configure.ac): ... to here.
53863 2011-05-20  Bruno Haible  <bruno@clisp.org>
53865         sqrtl: Respect rules for use of AC_LIBOBJ.
53866         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
53867         * modules/sqrtl (configure.ac): ... to here.
53869 2011-05-20  Bruno Haible  <bruno@clisp.org>
53871         ldexpl: Respect rules for use of AC_LIBOBJ.
53872         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
53873         * modules/ldexpl (configure.ac): ... to here.
53875 2011-05-20  Bruno Haible  <bruno@clisp.org>
53877         frexpl*: Respect rules for use of AC_LIBOBJ.
53878         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
53879         invocation from here...
53880         * modules/frexpl (configure.ac): ... to here.
53881         * modules/frexpl-nolibm (configure.ac): ... and here.
53883 2011-05-20  Bruno Haible  <bruno@clisp.org>
53885         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
53886         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
53887         invocation from here...
53888         * modules/frexp (configure.ac): ... to here.
53889         * modules/frexp-nolibm (configure.ac): ... and here.
53891 2011-05-20  Bruno Haible  <bruno@clisp.org>
53893         isnan: Respect rules for use of AC_LIBOBJ.
53894         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
53895         invocations here.
53896         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
53897         REPLACE_ISNAN.
53898         * modules/isnand (configure.ac): Likewise.
53899         * modules/isnanl (configure.ac): Likewise.
53901 2011-05-20  Bruno Haible  <bruno@clisp.org>
53903         isnanl*: Respect rules for use of AC_LIBOBJ.
53904         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
53905         invocation from here...
53906         * modules/isnanl (configure.ac): ... to here.
53907         * modules/isnanl-nolibm (configure.ac): ... and here.
53909 2011-05-20  Bruno Haible  <bruno@clisp.org>
53911         isnand*: Move AC_LIBOBJ invocations to module description.
53912         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
53913         invocation from here...
53914         * modules/isnand (configure.ac): ... to here.
53915         * modules/isnand-nolibm (configure.ac): ... and here.
53917 2011-05-20  Bruno Haible  <bruno@clisp.org>
53919         isnanf*: Move AC_LIBOBJ invocations to module description.
53920         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
53921         invocation from here...
53922         * modules/isnanf (configure.ac): ... to here.
53923         * modules/isnanf-nolibm (configure.ac): ... and here.
53925 2011-05-20  Bruno Haible  <bruno@clisp.org>
53927         isnan*: Separate the AC_LIBOBJ invocations.
53928         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
53929         AC_LIBOBJ invocation.
53930         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
53931         here.
53932         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
53933         AC_LIBOBJ invocation.
53934         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
53935         here.
53936         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
53937         AC_LIBOBJ invocation.
53938         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
53939         here.
53940         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
53942 2011-05-08  Bruno Haible  <bruno@clisp.org>
53944         isinf: Move AC_LIBOBJ invocations to module description.
53945         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
53946         * modules/isinf (configure.ac): ... to here.
53948 2011-05-08  Bruno Haible  <bruno@clisp.org>
53950         isfinite: Move AC_LIBOBJ invocations to module description.
53951         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
53952         * modules/isfinite (configure.ac): ... to here.
53954 2011-05-08  Bruno Haible  <bruno@clisp.org>
53956         isblank: Move AC_LIBOBJ invocations to module description.
53957         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
53958         here...
53959         * modules/isblank (configure.ac): ... to here.
53961 2011-05-08  Bruno Haible  <bruno@clisp.org>
53963         isapipe: Move AC_LIBOBJ invocations to module description.
53964         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
53965         gl_PREREQ_ISAPIPE invocations from here...
53966         * modules/isapipe (configure.ac): ... to here.
53967         (Depends-on): Update condition.
53969 2011-05-08  Bruno Haible  <bruno@clisp.org>
53971         ioctl: Move AC_LIBOBJ invocations to module description.
53972         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
53973         invocations from here...
53974         * modules/ioctl (configure.ac): ... to here.
53975         (Depends-on): Update condition.
53977 2011-05-08  Bruno Haible  <bruno@clisp.org>
53979         imaxdiv: Move AC_LIBOBJ invocations to module description.
53980         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
53981         invocations from here...
53982         * modules/imaxdiv (configure.ac): ... to here.
53984 2011-05-08  Bruno Haible  <bruno@clisp.org>
53986         imaxabs: Move AC_LIBOBJ invocations to module description.
53987         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
53988         invocations from here...
53989         * modules/imaxabs (configure.ac): ... to here.
53991 2011-05-08  Bruno Haible  <bruno@clisp.org>
53993         getaddrinfo: Move AC_LIBOBJ invocations to module description.
53994         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
53995         AC_LIBOBJ invocations from here...
53996         * modules/getaddrinfo (configure.ac): ... to here.
53997         (Depends-on): Add conditions.
53999 2011-05-08  Bruno Haible  <bruno@clisp.org>
54001         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54002         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
54003         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54004         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
54005         (gl_PREREQ_INET_PTON): ... from here.
54006         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
54007         gl_PREREQ_INET_PTON here.
54008         (Depends-on): Update condition.
54010 2011-05-08  Bruno Haible  <bruno@clisp.org>
54012         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
54013         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
54014         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
54015         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
54016         (gl_PREREQ_INET_NTOP): ... from here.
54017         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
54018         gl_PREREQ_INET_NTOP here.
54019         (Depends-on): Update condition.
54021 2011-05-08  Bruno Haible  <bruno@clisp.org>
54023         iconv_open: Move AC_LIBOBJ invocations to module description.
54024         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
54025         AC_LIBOBJ invocations from here...
54026         * modules/iconv_open (configure.ac): ... to here.
54028 2011-05-08  Bruno Haible  <bruno@clisp.org>
54030         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
54031         If module 'iconv_open' is among the main modules and module
54032         'iconv_open-utf' is among the tests dependencies, then
54033         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
54034         return the special iconv_t values. Therefore iconv() and iconv_close()
54035         must support these special iconv_t values, already in lib, not only in
54036         tests.
54037         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
54038         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
54039         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
54040         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
54041         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
54042         (Depends-on): Add the dependencies of iconv_open-utf.
54043         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
54044         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
54045         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
54047 2011-05-08  Bruno Haible  <bruno@clisp.org>
54049         group-member: Move AC_LIBOBJ invocations to module description.
54050         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
54051         gl_PREREQ_GROUP_MEMBER invocations from here...
54052         * modules/group-member (configure.ac): ... to here.
54054 2011-05-08  Bruno Haible  <bruno@clisp.org>
54056         grantpt: Move AC_LIBOBJ invocations to module description.
54057         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
54058         invocations from here...
54059         * modules/grantpt (configure.ac): ... to here.
54061 2011-05-08  Bruno Haible  <bruno@clisp.org>
54063         glob: Move AC_LIBOBJ invocations to module description.
54064         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
54065         from here...
54066         * modules/glob (configure.ac): ... to here.
54068 2011-05-08  Bruno Haible  <bruno@clisp.org>
54070         getusershell: Move AC_LIBOBJ invocations to module description.
54071         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
54072         Move AC_LIBOBJ invocation from here...
54073         * modules/getusershell (configure.ac): ... to here.
54074         (Depends-on): Update condition.
54076 2011-05-08  Bruno Haible  <bruno@clisp.org>
54078         gettimeofday: Move AC_LIBOBJ invocations to module description.
54079         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
54080         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
54081         gl_PREREQ_GETTIMEOFDAY invocations from here...
54082         * modules/gettimeofday (configure.ac): ... to here.
54084 2011-05-08  Bruno Haible  <bruno@clisp.org>
54086         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
54087         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
54088         just gl_FUNC_TZSET.
54089         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
54090         (gl_FUNC_TZSET_CLOBBER): Remove actions.
54091         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
54092         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
54094 2011-05-08  Bruno Haible  <bruno@clisp.org>
54096         getsubopt: Move AC_LIBOBJ invocations to module description.
54097         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
54098         gl_PREREQ_GETSUBOPT invocations from here...
54099         * modules/getsubopt (configure.ac): ... to here.
54101 2011-05-08  Bruno Haible  <bruno@clisp.org>
54103         getpass-gnu: Move AC_LIBOBJ invocations to module description.
54104         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
54105         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
54106         * modules/getpass-gnu (configure.ac): ... to here.
54108 2011-05-08  Bruno Haible  <bruno@clisp.org>
54110         getpass: Move AC_LIBOBJ invocations to module description.
54111         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
54112         gl_PREREQ_GETPASS invocations from here...
54113         * modules/getpass (configure.ac): ... to here.
54115 2011-05-08  Bruno Haible  <bruno@clisp.org>
54117         getpagesize: Move AC_LIBOBJ invocations to module description.
54118         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
54119         from here...
54120         * modules/getpagesize (configure.ac): ... to here.
54122 2011-05-08  Bruno Haible  <bruno@clisp.org>
54124         getopt: Move AC_LIBOBJ invocations to module description.
54125         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
54126         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
54127         invocations from here...
54128         * modules/getopt-gnu (configure.ac): ... to here.
54129         * modules/getopt-posix (configure.ac): ... and here.
54130         (Depends-on): Update condition.
54132 2011-05-08  Bruno Haible  <bruno@clisp.org>
54134         getopt, argp: Respect rules for use of AC_LIBOBJ.
54135         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
54136         (gl_REPLACE_GETOPT_ALWAYS): New macro.
54137         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
54138         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
54140 2011-05-08  Bruno Haible  <bruno@clisp.org>
54142         getlogin_r: Move AC_LIBOBJ invocations to module description.
54143         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
54144         gl_PREREQ_GETLOGIN_R invocations from here...
54145         * modules/getlogin_r (configure.ac): ... to here.
54147 2011-05-08  Bruno Haible  <bruno@clisp.org>
54149         getlogin: Move AC_LIBOBJ invocations to module description.
54150         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
54151         here...
54152         * modules/getlogin (configure.ac): ... to here.
54154 2011-05-08  Bruno Haible  <bruno@clisp.org>
54156         getloadavg: Move AC_LIBOBJ invocations to module description.
54157         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
54158         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
54159         * modules/getloadavg (configure.ac): ... to here.
54161 2011-05-08  Bruno Haible  <bruno@clisp.org>
54163         gethrxtime: Move AC_LIBOBJ invocations to module description.
54164         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
54165         LIB_GETHRXTIME from here...
54166         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
54167         invocations from here...
54168         * modules/gethrxtime (configure.ac): ... to here.
54170 2011-05-08  Bruno Haible  <bruno@clisp.org>
54172         gethostname: Move AC_LIBOBJ invocations to module description.
54173         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
54174         gl_PREREQ_GETHOSTNAME invocations from here...
54175         * modules/gethostname (configure.ac): ... to here.
54177 2011-05-08  Bruno Haible  <bruno@clisp.org>
54179         getgroups: Move AC_LIBOBJ invocations to module description.
54180         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
54181         here...
54182         * modules/getgroups (configure.ac): ... to here.
54184 2011-05-08  Bruno Haible  <bruno@clisp.org>
54186         getdtablesize: Move AC_LIBOBJ invocations to module description.
54187         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
54188         invocation from here...
54189         * modules/getdtablesize (configure.ac): ... to here.
54191 2011-05-08  Bruno Haible  <bruno@clisp.org>
54193         getdomainname: Move AC_LIBOBJ invocations to module description.
54194         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
54195         gl_PREREQ_GETDOMAINNAME invocations from here...
54196         * modules/getdomainname (configure.ac): ... to here.
54198 2011-05-08  Bruno Haible  <bruno@clisp.org>
54200         getline: Move AC_LIBOBJ invocations to module description.
54201         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
54202         invocations from here...
54203         * modules/getline (configure.ac): ... to here.
54205 2011-05-08  Bruno Haible  <bruno@clisp.org>
54207         getline: Simplify.
54208         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
54209         It's already handled through the module dependency.
54211 2011-05-08  Bruno Haible  <bruno@clisp.org>
54213         getdelim: Move AC_LIBOBJ invocations to module description.
54214         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
54215         and gl_PREREQ_GETDELIM invocations from here...
54216         * modules/getdelim (configure.ac): ... to here.
54217         (Depends-on): Fix condition.
54219 2011-05-08  Bruno Haible  <bruno@clisp.org>
54221         getcwd: Move AC_LIBOBJ invocations to module description.
54222         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
54223         invocations from here...
54224         * modules/getcwd (configure.ac): ... to here.
54226 2011-05-08  Bruno Haible  <bruno@clisp.org>
54228         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
54229         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
54230         here...
54231         * modules/getcwd-lgpl (configure.ac): ... to here.
54233 2011-05-07  Bruno Haible  <bruno@clisp.org>
54235         crypto/gc: Move AC_LIBOBJ invocations to module description.
54236         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
54237         * modules/crypto/gc (configure.ac): ... to here.
54239 2011-05-07  Bruno Haible  <bruno@clisp.org>
54241         fwriting: Move AC_LIBOBJ invocations to module description.
54242         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
54243         here...
54244         * modules/fwriting (configure.ac): ... to here.
54246 2011-05-07  Bruno Haible  <bruno@clisp.org>
54248         fwritable: Move AC_LIBOBJ invocations to module description.
54249         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
54250         here...
54251         * modules/fwritable (configure.ac): ... to here.
54253 2011-05-07  Bruno Haible  <bruno@clisp.org>
54255         futimens: Move AC_LIBOBJ invocations to module description.
54256         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
54257         here...
54258         * modules/futimens (configure.ac): ... to here.
54260 2011-05-07  Bruno Haible  <bruno@clisp.org>
54262         ftruncate: Move AC_LIBOBJ invocations to module description.
54263         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
54264         gl_PREREQ_FTRUNCATE invocations from here...
54265         * modules/ftruncate (configure.ac): ... to here.
54267 2011-05-07  Bruno Haible  <bruno@clisp.org>
54269         fsync: Move AC_LIBOBJ invocations to module description.
54270         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
54271         invocations from here...
54272         * modules/fsync (configure.ac): ... to here.
54274 2011-05-07  Bruno Haible  <bruno@clisp.org>
54276         fsusage: Move AC_LIBOBJ invocations to module description.
54277         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
54278         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
54279         * modules/fsusage (configure.ac): ... to here.
54281 2011-05-07  Bruno Haible  <bruno@clisp.org>
54283         freopen: Move AC_LIBOBJ invocations to module description.
54284         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
54285         invocations from here...
54286         * modules/freopen (configure.ac): ... to here.
54288 2011-05-07  Bruno Haible  <bruno@clisp.org>
54290         free: Move AC_LIBOBJ invocations to module description.
54291         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
54292         invocations from here...
54293         * modules/free (configure.ac): ... to here.
54295 2011-05-07  Bruno Haible  <bruno@clisp.org>
54297         freadable: Move AC_LIBOBJ invocations to module description.
54298         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
54299         here...
54300         * modules/freadable (configure.ac): ... to here.
54302 2011-05-07  Bruno Haible  <bruno@clisp.org>
54304         fpurge: Move AC_LIBOBJ invocations to module description.
54305         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
54306         invocations from here...
54307         * modules/fpurge (configure.ac): ... to here.
54309 2011-05-07  Bruno Haible  <bruno@clisp.org>
54311         fpending: Move AC_LIBOBJ invocations to module description.
54312         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
54313         gl_FUNC_FPENDING.
54314         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
54315         invocations from here...
54316         * modules/fpending (configure.ac): ... to here.
54318 2011-05-07  Bruno Haible  <bruno@clisp.org>
54320         fopen: Move AC_LIBOBJ invocations to module description.
54321         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
54322         invocations from here...
54323         * modules/fopen (configure.ac): ... to here.
54325 2011-05-07  Bruno Haible  <bruno@clisp.org>
54327         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
54328         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
54329         gl_FUNC_FNMATCH_POSIX.
54330         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
54331         invocations from here...
54332         * modules/fnmatch (configure.ac): ... to here.
54333         * modules/fnmatch-gnu (configure.ac): ... and here.
54335 2011-05-07  Bruno Haible  <bruno@clisp.org>
54337         flock: Move AC_LIBOBJ invocations to module description.
54338         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
54339         invocations from here...
54340         * modules/flock (configure.ac): ... to here.
54342 2011-05-07  Bruno Haible  <bruno@clisp.org>
54344         fileblocks: Move AC_LIBOBJ invocations to module description.
54345         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
54346         gl_PREREQ_FILEBLOCKS invocations from here...
54347         * modules/fileblocks (configure.ac): ... to here.
54349 2011-05-06  Bruno Haible  <bruno@clisp.org>
54351         fflush: Move AC_LIBOBJ invocations to module description.
54352         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
54353         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
54354         invocations from here...
54355         * modules/fflush (configure.ac): ... to here.
54357 2011-05-06  Bruno Haible  <bruno@clisp.org>
54359         fdopendir: Move AC_LIBOBJ invocations to module description.
54360         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
54361         here...
54362         * modules/fdopendir (configure.ac): ... to here.
54363         (Depends-on): Improve conditions.
54365 2011-05-06  Bruno Haible  <bruno@clisp.org>
54367         _Exit: Move AC_LIBOBJ invocations to module description.
54368         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
54369         invocations from here...
54370         * modules/_Exit (configure.ac): ... to here.
54372 2011-05-21  Bruno Haible  <bruno@clisp.org>
54374         euidaccess: Respect rules for use of AC_LIBOBJ.
54375         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
54376         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
54377         from here...
54378         * modules/euidaccess (configure.ac): ... to here.
54380 2011-05-06  Bruno Haible  <bruno@clisp.org>
54382         error: Move AC_LIBOBJ invocations to module description.
54383         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
54384         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
54385         invocations from here...
54386         * modules/error (configure.ac): ... to here.
54388 2011-05-06  Bruno Haible  <bruno@clisp.org>
54390         duplocale: Move AC_LIBOBJ invocations to module description.
54391         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
54392         gl_PREREQ_DUPLOCALE invocations from here...
54393         * modules/duplocale (configure.ac): ... to here.
54395 2011-05-05  Bruno Haible  <bruno@clisp.org>
54397         dirfd: Move AC_LIBOBJ invocations to module description.
54398         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
54399         gl_FUNC_DIRFD.
54400         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
54401         here...
54402         * modules/dirfd (configure.ac): ... to here.
54403         (Depends-on): Fix condition.
54405 2011-05-05  Bruno Haible  <bruno@clisp.org>
54407         chown: Respect rules for use of AC_LIBOBJ.
54408         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
54409         * modules/chown (configure.ac): ... to here.
54411 2011-05-05  Bruno Haible  <bruno@clisp.org>
54413         chdir-long: Move AC_LIBOBJ invocations to module description.
54414         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
54415         gl_PREREQ_CHDIR_LONG invocations from here...
54416         * modules/chdir-long (configure.ac): ... to here.
54418 2011-05-05  Bruno Haible  <bruno@clisp.org>
54420         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
54421         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
54422         from here...
54423         * modules/canonicalize-lgpl (configure.ac): ... to here.
54425 2011-05-05  Bruno Haible  <bruno@clisp.org>
54427         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
54428         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
54429         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
54430         REPLACE_CALLOC.
54431         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
54432         * modules/calloc-gnu (configure.ac): Likewise.
54434 2011-05-05  Bruno Haible  <bruno@clisp.org>
54436         btowc: Move AC_LIBOBJ invocations to module description.
54437         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
54438         invocations from here...
54439         * modules/btowc (configure.ac): ... to here.
54441 2011-05-21  Bruno Haible  <bruno@clisp.org>
54443         atexit: Move AC_LIBOBJ invocations to module description.
54444         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
54445         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
54446         here...
54447         * modules/atexit (configure.ac): ... to here.
54449 2011-05-05  Bruno Haible  <bruno@clisp.org>
54451         atoll: Move AC_LIBOBJ invocations to module description.
54452         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
54453         invocations from here...
54454         * modules/atoll (configure.ac): ... to here.
54456 2011-05-05  Bruno Haible  <bruno@clisp.org>
54458         argz: Move AC_LIBOBJ invocations to module description.
54459         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
54460         * modules/argz (configure.ac): ... to here.
54462 2011-05-05  Bruno Haible  <bruno@clisp.org>
54464         alphasort: Move AC_LIBOBJ invocations to module description.
54465         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
54466         gl_PREREQ_ALPHASORT invocations from here...
54467         * modules/alphasort (configure.ac): ... to here.
54469 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
54471         verify: new macro verify_expr; verify_true deprecated
54472         * NEWS: Mention this.
54473         * doc/verify.texi (Compile-time Assertions): Document this.
54474         * lib/verify.h (verify_true): Deprecate.
54475         (verify_expr): New macro.
54476         * tests/test-verify.c (function): Test verify_expr.
54478 2011-06-14  Jim Meyering  <meyering@redhat.com>
54480         init.sh: give more portable redirection-related advice in a comment
54481         * tests/init.sh (stderr_fileno_): Update the advice in comments.
54482         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
54483         for lots of discussion.  Stefano Lattarini suggested the solution
54484         of putting "9>&2" after the command.  Reported by Bruno Haible.
54486 2011-06-13  Bruno Haible  <bruno@clisp.org>
54488         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
54489         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
54490         'none'.
54492 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
54494         ftoastr: use strtof only if HAVE_STRTOF
54495         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
54496         <http://lists.gnu.org/r/bug-gnulib/2011-06/msg00154.html>.
54497         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
54498         * modules/ftoastr (configure.ac): Check for strtof.
54500 2011-06-13  Bruno Haible  <bruno@clisp.org>
54502         gnulib-tool: Addendum to 2011-06-08 commit.
54503         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
54504         and --witness-c-macro have been given, augment AM_CPPFLAGS.
54506 2011-06-13  Bruno Haible  <bruno@clisp.org>
54508         fseeko: Provide a non-inline replacement of fseek().
54509         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
54510         * modules/fseeko (Depends-on): Add fseek.
54511         * modules/fseek (License): Change to LGPLv2+.
54513 2011-06-13  Bruno Haible  <bruno@clisp.org>
54515         ftello: Provide a non-inline replacement of ftell().
54516         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
54517         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
54518         not have ftello() (such as on mingw).
54519         * modules/ftello (Depends-on): Add ftell.
54520         * modules/ftell (License): Change to LGPLv2+.
54522 2011-05-07  Bruno Haible  <bruno@clisp.org>
54524         ftell: Move AC_LIBOBJ invocations to module description.
54525         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
54526         * modules/ftell (configure.ac): ... to here.
54528 2011-05-07  Bruno Haible  <bruno@clisp.org>
54530         ftello: Respect rules for use of AC_LIBOBJ.
54531         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
54532         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
54533         here...
54534         * modules/ftello (configure.ac): ... to here.
54536 2011-05-07  Bruno Haible  <bruno@clisp.org>
54538         fseeko: Simplify.
54539         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
54540         (gl_FUNC_FSEEKO): Inline it here.
54542 2011-05-07  Bruno Haible  <bruno@clisp.org>
54544         fseek: Move AC_LIBOBJ invocations to module description.
54545         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
54546         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
54547         * modules/fseek (configure.ac): ... to here.
54549 2011-05-07  Bruno Haible  <bruno@clisp.org>
54551         fseek: Respect rules for use of AC_LIBOBJ.
54552         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
54553         here...
54554         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
54556 2011-05-07  Bruno Haible  <bruno@clisp.org>
54558         fseeko: Respect rules for use of AC_LIBOBJ.
54559         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
54560         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
54561         here...
54562         * modules/fseeko (configure.ac): ... to here.
54564 2011-06-13  Bruno Haible  <bruno@clisp.org>
54566         gnulib-tool: Allow comments in the 'Depends-on' section.
54567         * doc/gnulib.texi (Module description): Mention comment syntax in the
54568         Depends-on section.
54569         * gnulib-tool (func_get_dependencies): Filter out comment lines.
54571 2011-06-13  Bruno Haible  <bruno@clisp.org>
54573         file-set.h: guard __attibute__ use, now that it's not always defined
54574         * lib/file-set.h (record_file): Use __attribute__ only with compiler
54575         versions that support it.  This fixes a coreutils build failure with
54576         the vendor cc on HP-UX 11.31.
54578 2011-06-12  Bruno Haible  <bruno@clisp.org>
54580         acl: Add support for HP-UX >= 11.11 JFS ACLs.
54581         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
54582         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
54583         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
54584         (acl, aclsort): New declarations.
54585         (aclv_nontrivial): New declaration.
54586         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
54587         (file_has_acl): Read also the second kind of HP-UX ACLs.
54588         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
54589         kind of HP-UX ACLs if the first kind fails.
54590         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
54591         second kind of HP-UX ACLs.
54592         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
54593         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
54594         agree.
54595         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54596         hpuxjfs.
54597         Handle hpuxjfs.
54598         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
54599         hpuxjfs.
54600         Handle hpuxjfs.
54601         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54602         (func_test_same_acls): Use both lsacl and getacl.
54603         Handle hpuxjfs.
54604         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
54605         (func_test_same_acls): Use both lsacl and getacl.
54606         Handle hpuxjfs.
54608 2011-06-12  Bruno Haible  <bruno@clisp.org>
54610         acl: Complete the 2010-08-10 fix.
54611         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
54612         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
54613         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
54614         explicitly.
54615         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
54616         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
54618 2011-06-12  Bruno Haible  <bruno@clisp.org>
54620         spawn-pipe tests: Comments.
54621         * tests/test-spawn-pipe-child.c (main): Update comment.
54622         Reported by James Youngman <jay@gnu.org>.
54624 2011-06-11  James Youngman  <jay@gnu.org>
54626         New module 'stat-size'.
54627         * modules/stat-size: New module.  Provides macros for accessing
54628         file size information in instances of struct stat.  Depends on the
54629         fileblocks module because it calls st_blocks.
54630         * lib/stat-size.h: New file, adapted from coreutils' system.h.
54631         * doc/gnulib.texi: Include stat-size.texi.
54632         * doc/stat-size.texi: Documentation for this module.
54633         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
54634         * m4/fileblocks.m4: Mention that stat-size depends on the call to
54635         AC_STRUCT_ST_BLOCKS.
54637 2011-06-09  Bruno Haible  <bruno@clisp.org>
54639         thread: Support pthreads-win32.
54640         * lib/glthread/thread.h (gl_thread_self): Define differently on
54641         pthreads-win32.
54642         (gl_null_thread): New declaration.
54643         (gl_thread_self_pointer): New macro.
54644         * lib/glthread/thread.c (gl_null_thread): New constant.
54645         * tests/test-lock.c: Use gl_thread_self_pointer instead of
54646         gl_thread_self.
54647         * tests/test-tls.c: Likewise.
54648         Suggested by Paul Eggert. Reported by Eric Blake.
54650 2011-06-09  Bruno Haible  <bruno@clisp.org>
54652         thread: Fix confusion between NULL and 0.
54653         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
54654         Reported by Paul Eggert.
54656 2011-06-09  Bruno Haible  <bruno@clisp.org>
54658         spawn-pipe tests: Avoid test failure on HP-UX 11.
54659         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
54660         is closed.
54662 2011-06-09  Bruno Haible  <bruno@clisp.org>
54664         acl tests: Fix compilation error on HP-UX 11.
54665         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
54667 2011-06-09  Bruno Haible  <bruno@clisp.org>
54669         rmdir: Avoid test failure on HP-UX 10.20.
54670         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
54671         EEXIST.
54673 2011-06-08  Eric Blake  <eblake@redhat.com>
54675         perror: fix test on mingw
54676         * modules/perror-tests (Depends-on): Add dup2.
54678         strerror_r-posix: fix on MacOS
54679         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
54680         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
54681         logic bug.
54682         * lib/strerror_r.c (strerror_r): Fix the bug.
54683         * lib/strerror.c (strerror): Likewise.
54684         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
54685         problem.
54686         * doc/posix-functions/strerror.texi (strerror): Likewise.
54687         * doc/posix-functions/perror.texi (perror): Likewise.
54688         * tests/test-strerror.c (main): Enhance test.
54689         * tests/test-strerror_r.c (main): Likewise.
54691 2011-06-08  Bruno Haible  <bruno@clisp.org>
54693         gnulib-tool: Better isolation between different gnulib-tool invocations.
54694         * gnulib-tool: New option --witness-c-macro.
54695         (witness_c_macro): New variable.
54696         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
54697         AM_CPPFLAGS define it as a C macro.
54698         (func_emit_tests_Makefile_am): Likewise.
54699         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
54700         read it from there.
54701         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
54702         m4_define, not AC_DEFUN.
54703         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
54704         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
54705         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
54706         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
54707         s|...|...|, to substitute the values of the GNULIB_* module indicator
54708         variables.
54709         * modules/dirent (Makefile.am): Likewise.
54710         * modules/fcntl-h (Makefile.am): Likewise.
54711         * modules/iconv-h (Makefile.am): Likewise.
54712         * modules/langinfo (Makefile.am): Likewise.
54713         * modules/locale (Makefile.am): Likewise.
54714         * modules/math (Makefile.am): Likewise.
54715         * modules/netdb (Makefile.am): Likewise.
54716         * modules/poll-h (Makefile.am): Likewise.
54717         * modules/pty (Makefile.am): Likewise.
54718         * modules/search (Makefile.am): Likewise.
54719         * modules/signal (Makefile.am): Likewise.
54720         * modules/spawn (Makefile.am): Likewise.
54721         * modules/stdio (Makefile.am): Likewise.
54722         * modules/stdlib (Makefile.am): Likewise.
54723         * modules/string (Makefile.am): Likewise.
54724         * modules/sys_ioctl (Makefile.am): Likewise.
54725         * modules/sys_select (Makefile.am): Likewise.
54726         * modules/sys_socket (Makefile.am): Likewise.
54727         * modules/sys_stat (Makefile.am): Likewise.
54728         * modules/sys_times (Makefile.am): Likewise.
54729         * modules/sys_utsname (Makefile.am): Likewise.
54730         * modules/sys_wait (Makefile.am): Likewise.
54731         * modules/termios (Makefile.am): Likewise.
54732         * modules/time (Makefile.am): Likewise.
54733         * modules/unistd (Makefile.am): Likewise.
54734         * modules/wchar (Makefile.am): Likewise.
54736 2011-06-08  Eric Blake  <eblake@redhat.com>
54738         strerror: simplify replacement
54739         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
54740         * modules/strerror (configure.ac): No prereqs needed here...
54741         * modules/strerror-override (configure.ac): ...but this needs it.
54742         (Files): Add file for needed prereq macro.
54744 2011-06-08  Bruno Haible  <bruno@clisp.org>
54746         strerror_r-posix: Tweaks.
54747         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
54748         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
54749         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
54750         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
54751         (gl_FUNC_STRERROR_R): ... to here.
54752         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
54754 2011-06-07  Eric Blake  <eblake@redhat.com>
54756         perror: document fixed bugs
54757         * doc/posix-functions/perror.texi (perror): Document recent
54758         patches.
54760 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
54762         stat-time: get_stat_birthtime failure is better-defined
54763         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
54764         return a timestamp whose tv_sec and tv_nsec values are both -1.
54765         Previously, the spec said only that the tv_nsec value was negative.
54766         This upward-compatible change simplifies GNU tar a bit.
54768 2011-06-07  Eric Blake  <eblake@redhat.com>
54770         strerror_r-posix: work around cygwin 1.7.9
54771         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
54772         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
54773         bug without replacing strerror_r.
54774         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
54775         strerror_r is buggy, but without requiring strerror_r compilation.
54776         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
54778         test-perror: relax test to ignore cygwin bug
54779         * tests/test-perror2.c (main): Relax test on requiring detection
54780         of stream errors, and use unbuffered stream.
54781         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
54782         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
54783         * doc/posix-functions/fputc.texi (fputc): Likewise.
54784         * doc/posix-functions/fputs.texi (fputs): Likewise.
54785         * doc/posix-functions/fputws.texi (fputws): Likewise.
54786         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
54787         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
54788         * doc/posix-functions/getopt.texi (getopt): Likewise.
54789         * doc/posix-functions/perror.texi (perror): Likewise.
54790         * doc/posix-functions/printf.texi (printf): Likewise.
54791         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
54792         * doc/posix-functions/psignal.texi (psignal): Likewise.
54793         * doc/posix-functions/putc.texi (putc): Likewise.
54794         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
54795         Likewise.
54796         * doc/posix-functions/putchar.texi (putchar): Likewise.
54797         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
54798         Likewise.
54799         * doc/posix-functions/puts.texi (puts): Likewise.
54800         * doc/posix-functions/putwc.texi (putwc): Likewise.
54801         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
54802         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
54803         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
54804         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
54805         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
54806         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
54807         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
54808         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
54810 2011-05-22  Bruno Haible  <bruno@clisp.org>
54812         strerror: Move AC_LIBOBJ invocations to module description.
54813         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
54814         gl_PREREQ_STRERROR invocations from here...
54815         * modules/strerror (configure.ac): ... to here.
54817 2011-05-21  Bruno Haible  <bruno@clisp.org>
54819         perror: Use common idiom.
54820         * modules/perror (configure.ac): Reorder statements.
54822 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54824         tests: fix usage message in 'mktempd_'
54825         * tests/init.sh (mktempd_): In the usage message, use literal
54826         'mktempd_', not '$ME' (which is even undefined), as the name of
54827         the subroutine.
54829 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
54831         tests init: new function 'fatal_', for hard errors
54832         Before this patch, the only way offered by tests/init.sh to
54833         properly signal a hard error was the `framework_failure_'
54834         function.  But the error message issued by that function,
54835         as its name would suggest, refers to a set-up failure in the
54836         testsuite, while hard errors can obviously also be due to
54837         other reasons.  The best way to fix this inconsistency is to
54838         introduce a new function with a more general error message.
54839         * tests/init.sh (fatal_): New function.
54841 2011-06-06  Eric Blake  <eblake@redhat.com>
54843         canonicalize-lgpl: use common idiom
54844         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
54845         over newer POSIX -Rf.
54846         Reported by Bruno Haible.
54848         canonicalize-lgpl: work around AIX realpath bug
54849         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
54850         * doc/posix-functions/realpath.texi (realpath): Document it.
54851         Reported by Bruno Haible.
54853         strerror: work around FreeBSD bug
54854         * lib/strerror.c (strerror): Special case 0.
54855         Reported by Bruno Haible.
54857         strerror-override: avoid bloating errno module
54858         * modules/errno (Files, configure.ac): Move replacement strings...
54859         * modules/strerror-override: ...to new module.
54860         * modules/strerror (Depends-on): Add strerror-override.
54861         * modules/strerror_r-posix (Depends-on): Likewise.
54862         * MODULES.html.sh: Document new module.
54863         Reported by Bruno Haible.
54865 2011-06-06  Bruno Haible  <bruno@clisp.org>
54867         spawn-pipe tests: Rename program.
54868         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
54869         * tests/test-spawn-pipe-child.c: Update comment.
54870         * tests/test-spawn-pipe.sh: Update.
54871         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
54873         spawn-pipe tests: Link the child program only against libc.
54874         * tests/test-spawn-pipe-child.c: New file, extracted from
54875         tests/test-spawn-pipe.c.
54876         (main): Expect only one argument.
54877         (is_open): New function, copied from tests/test-pipe.c.
54878         * tests/test-spawn-pipe.c: Don't include <errno.h>.
54879         (child_main): Remove function.
54880         (test_pipe): Pass only one argument to the child program.
54881         (main): Remove child process code. Expect the child program's name as
54882         first argument.
54883         * tests/test-spawn-pipe.sh: Pass the child program's name as first
54884         argument.
54885         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
54886         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
54887         test-spawn-pipe-child against no libraries.
54889 2011-06-06  Bruno Haible  <bruno@clisp.org>
54891         careadlinkat: Avoid mismatch between ssize_t and int.
54892         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
54893         * lib/careadlinkat.c (careadlinkatcwd): Define always.
54895 2011-06-06  Jim Meyering  <meyering@redhat.com>
54897         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
54898         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
54899         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
54901 2011-06-05  Bruno Haible  <bruno@clisp.org>
54903         ansi-c++-opt: Interoperability with libtool.
54904         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
54905         set the variable to "no", not to ":".
54906         * NEWS: Mention the change.
54908 2011-06-05  Bruno Haible  <bruno@clisp.org>
54910         acl: Fix test failure on AIX 7.
54911         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
54912         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
54914 2011-06-05  Bruno Haible  <bruno@clisp.org>
54916         pipe-filter-ii: Fix test failure on AIX and IRIX.
54917         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
54918         with EAGAIN, retry with a smaller buffer size.
54920 2011-06-05  Bruno Haible  <bruno@clisp.org>
54922         localename: Fix link dependencies.
54923         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
54924         * modules/localename-tests (Makefile.am): Link test-localename with
54925         $(LIBTHREAD).
54927 2011-06-05  Bruno Haible  <bruno@clisp.org>
54929         error: Avoid gcc warning.
54930         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
54932 2011-06-05  Bruno Haible  <bruno@clisp.org>
54934         unsetenv: Avoid gcc warning.
54935         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
54937 2011-06-05  Bruno Haible  <bruno@clisp.org>
54939         setenv: Avoid gcc warning.
54940         * lib/setenv.c (setenv): Provide declaration if system lacks it.
54942 2011-06-05  Bruno Haible  <bruno@clisp.org>
54944         sys_select: Ensure memset is declared also on AIX 7.
54945         * lib/sys_select.in.h: Include <string.h> also on AIX.
54946         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
54947         self-contained also on AIX 7.1.
54949 2011-06-04  Jim Meyering  <meyering@redhat.com>
54951         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
54952         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
54953         function name, "error".
54954         (_gl_translatable_diag_func_re): New configurable variable.
54956 2011-06-04  Bruno Haible  <bruno@clisp.org>
54958         getopt: Avoid gcc warning.
54959         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
54961 2011-06-04  Bruno Haible  <bruno@clisp.org>
54963         strerror_r: Fix comments.
54964         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
54965         commit.
54967 2011-06-04  Bruno Haible  <bruno@clisp.org>
54969         perror: Fix compilation error.
54970         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
54971         Undefine fprintf, not sprintf.
54972         * modules/perror (Depends-on): Remove intprops, verify.
54974 2011-06-04  Bruno Haible  <bruno@clisp.org>
54976         setlocale: Enable replacement on Cygwin 1.5.
54977         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
54978         Cygwin 1.5.x.
54979         * doc/posix-functions/setlocale.texi: Mention that the problem with the
54980         LC_CTYPE category also exists on Cygwin 1.5.x.
54982 2011-06-04  Bruno Haible  <bruno@clisp.org>
54984         strerror-override: Don't disable symbol renamings.
54985         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
54986         * lib/strerror-override.c: Include config.h.
54987         (strerror_override): Don't undefine.
54989 2011-06-03  Bruno Haible  <bruno@clisp.org>
54991         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
54992         * lib/localename.h: Update copyright header.
54993         * lib/localename.c: Likewise.
54994         * lib/relocatable.h: Likewise.
54995         * lib/relocatable.c: Likewise.
54997 2011-06-02  Bruno Haible  <bruno@clisp.org>
54999         doc: Fix a module name.
55000         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
55002 2011-06-02  Bruno Haible  <bruno@clisp.org>
55004         pipe2: Remove dependency on 'nonblocking' module.
55005         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
55006         O_NONBLOCK is defined by gnulib.
55007         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
55008         is zero.
55009         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
55010         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
55011         defined by gnulib.
55012         (get_nonblocking_flag): New function.
55013         (main): Test O_NONBLOCK flag only if it is nonzero.
55014         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
55016 2011-06-03  Jim Meyering  <meyering@redhat.com>
55018         maint: three new prohibit-header-without-use rules
55019         Prohibit use of cloexec.h, posixver.h, same.h without use.
55020         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
55021         (sc_prohibit_posixver_without_use): Likewise.
55022         (sc_prohibit_same_without_use): Likewise.
55024 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
55026         allocator: 'die' routine is now given requested size
55027         * lib/allocator.h (struct allocator.die): New size arg.
55028         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
55029         If the actual problem is an ssize_t limitation, not a size_t or
55030         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
55032 2011-06-01  Eric Blake  <eblake@redhat.com>
55034         strerror: drop strerror_r dependency
55035         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
55036         * lib/strerror-override.c (strerror_override): ...to new file.
55037         * lib/strerror-override.h: Add prototype.
55038         * lib/strerror-impl.h: Delete.
55039         * lib/strerror.c (strerror): New implementation.
55040         * modules/errno (Files): Add new files.
55041         (configure.ac): Compile new file as appropriate.
55042         * modules/strerror (Files): Drop unused file.
55043         (Depends-on): Drop strerror_r-posix.
55044         * MODULES.html.sh: Document strerror_r-posix.
55045         Requested by Sam Steingold.
55047         perror: call strerror_r directly
55048         * modules/perror (Files): Drop strerror-impl.h.
55049         * lib/perror.c (perror): Use our own stack buffer, rather than
55050         calling a wrapper that uses static storage.
55051         * doc/posix-functions/perror.texi (perror): Document a limitation
55052         of our replacement.
55054         strerror_r: fix includes for FreeBSD
55055         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
55056         since we use abort on some platforms.
55057         Reported by Matthias Bolte.
55059 2011-05-31  Bruno Haible  <bruno@clisp.org>
55061         Fix link errors in tests: openat-die uses gettext-h.
55062         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
55063         against $(LIBINTL).
55064         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
55065         against $(LIBINTL).
55066         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
55067         $(LIBINTL).
55068         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
55069         against $(LIBINTL).
55070         * modules/linkat-tests (Makefile.am): Link test-linkat against
55071         $(LIBINTL).
55072         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
55073         $(LIBINTL).
55074         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
55075         against $(LIBINTL).
55076         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
55077         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
55078         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
55079         $(LIBINTL).
55080         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
55081         $(LIBINTL).
55082         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
55083         $(LIBINTL).
55084         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55086 2011-05-31  Bruno Haible  <bruno@clisp.org>
55088         Fix link errors in tests: wait-process uses gettext-h.
55089         * modules/nonblocking-pipe-tests (Makefile.am): Set
55090         test_nonblocking_pipe_main_LDADD.
55091         * modules/nonblocking-socket-tests (Makefile.am): Link
55092         test-nonblocking-socket-main against $(LIBINTL).
55093         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55095 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
55097         assert-h: work around 'verify' incompatibility
55098         * lib/verify.h: Use @...@ directives, not ifdef.
55099         * modules/assert-h (assert.h): Implement the directives.
55100         (assert.h): Substitute the symbol-prefix more consistently.
55102 2011-05-29  Jim Meyering  <meyering@redhat.com>
55104         trim: remove three superfluous assignments
55105         * lib/trim.c (trim2): Remove three superfluous assignments
55106         and correct brace positioning.
55108 2011-05-29  Bruno Haible  <bruno@clisp.org>
55110         wctype-h: Avoid namespace pollution on Solaris 2.6.
55111         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
55112         identifiers.
55113         * doc/posix-headers/wctype.texi: Mention the problem.
55114         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
55116 2011-05-28  Jim Meyering  <meyering@redhat.com>
55118         parse-datetime.y: accommodate -Wstrict-overflow
55119         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
55120         placate -Wstrict-overflow.
55122         trim: avoid a warning from -O2 -Wstrict-overflow
55123         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
55125 2011-05-29  Bruno Haible  <bruno@clisp.org>
55127         gnulib-tool: Fix bug in yesterday's commit.
55128         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
55129         twice.
55131 2011-05-29  Bruno Haible  <bruno@clisp.org>
55133         Allow multiple gnulib generated include files to be combined.
55134         * gnulib-tool (func_compute_include_guard_prefix): New function.
55135         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
55136         ${gl_include_guard_prefix} references.
55137         (func_import, func_create_testdir): Invoke
55138         func_compute_include_guard_prefix.
55139         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
55140         * lib/ctype.in.h: Likewise.
55141         * lib/dirent.in.h: Likewise.
55142         * lib/errno.in.h: Likewise.
55143         * lib/fcntl.in.h: Likewise.
55144         * lib/float.in.h: Likewise.
55145         * lib/getopt.in.h: Likewise.
55146         * lib/iconv.in.h: Likewise.
55147         * lib/langinfo.in.h: Likewise.
55148         * lib/locale.in.h: Likewise.
55149         * lib/math.in.h: Likewise.
55150         * lib/netdb.in.h: Likewise.
55151         * lib/netinet_in.in.h: Likewise.
55152         * lib/poll.in.h: Likewise.
55153         * lib/pthread.in.h: Likewise.
55154         * lib/pty.in.h: Likewise.
55155         * lib/sched.in.h: Likewise.
55156         * lib/se-selinux.in.h: Likewise.
55157         * lib/search.in.h: Likewise.
55158         * lib/signal.in.h: Likewise.
55159         * lib/spawn.in.h: Likewise.
55160         * lib/stdarg.in.h: Likewise.
55161         * lib/stddef.in.h: Likewise.
55162         * lib/stdint.in.h: Likewise.
55163         * lib/stdio.in.h: Likewise.
55164         * lib/stdlib.in.h: Likewise.
55165         * lib/string.in.h: Likewise.
55166         * lib/strings.in.h: Likewise.
55167         * lib/sys_file.in.h: Likewise.
55168         * lib/sys_ioctl.in.h: Likewise.
55169         * lib/sys_select.in.h: Likewise.
55170         * lib/sys_socket.in.h: Likewise.
55171         * lib/sys_stat.in.h: Likewise.
55172         * lib/sys_time.in.h: Likewise.
55173         * lib/sys_times.in.h: Likewise.
55174         * lib/sys_uio.in.h: Likewise.
55175         * lib/sys_utsname.in.h: Likewise.
55176         * lib/sys_wait.in.h: Likewise.
55177         * lib/sysexits.in.h: Likewise.
55178         * lib/termios.in.h: Likewise.
55179         * lib/time.in.h: Likewise.
55180         * lib/unistd.in.h: Likewise.
55181         * lib/wchar.in.h: Likewise.
55182         * lib/wctype.in.h: Likewise.
55183         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
55184         * modules/ctype (Makefile.am): Likewise.
55185         * modules/dirent (Makefile.am): Likewise.
55186         * modules/errno (Makefile.am): Likewise.
55187         * modules/fcntl-h (Makefile.am): Likewise.
55188         * modules/float (Makefile.am): Likewise.
55189         * modules/getopt-posix (Makefile.am): Likewise.
55190         * modules/iconv-h (Makefile.am): Likewise.
55191         * modules/langinfo (Makefile.am): Likewise.
55192         * modules/locale (Makefile.am): Likewise.
55193         * modules/math (Makefile.am): Likewise.
55194         * modules/netdb (Makefile.am): Likewise.
55195         * modules/netinet_in (Makefile.am): Likewise.
55196         * modules/poll-h (Makefile.am): Likewise.
55197         * modules/pthread (Makefile.am): Likewise.
55198         * modules/pty (Makefile.am): Likewise.
55199         * modules/sched (Makefile.am): Likewise.
55200         * modules/search (Makefile.am): Likewise.
55201         * modules/selinux-h (Makefile.am): Likewise.
55202         * modules/signal (Makefile.am): Likewise.
55203         * modules/spawn (Makefile.am): Likewise.
55204         * modules/stdarg (Makefile.am): Likewise.
55205         * modules/stddef (Makefile.am): Likewise.
55206         * modules/stdint (Makefile.am): Likewise.
55207         * modules/stdio (Makefile.am): Likewise.
55208         * modules/stdlib (Makefile.am): Likewise.
55209         * modules/string (Makefile.am): Likewise.
55210         * modules/strings (Makefile.am): Likewise.
55211         * modules/sys_file (Makefile.am): Likewise.
55212         * modules/sys_ioctl (Makefile.am): Likewise.
55213         * modules/sys_select (Makefile.am): Likewise.
55214         * modules/sys_socket (Makefile.am): Likewise.
55215         * modules/sys_stat (Makefile.am): Likewise.
55216         * modules/sys_time (Makefile.am): Likewise.
55217         * modules/sys_times (Makefile.am): Likewise.
55218         * modules/sys_uio (Makefile.am): Likewise.
55219         * modules/sys_utsname (Makefile.am): Likewise.
55220         * modules/sys_wait (Makefile.am): Likewise.
55221         * modules/sysexits (Makefile.am): Likewise.
55222         * modules/termios (Makefile.am): Likewise.
55223         * modules/time (Makefile.am): Likewise.
55224         * modules/unistd (Makefile.am): Likewise.
55225         * modules/wchar (Makefile.am): Likewise.
55226         * modules/wctype-h (Makefile.am): Likewise.
55227         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
55229 2011-05-29  Bruno Haible  <bruno@clisp.org>
55231         assert-h: Allow multiple gnulib generated replacements to coexist.
55232         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
55234 2011-05-29  Bruno Haible  <bruno@clisp.org>
55236         argp: Allow coexistence with strerror_r-posix module.
55237         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
55238         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
55239         by gnulib's <string.h> replacement), assume it has the POSIX signature,
55240         not the glibc signature.
55242 2011-05-28  Bruno Haible  <bruno@clisp.org>
55244         gnulib-tool: Alternative structure of testdirs, similar to --import.
55245         * gnulib-tool: New option --single-configure.
55246         (func_usage): Document it.
55247         (single_configure): New variable.
55248         (func_modules_transitive_closure_separately,
55249         func_modules_transitive_closure_separately,
55250         func_determine_use_libtests, func_modules_add_dummy_separately,
55251         func_modules_to_filelist_separately): New functions, extracted from
55252         func_import.
55253         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
55254         (func_import): Use the new functions.
55255         (func_create_testdir): Set final_modules. Handle $single_configure =
55256         true case.
55258 2011-05-28  Bruno Haible  <bruno@clisp.org>
55260         getloadavg: Remove an unreliable safety check.
55261         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
55262         getloadavg.c is in place.
55263         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
55264         Reported by Sam Steingold <sds@gnu.org>.
55266 2011-05-28  Bruno Haible  <bruno@clisp.org>
55268         doc: Cleanup yet another file produced by texinfo.tex.
55269         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
55271 2011-05-28  Bruno Haible  <bruno@clisp.org>
55273         Finish the conditional dependencies mechanism.
55274         * gnulib-tool: New option --no-conditional-dependencies.
55275         (func_usage): Document it. Don't mark --conditional-dependencies as
55276         experimental.
55277         (cond_dependencies): The possible values can now be true, false, empty.
55278         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
55279         (func_import): Store setting in gnulib-cache.m4 and read it from there.
55280         * doc/gnulib-tool.texi (Conditional dependencies): New section.
55282 2011-05-28  Bruno Haible  <bruno@clisp.org>
55284         doc: Use a recent texinfo.tex.
55285         * doc/Makefile (tex_opts): New variable.
55286         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
55288 2011-05-28  Jim Meyering  <meyering@redhat.com>
55290         intprops.h: adjust comment to match code change
55291         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
55292         only once, it *may* have side effects.  Also fix an unrelated typo.
55293         (_GL_INT_SIGNED): Likewise.
55295 2011-05-26  Simon Josefsson  <simon@josefsson.org>
55297         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
55299 2011-05-26  Bruno Haible  <bruno@clisp.org>
55301         mbsrchr: Avoid collision with system function on Interix.
55302         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
55303         Reported by Markus Duft <mduft@gentoo.org>.
55305 2011-05-15  James Youngman  <jay@gnu.org>
55307         getopt: for ambiguous options, enumerate the possibilities.
55308         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
55309         the ambiguous options when an ambiguous prefix is given. This was
55310         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
55311         glibc change was
55312         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
55314 2011-05-25  Eric Blake  <eblake@redhat.com>
55316         getcwd: work around mingw bug
55317         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
55318         * doc/posix-functions/getcwd.texi (getcwd): Document it.
55319         Reported by Matthias Bolte.
55321 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
55323         test-intprops: disable -Wtype-limits diagnostics
55324         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
55325         diagnostics.  Otherwise, the integer overflow macros generate many
55326         diagnostics.  Reported by Jim Meyering in
55327         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55329         intprops: shorten, to pacify gcc -Woverlength-strings
55330         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
55331         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
55332         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
55333         likely to run afoul of C compiler limits for string constant lengths.
55334         See <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00528.html>.
55336 2011-05-24  Eric Blake  <eblake@redhat.com>
55338         docs: document recently fixed glibc printf bug
55339         * doc/posix-functions/fprintf.texi (fprintf): Document it.
55340         * doc/posix-functions/printf.texi (printf): Likewise.
55341         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
55342         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
55344         closein-tests: convert to init.sh
55345         * modules/closein-tests (Files): Add init.sh
55346         * tests/test-closein.sh Use it.
55348         yesno-tests: convert to init.sh
55349         * modules/yesno-tests (Files): Add init.sh.
55350         * tests/test-yesno.sh: Use it.
55352         atexit-tests: ensure reliable exit status
55353         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
55354         Reported by Bruno Haible.
55356 2011-05-24  Bruno Haible  <bruno@clisp.org>
55358         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
55359         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
55360         gl_PREREQ_STRERROR_R invocations from here...
55361         * modules/strerror_r-posix (configure.ac): ... to here.
55363 2011-05-24  Eric Blake  <eblake@redhat.com>
55365         strerror_r: fix missing header
55366         * lib/strerror_r.c: Avoid compiler warning about snprintf.
55368         strerror_r: fix AIX test failures
55369         * lib/strerror_r.c (strerror_r): Convert silent truncation to
55370         ERANGE failure.
55372         strerror_r: fix Solaris test failures
55373         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
55374         failures.
55375         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55377         strerror_r: enforce POSIX recommendations
55378         * lib/strerror_r.c (safe_copy): New helper method.
55379         (strerror_r): Guarantee a non-empty string.
55380         * tests/test-strerror_r.c (main): Enhance tests to incorporate
55381         recent POSIX rulings and to match our strerror guarantees.
55382         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
55384 2011-05-24  Jim Meyering  <meyering@redhat.com>
55386         test-perror2.c: avoid warning about unused variable
55387         * tests/test-perror2.c (main): Remove declaration of unused "fp".
55389 2011-05-24  Eric Blake  <eblake@redhat.com>
55391         perror: avoid spurious test failure on HP-UX
55392         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
55394         tests: fix logic bug in init.sh
55395         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
55396         shell.
55398 2011-05-24  Jim Meyering  <meyering@redhat.com>
55400         utimensat: do not reference an out-of-scope buffer
55401         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
55402         declared in an inner scope, yet "times" would be dereferenced outside
55403         the scope in which "ts" was valid.
55404         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
55405         of ts[2] "out/up", so that the use of aliased "times" (via
55406         "times = ts;") does not end up referencing an out-of-scope "ts"
55408         opendir-safer.c: don't clobber errno; don't close negative FD
55409         * lib/opendir-safer.c (opendir_safer):
55410         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
55411         file descriptor, and more importantly, don't clobber the
55412         offending errno value with EINVAL.  Before, upon failure
55413         of dup_safer, we would pass the negative file descriptor to
55414         fdopendir, which would clobber errno.
55416 2011-05-23  Bruno Haible  <bruno@clisp.org>
55418         idcache: Fix module description.
55419         * modules/idcache (Include): Set to "idcache.h".
55421 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
55423         gnulib-tool: fix portability problem with MacOS sed
55424         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
55425         before the "}".  Problem reported by Leo in
55426         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00717.html>.
55427         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
55428         sed_extract_condition1, sed_extract_condition2.
55430 2011-05-23  Bruno Haible  <bruno@clisp.org>
55432         hash: Simplify autoconf macro.
55433         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
55435 2011-05-23  Bruno Haible  <bruno@clisp.org>
55437         getugroups: Fix module description.
55438         * modules/getugroups (Include): Set to "getugroups.h".
55440 2011-05-23  Bruno Haible  <bruno@clisp.org>
55442         linkat: Simplify autoconf macro.
55443         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
55445 2011-05-23  Bruno Haible  <bruno@clisp.org>
55446             Eric Blake  <eblake@redhat.com>
55448         linkat, renameat: Update dependencies.
55449         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
55450         * modules/linkat (Depends-on): Likewise. Remove also readlink,
55451         symlinkat.
55453 2011-05-23  Jim Meyering  <meyering@redhat.com>
55455         maint.mk: more tight_scope improvements
55456         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
55457         (_gl_TS_headers): Define only in if-0'd block.
55458         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
55459         sometimes we must *not* use it.  Adjust uses accordingly.
55460         (sc_tight_scope): Use much simpler grep-based test to determine
55461         whether we skip this rule.
55463         maint.mk: generalize/improve the tight-scope rule
55464         * top/maint.mk: Emit a warning when the test is skipped.
55465         (_gl_TS_dir): Add $(srcdir)/ prefix.
55466         (_gl_TS_function_match): Simplify, rather than trying
55467         to enumerate common types.  Otherwise, it would fail to match an
55468         "extern unsigned char const *" declaration in idutils.
55469         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
55470         a way to support use of that type of macro.
55471         (_gl_TS_var_match): Simplify regexp.
55472         (_gl_TS_obj_files): New configurable variable.
55473         (_gl_TS_headers): Likewise.
55475 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
55477         verify: fix bug when gnulib <assert.h> is also included
55478         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
55479         is defined, not if _GL_STATIC_ASSERT_H is not defined.
55480         Perhaps there's a better way, but this fixes the immediate problem.
55481         Problem reported by Bruno Haible in
55482         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00478.html>.
55484 2011-05-22  Bruno Haible  <bruno@clisp.org>
55486         xgetcwd: Simplify autoconf macro.
55487         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
55489 2011-05-22  Bruno Haible  <bruno@clisp.org>
55491         New module 'mktime-internal'.
55492         * modules/mktime-internal: New file.
55493         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
55494         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
55495         mktime_internal as a C macro if libc has __mktime_internal.
55496         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
55497         conditions.
55498         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
55500 2011-05-22  Bruno Haible  <bruno@clisp.org>
55502         timegm: Correct mktime replacement statements.
55503         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
55504         defining mktime as a C macro. This completes a 2009-07-28 commit.
55506 2011-05-22  Bruno Haible  <bruno@clisp.org>
55508         timegm: Simplify autoconf macro.
55509         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
55511 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
55513         clock-time: change to LGPLv2+.
55514         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
55515         BSD-like but we have no mark for that; this is good enough for now.
55517 2011-05-21  Bruno Haible  <bruno@clisp.org>
55519         strerror_r: Fix comments.
55520         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
55522 2011-05-21  Bruno Haible  <bruno@clisp.org>
55524         relocatable-prog-wrapper: Fix possible link error.
55525         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
55526         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
55527         (gl_FUNC_SETENV): ... to here.
55528         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
55529         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
55531 2011-05-21  Bruno Haible  <bruno@clisp.org>
55533         relocatable-prog-wrapper: Assume strerror() exists.
55534         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
55535         m4/strerror.m4.
55536         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
55537         * lib/relocwrapper.c: Remove mention of strerror module.
55538         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
55539         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
55540         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
55541         C macro.
55543 2011-05-21  Bruno Haible  <bruno@clisp.org>
55545         select: Simplify replacement idiom.
55546         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
55547         Win32 platforms.
55548         * lib/sys_select.in.h (select): Simplify accordingly.
55549         * modules/select (Depends-on): Likewise.
55551 2011-05-21  Bruno Haible  <bruno@clisp.org>
55553         mkdir-p: Simplify autoconf macro.
55554         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
55555         gl_FUNC_LCHOWN.
55557 2011-05-21  Eric Blake  <eblake@redhat.com>
55559         strerror_r: avoid clobbering strerror on cygwin
55560         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
55561         fall back instead to sys_errlist.
55562         * modules/strerror (configure.ac): Add witness.
55563         * tests/test-strerror_r.c (main): Enhance test.
55564         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55565         * tests/test-perror2.c (main): Free memory before exit.
55567 2011-05-21  Bruno Haible  <bruno@clisp.org>
55569         mkdtemp: Use gnulib naming conventions.
55570         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
55571         * modules/mkdtemp (configure.ac): Update.
55573 2011-05-20  Eric Blake  <eblake@redhat.com>
55575         strerror_r: avoid corrupting errno on Solaris
55576         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
55577         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
55579         strerror_r: avoid compiler warning
55580         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
55582         strerror_r: simplify AIX code
55583         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
55585         test-perror: avoid spurious failure on FreeBSD
55586         * modules/perror-tests (Depends-on): Add strerror, now that
55587         strerror_r no longer pulls it in.
55589 2011-05-20  Bruno Haible  <bruno@clisp.org>
55591         strerror_r-posix: Remove unused dependencies.
55592         * modules/strerror_r-posix (Depends-on): Remove strerror.
55593         Reported by Eric Blake.
55595 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
55597         intprops: remove assumption about A|B representation
55598         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
55599         is a valid integer if both A and B are.  Although this is true for
55600         all known practical hosts, the C standard doesn't guarantee it,
55601         and the code need not assume it.  Also, this change may work around
55602         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
55603         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00426.html>.
55605 2011-05-20  Eric Blake  <eblake@redhat.com>
55607         perror: work around FreeBSD bug
55608         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
55609         is broken.  Move AC_LIBOBJ...
55610         * modules/perror (configure.ac): Here.
55611         * doc/posix-functions/perror.texi (perror): Document this.
55612         * tests/test-perror2.c (main): Enhance test.
55614         test-perror: check for strerror interactions
55615         * tests/macros.h (STREQ): Add macro.
55616         * modules/perror-tests (Files): Add second test.
55617         * tests/test-perror2.c (main): New file.
55618         * doc/posix-functions/perror.texi (perror): Document glibc bug.
55620         test-perror: rewrite to use init script
55621         * modules/perror-tests (Files): Add init.sh.
55622         * tests/test-perror.sh: Use temporary directory.
55624 2011-05-20  Jim Meyering  <meyering@redhat.com>
55626         maint: replace misused "a" with "an"
55627         * doc/intprops.texi: "a integer"
55628         * doc/regex.texi: "a explanation"
55629         * lib/alignof.h: "a object"
55630         * lib/argmatch.h: "a explanation"
55631         * lib/argp-help.c: "a option" and "a OPTION_DOC"
55632         * lib/stdint.in.h: "a integer"
55633         * lib/userspec.c: "a owner"
55634         * doc/gnulib.texi: Fix "a idea", and reword.
55636 2011-05-19  Jim Meyering  <meyering@redhat.com>
55638         maint: correct misuse of "a" and "an"
55639         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
55640         * lib/argp-help.c: "an docum...": s/an/a/
55641         * lib/argp-parse.c: "An vector": s/An/A/
55642         * lib/execute.c: "an native": s/an/a/
55643         * lib/spawn-pipe.c: Likewise.
55644         * lib/gc.h: "an Gc_rc": s/an/a/
55645         * lib/unigbrk.in.h: "an grapheme": s/an/a/
55646         * lib/fts.c: "an stat.st_dev": s/an/a/
55648 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55650         intprops-tests: work around HP-UX 11.23 cc bug with constants
55651         * tests/test-intprops.c (VERIFY): New macro.
55652         (main): Use it, instead of verify, to work around the compiler bug; see
55653         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55655         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
55656         See http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html
55657         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
55658         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
55659         (_GL_REMAINDER_OVERFLOW): Use it.
55661         intprops-tests: revert unsigned part of previous change
55662         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
55663         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
55664         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
55665         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00406.html>.
55667 2011-05-19  Bruno Haible  <bruno@clisp.org>
55669         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
55670         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
55671         strerror_r() returned without filling the buffer.
55672         Reported by Eric Blake.
55674 2011-05-19  Eric Blake  <eblake@redhat.com>
55676         strerror_r: guarantee unchanged errno
55677         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
55678         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
55679         failure.
55680         * tests/test-strerror_r.c (main): Enhance test.
55682 2011-05-19  Bruno Haible  <bruno@clisp.org>
55684         strerror_r: Reorder #if blocks.
55685         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
55686         for consistency with the previous commit.
55688 2011-05-19  Bruno Haible  <bruno@clisp.org>
55690         perror: Avoid clobbering the strerror buffer when possible.
55691         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
55692         * lib/strerror.c: Include it.
55693         * modules/strerror (Files): Add lib/strerror-impl.h.
55694         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
55695         (my_strerror): New function, defined through lib/strerror-impl.h.
55696         (perror): Use it instead of strerror.
55697         * modules/perror (Files): Add lib/strerror-impl.h.
55698         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
55700 2011-05-19  Eric Blake  <eblake@redhat.com>
55702         strerror_r: fix on newer cygwin
55703         * lib/strerror_r.c (strerror_r): Cygwin now has
55704         __xpg_strerror_r, use it.
55706 2011-05-19  Bruno Haible  <bruno@clisp.org>
55708         strerror_r: Avoid clobbering the strerror buffer when possible.
55709         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
55710         (sys_nerr, sys_errlist): New declarations.
55711         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
55712         HP-UX, native Win32, IRIX, and 32-bit Solaris.
55713         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
55715 2011-05-19  Bruno Haible  <bruno@clisp.org>
55717         strerror_r: Fix test failure on mingw.
55718         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
55719         EXTEND_STRERROR_R.
55720         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
55721         macros from errno.in.h instead.
55723 2011-05-19  Eric Blake  <eblake@redhat.com>
55725         strerror: relax test for Solaris
55726         * tests/test-strerror.c (main): Permit Solaris behavior.
55727         * tests/test-strerror_r.c (main): Likewise.
55729         strerror: enforce POSIX ruling on strerror(0)
55730         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
55731         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
55732         * lib/strerror_r.c (rpl_strerror_r): Work around it.
55733         * doc/posix-functions/strerror.texi (strerror): Document it.
55734         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
55735         * tests/test-strerror.c (main): Strengthen test.
55736         * tests/test-strerror_r.c (main): Likewise.
55738 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
55740         intprop-tests: port to older and more-pedantic compilers
55741         * modules/intprops-tests (Files): Add tests/macros.h.
55742         * tests/test-intprops.c: Include macros.h.
55743         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
55744         it's no longer documented to expand to an integer constant expression.
55745         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
55746         argument is floating point, as it's no longer documented to expand
55747         to an integer constant expression in that case.
55748         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
55749         compiler bugs reported by Bruno Haible.  See
55750         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55751         (U0, U1): New constants, to work around the same bugs.  Also,
55752         in tests, use e.g., "(unsigned int) 39" rather than "39u".
55754         intprops: work around C compiler bugs
55755         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
55756         bug in Sun C 5.11 2010/08/13 and other compilers; see
55757         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00401.html>.
55759         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
55760         * doc/intprops.texi (Integer Type Determination): Fix
55761         documentation for TYPE_IS_INTEGER: it returns an constant
55762         expression, not an integer constant expression.  Fix doc for
55763         TYPE_SIGNED: it returns an integer constant expression only if its
55764         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
55765         hardly worth documented that way....)
55767 2011-05-18  Bruno Haible  <bruno@clisp.org>
55769         strerror_r: Avoid clobbering the strerror buffer when possible.
55770         * lib/strerror_r.c (strerror_r): Merge the three implementations.
55771         Handle gnulib defined errno values here. When strerror() returns NULL
55772         or an empty string, return EINVAL.
55773         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
55774         gnulib defined errno values here.
55775         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
55777 2011-05-18  Eric Blake  <eblake@redhat.com>
55779         fnmatch: avoid compiler warning
55780         * lib/fnmatch_loop.c (FCT): Use correct type.
55781         Reported by Matthias Bolte.
55783 2011-05-13  Jim Meyering  <meyering@redhat.com>
55785         maint.mk: three new prohibit_<HDR>_without_use rules
55786         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
55787         (sc_prohibit_stdio-safer_without_use): Likewise.
55788         (sc_prohibit_xfreopen_without_use): Likewise.
55790 2011-05-17  Jim Meyering  <meyering@redhat.com>
55792         announce-gen: fail if the NEWS delta is empty
55793         If there's nothing noteworthy in NEWS, then either you forgot
55794         or you shouldn't be releasing.
55795         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
55797 2011-05-17  Pádraig Brady  <P@draigBrady.com>
55799         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
55800         reserved symbols starting with double underscore from the check.
55802 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
55804         intprops: add doc
55805         * doc/intprops.texi: New file, documenting intprops.
55806         * doc/gnulib.texi (Particular Modules): Include it.
55808         verify: add doc to gnulib manual and fix example
55809         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
55810         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
55811         (Compile-time Assertions): Fix example so it can't overflow.
55813 2011-05-17  Jim Meyering  <meyering@redhat.com>
55815         warnings.m4: don't usurp save_CPPFLAGS variable name
55816         * m4/warnings.m4: Prefix local temporary variable name with gl_.
55818         doc: fix typo
55819         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
55821 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55822             Bruno Haible  <bruno@clisp.org>
55824         doc: Tweak recent change.
55825         * README (Portability guidelines): Tweak new text.
55826         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
55827         Interix 6.1.
55829 2011-05-16  Eric Blake  <eblake@redhat.com>
55831         inttypes: avoid autoconf warning
55832         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
55833         * m4/stdint.m4 (gl_STDINT_H): Likewise.
55835 2011-05-16  Sam Steingold  <sds@gnu.org>
55836         and Eric Blake  <eblake@redhat.com>
55838         vc-list-files: accept multiple directory operands
55839         * build-aux/vc-list-files: Iterate over all remaining operands.
55841 2011-05-16  Bruno Haible  <bruno@clisp.org>
55843         Fix confusion regarding deprecated modules.
55844         * modules/calloc (Status, Notice): Mark module as deprecated, not
55845         obsolete.
55846         * modules/fnmatch-posix (Status, Notice): Likewise.
55847         * modules/getdate (Status, Notice): Likewise.
55848         * modules/getopt (Status, Notice): Likewise.
55849         * modules/malloc (Status, Notice): Likewise.
55850         * modules/pipe (Status, Notice): Likewise.
55851         * modules/realloc (Status, Notice): Likewise.
55852         * modules/rename-dest-slash (Status, Notice): Likewise.
55853         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
55854         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
55855         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
55856         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
55857         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
55859 2011-05-16  Bruno Haible  <bruno@clisp.org>
55861         doc: List the target platforms.
55862         * doc/gnulib-intro.texi (Target Platforms): New section.
55863         * doc/gnulib.texi (Introduction): Update menu.
55864         * README (Portability guidelines): Refer to the new section. Update
55865         statement about oldest supported environment. Remove rationale why
55866         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
55867         unportable C89 function.
55868         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
55869         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
55871 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
55873         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
55875 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
55877         intprops-tests: new module
55878         * modules/intprops-tests, tests/test-intprops.c: New files.
55880         intprops: add safe, portable integer overflow checking
55881         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
55882         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
55883         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
55884         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
55885         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
55886         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
55887         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
55888         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
55889         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
55890         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
55891         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
55893 2011-05-12  James Youngman  <jay@gnu.org>
55895         Add a test for glibc's Bugzilla bug #12378.
55896         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
55897         doesn't allow the literal matching of a lone "[" (which is
55898         required by POSIX).
55899         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
55901 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
55903         Sync glibc change fixing Bugzilla bug #12378.
55904         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
55905         beginning and fall back to matching as normal character if the
55906         string ends before the matching ']' is found.  This is what POSIX
55907         requires.
55909 2011-05-13  Eric Blake  <eblake@redhat.com>
55911         getcwd-lgpl: relax test for FreeBSD
55912         * doc/posix-functions/getcwd.texi (getcwd): Document portability
55913         issue.
55914         * tests/test-getcwd-lgpl.c (main): Relax test.
55915         Reported by Matthias Bolte.
55917 2011-05-11  Eric Blake  <eblake@redhat.com>
55919         test-fflush: silence compiler warning
55920         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
55922 2011-05-11  Bruno Haible  <bruno@clisp.org>
55924         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
55925         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
55926         * modules/canonicalize (Depends-on): Add 'nocrash'.
55927         * modules/canonicalize-lgpl (Depends-on): Likewise.
55928         * doc/posix-functions/realpath.texi: Update platforms list.
55929         Reported by Ryan Schmidt <ryandesign@macports.org>.
55931 2011-05-11  Bruno Haible  <bruno@clisp.org>
55933         group-member: Declare function in <unistd.h>.
55934         * lib/unistd.in.h (group_member): New declaration.
55935         * lib/group-member.h: Remove file.
55936         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
55937         * tests/test-unistd-c++.cc: Check signature of group_member.
55938         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
55939         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
55940         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
55941         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
55942         HAVE_GROUP_MEMBER.
55943         * modules/group-member (Files): Remove lib/group-member.h.
55944         (Depends-on): Add unistd. Specify conditions.
55945         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
55946         (Include): Change to <unistd.h>.
55947         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
55948         HAVE_GROUP_MEMBER.
55949         * NEWS: Mention the change.
55950         * lib/euidaccess.c: Don't include group-member.h.
55952 2011-05-11  Bruno Haible  <bruno@clisp.org>
55954         group-member: Document module.
55955         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
55956         module.
55958 2011-05-11  Bruno Haible  <bruno@clisp.org>
55960         fclose: Fix mistake earlier today.
55961         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
55963 2011-05-11  Eric Blake  <eblake@redhat.com>
55965         fclose: preserve fflush errors
55966         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
55967         Reported by Jim Meyering.
55969         bootstrap: support a prereq of 'rpcgen -' on RHEL5
55970         * build-aux/bootstrap (check_versions): When no specific version
55971         is required, merely check that the app produces an exit status
55972         that indicates its existence.
55974         maint.mk: drop redundant check
55975         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
55976         the same but better.
55978 2011-05-11  Bruno Haible  <bruno@clisp.org>
55980         fclose: Fix possible link error.
55981         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
55982         unregister_shadow_fd. Improve comments.
55983         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
55984         Eric Blake.
55986 2011-05-11  Jim Meyering  <meyering@redhat.com>
55988         maint.mk: improve "can not" detection and generalize rule name
55989         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
55990         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
55991         Use the same technique as in sc_prohibit_doubled_word, so that
55992         we recognize "can not" also when the words are separated by a newline.
55993         Suggested by Eric Blake.
55994         (perl_filename_lineno_text_): Define.  Factored out of...
55995         (prohibit_doubled_word_): ...here.  Use the new definition.
55996         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
55997         (prohibit_undesirable_word_seq_RE_): New overridable variable.
55998         (ignore_undesirable_word_sequence_RE_): New overridable variable.
56000 2011-05-10  Eric Blake  <eblake@redhat.com>
56002         fclose: avoid double close race when possible
56003         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
56004         all but WINDOWS_SOCKETS.
56006 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
56008         openat: correct new comment
56009         * lib/openat-proc.c (openat_proc_name): Correct the comment.
56011 2011-05-10  Jim Meyering  <meyering@redhat.com>
56013         openat: add comments
56014         * lib/openat-proc.c (openat_proc_name): Add comments,
56015         mostly from Eric Blake.
56017 2011-05-09  Eric Blake  <eblake@redhat.com>
56019         openat: reduce syscalls in first probe of /proc
56020         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
56021         be a directory.  Simplify the probe for .. bugs.
56022         * modules/openat (Depends-on): Drop same-inode.
56023         Reported by Bastien ROUCARIES.
56025 2011-05-09  Jim Meyering  <meyering@redhat.com>
56027         maint.mk: change semantics/name of tight_scope variables
56028         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
56029         Rename variables to align with semantics that make them more useful.
56031         maint.mk: tweak new rule's name not to impinge
56032         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
56033         (sc_tight_scope): Use new rule name rather than $@-0.
56035         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
56036         * top/maint.mk (sc_tight_scope): New rule.
56037         (sc_tight_scope-0): New rule, ifdef'd out.
56038         (_gl_TS_dir): Default.
56039         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
56040         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
56042 2011-05-09  Simon Josefsson  <simon@josefsson.org>
56044         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
56045         Haible <bruno@clisp.org>.
56047 2011-05-08  Bruno Haible  <bruno@clisp.org>
56049         Comments.
56050         * m4/isnanf.m4: Add comment.
56051         * m4/isnanl.m4: Likewise.
56053 2011-05-08  Bruno Haible  <bruno@clisp.org>
56055         glob: Remove obsolete macro.
56056         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
56058 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
56060         intprops: Sun C 5.11 supports __typeof__
56061         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
56062         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
56063         which is new.
56064         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
56066         intprops: switch to usual gnulib indenting and naming
56067         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
56068         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
56070         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
56072 2011-05-08  Jim Meyering  <meyering@redhat.com>
56074         maint.mk: suppress "Entering/Leaving directory" diag in announcement
56075         * top/maint.mk (release-prep): Use make's --no-print-directory
56076         option when generating the announcement.  This eliminates the
56077         pesky "make[2]: Entering/Leaving directory" diagnostics in the
56078         generated announcement template.
56080 2011-05-08  Bruno Haible  <bruno@clisp.org>
56082         tzset: Fix gettimeofday wrapper on Solaris 2.6.
56083         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
56084         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
56086 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
56088         ignore-value, verify: Omit include files from lib_SOURCES.
56089         * modules/ignore-value, modules/verify (Makefile.am):
56090         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
56091         that leads Automake to duplicate use of am__objects_... variables
56092         in Makefile.in.  See
56093         <http://lists.gnu.org/r/emacs-devel/2011-05/msg00257.html>.
56095 2011-05-07  Bruno Haible  <bruno@clisp.org>
56097         fclose: Simplify autoconf macro.
56098         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
56099         defined.
56101 2011-05-07  Bruno Haible  <bruno@clisp.org>
56103         canonicalize-lgpl: Fix autoconf macro ordering bug.
56104         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
56105         gl_STDLIB_H_DEFAULTS.
56107 2011-05-06  Eric Blake  <eblake@redhat.com>
56109         maintainer-makefile: make sc_po_check easier to tune
56110         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
56111         to probe for strings, such as an alternate location for gnulib.
56113         fclose: guarantee behavior on seekable stdin
56114         * modules/fclose (Depends-on): Add fflush.
56115         * doc/posix-functions/fclose.texi (fclose): Document this.
56116         * tests/test-fclose.c (main): Make test for this unconditional.
56118 2011-05-06  Bruno Haible  <bruno@clisp.org>
56120         fflush, fpurge: Relicense under LGPLv2+.
56121         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
56122         * modules/fpurge (License): Likewise.
56123         With permission from Eric Blake and Jim Meyering.
56124         Suggested by Eric Blake.
56126 2011-05-06  Karl Berry  <karl@gnu.org>
56128         * MODULES.html.sh (func_all_modules): remove exit.
56130 2011-05-06  Jim Meyering  <meyering@redhat.com>
56132         maint.mk: use info-gnu@ as the default only for a stable release
56133         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
56134         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
56135         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
56136         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
56138 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
56140         assert-h: new module, which supports C1X-style static_assert
56141         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
56142         * lib/verify.h: Revamp so that this can be copied into assert.h,
56143         while retaining the ability to use it standalone as before.
56144         Rename private identifiers so as not to encroach on the
56145         standard C namespace, since this is now used by assert.h.
56146         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
56147         the old verify_true.
56148         (_GL_VERIFY_TRUE): New macro, with much of the contents of
56149         the old verify_true.  Use _GL_VERIFY_TYPE.
56150         (_GL_VERIFY): New macro, with much of the contents of the old verify.
56151         (static_assert): New macro, if _GL_STATIC_ASSERT_H
56152         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
56153         defined when this file is copied into the replacement assert.h.
56154         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
56155         and _Static_assert is not built in.
56156         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
56157         defined, and use the new macros mentioned above.
56158         * doc/posix-headers/assert.texi: Document this.
56160 2011-05-05  Bruno Haible  <bruno@clisp.org>
56162         fclose, fflush: Respect rules for use of AC_LIBOBJ.
56163         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
56164         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
56165         gl_REPLACE_FCLOSE here.
56166         * modules/fflush (Depends-on): Remove fclose.
56167         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
56168         combination with module 'fclose'.
56170 2011-05-05  Bruno Haible  <bruno@clisp.org>
56172         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
56173         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
56174         gl_FUNC_FFLUSH.
56175         (gl_FUNC_FFLUSH): Use it.
56176         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
56177         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
56178         gl_REPLACE_FSEEKO here.
56180 2011-05-05  Bruno Haible  <bruno@clisp.org>
56182         tzset: Relicense under LGPL.
56183         * modules/tzset (License): Change to LGPL.
56184         No agreement needed; it's a no-op.
56186         strtoimax, strtoumax: Relicense under LGPL.
56187         * modules/strtoimax (License): Change to LGPL.
56188         * modules/strtoumax (License): Likewise.
56189         With permission from Jim Meyering, Paul Eggert:
56190         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00124.html>
56191         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00109.html>
56193         getgroups: Relicense under LGPL.
56194         * modules/getgroups (License): Change to LGPL.
56195         With permission from Jim Meyering, Paul Eggert, Eric Blake:
56196         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56197         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56198         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56200         nanosleep: Relicense under LGPL.
56201         * modules/nanosleep (License): Change to LGPL.
56202         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
56203         Haible:
56204         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00111.html>
56205         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00148.html>
56206         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56207         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56209         futimens: Relicense under LGPL.
56210         * modules/futimens (License): Change to LGPL.
56211         With permission from Eric Blake:
56212         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56214         fflush: Relicense under LGPL.
56215         * modules/fflush (License): Change to LGPL.
56216         With permission from Eric Blake, Bruno Haible, Jim Meyering:
56217         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00138.html>
56218         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00131.html>
56219         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00133.html>
56221         tmpfile: Relicense under LGPL.
56222         * modules/tmpfile (License): Change to LGPL.
56223         With permission from Ben Pfaff:
56224         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56226         isfinite: Relicense under LGPL.
56227         * modules/isfinite (License): Change to LGPL.
56228         With permission from Ben Pfaff, Bruno Haible:
56229         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00185.html>
56230         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00130.html>
56232         acosl..tanl: Relicense under LGPL.
56233         * modules/acosl (License): Change to LGPL.
56234         * modules/asinl (License): Likewise.
56235         * modules/atanl (License): Likewise.
56236         * modules/cosl (License): Likewise.
56237         * modules/expl (License): Likewise.
56238         * modules/logl (License): Likewise.
56239         * modules/sinl (License): Likewise.
56240         * modules/sqrtl (License): Likewise.
56241         * modules/tanl (License): Likewise.
56242         Source code originally from glibc and Paolo Bonzini. Agreements:
56243         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00137.html>
56244         <http://lists.gnu.org/r/bug-gnulib/2011-05/msg00128.html>
56246 2011-05-05  Bruno Haible  <bruno@clisp.org>
56248         signal: Define sighandler_t.
56249         * lib/signal.in.h (sighandler_t): New type.
56250         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
56251         whether sighandler_t is defined.
56252         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
56253         * modules/signal (Depends-on): Add extensions.
56254         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
56255         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
56256         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
56258 2011-05-05  Eric Blake  <eblake@redhat.com>
56260         maint: remove useless REPLACE_*_H macros
56261         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
56262         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
56263         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
56264         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
56265         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
56266         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
56267         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
56268         * m4/btowc.m4: Update callers.
56269         * m4/dirfd.m4: Likewise.
56270         * m4/duplocale.m4: Likewise.
56271         * m4/fchdir.m4: Likewise.
56272         * m4/fdopendir.m4: Likewise.
56273         * m4/inet_ntop.m4: Likewise.
56274         * m4/inet_pton.m4: Likewise.
56275         * m4/ioctl.m4: Likewise.
56276         * m4/mbrlen.m4: Likewise.
56277         * m4/mbrtowc.m4: Likewise.
56278         * m4/mbsinit.m4: Likewise.
56279         * m4/mbsnrtowcs.m4: Likewise.
56280         * m4/mbsrtowcs.m4: Likewise.
56281         * m4/poll.m4: Likewise.
56282         * m4/setlocale.m4: Likewise.
56283         * m4/wcrtomb.m4: Likewise.
56284         * m4/wcsnrtombs.m4: Likewise.
56285         * m4/wcsrtombs.m4: Likewise.
56286         * m4/wctob.m4: Likewise.
56287         * m4/wcwidth.m4: Likewise.
56288         * modules/posix_spawn: Likewise.
56289         * modules/posix_spawn_file_actions_addclose: Likewise.
56290         * modules/posix_spawn_file_actions_adddup2: Likewise.
56291         * modules/posix_spawn_file_actions_addopen: Likewise.
56292         * modules/posix_spawn_file_actions_destroy: Likewise.
56293         * modules/posix_spawn_file_actions_init: Likewise.
56294         * modules/posix_spawnattr_destroy: Likewise.
56295         * modules/posix_spawnattr_getflags: Likewise.
56296         * modules/posix_spawnattr_getpgroup: Likewise.
56297         * modules/posix_spawnattr_getschedparam: Likewise.
56298         * modules/posix_spawnattr_getschedpolicy: Likewise.
56299         * modules/posix_spawnattr_getsigdefault: Likewise.
56300         * modules/posix_spawnattr_getsigmask: Likewise.
56301         * modules/posix_spawnattr_init: Likewise.
56302         * modules/posix_spawnattr_setflags: Likewise.
56303         * modules/posix_spawnattr_setpgroup: Likewise.
56304         * modules/posix_spawnattr_setschedparam: Likewise.
56305         * modules/posix_spawnattr_setschedpolicy: Likewise.
56306         * modules/posix_spawnattr_setsigdefault: Likewise.
56307         * modules/posix_spawnattr_setsigmask: Likewise.
56308         * modules/posix_spawnp: Likewise.
56310 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
56312         Add option to do-release-commit-and-tag to specify branch.
56313         * build-aux/do-release-commit-and-tag: Add --branch.
56315 2011-05-03  Bruno Haible  <bruno@clisp.org>
56317         Avoid unnecessary compilation units, through conditional dependencies.
56318         * modules/accept (Depends-on): Add conditions to the dependencies.
56319         * modules/acosl (Depends-on): Likewise.
56320         * modules/argz (Depends-on): Likewise.
56321         * modules/asinl (Depends-on): Likewise.
56322         * modules/atanl (Depends-on): Likewise.
56323         * modules/atoll (Depends-on): Likewise.
56324         * modules/bind (Depends-on): Likewise.
56325         * modules/btowc (Depends-on): Likewise.
56326         * modules/canonicalize-lgpl (Depends-on): Likewise.
56327         * modules/ceil (Depends-on): Likewise.
56328         * modules/ceilf (Depends-on): Likewise.
56329         * modules/ceill (Depends-on): Likewise.
56330         * modules/chdir-long (Depends-on): Likewise.
56331         * modules/chown (Depends-on): Likewise.
56332         * modules/close (Depends-on): Likewise.
56333         * modules/connect (Depends-on): Likewise.
56334         * modules/cosl (Depends-on): Likewise.
56335         * modules/dirfd (Depends-on): Likewise.
56336         * modules/dprintf (Depends-on): Likewise.
56337         * modules/dprintf-posix (Depends-on): Likewise.
56338         * modules/error (Depends-on): Likewise.
56339         * modules/euidaccess (Depends-on): Likewise.
56340         * modules/expl (Depends-on): Likewise.
56341         * modules/faccessat (Depends-on): Likewise.
56342         * modules/fchdir (Depends-on): Likewise.
56343         * modules/fclose (Depends-on): Likewise.
56344         * modules/fcntl (Depends-on): Likewise.
56345         * modules/fdopendir (Depends-on): Likewise.
56346         * modules/fflush (Depends-on): Likewise.
56347         * modules/floor (Depends-on): Likewise.
56348         * modules/floorf (Depends-on): Likewise.
56349         * modules/floorl (Depends-on): Likewise.
56350         * modules/fnmatch (Depends-on): Likewise.
56351         * modules/fopen (Depends-on): Likewise.
56352         * modules/fprintf-posix (Depends-on): Likewise.
56353         * modules/frexp (Depends-on): Likewise.
56354         * modules/frexp-nolibm (Depends-on): Likewise.
56355         * modules/frexpl (Depends-on): Likewise.
56356         * modules/frexpl-nolibm (Depends-on): Likewise.
56357         * modules/fseek (Depends-on): Likewise.
56358         * modules/fsusage (Depends-on): Likewise.
56359         * modules/ftell (Depends-on): Likewise.
56360         * modules/ftello (Depends-on): Likewise.
56361         * modules/futimens (Depends-on): Likewise.
56362         * modules/getcwd (Depends-on): Likewise.
56363         * modules/getcwd-lgpl (Depends-on): Likewise.
56364         * modules/getdelim (Depends-on): Likewise.
56365         * modules/getdomainname (Depends-on): Likewise.
56366         * modules/getgroups (Depends-on): Likewise.
56367         * modules/gethostname (Depends-on): Likewise.
56368         * modules/getline (Depends-on): Likewise.
56369         * modules/getlogin_r (Depends-on): Likewise.
56370         * modules/getopt-posix (Depends-on): Likewise.
56371         * modules/getpeername (Depends-on): Likewise.
56372         * modules/getsockname (Depends-on): Likewise.
56373         * modules/getsockopt (Depends-on): Likewise.
56374         * modules/getsubopt (Depends-on): Likewise.
56375         * modules/getusershell (Depends-on): Likewise.
56376         * modules/glob (Depends-on): Likewise.
56377         * modules/grantpt (Depends-on): Likewise.
56378         * modules/iconv_open (Depends-on): Likewise.
56379         * modules/iconv_open-utf (Depends-on): Likewise.
56380         * modules/inet_ntop (Depends-on): Likewise.
56381         * modules/inet_pton (Depends-on): Likewise.
56382         * modules/ioctl (Depends-on): Likewise.
56383         * modules/isapipe (Depends-on): Likewise.
56384         * modules/isfinite (Depends-on): Likewise.
56385         * modules/isinf (Depends-on): Likewise.
56386         * modules/lchown (Depends-on): Likewise.
56387         * modules/ldexpl (Depends-on): Likewise.
56388         * modules/link (Depends-on): Likewise.
56389         * modules/linkat (Depends-on): Likewise.
56390         * modules/listen (Depends-on): Likewise.
56391         * modules/logl (Depends-on): Likewise.
56392         * modules/lstat (Depends-on): Likewise.
56393         * modules/mbrlen (Depends-on): Likewise.
56394         * modules/mbrtowc (Depends-on): Likewise.
56395         * modules/mbsinit (Depends-on): Likewise.
56396         * modules/mbsnrtowcs (Depends-on): Likewise.
56397         * modules/mbsrtowcs (Depends-on): Likewise.
56398         * modules/mbtowc (Depends-on): Likewise.
56399         * modules/memcmp (Depends-on): Likewise.
56400         * modules/mkdir (Depends-on): Likewise.
56401         * modules/mkdtemp (Depends-on): Likewise.
56402         * modules/mkfifo (Depends-on): Likewise.
56403         * modules/mkfifoat (Depends-on): Likewise.
56404         * modules/mknod (Depends-on): Likewise.
56405         * modules/mkostemp (Depends-on): Likewise.
56406         * modules/mkostemps (Depends-on): Likewise.
56407         * modules/mkstemp (Depends-on): Likewise.
56408         * modules/mkstemps (Depends-on): Likewise.
56409         * modules/mktime (Depends-on): Likewise.
56410         * modules/nanosleep (Depends-on): Likewise.
56411         * modules/open (Depends-on): Likewise.
56412         * modules/openat (Depends-on): Likewise.
56413         * modules/perror (Depends-on): Likewise.
56414         * modules/poll (Depends-on): Likewise.
56415         * modules/popen (Depends-on): Likewise.
56416         * modules/posix_spawn (Depends-on): Likewise.
56417         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
56418         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
56419         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
56420         * modules/posix_spawnp (Depends-on): Likewise.
56421         * modules/pread (Depends-on): Likewise.
56422         * modules/printf-posix (Depends-on): Likewise.
56423         * modules/ptsname (Depends-on): Likewise.
56424         * modules/putenv (Depends-on): Likewise.
56425         * modules/pwrite (Depends-on): Likewise.
56426         * modules/readline (Depends-on): Likewise.
56427         * modules/readlink (Depends-on): Likewise.
56428         * modules/readlinkat (Depends-on): Likewise.
56429         * modules/recv (Depends-on): Likewise.
56430         * modules/recvfrom (Depends-on): Likewise.
56431         * modules/regex (Depends-on): Likewise.
56432         * modules/remove (Depends-on): Likewise.
56433         * modules/rename (Depends-on): Likewise.
56434         * modules/renameat (Depends-on): Likewise.
56435         * modules/rmdir (Depends-on): Likewise.
56436         * modules/round (Depends-on): Likewise.
56437         * modules/roundf (Depends-on): Likewise.
56438         * modules/roundl (Depends-on): Likewise.
56439         * modules/rpmatch (Depends-on): Likewise.
56440         * modules/select (Depends-on): Likewise.
56441         * modules/send (Depends-on): Likewise.
56442         * modules/sendto (Depends-on): Likewise.
56443         * modules/setenv (Depends-on): Likewise.
56444         * modules/setlocale (Depends-on): Likewise.
56445         * modules/setsockopt (Depends-on): Likewise.
56446         * modules/shutdown (Depends-on): Likewise.
56447         * modules/sigaction (Depends-on): Likewise.
56448         * modules/signbit (Depends-on): Likewise.
56449         * modules/sigprocmask (Depends-on): Likewise.
56450         * modules/sinl (Depends-on): Likewise.
56451         * modules/sleep (Depends-on): Likewise.
56452         * modules/snprintf (Depends-on): Likewise.
56453         * modules/snprintf-posix (Depends-on): Likewise.
56454         * modules/socket (Depends-on): Likewise.
56455         * modules/sprintf-posix (Depends-on): Likewise.
56456         * modules/sqrtl (Depends-on): Likewise.
56457         * modules/stat (Depends-on): Likewise.
56458         * modules/strchrnul (Depends-on): Likewise.
56459         * modules/strdup-posix (Depends-on): Likewise.
56460         * modules/strerror (Depends-on): Likewise.
56461         * modules/strerror_r-posix (Depends-on): Likewise.
56462         * modules/strndup (Depends-on): Likewise.
56463         * modules/strnlen (Depends-on): Likewise.
56464         * modules/strptime (Depends-on): Likewise.
56465         * modules/strsep (Depends-on): Likewise.
56466         * modules/strsignal (Depends-on): Likewise.
56467         * modules/strstr-simple (Depends-on): Likewise.
56468         * modules/strtod (Depends-on): Likewise.
56469         * modules/strtoimax (Depends-on): Likewise.
56470         * modules/strtok_r (Depends-on): Likewise.
56471         * modules/strtoumax (Depends-on): Likewise.
56472         * modules/symlink (Depends-on): Likewise.
56473         * modules/symlinkat (Depends-on): Likewise.
56474         * modules/tanl (Depends-on): Likewise.
56475         * modules/tcgetsid (Depends-on): Likewise.
56476         * modules/tmpfile (Depends-on): Likewise.
56477         * modules/trunc (Depends-on): Likewise.
56478         * modules/truncf (Depends-on): Likewise.
56479         * modules/truncl (Depends-on): Likewise.
56480         * modules/uname (Depends-on): Likewise.
56481         * modules/unlink (Depends-on): Likewise.
56482         * modules/unlockpt (Depends-on): Likewise.
56483         * modules/unsetenv (Depends-on): Likewise.
56484         * modules/usleep (Depends-on): Likewise.
56485         * modules/utimensat (Depends-on): Likewise.
56486         * modules/vasprintf (Depends-on): Likewise.
56487         * modules/vdprintf (Depends-on): Likewise.
56488         * modules/vdprintf-posix (Depends-on): Likewise.
56489         * modules/vfprintf-posix (Depends-on): Likewise.
56490         * modules/vprintf-posix (Depends-on): Likewise.
56491         * modules/vsnprintf (Depends-on): Likewise.
56492         * modules/vsnprintf-posix (Depends-on): Likewise.
56493         * modules/vsprintf-posix (Depends-on): Likewise.
56494         * modules/wcrtomb (Depends-on): Likewise.
56495         * modules/wcscasecmp (Depends-on): Likewise.
56496         * modules/wcscspn (Depends-on): Likewise.
56497         * modules/wcsdup (Depends-on): Likewise.
56498         * modules/wcsncasecmp (Depends-on): Likewise.
56499         * modules/wcsnrtombs (Depends-on): Likewise.
56500         * modules/wcspbrk (Depends-on): Likewise.
56501         * modules/wcsrtombs (Depends-on): Likewise.
56502         * modules/wcsspn (Depends-on): Likewise.
56503         * modules/wcsstr (Depends-on): Likewise.
56504         * modules/wcstok (Depends-on): Likewise.
56505         * modules/wcswidth (Depends-on): Likewise.
56506         * modules/wctob (Depends-on): Likewise.
56507         * modules/wctomb (Depends-on): Likewise.
56508         * modules/wctype (Depends-on): Likewise.
56509         * modules/wcwidth (Depends-on): Likewise.
56510         * modules/write (Depends-on): Likewise.
56512 2011-05-03  Bruno Haible  <bruno@clisp.org>
56514         Support for conditional dependencies.
56515         * doc/gnulib.texi (Module description): Document the syntax of
56516         conditional dependencies.
56517         * gnulib-tool: New option --conditional-dependencies.
56518         (func_usage): Document it.
56519         (cond_dependencies): New variable.
56520         (func_get_automake_snippet_conditional,
56521         func_get_automake_snippet_unconditional): New functions, extracted from
56522         func_get_automake_snippet.
56523         (func_get_automake_snippet): Use them.
56524         (sed_first_32_chars): New variable.
56525         (func_module_shellfunc_name): New function.
56526         (func_module_shellvar_name): New function.
56527         (func_module_conditional_name): New function.
56528         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
56529         func_cond_module_condition): New functions.
56530         (func_modules_transitive_closure): Add support for conditional
56531         dependencies.
56532         (func_emit_lib_Makefile_am): For a conditional module, enclose the
56533         conditional automake snippet in an automake conditional.
56534         (func_emit_autoconf_snippets): Emit shell functions that contain the
56535         code for conditional modules.
56536         (func_import, func_create_testdir): Update specification.
56538 2011-05-03  Eric Blake  <eblake@redhat.com>
56540         test-getaddrinfo: report error information
56541         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
56543 2011-05-03  Jim Meyering  <meyering@redhat.com>
56545         bootstrap: avoid build failure when $GZIP is set
56546         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
56547         program name.  If defined at all, it is supposed to list gzip options.
56548         Reported by Alan Curry in http://debbugs.gnu.org/8609
56550 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
56552         readme-release: new module with release instructions
56553         * modules/readme-release: New module.
56554         * top/README-release: New file, from coreutils, grep, diffutils.
56555         * MODULES.html.sh (Support for maintaining and releasing): Add it.
56557 2011-05-02  Eric Blake  <eblake@redhat.com>
56559         fflush: also replace fclose when fixing fflush
56560         * modules/fflush (Depends-on): Add fclose.
56561         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
56562         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
56563         memstreams with no backing fd.
56564         * doc/posix-functions/fclose.texi (fclose): Document the use of
56565         fflush module to fix the bug.
56566         * tests/test-fclose.c (main): Relax test when fclose is used in
56567         isolation.
56569         fclose: add some tests
56570         * modules/fclose-tests: New test module.
56571         * tests/test-fclose.c: New file.
56572         * doc/posix-functions/fclose.texi (fclose): Document the bug.
56574         fclose: reduced dependencies
56575         * modules/fclose (Depends-on): Switch from fflush/fseeko to
56576         simpler lseek.
56577         * lib/fclose.c (rpl_fclose): Likewise.
56578         Reported by Simon Josefsson.
56580         exit: drop remaining clients
56581         * modules/argmatch (Depends-on): Replace exit with stdlib.
56582         * modules/copy-file (Depends-on): Likewise.
56583         * modules/execute (Depends-on): Likewise.
56584         * modules/exitfail (Depends-on): Likewise.
56585         * modules/obstack (Depends-on): Likewise.
56586         * modules/pagealign_alloc (Depends-on): Likewise.
56587         * modules/pipe-filter-gi (Depends-on): Likewise.
56588         * modules/pipe-filter-ii (Depends-on): Likewise.
56589         * modules/savewd (Depends-on): Likewise.
56590         * modules/spawn-pipe (Depends-on): Likewise.
56591         * modules/wait-process (Depends-on): Likewise.
56592         * modules/xsetenv (Depends-on): Likewise.
56593         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
56594         * modules/git-merge-changelog (Depends-on): Likewise.
56595         * modules/long-options (Depends-on): Likewise.
56596         * modules/pt_chown (Depends-on): Likewise.
56597         * modules/sysexits (Depends-on): Likewise.
56599         freading: relax license from LGPLv3+ to LGPLv2+
56600         * modules/freading (License): Relax LGPL version.
56602 2011-05-02  Bruno Haible  <bruno@clisp.org>
56604         fchdir: Remove unused dependencies.
56605         * modules/fchdir (Depends-on): Remove include_next.
56607 2011-05-02  Bruno Haible  <bruno@clisp.org>
56609         gnulib-tool: Refactor.
56610         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
56611         from func_emit_autoconf_snippets.
56612         (func_emit_autoconf_snippets): Use it.
56614 2011-05-02  Simon Josefsson  <simon@josefsson.org>
56616         * NEWS: Document removal of 'exit'.
56617         * modules/exit: Remove file.
56619 2011-05-01  Bruno Haible  <bruno@clisp.org>
56621         Update DEPENDENCIES.
56622         * DEPENDENCIES (gettext): Recommend the newest release.
56623         Reported by Simon Josefsson.
56625 2011-05-01  Bruno Haible  <bruno@clisp.org>
56627         gnulib-tool: Reduce code duplication.
56628         * gnulib-tool (func_emit_autoconf_snippets): New function.
56629         (func_import, func_create_testdir): Use it.
56631 2011-04-30  Eric Blake  <eblake@redhat.com>
56633         fclose: don't fail on non-seekable input stream
56634         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
56635         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
56636         since fflush is allowed to fail in that case.
56638 2011-04-30  Bruno Haible  <bruno@clisp.org>
56640         dup3: cleanup
56641         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
56643 2011-04-30  Bruno Haible  <bruno@clisp.org>
56645         netdb: Make it work in C++ mode.
56646         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
56647         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
56648         module.
56649         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
56650         gl_MODULE_INDICATOR_FOR_TESTS.
56651         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
56652         * modules/netdb-c++-tests: New file.
56653         * tests/test-netdb-c++.cc: New file.
56655 2011-04-30  Bruno Haible  <bruno@clisp.org>
56657         New modules 'vfscanf', 'vscanf'.
56658         * modules/vfscanf: New file.
56659         * modules/vscanf: New file.
56660         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
56661         here.
56662         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
56663         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
56665 2011-04-30  Bruno Haible  <bruno@clisp.org>
56667         passfd: Add comments.
56668         * lib/passfd.c: Add comments about platforms.
56670 2011-04-30  Bruno Haible  <bruno@clisp.org>
56672         sys_uio: Make <sys/uio.h> self-contained.
56673         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
56674         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
56676 2011-04-30  Bruno Haible  <bruno@clisp.org>
56678         sys_socket: Ensure 'struct iovec' definition.
56679         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
56680         <sys/socket.h>.
56681         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
56683 2011-04-30  Bruno Haible  <bruno@clisp.org>
56685         sys_uio: Protect definition of 'struct iovec'.
56686         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
56687         it as a C struct.
56689 2011-04-30  Bruno Haible  <bruno@clisp.org>
56691         manywarnings: fix indentation
56692         * m4/manywarnings.m4: Indent by 2 spaces consistently.
56694 2011-04-30  Pádraig Brady  <P@draigBrady.com>
56696         manywarnings: add -Wno-missing-field-initializers if needed.
56697         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
56698         option if it's needed to allow initialization with { 0, }
56700 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
56702         announce-gen: cosmetic improvement
56703         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
56705 2011-04-29  Jim Meyering  <meyering@redhat.com>
56707         vc-list-files: indent with spaces, not TABs
56708         * build-aux/vc-list-files: Convert leading TABs to spaces,
56709         to match the style of most other files in gnulib.
56711         announce-gen: indent with spaces, not TABs
56712         * build-aux/announce-gen: Convert all TABs to spaces, to match
56713         the style of most other files in gnulib.
56715 2011-04-29  Eric Blake  <eblake@redhat.com>
56717         quotearg: avoid uninitialized variable use
56718         * lib/quotearg.c (quoting_options_from_style): Initialize
56719         remaining fields, and ensure that custom styles are only used via
56720         quoting_options rather than quoting_style.
56722 2011-04-29  Jim Meyering  <meyering@redhat.com>
56724         maint.mk: remove unused VC-tag variable
56725         * top/maint.mk (VC-tag): Remove unused variable.
56727 2011-04-29  Bruno Haible  <bruno@clisp.org>
56729         netdb: fix gai_strerror replacements
56730         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
56731         * modules/netdb: Substitute it.
56733 2011-04-29  Jim Meyering  <meyering@redhat.com>
56735         test-getcwd.c: avoid new set-but-not-used warning
56736         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
56737         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
56738         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
56739         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
56741         test-hash.c: avoid a new shadowing warning
56742         * tests/test-hash.c (main): Don't shadow "dup".
56744 2011-04-28  Eric Blake  <eblake@redhat.com>
56746         getaddrinfo: fix gai_strerror signature
56747         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
56748         and work around mingw with UNICODE defined.
56749         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
56750         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
56751         * modules/netdb (Makefile.am): Substitute it.
56752         * lib/netdb.in.h (gai_strerror): Declare replacement.
56753         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
56754         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
56755         the fix.
56757         getsockopt: avoid compiler warning
56758         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
56759         Reported by Matthias Bolte.
56761         tests: drop unused link dependency
56762         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
56763         * modules/dirent-safer-tests (Makefile.am): Likewise.
56764         * modules/fdopendir-tests (Makefile.am): Likewise.
56765         * modules/mkfifoat-tests (Makefile.am): Likewise.
56766         * modules/openat-safer-tests (Makefile.am): Likewise.
56767         * modules/openat-tests (Makefile.am): Likewise.
56768         * modules/readlinkat-tests (Makefile.am): Likewise.
56769         * modules/symlinkat-tests (Makefile.am): Likewise.
56770         * modules/linkat-tests (Makefile.am): Likewise.
56771         (Depends-on): Switch to filenamecat-lgpl.
56772         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
56773         LIBINTL.
56774         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
56775         * tests/test-linkat.c (main): Don't require xalloc.
56777         hash, mgetgroups: drop xalloc dependency
56778         * lib/hash.c (includes): Adjust includes.
56779         * lib/mgetgroups.c (includes): Likewise.
56780         (xgetgroups): Move...
56781         * lib/xgetgroups.c: ...to new file.
56782         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
56783         * modules/xgetgroups: New file, split from...
56784         * modules/mgetgroups: ...here.
56785         (Depends-on): Add xalloc-oversized.
56786         * modules/hash (Depends-on): Likewise.
56787         * modules/hash-tests (Depends-on): Drop xalloc.
56788         (test_hash_LDADD): Drop unused library.
56789         * tests/test-hash.c (main): Break xalloc dependency.
56790         (includes): Drop unused include.
56792         xalloc-oversized: new module
56793         * modules/xalloc-oversized: New module.
56794         * modules/xalloc (Depends-on): Add it.
56795         * lib/xalloc.h (xalloc_oversized): Move...
56796         * lib/xalloc-oversized.h: ...into new file.
56798         utimecmp: drop dependency on xmalloc
56799         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
56800         due to memory pressure.
56801         * modules/utimecmp (Depends-on): Drop xalloc.
56803 2011-04-27  Eric Blake  <eblake@redhat.com>
56805         getcwd: fix mingw bugs
56806         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
56807         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
56808         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
56810 2011-04-27  Bruno Haible  <bruno@clisp.org>
56812         mkstemps: Ensure declaration on MacOS X 10.5.
56813         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
56814         * doc/glibc-functions/mkstemps.texi: Document header file problem on
56815         MacOS X.
56817 2011-04-27  Bruno Haible  <bruno@clisp.org>
56819         mkstemp: More documentation.
56820         * doc/posix-functions/mkstemp.texi: Document header file problem on
56821         MacOS X.
56823 2011-04-27  Bruno Haible  <bruno@clisp.org>
56825         mkstemp: Tweak configure message when cross-compiling.
56826         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
56827         result as a guess.
56829 2011-04-27  Bruno Haible  <bruno@clisp.org>
56831         clean-temp: Clarify what it does.
56832         * lib/clean-temp.h: Add more comments.
56833         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
56834         module.
56835         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
56836         * doc/glibc-functions/mkstemps.texi: Likewise.
56837         * doc/glibc-functions/mkostemps.texi: Likewise.
56839 2011-04-27  Eric Blake  <eblake@redhat.com>
56841         fchdir: avoid extra chdir and fix test
56842         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
56843         getcwd-lgpl.
56844         * lib/fchdir.c (get_name): Any absolute name will do; it does not
56845         have to be canonical.
56846         (canonicalize_file_name): Drop unused macro.
56847         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
56849         filenamecat-lgpl: fix licence
56850         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
56851         when it was first created.
56853         linkat, renameat: add missing dependency
56854         * modules/linkat (Depends-on): Require getcwd-lgpl.
56855         * modules/renameat (Depends-on): Likewise.
56857         tests: reduce dependencies
56858         * tests/test-linkat.c (main): Use lighter-weight getcwd.
56859         * tests/test-renameat.c (main): Likewise.
56860         * modules/linkat-tests (Depends-on): Relax dependency.
56861         * modules/renameat-tests (Depends-on): Likewise.
56862         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
56863         dependency explicit.
56865         save-cwd: reduce default dependency
56866         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
56867         * lib/save-cwd.c: Update comments.
56868         * NEWS: Document the semantic change.
56870         getcwd: enhance tests
56871         * tests/test-getcwd-lgpl.c: New file, taken from...
56872         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
56873         repeat long path stress tests from m4 probe.
56874         * modules/getcwd-lgpl-tests: New module.
56875         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
56876         * m4/getcwd-abort-bug.m4: Update comment.
56877         * m4/getcwd-path-max.m4: Likewise.
56879         getcwd-lgpl: new module
56880         * modules/getcwd-lgpl: New module.
56881         * lib/getcwd-lgpl.c: New file.
56882         * doc/posix-functions/getcwd.texi (getcwd): Document it.
56883         * MODULES.html.sh (lacking POSIX:2008): Likewise.
56884         * modules/getcwd (configure.ac): Set C witness.
56885         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
56887         getcwd: tweak comments
56888         * m4/getcwd-abort-bug.m4: Fix comments.
56889         * m4/getcwd-path-max.m4: Likewise.
56890         * m4/getcwd.m4: Likewise.
56892 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56893         and Eric Blake  <eblake@redhat.com>
56895         mkstemp: replace if system version uses wrong permissions
56896         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
56897         read/write mode bits set in file created by mkstemp.
56898         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
56900 2011-04-27  Eric Blake  <eblake@redhat.com>
56902         passfd: avoid compiler warning
56903         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
56904         Reported by Laine Stump.
56906 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
56908         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
56909         required by the NetBSD (and perhaps other 4.4BSD derived) join.
56911 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
56912         and Eric Blake  <eblake@redhat.com>
56914         mkstemp: mention clean-temp module
56915         * lib/mkstemp.c: Add comment.
56916         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
56918 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
56920         inttypes: also provide default values for 32-bit tests
56921         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
56922         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
56924 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
56926         strtoumax: remove dependency on strtoimax
56927         This is like the strtoull change of yesterday.
56928         * modules/strtoumax (Files): Add lib/strtoimax.c.
56929         (Depends-on): Remove strtoimax and add verify.
56931         inttypes-incomplete: new module
56932         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
56933         all but the PRI* and SCN* parts of gl_INTTYPES_H.
56934         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
56935         of gl_INTTYPES_H.
56936         (gl_INTTYPES_H): Rewrite in terms of these new macros.
56937         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
56938         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
56939         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
56940         * modules/strtoumax, modules/xstrtol (Depends-on):
56941         Depend on inttypes-incomplete, not inttypes.
56942         * modules/inttypes-incomplete: New module, containing the contents
56943         of the old modules/inttypes module, except that the Files: section
56944         omits m4/inttypes-pri.m4, and the configure.ac section invokes
56945         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
56946         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
56947         (Depends-on): Depend only on inttypes-incomplete.
56948         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
56950         inttypes: omit now-redundant strtoimax and strtoumax work
56951         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
56952         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
56954         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
56955         This supports apps that need pointers to strtoimax and strtoumax,
56956         and ports to HP-UX 11.00 64.bit, which has macros that expand to
56957         nonexistent functions.  See
56958         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00241.html>
56959         et seq.
56960         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
56961         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
56962         a macro.
56963         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
56965 2011-04-25  Simon Josefsson  <simon@josefsson.org>
56967         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
56969 2011-04-25  Bruno Haible  <bruno@clisp.org>
56971         strtol, strtoul: Mark modules as obsolete.
56972         * modules/strtol (Status, Notice): New sections.
56973         * modules/strtoul (Status, Notice): New sections.
56975 2011-04-25  Bruno Haible  <bruno@clisp.org>
56977         strtod: Remove check for strtod, unless supporting old platforms.
56978         * modules/strtod-obsolete: New file.
56979         * m4/strtod-obsolete.m4: New file.
56980         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
56981         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
56982         * modules/strtod (Depends-on): Add strtod-obsolete.
56983         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
56985 2011-04-25  Bruno Haible  <bruno@clisp.org>
56987         strcase: Make module obsolete.
56988         * modules/strcase (Status, Notice): New sections.
56990 2011-04-25  Bruno Haible  <bruno@clisp.org>
56992         dup2: Remove check for dup2, unless supporting old obsolete platforms.
56993         * modules/dup2-obsolete: New file.
56994         * m4/dup2-obsolete.m4: New file.
56995         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
56996         gl_FUNC_DUP2_OBSOLETE is not also defined.
56997         * modules/dup2 (Depends-on): Add dup2-obsolete.
56998         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
57000 2011-04-25  Bruno Haible  <bruno@clisp.org>
57002         strnlen: Avoid memchr related link error on old obsolete platforms.
57003         * modules/memchr-obsolete: New file.
57004         * m4/memchr-obsolete.m4: New file.
57005         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
57006         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
57007         * modules/memchr (Depends-on): Add memchr-obsolete.
57008         * modules/strnlen (Depends-on): Likewise.
57009         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
57011 2011-04-25  Jim Meyering  <meyering@redhat.com>
57013         maint.mk: makefile_at_at_check extend and clean up
57014         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
57015         in addition to */Makefile.am.
57016         Exempt legitimate uses of @VAR@ notation, e.g.,
57017         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
57018         Remove obsolete coreutils-specific comment.
57019         Prompted by discussion here:
57020         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
57022 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
57024         strtoul: remove dependency on strtol
57025         This is so that 'configure' need not check for strtol merely because
57026         the application needs strtoul.
57027         * modules/strtoul (Files): Add lib/strtol.c.
57028         (Depends-on): Remove strtol.
57030         strtoull: remove dependency on strtoul
57031         This is like the strtoll change.
57032         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
57033         (Depends-on): Remove strtoul.
57035         strtoll: remove dependency on strtol
57036         This is so that 'configure' need not check for strtol merely because
57037         the application needs strtoll.
57038         * modules/strtoll (Files): Add lib/strtol.c.
57039         (Depends-on): Remove strtol.
57041 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57043         inttypes: Move some configure check to module 'imaxdiv'.
57044         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
57045         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
57046         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
57048 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57050         inttypes: Move some configure check to module 'imaxabs'.
57051         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
57052         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
57053         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
57055 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57057         inttypes: Remove configure tests that are not needed since 2009-12-31.
57058         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
57059         gl_cv_header_working_inttypes_h.
57061 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
57063         * modules/strnlen (Depends-on): Remove memchr.
57064         The strnlen implementation doesn't need the memchr module's fixes; see
57065         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00237.html>.
57067         strtol: remove dependency on wchar
57068         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
57069         * modules/strtol (Depends-on): Remove wchar.
57071 2011-04-21  Eric Blake  <eblake@redhat.com>
57073         passfd: fix test regression on Linux
57074         * modules/passfd-tests (configure.ac): Correct socketpair check.
57076         passfd: speed up configure and drop unused code
57077         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
57078         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
57079         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
57080         Instead of probing at configure for unix_scm_rights_bsd44_way,
57081         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
57082         check to a struct member probe.
57083         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
57084         (sendfd, recvfd): Update preprocessor checks.
57085         * modules/passfd (Files): Reflect rename, and drop unused file.
57086         (Depends-on): Drop unused dependency.
57088         passfd: allow compilation on mingw
57089         * modules/sys_socket (Depends-on): Add sys_uio.
57090         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
57091         iovec and a minimal struct msghdr.
57092         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
57093         * tests/test-sys_socket.c (main): Enhance test.
57094         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
57095         guaranteed to provide what we need.
57096         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
57097         * modules/passfd-tests (Depends-on): Add sys_wait.
57098         * tests/test-passfd.c (main): Skip test on mingw, for now.
57099         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
57100         partial 'struct msghdr' implementation.
57102         sys_uio: new module
57103         * modules/sys_uio: New module.
57104         * modules/sys_uio-tests: Likewise.
57105         * lib/sys_uio.in.h: New file.
57106         * m4/sys_uio_h.m4: Likewise.
57107         * tests/test-sys_uio.c: Likewise.
57108         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
57109         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
57111 2011-04-20  Jim Meyering  <meyering@redhat.com>
57113         useless-if-before-free: avoid false-positive
57114         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
57115         disjunct so that it too requires a terminating ";".  Without that,
57116         this script would identify as useless one statement from gcc that
57117         was not:
57118           if (aligned_ptr)
57119             free (((void **) aligned_ptr) [-1]);
57121 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
57123         doc: update users.txt.
57124         * users.txt: Add barcode.
57126 2011-04-19  Bruno Haible  <bruno@clisp.org>
57128         ioctl: Remove link dependency on native Windows.
57129         * lib/fd-hook.h: Renamed from lib/close-hook.h.
57130         (gl_close_fn, gl_ioctl_fn): New types.
57131         (struct fd_hook): Renamed from struct close_hook. Change type of
57132         private_close_fn field. Add private_ioctl_fn field.
57133         (close_hook_fn): Add parameter for primary close method.
57134         (execute_close_hooks, execute_all_close_hooks): Likewise.
57135         (ioctl_hook_fn): New type.
57136         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
57137         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57138         argument.
57139         (unregister_fd_hook): Renamed from unregister_close_hook.
57140         * lib/fd-hook.c: Renamed from lib/close-hook.c.
57141         Don't include <unistd.h>.
57142         (close): Remove undef.
57143         (anchor): Update.
57144         (execute_close_hooks): Add argument for primary close method.
57145         (execute_all_close_hooks): Likewise.
57146         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
57147         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
57148         argument. Allow each argument to be NULL.
57149         (unregister_fd_hook): Renamed from unregister_close_hook.
57150         * lib/close.c (rpl_close): Pass 'close' function pointer to
57151         execute_all_close_hooks.
57152         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
57153         (primary_ioctl): New function.
57154         (ioctl): Don't call ioctlsocket here. Instead, call
57155         execute_all_ioctl_hooks.
57156         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
57157         close method.
57158         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
57159         (fd_sockets_hook): Renamed from close_sockets_hook.
57160         (gl_sockets_startup, gl_sockets_cleanup): Update.
57161         * modules/fd-hook: Renamed from modules/close-hook. Update.
57162         * modules/close (Depends-on): Add fd-hook, remove close-hook.
57163         * modules/sockets (Depends-on): Likewise.
57164         * modules/ioctl (Depends-on): Add fd-hook.
57165         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
57166         GNULIB_SOCKET.
57168 2011-04-19  Bruno Haible  <bruno@clisp.org>
57170         Move the support of O_NONBLOCK in open() to the 'open' module.
57171         * modules/nonblocking (Depends-on): Remove 'open'.
57172         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
57173         gl_cv_have_open_O_NONBLOCK.
57174         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
57175         O_NONBLOCK support.
57176         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
57178 2011-04-17  Bruno Haible  <bruno@clisp.org>
57180         pipe2: Simplify code.
57181         * lib/pipe2.c (pipe2): Reduce code duplication.
57183 2011-04-17  Bruno Haible  <bruno@clisp.org>
57185         nonblocking: Add comment.
57186         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
57188 2011-04-17  Bruno Haible  <bruno@clisp.org>
57190         nonblocking: Add tests for sockets.
57191         * tests/test-nonblocking-socket.sh: New file.
57192         * tests/test-nonblocking-socket-main.c: New file.
57193         * tests/test-nonblocking-socket-child.c: New file.
57194         * tests/test-nonblocking-socket.h: New file.
57195         * tests/socket-server.h: New file.
57196         * tests/socket-client.h: New file.
57197         * modules/nonblocking-socket-tests: New file.
57198         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
57200 2011-04-17  Bruno Haible  <bruno@clisp.org>
57202         nonblocking: Add tests for pipes.
57203         * tests/test-nonblocking-pipe.sh: New file.
57204         * tests/test-nonblocking-pipe-main.c: New file.
57205         * tests/test-nonblocking-pipe-child.c: New file.
57206         * tests/test-nonblocking-pipe.h: New file.
57207         * tests/test-nonblocking-writer.h: New file.
57208         * tests/test-nonblocking-reader.h: New file.
57209         * tests/test-nonblocking-misc.h: New file.
57210         * modules/nonblocking-pipe-tests: New file.
57211         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
57213 2011-04-16  Bruno Haible  <bruno@clisp.org>
57215         gettext: Clarify the needed programmer actions.
57216         * modules/gettext (Notice): New field.
57217         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
57219 2011-04-16  Bruno Haible  <bruno@clisp.org>
57221         strchrnul: Tweak last commit.
57222         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
57223         bug.
57224         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
57225         as in _GL_FUNCDECL_SYS.
57226         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
57227         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
57229 2011-04-15  Eric Blake  <eblake@redhat.com>
57231         strchrnul: work around cygwin bug
57232         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
57233         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
57234         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
57235         * modules/string (Makefile.am): Substitute it.
57236         * lib/string.in.h (strchrnul): Use it.
57238 2011-04-15  Bruno Haible  <bruno@clisp.org>
57240         Don't require lib/stdio-write.c when only module 'stdio' is used.
57241         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
57242         invocation.
57243         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
57245 2011-04-14  Bruno Haible  <bruno@clisp.org>
57247         Support non-blocking pipe I/O in read() on native Windows.
57248         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
57249         (read): New declaration.
57250         * lib/read.c: New file.
57251         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
57252         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
57253         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
57254         vscanf): New declarations.
57255         * lib/stdio-read.c: New file.
57256         * m4/read.m4: New file.
57257         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
57258         REPLACE_READ.
57259         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
57260         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57261         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
57262         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
57263         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
57264         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57265         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57266         * modules/read: New file.
57267         * modules/nonblocking (Files): Add lib/stdio-read.c.
57268         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
57269         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
57270         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
57271         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
57272         * modules/pread (Depends-on): Add read.
57273         * modules/safe-read (Depends-on): Likewise.
57274         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
57275         gets, scanf, vfscanf, vscanf): Verify signatures.
57276         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
57277         problem with non-blocking pipes.
57278         * doc/posix-functions/fgetc.texi: Likewise.
57279         * doc/posix-functions/fgets.texi: Likewise.
57280         * doc/posix-functions/fread.texi: Likewise.
57281         * doc/posix-functions/fscanf.texi: Likewise.
57282         * doc/posix-functions/getc.texi: Likewise.
57283         * doc/posix-functions/getchar.texi: Likewise.
57284         * doc/posix-functions/gets.texi: Likewise.
57285         * doc/posix-functions/scanf.texi: Likewise.
57286         * doc/posix-functions/vfscanf.texi: Likewise.
57287         * doc/posix-functions/vscanf.texi: Likewise.
57289 2011-04-14  Bruno Haible  <bruno@clisp.org>
57291         Support non-blocking pipe I/O in write() on native Windows.
57292         * lib/write.c (rpl_write): Split a write request that failed merely
57293         because the byte count was larger than the pipe buffer's size.
57294         * doc/posix-functions/write.texi: Mention the problem with large byte
57295         counts.
57297 2011-04-14  Bruno Haible  <bruno@clisp.org>
57299         wchar: Ensure that wchar_t gets defined on uClibc.
57300         * lib/wchar.in.h: On uClibc, include <stddef.h>.
57301         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
57303 2011-04-13  Bruno Haible  <bruno@clisp.org>
57305         safe-write, full-read: Avoid unnecessary compilation units.
57306         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
57307         (Depends-on): Remove safe-read. Add ssize_t.
57308         * modules/full-read (Files): Add lib/full-write.c.
57309         (Depends-on): Add full-write.
57311 2011-04-13  Bruno Haible  <bruno@clisp.org>
57313         Support non-blocking pipe I/O and SIGPIPE in pwrite().
57314         * modules/pwrite (Depends-on): Add 'write'.
57316 2011-04-13  Bruno Haible  <bruno@clisp.org>
57318         Support non-blocking pipe I/O in write() on native Windows.
57319         * lib/unistd.in.h (write): Enable replacement also if
57320         GNULIB_UNISTD_H_NONBLOCKING is 1.
57321         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
57322         (rpl_write): When failing to write on a non-blocking pipe, change
57323         errno from ENOSPC to EAGAIN.
57324         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
57325         putchar, puts, vfprintf, vprintf): Enable replacement also if
57326         GNULIB_STDIO_H_NONBLOCKING is 1.
57327         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
57328         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
57329         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
57330         CALL_WITH_SIGPIPE_EMULATION.
57331         (CALL_WITH_SIGPIPE_EMULATION): Use them.
57332         * m4/nonblocking.m4: New file.
57333         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
57334         for non-blocking I/O support.
57335         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
57336         GNULIB_UNISTD_H_NONBLOCKING.
57337         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
57338         required for non-blocking I/O support.
57339         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
57340         * modules/nonblocking (Files): Add m4/nonblocking.m4,
57341         lib/stdio-write.c, m4/asm-underscore.m4.
57342         (Depends-on): Add stdio, unistd.
57343         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
57344         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
57345         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
57346         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
57347         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
57348         problem with non-blocking pipes.
57349         * doc/posix-functions/fputc.texi: Likewise.
57350         * doc/posix-functions/fputs.texi: Likewise.
57351         * doc/posix-functions/fwrite.texi: Likewise.
57352         * doc/posix-functions/printf.texi: Likewise.
57353         * doc/posix-functions/putc.texi: Likewise.
57354         * doc/posix-functions/putchar.texi: Likewise.
57355         * doc/posix-functions/puts.texi: Likewise.
57356         * doc/posix-functions/vfprintf.texi: Likewise.
57357         * doc/posix-functions/vprintf.texi: Likewise.
57358         * doc/posix-functions/write.texi: Likewise.
57360 2011-04-10  Jim Meyering  <meyering@redhat.com>
57362         maint.mk: prohibit doubled words
57363         Detect them also when they're separated by a newline.
57364         There are 3 ways to customize it:
57365           - disable the test on a per file basis, as usual with rules using
57366             $(VC_LIST_EXCEPT)
57367           - replace the default doubled-word-selecting regexp (affects all files)
57368           - ignore a particular file-vs-doubled-word match
57369         I nearly used that last one to ignore the "is is" match in
57370         coreutils' NEWS file, since the text was "ls -is is ..."
57371         To do that, I would have added this line to cfg.mk:
57372           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
57373         but it would have ignored any "is is" match in NEWS.
57374         Low probability, but still...
57375         Instead, I changed the text, slightly:
57376           -  ls -is is now consistent with ls -lis in ignoring values returned
57377           +  "ls -is" is now consistent with ls -lis in ignoring values returned
57378         * top/maint.mk (prohibit_double_word_RE_): Provide default.
57379         (prohibit_doubled_word_): Define.
57380         (sc_prohibit_doubled_word): New rule.
57381         (sc_prohibit_the_the): Remove.  Subsumed by the above.
57383 2011-04-10  Jim Meyering  <meyering@redhat.com>
57385         maint: fix doubled-word typo in comment
57386         * m4/gethostname.m4: s/is is/it is/
57387         * m4/getdomainname.m4: Likewise.
57389 2011-04-10  Jim Meyering  <meyering@redhat.com>
57391         maint: remove doubled word: s/it it/it/
57392         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
57394 2011-04-10  Jim Meyering  <meyering@redhat.com>
57396         maint.mk: remove useless semicolon and backslash
57397         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
57398         semicolon and backslash.
57400 2011-04-10  Bruno Haible  <bruno@clisp.org>
57402         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
57403         * modules/stdint-tests (Depends-on): Add wchar.
57405 2011-04-10  Jim Meyering  <meyering@redhat.com>
57407         maint: remove doubled words in comments, e.g., s/a a/a/
57408         * lib/strptime.c (day_of_the_week): s/the the/the/
57409         * tests/test-chown.h (test_chown): s/a a/a/
57411         test-chown.h: correct a cast
57412         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
57413         when the destination is a stat.st_gid.
57415 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
57417         getaddrinfo: Fix test for sa_len member.
57418         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
57419         include <sys/types.h> before <sys/socket.h>.
57421 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
57423         maint: change "can not" to "cannot"
57424         * doc/posix-functions/iconv.texi (iconv): This one crossed line
57425         boundaries.
57427 2011-04-09  Jim Meyering  <meyering@redhat.com>
57429         maint: change "a a" to "a"
57430         * tests/test-lchown.h (test_lchown): s/a a/a/
57432         maint.mk: prohibit \<the the\>
57433         * top/maint.mk (sc_prohibit_the_the): New rule.
57435         maint: fix "the the" in comment
57436         * lib/count-one-bits.h: s/the the/the/
57438         maint: change "can not" to "cannot"
57439         But do not change the occurrences in maintain.texi or in
57440         build-aux/po/Makefile.in.in, which I presume comes from gettext.
57441         * doc/gnulib-tool.texi: s/can not/cannot/
57442         * doc/posix-functions/accept.texi (accept): Likewise.
57443         * doc/posix-functions/socket.texi (socket): Likewise.
57444         * lib/mbrtowc.c: Likewise.
57446         maint.mk: prohibit use of "can not"
57447         * top/maint.mk (sc_prohibit_can_not): New rule.
57448         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
57450 2011-04-09  Bruno Haible  <bruno@clisp.org>
57452         careadlinkat: Guard against misuse of careadlinkatcwd.
57453         * lib/careadlinkat.c: Include <stdlib.h>.
57454         (careadlinkatcwd): Check that the fd argument is as expected.
57456 2011-04-09  Bruno Haible  <bruno@clisp.org>
57458         careadlinkat: Use common coding style.
57459         * lib/careadlinkat.c: Move gnulib includes after system includes.
57461 2011-04-09  Bruno Haible  <bruno@clisp.org>
57463         careadlinkat: Clarify specification.
57464         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
57465         (careadlinkatcwd): Add comment.
57466         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
57468 2011-04-09  Bruno Haible  <bruno@clisp.org>
57470         areadlinkat: Avoid link error on many platforms.
57471         * modules/areadlinkat (Depends-on): Add areadlink.
57473 2011-04-09  Bruno Haible  <bruno@clisp.org>
57475         allocator, careadlinkat: Fix double-inclusion guard.
57476         * lib/allocator.h: Fix double-inclusion guard.
57477         * lib/careadlinkat.h: Likewise.
57479 2011-04-09  Bruno Haible  <bruno@clisp.org>
57481         relocatable-prog-wrapper: Update after module 'areadlink' changed.
57482         * lib/relocwrapper.c: Update dependencies hierarchy.
57483         * build-aux/install-reloc: Update list of files to be compiled.
57484         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
57485         lib/allocator.[hc].
57487 2011-04-08  Eric Blake  <eblake@redhat.com>
57489         strftime: silence gnulib-tool warning
57490         * modules/strftime-tests (Depends-on): Drop automatic dependency.
57492 2011-04-08  Bruno Haible  <bruno@clisp.org>
57494         verify: Fix syntax error with GCC 4.6 in C++ mode.
57495         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
57496         (HAVE_STATIC_ASSERT): New macro.
57497         (verify_true, verify): Use 'static_assert' if it is supported and
57498         '_Static_assert' is not supported.
57500 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
57502         allocator: New module.
57503         * modules/allocator, lib/allocator.c: New files.
57504         * lib/allocator.h (stdlib_allocator): New decl.
57505         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
57506         Remove.  Do not include <stdlib.h>.
57507         (careadlinkat): Use stdlib_allocator instead of rolling our own.
57508         * modules/careadlinkat (Files): Remove lib/allocator.h.
57509         (Depends-on): Add allocator.
57511         stdlib: let modules use system malloc, realloc
57512         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
57513         if !_GL_USE_STDLIB_ALLOC.
57514         (malloc, realloc): Limit this change to a smaller scope.
57516         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
57517         (malloc, realloc): Don't #undef; no longer needed.
57518         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57519         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57520         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57521         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57522         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57523         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57524         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
57525         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
57527         careadlinkat: rename members to avoid problem
57528         * lib/allocator.h (struct allocator): Rename members from
57529         malloc/realloc to allocate/reallocate, to avoid problems if malloc
57530         and realloc are #define'd.  Reported by Eric Blake in
57531         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00091.html>.
57532         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
57534 2011-04-08  Eric Blake  <eblake@redhat.com>
57536         nonblocking: reduce dependency
57537         * tests/test-nonblocking.c: Only test sockets when in use.
57538         * modules/nonblocking-tests (Depends-on): Drop socket.
57539         (Makefile.am): Link even if sockets are not present.
57540         * modules/pipe2-tests (Makefile.am): Likewise.
57541         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
57543         pipe2: fix O_NONBLOCK support on mingw
57544         * modules/pipe2 (Depends-on): Add nonblocking.
57545         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
57546         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
57547         * tests/test-nonblocking.c (main): Likewise.
57548         * modules/pipe2-tests (Makefile.am): Avoid link failure.
57550         fcntl-h: fix O_ACCMODE on cygwin
57551         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
57552         * lib/fcntl.in.h (O_ACCMODE): Fix it.
57554         pipe-filter: drop O_NONBLOCK workarounds
57555         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
57556         * modules/pipe-filter-ii (Depends-on): Likewise.
57557         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
57559         nonblocking: provide O_NONBLOCK for mingw
57560         * modules/nonblocking (Depends-on): Add open.
57561         (configure.ac): Set new witness macro.
57562         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
57563         * modules/fcntl-h (Makefile.am): Substitute it.
57564         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
57565         nonblocking module is in use.
57566         * lib/nonblocking.c: Adjust portability test.
57567         * lib/open.c (open): Don't let native open see gnulib flag.
57568         * tests/test-fcntl-h.c (main): Enhance test.
57569         * tests/test-open.h (test_open): Likewise.
57570         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
57572         careadlinkat: fix compilation error on mingw
57573         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
57574         within struct allocator.
57576 2011-04-06  Eric Blake  <eblake@redhat.com>
57578         binary-io: relicense under LGPLv2+
57579         * modules/binary-io (License): Relax to LGPLv2+.
57580         Requested for libvirt, and required by pipe2.
57582 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
57584         verify: use _Static_assert if available
57585         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
57586         (verify_true, verify): Use it if available.  This generates better
57587         diagnostics with GCC 4.6.0 and later.
57589 2011-04-05  Bruno Haible  <bruno@clisp.org>
57591         Remove leftover generated .h files after config.status changed.
57593         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
57594         GL_GENERATE_ALLOCA_H.
57595         * modules/alloca-opt (Makefile.am): Remove alloca.h if
57596         GL_GENERATE_ALLOCA_H evaluates to false.
57598         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
57599         GL_GENERATE_ARGZ_H.
57600         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
57601         evaluates to false.
57603         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
57604         GL_GENERATE_BYTESWAP_H.
57605         * modules/byteswap (Makefile.am): Remove byteswap.h if
57606         GL_GENERATE_BYTESWAP_H evaluates to false.
57608         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
57609         GL_GENERATE_ERRNO_H.
57610         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
57611         evaluates to false.
57613         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
57614         GL_GENERATE_FLOAT_H.
57615         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
57616         evaluates to false.
57618         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
57619         GL_GENERATE_FNMATCH_H.
57620         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
57621         GL_GENERATE_FNMATCH_H evaluates to false.
57623         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
57624         GL_GENERATE_GLOB_H.
57625         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
57626         evaluates to false.
57628         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
57629         automake conditional GL_GENERATE_ICONV_H.
57630         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
57631         evaluates to false.
57633         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
57634         GL_GENERATE_NETINET_IN_H.
57635         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
57636         GL_GENERATE_NETINET_IN_H evaluates to false.
57638         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
57639         conditional GL_GENERATE_PTHREAD_H.
57640         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
57641         * modules/pthread (Makefile.am): Remove pthread.h if
57642         GL_GENERATE_PTHREAD_H evaluates to false.
57644         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
57645         GL_GENERATE_SCHED_H.
57646         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
57647         evaluates to false.
57649         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
57650         conditional GL_GENERATE_SELINUX_CONTEXT_H.
57651         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
57652         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
57654         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
57655         GL_GENERATE_STDARG_H.
57656         * modules/stdarg (Makefile.am): Remove stdarg.h if
57657         GL_GENERATE_STDARG_H evaluates to false.
57659         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
57660         GL_GENERATE_STDBOOL_H.
57661         * modules/stdbool (Makefile.am): Remove stdbool.h if
57662         GL_GENERATE_STDBOOL_H evaluates to false.
57664         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
57665         conditional GL_GENERATE_STDDEF_H.
57666         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
57667         * modules/stddef (Makefile.am): Remove stddef.h if
57668         GL_GENERATE_STDDEF_H evaluates to false.
57670         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
57671         GL_GENERATE_STDINT_H.
57672         * modules/stdint (Makefile.am): Remove stdint.h if
57673         GL_GENERATE_STDINT_H evaluates to false.
57675         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
57676         GL_GENERATE_SYSEXITS_H.
57677         * modules/sysexits (Makefile.am): Remove sysexits.h if
57678         GL_GENERATE_SYSEXITS_H evaluates to false.
57680         Reported by Karl Berry and Ralf Wildenhues.
57682 2011-04-05  Bruno Haible  <bruno@clisp.org>
57684         Ensure to rebuild generated .h files when config.status has changed.
57685         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
57686         config.status.
57687         * modules/ctype (Makefile.am): Likewise.
57688         * modules/dirent (Makefile.am): Likewise.
57689         * modules/errno (Makefile.am): Likewise.
57690         * modules/fcntl-h (Makefile.am): Likewise.
57691         * modules/float (Makefile.am): Likewise.
57692         * modules/getopt-posix (Makefile.am): Likewise.
57693         * modules/glob (Makefile.am): Likewise.
57694         * modules/iconv-h (Makefile.am): Likewise.
57695         * modules/inttypes (Makefile.am): Likewise.
57696         * modules/langinfo (Makefile.am): Likewise.
57697         * modules/locale (Makefile.am): Likewise.
57698         * modules/math (Makefile.am): Likewise.
57699         * modules/netdb (Makefile.am): Likewise.
57700         * modules/netinet_in (Makefile.am): Likewise.
57701         * modules/poll-h (Makefile.am): Likewise.
57702         * modules/pthread (Makefile.am): Likewise.
57703         * modules/pty (Makefile.am): Likewise.
57704         * modules/sched (Makefile.am): Likewise.
57705         * modules/search (Makefile.am): Likewise.
57706         * modules/selinux-h (Makefile.am): Likewise.
57707         * modules/signal (Makefile.am): Likewise.
57708         * modules/spawn (Makefile.am): Likewise.
57709         * modules/stdarg (Makefile.am): Likewise.
57710         * modules/stdbool (Makefile.am): Likewise.
57711         * modules/stddef (Makefile.am): Likewise.
57712         * modules/stdint (Makefile.am): Likewise.
57713         * modules/stdio (Makefile.am): Likewise.
57714         * modules/stdlib (Makefile.am): Likewise.
57715         * modules/string (Makefile.am): Likewise.
57716         * modules/strings (Makefile.am): Likewise.
57717         * modules/sys_file (Makefile.am): Likewise.
57718         * modules/sys_ioctl (Makefile.am): Likewise.
57719         * modules/sys_select (Makefile.am): Likewise.
57720         * modules/sys_socket (Makefile.am): Likewise.
57721         * modules/sys_stat (Makefile.am): Likewise.
57722         * modules/sys_time (Makefile.am): Likewise.
57723         * modules/sys_times (Makefile.am): Likewise.
57724         * modules/sys_utsname (Makefile.am): Likewise.
57725         * modules/sys_wait (Makefile.am): Likewise.
57726         * modules/sysexits (Makefile.am): Likewise.
57727         * modules/termios (Makefile.am): Likewise.
57728         * modules/time (Makefile.am): Likewise.
57729         * modules/unistd (Makefile.am): Likewise.
57730         * modules/wchar (Makefile.am): Likewise.
57731         * modules/wctype-h (Makefile.am): Likewise.
57732         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
57734 2011-04-05  Bruno Haible  <bruno@clisp.org>
57736         pipe2: Relicense under LGPLv2+.
57737         * modules/pipe2 (License): Change to LGPLv2+.
57738         Requested by Eric Blake, for libvirt.
57740 2011-04-05  Bruce Korb  <bkorb@gnu.org>
57742         bootstrap: compute gnulib_extra_files after updating build_aux
57743         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
57744         change build_aux or also supply gnulib_extra_files.  Handle correctly.
57746 2011-04-05  Eric Blake  <eblake@redhat.com>
57748         bootstrap: preserve git whitelist item sorting
57749         * build-aux/bootstrap (sort_patterns): New function.
57750         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
57752 2011-04-05  Simon Josefsson  <simon@josefsson.org>
57754         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
57755         sc_space_tab check.
57757 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
57759         areadlink, areadlinkat: rewrite in terms of careadlinkat
57760         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
57761         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
57762         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
57763         (malloc, realloc): Remove #undefs.
57764         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
57765         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
57766         readlink, ssize_t, stdint, unistd.
57767         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
57768         areadlink, stdint.
57770         careadlinkat: new module
57771         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
57772         * modules/careadlinkat: New files, written by me with
57773         a review and feedback from Ben Pfaff in
57774         <http://lists.gnu.org/r/bug-gnulib/2011-04/msg00008.html>.
57776 2011-04-01  Bruno Haible  <bruno@clisp.org>
57778         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
57779         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
57780         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
57781         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
57782         Reported by Bruce Korb <bruce.korb@gmail.com>.
57784 2011-04-01  Bruno Haible  <bruno@clisp.org>
57786         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
57787         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
57788         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
57789         * modules/wcpcpy (Depends-on): Add extensions.
57790         * modules/wcpncpy (Depends-on): Likewise.
57791         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
57792         systems.
57793         * doc/posix-functions/wcpncpy.texi: Likewise.
57794         * doc/posix-functions/wcwidth.texi: Likewise.
57796 2011-03-31  Eric Blake  <eblake@redhat.com>
57798         nonblocking: fix mingw test failures
57799         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
57800         non-blocking flag on regular file.
57801         (get_nonblocking_flag): Set errno on invalid fd.
57802         * tests/test-nonblocking.c (main): Avoid test failure on
57803         directories if fchdir is not active.
57804         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
57806 2011-03-31  Bruno Haible  <bruno@clisp.org>
57808         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
57809         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
57810         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
57811         Reported by Simon Josefsson <simon@josefsson.org>.
57813 2011-03-31  Bruno Haible  <bruno@clisp.org>
57814         and Eric Blake  <eblake@redhat.com>
57816         nonblocking: new module
57817         * modules/nonblocking: New module.
57818         * modules/nonblocking-tests: Likewise.
57819         * lib/nonblocking.h: New file.
57820         * lib/nonblocking.c: Likewise.
57821         * tests/test-nonblocking.c: New test.
57822         * lib/ioctl.c (ioctl) [mingw]: Update comment.
57824 2011-03-30  Bruno Haible  <bruno@clisp.org>
57826         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
57827         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
57828         instead of 'printf' format for GCC >= 4.4.
57829         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
57830         (fprintf, printf, vfprintf, vprintf): Declare with
57831         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
57832         the system's vfprintf() function.
57833         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
57835 2011-03-30  Eric Blake  <eblake@redhat.com>
57837         passfd: fix scoping bug
57838         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
57839         before sendmsg/recvmsg.
57841         passfd: standardize coding conventions
57842         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
57843         can be learned at compile time.
57844         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
57845         ifdefs.
57846         (sendfd, recvfd): Follow gnulib code conventions.
57848         passfd: fix incorrect sendmsg arguments
57849         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
57850         incorrect msg_controllen value.
57851         * modules/passfd-tests (Depends-on): Check for alarm.
57852         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
57853         Reported by Bastien ROUCARIES.
57855 2011-03-30  Bruno Haible  <bruno@clisp.org>
57857         c-strcasestr: Relicense under LGPLv2+.
57858         * modules/c-strcasestr (License): Change to LGPLv2+.
57859         Requested by Eric Blake, for libvirt.
57861 2011-03-30  Simon Josefsson  <simon@josefsson.org>
57863         * users.txt: Add libidn2.  Fix libtasn1 link.
57865 2011-03-30  Jim Meyering  <meyering@redhat.com>
57867         tests: readlink* ("",... fails with EINVAL on newer kernels
57868         readlink and readlinkat have typically failed with ENOENT for
57869         the invalid, empty file name,  "".  However, with the advent
57870         of linux-2.6.39, they fail with EINVAL.
57871         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
57872         when operating on the empty file name.
57873         * tests/test-readlink.h (test_readlink): Likewise.
57875 2011-03-29  Bruno Haible  <bruno@clisp.org>
57877         Relicense some modules under LGPLv2+, for libidn2.
57878         * modules/array-mergesort (License): Change to LGPLv2+.
57879         * modules/c-strcaseeq (License): Likewise.
57880         * modules/striconveh (License): Likewise.
57881         * modules/striconveha (License): Likewise.
57882         * modules/uniconv/base (License): Likewise.
57883         * modules/uniconv/u8-conv-from-enc (License): Likewise.
57884         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
57885         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
57886         * modules/unictype/base (License): Likewise.
57887         * modules/unictype/bidiclass-of (License): Likewise.
57888         * modules/unictype/category-M (License): Likewise.
57889         * modules/unictype/category-none (License): Likewise.
57890         * modules/unictype/category-of (License): Likewise.
57891         * modules/unictype/category-test (License): Likewise.
57892         * modules/unictype/category-test-withtable (License): Likewise.
57893         * modules/unictype/combining-class (License): Likewise.
57894         * modules/unictype/joiningtype-of (License): Likewise.
57895         * modules/unictype/scripts (License): Likewise.
57896         * modules/uninorm/base (License): Likewise.
57897         * modules/uninorm/canonical-decomposition (License): Likewise.
57898         * modules/uninorm/composition (License): Likewise.
57899         * modules/uninorm/decompose-internal (License): Likewise.
57900         * modules/uninorm/decomposition-table (License): Likewise.
57901         * modules/uninorm/nfc (License): Likewise.
57902         * modules/uninorm/nfd (License): Likewise.
57903         * modules/uninorm/u32-normalize (License): Likewise.
57904         * modules/unistr/base (License): Likewise.
57905         * modules/unistr/u32-cpy (License): Likewise.
57906         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
57907         * modules/unistr/u32-to-u8 (License): Likewise.
57908         * modules/unistr/u32-uctomb (License): Likewise.
57909         * modules/unistr/u8-check (License): Likewise.
57910         * modules/unistr/u8-mblen (License): Likewise.
57911         * modules/unistr/u8-mbtouc (License): Likewise.
57912         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
57913         * modules/unistr/u8-mbtoucr (License): Likewise.
57914         * modules/unistr/u8-prev (License): Likewise.
57915         * modules/unistr/u8-strlen (License): Likewise.
57916         * modules/unistr/u8-to-u32 (License): Likewise.
57917         * modules/unistr/u8-uctomb (License): Likewise.
57918         * modules/unitypes (License): Likewise.
57919         Requested by Simon Josefsson.
57921 2011-03-29  Simon Josefsson  <simon@josefsson.org>
57923         lib-symbol-visibility: Add a notice.
57924         * modules/lib-symbol-visibility (Notice): New field.
57926 2011-03-29  Bruno Haible  <bruno@clisp.org>
57928         getaddrinfo: Doc fix.
57929         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
57930         section "fixed in Gnulib".
57932 2011-03-28  Simon Josefsson  <simon@josefsson.org>
57934         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
57935         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
57937 2011-03-26  Bruno Haible  <bruno@clisp.org>
57939         unictype/property-byname: Reduce the number of load-time relocations.
57940         * lib/unictype/pr_byname.c: Include <stdlib.h>.
57941         (UC_PROPERTY_INDEX_*): New enumeration values.
57942         (uc_property_byname): Convert an index from the lookup table to an
57943         uc_property_t.
57944         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
57945         values.
57947 2011-03-26  Bruno Haible  <bruno@clisp.org>
57949         unictype/property-byname: Allow omitted word separators and aliases.
57950         * lib/unictype/pr_byname.gperf: Add property names without word
57951         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
57952         for 'space'.
57954 2011-03-26  Bruno Haible  <bruno@clisp.org>
57956         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
57957         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
57958         also hyphens to space.
57959         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
57960         without spaces.
57961         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
57963 2011-03-26  Bruno Haible  <bruno@clisp.org>
57965         unictype/joiningtype-byname: Recognize long names as well.
57966         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
57967         a long name.
57968         * lib/unictype/joiningtype_byname.c: Include <string.h>,
57969         unictype/joiningtype_byname.h.
57970         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
57971         * lib/unictype/joiningtype_byname.gperf: New file.
57972         * modules/unictype/joiningtype-byname (Files): Add
57973         lib/unictype/joiningtype_byname.gperf.
57974         (Depends-on): Add gperf.
57975         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
57976         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
57977         long names.
57979         Tests for module 'unictype/joiningtype-longname'.
57980         * modules/unictype/joiningtype-longname-tests: New file.
57981         * tests/unictype/test-joiningtype_longname.c: New file.
57983         New module 'unictype/joiningtype-longname'.
57984         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
57985         * lib/unictype/joiningtype_longname.c: New file.
57986         * modules/unictype/joiningtype-longname: New file.
57987         * modules/unictype/joiningtype-all (Depends-on): Add
57988         unictype/joiningtype-longname.
57990 2011-03-26  Bruno Haible  <bruno@clisp.org>
57992         unictype/bidiclass-byname: Recognize long names as well.
57993         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
57994         name.
57995         * lib/unictype/bidi_byname.c: Include <string.h>,
57996         unictype/bidi_byname.h.
57997         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
57998         * lib/unictype/bidi_byname.gperf: New file.
57999         * modules/unictype/bidiclass-byname (Files): Add
58000         lib/unictype/bidi_byname.gperf.
58001         (Depends-on): Add gperf.
58002         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
58003         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
58004         long names.
58006         Tests for module 'unictype/bidiclass-longname'.
58007         * modules/unictype/bidiclass-longname-tests: New file.
58008         * tests/unictype/test-bidi_longname.c: New file.
58010         New module 'unictype/bidiclass-longname'.
58011         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
58012         * lib/unictype/bidi_longname.c: New file.
58013         * modules/unictype/bidiclass-longname: New file.
58014         * modules/unictype/bidiclass-all (Depends-on): Add
58015         unictype/bidiclass-longname.
58017 2011-03-26  Bruno Haible  <bruno@clisp.org>
58019         unictype/bidi*: Rename modules.
58020         * modules/unictype/bidiclass-all: Renamed from
58021         modules/unictype/bidicategory-all.
58022         * modules/unictype/bidiclass-name: Renamed from
58023         modules/unictype/bidiclass-name.
58024         (Description): Update.
58025         * modules/unictype/bidiclass-name-tests: Renamed from
58026         modules/unictype/bidicategory-name-tests.
58027         * modules/unictype/bidiclass-byname: Renamed from
58028         modules/unictype/bidicategory-byname.
58029         (Description): Update.
58030         * modules/unictype/bidiclass-byname-tests: Renamed from
58031         modules/unictype/bidicategory-byname-tests.
58032         * modules/unictype/bidiclass-of: Renamed from
58033         modules/unictype/bidicategory-of.
58034         (Description): Update.
58035         * modules/unictype/bidiclass-of-tests: Renamed from
58036         modules/unictype/bidicategory-of-tests.
58037         * modules/unictype/bidiclass-test: Renamed from
58038         modules/unictype/bidicategory-test.
58039         (Description): Update.
58040         * modules/unictype/bidiclass-test-tests: Renamed from
58041         modules/unictype/bidicategory-test-tests.
58042         * modules/unictype/bidicategory-all: New file, a simple redirection.
58043         * modules/unictype/bidicategory-name: Likewise.
58044         * modules/unictype/bidicategory-byname: Likewise.
58045         * modules/unictype/bidicategory-of: Likewise.
58046         * modules/unictype/bidicategory-test: Likewise.
58047         * modules/unictype/property-bidi-* (Dependencies): Update.
58048         * lib/unictype/bidi_*.c: Update comment.
58050 2011-03-26  Bruno Haible  <bruno@clisp.org>
58052         unictype/bidi*: Rename functions, part 2.
58053         * modules/unictype/bidicategory-name (configure.ac): Update required
58054         libunistring version.
58055         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
58057 2011-03-25  Bruno Haible  <bruno@clisp.org>
58059         New module 'unictype/combining-class-all'.
58060         * modules/unictype/combining-class-all: New file.
58062         Tests for module 'unictype/combining-class-byname'.
58063         * modules/unictype/combining-class-byname-tests: New file.
58064         * tests/unictype/test-combiningclass_byname.c: New file.
58066         New module 'unictype/combining-class-byname'.
58067         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
58068         * lib/unictype/combiningclass_byname.c: New file.
58069         * lib/unictype/combiningclass_byname.gperf: New file.
58070         * modules/unictype/combining-class-byname: New file.
58072         Tests for module 'unictype/combining-class-longname'.
58073         * modules/unictype/combining-class-longname-tests: New file.
58074         * tests/unictype/test-combiningclass_longname.c: New file.
58076         New module 'unictype/combining-class-longname'.
58077         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
58078         * lib/unictype/combiningclass_longname.c: New file.
58079         * modules/unictype/combining-class-longname: New file.
58081         Tests for module 'unictype/combining-class-name'.
58082         * modules/unictype/combining-class-name-tests: New file.
58083         * tests/unictype/test-combiningclass_name.c: New file.
58085         New module 'unictype/combining-class-name'.
58086         * lib/unictype.in.h (uc_combining_class_name): New declaration.
58087         * lib/unictype/combiningclass_name.c: New file.
58088         * modules/unictype/combining-class-name: New file.
58090 2011-03-25  Bruno Haible  <bruno@clisp.org>
58092         unictype/combining-class: Rename source files.
58093         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
58094         of unictype/combining.h.
58095         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
58096         Update.
58097         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
58098         * modules/unictype/combining-class (Description): Fix.
58099         (Files, Makefile.am): Update.
58100         * tests/unictype/test-combiningclass.c: Renamed from
58101         tests/unictype/test-combining.c.
58102         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
58104 2011-03-25  Bruno Haible  <bruno@clisp.org>
58106         unictype: Update list of canonical combining classes.
58107         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
58109 2011-03-25  Bruno Haible  <bruno@clisp.org>
58111         unictype/category-byname: Recognize long names as well.
58112         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
58113         a long name.
58114         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
58115         unictype/categ_byname.h.
58116         (UC_CATEGORY_INDEX_*): New enumeration values.
58117         (uc_general_category_byname): Use uc_general_category_lookup and
58118         convert from index to value.
58119         * lib/unictype/categ_byname.gperf: New file.
58120         * modules/unictype/category-byname (Files): Add
58121         lib/unictype/categ_byname.gperf.
58122         (Depends-on): Add gperf.
58123         (Makefile.am): Add rule for generating unictype/categ_byname.h.
58124         * tests/unictype/test-categ_byname.c (main): Test the recognition of
58125         long names.
58127         Tests for module 'unictype/category-longname'.
58128         * modules/unictype/category-longname-tests: New file.
58129         * tests/unictype/test-categ_longname.c: New file.
58131         New module 'unictype/category-longname'.
58132         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
58133         * lib/unictype/categ_longname.c: New file.
58134         * modules/unictype/category-longname: New file.
58135         * modules/unictype/category-all (Depends-on): Add it.
58137 2011-03-25  Bruno Haible  <bruno@clisp.org>
58139         Tests for module 'unictype/category-LC'.
58140         * modules/unictype/category-LC-tests: New file.
58141         * tests/unictype/test-categ_LC.c: New file, automatically generated.
58143         New module 'unictype/category-LC'.
58144         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
58145         (UC_CATEGORY_LC): New declaration.
58146         (UC_CASED_LETTER): New macro.
58147         * lib/gen-uni-tables.c (is_category_LC): New function.
58148         (output_categories): Also handle category LC.
58149         (UC_CATEGORY_MASK_LC): New enumeration value.
58150         (general_category_byname): Also handle category LC.
58151         * lib/unictype/categ_LC.c: New file.
58152         * lib/unictype/categ_LC.h: New file, automatically generated.
58153         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
58154         category LC.
58155         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
58156         * modules/unictype/category-LC: New file.
58157         * modules/unictype/category-byname (Depends-on): Add
58158         unictype/category-LC.
58159         * modules/unictype/category-all (Depends-on): Likewise.
58161 2011-03-25  Eric Blake  <eblake@redhat.com>
58163         xmalloc: revert yesterday's regression
58164         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
58165         realloc's underlying behavior (allowing allocation of zero-size
58166         objects, especially if malloc-gnu is also in use).
58168 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
58170         maint.mk: add missing version to VC-tag
58171         * top/maint.mk: git tag was missing actual tag name; add it.
58173         valgrind: do leak checking, and exit with code 1 on error (not 0)
58174         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
58175         to VALGRIND.
58177 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
58179         posix-modules: say what it does.
58180         * posix-modules: Add a line to the --help output saying what it does.
58182 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
58184         xmalloc: Do not leak if underlying realloc is C99 compatible.
58185         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
58186         This avoids a leak on C99-based systems.  See
58187         <http://lists.gnu.org/r/bug-gnulib/2011-03/msg00243.html>.
58189 2011-03-24  Eric Blake  <eblake@redhat.com>
58191         realloc: document portability problem
58192         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
58193         passing 0 size to realloc.
58195 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
58197         doc: update users.txt
58198         * users.txt: Add cvsps, tmpwatch
58200 2011-03-23  Matt Rice  <ratmice@gmail.com>
58202         doc: update users.txt
58203         * users.txt: Add gdb.
58205 2011-03-23  Jim Meyering  <meyering@redhat.com>
58207         doc: update users.txt
58208         Looking through matches up to the following URL (there are still
58209         several more pages), I found several projects that use gnulib:
58210         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
58211         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
58212         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
58214 2011-03-22  Bruno Haible  <bruno@clisp.org>
58216         unictype/bidi*: Rename functions.
58217         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
58218         uc_bidi_class, uc_is_bidi_class): New declarations.
58219         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
58220         uc_bidi_category_byname.
58221         (uc_bidi_category_byname): New function.
58222         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
58223         u_bidi_category_name.
58224         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
58225         (uc_bidi_category_name): New function.
58226         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
58227         uc_bidi_category.
58228         (uc_bidi_category): New function.
58229         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
58230         uc_is_bidi_category. Invoke uc_bidi_class.
58231         (uc_is_bidi_category): New function.
58232         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
58233         instead of uc_bidi_category_byname.
58234         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
58235         instead of uc_bidi_category_name.
58236         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
58237         uc_bidi_category.
58238         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
58239         instead of uc_is_bidi_category.
58241 2011-03-21  Bruno Haible  <bruno@clisp.org>
58243         New module 'unictype/joininggroup-all'.
58244         * modules/unictype/joininggroup-all: New file.
58246         Tests for module 'unictype/joininggroup-of'.
58247         * modules/unictype/joininggroup-of-tests: New file.
58248         * tests/unictype/test-joininggroup_of.c: New file.
58249         * tests/unictype/test-joininggroup_of.h: New file, automatically
58250         generated by gen-uni-tables.
58252         New module 'unictype/joininggroup-of'.
58253         * modules/unictype/joininggroup-of: New file.
58254         * lib/unictype/joininggroup_of.c: New file.
58255         * lib/unictype/joininggroup_of.h: New file, automatically generated by
58256         gen-uni-tables.
58258         Tests for module 'unictype/joininggroup-byname'.
58259         * modules/unictype/joininggroup-byname-tests: New file.
58260         * tests/unictype/test-joininggroup_byname.c: New file.
58262         New module 'unictype/joininggroup-byname'.
58263         * modules/unictype/joininggroup-byname: New file.
58264         * lib/unictype/joininggroup_byname.c: New file.
58265         * lib/unictype/joininggroup_byname.gperf: New file.
58267         Tests for module 'unictype/joininggroup-name'.
58268         * modules/unictype/joininggroup-name-tests: New file.
58269         * tests/unictype/test-joininggroup_name.c: New file.
58271         New module 'unictype/joininggroup-name'.
58272         * modules/unictype/joininggroup-name: New file.
58273         * lib/unictype/joininggroup_name.c: New file.
58274         * lib/unictype/joininggroup_name.h: New file.
58276         New module 'unictype/joiningtype-all'.
58277         * modules/unictype/joiningtype-all: New file.
58279         Tests for module 'unictype/joiningtype-of'.
58280         * modules/unictype/joiningtype-of-tests: New file.
58281         * tests/unictype/test-joiningtype_of.c: New file.
58282         * tests/unictype/test-joiningtype_of.h: New file, automatically
58283         generated by gen-uni-tables.
58285         New module 'unictype/joiningtype-of'.
58286         * modules/unictype/joiningtype-of: New file.
58287         * lib/unictype/joiningtype_of.c: New file.
58288         * lib/unictype/joiningtype_of.h: New file, automatically generated by
58289         gen-uni-tables.
58291         Tests for module 'unictype/joiningtype-byname'.
58292         * modules/unictype/joiningtype-byname-tests: New file.
58293         * tests/unictype/test-joiningtype_byname.c: New file.
58295         New module 'unictype/joiningtype-byname'.
58296         * modules/unictype/joiningtype-byname: New file.
58297         * lib/unictype/joiningtype_byname.c: New file.
58299         Tests for module 'unictype/joiningtype-name'.
58300         * modules/unictype/joiningtype-name-tests: New file.
58301         * tests/unictype/test-joiningtype_name.c: New file.
58303         New module 'unictype/joiningtype-name'.
58304         * modules/unictype/joiningtype-name: New file.
58305         * lib/unictype/joiningtype_name.c: New file.
58307         unictype: Add support for Arabic shaping properties.
58308         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
58309         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
58310         declarations.
58311         (UC_JOINING_GROUP_*): New enumeration values.
58312         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
58313         declarations.
58314         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
58315         (unicode_joining_type): New variable.
58316         (UC_JOINING_GROUP_*): New enumeration values.
58317         (unicode_joining_group): New variable.
58318         (fill_arabicshaping, joining_type_as_c_identifier,
58319         output_joining_type_test, output_joining_type,
58320         joining_group_as_c_identifier, output_joining_group_test,
58321         output_joining_group): New functions.
58322         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
58323         fill_arabicshaping and output_joining_type_test, output_joining_type,
58324         output_joining_group_test, output_joining_group.
58325         Reported by Simon Josefsson.
58327 2011-03-21  Jim Meyering  <meyering@redhat.com>
58329         strftime: fix a bug in yesterday's change
58330         * lib/strftime.c (add): Accommodate width's initial value of -1.
58331         Otherwise, nstrftime would copy uninitialized data into
58332         the result buffer.
58334 2011-03-21  Jim Meyering  <meyering@redhat.com>
58336         tests: add strftime-tests module
58337         * tests/test-strftime.c: New file.
58338         * modules/strftime-tests: New module.
58340 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58342         strftime: don't assume a byte count fits in 'int'
58343         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
58344         found this problem by static analysis, using gcc -Wstrict-overflow
58345         (GCC 4.5.2, x86-64).  This reported an optimization that depended
58346         on an integer overflow having undefined behavior, but it turns out
58347         that the argument is a size, which might not fit in 'int' anyway,
58349 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58351         stdio: don't require ignore_value around fwrite
58353         This patch works around libc bug 11959
58354         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
58355         Without this patch, applications must often write
58356         ignore_value (fwrite (...)) even though the ignore_value is
58357         not helpful here.  It's common to write many objects, using
58358         fwrite/printf/etc., and then use ferror to detect output error.
58360         I considered making this patch optional, but decided against it,
58361         because libc is obviously being inconsistent here: there is no
58362         reason libc should insist that user code must inspect fwrite
58363         return's value without also insisting that it inspect printf's,
58364         putchar's, etc.  If user code wants to have a strict style where
58365         all these functions' values are checked (so that ferror need not
58366         be checked), we could add support for that style in a new gnulib
58367         module, but in the meantime it's better to be consistent and to
58368         support common usage.
58370         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
58371         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
58372         that we are compiling in checking mode, and if not C++, and
58373         if not already wrapping fwrite for some other reason.
58374         (fwrite): #define to rpl_fwrite if the latter is defined.
58376 2011-03-20  Bruno Haible  <bruno@clisp.org>
58378         verror: Fix compilation error introduced on 2011-02-13.
58379         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
58380         instead of __attribute__.
58381         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
58383 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
58384             Bruno Haible  <bruno@clisp.org>
58386         socklen: do not depend on sys_socket
58387         While trying to modify Emacs to use gnulib's socklen module,
58388         I discovered a circular dependency: socklen depends on sys_socket
58389         and vice versa.  Emacs can use socklen, but it does not need
58390         sys_socket because it has its own substitute for sys/socket.h.
58391         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
58392         gl_TYPE_SOCKLEN_T.
58393         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
58394         gl_PREREQ_SYS_H_SOCKET.
58395         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
58396         gl_PREREQ_SYS_H_SOCKET.
58397         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
58398         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
58399         * modules/socklen (Depends-on): Do not depend on sys_socket.
58400         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
58402 2011-03-20  Jim Meyering  <meyering@redhat.com>
58404         maint.mk: sort file names *after* new transformation
58405         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
58406         prefix would have led to an unwarranted failure in GNU parted.
58407         Sort after that transformation.
58409 2011-03-19  Jim Meyering  <meyering@redhat.com>
58411         maint.mk: fix po-file syntax-check rule
58412         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
58413         Patch by Bruno Haible.
58415 2011-03-19  Bruno Haible  <bruno@clisp.org>
58417         socklen: Update comment.
58418         * m4/socklen.m4: Update comment about platforms.
58420 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58421             Bruno Haible  <bruno@clisp.org>
58423         inet_ntop, inet_pton: Simplify.
58424         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
58425         documented to provide socklen_t and we already depend on sys_socket.
58426         * modules/inet_pton (Depends-on): Likewise.
58427         * lib/arpa_inet.in.h: Adjust comment.
58429 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
58430             Bruno Haible  <bruno@clisp.org>
58432         netdb: Simplify.
58433         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
58434         documented to provide socklen_t and we already depend on sys_socket.
58435         * lib/netdb.in.h: Adjust comment.
58437 2011-03-19  Bruno Haible  <bruno@clisp.org>
58439         sys_socket, netdb: Document problem with socklen_t.
58440         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
58441         platforms.
58442         * doc/posix-headers/netdb.texi: Likewise.
58444 2011-03-18  Eric Blake  <eblake@redhat.com>
58446         maint.mk: let po check work in VPATH build
58447         * top/maint.mk (po_file): Allow cfg.mk override.
58448         (sc_po_check): Allow VPATH use.
58449         Reported by Jiri Denemark.
58451 2011-03-16  Jim Meyering  <meyering@redhat.com>
58453         maint.mk: allow fine-grained syntax-check exclusion via Make variables
58454         Before, you would have had to create one .x-sc_ file per rule in order
58455         to exempt offending files.  Now, you may instead use a Make variable --
58456         usually defined in cfg.mk -- whose name identifies the affected rule.
58457         * top/maint.mk (_sc_excl): Define.
58458         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
58459         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
58461 2011-03-13  Bruno Haible  <bruno@clisp.org>
58463         ignore-value tests: Avoid warnings.
58464         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
58465         empty for gcc < 3.4.
58467 2011-03-13  Bruno Haible  <bruno@clisp.org>
58469         passfd: Fix link error on Solaris.
58470         * modules/passfd (Description): Correct.
58471         (Depends-on): Add socketlib.
58472         (Link): New section.
58473         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
58475 2011-03-13  Bruno Haible  <bruno@clisp.org>
58477         passfd: Fix link error on AIX 5.2.
58478         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
58480 2011-03-13  Bruno Haible  <bruno@clisp.org>
58482         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
58483         * lib/sys_socket.in.h: Include <stddef.h>.
58484         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
58485         CMSG_FIRSTHDR. Remove unused variable.
58487 2011-03-13  Bruno Haible  <bruno@clisp.org>
58489         passfd: Fix compilation error on OpenBSD.
58490         * lib/passfd.c: Include <sys/uio.h>.
58492 2011-03-13  Bruno Haible  <bruno@clisp.org>
58494         passfd test: Fix warnings.
58495         * tests/test-passfd.c: Include <sys/wait.h>.
58496         (main): Fix typo.
58498 2011-03-13  Bruno Haible  <bruno@clisp.org>
58500         passfd module, part 4, tweaks.
58501         * tests/test-passfd.c: Reorder includes.
58502         (main): Fix perror and printf calls.
58504 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58506         passfd module, part 4.
58507         * modules/passfd-tests: New file.
58508         * tests/test-passfd.c: New file.
58510 2011-03-13  Jim Meyering  <meyering@redhat.com>
58512         Makefile: rely on GNU make; derive syntax-check rule names
58513         Rather than requiring that each sc_ rule be listed as a dependent
58514         of "check", use features of GNU make to derive the list.
58515         * Makefile (syntax-check-rules): Define.
58516         (check): Depend on the new variable, not the hard-coded list.
58518 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
58519             Bruno Haible  <bruno@clisp.org>
58521         passfd module, part 3.
58522         * lib/passfd.h (recvfd): Add a flags argument.
58523         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
58524         (recvfd): Add a flags argument.
58525         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
58526         exists.
58527         * modules/passfd (Depends-on): Add cloexec.
58528         Suggested by Eric Blake.
58530 2011-03-13  Bruno Haible  <bruno@clisp.org>
58532         passfd module, part 2, tweaks.
58533         * modules/passfd (Files): Reorder.
58534         (Depends-on): Remove errno.
58535         (Include): Remove <sys/socket.h>, <sys/un.h>.
58536         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
58537         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
58538         specification header. Include <sys/socket.h> always. Don't include
58539         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
58540         (sendfd): Clarify that it sets errno when it fails.
58541         (recvfd): Fix specification.
58543 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58545         passfd module, part 2.
58546         * modules/passfd: New file.
58547         * lib/passfd.h: New file.
58548         * lib/passfd.c: New file.
58550 2011-03-12  Bruno Haible  <bruno@clisp.org>
58552         wcswidth, mbswidth: Avoid integer overflow.
58553         * lib/wcswidth.c: Include <limits.h>.
58554         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
58555         * lib/mbswidth.c: Include <limits.h>.
58556         (mbsnwidth): Avoid 'int' overflow.
58557         Reported by Jim Meyering.
58559 2011-03-12  Bruno Haible  <bruno@clisp.org>
58561         futimens, utimensat: Avoid endless recursion on Solaris 10.
58562         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
58563         Solaris.
58564         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
58565         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
58567 2011-03-11  Jim Meyering  <meyering@redhat.com>
58569         maint.mk: relax a regexp to accommodate other formatting styles
58570         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
58571         between "ngettext" and the following "(".
58573 2011-03-11  Pádraig Brady  <P@draigBrady.com>
58575         maint.mk: suppress a false positive warning
58576         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
58577         diagnostics are marked with ngettext.
58579 2011-03-10  Eric Blake  <eblake@redhat.com>
58581         wchar: add explicit dependencies, for Tru64
58582         * modules/mbmemcasecoll (Depends-on): Add wchar.
58583         * modules/mbtowc (Depends-on): Likewise.
58584         * modules/vasnprintf (Depends-on): Likewise.
58585         * modules/unistdio/u-printf-args (Depends-on): Likewise.
58586         * modules/wctomb (Depends-on): Likewise.
58587         Reported by Peter O'Gorman.
58589 2011-03-08  Bruno Haible  <bruno@clisp.org>
58591         passfd module, part 1, tweaks.
58592         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
58593         Improve indentation. Improve AC_MSG_CHECKING messages.
58594         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
58595         gl_SOCKET_FAMILIES.
58597 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
58599         passfd module, part 1.
58600         * m4/afunix.m4: New file.
58601         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
58602         sockets.
58604 2011-03-08  Bruno Haible  <bruno@clisp.org>
58606         regex-quote: New API.
58607         * lib/regex-quote.h: Include <stdbool.h>.
58608         (struct regex_quote_spec): New type.
58609         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58610         New declarations.
58611         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58612         'const struct regex_quote_spec *' argument.
58613         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
58614         (pcre_special): New constant.
58615         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
58616         New functions.
58617         (regex_quote_length, regex_quote_copy, regex_quote): Take a
58618         'const struct regex_quote_spec *' argument.
58619         * modules/regex-quote (Depends-on): Add stdbool.
58620         * tests/test-regex-quote.c (check): Update for new API. Add test for
58621         anchored results.
58622         * NEWS: Mention the API change.
58623         Reported by Reuben Thomas and Eric Blake.
58625 2011-03-06  Bruno Haible  <bruno@clisp.org>
58627         regex-quote: Fix creation of POSIX extended regular expressions.
58628         * lib/regex-quote.c (ere_special): Add grouping and alternation
58629         operators.
58631 2011-03-05  Bruno Haible  <bruno@clisp.org>
58633         doc: Improve doc regarding autopoint vs. gnulib.
58634         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
58635         disable autopoint while running autoreconf.
58636         Suggested by Ralf Wildenhues.
58638 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58640         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
58641         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
58643 2011-03-03  Bruce Korb  <bkorb@gnu.org>
58645         parse-duration: remove xalloc.h dependency
58646         * lib/parse-duration.c (parse_period): handle NULL return from
58647         strdup instead of calling xstrdup().
58648         * modules/parse-duration: remove "xalloc" dependency
58650 2011-03-03  Matthew Booth  <mbooth@redhat.com>
58652         bootstrap: honor m4_base when running aclocal
58653         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
58655 2011-03-02  Jim Meyering  <meyering@redhat.com>
58657         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
58658         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
58659         on request from Matt Booth.
58661 2011-03-01  Eric Blake  <eblake@redhat.com>
58663         test-link: work on Hurd
58664         * tests/test-link.h (test_link): Hurd rejects linking directories
58665         with EISDIR instead of the POSIX-mandated EPERM.
58667 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
58669         stdio: simplify by moving files to printf-posix, sigpipe
58670         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
58671         since this symbol is needed only if printf is replaced.
58672         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
58673         Require gl_ASM_SYMBOL_PREFIX.
58674         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
58675         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
58676         (Depends-on): Add 'raise'.
58677         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
58678         * modules/stdio (Files): Remove lib/stdio-write.c,
58679         m4/asm-underscore.m4.
58680         (Depends-on): Remove 'raise'.
58682         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
58683         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
58684         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
58685         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
58687 2011-02-28  Bruno Haible  <bruno@clisp.org>
58689         localcharset: Assume ANSI C behaviour of free().
58690         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
58691         calling free().
58692         Suggested by Simon Josefsson <simon@josefsson.org>.
58694 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
58695             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
58696             Bruno Haible  <bruno@clisp.org>  (tiny change)
58698         On Cygwin, use /proc file system instead of win32 API.
58699         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
58700         Win32 file names.
58701         (DllMain): Simplify by removing Cygwin specific code.
58702         (find_shared_library_fullname): Use Linux specific implementation also
58703         for Cygwin.
58704         (get_shared_library_fullname): Update accordingly.
58705         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
58706         Win32 file names.
58707         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
58708         Cygwin specific code.
58710 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
58711             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
58713         Fix OpenMP flag detection for various Fortran compilers.
58714         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
58715         OpenMP-conditional compilation construct, to force compile
58716         failure with missing OpenMP flag.
58717         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
58719 2011-02-25  Eric Blake  <eblake@redhat.com>
58721         strstr: expand test coverage
58722         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
58723         compilation.
58724         * tests/test-memmem.c (main): Duplicate tests.
58725         * tests/test-strcasestr.c (main): Likewise.
58726         * tests/test-c-strcasestr.c (main): Likewise.
58728 2011-02-25  Jim Meyering  <meyering@redhat.com>
58730         maint.mk: detect missing-NL-at-EOF, too
58731         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
58732         it also detects when a file lacks a newline at EOF.
58733         (require_exactly_one_NL_at_EOF_): Renamed from
58734         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
58735         since people may well have .x-sc_... file names tied to the
58736         existing name.  Suggested by Eric Blake.
58738 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
58740         dirname: move m4/dos.m4 functionality into lib/dosname.h
58742         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
58743         extracts symbols from it, puts them into config.h; but it's much
58744         easier to use the symbols directly.  filename.h already does this,
58745         but it disagrees with dos.m4 in some respects.  This patch
58746         introduces a different include file dosname.h that packages up
58747         dos.m4, and then later we can work on merging filename.h and
58748         dosname.h.  Applications that need only the easy-to-configure
58749         symbols should consider including dosname.h rather than dirname.h.
58750         * NEWS: Mention incompatible changes.
58751         * m4/dos.m4: Remove.
58752         * lib/dosname.h, modules/dosname: New files.
58753         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
58754         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
58755         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
58756         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
58757         Include dosname.h, not dirname.h.
58758         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
58759         Include dosname.h, for definitions of symbols like ISSLASH
58760         that used to be in config.h.
58761         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
58762         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
58763         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
58764         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
58765         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
58766         * modules/rmdir (Files): Likewise.
58767         * modules/stat (Files): Likewise.
58768         * modules/unlink (Files): Likewise.
58769         * modules/dirname-lgpl (Depends-on): Add dosname.
58770         * modules/lstat (Depends-on): Likewise.
58771         * modules/openat (Depends-on): Likewise.
58772         * modules/rmdir (Depends-on): Likewise.
58773         * modules/savewd (Depends-on): Likewise.
58774         * modules/stat (Depends-on): Likewise.
58775         * modules/unlink (Depends-on): Likewise.
58776         * modules/openat (Depends-on): Remove dirname-lgpl.
58777         * modules/savewd (Depends-on): Likewise.
58778         * tests/test-dirname.c: Do not use removed symbols like
58779         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
58780         the remaining symbols, e.g., ISSLASH ('\\').
58782 2011-02-25  Eric Blake  <eblake@redhat.com>
58784         strstr: revert patches that introduced bug and pessimization
58785         * lib/str-two-way.h: Add another reference.
58786         (two_way_short_needle, two_way_long_needle): Revert changes from
58787         2011-02-24; they pessimize search speed.
58788         (critical_factorization): Partially revert changes from
58789         2010-06-22; they violate the requirement that the left half of the
58790         needle be smaller than the period of the needle.
58792 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
58794         filenamecat: remove unnecessary dependency on dirname-lgpl
58795         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
58796         is no direct dependency, just an indirect one via filenamecat-lgpl.
58798         remove: remove unnecessary use of m4/dos.m4
58799         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
58800         * modules/remove (FILES): Remove m4/dos.m4.
58802         * lib/openat-proc.c: Don't include dirname.h; not needed.
58804         backupfile: remove unnecessary use of m4/dos.m4
58805         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
58806         of its symbols are used by the backupfile code.  backupfile.c does
58807         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
58808         for the rare case of programs that want all their backup file
58809         names to live within 8+3 limits, and dos.m4 doesn't address that.
58810         * modules/backupfile (Files): Remove m4/dos.m4.
58812 2011-02-24  Jim Meyering  <meyering@redhat.com>
58814         strstr: fix a bug whereby strstr would mistakenly return NULL
58815         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
58816         in period calculation.
58817         (two_way_long_needle): Likewise.
58818         The original problem was reported by Mike Stump in
58819         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
58820         Ralf Wildenhues provided the short needle and haystack.
58821         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
58822         Add a more involved test to trigger the bug in two_way_long_needle.
58824 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
58826         gnulib-tool: remove use of bold display in help screen
58827         * gnulib-tool (func_usage): Do not use bold display anymore in the
58828         help screen.  That was just meant to be a temporary emphasis for a
58829         backward-incompatible change.
58831 2011-02-23  Bruno Haible  <bruno@clisp.org>
58833         Fix misindentation of preprocessor directives.
58834         * lib/argp-namefrob.h: Reindent preprocessor directives.
58835         * lib/getopt_int.h (struct _getopt_data): Likewise.
58836         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
58837         * lib/vasnprintf.c (decode_long_double): Likewise.
58838         * tests/test-argmatch.c: Insert blank lines, for clarity.
58839         * tests/test-exclude.c: Likewise.
58841 2011-02-22  Bruno Haible  <bruno@clisp.org>
58843         ioctl: Fix for MacOS X in 64-bit mode.
58844         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
58845         value.
58846         Suggested by Eric Blake.
58847         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
58849 2011-02-22  Jim Meyering  <meyering@redhat.com>
58851         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
58852         * Makefile (sc_cpp_indent_check): Don't limit the check to files
58853         in lib/.
58855 2011-02-22  Eric Blake  <eblake@redhat.com>
58857         maint: avoid any CDPATH issue
58858         * Makefile (sc_cpp_indent_check): Anchor cd argument.
58860         maint: adjust cpp indentation for my modules, as well
58861         * Makefile (sc_cpp_indent_check): Add my name.
58862         * lib/fbufmode.c: Filter through cppi.
58863         * lib/fpurge.c: Likewise.
58864         * lib/freadable.c: Likewise.
58865         * lib/freading.c: Likewise.
58866         * lib/fwritable.c: Likewise.
58867         * lib/fwriting.c: Likewise.
58868         * lib/sigaction.c: Likewise.
58870 2011-02-22  Jim Meyering  <meyering@redhat.com>
58872         maint: adjust cpp indentation to reflect nesting depth
58873         I.e., in a block of code that begins with an unnested "#if",
58874         put one space between the "#" in column 1 and following token.
58875         For example,
58876         -#include <sys/vfs.h>
58877         +# include <sys/vfs.h>
58878         Do this only in .c files that are part of a module I maintain.
58879         * lib/linkat.c: Filter through cppi.
58880         * lib/nanosleep.c: Likewise.
58881         * lib/openat.c: Likewise.
58882         * lib/openat-die.c: Likewise.
58883         * lib/dup3.c: Likewise.
58884         * lib/fchownat.c: Likewise.
58885         * lib/flock.c: Likewise.
58886         * lib/fsync.c: Likewise.
58887         * lib/fts.c: Likewise.
58888         * lib/getpass.c: Likewise.
58889         * lib/gettimeofday.c: Likewise.
58890         * lib/userspec.c: Likewise.
58891         * Makefile (sc_cpp_indent_check): New rule, to check this.
58893 2011-02-22  Bruno Haible  <bruno@clisp.org>
58895         New module 'wctomb'.
58896         * lib/stdlib.in.h (wctomb): New declaration.
58897         * lib/wctomb.c: New file.
58898         * lib/wctomb-impl.h: New file.
58899         * m4/wctomb.m4: New file.
58900         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
58901         REPLACE_WCTOMB.
58902         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
58903         REPLACE_WCTOMB.
58904         * modules/wctomb: New file.
58905         * tests/test-stdlib-c++.cc: Test signature of wctomb.
58906         * doc/posix-functions/wctomb.texi: Mention the new module.
58907         * modules/wctob (Depends-on): Add wctomb.
58909 2011-02-22  Bruno Haible  <bruno@clisp.org>
58911         New module 'mbtowc'.
58912         * lib/stdlib.in.h (mbtowc): New declaration.
58913         * lib/mbtowc.c: New file.
58914         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
58915         * m4/mbtowc.m4: New file.
58916         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
58917         REPLACE_MBTOWC.
58918         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
58919         REPLACE_MBTOWC.
58920         * modules/mbtowc: New file.
58921         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
58922         * doc/posix-functions/mbtowc.texi: Mention the new module.
58923         * modules/btowc (Depends-on): Add mbtowc.
58925 2011-02-22  Bruno Haible  <bruno@clisp.org>
58927         wcrtomb: Add more tests for native Windows platforms.
58928         * tests/test-wcrtomb-w32-1.sh: New file.
58929         * tests/test-wcrtomb-w32-2.sh: New file.
58930         * tests/test-wcrtomb-w32-3.sh: New file.
58931         * tests/test-wcrtomb-w32-4.sh: New file.
58932         * tests/test-wcrtomb-w32-5.sh: New file.
58933         * tests/test-wcrtomb-w32.c: New file.
58934         * modules/wcrtomb-tests (Files): Add them.
58935         (Makefile.am): Arrange to run these tests.
58936         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
58937         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
58939 2011-02-20  Bruno Haible  <bruno@clisp.org>
58941         wcrtomb: Enhance test.
58942         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
58944 2011-02-20  Bruno Haible  <bruno@clisp.org>
58946         mbrtowc: Tiny optimization.
58947         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
58949 2011-02-20  Jim Meyering  <meyering@redhat.com>
58951         test-exclude.c: remove unmatched #endif
58952         * tests/test-exclude.c: Remove stray #endif, left over from
58953         the change of a week ago.
58955 2011-02-19  Jim Meyering  <meyering@redhat.com>
58957         git-version-gen: skip "-dirty" check when appropriate
58958         * build-aux/git-version-gen: Don't run any git commands when the
58959         version string comes from .tarball-version.  Prior to this, we
58960         would run git update-index --refresh even from a just-unpacked
58961         tarball directory, and that could affect a .git/ directory in a
58962         parent of the build directory.  Reported by Mike Frysinger.
58964 2011-02-19  Bruno Haible  <bruno@clisp.org>
58966         unictype/property-byname: Reduce the size of the 'data' segment.
58967         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
58969 2011-02-19  Bruno Haible  <bruno@clisp.org>
58971         unictype/scripts: Reduce the size of the 'data' segment.
58972         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
58973         '%pic'.
58974         * lib/unictype/scripts_byname.gperf: Regenerated.
58976 2011-02-19  Bruno Haible  <bruno@clisp.org>
58978         stdint: Update documentation.
58979         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
58981 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
58983         stdint: omit redundant check for wchar.h
58984         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
58985         always tests whether wchar.h exists, so remove the now-redundant test.
58987 2011-02-18  Bruno Haible  <bruno@clisp.org>
58989         stdint: Cut dependency to module 'wchar'.
58990         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
58991         include the necessary prerequisites.
58992         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
58993         * modules/stdint (Depends-on): Remove wchar.
58994         (Makefile.am): Substitute HAVE_WCHAR_H.
58995         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
58997 2011-02-18  Eric Blake  <eblake@redhat.com>
58999         longlong: skip, rather than fail, on cross-compilation
59000         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
59001         when cross-compiling; regression from 2011-02-16.
59003 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59005         * NEWS: Mention 2011-02-08 change to stdlib.
59007 2011-02-17  Bruno Haible  <bruno@clisp.org>
59009         getloadavg: Add comments about platforms.
59010         * m4/getloadavg.m4: Add comment.
59011         * lib/getloadavg.c: Likewise.
59013 2011-02-17  Bruno Haible  <bruno@clisp.org>
59015         getloadavg: Fix link error on Solaris 2.6.
59016         * modules/getloadavg (Link): New section.
59017         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
59018         linking test-getloadavg.
59019         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
59020         getloadavg.
59022 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
59024         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
59025         It was 'int', but this doesn't match the IRIX 6.5 manual.
59026         Suggested by Bruno Haible in
59027         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00207.html>.
59029 2011-02-17  Bruno Haible  <bruno@clisp.org>
59031         havelib: Fix comments.
59032         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
59033         change.
59035 2011-02-17  Bruno Haible  <bruno@clisp.org>
59037         havelib: Update config.rpath.
59038         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
59040 2011-02-17  Bruno Haible  <bruno@clisp.org>
59042         getloadavg test: Add some plausibility checks.
59043         * tests/test-getloadavg.c (check_avg): Print a warning when the value
59044         is improbable.
59046 2011-02-16  Eric Blake  <eblake@redhat.com>
59048         maintainer-makefile: make syntax-check a no-op from tarballs
59049         * top/maint.mk (no-vc-detected): New rule.
59050         (local-checks-available): Use it to avoid hanging if someone tries
59051         'make syntax-check' from a tarball.  Also append to any non-syntax
59052         checks already defined in cfg.mk.
59054 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
59056         longlong: tune, particularly for common case of c99
59058         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
59059         or running anything if c99, or if unsigned long long int does not
59060         work.  In either case, we know the answer without further tests.
59061         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
59062         it at most once, and use its results for both long long int and
59063         unsigned long long int.  This is more likely to be efficient in
59064         the common case where the program wants to check for both long
59065         long int and unsigned long long int.
59066         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
59067         since the answer is already known.
59069 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
59071         getloadavg: set errno
59072         * lib/getloadavg.c: Set errno when returning -1.  If no other
59073         error number looks appropriate, set it to ENOSYS if the getloadavg
59074         looks like it can't possibly ever work, ENOTSUP otherwise.
59075         Suggested by Bruno Haible in
59076         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00187.html>.
59078         getloadavg: trim unused parts and speed up 'configure'
59079         * NEWS: Document this.
59080         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
59081         always compiled if getloadavg is absent.
59082         Move test code to ...
59083         * tests/test-getloadavg.c: New file, containing previous
59084         contents of test from lib/getloadavg.c.  It also contains
59085         suggestions by Bruno Haible in
59086         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00186.html>.
59087         * modules/getloadavg-tests: New file.
59088         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
59089         Do tests in the same order as they're needed for getloadavg.c.
59090         Omit setgid-related tests that generate symbols KMEM_GROUP,
59091         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
59092         Do only the tests that are needed to see whether the system has
59093         getloadavg, moving the other tests into ...
59094         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
59095         NLIST_NAME_UNION; nobody should be using it.  Do not define
59096         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
59097         relevant, as the user of this module shouldn't care how getloadavg
59098         is implemented.
59100         getloadavg: omit unused var
59101         * lib/getloadavg.c (getloadavg): Omit unused local variable.
59103 2011-02-15  Jim Meyering  <meyering@redhat.com>
59105         doc: update users.txt
59106         * users.txt: Update iwhd's URL.
59108 2011-02-13  Bruno Haible  <bruno@clisp.org>
59110         Consistent macro naming for macros that use GCC __attribute__.
59111         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
59112         _ATTRIBUTE_NONNULL_.
59113         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
59114         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
59115         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
59116         ATTRIBUTE_DEPRECATED.
59117         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
59118         ATTRIBUTE_NORETURN.
59119         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59120         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59121         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59122         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
59123         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
59124         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
59125         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
59126         ATTRIBUTE_SENTINEL.
59127         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
59128         ATTRIBUTE_RETURN_CHECK.
59129         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
59130         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
59131         ATTRIBUTE_NORETURN.
59132         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
59133         Reported by Paul Eggert.
59135 2011-02-13  Bruno Haible  <bruno@clisp.org>
59137         Don't interfere with a program's definition of __attribute__.
59138         * lib/argp.h (__attribute__): Remove definition.
59139         (_GL_ATTRIBUTE_FORMAT): New macro.
59140         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
59141         * lib/argp-fmtstream.h (__attribute__): Remove definition.
59142         (_GL_ATTRIBUTE_FORMAT): New macro.
59143         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
59144         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
59145         GCC 3 or newer.
59146         * lib/error.h (__attribute__): Remove definition.
59147         (_GL_ATTRIBUTE_FORMAT): New macro.
59148         (error, error_at_line): Use it.
59149         * lib/hash.h (__attribute__): Remove definition.
59150         (ATTRIBUTE_WUR): Update definition. Define always.
59151         * lib/openat.h (__attribute__): Remove definition.
59152         (ATTRIBUTE_NORETURN): Update definition. Define always.
59153         * lib/sigpipe-die.h (__attribute__): Remove definition.
59154         (ATTRIBUTE_NORETURN): Update definition. Define always.
59155         * lib/vasnprintf.h (__attribute__): Remove definition.
59156         (_GL_ATTRIBUTE_FORMAT): New macro.
59157         (asnprintf, vasnprintf): Use it.
59158         * lib/xalloc.h (__attribute__): Remove definition.
59159         (ATTRIBUTE_NORETURN): Update definition. Define always.
59160         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
59161         * lib/xmemdup0.h (__attribute__): Remove definition.
59162         (ATTRIBUTE_NORETURN): Update definition. Define always.
59163         * lib/xprintf.h (__attribute__): Remove definition.
59164         (_GL_ATTRIBUTE_FORMAT): New macro.
59165         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
59166         * lib/xstrtol.h (__attribute__): Remove definition.
59167         (ATTRIBUTE_NORETURN): Update definition. Define always.
59168         * lib/xvasprintf.h (__attribute__): Remove definition.
59169         (_GL_ATTRIBUTE_FORMAT): New macro.
59170         (xasprintf, xvasprintf): Use it.
59171         * tests/test-argmatch.c (__attribute__): Remove definition.
59172         (ATTRIBUTE_NORETURN): Update definition. Define always.
59173         * tests/test-exclude.c (__attribute__): Remove definition.
59174         (ATTRIBUTE_NORETURN): Update definition. Define always.
59175         Reported by Paul Eggert.
59177 2011-02-13  Bruno Haible  <bruno@clisp.org>
59179         mbrtowc: Add more tests for native Windows platforms.
59180         * tests/test-mbrtowc-w32-1.sh: New file.
59181         * tests/test-mbrtowc-w32-2.sh: New file.
59182         * tests/test-mbrtowc-w32-3.sh: New file.
59183         * tests/test-mbrtowc-w32-4.sh: New file.
59184         * tests/test-mbrtowc-w32-5.sh: New file.
59185         * tests/test-mbrtowc-w32.c: New file.
59186         * modules/mbrtowc-tests (Files): Add them.
59187         (Makefile.am): Arrange to run these tests.
59188         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
59189         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
59191 2011-02-13  Bruno Haible  <bruno@clisp.org>
59193         mbrtowc: Work around native Windows bug.
59194         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
59195         guess when no suitable locale for testing was found.
59196         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
59198 2011-02-13  Bruno Haible  <bruno@clisp.org>
59200         mbsinit: Work around mingw bug.
59201         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
59202         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
59203         Windows.
59204         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
59206 2011-02-13  Bruno Haible  <bruno@clisp.org>
59208         mbsinit: Don't crash for a NULL argument.
59209         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
59210         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
59212 2011-02-13  Bruno Haible  <bruno@clisp.org>
59214         Don't interfere with a program's definition of __attribute__.
59215         * lib/stdio.in.h (__attribute__): Remove definition.
59216         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
59217         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
59218         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
59219         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
59220         * lib/string.in.h (__attribute__): Remove definition.
59221         Reported by Paul Eggert.
59223 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59225         stdlib: don't get in the way of non-GCC __attribute__
59226         See thread starting at
59227         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00161.html>.
59228         Revert previous stdlib change, installing the following instead:
59229         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
59230         to get in the way of a non-GCC compiler that supports __attribute__.
59231         (_GL_ATTRIBUTE_RETURN): New macro.
59232         (_Exit): Use it instead of __attribute__.
59234 2011-02-12  Bruno Haible  <bruno@clisp.org>
59236         quotearg test: Avoid test failure on mingw.
59237         * tests/test-quotearg.sh: Convert the locale identifier from native
59238         Windows syntax to Unix syntax.
59240 2011-02-12  Bruno Haible  <bruno@clisp.org>
59242         setlocale: Prefer gnulib's override over libintl's override.
59243         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
59244         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
59245         GNULIB_defined_setlocale is set.
59247 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
59249         stdlib: support non-GCC __attribute__
59251         Fix a serious and tricky problem encountered when attempting to
59252         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
59253         5.5, but it crashed due to memory corruption on Solaris 10 with
59254         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
59255         bits that are otherwise zero.  This tagging is optional inside
59256         Emacs but is preferred and is used when __attribute__ ((__aligned
59257         (8))) works, as it does with both recent-enough GCC and with Sun C
59258         5.11.  However, Sun C 5.11 is not GCC and does not #define
59259         __GNUC__ and __GNUC_MINOR__.
59261         When I added the getloadavg module to Emacs, it brought in
59262         stdlib.in.h, which contained this fragment:
59264            #ifndef __attribute__
59265            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
59266            #  define __attribute__(Spec)   /* empty */
59267            # endif
59268            #endif
59270         When files that include <stdlib.h> were compiled with Sun C 5.11,
59271         the above code disabled __attribute__ ((__aligned (8))), which
59272         caused variables to not be properly aligned, which eventually led
59273         to the pointer corruption mentioned above.  (This was a bit hard
59274         to diagnose, unfortunately.)
59276         Several "#define __attribute__(X) /* empty */" code snippets need
59277         to be eradicated from Gnulib to work with non-GCC compilers that
59278         support __attribute__.  The Autoconf way to do this is to test for
59279         each kind of attribute that we want support for, and selectively
59280         enable that in source code.
59282         Fix this problem just for stdlib.h, by adding a test for the
59283         __noreturn__ attribute, and change stdlib.in.h to use that test
59284         when needed.  This technique can be easily generalized to the
59285         other *.in.h files and attributes, and a similar technique can be
59286         used for *.h and *.c files.  This patch is enough to solve the
59287         problem for Emacs + getloadavg, and I thought I'd publish it for
59288         feedback before undertaking further, similar fixes in other
59289         modules.
59291         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
59292         because it's not needed for stdlib.h.  It merely substitutes the
59293         value directly into stdlib.h.  We may well need to #define it, or
59294         similar symbols, for other modules, but it's nice to also have an
59295         option to not #define it for applications like Emacs that do not
59296         need it.
59298         * lib/stdlib.in.h (__attribute__): Do not #define.
59299         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
59300         be defined only if the _Exit module is also used.
59301         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
59302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
59303         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
59304         platforms.
59305         * modules/_Exit (Files): Add m4/attribute.m4.
59306         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
59307         * m4/attribute.m4: New file.
59309 2011-02-12  Bruno Haible  <bruno@clisp.org>
59311         wcsrtombs: Work around bug on native Windows.
59312         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
59313         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
59314         instead of len.
59315         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
59317 2011-02-12  Bruno Haible  <bruno@clisp.org>
59319         mbsrtowcs: Work around bug on native Windows.
59320         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
59321         against mingw bug.
59322         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
59324 2011-02-12  Bruno Haible  <bruno@clisp.org>
59326         Avoid setlocale bugs in tests.
59327         * modules/btowc (Dependencies): Add setlocale.
59328         * modules/c-strcase (Dependencies): Likewise.
59329         * modules/mbmemcasecmp (Dependencies): Likewise.
59330         * modules/mbmemcasecoll (Dependencies): Likewise.
59331         * modules/mbrtowc (Dependencies): Likewise.
59332         * modules/mbscasecmp (Dependencies): Likewise.
59333         * modules/mbscasestr (Dependencies): Likewise.
59334         * modules/mbschr (Dependencies): Likewise.
59335         * modules/mbscspn (Dependencies): Likewise.
59336         * modules/mbsinit (Dependencies): Likewise.
59337         * modules/mbsncasecmp (Dependencies): Likewise.
59338         * modules/mbsnrtowcs (Dependencies): Likewise.
59339         * modules/mbspbrk (Dependencies): Likewise.
59340         * modules/mbspcasecmp (Dependencies): Likewise.
59341         * modules/mbsrchr (Dependencies): Likewise.
59342         * modules/mbsrtowcs (Dependencies): Likewise.
59343         * modules/mbsspn (Dependencies): Likewise.
59344         * modules/mbsstr (Dependencies): Likewise.
59345         * modules/nl_langinfo (Dependencies): Likewise.
59346         * modules/quotearg (Dependencies): Likewise.
59347         * modules/unicase/locale-language (Dependencies): Likewise.
59348         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
59349         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
59350         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
59351         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
59352         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
59353         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
59354         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
59355         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
59356         * modules/vasnprintf-posix (Dependencies): Likewise.
59357         * modules/wcrtomb (Dependencies): Likewise.
59358         * modules/wcsnrtombs (Dependencies): Likewise.
59359         * modules/wcsrtombs (Dependencies): Likewise.
59361 2011-02-12  Bruno Haible  <bruno@clisp.org>
59363         setlocale: Workaround native Windows bug.
59364         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
59365         succeeds but sets LC_CTYPE to "C", report a failure.
59366         * tests/test-setlocale2.sh: New file.
59367         * tests/test-setlocale2.c: New file.
59368         * modules/setlocale-tests (Files): Add the new files.
59369         (Makefile.am): Enable test-setlocale2.sh test.
59370         * doc/posix-functions/setlocale.texi: Mention workaround.
59372 2011-02-11  Bruno Haible  <bruno@clisp.org>
59374         Tests for module 'setlocale'.
59375         * modules/setlocale-tests: New file.
59376         * tests/test-setlocale1.sh: New file.
59377         * tests/test-setlocale1.c: New file.
59379         New module 'setlocale'.
59380         * lib/locale.in.h (setlocale): New declaration.
59381         * lib/setlocale.c: New file, based on
59382         gettext/gettext-runtime/intl/setlocale.c.
59383         * m4/setlocale.m4: New file.
59384         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
59385         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
59386         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
59387         REPLACE_SETLOCALE.
59388         * modules/setlocale: New file.
59389         * tests/test-locale-c++.cc: Test the declaration of setlocale.
59390         * doc/posix-functions/setlocale.texi: Mention the new module.
59392 2011-02-11  Bruno Haible  <bruno@clisp.org>
59394         Prepare for locale dependent tests on mingw.
59395         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
59396         because it has the wrong locale encoding.
59397         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
59398         French_France.1252 instead of "fr".
59399         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
59400         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
59401         because it has the wrong locale encoding.
59402         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
59403         native Windows, try Turkish_Turkey.65001.
59404         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
59405         Chinese_China.54936.
59407         Prepare for locale dependent tests on mingw.
59408         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
59409         differently.
59410         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
59411         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
59412         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59413         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59415 2011-02-11  Eric Blake  <eblake@redhat.com>
59417         strptime: avoid compiler warnings
59418         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
59419         compiler warnings about dead code.
59420         Reported by Daniel P. Berrange.
59422 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
59424         doc: update users.txt
59425         * users.txt: Add rcs.
59427 2011-02-10  John W. Eaton  <jwe@gnu.org>
59429         doc: update users.txt
59430         * users.txt: Add octave.
59432 2011-02-10  Jim Meyering  <meyering@redhat.com>
59434         doc: update users.txt
59435         * users.txt: Add iwhd.
59437 2011-02-09  Bruno Haible  <bruno@clisp.org>
59439         gnulib-tool: Make copyright notice adjustment more robust.
59440         * gnulib-tool (func_import): In sed_transform_main_lib_file,
59441         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
59442         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
59443         License".
59444         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
59446 2011-02-06  Bruno Haible  <bruno@clisp.org>
59448         New module 'towctrans'.
59449         * modules/towctrans: New file.
59450         * lib/wctype.in.h (towctrans): New declaration.
59451         * lib/towctrans.c: New file.
59452         * lib/towctrans-impl.h: New file.
59453         * m4/towctrans.m4: New file.
59454         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
59455         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
59456         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
59457         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
59458         * doc/posix-functions/towctrans.texi: Mention the new module.
59460 2011-02-06  Bruno Haible  <bruno@clisp.org>
59462         New module 'wctrans'.
59463         * modules/wctrans: New file.
59464         * lib/wctype.in.h (wctrans): New declaration.
59465         * lib/wctrans.c: New file.
59466         * lib/wctrans-impl.h: New file.
59467         * m4/wctrans.m4: New file.
59468         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
59469         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
59470         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
59471         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
59472         * doc/posix-functions/wctrans.texi: Mention the new module.
59474 2011-02-06  Bruno Haible  <bruno@clisp.org>
59476         New module 'iswctype'.
59477         * modules/iswctype: New file.
59478         * lib/wctype.in.h (iswctype): New declaration.
59479         * lib/iswctype.c: New file.
59480         * lib/iswctype-impl.h: New file.
59481         * m4/iswctype.m4: New file.
59482         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
59483         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
59484         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
59485         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
59486         * doc/posix-functions/iswctype.texi: Mention the new module and the
59487         HP-UX 11.00 problem.
59489 2011-02-06  Bruno Haible  <bruno@clisp.org>
59491         New module 'wctype'.
59492         * modules/wctype: Change to represent the wctype() substitute.
59493         * lib/wctype.in.h (wctype): New declaration.
59494         * lib/wctype.c: New file.
59495         * lib/wctype-impl.h: New file.
59496         * m4/wctype.m4: New file.
59497         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
59498         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
59499         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
59500         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
59501         * doc/posix-functions/wctype.texi: Mention the new module and the
59502         HP-UX 11.00 problem.
59504 2011-02-06  Bruno Haible  <bruno@clisp.org>
59506         wctype-h: Ensure wctype_t and wctrans_t are defined.
59507         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
59508         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59509         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
59510         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
59511         HAVE_WCTRANS_T.
59512         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
59514 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
59516         flock: fix license typo
59518         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
59519         omitted.
59521 2011-02-08  Bruno Haible  <bruno@clisp.org>
59523         Split large sed scripts, for HP-UX sed.
59524         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
59525         to avoid HP-UX limit of 99 commands, in the near future.
59526         * modules/stdlib (Makefile.am): Likewise.
59527         * modules/unistd (Makefile.am): Likewise.
59528         * modules/wchar (Makefile.am): Likewise.
59529         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
59530         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
59531         <http://lists.gnu.org/r/bug-gnulib/2010-01/msg00216.html>.
59533 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59534             Bruno Haible  <bruno@clisp.org>
59536         stdlib: improve random_r modularization
59537         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
59538         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
59539         you also need the random_r module to get this material right.
59540         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
59541         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
59542         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
59544 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
59546         stdlib: don't depend on stdint
59547         * lib/stdlib.in.h: Don't include <stdint.h> merely because
59548         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
59549         be independent of whether stdint.h is needed.
59550         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
59551         here, instead of ...
59552         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
59553         struct random_data should be using the random_r module, not just
59554         the stdlib module (which wouldn't make sense: what package needs
59555         just struct random_data without also needing random_r?).
59556         * modules/stdlib (Depends-on): Remove stdint.
59558         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
59559         See the thread rooted at
59560         <http://lists.gnu.org/r/bug-gnulib/2011-02/msg00090.html>.
59561         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
59562         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
59563         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
59564         __VMS)); previously it was always included (via fcntl--.h).
59565         (getloadavg): Do not use c_strtod.  Instead, approximate it by
59566         hand; this is good enough for load averages.  Also, do not use
59567         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
59568         flags directly if available and don't bother otherwise.  (Packages
59569         that need the extra reliability should use the modules that define
59570         these flags on older platforms that lack them.)
59571         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
59572         fcntl-safer.
59574 2011-02-08  Jim Meyering  <meyering@redhat.com>
59576         di-set.h, ino-map.h: add multiple-inclusion guard
59577         Technically, the guard is required only for ino-map.h, due to its
59578         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
59579         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
59580         * lib/ino-map.h: Likewise.
59582 2011-02-06  Bruno Haible  <bruno@clisp.org>
59584         iswblank: Ensure declaration on glibc systems.
59585         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
59586         * modules/iswblank (Dependencies): Add 'extensions'.
59587         * doc/posix-functions/iswblank.texi: Document the glibc problem.
59589 2011-02-06  Bruno Haible  <bruno@clisp.org>
59591         New module 'iswblank'.
59592         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
59593         * modules/iswblank: New file.
59594         * modules/wctype-h (Files): Remove lib/iswblank.c.
59595         (Makefile.am): Substitute GNULIB_ISWBLANK.
59596         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
59597         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
59598         (gl_WCTYPE_H_DEFAULTS): New macro.
59599         (gl_WCTYPE_H): Require it. Remove iswblank related code.
59600         * modules/iswblank-tests: New file.
59601         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
59602         * tests/test-wctype-h.c (main): Remove iswblank tests.
59603         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
59604         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
59605         of 'wctype-h'.
59606         * NEWS: Mention the change.
59607         * modules/mbchar (Depends-on): Add iswblank.
59609 2011-02-08  Bruno Haible  <bruno@clisp.org>
59611         di-set tests: Refactor.
59612         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
59613         unnecessary includes.
59614         (ASSERT): Remove macro.
59615         (main): Make C90 compliant by avoiding variable declaration after
59616         statement.
59617         * modules/di-set-tests (Files): Add tests/macros.h.
59619 2011-02-08  Bruno Haible  <bruno@clisp.org>
59621         ino-map tests: Refactor.
59622         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
59623         unnecessary includes.
59624         (ASSERT): Remove macro.
59625         (main): Make C90 compliant by avoiding variable declaration after
59626         statement.
59627         * modules/ino-map-tests (Files): Add tests/macros.h.
59629 2011-02-08  Jim Meyering  <meyering@redhat.com>
59631         di-set: add "const" to a cast
59632         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
59633         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
59635 2011-02-06  Bruno Haible  <bruno@clisp.org>
59637         Rename module 'wctype' to 'wctype-h'.
59638         * modules/wctype-h: Renamed from modules/wctype.
59639         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
59640         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
59641         (Files, Depends-on, Makefile.am): Update.
59642         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
59643         (Files, Makefile.am): Update.
59644         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
59645         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
59646         * doc/posix-headers/wctype.texi: Update.
59647         * doc/posix-functions/iswalnum.texi: Update.
59648         * doc/posix-functions/iswalpha.texi: Update.
59649         * doc/posix-functions/iswblank.texi: Update.
59650         * doc/posix-functions/iswcntrl.texi: Update.
59651         * doc/posix-functions/iswdigit.texi: Update.
59652         * doc/posix-functions/iswgraph.texi: Update.
59653         * doc/posix-functions/iswlower.texi: Update.
59654         * doc/posix-functions/iswprint.texi: Update.
59655         * doc/posix-functions/iswpunct.texi: Update.
59656         * doc/posix-functions/iswspace.texi: Update.
59657         * doc/posix-functions/iswupper.texi: Update.
59658         * doc/posix-functions/iswxdigit.texi: Update.
59659         * doc/posix-functions/towlower.texi: Update.
59660         * doc/posix-functions/towupper.texi: Update.
59661         * NEWS: Mention the change.
59662         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
59663         * modules/mbchar (Dependencies): Likewise.
59664         * modules/mbswidth (Dependencies): Likewise.
59665         * modules/quotearg (Dependencies): Likewise.
59666         * modules/regex (Dependencies): Likewise.
59667         * modules/wcscasecmp (Dependencies): Likewise.
59668         * modules/wcsncasecmp (Dependencies): Likewise.
59669         * modules/wcwidth (Dependencies): Likewise.
59671 2011-02-06  Bruno Haible  <bruno@clisp.org>
59673         New module 'wcswidth'.
59674         * modules/wcswidth: New file.
59675         * lib/wchar.in.h (wcswidth): New declaration.
59676         * lib/wcswidth.c: New file.
59677         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
59678         * m4/wcswidth.m4: New file.
59679         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
59680         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
59681         REPLACE_WCSWIDTH.
59682         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
59683         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
59684         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
59685         * doc/posix-functions/wcswidth.texi: Mention the new module.
59687 2011-02-06  Bruno Haible  <bruno@clisp.org>
59689         New module 'wcstok'.
59690         * modules/wcstok: New file.
59691         * lib/wchar.in.h (wcstok): New declaration.
59692         * lib/wcstok.c: New file.
59693         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
59694         * m4/wcstok.m4: New file.
59695         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
59696         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
59697         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
59698         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
59699         * doc/posix-functions/wcstok.texi: Mention the new module.
59701 2011-02-06  Bruno Haible  <bruno@clisp.org>
59703         New module 'wcsstr'.
59704         * modules/wcsstr: New file.
59705         * lib/wchar.in.h (wcsstr): New declaration.
59706         * lib/wcsstr.c: New file.
59707         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
59708         * m4/wcsstr.m4: New file.
59709         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
59710         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
59711         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
59712         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
59713         * doc/posix-functions/wcsstr.texi: Mention the new module.
59715 2011-02-06  Bruno Haible  <bruno@clisp.org>
59717         New module 'wcspbrk'.
59718         * modules/wcspbrk: New file.
59719         * lib/wchar.in.h (wcspbrk): New declaration.
59720         * lib/wcspbrk.c: New file.
59721         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
59722         * m4/wcspbrk.m4: New file.
59723         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
59724         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
59725         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
59726         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
59727         * doc/posix-functions/wcspbrk.texi: Mention the new module.
59729 2011-02-06  Bruno Haible  <bruno@clisp.org>
59731         New module 'wcsspn'.
59732         * modules/wcsspn: New file.
59733         * lib/wchar.in.h (wcsspn): New declaration.
59734         * lib/wcsspn.c: New file.
59735         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
59736         * m4/wcsspn.m4: New file.
59737         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
59738         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
59739         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
59740         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
59741         * doc/posix-functions/wcsspn.texi: Mention the new module.
59743 2011-02-06  Bruno Haible  <bruno@clisp.org>
59745         New module 'wcscspn'.
59746         * modules/wcscspn: New file.
59747         * lib/wchar.in.h (wcscspn): New declaration.
59748         * lib/wcscspn.c: New file.
59749         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
59750         * m4/wcscspn.m4: New file.
59751         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
59752         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
59753         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
59754         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
59755         * doc/posix-functions/wcscspn.texi: Mention the new module.
59757 2011-02-06  Bruno Haible  <bruno@clisp.org>
59759         New module 'wcsrchr'.
59760         * modules/wcsrchr: New file.
59761         * lib/wchar.in.h (wcsrchr): New declaration.
59762         * lib/wcsrchr.c: New file.
59763         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
59764         * m4/wcsrchr.m4: New file.
59765         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
59766         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
59767         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
59768         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
59769         * doc/posix-functions/wcsrchr.texi: Mention the new module.
59771 2011-02-06  Bruno Haible  <bruno@clisp.org>
59773         New module 'wcschr'.
59774         * modules/wcschr: New file.
59775         * lib/wchar.in.h (wcschr): New declaration.
59776         * lib/wcschr.c: New file.
59777         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
59778         * m4/wcschr.m4: New file.
59779         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
59780         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
59781         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
59782         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
59783         * doc/posix-functions/wcschr.texi: Mention the new module.
59785 2011-02-06  Bruno Haible  <bruno@clisp.org>
59787         New module 'wcsdup'.
59788         * modules/wcsdup: New file.
59789         * lib/wchar.in.h (wcsdup): New declaration.
59790         * lib/wcsdup.c: New file.
59791         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
59792         * m4/wcsdup.m4: New file.
59793         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
59794         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
59795         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
59796         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
59797         * doc/posix-functions/wcsdup.texi: Mention the new module.
59799 2011-02-06  Bruno Haible  <bruno@clisp.org>
59801         New module 'wcsxfrm'.
59802         * modules/wcsxfrm: New file.
59803         * lib/wchar.in.h (wcsxfrm): New declaration.
59804         * lib/wcsxfrm.c: New file.
59805         * lib/wcsxfrm-impl.h: New file.
59806         * m4/wcsxfrm.m4: New file.
59807         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
59808         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
59809         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
59810         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
59811         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
59813 2011-02-06  Bruno Haible  <bruno@clisp.org>
59815         New module 'wcscoll'.
59816         * modules/wcscoll: New file.
59817         * lib/wchar.in.h (wcscoll): New declaration.
59818         * lib/wcscoll.c: New file.
59819         * lib/wcscoll-impl.h: New file.
59820         * m4/wcscoll.m4: New file.
59821         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
59822         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
59823         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
59824         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
59825         * doc/posix-functions/wcscoll.texi: Mention the new module.
59827 2011-02-06  Bruno Haible  <bruno@clisp.org>
59829         New module 'wcsncasecmp'.
59830         * modules/wcsncasecmp: New file.
59831         * lib/wchar.in.h (wcsncasecmp): New declaration.
59832         * lib/wcsncasecmp.c: New file.
59833         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
59834         * m4/wcsncasecmp.m4: New file.
59835         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
59836         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
59837         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
59838         HAVE_WCSNCASECMP.
59839         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
59840         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
59842 2011-02-06  Bruno Haible  <bruno@clisp.org>
59844         New module 'wcscasecmp'.
59845         * modules/wcscasecmp: New file.
59846         * lib/wchar.in.h (wcscasecmp): New declaration.
59847         * lib/wcscasecmp.c: New file.
59848         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
59849         * m4/wcscasecmp.m4: New file.
59850         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
59851         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
59852         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
59853         HAVE_WCSCASECMP.
59854         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
59855         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
59857 2011-02-05  Bruno Haible  <bruno@clisp.org>
59859         New module 'wcsncmp'.
59860         * modules/wcsncmp: New file.
59861         * lib/wchar.in.h (wcsncmp): New declaration.
59862         * lib/wcsncmp.c: New file.
59863         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
59864         * m4/wcsncmp.m4: New file.
59865         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
59866         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
59867         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
59868         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
59869         * doc/posix-functions/wcsncmp.texi: Mention the new module.
59871 2011-02-05  Bruno Haible  <bruno@clisp.org>
59873         New module 'wcscmp'.
59874         * modules/wcscmp: New file.
59875         * lib/wchar.in.h (wcscmp): New declaration.
59876         * lib/wcscmp.c: New file.
59877         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
59878         * m4/wcscmp.m4: New file.
59879         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
59880         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
59881         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
59882         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
59883         * doc/posix-functions/wcscmp.texi: Mention the new module.
59885 2011-02-05  Bruno Haible  <bruno@clisp.org>
59887         New module 'wcsncat'.
59888         * modules/wcsncat: New file.
59889         * lib/wchar.in.h (wcsncat): New declaration.
59890         * lib/wcsncat.c: New file.
59891         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
59892         * m4/wcsncat.m4: New file.
59893         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
59894         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
59895         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
59896         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
59897         * doc/posix-functions/wcsncat.texi: Mention the new module.
59899 2011-02-05  Bruno Haible  <bruno@clisp.org>
59901         New module 'wcscat'.
59902         * modules/wcscat: New file.
59903         * lib/wchar.in.h (wcscat): New declaration.
59904         * lib/wcscat.c: New file.
59905         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
59906         * m4/wcscat.m4: New file.
59907         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
59908         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
59909         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
59910         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
59911         * doc/posix-functions/wcscat.texi: Mention the new module.
59913 2011-02-05  Bruno Haible  <bruno@clisp.org>
59915         New module 'wcpncpy'.
59916         * modules/wcpncpy: New file.
59917         * lib/wchar.in.h (wcpncpy): New declaration.
59918         * lib/wcpncpy.c: New file.
59919         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
59920         * m4/wcpncpy.m4: New file.
59921         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
59922         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
59923         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
59924         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
59925         * doc/posix-functions/wcpncpy.texi: Mention the new module.
59927 2011-02-05  Bruno Haible  <bruno@clisp.org>
59929         New module 'wcsncpy'.
59930         * modules/wcsncpy: New file.
59931         * lib/wchar.in.h (wcsncpy): New declaration.
59932         * lib/wcsncpy.c: New file.
59933         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
59934         * m4/wcsncpy.m4: New file.
59935         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
59936         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
59937         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
59938         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
59939         * doc/posix-functions/wcsncpy.texi: Mention the new module.
59941 2011-02-05  Bruno Haible  <bruno@clisp.org>
59943         New module 'wcpcpy'.
59944         * modules/wcpcpy: New file.
59945         * lib/wchar.in.h (wcpcpy): New declaration.
59946         * lib/wcpcpy.c: New file.
59947         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
59948         * m4/wcpcpy.m4: New file.
59949         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
59950         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
59951         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
59952         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
59953         * doc/posix-functions/wcpcpy.texi: Mention the new module.
59955 2011-02-05  Bruno Haible  <bruno@clisp.org>
59957         New module 'wcscpy'.
59958         * modules/wcscpy: New file.
59959         * lib/wchar.in.h (wcscpy): New declaration.
59960         * lib/wcscpy.c: New file.
59961         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
59962         * m4/wcscpy.m4: New file.
59963         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
59964         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
59965         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
59966         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
59967         * doc/posix-functions/wcscpy.texi: Mention the new module.
59969 2011-02-05  Bruno Haible  <bruno@clisp.org>
59971         New module 'wcsnlen'.
59972         * modules/wcsnlen: New file.
59973         * lib/wchar.in.h (wcsnlen): New declaration.
59974         * lib/wcsnlen.c: New file.
59975         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
59976         * m4/wcsnlen.m4: New file.
59977         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
59978         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
59979         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
59980         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
59981         * doc/posix-functions/wcsnlen.texi: Mention the new module.
59983 2011-02-05  Bruno Haible  <bruno@clisp.org>
59985         New module 'wcslen'.
59986         * modules/wcslen: New file.
59987         * lib/wchar.in.h (wcslen): New declaration.
59988         * lib/wcslen.c: New file.
59989         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
59990         * m4/wcslen.m4: New file.
59991         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
59992         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
59993         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
59994         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
59995         * doc/posix-functions/wcslen.texi: Mention the new module.
59997 2011-02-05  Bruno Haible  <bruno@clisp.org>
59999         New module 'wmemset'.
60000         * modules/wmemset: New file.
60001         * lib/wchar.in.h (wmemset): New declaration.
60002         * lib/wmemset.c: New file.
60003         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
60004         * m4/wmemset.m4: New file.
60005         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
60006         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
60007         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
60008         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
60009         * doc/posix-functions/wmemset.texi: Mention the new module.
60011 2011-02-05  Bruno Haible  <bruno@clisp.org>
60013         New module 'wmemmove'.
60014         * modules/wmemmove: New file.
60015         * lib/wchar.in.h (wmemmove): New declaration.
60016         * lib/wmemmove.c: New file.
60017         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
60018         * m4/wmemmove.m4: New file.
60019         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
60020         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
60021         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
60022         HAVE_WMEMMOVE.
60023         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
60024         * doc/posix-functions/wmemmove.texi: Mention the new module.
60026 2011-02-05  Bruno Haible  <bruno@clisp.org>
60028         New module 'wmemcpy'.
60029         * modules/wmemcpy: New file.
60030         * lib/wchar.in.h (wmemcpy): New declaration.
60031         * lib/wmemcpy.c: New file.
60032         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
60033         * m4/wmemcpy.m4: New file.
60034         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
60035         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
60036         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
60037         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
60038         * doc/posix-functions/wmemcpy.texi: Mention the new module.
60040 2011-02-05  Bruno Haible  <bruno@clisp.org>
60042         New module 'wmemcmp'.
60043         * modules/wmemcmp: New file.
60044         * lib/wchar.in.h (wmemcmp): New declaration.
60045         * lib/wmemcmp.c: New file.
60046         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
60047         * m4/wmemcmp.m4: New file.
60048         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
60049         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
60050         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
60051         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
60052         * doc/posix-functions/wmemcmp.texi: Mention the new module.
60054 2011-02-07  Jim Meyering  <meyering@redhat.com>
60056         di-set, ino-map: new modules, from coreutils
60057         * lib/di-set.c: New file.
60058         * lib/di-set.h: Likewise.
60059         * lib/ino-map.c: Likewise.
60060         * lib/ino-map.h: Likewise.
60061         * modules/di-set: Likewise.
60062         * modules/di-set-tests: Likewise.
60063         * modules/ino-map: Likewise.
60064         * modules/ino-map-tests: Likewise.
60065         * tests/test-di-set.c: Likewise.
60066         * tests/test-ino-map.c: Likewise.
60068 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
60070         getloadavg: merge minor changes from Emacs
60072         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
60073         (getloadavg): Use memset, not bzero.
60075         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
60076         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
60077         clash (bug#86).
60079 2010-11-14  Bruno Haible  <bruno@clisp.org>
60081         Allow multiple gnulib generated replacements to coexist.
60082         * lib/getopt.in.h (struct option): Avoid identical redefinition.
60083         * lib/inttypes.in.h (imaxdiv_t): Likewise.
60084         * lib/langinfo.in.h (nl_item): Likewise.
60085         * lib/math.in.h (_NaN, NAN): Likewise.
60086         * lib/netdb.in.h (struct addrinfo): Likewise.
60087         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
60088         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
60089         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
60090         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
60091         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
60092         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
60093         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
60094         pthread_mutexattr_init, pthread_mutexattr_settype,
60095         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
60096         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
60097         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
60098         pthread_spin_trylock, pthread_spin_unlock): Likewise.
60099         * lib/sched.in.h (struct sched_param): Likewise.
60100         * lib/se-selinux.in.h (security_class_t, security_context_t,
60101         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
60102         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
60103         lsetfilecon, fsetfilecon, security_check_context,
60104         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
60105         Likewise.
60106         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
60107         Likewise.
60108         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
60109         _gl_function_taking_int_returning_void_t, union sigval,
60110         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
60111         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
60112         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
60113         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
60114         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
60115         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
60116         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
60117         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
60118         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
60119         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
60120         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
60121         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
60122         socklen_t, rpl_fd_isset): Likewise.
60123         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
60124         * lib/sys_time.in.h (struct timeval): Likewise.
60125         * lib/sys_times.in.h (struct tms): Likewise.
60126         * lib/sys_utsname.in.h (struct utsname):
60127         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
60128         * lib/unistd.in.h (getpagesize): Likewise.
60129         * lib/wchar.in.h (mbstate_t): Likewise.
60130         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
60131         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
60132         towlower, towupper): Likewise.
60133         Reported by Sam Steingold <sds@gnu.org>.
60135 2011-02-05  Eric Blake  <eblake@redhat.com>
60137         unsetenv: work around Haiku issues
60138         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
60139         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
60141 2010-12-30  Bruce Korb  <bkorb@gnu.org>
60143         libposix: avoid calling error() within libposix
60144         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
60145         is defined.
60147 2011-02-05  Eric Blake  <eblake@redhat.com>
60149         strerror_r-posix: port to cygwin
60150         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
60151         implementation.
60152         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
60153         * tests/test-strerror_r.c (main): Fix test.
60154         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
60155         issue.
60157 2011-02-05  Bruno Haible  <bruno@clisp.org>
60159         New module 'wmemchr'.
60160         * modules/wmemchr: New file.
60161         * lib/wchar.in.h (wmemchr): New declaration.
60162         * lib/wmemchr.c: New file.
60163         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
60164         * m4/wmemchr.m4: New file.
60165         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
60166         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
60167         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
60168         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
60169         * doc/posix-functions/wmemchr.texi: Mention the new module.
60171 2011-02-04  Eric Blake  <eblake@redhat.com>
60173         fdopendir: detect FreeBSD bug
60174         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
60175         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
60177 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
60179         stdbool: do not define HAVE_STDBOOL_H
60180         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
60181         AC_HEADER_STDBOOL.  All uses changed.  Do not define
60182         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
60183         imported from the latest Autoconf git.  It was motivated by Emacs,
60184         which uses gnulib but does not need HAVE_STDBOOL_H.
60186 2011-02-04  Bruno Haible  <bruno@clisp.org>
60188         wcsnrtombs: Prepare for new module wwcsnrtombs.
60189         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
60190         * lib/wcsnrtombs.c: Include it.
60191         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
60193         wcsrtombs: Prepare for new module wwcsrtombs.
60194         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
60195         * lib/wcsrtombs.c: Include it.
60196         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
60198         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
60199         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
60200         * lib/mbsnrtowcs.c: Include it.
60201         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
60203         mbsrtowcs: Prepare for new module mbsrtowwcs.
60204         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
60205         * lib/mbsrtowcs.c: Include it.
60206         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
60208 2011-02-04  Bruno Haible  <bruno@clisp.org>
60210         vasnprintf: Reduce use of malloc for small format strings.
60211         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
60212         (arguments): Add room for the first 7 arguments.
60213         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
60214         (char_directives, u8_directives, u16_directives, u32_directives): Add
60215         room for the first 7 directives.
60216         * lib/printf-parse.c: Include <string.h>.
60217         (PRINTF_PARSE): Change memory handling code so that it uses the first
60218         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
60219         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
60220         Reported by Pádraig Brady <P@draigbrady.com>.
60222 2011-01-31  Eric Blake  <eblake@redhat.com>
60224         dup2: work around Haiku bug
60225         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
60226         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
60227         * doc/posix-functions/dup2.texi (dup2): Document the bug.
60228         * tests/test-dup2.c (main): Enhance test.
60230 2011-01-31  Simon Josefsson  <simon@josefsson.org>
60232         doc: off_t is not available in eglibc 2.11.2 stdio.h.
60233         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
60234         declared by eglibc 2.11.2.
60235         * lib/stdio.in.h: Likewise.
60237 2011-01-31  Eric Blake  <eblake@redhat.com>
60239         ignore-value: add missing test dependency
60240         * tests/test-ignore-value.c: Revert previous change; stdio.h
60241         provides off_t.
60242         * modules/ignore-value-tests (Depends-on): Add missing dependency.
60244 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
60246         mktime: clarify long_int width checking
60247         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
60248         the top level, to make it clearer that the assumption about
60249         long_int width is being checked.  See
60250         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00554.html>.
60252 2011-01-30  Simon Josefsson  <simon@josefsson.org>
60254         ignore-value: Fix self-test.
60255         * tests/test-ignore-value.c: Include sys/types.h for off_t.
60257 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
60259         TYPE_MAXIMUM: avoid theoretically undefined behavior
60260         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
60261         negative number, which the C Standard says has undefined behavior.
60262         In practice this is not a problem, but might as well do it by the book.
60263         Reported by Rich Felker and Eric Blake; see
60264         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00493.html>.
60265         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
60266         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
60267         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
60268         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
60269         * m4/stdint.m4 (gl_STDINT_H): Likewise.
60270         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
60272         mktime: #undef mktime before #defining it
60273         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
60275         mktime: systematically normalize tm_isdst comparisons
60276         * lib/mktime.c (isdst_differ): New function.
60277         (__mktime_internal): Use it systematically for all isdst comparisons.
60278         This completes the fix for libc BZ #6723, and removes the need for
60279         normalizing tm_isdst.  See
60280         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
60281         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
60283         mktime: fix some integer overflow issues and sidestep the rest
60285         This was prompted by a bug report by Benjamin Lindner for MinGW
60286         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00472.html>.
60287         His bug is due to signed integer overflow (0 - INT_MIN), and I
60288         I scanned through mktime.c looking for other integer overflow
60289         problems, fixing all the bugs I found.
60291         Although the C Standard says the resulting code is still not safe
60292         in the presence of integer overflow, in practice it should be good
60293         enough for all real-world two's-complement implementations, except
60294         for debugging environments that deliberately trap on integer
60295         overflow (e.g., gcc -ftrapv).
60297         * lib/mktime.c (WRAPV): New macro.
60298         (SHR): Also check that long_int and time_t shift right in the
60299         usual way, before using the fast-but-unportable method.
60300         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
60301         used.  The code already assumed two's complement, so there's
60302         no need to test for alternatives.  All uses removed.
60303         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
60304         the C standard.  Problem reported by Rich Felker in
60305         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00488.html>.
60306         (twos_complement_arithmetic): Also check long_int and time_t.
60307         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
60308         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
60309         (__mktime_internal): Avoid integer overflow with unary subtraction
60310         in two instances where -1 - X is an adequate replacement for -X,
60311         since the calculations are approximate.
60313 2011-01-29  Eric Blake  <eblake@redhat.com>
60315         mktime: avoid infinite loop
60316         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
60317         type; behavior is still undefined but portable to all known targets.
60318         Reported by Rich Felker.
60320 2011-01-29  Simon Josefsson  <simon@josefsson.org>
60322         rename, unlink, same-inode: Relicense.
60323         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
60324         * modules/unlink (License): Likewise.
60325         * modules/same-inode (License): Likewise.
60327 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
60329         mktime: avoid problems on NetBSD 5 / i386
60330         * lib/mktime.c (long_int): New type.  This works around a problem
60331         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
60332         but time_t is 64 bits, and where I expect the existing code is
60333         wrong in some cases.
60334         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
60335         (ydhms_diff): Bring back the compile-time check for wide-enough
60336         year and yday.
60338         mktime: fix misspelling in comment
60339         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
60340         This merges all recent glibc changes of importance.
60342 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60344         move-if-change: cope with concurrent mv of identical file.
60345         * build-aux/move-if-change (CMPPROG): Accept environment
60346         variable as an override for `cmp'.
60347         (usage): Document CMPPROG.
60348         Adjust comparison to drop stdout.  Cope with failure of mv if
60349         the target file exists and is identical to the source, for
60350         parallel builds.
60351         Report from H.J. Lu against binutils in PR binutils/12283.
60353 2011-01-28  Bruce Korb  <bkorb@gnu.org>
60355         * users.txt: Mention sharutils.
60357 2011-01-28  Simon Josefsson  <simon@josefsson.org>
60359         * users.txt: Mention OATH Toolkit.
60361 2011-01-27  Bruno Haible  <bruno@clisp.org>
60363         Prepare for supporting FreeBSD 10.
60364         * build-aux/config.libpath: Remove handling of freebsd1*.
60366 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
60368         Prepare for supporting FreeBSD 10.
60369         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
60370         match FreeBSD 10.0.
60372 2011-01-27  Bruno Haible  <bruno@clisp.org>
60374         vma-iter, get-rusage-as: Add OpenBSD support.
60375         * modules/vma-iter (configure.ac): Test for mquery.
60376         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
60377         * lib/vma-iter.c: Include <sys/mman.h>.
60378         (vma_iterate): Add an implementation based on mquery().
60379         * lib/resource-ext.h (get_rusage_as): Update comments.
60380         * lib/get-rusage-as.c: Likewise.
60381         * lib/get-rusage-data.c: Likewise.
60383 2011-01-26  Karl Berry  <karl@gnu.org>
60385         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
60386         variables to make it easier to override the makeinfo program used.
60388 2011-01-26  Eric Blake  <eblake@redhat.com>
60390         fcntl: work around Haiku F_DUPFD bugs
60391         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
60392         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
60393         cloexec bit on duplication.
60394         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
60396 2011-01-26  Bruno Haible  <bruno@clisp.org>
60398         Enable memory leak tests on AIX.
60399         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
60400         * tests/test-fprintf-posix3.c (main): Likewise.
60402 2011-01-26  Bruno Haible  <bruno@clisp.org>
60404         Tests for module 'get-rusage-data'.
60405         * modules/get-rusage-data-tests: New file.
60406         * tests/test-get-rusage-data.c: New file.
60408         New module 'get-rusage-data'.
60409         * lib/resource-ext.h (get_rusage_data): New declaration.
60410         * lib/get-rusage-data.c: New file.
60411         * modules/get-rusage-data: New file.
60413 2011-01-25  Bruno Haible  <bruno@clisp.org>
60415         get-rusage-as: Allow for easier testing.
60416         * lib/resource-ext.h (get_rusage_as): Add comment.
60417         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
60418         (main): New function for interactive testing.
60420 2011-01-25  Bruno Haible  <bruno@clisp.org>
60422         vma-iter: Treat Haiku like BeOS.
60423         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
60424         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
60426 2011-01-25  Eric Blake  <eblake@redhat.com>
60428         c-stack: fix regression on cygwin when libsigsegv is present
60429         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
60431 2011-01-24  Bruno Haible  <bruno@clisp.org>
60433         vma-iter: Avoid empty intervals.
60434         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
60435         on an empty interval.
60437 2011-01-24  Jim Meyering  <meyering@redhat.com>
60439         u64: remove unnecessary #include
60440         * lib/u64.h: Don't include <stddef.h>.  It was not used.
60442 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
60444         Allow the user to avoid the HAVE_RAW_DECL_* macros.
60445         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
60447 2011-01-23  Bruno Haible  <bruno@clisp.org>
60449         New module 'vma-iter'.
60450         * lib/vma-iter.h: New file.
60451         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
60452         * modules/vma-iter: New file.
60453         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
60454         for get_rusage_as_via_iterator.
60455         (vma_iterate_callback): New function.
60456         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
60457         * modules/get-rusage-as (Depends-on): Add vma-iter.
60459 2011-01-23  Bruno Haible  <bruno@clisp.org>
60461         uninorm: Tweak includes.
60462         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
60463         Reported by Jim Meyering.
60465 2011-01-23  Bruno Haible  <bruno@clisp.org>
60467         get-rusage-as: Improve on NetBSD.
60468         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
60469         /proc, like on FreeBSD.
60471 2011-01-23  Jim Meyering  <meyering@redhat.com>
60473         xreadlink.h: remove unnecessary #include
60474         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
60476         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
60477         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
60479 2011-01-23  Bruno Haible  <bruno@clisp.org>
60481         get-rusage-as: Fix bug.
60482         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
60483         original limit when aborting the first loop.
60485 2011-01-23  Bruno Haible  <bruno@clisp.org>
60487         wctype: Ensure valid C syntax.
60488         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
60489         unconditionally, instead of gl_NEXT_HEADERS conditionally.
60491 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
60493         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
60494         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
60495         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
60496         as they are needed only for configure's test case.
60497         This removes two unnecessary symbols from config.h.
60499         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
60500         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
60501         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
60502         AC_CHECK_HEADERS_ONCE on a header that we also invoke
60503         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
60504         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
60505         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
60506         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
60507         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
60508         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
60509         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
60510         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
60511         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
60512         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
60513         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
60514         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
60515         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
60516         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
60518 2011-01-21  Eric Blake  <eblake@redhat.com>
60520         maintainer-makefile: work with older git for submodule check
60521         * top/maint.mk (public-submodule-commit): Rewrite to avoid
60522         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
60523         Reported by Matthias Bolte.
60525         bootstrap: minor portability fixes
60526         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
60527         (usage): Omit leading capital and trailing . on help phrases, per
60528         GNU Coding Standards.
60529         (check_versions, top level): Prefix messages with script name.
60531 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
60533         bootstrap: support --no-git option
60534         * build-aux/bootstrap: Add --no-git option, to be used when
60535         --gnulib-srcdir points to the exact desired checkout.
60537 2011-01-21  Eric Blake  <eblake@redhat.com>
60539         strerror_r-posix: work with glibc 2.13
60540         * lib/strerror_r.c (strerror_r): Fix return type.
60542 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60543             Bruno Haible  <bruno@clisp.org>
60545         uN_strstr: New unit tests.
60546         * modules/unistr/u8-strstr-tests: New file.
60547         * modules/unistr/u16-strstr-tests: New file.
60548         * modules/unistr/u32-strstr-tests: New file.
60549         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
60550         * tests/unistr/test-u8-strstr.c: New file.
60551         * tests/unistr/test-u16-strstr.c: New file.
60552         * tests/unistr/test-u32-strstr.c: New file.
60554 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60555             Bruno Haible  <bruno@clisp.org>
60557         Make uN_strstr functions O(n) worst-case.
60558         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
60559         16-bit and 32-bit unit cases, use the unibyte algorithm from
60560         lib/mbsstr.c.
60561         * lib/unistr/u8-strstr.c: Include <string.h>.
60562         (UNIT_IS_UINT8_T): New macro.
60563         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
60564         (U_STRLEN, U_STRNLEN): New macros.
60565         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
60566         (U_STRLEN, U_STRNLEN): New macros.
60567         * modules/unistr/u8-strstr (Depends-on): Add strstr.
60568         (configure.ac): Update required libunistring version.
60569         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
60570         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
60571         malloca.
60572         (configure.ac): Update required libunistring version.
60573         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
60574         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
60575         malloca.
60576         (configure.ac): Update required libunistring version.
60578 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60579             Bruno Haible  <bruno@clisp.org>
60581         Prepare for faster uN_strstr functions.
60582         * lib/str-kmp.h: Support definable UNITs.
60583         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
60584         needle_len argument.
60585         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
60586         * lib/mbscasestr.c (mbscasestr): Likewise.
60588 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60590         malloca-tests: make faster by unsetting MALLOC_PERTURB_
60591         * tests/test-malloca.c (main): Unset the environment variable
60592         to greatly speed up the test.
60593         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
60594         * modules/malloca-tests: Depend on unsetenv.
60596 2011-01-21  Pádraig Brady  <P@draigBrady.com>
60598         ignore-value: remove stdint dependency
60599         * lib/ignore-value.h: Remove <stdint.h>
60600         * modules/ignore-value: Remove stdint dependency.
60602 2011-01-21  Jim Meyering  <meyering@redhat.com>
60604         maint.mk: adjust variable name to be consistent with other gl_ vars
60605         * top/maint.mk (gl_public_submodule_commit): Rename the variable
60606         to be lower case.
60608 2011-01-20  Jim Meyering  <meyering@redhat.com>
60610         maint.mk: make "check" depend on public-submodule-commit by default
60611         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
60613 2011-01-20  Bruno Haible  <bruno@clisp.org>
60615         mbfile, mbiter: Complete change from 2008-12-21.
60616         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
60617         * m4/mbiter.m4 (gl_MBITER): Likewise.
60619 2011-01-20  Jim Meyering  <meyering@redhat.com>
60621         init.sh: insert space between each function name and "()"
60622         * tests/init.sh: Make it a little easier to see that a function's
60623         name is "warn_", and not "warn" when looking at the first part of
60624         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
60626 2011-01-20  Jim Meyering  <meyering@redhat.com>
60628         mountlist: clean up code formatting
60629         * lib/mountlist.c (read_file_system_list): Split a long line,
60630         correct bracing style, use NULL in place of "(struct statfs *)0",
60631         don't parenthesize return value, add spaces around "=" and after
60632         ";-in-for-stmt".
60634 2011-01-14  Markus Duft  <mduft@gentoo.org>
60636         mountlist: add support for Interix
60637         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
60638         Apply statvfs to all entries of /dev/fs.
60639         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
60640         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
60642 2011-01-20  Jim Meyering  <meyering@redhat.com>
60644         maint.mk: improve the public-submodule-commit rule
60645         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
60646         to suppress printing of its commands... unless V=1.
60647         Add git submodule's --quiet option to suppress printing of e.g.,
60648         "Entering gnulib" output.
60649         "cd" into $(srcdir) before running git submodule.
60651 2011-01-20  Bruno Haible  <bruno@clisp.org>
60653         include_next: Fix bug introduced on 2011-01-18.
60654         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
60655         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
60656         ac_cv_header_... variable if the second argument is not 'check'.
60657         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
60658         gl_NEXT_HEADERS_INTERNAL.
60660 2011-01-20  Bruno Haible  <bruno@clisp.org>
60662         Allow the user to avoid the GNULIB_TEST_* macros.
60663         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
60664         Suggested by Paul Eggert.
60666 2011-01-14  Jim Meyering  <meyering@redhat.com>
60668         bootstrap: avoid failure when there is no .gitmodules file
60669         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
60670         has been assigned to, even when its value is the empty string.
60671         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
60672         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
60673         Reported by John W. Eaton <jwe@gnu.org>.
60675 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
60677         assume <ctype.h>, ..., <time.h> exist
60678         For years gnulib has been assuming the existence of the headers
60679         <ctype.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
60680         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
60681         them, since they don't appear to be needed.
60682         * README (Portability guidelines): Document this.
60683         * lib/flock.c: Assume <fcntl.h> exists.
60684         * lib/regex_internal.h: Assume <locale.h> exists.
60685         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
60686         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
60687         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
60688         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
60689         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
60690         * m4/regex.m4 (gl_REGEX): Likewise.
60691         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
60692         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
60693         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
60694         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
60695         * tests/test-argp.c: Likewise.
60696         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
60698         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
60699         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
60700         AA_APPLE_UNIVERSAL_BUILD.  See
60701         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00247.html>.
60702         * NEWS: Document this.
60704 2011-01-19  Eric Blake  <eblake@redhat.com>
60706         c-stack: assume stack overflow if SA_SIGINFO unsupported
60707         * lib/c-stack.c (SIGACTION_WORKS): Rename...
60708         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
60709         sigaction will work.
60710         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
60711         behavior match Linux.
60712         * tests/test-c-stack.c (main): Prefer NULL for pointers.
60714         stdbool-tests: accommodate Haiku
60715         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
60717         binary-io: fix O_TEXT on Haiku
60718         * modules/binary-io (Depends-on): Add fcntl-h.
60719         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
60720         than blindly undefining O_TEXT.
60721         Reported by Scott McCreary.
60723 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60725         include_next: do not check for standard headers like stddef.h
60727         I found this problem when modifying Emacs to use gnulib.
60728         I noticed that it added HAVE_STDDEF_H to config.h, even though
60729         gnulib always assumes <stddef.h> exists as per README and this
60730         symbol is unnecessary.
60731         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
60732         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
60733         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
60734         faster for headers like stddef.h that are known to exist.
60735         (gl_CHECK_NEXT_HEADERS): Use it.
60736         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
60737         rather than gl_CHECK_NEXT_HEADERS.
60738         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
60739         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
60741 2011-01-18  Eric Blake  <eblake@redhat.com>
60743         ansi-c++-opt: skip C++ dependency style if C++ is unused
60744         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
60745         tests when we know C++ compilation is not desired.
60746         Reported by Scott McCreary.
60748 2011-01-18  Bruno Haible  <bruno@clisp.org>
60750         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
60751         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
60752         (main): Perform test also when getrlimit and setrlimit don't exist or
60753         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
60754         limiting the address space size using setrlimit, compare the address
60755         space size before and after the test.
60756         * tests/test-dprintf-posix2.c: Likewise.
60757         * tests/test-fprintf-posix3.sh: Update skip messages.
60758         * tests/test-dprintf-posix2.sh: Likewise.
60759         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
60760         * modules/dprintf-posix-tests (Depends-on): Likewise.
60761         Reported by Bruce Korb <bkorb@gnu.org> and
60762         Gary V. Vaughan <gary@gnu.org>.
60764 2011-01-18  Bruno Haible  <bruno@clisp.org>
60766         get-rusage-as: Improvement for Cygwin.
60767         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
60768         areas that are merely reserved.
60770 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
60772         strftime: remove dependencies on multibyte modules
60774         strftime depended on mbrlen, mbsinit, and wchar, but these modules
60775         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
60776         only if __osf__ is defined, and I suspect OSF doesn't need these
60777         other modules.  If my guess is wrong, we'll need to come up with a
60778         variant of strftime that doesn't need the multibyte modules.
60780         I discovered this problem when attempting modify Emacs to use the
60781         strftime module.  With the previous gnulib, this caused Emacs to
60782         need 31 new files, ranging from lib/config.charset to
60783         m4/wint_t.m4.  This was overkill and I expect would be offputting
60784         to the Emacs maintainers.  After this change, only 6 new files are
60785         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
60786         stdbool.m4, and tm_gmtoff.m4.
60788         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
60789         Suggested by Bruno Haible in
60790         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00238.html>.
60791         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
60792         and do not check for wchar.h.
60793         * modules/strftime (Files): Remove m4/mbstate_t.m4.
60794         (Depends-on): Remove mbrlen, mbsinit, wchar.
60796 2011-01-18  Bruno Haible  <bruno@clisp.org>
60798         Tests for module 'get-rusage-as'.
60799         * modules/get-rusage-as-tests: New file.
60800         * tests/test-get-rusage-as.c: New file.
60802         New module 'get-rusage-as'.
60803         * modules/get-rusage-as: New file.
60804         * lib/resource-ext.h: New file.
60805         * lib/get-rusage-as.c: New file.
60807 2011-01-17  Eric Blake  <eblake@redhat.com>
60809         sigaction: relax license from LGPLv3+ to LGPLv2+
60810         * modules/sigaction (License): Relax to LGPLv2+.
60812 2011-01-14  Bruno Haible  <bruno@clisp.org>
60814         filemode: Make function declarations usable in C++ mode.
60815         * lib/filemode.h: Enclose function declarations in extern "C" block.
60816         Reported by John W. Eaton <jwe@gnu.org>.
60818 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
60820         save-cwd: no longer include "xgetcwd.h"
60821         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
60822         This avoids a compilation failure in projects that use save-cwd
60823         without also using the xgetcwd module.
60825 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60827         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
60828         This is so that a program like Emacs, which needs only dtoastr,
60829         does not have to bother with distributing and compiling ftoastr
60830         and ldtoastr.
60831         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
60832         * modules/dtoastr, modules/ldtoastr: New files.
60833         * modules/ftoastr: Now works just for 'float'.
60834         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
60835         (Makefile.am): Remove ftoastr.h (not needed and no effect),
60836         dtoastr.c, ldtoastr.c.
60838 2011-01-11  Jim Meyering  <meyering@redhat.com>
60840         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
60841         There is no need to work around the lack of the fchdir function,
60842         since gnulib can now provide a replacement when required.
60843         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
60844         * modules/save-cwd (Depends-on): Add fchdir.
60846 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
60848         openat, save-cwd: avoid xmalloc
60850         This removes a direct (but undocumented) dependency of openat on
60851         xalloc, along with an indirect dependency via save-cwd.  It also
60852         removes a dependency of save-cwd on xgetcwd, and thereby
60853         indirectly on xalloc.  This change causes the openat substitute
60854         to fall back on save_cwd when memory is tight, and for save_cwd to
60855         fail instead of dying when memory is tight, but that's good enough.
60856         Problem and initial idea for fix reported by Bastien Roucaries in
60857         <http://lists.gnu.org/r/bug-gnulib/2011-01/msg00170.html>.
60859         * lib/openat-proc.c: Include stdlib.h (for malloc), not
60860         xalloc.h (for xmalloc).
60861         (openat_proc_name): Use malloc, not xmalloc.
60862         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
60863         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
60865         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
60866         This avoids heap allocation for file names whose lengths are in
60867         the range 512..1023, with the upper bound increasing to at most
60868         4031 depending on the platform's PATH_MAX.  (We do not want
60869         pathmax.h here as it might supply a non-constant PATH_MAX.)
60870         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
60871         Perhaps they should be moved to malloca.h?
60872         (OPENAT_BUFFER_SIZE): Use them.
60874 2011-01-10  Bruno Haible  <bruno@clisp.org>
60876         doc: Update users.txt.
60877         * users.txt: Add recutils.
60879 2011-01-09  Karl Berry  <karl@gnu.org>
60881         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
60883         * doc/configmake.texi: New file.
60884         * doc/gnulib.texi: Include it.
60885         * modules/configmake: Move documentation from here.
60887 2011-01-09  Bruno Haible  <bruno@clisp.org>
60889         Update to Unicode 6.0.0.
60890         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
60891         (get_lbp): Update for Unicode 6.0.0.
60892         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
60893         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
60894         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
60895         U+11001, U+11038..U+11046. Remove U+06DE.
60896         (uc_width): Fix bounds of planes.
60897         * tests/uniwidth/test-uc_width2.sh: Same updates as in
60898         lib/uniwidth/width.c.
60899         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
60900         trailing whitespace removed.
60901         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
60902         without comments, but with the original copyright notice.
60903         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
60904         * lib/unicase/ignorable.h: Likewise.
60905         * lib/unicase/tocasefold.h: Likewise.
60906         * lib/unicase/tolower.h: Likewise.
60907         * lib/unicase/totitle.h: Likewise.
60908         * lib/unicase/toupper.h: Likewise.
60909         * lib/unictype/bidi_of.h: Likewise.
60910         * lib/unictype/blocks.h: Likewise.
60911         * lib/unictype/categ_C.h: Likewise.
60912         * lib/unictype/categ_Cn.h: Likewise.
60913         * lib/unictype/categ_L.h: Likewise.
60914         * lib/unictype/categ_Ll.h: Likewise.
60915         * lib/unictype/categ_Lm.h: Likewise.
60916         * lib/unictype/categ_Lo.h: Likewise.
60917         * lib/unictype/categ_Lu.h: Likewise.
60918         * lib/unictype/categ_M.h: Likewise.
60919         * lib/unictype/categ_Mc.h: Likewise.
60920         * lib/unictype/categ_Me.h: Likewise.
60921         * lib/unictype/categ_Mn.h: Likewise.
60922         * lib/unictype/categ_N.h: Likewise.
60923         * lib/unictype/categ_Nd.h: Likewise.
60924         * lib/unictype/categ_No.h: Likewise.
60925         * lib/unictype/categ_P.h: Likewise.
60926         * lib/unictype/categ_Po.h: Likewise.
60927         * lib/unictype/categ_S.h: Likewise.
60928         * lib/unictype/categ_Sc.h: Likewise.
60929         * lib/unictype/categ_Sk.h: Likewise.
60930         * lib/unictype/categ_Sm.h: Likewise.
60931         * lib/unictype/categ_So.h: Likewise.
60932         * lib/unictype/categ_of.h: Likewise.
60933         * lib/unictype/combining.h: Likewise.
60934         * lib/unictype/ctype_alnum.h: Likewise.
60935         * lib/unictype/ctype_alpha.h: Likewise.
60936         * lib/unictype/ctype_graph.h: Likewise.
60937         * lib/unictype/ctype_lower.h: Likewise.
60938         * lib/unictype/ctype_print.h: Likewise.
60939         * lib/unictype/ctype_punct.h: Likewise.
60940         * lib/unictype/ctype_upper.h: Likewise.
60941         * lib/unictype/decdigit.h: Likewise.
60942         * lib/unictype/digit.h: Likewise.
60943         * lib/unictype/numeric.h: Likewise.
60944         * lib/unictype/pr_alphabetic.h: Likewise.
60945         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
60946         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
60947         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
60948         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
60949         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
60950         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
60951         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
60952         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
60953         * lib/unictype/pr_case_ignorable.h: Likewise.
60954         * lib/unictype/pr_cased.h: Likewise.
60955         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
60956         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
60957         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
60958         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
60959         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
60960         * lib/unictype/pr_combining.h: Likewise.
60961         * lib/unictype/pr_composite.h: Likewise.
60962         * lib/unictype/pr_currency_symbol.h: Likewise.
60963         * lib/unictype/pr_decimal_digit.h: Likewise.
60964         * lib/unictype/pr_deprecated.h: Likewise.
60965         * lib/unictype/pr_format_control.h: Likewise.
60966         * lib/unictype/pr_grapheme_base.h: Likewise.
60967         * lib/unictype/pr_grapheme_extend.h: Likewise.
60968         * lib/unictype/pr_grapheme_link.h: Likewise.
60969         * lib/unictype/pr_id_continue.h: Likewise.
60970         * lib/unictype/pr_id_start.h: Likewise.
60971         * lib/unictype/pr_ideographic.h: Likewise.
60972         * lib/unictype/pr_lowercase.h: Likewise.
60973         * lib/unictype/pr_math.h: Likewise.
60974         * lib/unictype/pr_numeric.h: Likewise.
60975         * lib/unictype/pr_other_alphabetic.h: Likewise.
60976         * lib/unictype/pr_other_id_continue.h: Likewise.
60977         * lib/unictype/pr_other_math.h: Likewise.
60978         * lib/unictype/pr_punctuation.h: Likewise.
60979         * lib/unictype/pr_sentence_terminal.h: Likewise.
60980         * lib/unictype/pr_terminal_punctuation.h: Likewise.
60981         * lib/unictype/pr_unassigned_code_value.h: Likewise.
60982         * lib/unictype/pr_unified_ideograph.h: Likewise.
60983         * lib/unictype/pr_uppercase.h: Likewise.
60984         * lib/unictype/pr_xid_continue.h: Likewise.
60985         * lib/unictype/pr_xid_start.h: Likewise.
60986         * lib/unictype/scripts.h: Likewise.
60987         * lib/unictype/scripts_byname.gperf: Likewise.
60988         * lib/unictype/sy_java_ident.h: Likewise.
60989         * lib/unigbrk/gbrkprop.h: Likewise.
60990         * lib/unilbrk/lbrkprop1.h: Likewise.
60991         * lib/unilbrk/lbrkprop2.h: Likewise.
60992         * lib/uninorm/decomposition-table2.h: Likewise.
60993         * lib/uniwbrk/wbrkprop.h: Likewise.
60994         * tests/unicase/test-cased.c: Likewise.
60995         * tests/unicase/test-ignorable.c: Likewise.
60996         * tests/unicase/test-uc_tolower.c: Likewise.
60997         * tests/unicase/test-uc_totitle.c: Likewise.
60998         * tests/unicase/test-uc_toupper.c: Likewise.
60999         * tests/unictype/test-categ_C.c: Likewise.
61000         * tests/unictype/test-categ_Cn.c: Likewise.
61001         * tests/unictype/test-categ_L.c: Likewise.
61002         * tests/unictype/test-categ_Ll.c: Likewise.
61003         * tests/unictype/test-categ_Lm.c: Likewise.
61004         * tests/unictype/test-categ_Lo.c: Likewise.
61005         * tests/unictype/test-categ_Lu.c: Likewise.
61006         * tests/unictype/test-categ_M.c: Likewise.
61007         * tests/unictype/test-categ_Mc.c: Likewise.
61008         * tests/unictype/test-categ_Me.c: Likewise.
61009         * tests/unictype/test-categ_Mn.c: Likewise.
61010         * tests/unictype/test-categ_N.c: Likewise.
61011         * tests/unictype/test-categ_Nd.c: Likewise.
61012         * tests/unictype/test-categ_No.c: Likewise.
61013         * tests/unictype/test-categ_P.c: Likewise.
61014         * tests/unictype/test-categ_Po.c: Likewise.
61015         * tests/unictype/test-categ_S.c: Likewise.
61016         * tests/unictype/test-categ_Sc.c: Likewise.
61017         * tests/unictype/test-categ_Sk.c: Likewise.
61018         * tests/unictype/test-categ_Sm.c: Likewise.
61019         * tests/unictype/test-categ_So.c: Likewise.
61020         * tests/unictype/test-ctype_alnum.c: Likewise.
61021         * tests/unictype/test-ctype_alpha.c: Likewise.
61022         * tests/unictype/test-ctype_graph.c: Likewise.
61023         * tests/unictype/test-ctype_lower.c: Likewise.
61024         * tests/unictype/test-ctype_print.c: Likewise.
61025         * tests/unictype/test-ctype_punct.c: Likewise.
61026         * tests/unictype/test-ctype_upper.c: Likewise.
61027         * tests/unictype/test-decdigit.h: Likewise.
61028         * tests/unictype/test-digit.h: Likewise.
61029         * tests/unictype/test-numeric.h: Likewise.
61030         * tests/unictype/test-pr_alphabetic.c: Likewise.
61031         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61032         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61033         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61034         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61035         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61036         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61037         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61038         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61039         * tests/unictype/test-pr_case_ignorable.c: Likewise.
61040         * tests/unictype/test-pr_cased.c: Likewise.
61041         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
61042         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
61043         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
61044         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
61045         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
61046         * tests/unictype/test-pr_combining.c: Likewise.
61047         * tests/unictype/test-pr_composite.c: Likewise.
61048         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61049         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61050         * tests/unictype/test-pr_deprecated.c: Likewise.
61051         * tests/unictype/test-pr_format_control.c: Likewise.
61052         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61053         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61054         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61055         * tests/unictype/test-pr_id_continue.c: Likewise.
61056         * tests/unictype/test-pr_id_start.c: Likewise.
61057         * tests/unictype/test-pr_ideographic.c: Likewise.
61058         * tests/unictype/test-pr_lowercase.c: Likewise.
61059         * tests/unictype/test-pr_math.c: Likewise.
61060         * tests/unictype/test-pr_numeric.c: Likewise.
61061         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61062         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61063         * tests/unictype/test-pr_other_math.c: Likewise.
61064         * tests/unictype/test-pr_punctuation.c: Likewise.
61065         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61066         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61067         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61068         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61069         * tests/unictype/test-pr_uppercase.c: Likewise.
61070         * tests/unictype/test-pr_xid_continue.c: Likewise.
61071         * tests/unictype/test-pr_xid_start.c: Likewise.
61072         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61073         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61074         changes.
61075         * lib/unictype/categ_Cc.h: Likewise.
61076         * lib/unictype/categ_Cf.h: Likewise.
61077         * lib/unictype/categ_Co.h: Likewise.
61078         * lib/unictype/categ_Cs.h: Likewise.
61079         * lib/unictype/categ_Lt.h: Likewise.
61080         * lib/unictype/categ_Nl.h: Likewise.
61081         * lib/unictype/categ_Pc.h: Likewise.
61082         * lib/unictype/categ_Pd.h: Likewise.
61083         * lib/unictype/categ_Pe.h: Likewise.
61084         * lib/unictype/categ_Pf.h: Likewise.
61085         * lib/unictype/categ_Pi.h: Likewise.
61086         * lib/unictype/categ_Ps.h: Likewise.
61087         * lib/unictype/categ_Z.h: Likewise.
61088         * lib/unictype/categ_Zl.h: Likewise.
61089         * lib/unictype/categ_Zp.h: Likewise.
61090         * lib/unictype/categ_Zs.h: Likewise.
61091         * lib/unictype/ctype_blank.h: Likewise.
61092         * lib/unictype/ctype_cntrl.h: Likewise.
61093         * lib/unictype/ctype_digit.h: Likewise.
61094         * lib/unictype/ctype_space.h: Likewise.
61095         * lib/unictype/ctype_xdigit.h: Likewise.
61096         * lib/unictype/mirror.h: Likewise.
61097         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61098         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61099         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61100         * lib/unictype/pr_bidi_control.h: Likewise.
61101         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61102         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61103         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61104         * lib/unictype/pr_bidi_pdf.h: Likewise.
61105         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61106         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61107         * lib/unictype/pr_dash.h: Likewise.
61108         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61109         * lib/unictype/pr_diacritic.h: Likewise.
61110         * lib/unictype/pr_extender.h: Likewise.
61111         * lib/unictype/pr_hex_digit.h: Likewise.
61112         * lib/unictype/pr_hyphen.h: Likewise.
61113         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61114         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61115         * lib/unictype/pr_ignorable_control.h: Likewise.
61116         * lib/unictype/pr_iso_control.h: Likewise.
61117         * lib/unictype/pr_join_control.h: Likewise.
61118         * lib/unictype/pr_left_of_pair.h: Likewise.
61119         * lib/unictype/pr_line_separator.h: Likewise.
61120         * lib/unictype/pr_logical_order_exception.h: Likewise.
61121         * lib/unictype/pr_non_break.h: Likewise.
61122         * lib/unictype/pr_not_a_character.h: Likewise.
61123         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61124         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61125         * lib/unictype/pr_other_id_start.h: Likewise.
61126         * lib/unictype/pr_other_lowercase.h: Likewise.
61127         * lib/unictype/pr_other_uppercase.h: Likewise.
61128         * lib/unictype/pr_paired_punctuation.h: Likewise.
61129         * lib/unictype/pr_paragraph_separator.h: Likewise.
61130         * lib/unictype/pr_pattern_syntax.h: Likewise.
61131         * lib/unictype/pr_pattern_white_space.h: Likewise.
61132         * lib/unictype/pr_private_use.h: Likewise.
61133         * lib/unictype/pr_quotation_mark.h: Likewise.
61134         * lib/unictype/pr_radical.h: Likewise.
61135         * lib/unictype/pr_soft_dotted.h: Likewise.
61136         * lib/unictype/pr_space.h: Likewise.
61137         * lib/unictype/pr_titlecase.h: Likewise.
61138         * lib/unictype/pr_variation_selector.h: Likewise.
61139         * lib/unictype/pr_white_space.h: Likewise.
61140         * lib/unictype/pr_zero_width.h: Likewise.
61141         * lib/unictype/sy_c_ident.h: Likewise.
61142         * lib/unictype/sy_c_whitespace.h: Likewise.
61143         * lib/unictype/sy_java_whitespace.h: Likewise.
61144         * lib/uninorm/composition-table.gperf: Likewise.
61145         * lib/uninorm/decomposition-table1.h: Likewise.
61146         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
61147         LB8.
61148         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61149         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61150         * modules/unictype/*: Bump version number of expected libunistring
61151         version.
61153 2011-01-09  Bruno Haible  <bruno@clisp.org>
61155         Update to Unicode 5.2.0.
61156         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
61157         trailing whitespace removed.
61159 2011-01-09  Bruno Haible  <bruno@clisp.org>
61161         New Unicode character properties, from Unicode 5.2.0.
61162         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
61163         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
61164         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
61165         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
61166         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
61167         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
61168         uc_is_property_cased, uc_is_property_case_ignorable,
61169         uc_is_property_changes_when_lowercased,
61170         uc_is_property_changes_when_uppercased,
61171         uc_is_property_changes_when_titlecased,
61172         uc_is_property_changes_when_casefolded,
61173         uc_is_property_changes_when_casemapped): New declarations.
61174         * lib/unictype/pr_byname.gperf: Add the new properties.
61175         * modules/unictype/property-byname (Depends-on): Depend on the new
61176         properties modules.
61177         * modules/unictype/property-all (Depends-on): Likewise.
61178         * MODULES.html.sh (Unicode string functions): Add
61179         unictype/property-case-ignorable, unictype/property-cased,
61180         unictype/property-changes-when-casefolded,
61181         unictype/property-changes-when-casemapped,
61182         unictype/property-changes-when-lowercased,
61183         unictype/property-changes-when-titlecased,
61184         unictype/property-changes-when-uppercased.
61186         New module 'unictype/property-changes-when-casemapped'.
61187         * modules/unictype/property-changes-when-casemapped: New file.
61188         * lib/unictype/pr_changes_when_casemapped.c: New file.
61189         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
61190         generated by gen-uni-tables.
61191         * modules/unictype/property-changes-when-casemapped-tests: New file.
61192         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
61193         automatically generated by gen-uni-tables.
61195         New module 'unictype/property-changes-when-casefolded'.
61196         * modules/unictype/property-changes-when-casefolded: New file.
61197         * lib/unictype/pr_changes_when_casefolded.c: New file.
61198         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
61199         generated by gen-uni-tables.
61200         * modules/unictype/property-changes-when-casefolded-tests: New file.
61201         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
61202         automatically generated by gen-uni-tables.
61204         New module 'unictype/property-changes-when-titlecased'.
61205         * modules/unictype/property-changes-when-titlecased: New file.
61206         * lib/unictype/pr_changes_when_titlecased.c: New file.
61207         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
61208         generated by gen-uni-tables.
61209         * modules/unictype/property-changes-when-titlecased-tests: New file.
61210         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
61211         automatically generated by gen-uni-tables.
61213         New module 'unictype/property-changes-when-uppercased'.
61214         * modules/unictype/property-changes-when-uppercased: New file.
61215         * lib/unictype/pr_changes_when_uppercased.c: New file.
61216         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
61217         generated by gen-uni-tables.
61218         * modules/unictype/property-changes-when-uppercased-tests: New file.
61219         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
61220         automatically generated by gen-uni-tables.
61222         New module 'unictype/property-changes-when-lowercased'.
61223         * modules/unictype/property-changes-when-lowercased: New file.
61224         * lib/unictype/pr_changes_when_lowercased.c: New file.
61225         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
61226         generated by gen-uni-tables.
61227         * modules/unictype/property-changes-when-lowercased-tests: New file.
61228         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
61229         automatically generated by gen-uni-tables.
61231         New module 'unictype/property-case-ignorable'.
61232         * modules/unictype/property-case-ignorable: New file.
61233         * lib/unictype/pr_case_ignorable.c: New file.
61234         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
61235         by gen-uni-tables.
61236         * modules/unictype/property-case-ignorable-tests: New file.
61237         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
61238         generated by gen-uni-tables.
61240         New module 'unictype/property-cased'.
61241         * modules/unictype/property-cased: New file.
61242         * lib/unictype/pr_cased.c: New file.
61243         * lib/unictype/pr_cased.h: New file, automatically generated by
61244         gen-uni-tables.
61245         * modules/unictype/property-cased-tests: New file.
61246         * tests/unictype/test-pr_cased.c: New file, automatically generated by
61247         gen-uni-tables.
61249 2011-01-09  Bruno Haible  <bruno@clisp.org>
61251         Update to Unicode 5.2.0.
61252         * lib/gen-uni-tables.c (output_predicate, output_category,
61253         output_combclass, output_bidi_category, output_decimal_digit_test,
61254         output_decimal_digit, output_digit_test, output_digit,
61255         output_numeric_test, output_numeric, output_mirror, output_scripts,
61256         output_scripts_byname, output_blocks, output_ident_category): Fix
61257         comment header.
61258         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
61259         get_wbp.
61260         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
61261         items.
61262         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
61263         Changes_When_Lowercased, Changes_When_Uppercased,
61264         Changes_When_Titlecased, Changes_When_Casefolded,
61265         Changes_When_Casemapped.
61266         (is_property_alphabetic, is_property_default_ignorable_code_point):
61267         Update for Unicode 5.2.0.
61268         (is_property_cased, is_property_case_ignorable,
61269         is_property_changes_when_lowercased,
61270         is_property_changes_when_uppercased,
61271         is_property_changes_when_titlecased,
61272         is_property_changes_when_casefolded,
61273         is_property_changes_when_casemapped): New functions.
61274         (output_properties): Output also the properties cased, case_ignorable,
61275         changes_when_lowercased, changes_when_uppercased,
61276         changes_when_titlecased, changes_when_casefolded,
61277         changes_when_casemapped.
61278         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
61279         Unicode TR#11 revision 17 -> 19.
61280         (LBP_CP): New enumeration value.
61281         (LBP_*): Adjust values accordingly.
61282         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61283         TR#14 revision 22 -> 24.
61284         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
61285         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
61286         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
61287         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
61288         is_WBP_MIDLETTER.
61289         (output_composition_tables): Allow for 24 bits instead of 16 bits in
61290         the code1 and code2 of each composition rule.
61291         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
61292         * lib/unicase/ignorable.h: Likewise.
61293         * lib/unicase/tocasefold.h: Likewise.
61294         * lib/unicase/tolower.h: Likewise.
61295         * lib/unicase/totitle.h: Likewise.
61296         * lib/unicase/toupper.h: Likewise.
61297         * lib/unictype/bidi_of.h: Likewise.
61298         * lib/unictype/blocks.h: Likewise.
61299         * lib/unictype/categ_C.h: Likewise.
61300         * lib/unictype/categ_Cf.h: Likewise.
61301         * lib/unictype/categ_Cn.h: Likewise.
61302         * lib/unictype/categ_L.h: Likewise.
61303         * lib/unictype/categ_Ll.h: Likewise.
61304         * lib/unictype/categ_Lm.h: Likewise.
61305         * lib/unictype/categ_Lo.h: Likewise.
61306         * lib/unictype/categ_Lu.h: Likewise.
61307         * lib/unictype/categ_M.h: Likewise.
61308         * lib/unictype/categ_Mc.h: Likewise.
61309         * lib/unictype/categ_Mn.h: Likewise.
61310         * lib/unictype/categ_N.h: Likewise.
61311         * lib/unictype/categ_Nd.h: Likewise.
61312         * lib/unictype/categ_Nl.h: Likewise.
61313         * lib/unictype/categ_No.h: Likewise.
61314         * lib/unictype/categ_P.h: Likewise.
61315         * lib/unictype/categ_Pd.h: Likewise.
61316         * lib/unictype/categ_Po.h: Likewise.
61317         * lib/unictype/categ_S.h: Likewise.
61318         * lib/unictype/categ_Sc.h: Likewise.
61319         * lib/unictype/categ_So.h: Likewise.
61320         * lib/unictype/categ_of.h: Likewise.
61321         * lib/unictype/combining.h: Likewise.
61322         * lib/unictype/ctype_alnum.h: Likewise.
61323         * lib/unictype/ctype_alpha.h: Likewise.
61324         * lib/unictype/ctype_graph.h: Likewise.
61325         * lib/unictype/ctype_lower.h: Likewise.
61326         * lib/unictype/ctype_print.h: Likewise.
61327         * lib/unictype/ctype_punct.h: Likewise.
61328         * lib/unictype/ctype_upper.h: Likewise.
61329         * lib/unictype/decdigit.h: Likewise.
61330         * lib/unictype/digit.h: Likewise.
61331         * lib/unictype/numeric.h: Likewise.
61332         * lib/unictype/pr_alphabetic.h: Likewise.
61333         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61334         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61335         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61336         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61337         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61338         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61339         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61340         * lib/unictype/pr_combining.h: Likewise.
61341         * lib/unictype/pr_composite.h: Likewise.
61342         * lib/unictype/pr_currency_symbol.h: Likewise.
61343         * lib/unictype/pr_dash.h: Likewise.
61344         * lib/unictype/pr_decimal_digit.h: Likewise.
61345         * lib/unictype/pr_deprecated.h: Likewise.
61346         * lib/unictype/pr_diacritic.h: Likewise.
61347         * lib/unictype/pr_extender.h: Likewise.
61348         * lib/unictype/pr_grapheme_base.h: Likewise.
61349         * lib/unictype/pr_grapheme_extend.h: Likewise.
61350         * lib/unictype/pr_grapheme_link.h: Likewise.
61351         * lib/unictype/pr_id_continue.h: Likewise.
61352         * lib/unictype/pr_id_start.h: Likewise.
61353         * lib/unictype/pr_ideographic.h: Likewise.
61354         * lib/unictype/pr_ignorable_control.h: Likewise.
61355         * lib/unictype/pr_logical_order_exception.h: Likewise.
61356         * lib/unictype/pr_lowercase.h: Likewise.
61357         * lib/unictype/pr_numeric.h: Likewise.
61358         * lib/unictype/pr_other_alphabetic.h: Likewise.
61359         * lib/unictype/pr_punctuation.h: Likewise.
61360         * lib/unictype/pr_sentence_terminal.h: Likewise.
61361         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61362         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61363         * lib/unictype/pr_unified_ideograph.h: Likewise.
61364         * lib/unictype/pr_uppercase.h: Likewise.
61365         * lib/unictype/pr_xid_continue.h: Likewise.
61366         * lib/unictype/pr_xid_start.h: Likewise.
61367         * lib/unictype/pr_zero_width.h: Likewise.
61368         * lib/unictype/scripts.h: Likewise.
61369         * lib/unictype/scripts_byname.gperf: Likewise.
61370         * lib/unictype/sy_java_ident.h: Likewise.
61371         * lib/unigbrk/gbrkprop.h: Likewise.
61372         * lib/unilbrk/lbrkprop1.h: Likewise.
61373         * lib/unilbrk/lbrkprop2.h: Likewise.
61374         * lib/unilbrk/lbrktables.h: Likewise.
61375         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
61376         LBP_CP. Implement rule LB30.
61377         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
61378         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
61379         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
61380         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
61381         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
61382         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
61383         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
61384         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
61385         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
61386         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
61387         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
61388         bits instead of 16 bits in the code1 and code2 of each composition
61389         rule.
61390         (uc_composition): Update for Unicode 5.2.0.
61391         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
61392         * lib/uninorm/decomposition-table2.h: Likewise.
61393         * lib/uniwbrk/wbrkprop.h: Likewise.
61394         * tests/unicase/test-cased.c: Likewise.
61395         * tests/unicase/test-ignorable.c: Likewise.
61396         * tests/unicase/test-uc_tolower.c: Likewise.
61397         * tests/unicase/test-uc_totitle.c: Likewise.
61398         * tests/unicase/test-uc_toupper.c: Likewise.
61399         * tests/unictype/test-categ_C.c: Likewise.
61400         * tests/unictype/test-categ_Cf.c: Likewise.
61401         * tests/unictype/test-categ_Cn.c: Likewise.
61402         * tests/unictype/test-categ_L.c: Likewise.
61403         * tests/unictype/test-categ_Ll.c: Likewise.
61404         * tests/unictype/test-categ_Lm.c: Likewise.
61405         * tests/unictype/test-categ_Lo.c: Likewise.
61406         * tests/unictype/test-categ_Lu.c: Likewise.
61407         * tests/unictype/test-categ_M.c: Likewise.
61408         * tests/unictype/test-categ_Mc.c: Likewise.
61409         * tests/unictype/test-categ_Mn.c: Likewise.
61410         * tests/unictype/test-categ_N.c: Likewise.
61411         * tests/unictype/test-categ_Nd.c: Likewise.
61412         * tests/unictype/test-categ_Nl.c: Likewise.
61413         * tests/unictype/test-categ_No.c: Likewise.
61414         * tests/unictype/test-categ_P.c: Likewise.
61415         * tests/unictype/test-categ_Pd.c: Likewise.
61416         * tests/unictype/test-categ_Po.c: Likewise.
61417         * tests/unictype/test-categ_S.c: Likewise.
61418         * tests/unictype/test-categ_Sc.c: Likewise.
61419         * tests/unictype/test-categ_So.c: Likewise.
61420         * tests/unictype/test-ctype_alnum.c: Likewise.
61421         * tests/unictype/test-ctype_alpha.c: Likewise.
61422         * tests/unictype/test-ctype_graph.c: Likewise.
61423         * tests/unictype/test-ctype_lower.c: Likewise.
61424         * tests/unictype/test-ctype_print.c: Likewise.
61425         * tests/unictype/test-ctype_punct.c: Likewise.
61426         * tests/unictype/test-ctype_upper.c: Likewise.
61427         * tests/unictype/test-decdigit.h: Likewise.
61428         * tests/unictype/test-digit.h: Likewise.
61429         * tests/unictype/test-numeric.h: Likewise.
61430         * tests/unictype/test-pr_alphabetic.c: Likewise.
61431         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61432         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61433         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61434         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61435         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61436         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61437         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61438         * tests/unictype/test-pr_combining.c: Likewise.
61439         * tests/unictype/test-pr_composite.c: Likewise.
61440         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61441         * tests/unictype/test-pr_dash.c: Likewise.
61442         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61443         * tests/unictype/test-pr_deprecated.c: Likewise.
61444         * tests/unictype/test-pr_diacritic.c: Likewise.
61445         * tests/unictype/test-pr_extender.c: Likewise.
61446         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61447         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61448         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61449         * tests/unictype/test-pr_id_continue.c: Likewise.
61450         * tests/unictype/test-pr_id_start.c: Likewise.
61451         * tests/unictype/test-pr_ideographic.c: Likewise.
61452         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61453         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61454         * tests/unictype/test-pr_lowercase.c: Likewise.
61455         * tests/unictype/test-pr_numeric.c: Likewise.
61456         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61457         * tests/unictype/test-pr_punctuation.c: Likewise.
61458         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61459         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61460         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61461         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61462         * tests/unictype/test-pr_uppercase.c: Likewise.
61463         * tests/unictype/test-pr_xid_continue.c: Likewise.
61464         * tests/unictype/test-pr_xid_start.c: Likewise.
61465         * tests/unictype/test-pr_zero_width.c: Likewise.
61466         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
61467         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
61468         changed behaviour: line breaking is now disallowed between a letter
61469         or '=' and '('.
61470         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
61471         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
61472         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
61473         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
61474         * tests/uniwidth/test-uc_width2.sh: Same updates as in
61475         lib/uniwidth/width.c.
61476         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
61477         without comments, but with the original copyright notice.
61478         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
61479         changes.
61480         * lib/unictype/categ_Cc.h: Likewise.
61481         * lib/unictype/categ_Co.h: Likewise.
61482         * lib/unictype/categ_Cs.h: Likewise.
61483         * lib/unictype/categ_Lt.h: Likewise.
61484         * lib/unictype/categ_Me.h: Likewise.
61485         * lib/unictype/categ_Pc.h: Likewise.
61486         * lib/unictype/categ_Pe.h: Likewise.
61487         * lib/unictype/categ_Pf.h: Likewise.
61488         * lib/unictype/categ_Pi.h: Likewise.
61489         * lib/unictype/categ_Ps.h: Likewise.
61490         * lib/unictype/categ_Sk.h: Likewise.
61491         * lib/unictype/categ_Sm.h: Likewise.
61492         * lib/unictype/categ_Z.h: Likewise.
61493         * lib/unictype/categ_Zl.h: Likewise.
61494         * lib/unictype/categ_Zp.h: Likewise.
61495         * lib/unictype/categ_Zs.h: Likewise.
61496         * lib/unictype/ctype_blank.h: Likewise.
61497         * lib/unictype/ctype_cntrl.h: Likewise.
61498         * lib/unictype/ctype_digit.h: Likewise.
61499         * lib/unictype/ctype_space.h: Likewise.
61500         * lib/unictype/ctype_xdigit.h: Likewise.
61501         * lib/unictype/mirror.h: Likewise.
61502         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61503         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61504         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61505         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61506         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61507         * lib/unictype/pr_bidi_control.h: Likewise.
61508         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61509         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61510         * lib/unictype/pr_bidi_pdf.h: Likewise.
61511         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61512         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61513         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61514         * lib/unictype/pr_format_control.h: Likewise.
61515         * lib/unictype/pr_hex_digit.h: Likewise.
61516         * lib/unictype/pr_hyphen.h: Likewise.
61517         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61518         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61519         * lib/unictype/pr_iso_control.h: Likewise.
61520         * lib/unictype/pr_join_control.h: Likewise.
61521         * lib/unictype/pr_left_of_pair.h: Likewise.
61522         * lib/unictype/pr_line_separator.h: Likewise.
61523         * lib/unictype/pr_math.h: Likewise.
61524         * lib/unictype/pr_non_break.h: Likewise.
61525         * lib/unictype/pr_not_a_character.h: Likewise.
61526         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61527         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61528         * lib/unictype/pr_other_id_continue.h: Likewise.
61529         * lib/unictype/pr_other_id_start.h: Likewise.
61530         * lib/unictype/pr_other_lowercase.h: Likewise.
61531         * lib/unictype/pr_other_math.h: Likewise.
61532         * lib/unictype/pr_other_uppercase.h: Likewise.
61533         * lib/unictype/pr_paired_punctuation.h: Likewise.
61534         * lib/unictype/pr_paragraph_separator.h: Likewise.
61535         * lib/unictype/pr_pattern_syntax.h: Likewise.
61536         * lib/unictype/pr_pattern_white_space.h: Likewise.
61537         * lib/unictype/pr_private_use.h: Likewise.
61538         * lib/unictype/pr_quotation_mark.h: Likewise.
61539         * lib/unictype/pr_radical.h: Likewise.
61540         * lib/unictype/pr_soft_dotted.h: Likewise.
61541         * lib/unictype/pr_space.h: Likewise.
61542         * lib/unictype/pr_titlecase.h: Likewise.
61543         * lib/unictype/pr_variation_selector.h: Likewise.
61544         * lib/unictype/pr_white_space.h: Likewise.
61545         * lib/unictype/sy_c_ident.h: Likewise.
61546         * lib/unictype/sy_c_whitespace.h: Likewise.
61547         * lib/unictype/sy_java_whitespace.h: Likewise.
61548         * modules/uni*/*: Bump version number of expected libunistring version.
61549         Reported by Simon Josefsson.
61551 2011-01-09  Karl Heuer  <kwzh@gnu.org>
61553         useless-if-before-free: fix typo in --help and make the internal,
61554         automatic version date update process work once again.
61555         --help output contained a NUL character instead of the
61556         backslash-zero that was intended.  Also, the "must lie within
61557         the first 8 lines" line is on line 9, and hence not getting
61558         automatically updated.
61559         * build-aux/useless-if-before-free: Fix the former by adding a
61560         backslash, and the latter by condensing the three lines of what-it-does
61561         to a single line, leaving one line of slack for the future.
61563 2011-01-09  Bruno Haible  <bruno@clisp.org>
61565         uniwidth/width: Fix width of U+1D173..U+1D17A.
61566         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
61567         symbolic_width, output_width_property_test): New functions.
61568         (main): Invoke output_nonspacing_property, output_width_property_test.
61569         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
61570         U+1D173..U+1D17A.
61571         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
61572         1.
61573         * modules/uniwidth/*: Bump version number of expected libunistring
61574         version.
61575         * modules/unilbrk/*: Likewise.
61577 2011-01-08  Bruno Haible  <bruno@clisp.org>
61579         uninorm tests: Preserve copyright of Unicode data file.
61580         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
61581         Mention modifications.
61583 2011-01-08  Bruno Haible  <bruno@clisp.org>
61585         gen-uni-tables: Prepare for Unicode 5.2.0.
61586         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
61587         (debug_output_lbp, output_lbp): Update.
61589 2011-01-08  Bruno Haible  <bruno@clisp.org>
61591         unilbrk: Clarify gen-uni-tables.c code.
61592         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
61593         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
61594         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
61596 2011-01-07  Bruno Haible  <bruno@clisp.org>
61598         strtod: Restore errno when successfully parsing Infinity or NaN.
61599         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
61600         restore the original errno.
61602 2011-01-07  Bruno Haible  <bruno@clisp.org>
61604         remove test: Avoid failure on HP-UX 11.
61605         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
61607 2011-01-07  Bruno Haible  <bruno@clisp.org>
61609         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
61610         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
61611         error code.
61613 2011-01-07  Pádraig Brady  <P@draigBrady.com>
61615         ignore-value: fixup comments, and add Eric Blake
61616         as an author since he rewrote the macros.
61617         * lib/ignore-value.h (ignore_value):  State that
61618         we now support aggregates.  Also specify exactly
61619         when the GCC warn_unused_result feature was added.
61621 2011-01-06  Eric Blake  <eblake@redhat.com>
61623         ignore-value: support aggregate types
61624         * lib/ignore-value.h (ignore_value): Provide separate gcc
61625         definition.
61626         * modules/ignore-value-tests: New test module.
61627         * tests/test-ignore-value.c: New test.
61629         maint.mk: improve sc_prohibit_strcmp regex
61630         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
61631         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
61632         definition of STRNEQ.
61634         signal: work around Haiku issue with SIGBUS
61635         * lib/siglist.h: Add comment.
61636         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
61637         strsignal's favoring of SIGSEGV.
61638         * tests/test-signal.c (main): Avoid test failure.
61639         * doc/posix-headers/signal.texi (signal.h): Document the issue.
61640         Reported by Scott McCreary.
61642         maint.mk: add pre-release check to ensure submodule commits are public
61643         * top/maint.mk (public-submodule-commit): New rule.
61644         (submodule-checks): New variable.
61645         (alpha beta stable): Depend on the variable.
61647 2011-01-05  Pádraig Brady  <P@draigBrady.com>
61648         and Jim Meyering  <meyering@redhat.com>
61650         ignore-value: make ignore_value more generic; deprecate ignore_ptr
61651         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
61652         (ATTRIBUTE_DEPRECATED): Define.
61653         (_ignore_case): New function.
61654         (ignore_value): New macro, to replace the old function.
61655         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
61656         * modules/ignore-value (Depends-on): Add stdint.
61658 2011-01-04  Eric Blake  <eblake@redhat.com>
61660         doc: regenerate INSTALL
61661         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
61662         @firstparagraphindent support, now that autoconf dropped it.
61663         (INSTALL_PRELUDE): Reinstate old macro.
61664         * doc/install.texi: Resync from autoconf.
61665         * doc/INSTALL: Reflect recent autoconf update.
61666         * doc/INSTALL.ISO: Likewise.
61667         * doc/INSTALL.UTF-8: Likewise.
61668         Reported by Karl Berry.
61670 2011-01-04  Bruce Korb  <address@hidden>
61672         git-version-gen: avoid a sub-shell
61673         * build-aux/git-version-gen: Redirect stderr in `...` via
61674         "exec 2>...", rather than via an added sub-shell.
61676 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
61678         git-version-gen: use (...) rather than sh -c '...'
61679         * build-aux/git-version-gen: Rather than hard-coding a shell's name
61680         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
61682 2011-01-03  Jim Meyering  <meyering@redhat.com>
61684         git-version-gen: convert leading TABs to spaces
61685         * build-aux/git-version-gen: Expand leading TABs.
61687         git-version-gen: handle failed "git rev-list"
61688         * build-aux/git-version-gen: Rather than leaking a "fatal" error
61689         from git and proceeding as if it had succeeded but printed no SHA1
61690         checksums, suppress the diagnostic and handle the failure.
61691         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
61693         git-version-gen: include command name in one more diagnostic
61694         * build-aux/git-version-gen: When the required .tarball-version file
61695         was missing or unreadable, you might see the diagnostic from "cat",
61696         but no trace of the name of the invoking script.  Now, you still see
61697         the diagnostic from cat, but also get one from "git-version-gen: ".
61698         Inspired by a patch from Bruce Korb.
61700         update-copyright: adjust test to match changed code
61701         * tests/test-update-copyright.sh: Change test's expected output
61702         to match new actual output.
61704 2011-01-02  Bruno Haible  <bruno@clisp.org>
61706         getlogin_r: Avoid test failure on HP-UX 11.
61707         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
61708         ERANGE when the second argument is zero.
61709         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
61710         portability problem.
61712 2011-01-02  Bruce Korb  <bkorb@gnu.org>
61714         * build-aux/update-copyright: doc Simon's changes
61716 2011-01-02  Simon Josefsson  <simon@josefsson.org>
61718         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
61719         environment variable.
61721 2011-01-02  Bruno Haible  <bruno@clisp.org>
61723         unigbrk: Avoid gcc warnings.
61724         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
61725         unused variable.
61726         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
61727         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
61728         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
61729         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
61730         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
61731         Change type of first argument to 'const char *'.
61732         (main): Remove unused variable.
61733         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
61734         type of first argument to 'const char *'.
61735         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
61736         Likewise.
61737         (main): Change type of variable 's'.
61738         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
61739         to 'int'.
61741 2011-01-02  Bruno Haible  <bruno@clisp.org>
61743         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
61744         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
61745         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
61746         bug.
61747         * lib/pwrite.c: Undo 2010-12-31 patch.
61748         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
61750 2011-01-02  Bruno Haible  <bruno@clisp.org>
61752         pread: Fix test whether it works.
61753         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
61755 2011-01-02  Bruno Haible  <bruno@clisp.org>
61757         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
61758         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
61759         ends in "6". Don't require a specific month name. Try also the locale
61760         names found on HP-UX 11 and Solaris 7.
61762 2011-01-02  Bruno Haible  <bruno@clisp.org>
61764         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
61765         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
61766         C linkage.
61767         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
61769 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61771         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
61772         for consistency, since the "cluster" term is not used elsewhere.
61773         * lib/unigbrk.in.h: Update name.
61774         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
61775         * lib/unigbrk/u16-grapheme-next.c: Update name.
61776         * lib/unigbrk/u16-grapheme-prev.c: Update name.
61777         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
61778         * lib/unigbrk/u32-grapheme-next.c: Update name.
61779         * lib/unigbrk/u32-grapheme-prev.c: Update name.
61780         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
61781         * lib/unigbrk/u8-grapheme-next.c: Update name.
61782         * lib/unigbrk/u8-grapheme-prev.c: Update name.
61783         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
61784         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
61785         Suggested by Bruno Haible.
61787 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61789         Remove module 'u8-grapheme-len' as too redundant with
61790         'u8-grapheme-next'.
61791         * modules/unigbrk/u8-grapheme-len: Delete file.
61792         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
61793         * lib/unigbrk.in.h: Remove prototype for deleted function.
61794         * lib/unigbrk/u8-grapheme-len.c: Delete file.
61795         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
61797         Remove module 'u16-grapheme-len' as too redundant with
61798         'u16-grapheme-next'.
61799         * modules/unigbrk/u16-grapheme-len: Delete file.
61800         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
61801         * lib/unigbrk.in.h: Remove prototype for deleted function.
61802         * lib/unigbrk/u16-grapheme-len.c: Delete file.
61803         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
61805         Remove module 'u32-grapheme-len' as too redundant with
61806         'u32-grapheme-next'.
61807         * modules/unigbrk/u32-grapheme-len: Delete file.
61808         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
61809         * lib/unigbrk.in.h: Remove prototype for deleted function.
61810         * lib/unigbrk/u32-grapheme-len.c: Delete file.
61811         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
61813         Suggested by Bruno Haible.
61815 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
61817         * unigbrk.in.h: Fix typo: "ben" => "been".
61818         Reported by Bruno Haible.
61820 2011-01-01  Jim Meyering  <meyering@redhat.com>
61822         maint: update almost all copyright ranges to include 2011
61823         Run the new "make update-copyright" rule.
61825 2011-01-01  Jim Meyering  <meyering@redhat.com>
61827         maint: update-copyright: exempt doc/INSTALL*
61828         * Makefile (update-copyright): Also exclude doc/INSTALL*,
61829         since they are generated.  Suggested by Bruno Haible.
61831 2011-01-01  Jim Meyering  <meyering@redhat.com>
61833         maint: refine the update-copyright rule
61834         * Makefile (update-copyright): Also exclude any file that includes
61835         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
61836         code that merely generates the comment.
61838 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61840         New module 'u8-grapheme-len'.
61841         * modules/unigbrk/u8-grapheme-len: New file.
61842         * modules/unigbrk/u8-grapheme-len-tests: New file.
61843         * lib/unigbrk.in.h: Add prototype for new function.
61844         * lib/unigbrk/u8-grapheme-len.c: New file.
61845         * tests/unigbrk/test-u8-grapheme-len.c: New file.
61847         New module 'u16-grapheme-len'.
61848         * modules/unigbrk/u16-grapheme-len: New file.
61849         * modules/unigbrk/u16-grapheme-len-tests: New file.
61850         * lib/unigbrk.in.h: Add prototype for new function.
61851         * lib/unigbrk/u16-grapheme-len.c: New file.
61852         * tests/unigbrk/test-u16-grapheme-len.c: New file.
61854         New module 'u32-grapheme-len'.
61855         * modules/unigbrk/u32-grapheme-len: New file.
61856         * modules/unigbrk/u32-grapheme-len-tests: New file.
61857         * lib/unigbrk.in.h: Add prototype for new function.
61858         * lib/unigbrk/u32-grapheme-len.c: New file.
61859         * tests/unigbrk/test-u32-grapheme-len.c: New file.
61861         New module 'u8-grapheme-next'.
61862         * modules/unigbrk/u8-grapheme-next: New file.
61863         * modules/unigbrk/u8-grapheme-next-tests: New file.
61864         * lib/unigbrk.in.h: Add prototype for new function.
61865         * lib/unigbrk/u8-grapheme-next.c: New file.
61866         * tests/unigbrk/test-u8-grapheme-next.c: New file.
61868         New module 'u16-grapheme-next'.
61869         * modules/unigbrk/u16-grapheme-next: New file.
61870         * modules/unigbrk/u16-grapheme-next-tests: New file.
61871         * lib/unigbrk.in.h: Add prototype for new function.
61872         * lib/unigbrk/u16-grapheme-next.c: New file.
61873         * tests/unigbrk/test-u16-grapheme-next.c: New file.
61875         New module 'u32-grapheme-next'.
61876         * modules/unigbrk/u32-grapheme-next: New file.
61877         * modules/unigbrk/u32-grapheme-next-tests: New file.
61878         * lib/unigbrk.in.h: Add prototype for new function.
61879         * lib/unigbrk/u32-grapheme-next.c: New file.
61880         * tests/unigbrk/test-u32-grapheme-next.c: New file.
61882         New module 'u8-grapheme-prev'.
61883         * modules/unigbrk/u8-grapheme-prev: New file.
61884         * modules/unigbrk/u8-grapheme-prev-tests: New file.
61885         * lib/unigbrk.in.h: Add prototype for new function.
61886         * lib/unigbrk/u8-grapheme-prev.c: New file.
61887         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
61889         New module 'u16-grapheme-prev'.
61890         * modules/unigbrk/u16-grapheme-prev: New file.
61891         * modules/unigbrk/u16-grapheme-prev-tests: New file.
61892         * lib/unigbrk.in.h: Add prototype for new function.
61893         * lib/unigbrk/u16-grapheme-prev.c: New file.
61894         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
61896         New module 'u32-grapheme-prev'.
61897         * modules/unigbrk/u32-grapheme-prev: New file.
61898         * modules/unigbrk/u32-grapheme-prev-tests: New file.
61899         * lib/unigbrk.in.h: Add prototype for new function.
61900         * lib/unigbrk/u32-grapheme-prev.c: New file.
61901         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
61903         New module 'u8-grapheme-breaks'.
61904         * modules/unigbrk/u8-grapheme-breaks: New file.
61905         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
61906         * lib/unigbrk.in.h: Add prototype for new function.
61907         * lib/unigbrk/u8-grapheme-breaks.c: New file.
61908         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
61910         New module 'u16-grapheme-breaks'.
61911         * modules/unigbrk/u16-grapheme-breaks: New file.
61912         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
61913         * lib/unigbrk.in.h: Add prototype for new function.
61914         * lib/unigbrk/u16-grapheme-breaks.c: New file.
61915         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
61917         New module 'u32-grapheme-breaks'.
61918         * modules/unigbrk/u32-grapheme-breaks: New file.
61919         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
61920         * lib/unigbrk.in.h: Add prototype for new function.
61921         * lib/unigbrk/u32-grapheme-breaks.c: New file.
61922         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
61924         New module 'ulc-grapheme-breaks'.
61925         * modules/unigbrk/ulc-grapheme-breaks: New file.
61926         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
61927         * m4/locale-ar.m4: New file.
61928         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
61929         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
61930         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
61932 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
61934         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
61935         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
61936         modified how this file was generated before I initially submitted
61937         the module, but failed to regenerate it.  This meant that several
61938         of the level2 entries were wrong.
61939         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
61940         Remove the division-by-2 that is folded into the table now that
61941         gbrkprop.h has been regenerated properly.  Now -1 entries are
61942         handled correctly.
61944         New module 'unigbrk/uc-gbrk-prop-tests'.
61945         * modules/unigbrk/uc-gbrk-prop-tests: New file.
61946         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
61947         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
61948         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
61950 2011-01-01  Bruno Haible  <bruno@clisp.org>
61952         Avoid use of hexadecimal escapes.
61953         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
61954         instead of hexadecimal escapes.
61956 2011-01-01  Jim Meyering  <meyering@redhat.com>
61958         maint: new rule to update copyright year ranges
61959         * Makefile (update-copyright): New rule.
61961         maint: indent with TABs in Makefile
61962         * Makefile: Expand leading sequences of spaces to TABs
61964         version-etc: update the copyright year it reports
61965         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
61967 2010-12-31  Bruno Haible  <bruno@clisp.org>
61969         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
61970         * lib/isfinite.c (zerof, zerod, zerol): New variables.
61971         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
61972         zero.
61974 2010-12-31  Bruno Haible  <bruno@clisp.org>
61976         pwrite: Work around HP-UX 11.11 bug.
61977         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
61978         works and set REPLACE_PWRITE if not.
61979         * lib/pwrite.c (pwrite): Add an implementation that uses the system
61980         function.
61981         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
61983 2010-12-31  Bruno Haible  <bruno@clisp.org>
61985         pread: Work around HP-UX 11 bugs.
61986         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
61987         and set REPLACE_PREAD if not.
61988         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
61990 2010-12-31  Eric Blake  <eblake@redhat.com>
61992         nl_langinfo: fix YESEXPR on Irix 6.5
61993         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
61994         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
61995         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
61996         it.
61998 2010-12-31  Bruno Haible  <bruno@clisp.org>
62000         iconv: Document HP-UX 11 bug.
62001         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
62003 2010-12-31  Bruno Haible  <bruno@clisp.org>
62005         ldexpl: Fix link error on HP-UX 11.
62006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
62007         LDEXPL_LIBM, using $ISNANL_LIBM.
62009 2010-12-31  Eric Blake  <eblake@redhat.com>
62011         ftello: avoid compilation failure with SunStudio c89
62012         * lib/ftello.c (ftello): Use lseek, not llseek.
62014         tests: avoid failing coreutils tests on cygwin
62015         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
62016         (create_exe_shims_): Return 0 when skipping.
62018 2010-12-31  Bruno Haible  <bruno@clisp.org>
62020         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
62021         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
62023 2010-12-31  Bruno Haible  <bruno@clisp.org>
62025         waitpid: Fix link error in C++ mode.
62026         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
62028 2010-12-31  Bruno Haible  <bruno@clisp.org>
62030         isnan: Use GCC built-ins when possible.
62031         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
62032         __builtin_isnan.
62033         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
62034         (isnan): Define using GCC built-ins for GCC >= 4.0.
62036 2010-12-31  Bruno Haible  <bruno@clisp.org>
62038         isnand: Fix mistake.
62039         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
62040         __builtin_isnand.
62042 2010-12-31  Bruno Haible  <bruno@clisp.org>
62044         open: Avoid C++ error on HP-UX 11.
62045         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
62047 2010-12-31  Bruno Haible  <bruno@clisp.org>
62049         time_r: Add missing declarations on HP-UX 11.
62050         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
62051         instead of HAVE_LOCALTIME_R.
62052         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
62053         HAVE_LOCALTIME_R always.
62054         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
62055         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
62056         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
62057         HAVE_LOCALTIME_R.
62058         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
62059         * doc/posix-functions/localtime_r.texi: Likewise.
62061 2010-12-29  Eric Blake  <eblake@redhat.com>
62063         mountlist: tweak previous commit
62064         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
62065         Reported by Paul Eggert.
62067         mountlist: fix local drive detection on cygwin
62068         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
62069         that works for cygwin.
62071 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
62073         ftoastr, snprintf: ftoastr + snprintf module
62074         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
62075         since the snprintf module now should be good enough here.
62076         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
62077         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
62078         and gl_MODULE_INDICATOR([snprintf]), but the former enables
62079         GNULIB_SNPRINTF only for the test directory, and the latter
62080         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
62081         seems to suffice by itself.
62083 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
62085         alloca: one step towards thread-safety
62086         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
62087         need for a static variable.  All callers changed.  This does not
62088         make the alloca replacement thread-safe, but it's one step.
62090         tests: minor indenting change
62091         * tests/init.sh: Sync from coreutils housekeeping patch
62092         <http://lists.gnu.org/r/coreutils/2010-12/msg00116.html>
62093         to keep lines within 80 columns.
62095 2010-12-28  Jim Meyering  <meyering@redhat.com>
62097         regex: don't infloop on persistent failing calloc
62098         * lib/regexec.c (build_trtable): Return failure indication upon
62099         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
62100         In glibc, this was fixed for version 2.13:
62101         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
62103 2010-12-28  Bruno Haible  <bruno@clisp.org>
62104             Paul Eggert <eggert@cs.ucla.edu>
62106         linkat: Make implementation robust against system behaviour variations.
62107         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
62108         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
62109         way, and to -2 if it needs a generic runtime test.
62110         * lib/linkat.c (solaris_optimized_link_immediate,
62111         solaris_optimized_link_follow): New functions.
62112         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
62113         (check_same_link): Use it.
62115 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
62117         New module 'unigbrk/base'.
62118         * modules/unigbrk/base: New file.
62119         * lib/unigbrk.in.h: New file.
62121         New module 'unigbrk/uc-gbrk-prop'.
62122         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
62123         * modules/unigbrk/uc-gbrk-prop: New file.
62124         * lib/unigbrk/gbrkprop.h: New file.
62125         * lib/unigbrk/uc-gbrk-prop.c: New file.
62127         New module 'unigbrk/uc-is-grapheme-break'.
62128         * modules/unigbrk/uc-is-grapheme-break: New file.
62129         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
62130         * lib/unigbrk/uc-is-grapheme-break.c: New file.
62131         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
62132         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
62133         * tests/unigbrk/GraphemeBreakTest.txt: New file.
62135         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
62137 2010-12-27  Bruno Haible  <bruno@clisp.org>
62139         linkat test: Avoid failure on Solaris 11 2010-11.
62140         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
62142 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62144         utimens: work around glibc rounding bug on more platforms
62145         * lib/utimens.c (fdutimens): Work around rounding bug even if
62146         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
62147         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00298.html>.
62149 2010-12-27  Bruno Haible  <bruno@clisp.org>
62151         select tests: Improve comments.
62152         * tests/test-select.c (do_select): Add comments.
62154 2010-12-27  Bruno Haible  <bruno@clisp.org>
62156         select tests: Safer way of handling timeout.
62157         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
62158         at every invocation.
62160 2010-12-27  Bruno Haible  <bruno@clisp.org>
62162         select tests: Use 'bool' where appropriate.
62163         * tests/test-select.c (connect_to_socket): Change argument type to
62164         'bool'.
62166 2010-12-27  Bruno Haible  <bruno@clisp.org>
62168         select tests: Use existing modules.
62169         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
62170         (configure.ac): Don't test for unistd.h.
62171         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
62172         declared in <unistd.h>.
62174 2010-12-27  Bruno Haible  <bruno@clisp.org>
62176         mbrtowc: Work around a Solaris 7 bug.
62177         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
62178         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
62179         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
62180         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
62181         MBRTOWC_NULL_ARG1_BUG.
62182         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
62183         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
62184         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
62185         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
62187 2010-12-27  Jim Meyering  <meyering@redhat.com>
62189         read-file.c: tweak syntax
62190         * lib/read-file.c (fread_file): Remove space after "*" in function
62191         definitions.
62193 2010-12-27  Bruno Haible  <bruno@clisp.org>
62195         times test: Avoid gcc warnings on OSF/1.
62196         * tests/test-times.c (main): Cast printf arguments from clock_t to
62197         'long int'.
62199 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
62201         utimens: work around glibc rounding bug on older Linux kernels
62202         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
62203         on Linux with a glibc whose utimes might not work, then work
62204         around a longstanding glibc bug involving rounding rather than
62205         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
62206         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62208 2010-12-26  Bruno Haible  <bruno@clisp.org>
62210         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
62211         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
62212         _GL_CXXALIAS_SYS.
62213         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62215 2010-12-26  Bruno Haible  <bruno@clisp.org>
62217         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
62218         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
62219         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
62220         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
62221         looking for the declaration.
62222         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
62223         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
62224         problem.
62225         * doc/posix-functions/inet_pton.texi: Likewise.
62227 2010-12-26  Bruno Haible  <bruno@clisp.org>
62229         arpa_inet: Use the common idioms with C++ support.
62230         * lib/arpa_inet.in.h: Include c++defs.h.
62231         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
62232         support.
62233         * modules/arpa_inet (Depends-on): Add c++defs.
62234         (Makefile.am): Substitute the contents of c++defs.h.
62235         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
62236         * modules/arpa_inet-c++-tests: New file.
62237         * tests/test-arpa_inet-c++.cc: New file.
62239 2010-12-25  Bruno Haible  <bruno@clisp.org>
62241         Fix more C++ link errors on Solaris 8.
62242         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
62243         $(LIB_EACCESS).
62244         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
62245         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
62246         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
62247         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
62248         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
62250 2010-12-25  Bruno Haible  <bruno@clisp.org>
62252         printf-posix: Fix link error when a non-GCC compiler is used.
62253         * lib/stdio.in.h (printf): When not using GCC, override printf
62254         correctly.
62255         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62257 2010-12-25  Bruno Haible  <bruno@clisp.org>
62259         strerror_r-posix: Update doc.
62260         * doc/posix-functions/strerror_r.texi: Update doc about the return
62261         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
62263 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
62265         utimens: simplify the logic of the previous change
62266         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
62267         This should not affect whether the test succeeds or fails.
62269         utimens: configure better on hosts with NFS clock skew
62270         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
62271         uses the clock of the local host.  It might use the clock of the
62272         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
62273         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00113.html>.
62275 2010-12-25  Bruno Haible  <bruno@clisp.org>
62277         ptsname test: Avoid failure on Solaris.
62278         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
62279         open a pseudo-terminal; don't use BSD-style ptys.
62280         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
62282 2010-12-25  Bruno Haible  <bruno@clisp.org>
62284         ptsname: Avoid ERANGE failure on some systems.
62285         * lib/ptsname.c (buffer): Increase size.
62287 2010-12-25  Bruno Haible  <bruno@clisp.org>
62289         rename, renameat: Avoid test failures at NFS mounted locations.
62290         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
62291         so that subsequent mkdir calls succeed.
62293 2010-12-25  Bruno Haible  <bruno@clisp.org>
62295         iswblank: Fix C++ link error on Solaris 8.
62296         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
62297         _GL_FUNCDECL_SYS.
62299 2010-12-25  Bruno Haible  <bruno@clisp.org>
62301         unistd: Fix C++ link error on Solaris 8.
62302         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
62304 2010-12-25  Bruno Haible  <bruno@clisp.org>
62306         readlink doc: Mention an old glibc bug.
62307         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
62309 2010-12-25  Bruno Haible  <bruno@clisp.org>
62311         fcntl-h: Fix for use of C++ on glibc systems.
62312         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
62313         also on glibc systems in C++ mode.
62314         Reported by Gary V. Vaughan <gary@gnu.org>.
62316 2010-12-25  Bruno Haible  <bruno@clisp.org>
62318         roundl-ieee: Make it work on OSF/1 5.1 with cc.
62319         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
62321 2010-12-25  Bruno Haible  <bruno@clisp.org>
62323         truncl-ieee: Make it work on OSF/1 5.1 with cc.
62324         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
62325         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
62326         test whether truncl works according to ISO C 99 with IEC 60559.
62327         * m4/truncl-ieee.m4: New file.
62328         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
62329         m4/signbit.m4.
62330         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
62332 2010-12-25  Bruno Haible  <bruno@clisp.org>
62334         ceill-ieee: Make it work on OSF/1 5.1 with cc.
62335         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
62336         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
62337         test whether ceill works according to ISO C 99 with IEC 60559.
62338         * m4/ceill-ieee.m4: New file.
62339         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
62340         m4/signbit.m4.
62341         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
62343 2010-12-25  Bruno Haible  <bruno@clisp.org>
62345         Ensure all prerequisites of <wchar.h> are included.
62346         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
62347         before <wchar.h>.
62348         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
62349         gl_MBRLEN_NUL_RETVAL): Likewise.
62350         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
62351         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
62352         AC_FUNC_MBRTOWC): Likewise.
62353         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
62354         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
62355         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
62356         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
62357         Likewise.
62358         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
62359         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
62360         (gl_WCHAR_H): Improve comments.
62361         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
62363 2010-12-25  Bruno Haible  <bruno@clisp.org>
62365         strtok_r: Fix C syntax error in autoconf macro.
62366         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
62367         characters in test program.
62369 2010-12-24  Bruno Haible  <bruno@clisp.org>
62371         ceil, trunc, round: Fix gcc warnings.
62372         * lib/ceil.c (MIN): Undefine before redefining.
62373         * lib/trunc.c (MIN): Likewise.
62374         * lib/round.c (MIN): Likewise.
62375         Include <math.h> first.
62377 2010-12-24  Bruno Haible  <bruno@clisp.org>
62379         select tests: Avoid failures on OSF/1 5.1.
62380         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
62381         failure of closing the last socket; it may fail with ECONNRESET.
62383 2010-12-24  Eric Blake  <eblake@redhat.com>
62385         stdint: avoid HP-UX 10.20 preprocessor bug
62386         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
62387         than #if.
62388         * tests/test-floor2.c (main): Likewise.
62389         Reported by Peter O'Gorman.
62391         pipe: make obsoletion transition easier
62392         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
62393         * modules/pipe (Files): Include revived file.
62394         (Include): Drop reference, to mirror getdate's behavior.
62396 2010-12-24  Bruno Haible  <bruno@clisp.org>
62398         sys_socket: Hide mismatch of declarations on NonStop Kernel.
62399         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
62400         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
62401         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62403 2010-12-24  Bruno Haible  <bruno@clisp.org>
62405         gethostname: Ensure declaration on NonStop Kernel.
62406         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
62407         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62409 2010-12-24  Bruno Haible  <bruno@clisp.org>
62411         sys_select: Ensure all necessary types on NonStop Kernel.
62412         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
62413         include <sys/time.h>.
62414         * doc/posix-headers/sys_select.texi: Mention that it's missing on
62415         NonStop Kernel.
62416         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62418 2010-12-24  Bruno Haible  <bruno@clisp.org>
62420         sys_select: Remove unneeded include.
62421         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
62422         have <sys/select.h>.
62424 2010-12-24  Bruno Haible  <bruno@clisp.org>
62426         gethostname: Provide a fallback for HOST_NAME_MAX.
62427         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
62428         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
62429         instead.
62430         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62432 2010-12-24  Bruno Haible  <bruno@clisp.org>
62434         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
62435         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
62436         (SA_RESTART): Likewise.
62437         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62439 2010-12-24  Bruno Haible  <bruno@clisp.org>
62441         signal: Define NSIG.
62442         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
62443         * tests/test-signal.c (nsig): New variable.
62444         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62446 2010-12-24  Bruno Haible  <bruno@clisp.org>
62448         rename, renameat: Avoid test failures on OSF/1 5.1.
62449         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
62450         alternative error codes.
62451         * tests/test-renameat.c (main): Likewise.
62453 2010-12-24  Bruno Haible  <bruno@clisp.org>
62455         *printf: Detect large precisions bug on Solaris 10/SPARC.
62456         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
62457         by Paul Eggert.
62458         * tests/test-snprintf-posix.h (test_function): Add this test code here
62459         too.
62460         * tests/test-sprintf-posix.h (test_function): Likewise.
62461         * tests/test-vasnprintf-posix.c (test_function): Likewise.
62462         * tests/test-vasprintf-posix.c (test_function): Likewise.
62463         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
62464         around by gnulib.
62465         * doc/posix-functions/printf.texi: Likewise.
62466         * doc/posix-functions/snprintf.texi: Likewise.
62467         * doc/posix-functions/sprintf.texi: Likewise.
62468         * doc/posix-functions/vfprintf.texi: Likewise.
62469         * doc/posix-functions/vprintf.texi: Likewise.
62470         * doc/posix-functions/vsnprintf.texi: Likewise.
62471         * doc/posix-functions/vsprintf.texi: Likewise.
62472         * doc/posix-functions/dprintf.texi: Undo last commit.
62473         * doc/posix-functions/vdprintf.texi: Likewise.
62475 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
62477         tests: port test-fdutimensat.c to Solaris 8
62478         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
62479         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
62480         On Solaris 8, it fails with errno == ENOSYS, because there is no
62481         futimens (so it can't use the fd), and there is no lutimens (so it
62482         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
62484         vsnprintf: make more consistent with snprintf; doc fixes
62486         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
62487         the byte count return problem was promoted from the snprintf-posix
62488         to the snprintf module.
62489         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
62490         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
62491         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
62492         * tests/test-snprintf.c (main): Check the byte count returned.
62493         * tests/test-vsnprintf.c (main): Likewise.
62495 2010-12-23  Eric Blake  <eblake@redhat.com>
62497         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
62498         * modules/sigpipe (License): Relax license.
62500 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62502         doc: document Solaris printf bug with large float precisions
62503         * doc/posix-functions/dprintf.texi (dprintf):
62504         * doc/posix-functions/fprintf.texi (fprintf):
62505         * doc/posix-functions/printf.texi (printf):
62506         * doc/posix-functions/snprintf.texi (snprintf):
62507         * doc/posix-functions/sprintf.texi (sprintf):
62508         * doc/posix-functions/vdprintf.texi (vdprintf):
62509         * doc/posix-functions/vfprintf.texi (vfprintf):
62510         * doc/posix-functions/vprintf.texi (vprintf):
62511         * doc/posix-functions/vsnprintf.texi (vsnprintf):
62512         * doc/posix-functions/vsprintf.texi (vsprintf):
62513         Mention that these functions mishandle large floating point
62514         precisions on Solaris 10.  The same bug is also present in Solaris
62515         8, and I assume earlier.  This causes "cd gnulib-tests; make
62516         check" to fail on Solaris 8 (and I assume, later) when building
62517         the latest coreutils, in test-vasprintf-posix's call to
62518         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
62519         the wide flavors (e.g., wprintf) so this patch just updates the
62520         documentation for the narrow ones.
62522         test-posixtm.c: add two tests
62523         * tests/test-posixtm.c: Add two tests, to highlight the
62524         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
62525         around this bug; this is merely to document it.
62527 2010-12-22  Bruno Haible  <bruno@clisp.org>
62529         getlogin_r: Work around portability problem on OSF/1.
62530         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
62531         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
62532         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
62533         test for a truncated result.
62534         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
62535         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
62536         * modules/getlogin_r (Depends-on): Add memchr.
62537         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
62539 2010-12-22  Bruno Haible  <bruno@clisp.org>
62541         ptsname: Avoid test failure on OSF/1 5.1.
62542         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
62543         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
62544         (same_slave): New function.
62545         (main): Use it to compare ptsname's result with the expected file name.
62547 2010-12-22  Bruno Haible  <bruno@clisp.org>
62549         Port extended stdio modules to HP NonStop Kernel.
62550         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
62551         macros.
62552         * lib/fbufmode.c: Update comments.
62553         * lib/fflush.c: Likewise.
62554         * lib/fpurge.c: Likewise.
62555         * lib/freadable.c: Likewise.
62556         * lib/freadahead.c: Likewise.
62557         * lib/freading.c: Likewise.
62558         * lib/freadptr.c: Likewise.
62559         * lib/freadseek.c: Likewise.
62560         * lib/fseeko.c: Likewise.
62561         * lib/fseterr.c: Likewise.
62562         * lib/fwritable.c: Likewise.
62563         * lib/fwriting.c: Likewise.
62564         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
62566 2010-12-22  Bruno Haible  <bruno@clisp.org>
62568         ttyname_r: Work around bug on OSF/1 5.1.
62569         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
62570         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
62571         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
62572         present.
62573         * lib/ttyname_r.c (ttyname_r): Update comments.
62575 2010-12-22  Bruno Haible  <bruno@clisp.org>
62577         round: Implement result sign according to IEEE 754.
62578         * lib/round.c (MIN, MINUS_ZERO): New macros.
62579         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
62580         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
62581         * tests/test-round-ieee.c (main): Likewise.
62582         * tests/test-roundl-ieee.c (main): Likewise.
62584         trunc: Implement result sign according to IEEE 754.
62585         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
62586         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
62587         * tests/test-trunc2.c: Include minus-zero.h.
62588         (MINUS_ZERO): New macro.
62589         (trunc_reference): Keep in sync with lib/trunc.c.
62590         * tests/test-truncf2.c: Include minus-zero.h.
62591         (MINUS_ZERO): New macro.
62592         (truncf_reference): Keep in sync with lib/trunc.c.
62593         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
62594         * tests/test-trunc-ieee.c (main): Likewise.
62595         * tests/test-truncl-ieee.c (main): Likewise.
62597         ceil: Implement result sign according to IEEE 754.
62598         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
62599         (FUNC): Return -0.0 for -1 < x < 0.
62600         * tests/test-ceil2.c: Include minus-zero.h.
62601         (MINUS_ZERO): New macro.
62602         (ceil_reference): Keep in sync with lib/ceil.c.
62603         * tests/test-ceilf2.c: Include minus-zero.h.
62604         (MINUS_ZERO): New macro.
62605         (ceilf_reference): Keep in sync with lib/ceil.c.
62606         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
62607         * tests/test-ceil-ieee.c (main): Likewise.
62608         * tests/test-ceill-ieee.c (main): Likewise.
62610         floor: Implement result sign according to IEEE 754.
62611         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
62612         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
62613         * tests/test-floorf2.c (floorf_reference): Likewise.
62614         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
62615         * tests/test-floor-ieee.c (main): Likewise.
62616         * tests/test-floorl-ieee.c (main): Likewise.
62618 2010-12-22  Bruno Haible  <bruno@clisp.org>
62620         getaddrinfo: Update doc.
62621         * doc/posix-functions/gai_strerror.texi: Return type is also different
62622         on AIX and HP-UX.
62624 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
62626         getaddrinfo, inet_ntop: Update doc for Solaris.
62627         * doc/posix-functions/gai_strerror.texi: Return type is also an
62628         issue on Solaris 9 and earlier.
62629         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
62630         on Solaris 10 and earlier.
62632 2010-12-21  Bruno Haible  <bruno@clisp.org>
62634         New module 'roundl-ieee'.
62635         * modules/roundl-ieee: New file.
62636         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
62637         test whether roundl works according to ISO C 99 with IEC 60559.
62638         * m4/roundl-ieee.m4: New file.
62639         * modules/roundl-ieee-tests: New file.
62640         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
62641         * tests/test-roundl.c (main): Remove signbit tests.
62642         * modules/roundl-tests (Depends-on): Remove signbit.
62643         * doc/posix-functions/roundl.texi: Mention the new module.
62645 2010-12-21  Bruno Haible  <bruno@clisp.org>
62647         New module 'truncl-ieee'.
62648         * modules/truncl-ieee: New file.
62649         * modules/truncl-ieee-tests: New file.
62650         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
62651         * tests/test-truncl.c (main): Remove signbit tests.
62652         * modules/truncl-tests (Depends-on): Remove signbit.
62653         * doc/posix-functions/truncl.texi: Mention the new module.
62655 2010-12-21  Bruno Haible  <bruno@clisp.org>
62657         New module 'ceill-ieee'.
62658         * modules/ceill-ieee: New file.
62659         * modules/ceill-ieee-tests: New file.
62660         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
62661         * tests/test-ceill.c (main): Remove signbit tests.
62662         * modules/ceill-tests (Depends-on): Remove signbit.
62663         * doc/posix-functions/ceill.texi: Mention the new module.
62665 2010-12-21  Bruno Haible  <bruno@clisp.org>
62667         New module 'floorl-ieee'.
62668         * modules/floorl-ieee: New file.
62669         * modules/floorl-ieee-tests: New file.
62670         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
62671         * tests/test-floorl.c (main): Remove signbit tests.
62672         * modules/floorl-tests (Depends-on): Remove signbit.
62673         * doc/posix-functions/floorl.texi: Mention the new module.
62675 2010-12-21  Bruno Haible  <bruno@clisp.org>
62677         New module 'round-ieee'.
62678         * modules/round-ieee: New file.
62679         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
62680         whether round works according to ISO C 99 with IEC 60559.
62681         * m4/round-ieee.m4: New file.
62682         * modules/round-ieee-tests: New file.
62683         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
62684         * tests/test-round1.c (main): Remove signbit tests.
62685         * modules/round-tests (Depends-on): Remove 'signbit'.
62686         * doc/posix-functions/round.texi: Mention the new module.
62688 2010-12-21  Bruno Haible  <bruno@clisp.org>
62690         New module 'trunc-ieee'.
62691         * modules/trunc-ieee: New file.
62692         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
62693         whether trunc works according to ISO C 99 with IEC 60559.
62694         * m4/trunc-ieee.m4: New file.
62695         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
62696         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
62697         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
62698         * modules/trunc-ieee-tests: New file.
62699         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
62700         * tests/test-trunc1.c (main): Remove signbit tests.
62701         * modules/trunc-tests (Depends-on): Remove 'signbit'.
62702         * doc/posix-functions/trunc.texi: Mention the new module.
62704 2010-12-21  Bruno Haible  <bruno@clisp.org>
62706         New module 'ceil-ieee'.
62707         * modules/ceil-ieee: New file.
62708         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
62709         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
62710         ISO C 99 with IEC 60559.
62711         * m4/ceil-ieee.m4: New file.
62712         * modules/ceil (Files): Add lib/ceil.c.
62713         (Depends-on): Add 'float'.
62714         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62715         * lib/math.in.h (ceil): New declaration.
62716         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
62717         REPLACE_CEIL.
62718         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
62719         * modules/ceil-ieee-tests: New file.
62720         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
62721         * tests/test-math-c++.cc: Check the signature of 'ceil'.
62722         * doc/posix-functions/ceil.texi: Mention the new module.
62724 2010-12-21  Bruno Haible  <bruno@clisp.org>
62726         New module 'floor-ieee'.
62727         * modules/floor-ieee: New file.
62728         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
62729         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
62730         ISO C 99 with IEC 60559.
62731         * m4/floor-ieee.m4: New file.
62732         * modules/floor (Files): Add lib/floor.c.
62733         (Depends-on): Add 'float'.
62734         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
62735         * lib/math.in.h (floor): New declaration.
62736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
62737         REPLACE_FLOOR.
62738         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
62739         * modules/floor-ieee-tests: New file.
62740         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
62741         * tests/test-math-c++.cc: Check the signature of 'floor'.
62742         * doc/posix-functions/floor.texi: Mention the new module.
62744 2010-12-21  Bruno Haible  <bruno@clisp.org>
62746         New module 'roundf-ieee'.
62747         * modules/roundf-ieee: New file.
62748         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
62749         test whether roundf works according to ISO C 99 with IEC 60559.
62750         * m4/roundf-ieee.m4: New file.
62751         * modules/roundf-ieee-tests: New file.
62752         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
62753         * tests/test-roundf1.c (main): Remove signbit tests.
62754         * modules/roundf-tests (Depends-on): Remove 'signbit'.
62755         * doc/posix-functions/roundf.texi: Mention the new module.
62757 2010-12-21  Bruno Haible  <bruno@clisp.org>
62759         New module 'truncf-ieee'.
62760         * modules/truncf-ieee: New file.
62761         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
62762         test whether truncf works according to ISO C 99 with IEC 60559.
62763         * m4/truncf-ieee.m4: New file.
62764         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
62765         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
62766         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
62767         * modules/truncf-ieee-tests: New file.
62768         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
62769         * tests/test-truncf1.c (main): Remove signbit tests.
62770         * modules/truncf-tests (Depends-on): Remove 'signbit'.
62771         * doc/posix-functions/truncf.texi: Mention the new module.
62773 2010-12-21  Bruno Haible  <bruno@clisp.org>
62775         New module 'ceilf-ieee'.
62776         * modules/ceilf-ieee: New file.
62777         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
62778         test whether ceilf works according to ISO C 99 with IEC 60559.
62779         * m4/ceilf-ieee.m4: New file.
62780         * modules/ceilf-ieee-tests: New file.
62781         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
62782         * tests/test-ceilf1.c (main): Remove signbit tests.
62783         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
62784         * doc/posix-functions/ceilf.texi: Mention the new module.
62786 2010-12-21  Bruno Haible  <bruno@clisp.org>
62788         New module 'floorf-ieee'.
62789         * modules/floorf-ieee: New file.
62790         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
62791         test whether floorf works according to ISO C 99 with IEC 60559.
62792         * m4/floorf-ieee.m4: New file.
62793         * modules/floorf-ieee-tests: New file.
62794         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
62795         * tests/test-floorf1.c (main): Remove signbit tests.
62796         * modules/floorf-tests (Depends-on): Remove 'signbit'.
62797         * doc/posix-functions/floorf.texi: Mention the new module.
62799 2010-12-21  Bruno Haible  <bruno@clisp.org>
62801         Support for minus zero in autoconf macros.
62802         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
62803         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
62804         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
62805         * tests/minus-zero.h: Update comments.
62807 2010-12-21  Bruno Haible  <bruno@clisp.org>
62809         Tests for module 'ceil'.
62810         * modules/ceil-tests: New file.
62811         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
62812         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
62814 2010-12-21  Bruno Haible  <bruno@clisp.org>
62816         Tests for module 'floor'.
62817         * modules/floor-tests: New file.
62818         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
62819         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
62821 2010-12-21  Bruno Haible  <bruno@clisp.org>
62823         math: Fix indentation.
62824         * lib/math.in.h (floorf): Fix indentation.
62826 2010-12-21  Bruno Haible  <bruno@clisp.org>
62828         Fix cross-compilation guesses on Solaris.
62829         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
62830         not match "solaris2.10".
62831         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
62832         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
62833         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
62835 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
62837         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
62838         This fixes a problem observed with the latest coreutils snapshot
62839         that caused a test to fail on Solaris 8.  src/csplit.c's call
62840         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
62841         earlier, instead of returning the number of bytes that would have
62842         been generated; this causes csplit to incorrectly report memory
62843         exhaustion.
62844         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
62845         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
62846         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
62847         comments to match.
62848         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
62849         Fix typo in matching older versions of Solaris: "solaris2.10"
62850         is matched by the shell pattern "solaris2.[0-9]*".  This matters
62851         only for guessing while cross-compiling.
62852         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
62854 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
62856         ftoastr: fix comment again
62857         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62858         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00149.html>.
62859         Also, simplify example a bit by using flags = 0.
62861 2010-12-20  Bruno Haible  <bruno@clisp.org>
62863         round*, trunc*: Update documentation regarding glibc.
62864         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
62865         * doc/posix-functions/round.texi: Likewise.
62866         * doc/posix-functions/roundl.texi: Likewise.
62867         * doc/posix-functions/truncf.texi: Likewise.
62868         * doc/posix-functions/trunc.texi: Likewise.
62869         * doc/posix-functions/truncl.texi: Likewise.
62871 2010-12-20  Bruno Haible  <bruno@clisp.org>
62873         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
62874         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
62875         * doc/posix-functions/round.texi: Likewise.
62876         * doc/posix-functions/roundl.texi: Likewise.
62878 2010-12-20  Bruno Haible  <bruno@clisp.org>
62880         ttyname_r: Add missing declaration on HP-UX 11.
62881         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
62882         HAVE_TTYNAME_R.
62883         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
62884         declared. Set HAVE_TTYNAME_R always.
62885         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
62886         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
62887         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
62888         HAVE_TTYNAME_R.
62889         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
62891 2010-12-20  Bruno Haible  <bruno@clisp.org>
62893         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
62894         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
62895         * doc/posix-functions/getlogin_r.texi: Likewise.
62896         * tests/test-getlogin.c: Include <errno.h>.
62897         (main): Avoid test failure on HP-UX 11.11.
62898         * tests/test-getlogin_r.c (main): Likewise.
62900 2010-12-20  Bruno Haible  <bruno@clisp.org>
62902         getlogin_r: Add missing declaration on HP-UX 11.
62903         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
62904         declared also when it exists as a function.
62905         * doc/posix-functions/getlogin_r.texi: Document this workaround.
62907 2010-12-20  Bruno Haible  <bruno@clisp.org>
62909         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
62910         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
62911         through wcrtomb.
62913 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
62915         ftoastr: fix comment
62916         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
62917         <http://lists.gnu.org/r/bug-gnulib/2010-12/msg00130.html>.
62919 2010-12-19  Bruno Haible  <bruno@clisp.org>
62921         isnan: Ensure it is a macro.
62922         * lib/math.in.h (isnan): Define as a macro if not already a macro.
62923         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
62924         Solaris.
62926 2010-12-19  Bruno Haible  <bruno@clisp.org>
62928         ldexpl test: Fix link error on OSF/1 5.1.
62929         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
62931 2010-12-19  Bruno Haible  <bruno@clisp.org>
62933         wctype: Make it work in C++ mode on OSF/1 5.1.
62934         * lib/wctype.in.h (iswblank): Declare but not define here.
62935         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
62936         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
62937         * modules/wctype (Files): Add lib/iswblank.c.
62939 2010-12-19  Bruno Haible  <bruno@clisp.org>
62941         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
62942         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
62943         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
62945 2010-12-19  Bruno Haible  <bruno@clisp.org>
62947         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
62948         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
62949         _POSIX_PII_SOCKET.
62950         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
62951         * doc/posix-functions/recvfrom.texi: Likewise.
62952         * doc/posix-functions/send.texi: Likewise.
62953         * doc/posix-functions/sendto.texi: Likewise.
62955 2010-12-19  Bruno Haible  <bruno@clisp.org>
62957         tcgetsid: Add missing declaration on OSF/1 5.1.
62958         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
62959         HAVE_TCGETSID.
62960         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
62961         Don't set HAVE_TCGETSID.
62962         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
62963         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
62964         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
62965         HAVE_TCGETSID.
62966         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
62968 2010-12-19  Bruno Haible  <bruno@clisp.org>
62970         stdio: Fix problem with popen() declaration on OSF/1 5.1.
62971         * lib/stdio.in.h: During the include_next statement, let recursive
62972         includes of this file include only the system header file.
62974 2010-12-19  Bruno Haible  <bruno@clisp.org>
62976         iconv_open: Fix regression from 2010-12-04.
62977         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
62978         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
62980 2010-12-19  Bruno Haible  <bruno@clisp.org>
62982         stdbool test: Avoid a gcc warning.
62983         * tests/test-stdbool.c (main): Fail if e1 is false.
62984         Reported by Jim Meyering.
62986 2010-12-19  Jim Meyering  <meyering@redhat.com>
62988         setenv: restore to working order
62989         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
62990         mistakenly removed.
62991         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
62992         HAVE_SETENV.
62993         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
62994         HAVE_SETENV.
62996 2010-12-19  Bruno Haible  <bruno@clisp.org>
62998         Document some different function declarations on OSF/1 5.1.
62999         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
63000         * doc/posix-functions/inet_ntop.texi: Likewise.
63001         * doc/posix-functions/gethostname.texi: Likewise.
63002         * lib/unistd.in.h (gethostname): Update comment.
63004 2010-12-19  Bruno Haible  <bruno@clisp.org>
63006         doc: Mention vasprintf-posix module.
63007         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
63008         the 'vasprintf-posix' module.
63009         * doc/glibc-functions/vasprintf.texi: Likewise.
63011 2010-12-19  Bruno Haible  <bruno@clisp.org>
63013         unsetenv: Add missing declaration on OSF/1 5.1.
63014         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
63015         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
63016         Don't set HAVE_UNSETENV. In the test program, set _BSD.
63017         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
63018         not HAVE_UNSETENV.
63019         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
63020         HAVE_UNSETENV.
63021         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
63023 2010-12-19  Bruno Haible  <bruno@clisp.org>
63025         setenv: Add missing declaration on OSF/1 5.1.
63026         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
63027         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
63028         declared. Don't set HAVE_SETENV.
63029         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
63030         not HAVE_SETENV.
63031         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
63032         HAVE_SETENV.
63033         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
63035 2010-12-19  Bruno Haible  <bruno@clisp.org>
63037         nl_langinfo tests: Avoid gcc warning.
63038         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
63040 2010-12-19  Bruno Haible  <bruno@clisp.org>
63042         mknod: Avoid error in C++ mode on OSF/1 with GCC.
63043         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
63044         _GL_CXXALIAS_SYS.
63046 2010-12-19  Bruno Haible  <bruno@clisp.org>
63048         stdbool: Relax test.
63049         * tests/test-stdbool.c (e): Don't require that casts from a variable's
63050         address to 'bool' work in static initializer, for compilers other than
63051         GCC.
63053 2010-12-19  Bruno Haible  <bruno@clisp.org>
63055         ftello: Add missing declaration on OSF/1 5.1.
63056         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
63057         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
63058         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
63059         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
63060         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
63062 2010-12-19  Bruno Haible  <bruno@clisp.org>
63064         fseeko: Add missing declaration on OSF/1 5.1.
63065         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
63066         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
63067         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
63068         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
63069         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
63071 2010-12-19  Bruno Haible  <bruno@clisp.org>
63073         fchdir: Add missing declaration on OSF/1 5.1.
63074         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
63075         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
63076         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
63077         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
63078         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
63080 2010-12-19  Bruno Haible  <bruno@clisp.org>
63082         relocatable-prog-wrapper: Separate from relocatable-prog.
63083         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
63084         uninstall-relocwrapper rule here.
63085         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
63086         Reported by Ian Beckwith <ianb@erislabs.net>.
63088 2010-12-19  Bruno Haible  <bruno@clisp.org>
63090         unistr/u8-mbsnlen: Add missing dependency.
63091         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
63092         Reported by Ian Beckwith <ianb@erislabs.net>.
63094 2010-12-19  Bruno Haible  <bruno@clisp.org>
63096         iconv: Make it possible again to use this module without 'iconv-h'.
63097         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
63098         if it is not defined.
63099         Reported by Ian Beckwith <ianb@erislabs.net>.
63101 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
63103         acl: port to Solaris 8 when copying from tmpfs to ufs
63104         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
63105         error number.  Problem observed on Solaris 8 with latest
63106         coreutils, with "mv A B", where A is on a tmpfs file system and B
63107         is on a ufs file system.  This caused coreutils' mv/part-symlink
63108         test to fail.
63110         tests: set fail=0 at start
63111         * tests/init.sh (setup_): Move fail=0 initialization here ...
63112         (mktempd_): ... from here, so that tests can rely on fail being
63113         set to 0 initially.  This fixes a problem in coreutils; see:
63114         http://lists.gnu.org/r/coreutils/2010-12/msg00083.html
63116 2010-12-18  Bruno Haible  <bruno@clisp.org>
63118         memmem-simple: Stylistic changes.
63119         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
63120         Fix preprocessor directive indentation.
63122 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63124         memmem, memmem-simple: reorganize and expand empty needle check
63125         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
63126         functional checks to memmem-simple so that one has a fully functional
63127         memmem by using just this module.
63128         Restrict the performance only check to the memmem module.
63129         Also expand the empty needle check to ensure the correct
63130         pointer is returned, not just a non NULL pointer.
63131         * doc/glibc-functions/memmem.texi: Rearrange the portability
63132         documentation to correlate with the rearranged checks.
63133         Clarify exactly how the memmem and memmem-simple modules
63134         relate to each other.
63136 2010-12-15  Pádraig Brady  <P@draigBrady.com>
63137             Bruno Haible  <bruno@clisp.org>
63139         Improve cross-compilation guesses for uClibc.
63140         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
63141         that uClibc does not have the glibc bug.
63142         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
63143         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
63145 2010-12-14  Eric Blake  <eblake@redhat.com>
63147         configmake: provide fallbacks for oldest supported autotools
63148         * m4/configmake.m4: New file.
63149         * modules/configmake (Files): Ship it.
63150         (configure.ac): Use it to guarantee fallbacks.
63152 2010-12-13  Pádraig Brady  <P@draigBrady.com>
63154         read-file: Improve handling of large files
63155         * lib/read-file.c (fread_file): Minimize realloc()s
63156         for regular files, and better manage sizes around SIZE_MAX.
63158 2010-12-13  Eric Blake  <eblake@redhat.com>
63160         cloexec, fcntl: relax license
63161         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
63162         consent from all contributors.
63163         * modules/fcntl (License): Likewise.
63165 2010-12-10  Bruno Haible  <bruno@clisp.org>
63167         Tests for module 'pipe-posix'.
63168         * modules/pipe-posix-tests: New file.
63169         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
63171 2010-12-10  Bruno Haible  <bruno@clisp.org>
63173         pipe-posix: Make it work in C++ mode.
63174         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
63175         (pipe): Use common idiom, not a macro definition.
63176         * lib/pipe.c: New file.
63177         * m4/pipe.m4: New file.
63178         * modules/pipe-posix (Description): Enhance.
63179         (Files): Add lib/pipe.c, m4/pipe.m4.
63180         (configure.ac): Invoke gl_FUNC_PIPE.
63181         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
63182         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
63183         * tests/test-unistd-c++.cc: Check the signature of pipe.
63185 2010-12-10  Bruno Haible  <bruno@clisp.org>
63187         Rename module 'pipe' to 'spawn-pipe'.
63188         * modules/spawn-pipe: New file, renamed from modules/pipe.
63189         (Files, configure.ac, Makefile.am): Update.
63190         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
63191         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
63192         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
63193         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
63194         "spawn-pipe.h" instead of "pipe.h".
63195         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
63196         to gl_SPAWN_PIPE.
63197         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
63198         (Files, Makefile.am): Update.
63199         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
63200         Update.
63201         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
63202         Include "spawn-pipe.h" instead of "pipe.h".
63203         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
63204         * lib/javacomp.c: Likewise.
63205         * lib/javaversion.c: Likewise.
63206         * lib/pipe-filter-gi.c: Likewise.
63207         * lib/pipe-filter-ii.c: Likewise.
63208         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
63209         * modules/javacomp (Depends-on): Likewise.
63210         * modules/javaversion (Depends-on): Likewise.
63211         * modules/pipe-filter-gi (Depends-on): Likewise.
63212         * modules/pipe-filter-ii (Depends-on): Likewise.
63213         * MODULES.html.sh (Executing programs): Update.
63214         * NEWS: Mention the change.
63216 2010-12-10  Eric Blake  <eblake@redhat.com>
63218         pipe-posix: new module
63219         * modules/pipe-posix: New file.
63220         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
63221         (gl_UNISTD_H): Check for declaration.
63222         * modules/unistd (Makefile.am): Substitute it.
63223         * lib/unistd.in.h (pipe): Provide it for mingw.
63224         * doc/posix-functions/pipe.texi (pipe): Update documentation.
63225         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
63227 2010-12-07  Bruno Haible  <bruno@clisp.org>
63229         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
63230         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
63231         u8_strcmp_gnu.
63232         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
63234 2010-12-06  Bruno Haible  <bruno@clisp.org>
63236         Update internal documentation.
63237         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
63239 2010-12-04  Bruno Haible  <bruno@clisp.org>
63241         Put more information about failed tests into the test return codes.
63242         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
63243         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
63244         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
63245         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
63246         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
63247         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63248         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63249         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
63250         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
63251         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
63252         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
63253         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
63254         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
63255         * m4/stdint.m4 (gl_STDINT_H): Likewise.
63256         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
63257         returns a bit mask.
63258         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
63259         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
63260         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
63261         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
63262         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
63263         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
63264         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
63265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
63266         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
63267         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
63268         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
63269         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
63270         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
63271         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
63272         * m4/link.m4 (gl_FUNC_LINK): Likewise.
63273         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
63274         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
63275         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
63276         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
63277         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
63278         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
63279         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
63280         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
63281         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
63282         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
63283         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
63284         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
63285         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
63286         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
63287         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
63288         gl_PRINTF_PRECISION): Likewise.
63289         * m4/regex.m4 (gl_REGEX): Likewise.
63290         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
63291         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
63292         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
63293         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
63294         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
63295         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
63296         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
63297         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
63298         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
63299         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63300         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
63301         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
63302         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
63303         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
63304         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
63305         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
63306         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
63307         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
63308         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
63309         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
63310         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
63311         enumerated value.
63312         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
63314 2010-12-04  Bruno Haible  <bruno@clisp.org>
63316         Update for Solaris 11 2010-11.
63317         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
63318         Express, released in November 2010.
63320 2010-12-04  Bruno Haible  <bruno@clisp.org>
63322         nproc: Relax license.
63323         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
63324         and Paul Eggert.
63325         Requested by Ludovic Courtès <ludo@gnu.org>.
63327 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
63329         utimecmp: fine-grained src to nearby coarse-grained dest
63331         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
63332         and the source is on a file system with higher-resolution time
63333         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
63334         not work, and the time stamps are close together, the algorithm to
63335         determine the exact resolution from the read-back mtime was buggy:
63336         it had a "!=" where it should have had an "==".  This bug has been
63337         in the code ever since it was introduced to gnulib.
63338         Problem reported by Dan Jacobson in
63339         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
63341 2010-11-30  Bruno Haible  <bruno@clisp.org>
63343         strerror_r-posix: Fix autoconf test.
63344         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
63346 2010-11-28  Bruno Haible  <bruno@clisp.org>
63347             Paul Eggert  <eggert@cs.ucla.edu>
63349         Tests for module 'getdomainname'.
63350         * modules/getdomainname-tests: New file.
63351         * tests/test-getdomainname.c: New file, based on
63352         tests/test-gethostname.c.
63354 2010-11-28  Bruno Haible  <bruno@clisp.org>
63355             Paul Eggert  <eggert@cs.ucla.edu>
63357         getdomainname: Use the system function when possible.
63358         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
63359         (getdomainname): Replace if needed. Provide the declaration if it is
63360         missing. Don't use _GL_CXXALIAS_SYS_CAST.
63361         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
63362         (getdomainname): When the system has getdomainname, call the system
63363         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
63364         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
63365         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
63366         found in libnsl. Look for the declaration also in <netdb.h>. Replace
63367         the function if its second argument is of type 'int' or if it is found
63368         in libnsl.
63369         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
63370         <sys/systeminfo.h> and sysinfo().
63371         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
63372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
63373         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
63374         HAVE_GETDOMAINNAME.
63375         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
63376         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
63377         * doc/glibc-functions/getdomainname.texi: Document the problems with
63378         the getdomainname declaration.
63380 2010-11-28  Bruno Haible  <bruno@clisp.org>
63382         sys_socket: Ensure ss_family field on AIX.
63383         * lib/sys_socket.in.h (ss_family): New macro definition.
63384         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
63385         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
63386         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
63387         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63388         * modules/sys_socket (Makefile.am): Substitute
63389         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
63390         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
63392 2010-11-27  Bruno Haible  <bruno@clisp.org>
63394         readline: Improve configure output.
63395         * m4/readline.m4 (gl_FUNC_READLINE): Make the
63396         "checking for readline..." result understandable.
63398 2010-11-27  Bruno Haible  <bruno@clisp.org>
63400         *printf-posix: Detect a bug on Solaris 10/x86.
63401         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
63402         for floating-point output.
63403         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
63404         directive.
63405         * tests/test-snprintf-posix.h (test_function): Likewise.
63406         * tests/test-sprintf-posix.h (test_function): Likewise.
63407         * tests/test-vasprintf-posix.c (test_function): Likewise.
63408         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
63409         * doc/posix-functions/printf.texi: Likewise.
63410         * doc/posix-functions/snprintf.texi: Likewise.
63411         * doc/posix-functions/sprintf.texi: Likewise.
63412         * doc/posix-functions/vfprintf.texi: Likewise.
63413         * doc/posix-functions/vprintf.texi: Likewise.
63414         * doc/posix-functions/vsnprintf.texi: Likewise.
63415         * doc/posix-functions/vsprintf.texi: Likewise.
63416         * doc/glibc-functions/obstack_printf.texi: Likewise.
63417         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
63419 2010-11-27  Bruno Haible  <bruno@clisp.org>
63421         Fix link error when module libunistring-optional is in use.
63422         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
63423         * modules/striconveha-tests (Makefile.am): Likewise.
63425 2010-11-27  Bruno Haible  <bruno@clisp.org>
63427         regex: Mention link dependencies.
63428         * modules/regex (Link): New section.
63429         * modules/rpmatch (Link): Likewise.
63430         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
63432 2010-11-27  Bruno Haible  <bruno@clisp.org>
63434         ftoastr: Fix compilation error on Solaris.
63435         * lib/ftoastr.c: Include <config.h>.
63437 2010-11-27  Bruno Haible  <bruno@clisp.org>
63439         getloadavg: Update documentation.
63440         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
63442 2010-11-27  Bruno Haible  <bruno@clisp.org>
63444         sys_socket: Fix test whether the functions are declared.
63445         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
63446         not <sys/select.h>.
63448 2010-11-27  Bruno Haible  <bruno@clisp.org>
63450         getpass: Make sure to get system declaration on some platforms.
63451         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
63452         gl_USE_SYSTEM_EXTENSIONS.
63453         * modules/getpass (Depends-on): Add extensions.
63455 2010-11-26  Bruno Haible  <bruno@clisp.org>
63457         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
63458         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
63459         'iconv' module is present.
63460         (ICONV_CONST): New macro.
63461         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
63462         ICONV_CONST.
63463         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
63464         set ICONV_CONST.
63465         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
63466         here.
63467         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
63468         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
63469         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
63470         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
63471         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
63472         present.
63474 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
63476         ftoastr: comment fix
63477         * lib/ftoastr.c: "little" -> "little or no" in comment
63479 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
63481         stdint: port to GCC 4.3 + OSX + Octave
63482         On this platform, stdint.h is buggy and defines int64_t to long
63483         long int.  The replacement defined it to long int, causing
63484         problems with C++ style name mangling.  Instead, trust the system
63485         definition if INT64_MAX is defined, and likewise for the unsigned
63486         variant.   Problem reported by Jarno Rajahalme in
63487         <http://lists.gnu.org/r/bug-gnulib/2010-04/msg00143.html>.
63488         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
63489         and don't mess with int64_t and INT64_MAX in this case.
63490         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
63492 2010-11-24  Bruno Haible  <bruno@clisp.org>
63494         doc: Corrections regarding MacOS X 10.4 and 10.5.
63495         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
63496         MacOS X.
63497         Reported by Simon Josefsson.
63499 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
63501         Uninstall ".bin" files installed by relocwrapper.
63502         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
63503         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
63504         unless it is already there.
63506 2010-11-21  Bruno Haible  <bruno@clisp.org>
63508         Update for NetBSD 5.0.
63509         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63510         NetBSD; the test fails on NetBSD 5.0.
63511         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63512         about NetBSD.
63514 2010-11-21  Bruno Haible  <bruno@clisp.org>
63516         Update for HP-UX 11.23 and HP-UX 11.31.
63517         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
63518         HP-UX.
63520 2010-11-21  Bruno Haible  <bruno@clisp.org>
63522         Update for MacOS X 10.5.
63523         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
63524         MacOS X; the test fails on MacOS X 10.5.8.
63525         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
63526         about MacOS X.
63528 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
63530         bootstrap: add bootstrap_sync option.
63531         See discussion at
63532         <http://lists.gnu.org/r/bug-gnulib/2010-10/msg00369.html>,
63533         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00200.html>.
63534         * build-aux/bootstrap: Accept --bootstrap-sync to update
63535         bootstrap if it is not identical to the local gnulib's
63536         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
63537         enable this by default.  Accept --no-bootstrap-sync to disable
63538         it.
63540 2010-11-20  Bruno Haible  <bruno@clisp.org>
63542         Ensure that <features.h> is included before __GLIBC__ is tested.
63543         * lib/printf-parse.h: Include <features.h>.
63544         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
63545         Reported by Mike Frysinger <vapier@gentoo.org>.
63547         Ensure that <features.h> is included before __GLIBC__ is tested.
63548         * lib/wchar.in.h: Include <features.h>.
63549         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
63550         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
63551         Reported by Mike Frysinger <vapier@gentoo.org>.
63553         Ensure that <features.h> is included before __GLIBC__ is tested.
63554         * lib/arpa_inet.in.h: Include <features.h>.
63555         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
63556         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
63557         Reported by Mike Frysinger <vapier@gentoo.org>.
63559         Ensure that <features.h> is included before __GLIBC__ is tested.
63560         * build-aux/link-warning.h: Include <features.h>.
63561         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
63562         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
63563         Reported by Mike Frysinger <vapier@gentoo.org>.
63565         Ensure that <features.h> is included before __GLIBC__ is tested.
63566         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
63567         Reported by Mike Frysinger <vapier@gentoo.org>.
63569 2010-11-20  Bruno Haible  <bruno@clisp.org>
63571         memmem: Fix autoconf test.
63572         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
63574 2010-11-20  Bruno Haible  <bruno@clisp.org>
63576         Port to uClibc.
63577         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
63578         * lib/fcntl.in.h: Likewise.
63579         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
63580         * lib/mbrtowc.c (mbrtowc): Likewise.
63581         * lib/relocatable.c (find_shared_library_fullname): Likewise.
63582         * lib/strerror_r.c: Likewise.
63583         * lib/unistr/u8-strnlen.c: Likewise.
63584         * lib/vasnprintf.c (decimal_point_char): Likewise.
63585         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
63586         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
63587         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
63588         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
63589         * tests/test-sigaction.c (handler, main): Likewise.
63590         * lib/freading.h: Treat uClibc like a non-glibc platform.
63591         * lib/freading.c: Likewise.
63592         * lib/gettext.h: Likewise.
63593         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
63594         Likewise.
63595         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
63596         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
63597         * lib/propername.c (proper_name_utf8): Likewise.
63598         * lib/spawn.in.h: Likewise.
63599         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
63600         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
63601         mem_cd_iconveh_internal): Likewise.
63602         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
63603         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
63604         strstr, strcasestr): Likewise.
63605         * lib/unicodeio.c (unicode_to_mb): Likewise.
63606         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
63607         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
63608         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
63609         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
63610         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
63611         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
63612         * lib/unistr/u8-stpncpy.c: Likewise.
63613         * lib/vasnprintf.c (VASNPRINTF): Likewise.
63614         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
63615         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
63616         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
63617         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
63618         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
63619         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
63620         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
63621         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
63622         Likewise.
63623         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
63624         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
63625         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
63626         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
63627         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
63628         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
63629         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
63630         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
63631         * tests/test-getopt.h (OPTIND_MIN): Likewise.
63632         * tests/test-striconveha.c (main): Likewise.
63633         * tests/test-vasnprintf-posix.c (test_function): Likewise.
63634         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
63635         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
63636         * doc/posix-functions/getline.texi: Likewise.
63637         Reported by Mike Frysinger <vapier@gentoo.org>.
63639 2010-11-20  Bruno Haible  <bruno@clisp.org>
63641         nproc: Fix condition.
63642         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
63643         HAVE_PTHREAD_AFFINITY_NP.
63645 2010-11-20  Bruno Haible  <bruno@clisp.org>
63647         Fix a comment.
63648         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
63650 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
63652         ftoastr: don't assume snprintf
63653         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
63654         Implement a subset of snprintf here, by using sprintf safely.
63655         * modules/ftoastr (Depends-on): Remove snprintf.
63657 2010-11-19  Jim Meyering  <meyering@redhat.com>
63659         test-rename.h: fix compilation failure
63660         * tests/test-rename.h (test_rename): Add omitted "}".
63662 2010-11-17  Jim Meyering  <meyering@redhat.com>
63664         maint.mk: add a URL discussing the no-@acronym policy
63665         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
63667 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
63669         ftoastr: depend on snprintf, improve comments
63670         * lib/ftoastr.c: Also mention Loitsch's draft.
63671         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
63672         needed in the current implementation, but it might simplify
63673         speeding up the code later.
63674         * modules/ftoastr: Depend on snprintf; this improves portability.
63675         Suggested by Bruno Haible in the same email.
63677         ftoastr: port to hosts lacking strtof and strtold
63678         Problem reported by Bruno Haible in
63679         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00242.html>.
63680         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
63681         environment and strtold (and presumably strtof) are not available.
63682         * modules/ftoastr (Files): Add m4/c-strtod.m4.
63683         (configure.ac): Require gl_C99_STRTOLD.
63685 2010-11-18  Bruno Haible  <bruno@clisp.org>
63687         c-strtold: Avoid link error on AIX 7.
63688         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
63689         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
63690         (gl_C_STRTOLD): Test whether strtold_l exists.
63691         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
63693 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
63695         intprops: new macro INT_BITS_STRLEN_BOUND
63696         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
63697         ftoastr.h.  This exposes an internal of intprops.h that was formerly
63698         not exposed.  Also, it uses a slightly tighter bound than before;
63699         though this makes no practical difference, we might as well be as
63700         tight as we easily can.
63702         ftoastr: new module, for lossless conversion of floats to short strings
63703         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
63704         * modules/ftoastr: New files.
63706 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
63708         bootstrap: port to Solaris sed
63709         * build-aux/bootstrap (get_version): Port to Solaris sed.
63710         See Ralf Wildenhues's note in
63711         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00156.html>.
63713 2010-11-14  Jim Meyering  <meyering@redhat.com>
63715         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
63716         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
63717         and move definition closer to sole use.
63719 2010-11-13  Jim Meyering  <meyering@redhat.com>
63721         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
63722         Now we require at least autoconf-2.59, which means the work-around
63723         is no longer needed.
63724         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
63725         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
63726         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
63727         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
63728         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
63730 2010-11-13  Bruno Haible  <bruno@clisp.org>
63732         rename, renameat: Avoid test failures at NFS mounted locations.
63733         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
63734         functions.
63735         (test_rename): Use assert_nonexistent.
63736         * tests/test-rename.c: Include <dirent.h>.
63737         * tests/test-renameat.c: Likewise.
63738         Reported by Gary V. Vaughan <gary@gnu.org>.
63740         rename, renameat: Document Linux bug with NFS
63741         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00154.html>.
63742         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
63743         * doc/posix-functions/renameat.texi: Likewise.
63744         Suggested by Eric Blake.
63746 2010-11-13  Bruno Haible  <bruno@clisp.org>
63748         rename test: Add comments.
63749         * tests/test-rename.h (test_rename): Add structure and comments.
63751 2010-11-13  Eric Blake  <eblake@redhat.com>
63753         maintainer-makefile: cover a few more files
63754         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
63755         scripts generated within C files, for libvirt.
63757 2010-11-13  Bruno Haible  <bruno@clisp.org>
63759         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
63760         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
63761         character, return the number of bytes that belong together, not always
63762         1.
63763         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
63764         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
63765         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
63766         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
63767         number of bytes of an invalid character.
63768         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
63769         (main): Invoke it.
63770         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
63771         results.
63772         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
63773         malformed byte sequences.
63774         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
63775         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
63776         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
63777         Reported by Ben Pfaff and Paolo Bonzini.
63779 2010-11-13  Bruno Haible  <bruno@clisp.org>
63781         openat: Work around glibc bug with fchownat() and empty file names.
63782         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
63783         (gl_FUNC_FCHOWNAT): Invoke it.
63784         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
63785         * doc/posix-functions/fchownat.texi: Document the glibc bug.
63786         Reported by Gary V. Vaughan <gary@gnu.org>.
63788 2010-11-13  Bruno Haible  <bruno@clisp.org>
63790         openat: Ensure autoconf macro ordering.
63791         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
63792         gl_USE_SYSTEM_EXTENSIONS.
63793         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
63795 2010-11-13  Bruno Haible  <bruno@clisp.org>
63797         Update comments.
63798         * lib/unistr/u8-check.c: Update file name in comments.
63799         * lib/unistr/u8-mblen.c: Likewise.
63800         * lib/unistr/u8-prev.c: Likewise.
63801         * lib/unistr/u8-strmblen.c: Likewise.
63802         * lib/unistr/u8-strmbtouc.c: Likewise.
63804 2010-11-13  Jim Meyering  <meyering@redhat.com>
63806         tests: avoid test failure on Solaris 10 due to lack of PATH export
63807         * tests/test-update-copyright.sh: Don't forget to export PATH.
63809         init.sh: ensure that IFS is defined, just in case...
63810         * tests/init.sh (setup_): Ensure that IFS is defined,
63811         so that saving and restoring it works as expected.  This
63812         appears to be useful at least for an old version of dash
63813         from a long time ago (RH 6).  See here for details:
63814         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
63816         maint.mk: tighten "test a == b" check
63817         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
63818         test to files that contain something like #!/bin/sh.
63819         Without this, coreutils would get two false positives in
63820         the comments of C source files.
63822 2010-11-12  Eric Blake  <eblake@redhat.com>
63824         bootstrap: fix typo in previous attempt
63825         * build-aux/bootstrap (buildreq): Correct the grouping.
63826         Reported by Paul Eggert.
63828         maintainer-makefile: prohibit test x == x
63829         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
63830         Based on a report by Matthias Bolte.
63832         bootstrap: allow FreeBSD gzip
63833         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
63834         which has no '.' and goes to stderr.
63835         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
63836         Reported by Matthias Bolte.
63838         maintainer-makefile: check for i18n setup
63839         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
63840         will likely work.
63842 2010-11-12  Bruno Haible  <bruno@clisp.org>
63844         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
63845         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
63846         * lib/nanosleep.c (nanosleep): Likewise.
63848 2010-11-11  Bruno Haible  <bruno@clisp.org>
63850         fcntl-h: Fix for use of C++ on glibc systems.
63851         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
63852         also on glibc systems in C++ mode.
63853         Reported by Gary V. Vaughan <gary@gnu.org>.
63855 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
63857         mknod: avoid false failure with dash
63858         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
63860 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
63862         unlink: Fix "is it should" typo in diagnostic.
63863         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
63864         <http://lists.gnu.org/r/bug-gnulib/2010-11/msg00106.html>.
63866 2010-11-11  Bruno Haible  <bruno@clisp.org>
63868         Tests for module 'strerror_r-posix'.
63869         * modules/strerror_r-posix-tests: New file.
63870         * tests/test-strerror_r.c: New file.
63871         * tests/test-string-c++.cc: Check the signature of strerror_r.
63873         New module 'strerror_r-posix'.
63874         * lib/string.in.h (strerror_r): New declaration.
63875         * lib/strerror_r.c: New file.
63876         * m4/strerror_r.m4: New file.
63877         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
63878         of strerror_r.
63879         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
63880         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63881         * modules/strerror_r-posix: New file.
63882         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
63883         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
63884         * doc/posix-functions/strerror_r.texi: Mention the new module and the
63885         portability problems.
63887 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
63889         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
63890         line is also considered for output. Quoted function name in shell
63891         command, so temporary files for functions like MyClass::operator()
63892         are removed correctly without errors.
63894 2010-11-09  Bruno Haible  <bruno@clisp.org>
63896         * doc/posix-functions/strerror.texi: List more failing platforms.
63898         * doc/posix-functions/strerror.texi: Add a comment.
63900 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
63902         fdopendir: fix bug on MacOS X when low on file descriptors
63904         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
63905         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
63906         All callers changed.
63907         (fdopendir): Invoke save_cwd at the top level, not after using
63908         multiple dup() calls to use up file descriptors.  Then retry
63909         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
63910         less than the maximum number of open file descriptors, because
63911         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
63912         on Mac OS X 10.6.4 for tar 1.24
63913         <http://lists.gnu.org/r/bug-tar/2010-10/msg00084.html>
63914         <http://lists.gnu.org/r/bug-tar/2010-11/msg00000.html>
63915         and for tar 1.25
63916         <http://lists.gnu.org/r/bug-tar/2010-11/msg00038.html>.
63918 2010-11-07  Bruno Haible  <bruno@clisp.org>
63920         vasnprintf: Support I flag on glibc systems.
63921         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
63922         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
63923         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
63924         snprintf function.
63925         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
63926         glibc systems.
63927         * tests/test-vasnprintf-posix3.c: New file.
63928         * modules/vasnprintf-posix-tests (Files): Add it.
63929         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
63931 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
63933         [html] Fix copy/paste bug: Use unique name for compiler warnings.
63934         * MODULES.html.sh: For compiler warnings, use name
63935         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
63937 2010-11-05  Eric Blake  <eblake@redhat.com>
63939         ceil, floor: avoid spurious failure with icc
63940         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
63941         [denormals-as-zero] when optimizing without -mieee-fp option.
63942         * tests/test-floorf2.c (floorf_reference): Likewise.
63943         * tests/test-ceilf1.c (dummy): New function.
63944         (main): Use it to outsmart icc's optimization.
63945         * tests/test-floorf1.c (dummy, main): Likewise.
63947         tests: require working signbit
63948         * modules/ceilf-tests (Depends-on): Add signbit.
63949         * modules/ceill-tests (Depends-on): Likewise.
63950         * modules/floorf-tests (Depends-on): Likewise.
63951         * modules/floorl-tests (Depends-on): Likewise.
63952         * modules/round-tests (Depends-on): Likewise.
63953         * modules/roundf-tests (Depends-on): Likewise.
63954         * modules/roundl-tests (Depends-on): Likewise.
63955         * modules/trunc-tests (Depends-on): Likewise.
63956         * modules/truncf-tests (Depends-on): Likewise.
63957         * modules/truncl-tests (Depends-on): Likewise.
63959         strtod: work around icc bug
63960         * lib/strtod.c (minus_zero): Define to working value.
63961         (strtod): Use it to avoid icc bug.
63963         copysign: enhance tests
63964         * modules/copysign-tests (Files): Add minus-zero.h.
63965         * tests/test-copysign.c (main): Also test zeros.
63967 2010-11-04  Eric Blake  <eblake@redhat.com>
63969         ceil, floor, round, trunc: enhance tests of -0
63970         * tests/test-ceilf1.c (main): Ensure correct sign of result.
63971         * tests/test-ceill.c (main): Likewise.
63972         * tests/test-floorf1.c (main): Likewise.
63973         * tests/test-floorl.c (main): Likewise.
63974         * tests/test-round1.c (main): Likewise.
63975         * tests/test-roundf1.c (main): Likewise.
63976         * tests/test-roundl.c (main): Likewise.
63977         * tests/test-trunc1.c (main): Likewise.
63978         * tests/test-truncf1.c (main): Likewise.
63979         * tests/test-truncl.c (main): Likewise.
63981 2010-11-04  Eric Blake  <eblake@redhat.com>
63983         frexp, tests: work around ICC bug with -zero
63984         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
63985         works with more compilers.
63986         * tests/minus-zero.h: New file.
63987         * modules/ceilf-tests (Files): Include it.
63988         * modules/ceill-tests (Files): Likewise.
63989         * modules/floorf-tests (Files): Likewise.
63990         * modules/floorl-tests (Files): Likewise.
63991         * modules/frexp-nolibm-tests (Files): Likewise.
63992         * modules/frexp-tests (Files): Likewise.
63993         * modules/frexpl-nolibm-tests (Files): Likewise.
63994         * modules/frexpl-tests (Files): Likewise.
63995         * modules/isnan-tests (Files): Likewise.
63996         * modules/isnand-nolibm-tests (Files): Likewise.
63997         * modules/isnand-tests (Files): Likewise.
63998         * modules/isnanf-nolibm-tests (Files): Likewise.
63999         * modules/isnanf-tests (Files): Likewise.
64000         * modules/isnanl-nolibm-tests (Files): Likewise.
64001         * modules/isnanl-tests (Files): Likewise.
64002         * modules/round-tests (Files): Likewise.
64003         * modules/roundf-tests (Files): Likewise.
64004         * modules/roundl-tests (Files): Likewise.
64005         * modules/ldexpl-tests (Files): Likewise.
64006         * modules/signbit-tests (Files): Likewise.
64007         * modules/snprintf-posix-tests (Files): Likewise.
64008         * modules/sprintf-posix-tests (Files): Likewise.
64009         * modules/strtod-tests (Files): Likewise.
64010         * modules/trunc-tests (Files): Likewise.
64011         * modules/truncf-tests (Files): Likewise.
64012         * modules/truncl-tests (Files): Likewise.
64013         * modules/vsnprintf-posix-tests (Files): Likewise.
64014         * modules/vsprintf-posix-tests (Files): Likewise.
64015         * modules/vasnprintf-posix-tests (Files): Likewise.
64016         * modules/vasprintf-posix-tests (Files): Likewise.
64017         * tests/test-ceilf1.c (main): Use it.
64018         * tests/test-ceill.c (main): Likewise.
64019         * tests/test-floorf1.c (main): Likewise.
64020         * tests/test-floorl.c (main): Likewise.
64021         * tests/test-frexp.c (main): Likewise.
64022         * tests/test-frexpl.c (main): Likewise.
64023         * tests/test-isnan.c (main): Likewise.
64024         * tests/test-isnand.h (main): Likewise.
64025         * tests/test-isnanf.h (main): Likewise.
64026         * tests/test-isnanl.h (main): Likewise.
64027         * tests/test-ldexpl.c (main): Likewise.
64028         * tests/test-round.c (main): Likewise.
64029         * tests/test-roundf.c (main): Likewise.
64030         * tests/test-roundl.c (main): Likewise.
64031         * tests/test-signbit.c (test_signbitf, test_signbitd)
64032         (test_signbitl): Likewise.
64033         * tests/test-snprintf-posix.h (test_function): Likewise.
64034         * tests/test-sprintf-posix.h (test_function): Likewise.
64035         * tests/test-strtod.c (main): Likewise.
64036         * tests/test-trunc1.c (main): Likewise.
64037         * tests/test-truncf1.c (main): Likewise.
64038         * tests/test-truncl.c (main): Likewise.
64040         isnanl: work around icc bug
64041         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
64043 2010-11-03  Eric Blake  <eblake@redhat.com>
64045         tests: fix compiler warnings
64046         * tests/test-getopt.h (test_getopt): Fix condition.
64047         * tests/test-getopt_long.h (test_getopt_long): Likewise.
64048         * tests/test-pipe2.c (main): Likewise.
64049         * tests/test-quotearg-simple.c (main): Avoid icc warning.
64051         utimens: fix broken m4 test
64052         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
64054 2010-10-28  Bruno Haible  <bruno@clisp.org>
64056         posix_spawn*, getdtablesize: Relax license.
64057         * modules/posix_spawn (License): Change to LGPLv2+.
64058         * modules/posix_spawnp (License): Likewise.
64059         * modules/posix_spawn-internal (License): Likewise.
64060         * modules/posix_spawnattr_init (License): Likewise.
64061         * modules/posix_spawnattr_getflags (License): Likewise.
64062         * modules/posix_spawnattr_setflags (License): Likewise.
64063         * modules/posix_spawnattr_getpgroup (License): Likewise.
64064         * modules/posix_spawnattr_setpgroup (License): Likewise.
64065         * modules/posix_spawnattr_getschedparam (License): Likewise.
64066         * modules/posix_spawnattr_setschedparam (License): Likewise.
64067         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
64068         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
64069         * modules/posix_spawnattr_getsigdefault (License): Likewise.
64070         * modules/posix_spawnattr_setsigdefault (License): Likewise.
64071         * modules/posix_spawnattr_getsigmask (License): Likewise.
64072         * modules/posix_spawnattr_setsigmask (License): Likewise.
64073         * modules/posix_spawnattr_destroy (License): Likewise.
64074         * modules/posix_spawn_file_actions_init (License): Likewise.
64075         * modules/posix_spawn_file_actions_addclose (License): Likewise.
64076         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
64077         * modules/posix_spawn_file_actions_addopen (License): Likewise.
64078         * modules/posix_spawn_file_actions_destroy (License): Likewise.
64079         * modules/getdtablesize (License): Likewise.
64080         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
64082 2010-10-26  Bruno Haible  <bruno@clisp.org>
64084         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
64085         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
64086         Cygwin and mingw.
64087         Suggested by Eric Blake.
64089 2010-10-26  Bruno Haible  <bruno@clisp.org>
64091         stdio: Work around compilation error due to renameat() on Solaris 10.
64092         * lib/stdio.in.h: Include <unistd.h> on Solaris.
64093         * lib/renameat.c: Don't include <unistd.h> here.
64094         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
64095         Reported by Paul Eggert and Eric Blake.
64097 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
64099         renameat: port to Solaris 10, which declares renameat in unistd.h
64101         * lib/renameat.c: Include unistd.h before stdio.h, because
64102         Solaris 10 declares renameat in unistd.h.  Problem encountered
64103         when building GNU tar 1.24 on Solaris 10.
64105 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
64107         fdopendir: fix C89 compilation
64108         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
64109         compilers.
64111 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
64113         inttostr: simplify by removing unnecessary redundancy
64114         * lib/anytostr.c: Don't include verify.h.
64115         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
64116         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
64117         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
64118         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
64119         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
64120         Likewise.
64121         * modules/inttostr (Depends-on): Remove 'verify'.
64123 2010-10-23  Bruno Haible  <bruno@clisp.org>
64125         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
64126         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
64127         Reported by Eric Blake.
64129 2010-10-23  Bruno Haible  <bruno@clisp.org>
64131         Tests: Fix LOCALE_JA on MirBSD 10.
64132         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
64133         to an UTF-8 locale.
64134         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
64135         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
64136         Reported by Eric Blake.
64138 2010-10-21  Bruno Haible  <bruno@clisp.org>
64140         nl_langinfo test: Avoid test failure on NetBSD 5.
64141         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
64142         Reported by Eric Blake.
64144 2010-10-21  Eric Blake  <eblake@redhat.com>
64146         c-stack: work around libsigsegv 2.8 bug
64147         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
64148         overflow on at least PowerPC64.
64150 2010-10-17  Bruno Haible  <bruno@clisp.org>
64152         userspec: Drop redundant file.
64153         * modules/userspec (Files): Remove lib/inttostr.h.
64155 2010-10-17  Bruno Haible  <bruno@clisp.org>
64157         nl_langinfo tests: Silence some warnings.
64158         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
64159         Reported by Jim Meyering.
64161 2010-10-17  Bruno Haible  <bruno@clisp.org>
64163         Make use of GCC's attribute __alloc_size__.
64164         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
64165         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
64166         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
64167         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
64168         __alloc_size__.
64169         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
64170         Suggested by Jim Meyering.
64172 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
64174         bootstrap: anchor .gitignore entries.
64175         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
64176         with...
64177         (insert_vc_ignore): ... this new function, which prepends `/' to
64178         all .gitignore entries before passing them to
64179         insert_sorted_if_absent.
64181 2010-10-16  Bruno Haible  <bruno@clisp.org>
64183         nextafter: Fix configure check.
64184         * modules/nextafter (configure.ac): Correct expected prototype.
64186 2010-10-16  Bruno Haible  <bruno@clisp.org>
64188         termios: Update documentation.
64189         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
64191 2010-10-16  Bruno Haible  <bruno@clisp.org>
64193         tests: Make them compile with TinyCC.
64194         * tests/test-strstr.c (main): Remove parentheses around array
64195         initializer.
64197 2010-10-15  Eric Blake  <eblake@redhat.com>
64199         ignore-value: make header idempotent
64200         * lib/ignore-value.h: Add double-inclusion guards.
64201         Reported by Stefan Berger.
64203 2010-10-15  Jim Meyering  <meyering@redhat.com>
64205         GNUmakefile: handle "stable" target, not "major"
64206         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
64207         lists in maint.mk and announce-gen.  Without this, "make stable"
64208         would fail to ensure that $(VERSION) is up to date.
64210 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
64212         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
64213         & co.
64215 2010-10-14  Bruno Haible  <bruno@clisp.org>
64217         vasnprintf: Don't set errno to 0.
64218         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
64219         block that sets it to 0.
64220         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
64222 2010-10-14  Bruno Haible  <bruno@clisp.org>
64224         socketlib: Fix.
64225         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
64226         gl_PREREQ_SYS_H_WINSOCK2.
64227         Reported by Ian Beckwith <ianb@erislabs.net>.
64229 2010-10-13  Jim Meyering  <meyering@redhat.com>
64231         test-select-stdin.c: avoid warn_unused_result warnings
64232         * tests/test-select-stdin.c: Include "macros.h".
64233         ASSERT that read and fflush succeed.
64235 2010-10-13  Jim Meyering  <meyering@redhat.com>
64237         git-version-gen: do require git-VC'd files in cwd
64238         * build-aux/git-version-gen: Reject a git version string
64239         if there are no commits associated with the current directory.
64240         This avoids an unlikely false-positive (unrelated dir whose parent
64241         repository also contains a tag matching v*), as pointed out
64242         by Giuseppe Scrivano in
64243         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
64245 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
64247         argv-iter: omit nonconforming declaration
64248         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
64249         enum arg_iter_err declaration, which doesn't conform to C99.
64250         Solaris 10 cc warns about this.
64252 2010-10-13  Eric Blake  <eblake@redhat.com>
64254         termios: fix compilation on mingw
64255         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
64256         (gl_TERMIOS_H): Adjust it on mingw.
64257         * modules/termios (Makefile.am): Substitute new key.
64258         * lib/termios.in.h (includes): Make include_next conditional.
64259         * doc/posix-headers/termios.texi (termios.h): Update
64260         documentation.
64261         Reported by Daniel P. Berrange.
64263 2010-10-13  Jim Meyering  <meyering@redhat.com>
64265         git-version-gen: don't require that .git/ be in the current dir
64266         * build-aux/git-version-gen: Adjust this script so that it works
64267         when run from any working directory beneath the top-level .git/-
64268         containing directory.  Inspired by a patch from Giuseppe Scrivano,
64269         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
64271         test-select: avoid warn_unused_result warnings
64272         * tests/test-select.c: Include "macros.h".
64273         ASSERT that each call to read, write, and pipe succeeds.
64274         While not technically required, also check each "close".
64275         * modules/select-tests (Files): Add tests/macros.h.
64277         test-symlinkat: remove declaration of unused local
64278         * tests/test-symlinkat.c (main): Remove unused local, "buf".
64280         test-inttostr: avoid shadowing warnings
64281         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
64282         and use malloc rather than the stack for the same reason as
64283         mentioned in the comment justifying the other allocation.
64285 2010-10-11  Bruno Haible  <bruno@clisp.org>
64287         stdlib: Allow multiple gnulib generated replacements to coexist.
64288         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
64289         Reported by Sam Steingold <sds@gnu.org>.
64291 2010-10-11  Jim Meyering  <meyering@redhat.com>
64293         fix a documentation typo
64294         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
64296 2010-10-11  Eric Blake  <eblake@redhat.com>
64298         futimens: work around Solaris 11 bug
64299         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
64300         * tests/test-futimens.h (test_futimens): Enhance, rather than
64301         weaken test.
64302         * doc/posix-functions/futimens.texi (futimens): Document the bug.
64304 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
64306         Indentation.
64307         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
64308         higher-level operators more to the left.
64310 2010-10-11  Jim Meyering  <meyering@redhat.com>
64312         test-futimens: avoid unwarranted test failure on Solaris 5.11
64313         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
64314         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
64315         because it tries to dereference the NULL name argument.
64317 2010-10-11  Bruno Haible  <bruno@clisp.org>
64319         Indentation.
64320         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
64321         indentation.
64323 2010-10-11  Jim Meyering  <meyering@redhat.com>
64325         spawn.in.h: make indentation consistent with parentheses
64326         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
64327         Make indentation consistent with parentheses.
64329 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
64331         Fix mismatched parens in previous commit
64332         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
64333         parens.
64335 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
64337         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
64339         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
64340         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
64341         * lib/malloca.c: Include "verify.h".
64342         (verify1): Remove, replacing with a verify call.
64343         * lib/relocwrapper.c (verify1): Likewise.
64344         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
64345         Likewise.
64346         * modules/malloca (Depends-on): Add 'verify'.
64347         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
64348         * modules/vasnprintf (Depends-on): Add 'verify'.
64349         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
64350         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
64351         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
64352         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
64353         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
64354         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
64355         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
64357         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
64359         Formerly the style was sometimes 2*X - 1, because the C standard
64360         was wrongly thought to disallow ?: in integral constant expressions.
64361         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
64362         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
64363         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
64364         * lib/stdint.in.h (_verify_intmax_size): Likewise.
64365         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
64366         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
64367         verify that time_t cannot be floating.
64369 2010-10-08  Eric Blake  <eblake@redhat.com>
64371         time: enforce recent POSIX ruling that time_t is integral
64372         * lib/time.in.h (__time_t_must_be_integral): Detect any
64373         problematic systems, allowing the rest of gnulib to assume POSIX.
64375 2010-10-08  Jim Meyering  <meyering@redhat.com>
64377         fdopendir: fix a bug on systems lacking openat and /proc support
64378         OpenBSD 4.7 is one such system.  The most noticeable effect was
64379         failure of any application making nontrivial use of fts: rm, du,
64380         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
64381           ./rm: traversal failed: `a': Bad file descriptor
64382         Debugging that, you see that even though FD 6 was closed just
64383         prior to the opendir call in fd_clone_opendir, its resulting
64384         dir->dd_fd was 8, rather than the expected value of 6:
64386         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
64387         93                close (fd);
64388         (gdb) n
64389         94                dir = fd_clone_opendir (dupfd);
64390         (gdb) n
64391         95                saved_errno = errno;
64392         (gdb) p dir->dd_fd
64393         $11 = 8
64395         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
64396         The problem is that on OpenBSD, fd_clone_opendir has to resort
64397         to using the old-style save/restore CWD mechanism, due to its
64398         lack of openat/proc support, and *that* would steal the FD (6)
64399         that opendir was supposed to use.
64401         The fix is to squirrel away the desired FD so that save_cwd uses a
64402         different one, and then free the dest FD right before calling opendir.
64403         That guarantees opendir will use the required file descriptor.
64405         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
64407 2010-10-08  Bruno Haible  <bruno@clisp.org>
64409         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
64410         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
64412 2010-10-08  Bruno Haible  <bruno@clisp.org>
64414         nanosleep: Make replacement POSIX compliant.
64415         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
64416         is out of range.
64417         Reported by Jim Meyering.
64419 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
64421         bootstrap: add hook for altering gnulib.mk, for Bison
64422         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
64423         the Bison bootstrapping process can rewrite file names and variables
64424         in this file before later parts of 'bootstrap' use the file.
64425         Bison wants to include lib/gnulib.mk from the top-level makefile,
64426         so it needs the file names in this file to be relative to the top
64427         level, not relative to lib; plus it needs variable names to be
64428         rewritten.
64429         (slurp): Use the new function.
64431         bootstrap: reformat for readability
64432         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
64434 2010-10-08  Eric Blake  <eblake@redhat.com>
64436         docs: update cygwin progress
64437         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
64438         1.7.7.
64439         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
64440         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
64441         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
64442         * doc/posix-functions/carg.texi (carg): Likewise.
64443         * doc/posix-functions/cargf.texi (cargf): Likewise.
64444         * doc/posix-functions/casin.texi (casin): Likewise.
64445         * doc/posix-functions/casinf.texi (casinf): Likewise.
64446         * doc/posix-functions/casinh.texi (casinh): Likewise.
64447         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
64448         * doc/posix-functions/catan.texi (catan): Likewise.
64449         * doc/posix-functions/catanf.texi (catanf): Likewise.
64450         * doc/posix-functions/catanh.texi (catanh): Likewise.
64451         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
64452         * doc/posix-functions/ccos.texi (ccos): Likewise.
64453         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
64454         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
64455         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
64456         * doc/posix-functions/cexp.texi (cexp): Likewise.
64457         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
64458         * doc/posix-functions/cimag.texi (cimag): Likewise.
64459         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
64460         * doc/posix-functions/clog.texi (clog): Likewise.
64461         * doc/posix-functions/clogf.texi (clogf): Likewise.
64462         * doc/posix-functions/conj.texi (conj): Likewise.
64463         * doc/posix-functions/conjf.texi (conjf): Likewise.
64464         * doc/posix-functions/cpow.texi (cpow): Likewise.
64465         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
64466         * doc/posix-functions/cproj.texi (cproj): Likewise.
64467         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
64468         * doc/posix-functions/creal.texi (creal): Likewise.
64469         * doc/posix-functions/crealf.texi (crealf): Likewise.
64470         * doc/posix-functions/csin.texi (csin): Likewise.
64471         * doc/posix-functions/csinf.texi (csinf): Likewise.
64472         * doc/posix-functions/csinh.texi (csinh): Likewise.
64473         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
64474         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
64475         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
64476         * doc/posix-functions/ctan.texi (ctan): Likewise.
64477         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
64478         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
64479         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
64480         * doc/posix-headers/complex.texi (complex.h): Likewise.
64482 2010-10-07  Jim Meyering  <meyering@redhat.com>
64484         parse-datetime: avoid compilation failure on OpenBSD 4.7
64485         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
64486         This works around a compilation failure on OpenBSD 4.7:
64487         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
64489 2010-10-07  Eric Blake  <eblake@redhat.com>
64491         docs: update cygwin progress
64492         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
64493         1.7.6.
64494         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
64495         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
64496         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
64497         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
64498         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
64499         Likewise.
64500         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
64501         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
64502         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
64503         Likewise.
64504         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
64505         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
64506         Likewise.
64507         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
64508         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
64509         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
64510         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
64511         Likewise.
64512         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
64513         Likewise.
64514         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
64516         docs: update parse-datetime history
64517         * doc/parse-datetime.texi (Authors of parse_datetime): Better
64518         documentation of this function's history and alternatives.
64520         cygwin: use more robust version check
64521         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
64522         exclude an eventual cygwin 1.9.1.
64523         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64524         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64525         (gl_FUNC_STRCASESTR): Likewise.
64526         Reported by Bruno Haible.
64528 2010-10-06  Bruno Haible  <bruno@clisp.org>
64530         string, sys_select: Avoid #including large headers unless necessary.
64531         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
64532         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
64533         OSF/1, BeOS, Haiku.
64534         Reported by Jim Meyering.
64536 2010-10-05  Eric Blake  <eblake@redhat.com>
64538         memmem, strstr, strcasestr: fix bug with long periodic needle
64539         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
64540         periodic needle having false positive.
64541         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
64542         and cygwin 1.7.7.
64543         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
64544         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
64545         (gl_FUNC_STRCASESTR): Likewise.
64546         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
64547         * tests/test-memmem.c (main): Expose the bug.
64548         * tests/test-strcasestr.c (main): Likewise.
64549         * tests/test-strstr.c (main): Likewise.
64550         * tests/test-c-strcasestr.c (main): Likewise.
64551         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
64552         * doc/posix-functions/strstr.texi (strstr): Likewise.
64553         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
64554         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
64556 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64558         parse-datetime: do some more renaming
64559         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
64560         parse_datetime, not get_date.  Mention the renaming.
64561         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
64562         in comments.
64563         * m4/bison.m4: Likewise.
64565 2010-10-05  Eric Blake  <eblake@redhat.com>
64567         parse-datetime: better name than get_date
64568         * NEWS: Reword the deprecation notice.
64569         * modules/get_date: Rename to modules/parse-datetime.
64570         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
64571         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
64572         * lib/get_date.y: Rename to lib/parse-datetime.y.
64573         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
64574         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
64575         * doc/getdate.texi: Provide fallback wrapper.
64576         * lib/getdate.h: Move guts, and wrap...
64577         * lib/parse-datetime.h: ...new file.
64578         * lib/parse-datetime.y (get_date): Rename...
64579         (parse_datetime): ...to this.
64580         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
64581         (gl_PARSE_DATETIME): ...to this.
64582         * doc/posix-functions/getdate.texi (get_date): Provide fallback
64583         documentation.
64584         * modules/getdate (Files): Provide fallback docs and header.
64585         (Notice, Depends-on): Update references.
64586         * tests/test-parse-datetime.c: Likewise.
64587         * DEPENDENCIES: Likewise.
64588         * MODULES.html.sh (Date and time <time.h>): Likewise.
64589         * doc/parse-datetime.texi (Date input formats)
64590         (Authors of parse_datetime): Likewise.
64591         * modules/parse-datetime (Files, configure.ac, Makefile.am)
64592         (Include): Likewise.
64593         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
64594         * gnulib-tool: Likewise.
64595         * m4/bison.m4 (gl_BISON): Likewise.
64596         Suggested by Bruno Haible.
64598 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
64600         more ports to Solaris tr, which needs [] around ranges
64601         * gnulib-tool: Solaris tr needs [] around ranges.
64602         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
64603         * tests/test-pipe-filter-gi1.c (main): Likewise.
64604         * tests/test-pipe-filter-ii1.c (main): Likewise.
64606 2010-10-05  Eric Blake  <eblake@redhat.com>
64608         bootstrap: fix Solaris regression
64609         * build-aux/bootstrap (check_versions): Solaris tr still needs []
64610         around ranges.
64611         Reported by Pádraig Brady.
64613         bootstrap: work with pkg-config
64614         * build-aux/bootstrap (check_versions): Also transliterate - in
64615         prerequisite name.
64616         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
64617         prerequisites that were already found, to avoid confusion.
64618         Reported by Justin Clift.
64620         faccessat: remove unused wrappers
64621         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
64622         presence of these wrappers dragged in -lgen on Solaris.
64623         Reported by Clemens Brogi; fix suggested by Paul Eggert.
64625 2010-10-05  Jim Meyering  <meyering@redhat.com>
64627         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
64628         * Makefile (sc_pragma_columns): New syntax-check rule.
64630 2010-10-04  Bruno Haible  <bruno@clisp.org>
64632         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
64633         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
64634         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
64635         Reported by Bruce Korb and Eric Blake.
64637 2010-10-04  Bruno Haible  <bruno@clisp.org>
64639         threadlib: Make option --with-libpth-prefix work.
64640         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
64641         use $LIBPTH, not just -lpth.
64643 2010-10-04  Bruno Haible  <bruno@clisp.org>
64645         Avoid line length limitation from HP NonStop system header files.
64646         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
64647         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
64648         * lib/ctype.in.h: Likewise.
64649         * lib/dirent.in.h: Likewise.
64650         * lib/errno.in.h: Likewise.
64651         * lib/fcntl.in.h: Likewise.
64652         * lib/float.in.h: Likewise.
64653         * lib/getopt.in.h: Likewise.
64654         * lib/iconv.in.h: Likewise.
64655         * lib/inttypes.in.h: Likewise.
64656         * lib/langinfo.in.h: Likewise.
64657         * lib/locale.in.h: Likewise.
64658         * lib/math.in.h: Likewise.
64659         * lib/netdb.in.h: Likewise.
64660         * lib/netinet_in.in.h: Likewise.
64661         * lib/poll.in.h: Likewise.
64662         * lib/pthread.in.h: Likewise.
64663         * lib/pty.in.h: Likewise.
64664         * lib/sched.in.h: Likewise.
64665         * lib/se-selinux.in.h: Likewise.
64666         * lib/search.in.h: Likewise.
64667         * lib/signal.in.h: Likewise.
64668         * lib/spawn.in.h: Likewise.
64669         * lib/stdarg.in.h: Likewise.
64670         * lib/stddef.in.h: Likewise.
64671         * lib/stdint.in.h: Likewise.
64672         * lib/stdio.in.h: Likewise.
64673         * lib/stdlib.in.h: Likewise.
64674         * lib/string.in.h: Likewise.
64675         * lib/strings.in.h: Likewise.
64676         * lib/sys_file.in.h: Likewise.
64677         * lib/sys_ioctl.in.h: Likewise.
64678         * lib/sys_select.in.h: Likewise.
64679         * lib/sys_socket.in.h: Likewise.
64680         * lib/sys_stat.in.h: Likewise.
64681         * lib/sys_time.in.h: Likewise.
64682         * lib/sys_times.in.h: Likewise.
64683         * lib/sys_utsname.in.h: Likewise.
64684         * lib/sys_wait.in.h: Likewise.
64685         * lib/sysexits.in.h: Likewise.
64686         * lib/termios.in.h: Likewise.
64687         * lib/time.in.h: Likewise.
64688         * lib/unistd.in.h: Likewise.
64689         * lib/wchar.in.h: Likewise.
64690         * lib/wctype.in.h: Likewise.
64691         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
64692         * modules/ctype (Makefile.am): Likewise.
64693         * modules/dirent (Makefile.am): Likewise.
64694         * modules/errno (Makefile.am): Likewise.
64695         * modules/fcntl-h (Makefile.am): Likewise.
64696         * modules/float (Makefile.am): Likewise.
64697         * modules/getopt-posix (Makefile.am): Likewise.
64698         * modules/iconv-h (Makefile.am): Likewise.
64699         * modules/inttypes (Makefile.am): Likewise.
64700         * modules/langinfo (Makefile.am): Likewise.
64701         * modules/locale (Makefile.am): Likewise.
64702         * modules/math (Makefile.am): Likewise.
64703         * modules/netdb (Makefile.am): Likewise.
64704         * modules/netinet_in (Makefile.am): Likewise.
64705         * modules/poll-h (Makefile.am): Likewise.
64706         * modules/pthread (Makefile.am): Likewise.
64707         * modules/pty (Makefile.am): Likewise.
64708         * modules/sched (Makefile.am): Likewise.
64709         * modules/search (Makefile.am): Likewise.
64710         * modules/selinux-h (Makefile.am): Likewise.
64711         * modules/signal (Makefile.am): Likewise.
64712         * modules/spawn (Makefile.am): Likewise.
64713         * modules/stdarg (Makefile.am): Likewise.
64714         * modules/stddef (Makefile.am): Likewise.
64715         * modules/stdint (Makefile.am): Likewise.
64716         * modules/stdio (Makefile.am): Likewise.
64717         * modules/stdlib (Makefile.am): Likewise.
64718         * modules/string (Makefile.am): Likewise.
64719         * modules/strings (Makefile.am): Likewise.
64720         * modules/sys_file (Makefile.am): Likewise.
64721         * modules/sys_ioctl (Makefile.am): Likewise.
64722         * modules/sys_select (Makefile.am): Likewise.
64723         * modules/sys_socket (Makefile.am): Likewise.
64724         * modules/sys_stat (Makefile.am): Likewise.
64725         * modules/sys_time (Makefile.am): Likewise.
64726         * modules/sys_times (Makefile.am): Likewise.
64727         * modules/sys_utsname (Makefile.am): Likewise.
64728         * modules/sys_wait (Makefile.am): Likewise.
64729         * modules/sysexits (Makefile.am): Likewise.
64730         * modules/termios (Makefile.am): Likewise.
64731         * modules/time (Makefile.am): Likewise.
64732         * modules/unistd (Makefile.am): Likewise.
64733         * modules/wchar (Makefile.am): Likewise.
64734         * modules/wctype (Makefile.am): Likewise.
64736 2010-10-04  Bruno Haible  <bruno@clisp.org>
64738         read-file tests: Avoid a test failure on NonStop Kernel.
64739         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
64740         a regular file.
64741         Reported by Joachim Schmitz <schmitz@hp.com>.
64743 2010-10-03  Bruno Haible  <bruno@clisp.org>
64745         gnulib-tool: Fixes for --create-testdir with --libtool.
64746         * gnulib-tool (func_get_automake_snippet): Don't augment
64747         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
64748         an executable.
64749         (func_create_testdir): Handle module 'alloca' like func_import.
64750         Reported by Bruce Korb <bruce.korb@gmail.com>.
64752 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
64754         Avoid some lines longer than 80 characters.
64755         * lib/stdint.in.h: Break long comment lines.
64756         * lib/math.in.h: Likewise.
64757         (_GL_NUM_UINT_WORDS): New macro, for readability.
64758         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
64759         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
64760         * lib/stdlib.in.h: Likewise.
64761         * lib/spawn.in.h: Likewise.
64762         * lib/sys_socket.in.h: Update an URL.
64763         * lib/sys_stat.in.h: Break long line.
64765 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
64767         Improve pmccabe2html.
64768         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
64769         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
64770         when the sources change. Remove the line in the HTML about "Used
64771         ranges" (which implied that there might be other unused ranges),
64772         rename "Resume" to "Summary" (easier to understand for more users).
64773         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
64774         styles, and some unnecessary blank lines.
64776 2010-10-03  Bruno Haible  <bruno@clisp.org>
64777             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
64779         acl: Add support for ACLs on NonStop Kernel.
64780         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
64781         Check whether the function aclsort() exists.
64782         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
64783         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
64784         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64785         (acl_nontrivial [HAVE_ACLSORT]: New function.
64786         (file_has_acl): Implement for NonStop Kernel.
64787         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64788         (qset_acl): Implement for NonStop Kernel.
64789         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
64790         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
64791         (main): Implement for NonStop Kernel.
64792         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
64793         Kernel. Handle this flavor.
64794         * tests/test-set-mode-acl.sh: Likewise.
64795         * tests/test-copy-acl.sh: Likewise.
64796         * tests/test-copy-file.sh: Likewise.
64798 2010-10-03  Bruno Haible  <bruno@clisp.org>
64800         Info about ACLs on NonStop Kernel.
64801         * doc/acl-resources.txt: Add info about NonStop Kernel.
64802         References by Joachim Schmitz <schmitz@hp.com>.
64804 2010-10-02  Bruno Haible  <bruno@clisp.org>
64806         Define missing EDQUOT on NonStop Kernel.
64807         * lib/errno.in.h (EDQUOT): Assign a value if missing.
64808         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
64809         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
64810         missing.
64811         * doc/posix-headers/errno.texi: Mention the NSK bug.
64812         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
64813         Reported by Joachim Schmitz <schmitz@hp.com>.
64815 2010-10-02  Bruno Haible  <bruno@clisp.org>
64817         Update doc for POSIX:2008.
64818         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
64819         Update URL of POSIX specification.
64821 2010-10-02  Bruno Haible  <bruno@clisp.org>
64823         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
64824         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
64825         from gnulib, not from Automake.
64827 2010-10-02  Bruno Haible  <bruno@clisp.org>
64829         New module 'system-posix'.
64830         * modules/system-posix: New file.
64831         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
64832         module is present.
64833         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64834         GNULIB_SYSTEM_POSIX.
64835         * modules/stdlib (Depends-on): Remove sys_wait.
64836         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
64837         * doc/posix-functions/system.texi: Mention the new module.
64838         * doc/posix-headers/stdlib.texi: Likewise.
64839         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
64840         define test_sys_wait_macros to a no-op.
64841         Reported by Sam Steingold <sds@gnu.org>.
64843 2010-09-30  Bruno Haible  <bruno@clisp.org>
64845         More renaming from 'getdate' to 'get_date'.
64846         * doc/get_date.texi: Renamed from doc/getdate.texi.
64847         * modules/get_date (Files): Update.
64848         * MODULES.html.sh (Date and time <time.h>): Update.
64849         * DEPENDENCIES: Update.
64850         * gnulib-tool: Update comment.
64851         * m4/bison.m4 (gl_BISON): Likewise.
64852         * m4/get_date.m4 (gl_GET_DATE): Likewise.
64854 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
64856         bootstrap: support ACLOCAL_FLAGS during aclocal
64857         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
64858         can add additional -I dir for third-party .m4 files.
64860 2010-09-30  Eric Blake  <eblake@redhat.com>
64862         bootstrap: use glibtoolize on MacOS
64863         * build-aux/bootstrap (check_versions): Convert libtool into
64864         libtoolize.
64865         (tool search): Move libtool check earlier, and look for
64866         glibtoolize for MacOS.
64867         (gnulib_tool_options): Auto-add --libtool when appropriate.
64868         Reported by Justin Clift.
64870         poll: fix typo that broke test on MacOS
64871         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
64872         Reported by Justin Clift.
64874         getdate: rename to get_date
64875         Note: getdate.h is not renamed, to minimize client impact.
64876         * modules/getdate: Mark obsolete.  Move old contents...
64877         * modules/get_date: ...to new module name.
64878         * modules/getdate-tests: Move...
64879         * modules/get_date-tests: ...here.
64880         * m4/getdate.m4: Move...
64881         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
64882         * lib/getdate.y: Move...
64883         * lib/get_date.y: ...here.
64884         * tests/test-getdate.c: Move...
64885         * tests/test-get_date.c: ...here.
64886         * doc/posix-functions/getdate.texi (getdate): Update name.
64887         * NEWS: Mention the change.
64889 2010-09-29  Bruno Haible  <bruno@clisp.org>
64891         Separate the module 'waitpid' from the module 'sys_wait'.
64892         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
64893         present.
64894         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
64895         gl_MODULE_INDICATOR_FOR_TESTS.
64896         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
64897         * modules/sys_wait (Depends-on): Remove waitpid.
64898         (Makefile.am): Substitute GNULIB_WAITPID.
64899         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
64900         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
64901         signature only if the 'waitpid' module is present.
64902         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
64903         * NEWS: Mention the change.
64904         * modules/grantpt (Depends-on): Add waitpid.
64905         * modules/wait-process (Depends-on): Likewise.
64907 2010-09-29  Bruno Haible  <bruno@clisp.org>
64909         More tests for module 'sys_wait'.
64910         * modules/sys_wait-c++-tests: New file.
64911         * tests/test-sys_wait-c++.cc: New file.
64912         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
64913         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64915 2010-09-29  Bruno Haible  <bruno@clisp.org>
64917         New module 'waitpid'.
64918         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
64919         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
64920         Don't include <process.h>.
64921         (waitpid): Declare only, using modern idiom.
64922         * m4/waitpid.m4: New file.
64923         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
64924         * modules/waitpid: New file.
64925         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
64926         (Makefile.am): Update.
64927         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
64929 2010-09-28  Bruno Haible  <bruno@clisp.org>
64931         poll: Assume ANSI C.
64932         * lib/poll.c (poll): Use an ANSI C declaration.
64934 2010-09-28  Bruno Haible  <bruno@clisp.org>
64936         poll-h: Create poll.h on all platforms.
64937         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
64938         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
64939         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
64940         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
64941         (gl_REPLACE_POLL_H): Don't set POLL_H.
64942         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
64943         * modules/poll-h (Depends-on): Add include_next.
64944         (Makefile.am): Create poll.h unconditionally. Substitute also
64945         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
64947 2010-09-28  Bruno Haible  <bruno@clisp.org>
64949         Tests for module 'poll-h'.
64950         * modules/poll-h-c++-tests: New file.
64951         * tests/test-poll-h-c++.cc: New file.
64953         Tests for module 'poll-h'.
64954         * modules/poll-h-tests: New file.
64955         * tests/test-poll-h.c: New file.
64957 2010-09-28  Bruno Haible  <bruno@clisp.org>
64959         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
64960         * modules/poll-h (Depends-on): Add 'extensions'.
64962 2010-09-28  Bruno Haible  <bruno@clisp.org>
64964         New module 'poll-h'.
64965         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
64966         (poll): Use modern idiom.
64967         * modules/poll-h: New file.
64968         * modules/poll (Files): Remove lib/poll.in.h.
64969         (Depends-on): Add poll-h.
64970         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
64971         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
64972         * m4/poll_h.m4: New file.
64973         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
64974         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
64975         and invoke gl_REPLACE_POLL_H.
64976         * lib/poll.c: Use common idiom.
64977         * tests/test-poll.c: Likewise.
64978         * doc/posix-headers/poll.texi: Mention the poll-h module.
64979         Suggested by Eric Blake.
64981 2010-09-26  Bruno Haible  <bruno@clisp.org>
64983         sys_wait: Implement WSTOPSIG.
64984         * lib/sys_wait.in.h (WSTOPSIG): New macro.
64985         Reported by Simon Josefsson.
64987 2010-09-26  Simon Josefsson  <simon@josefsson.org>
64989         stdlib, sys_wait: Avoid compilation error on mingw.
64990         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
64992 2010-09-26  Bruno Haible  <bruno@clisp.org>
64994         stdlib tests: Avoid code duplication.
64995         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
64996         * modules/sys_wait-tests (Files): Likewise.
64997         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
64998         * tests/test-stdlib.c: Include test-sys_wait.h.
64999         (main): Invoke test_sys_wait_macros.
65000         * tests/test-sys_wait.c: Include test-sys_wait.h.
65001         (main): Invoke test_sys_wait_macros.
65003 2010-09-25  Simon Josefsson  <simon@josefsson.org>
65005         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
65006         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
65007         sure Windows sockets are working before calling getaddrinfo.
65008         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
65009         * doc/gnulib.texi (Windows sockets): Fix typo.
65011 2010-09-25  Bruno Haible  <bruno@clisp.org>
65013         Tests for module 'regex-quote'.
65014         * modules/regex-quote-tests: New file.
65015         * tests/test-regex-quote.c: New file.
65017         New module 'regex-quote'.
65018         * lib/regex-quote.h: New file.
65019         * lib/regex-quote.c: New file.
65020         * modules/regex-quote: New file.
65021         Suggested by Reuben Thomas <rrt@sc3d.org>.
65023 2010-09-24  Bruno Haible  <bruno@clisp.org>
65025         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
65026         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
65028 2010-09-23  Bruno Haible  <bruno@clisp.org>
65030         setenv: Relax license.
65031         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
65032         Blake.
65033         Requested by Eric Blake.
65035 2010-09-22  Bruno Haible  <bruno@clisp.org>
65037         termios: Relax license.
65038         * modules/termios (License): Change to LGPLv2+.
65039         Requested by Eric Blake.
65041 2010-09-22  Bruno Haible  <bruno@clisp.org>
65043         threadlib: Allow the package to change the default to 'no'.
65044         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
65045         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
65046         Reported by Paul Eggert.
65048 2010-09-22  Pádraig Brady  <P@draigbrady.com>
65049             Bruno Haible  <bruno@clisp.org>
65051         Fix endless loop in mbmemcasecoll.
65052         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
65053         byte.
65054         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
65056 2010-09-22  Bruno Haible  <bruno@clisp.org>
65058         Tests for module 'memcoll'.
65059         * modules/memcoll-tests: New file.
65060         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
65062         memcoll, xmemcoll: Clarify size vs. length.
65063         * modules/memcoll.c (memcoll0): Clarify specification.
65064         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
65065         passed to collate_error.
65067 2010-09-22  Bruno Haible  <bruno@clisp.org>
65069         Tests for module 'memcasecmp'.
65070         * modules/memcasecmp-tests: New file.
65071         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
65073 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
65075         * lib/pthread.in.h: Add split double-inclusion guard, and include
65076         system <pthread.h> if there is one.  Use @@-style as in other
65077         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
65078         pthread.h doesn't.
65079         (pthread_mutexattr_destroy, pthread_mutexattr_init):
65080         (pthread_mutexattr_settype, pthread_mutex_trylock):
65081         New static inline functions, if there's no system <pthread.h>.
65082         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
65083         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
65084         Approximate with mutexes if the system lacks spinlocks, as in
65085         MacOS.
65086         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
65087         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
65088         @@-style.  Check for spinlocks separately.
65089         (gl_PTHREAD_DEFAULTS): New macro.
65090         * modules/pthread: Redo to use a more typical style for in.h files.
65092 2010-09-21  Eric Blake  <eblake@redhat.com>
65094         net_if: enhance tests
65095         * tests/test-net_if.c (main): Move signature checks earlier.
65096         Print failures to stderr.
65097         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
65098         Document the bug that we do not yet fix.
65100 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65102         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
65103         about gnulib, not GSS.
65105 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
65107         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
65108         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
65109         for Emacs.
65110         * build-aux/pmccabe2html: Make Makefile.am example code more
65111         cut-and-paste friendly.
65113 2010-09-21  Simon Josefsson  <simon@josefsson.org>
65115         * tests/test-net_if.c: New file.
65116         * modules/net_if-tests: New file.
65118 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
65120         pthread: add pthread_spin_destroy
65121         * lib/pthread.in.h (pthread_spin_destroy): New function.
65123 2010-09-19  Bruno Haible  <bruno@clisp.org>
65125         gnulib-tool: Fix --help output.
65126         * gnulib-tool (func_usage): Fix help message.
65127         Reported by Reuben Thomas <rrt@sc3d.org>.
65129 2010-09-18  Jim Meyering  <meyering@redhat.com>
65131         maint.mk: avoid unexpanded \n in two diagnostics
65132         * top/maint.mk (sc_prohibit_always_true_header_tests):
65133         Don't use a literal \n in a halt=... assignment.  It would not be
65134         expanded, and the two \n bytes would appear in the diagnostic output
65135         rather than the desired newline.  Use halt=$$(printf ... instead.
65136         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
65138 2010-09-18  Bruno Haible  <bruno@clisp.org>
65140         netinet_in: Doc tweak.
65141         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
65142         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65144 2010-09-18  Jim Meyering  <meyering@redhat.com>
65146         init.sh: correct an outdated comment
65147         * tests/init.sh (create_exe_shims_):  s/function/alias/
65149         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
65150         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
65151         a file named "*.exe" is removed between the glob expansion and the
65152         processing of that oddly named file.
65154 2010-09-17  Eric Blake  <eblake@redhat.com>
65156         mirbsd: add some more support
65157         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
65158         in BSD family.
65159         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
65160         devices as OpenBSD.
65161         * m4/host-os.m4 (mirbsd): Add MirBSD.
65163         tests: fix unportable assumption on sys/wait.h
65164         * tests/test-sys_wait.c (main): Relax test.
65165         * tests/test-stdlib.c (main): Likewise.
65167         init.sh: accommodate directory with no .exes
65168         * tests/init.sh: Accomodate directory containing only scripts.
65170         tests: avoid compiler warning
65171         * tests/test-stdlib.c (main): Use the variable.
65173         fdutimens, fdutimensat: update signature, again
65174         * lib/utimens.h (gl_futimens): Delete, and move signature...
65175         (fdutimens): ...here.
65176         (fdutimensat): Rearrange signature.
65177         (lutimensat): Rename variable for clarity.
65178         * lib/fdutimensat.c (fdutimensat): Update signature.
65179         * lib/utimens.c (fdutimens): Likewise.
65180         (gl_futimens): Delete.
65181         (utimens, lutimens): Update callers.
65182         * lib/futimens.c (futimens): Likewise.
65183         * tests/test-fdutimensat.c: Likewise.
65184         * tests/test-utimens.c: Likewise.
65185         * tests/test-futimens.h: Update comment.
65186         * NEWS: Mention this.
65187         Suggested by Paul Eggert.
65189 2010-09-17  Bruno Haible  <bruno@clisp.org>
65191         Take over the maintenance of some older macros from Autoconf.
65192         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
65193         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
65194         GNU Autoconf.
65195         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
65196         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
65198 2010-09-17  Eric Blake  <eblake@redhat.com>
65200         fdutimensat: drop atflag validation
65201         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
65202         with valid fd, to close a race scenario where futimens is
65203         unsupported and FILE was replaced by a symlink.
65204         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
65205         accordingly.
65206         Suggested by Paul Eggert.
65208 2010-09-16  Bruno Haible  <bruno@clisp.org>
65210         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
65211         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
65213 2010-09-16  Bruno Haible  <bruno@clisp.org>
65215         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
65216         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
65217         login_tty exists.
65218         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65220 2010-09-16  Bruno Haible  <bruno@clisp.org>
65222         login_tty: Make the replacement code work on BSD systems.
65223         * lib/login_tty.c: Include <sys/ioctl.h>.
65224         (login_tty): Use ioctl TIOCSCTTY when available.
65225         * modules/login_tty (Depends-on): Add sys_ioctl.
65226         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65228 2010-09-16  Bruno Haible  <bruno@clisp.org>
65230         login_tty: Stricter unit test.
65231         * modules/login_tty-tests (Depends-on): Add tcgetsid.
65232         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
65233         and tcgetsid() after login_tty.
65234         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65236 2010-09-16  Bruno Haible  <bruno@clisp.org>
65238         New module 'tcgetsid'.
65239         * lib/tcgetsid.c: New file.
65240         * m4/tcgetsid.m4: New file.
65241         * modules/tcgetsid: New file.
65242         * modules/termios (Depends-on): Add c++defs, warn-on-use.
65243         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
65244         GNULIB_TCGETSID, HAVE_TCGETSID.
65245         * lib/termios.in.h: Include <sys/types.h>.
65246         (tcgetsid): New declaration.
65247         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
65248         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
65249         * doc/posix-functions/tcgetsid.texi: Mention the new module.
65250         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
65252 2010-09-16  Bruno Haible  <bruno@clisp.org>
65254         Tests for module 'termios'.
65255         * modules/termios-c++-tests: New file.
65256         * modules/termios-tests: New file.
65257         * tests/test-termios-c++.cc: New file.
65258         * tests/test-termios.c: New file.
65260         New module 'termios'.
65261         * modules/termios: New file.
65262         * lib/termios.in.h: New file.
65263         * m4/termios_h.m4: New file.
65264         * doc/posix-headers/termios.texi: Mention the new module.
65266 2010-09-16  Eric Blake  <eblake@redhat.com>
65268         fdutimensat: add an atflag parameter
65269         * lib/fdutimensat.c (fdutimensat): Add new parameter.
65270         * lib/utimens.h (fdutimensat): Update prototype.
65271         * tests/test-fdutimensat.c: Adjust test to match.
65272         * NEWS: Document the change.
65273         Suggested by Paul Eggert.
65275 2010-09-16  Bruno Haible  <bruno@clisp.org>
65277         Fix typos in comments.
65278         * lib/striconveh.h: Fix typo in comment.
65279         * lib/login_tty.c (login_tty): Likewise.
65281 2010-09-15  Bruno Haible  <bruno@clisp.org>
65283         stdlib: clarify MirBSD WEXITSTATUS bug
65284         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
65285         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65287 2010-09-15  Eric Blake  <eblake@redhat.com>
65289         stdlib: work around MirBSD WEXITSTATUS bug
65290         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
65291         * modules/stdlib (Depends-on): Add sys_wait.
65292         * tests/test-sys_wait.c (main): Enhance test.
65293         * tests/test-stdlib.c (main): Likewise.
65294         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
65296         docs: mention MacOS issue with WEXITSTATUS(constant)
65297         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
65298         issue.
65299         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
65301         strnlen: add tests
65302         * modules/strnlen-tests: New file.
65303         * tests/test-strnlen.c: Likewise.
65305 2010-09-14  Bruno Haible  <bruno@clisp.org>
65307         unistr/base: Avoid link errors when module 'libunistring' is also used.
65308         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
65309         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
65310         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
65311         Declare also when HAVE_LIBUNISTRING is set.
65312         Reported by Pádraig Brady <P@draigbrady.com>.
65314 2010-09-14  Eric Blake  <eblake@redhat.com>
65316         test-rawmemchr: make more robust
65317         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
65318         (Depends-on, configure.ac): Add needed prerequisites to use it.
65319         * modules/memchr-tests (Files, Depends-on, configure.ac):
65320         Likewise, to avoid implicit reliance on memchr module prereqs.
65321         * tests/test-memchr.c (main): Ensure proper masking.
65322         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
65323         reads.
65325         memchr: detect glibc Alpha bug
65326         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
65327         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
65328         Alpha.
65329         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
65330         * tests/test-memchr.c (main): Enhance test.
65331         Reported by Nelson H. F. Beebe.
65333 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65335         fts, getcwd, glob: audit for dirfd returning -1
65336         * lib/fts.c (opendir): Remove #define; no longer used.
65337         (opendirat): New arg PDIR_FD.  All callers changed.
65338         (fts_build, _opendir2): Use new opendirat to avoid the need for
65339         dirfd, or for checking whether dirfd returns a negative value.
65340         Don't use opendir; always use openat followed by fdopendir.
65341         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
65342         it.
65343         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
65344         returns -1 here.
65345         * modules/fts (Depends-on): Remove dirfd.
65346         * modules/getcwd (Depends-on): Likewise.
65348 2010-09-13  Eric Blake  <eblake@redhat.com>
65350         float: fix broken MirBSD header
65351         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
65352         * doc/posix-headers/float.texi (float.h): Document it.
65354 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
65356         fts: use O_NOFOLLOW to avoid race condition when opening a directory
65357         * lib/fts.c (opendirat): New arg extra_flags.
65358         (__opendir2): Use it to avoid following symlinks when opening
65359         a directory, if symlinks are not supposed to be followed.  See
65360         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00213.html>.
65362         fdopendir: preserve argument fd before returning
65363         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
65364         (fdopendir_with_dup, fd_clone_opendir): New static functions.
65365         (fdopendir): Use them, arranging for FD to be open to the same
65366         directory that it was when it started.  (It might be temporarily
65367         closed while fdopendir is running, so this not thread- or
65368         signal-safe.)  Be careful to do the right thing even when file
65369         descriptors are scarce and dup fails with errno == EMFILE.  See
65370         <http://lists.gnu.org/r/bug-gnulib/2010-09/msg00208.html>.
65372 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
65374         regex: Pass the system regex if its only problem is 32-bit regoff_t.
65375         * NEWS: Document change.
65376         * m4/regex.m4: Disable test for regoff_t size.
65378 2010-09-13  Jim Meyering  <meyering@redhat.com>
65380         fts: don't operate on an invalid file descriptor after failed dup
65381         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
65382         negative file descriptor.
65384 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
65386         savedir: add streamsavedir, deprecate fdsavedir
65387         * NEWS: Mention deprecation of fdsavedir.
65388         * lib/savedir.c (streamsavedir): New extern function, whose name
65389         ends in "savedir" to be consistent with the others.  This differs
65390         from savedirstream in that it doesn't close its argument.  The
65391         next version of GNU tar will use this instead of fdsavedir, to
65392         avoid some race conditions and conserve file descriptors.
65393         (savedirstream): Reimplement as a wrapper around streamsavedir.
65394         (fdsavedir): Add a comment deprecating this function.  As far as
65395         I know, only GNU tar used it, and GNU tar doesn't need it any more.
65396         * lib/savedir.h (streamsavedir): New decl.
65397         (fdsavedir): Add a comment deprecating this.
65399 2010-09-10  Bruno Haible  <bruno@clisp.org>
65401         langinfo: Fix last commit.
65402         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
65403         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
65404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65406 2010-09-10  Bruno Haible  <bruno@clisp.org>
65408         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
65409         * lib/progreloc.c (O_EXEC): Define fallback.
65411 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
65413         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
65414         * NEWS: Document recent changes to fcntl-h.
65415         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
65416         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
65417         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
65418         Similarly for O_SEARCH; this last was already true, but not documented.
65419         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
65420         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
65421         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
65422         Likewise.
65423         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
65424         is zero, not whether it is defined.
65425         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
65426         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
65427         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
65429 2010-09-10  Bruno Haible  <bruno@clisp.org>
65431         langinfo, nl_langinfo: Fix for IRIX 5.3.
65432         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
65433         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
65434         HAVE_LANGINFO_YESEXPR.
65435         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
65436         HAVE_LANGINFO_YESEXPR.
65437         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
65438         HAVE_LANGINFO_T_FMT_AMPM is 0.
65439         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
65440         HAVE_LANGINFO_YESEXPR is 0.
65441         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
65442         NOEXPR.
65443         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
65444         * doc/posix-functions/nl_langinfo.texi: Likewise.
65445         Reported by Eric Blake.
65447 2010-09-10  Bruno Haible  <bruno@clisp.org>
65449         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
65450         * doc/glibc-functions/login_tty.texi: Mention the include file problem
65451         on FreeBSD 8.0 and OpenBSD 4.6.
65452         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
65453         * m4/pty_h.m4 (gl_PTY_H): Likewise.
65454         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
65455         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
65456         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
65457         ac_includes_default.
65458         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
65460 2010-09-09  Eric Blake  <eblake@redhat.com>
65462         strsignal: work around NetBSD bug
65463         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
65464         * lib/string.in.h (includes): Likewise.
65465         * doc/posix-functions/strsignal.texi (strsignal): Document the
65466         bug.
65467         Reported by Nelson H. F. Beebe.
65469         gnulib-tool: work with NetBSD /bin/sh
65470         * gnulib-tool (func_cache_var, func_cache_lookup_module)
65471         (func_get_description, func_get_comment, func_get_status)
65472         (func_get_notice, func_get_applicability, func_get_filelist)
65473         (func_get_dependencies, func_get_autoconf_early_snippet)
65474         (func_get_autoconf_snippet, func_get_automake_snippet)
65475         (func_get_include_directive, func_get_link_directive)
65476         (func_get_license, func_get_maintainer, func_import): Avoid
65477         shell syntax errors from parsing syntax extensions.
65479 2010-09-09  Bruno Haible  <bruno@clisp.org>
65481         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65482         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
65483         a reliable way to determine whether the 'alias' command works.
65485 2010-09-08  Jim Meyering  <meyering@redhat.com>
65487         init.sh: penalize a set-x-impaired shell; don't disqualify it
65488         * tests/init.sh: Too many shells corrupt application stderr when
65489         you set -x, so we can't afford to disqualify them, since at least
65490         on Irix-6.5, that would disqualify all bourne shells.
65491         Instead, use a two-pass approach.
65492         On the first pass, try to find a shell that meets the stricter
65493         condition that set -x does not corrupt stderr.
65494         If no shell meets the stricter condition, retest each candidate
65495         shell, but without that extra condition.  Finally, when
65496         VERBOSE=yes is requested and set -x might cause trouble, simply
65497         issue a warning and refrain from enabling debug output.
65499 2010-09-08  Eric Blake  <eblake@redhat.com>
65501         unsetenv: fix OpenBSD bug
65502         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
65503         * doc/posix-functions/unsetenv.texi (unsetenv): Update
65504         documentation.
65505         Reported by Jim Meyering.
65507         strtod: work around IRIX 6.5 bug
65508         * lib/strtod.c (strtod): Reparse number on shorter string if
65509         exponent parse was invalid.
65510         * tests/test-strtod.c (main): Add check for "0x1p 2".
65511         Reported by Tom G. Christensen.
65513         getopt: optimize previous patch
65514         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
65515         empty variable.  Speed up awk script.
65516         Reported by Paolo Bonzini.
65518 2010-09-08  Jim Meyering  <meyering@redhat.com>
65520         test.sh: disqualify shells for which set -x corrupts stderr
65521         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
65522         and OpenBSD 4.7.  They make it so with "set -x", environment settings
65523         appear in stderr output.  For example, this command:
65524             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
65525         prints "P=1" on those two systems:
65527 2010-09-08  Bruno Haible  <bruno@clisp.org>
65529         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
65530         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
65531         commands, because some shells ignore redirections when there is an
65532         error in the command lookup.
65533         Reported by Eric Blake.
65535 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
65537         * lib/regex.h: Fix a mention of `regex_compile' (should be
65538         `re_compile_pattern').
65539         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
65540         (re_set_registers): Correct name of parameter in comment.
65542         * doc/regex.texi: Add documentation for missing syntax flags.
65543         Remove commented-out documentation of defunct syntax option
65544         RE_NO_EMPTY_ALTS.
65545         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
65546         Add documentation of re_set_registers.
65547         Document trick to re-use a pattern buffer by setting fastmap manually.
65548         Update documentation of struct re_pattern_buffer per public members.
65549         Uncomment documentation of equivalence class operators and
65550         collating symbol operators, since they are now implemented,
65551         Explain leftmost-longest matching in relation to alternatives.
65552         Tidy documentation of substring matching.
65553         Remove POSIX documentation, which is done better in
65554         glibc, and refer the reader there. Keep BSD API documentation, as
65555         that is not readily available elsewhere.
65557 2010-09-07  Eric Blake  <eblake@redhat.com>
65559         getopt: handle POSIXLY_CORRECT set but not exported
65560         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
65561         export state of POSIXLY_CORRECT, due to bash set -o posix.
65562         Reported by Dustin J. Mitchell.
65564 2010-09-05  Bruno Haible  <bruno@clisp.org>
65566         gnulib-tool: Highlight the changed options.
65567         * gnulib-tool (func_usage): Display the --import, --add-import,
65568         --remove-import explanations in bold font.
65570 2010-09-06  Karl Berry  <karl@gnu.org>
65572         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
65574 2010-09-05  Bruno Haible  <bruno@clisp.org>
65576         uniwidth/width: Update comment.
65577         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
65578         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
65580 2010-09-05  Bruno Haible  <bruno@clisp.org>
65582         isinf, isnan: Relax license.
65583         * modules/isinf (License): Change from GPL to LGPL, with consent from
65584         Ben Pfaff.
65585         * modules/isnan (License): Likewise.
65586         Requested by Ludovic Courtès.
65588 2010-09-04  Bruno Haible  <bruno@clisp.org>
65590         gnulib-tool: Help migration from --import to --add-import or --update.
65591         * gnulib-tool: Emit a verbose error message when --import is used
65592         without any module name.
65594 2010-09-04  Bruno Haible  <bruno@clisp.org>
65596         Update doc about gnulib-tool.
65597         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
65598         'gnulib-tool --update' in more detail.
65599         Reported by Eric Blake.
65601 2010-09-04  Bruno Haible  <bruno@clisp.org>
65603         gnulib-tool: Change --import. New options --add/remove-import.
65604         * gnulib-tool: New options --add-import, --remove-import.
65605         (func_usage): Document them.
65606         (have_associative): Define always.
65607         (func_import): In import mode, don't merge the specified settings with
65608         the cached settings. Implement remove-import mode.
65609         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
65610         Explain when to use them versus --import.
65611         (Simple update): Use --add-import instead of --import.
65612         * NEWS: Mention the change.
65614 2010-09-04  Bruno Haible  <bruno@clisp.org>
65616         * doc/gnulib-tool.texi (Initial import): Update paragraph about
65617         separate gnulib.mk.
65619 2010-09-04  Bruno Haible  <bruno@clisp.org>
65621         gnulib-tool: Don't talk about CVS any more.
65622         * gnulib-tool (func_usage, func_import): Write "version control"
65623         instead of CVS.
65625 2010-09-04  Jim Meyering  <meyering@redhat.com>
65627         maint.mk: avoid obscure sc_copyright_check failure in coreutils
65628         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
65629         false positives (whose names may be ill-chosen) when searching
65630         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
65631         would cause a false-positive.
65633         avoid coreutils "make distcheck" failure
65634         Coreutils tests with an absolute build directory name that contains
65635         a space.  Not quoting this directory name caused a failure.
65636         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
65637         * tests/test-vc-list-files-cvs.sh: Likewise.
65639 2010-09-04  Bruno Haible  <bruno@clisp.org>
65641         gnulib-tool: Avoid error when run in a package without Makefile.am.
65642         * gnulib-tool: When collecting the m4dirs in a package that does not
65643         have a Makefile.am, eliminate those directories that contain no
65644         gnulib-cache.m4. Fix expression that counts these directories.
65646 2010-09-04  Bruno Haible  <bruno@clisp.org>
65648         update-copyright test: Improve output when perl is missing or too old.
65649         * tests/test-update-copyright.sh: Move test of Perl version down after
65650         the test whether Perl exists. Provide an explanation relating Perl's
65651         error message to Automake's SKIP: message.
65653 2010-09-04  Bruno Haible  <bruno@clisp.org>
65655         Don't augment PATH in TESTS_ENVIRONMENT.
65656         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
65657         set abs_aux_dir instead of augmenting PATH.
65658         * modules/vc-list-files-tests (Makefile.am): Likewise.
65659         * tests/test-update-copyright.sh: Augment PATH here.
65660         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
65661         path_prepend_.
65662         * tests/test-vc-list-files-git.sh: Likewise.
65664 2010-09-04  Jim Meyering  <meyering@redhat.com>
65666         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
65667         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
65669 2010-09-04  Bruno Haible  <bruno@clisp.org>
65671         strdup: Fix compilation error in C++ mode.
65672         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
65673         the macro.
65675 2010-09-04  Bruno Haible  <bruno@clisp.org>
65677         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
65678         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
65679         macro into a function.
65680         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
65682 2010-09-04  Bruno Haible  <bruno@clisp.org>
65684         Set PATH_SEPARATOR the same way autoconf does.
65685         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
65686         the value of PATH_SEPARATOR the same way autoconf-generated configure
65687         scripts do.
65688         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
65689         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
65691 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
65693         Set PATH_SEPARATOR the same way autoconf does.
65694         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
65695         the same way autoconf-generated configure scripts do.
65696         * posix-modules: Likewise.
65698 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
65700         hash: fix safe_hasher const typo
65701         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
65702         const; otherwise, there is a type error later.
65704 2010-09-02  Jim Meyering  <meyering@redhat.com>
65706         test-update-copyright.sh: require perl 5.8.0
65707         * tests/test-update-copyright.sh: Require 5.8.0,
65708         which Tom G. Christensen has confirmed is adequate,
65709         while 5.6.1 is not.
65711 2010-09-02  Eric Blake  <eblake@redhat.com>
65713         tests: init.sh improvements for re-exec'ing with zsh
65714         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
65715         -vx through shell re-exec.
65716         Reported by Tom G. Christensen.
65718         wctype: fix typo in previous commit
65719         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
65720         Reported by Ludovic Courtès.
65722 2010-09-02  Jim Meyering  <meyering@redhat.com>
65724         test-update-copyright.sh: skip test if Perl is too old
65725         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
65726         Reported by Tom G. Christensen.
65728 2010-09-02  Bruno Haible  <bruno@clisp.org>
65730         wctype: Avoid compilation error on IRIX 6.5.30.
65731         * lib/wctype.in.h (iswblank): Declare with a replacement if
65732         REPLACE_ISWBLANK is set.
65733         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
65734         declared. Set REPLACE_ISWBLANK.
65735         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
65736         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
65737         * doc/posix-headers/wctype.texi: Likewise.
65738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
65740 2010-09-01  Bruno Haible  <bruno@clisp.org>
65742         New module 'socketlib'.
65743         * modules/socketlib: New file.
65744         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
65745         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
65746         * modules/sockets (Depends-on): Add socketlib.
65747         Suggested by Sam Steingold <sds@gnu.org>.
65749 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
65751         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
65753         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
65754         when one needs search access to a directory but not read access.
65755         On systems where it is available, it works in some cases where
65756         O_RDONLY does not, namely on directories that are searchable but
65757         not readable, and which need only to be searchable.  If O_SEARCH
65758         is not available, fall back to the traditional method of using
65759         O_RDONLY.
65761         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
65762         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
65763         when opening a directory that needs only to be searchable.
65764         * lib/chdir-safer.c (chdir_no_follow): Likewise.
65765         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
65766         * lib/openat-proc.c (openat_proc_name): Likewise.
65767         * lib/openat.c (openat_needs_fchdir): Likewise.
65768         * lib/save-cwd.c (save_cwd): Likewise.
65769         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
65771 2010-08-28  Bruno Haible  <bruno@clisp.org>
65773         New module 'host-cpu-c-abi'.
65774         * modules/host-cpu-c-abi: New file.
65775         * m4/host-cpu-c-abi.m4: New file, based on part of
65776         clisp/src/m4/general.m4.
65777         Requested by Sam Steingold <sds@gnu.org>.
65779 2010-08-31  Eric Blake  <eblake@redhat.com>
65780         and Jim Meyering  <meyering@redhat.com>
65782         hash: factor, and guard against misbehaving hasher function
65783         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
65784         of table->hasher's return value.  Also protect against a hash value
65785         so large that adding it to table->bucket results in a NULL pointer.
65786         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
65787         Use it in place of open-coded check-and-abort.
65789 2010-08-30  Bruno Haible  <bruno@clisp.org>
65791         hash: silence spurious clang warning
65792         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
65793         Reported by Eric Blake.
65795 2010-08-30  Eric Blake  <eblake@redhat.com>
65797         strstr, memmem, strcasestr: avoid leaked shell message
65798         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
65799         FreeBSD.
65800         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
65801         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
65803         tests: silence clang warning
65804         * tests/test-malloca.c (do_allocation): Avoid dead store.
65806 2010-08-29  Bruno Haible  <bruno@clisp.org>
65808         gettext: Fix recent mistake.
65809         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
65811 2010-08-29  Bruno Haible  <bruno@clisp.org>
65813         selinux-h: Offer a --without-selinux option.
65814         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
65815         --without-selinux was specified, skip all tests and define
65816         HAVE_SELINUX_SELINUX_H to 0.
65817         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
65818         set LIB_SELINUX to empty.
65819         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
65820         gl_LIBSELINUX. If --without-selinux was specified, replace
65821         selinux/context.h.
65822         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
65824 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65825             Bruno Haible  <bruno@clisp.org>
65827         Make the module 'realloc-gnu' work again on AIX and OSF/1.
65828         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
65829         of HAVE_REALLOC.
65830         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
65831         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
65832         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
65833         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65835 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65836             Bruno Haible  <bruno@clisp.org>
65838         Make the module 'calloc-gnu' work again on AIX and OSF/1.
65839         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
65840         HAVE_CALLOC.
65841         * lib/xmalloc.c: Update accordingly.
65842         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
65843         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
65844         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
65846 2010-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65847             Bruno Haible  <bruno@clisp.org>
65849         Make the module 'malloc-gnu' work again on AIX and OSF/1.
65850         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
65851         HAVE_MALLOC.
65852         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
65853         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
65854         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
65856 2010-08-29  Bruno Haible  <bruno@clisp.org>
65858         Update modules list.
65859         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
65860         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
65861         (String handling <string.h>): Add astrxfrm.
65862         (File system functions): Add readlinkat.
65864 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65866         Tests for module 'realloc-gnu'.
65867         * modules/realloc-gnu-tests: New file.
65868         * tests/test-realloc-gnu.c: New file.
65870         Tests for module 'calloc-gnu'.
65871         * modules/calloc-gnu-tests: New file.
65872         * tests/test-calloc-gnu.c: New file.
65874         Tests for module 'malloc-gnu'.
65875         * modules/malloc-gnu-tests: New file.
65876         * tests/test-malloc-gnu.c: New file.
65878 2010-08-28  Bruno Haible  <bruno@clisp.org>
65880         Rename module 'realloc' -> 'realloc-gnu'.
65881         * modules/realloc-gnu: New file, copied from modules/realloc.
65882         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
65883         obsolete.
65884         * modules/mgetgroups (Depends-on): Update.
65885         * doc/posix-functions/realloc.texi: Update.
65886         * NEWS: Mention the change.
65888         Rename module 'calloc' -> 'calloc-gnu'.
65889         * modules/calloc-gnu: New file, copied from modules/calloc.
65890         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
65891         obsolete.
65892         * doc/posix-functions/calloc.texi: Update.
65893         * NEWS: Mention the change.
65895         Rename module 'malloc' -> 'malloc-gnu'.
65896         * modules/malloc-gnu: New file, copied from modules/malloc.
65897         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
65898         obsolete.
65899         * modules/argp (Depends-on): Update.
65900         * modules/regex (Depends-on): Update.
65901         * doc/posix-functions/malloc.texi: Update.
65902         * NEWS: Mention the change.
65904 2010-08-28  Eric Blake  <eblake@redhat.com>
65906         pread, pwrite: add missing dependency
65907         * modules/pread (Depends-on): Add extensions.
65908         * modules/pwrite (Depends-on): Likewise.
65910 2010-08-28  Bruno Haible  <bruno@clisp.org>
65912         unistr/u*-strchr: Fix tests dependencies.
65913         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
65914         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
65915         Reported by Ian Beckwith <ianb@erislabs.net>.
65917 2010-08-28  Bruno Haible  <bruno@clisp.org>
65919         read-file: Don't occupy too much unused memory.
65920         * lib/read-file.c (fread_file): Shrink the buffer at the end.
65922 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
65923             Eric Blake  <eblake@redhat.com>
65924             Bruno Haible  <bruno@clisp.org>
65926         read-file: Avoid memory reallocations with regular files.
65927         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
65928         (fread_file): With regular files, use the remaining length as the
65929         initial buffer size.  Check against overflow.
65930         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
65931         sys_stat.
65933 2010-08-28  Bruno Haible  <bruno@clisp.org>
65935         ftello: Relax license.
65936         * modules/ftello (License): Relax to LGPLv2+.
65937         Reported by Eric Blake.
65939 2010-08-28  Bruno Haible  <bruno@clisp.org>
65941         Avoid relocwrapper link errors due to gnulib replacement functions.
65942         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
65943         function.
65944         Reported by Ben Pfaff <blp@cs.stanford.edu>.
65946 2010-08-28  Bruno Haible  <bruno@clisp.org>
65948         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
65949         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
65950         defined.
65951         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
65952         Suggested by Eric Blake.
65954 2010-08-28  Bruno Haible  <bruno@clisp.org>
65956         sys_socket, netdb: Ensure socklen_t gets defined.
65957         * modules/sys_socket (Depends-on): Add socklen.
65958         * modules/netdb (Depends-on): Likewise.
65959         * modules/getaddrinfo (Depends-on): Remove socklen.
65960         * modules/getsockopt (Depends-on): Likewise.
65961         * modules/setsockopt (Depends-on): Likewise.
65962         * tests/test-sys_socket.c: Check that socklen_t is defined.
65963         * tests/test-netdb.c: Likewise.
65964         * m4/socklen.m4: Update comments.
65965         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
65967 2010-08-27  Eric Blake  <eblake@redhat.com>
65969         login_tty: add missing dependency
65970         * modules/login_tty (Depends-on): Add pty.
65972 2010-08-26  Eric Blake  <eblake@redhat.com>
65974         lib-symbol-versions: fix m4 quoting
65975         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
65976         format for AC_LINK_IFELSE.
65978         glob: fix compile test
65979         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
65981         btowc: fix missing file
65982         * modules/btowc (Files): Also ship locale-fr.m4.
65984         lseek: fix link test
65985         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
65986         AC_LINK_IFELSE.
65988         include_next: silence autoconf 2.68 warning
65989         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
65990         AC_COMPILE_IFELSE as special.
65991         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
65992         autoconf < 2.68.
65994         acl: fix compilation test
65995         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
65996         AC_COMPILE_IFELSE.
65998 2010-08-26  Bruno Haible  <bruno@clisp.org>
66000         Modernize AC_TRY_RUN invocations.
66001         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
66002         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
66003         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
66004         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
66005         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
66006         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66007         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
66008         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66009         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66010         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66011         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
66012         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
66013         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
66014         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
66015         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
66016         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
66017         gl_MBRLEN_NUL_RETVAL): Likewise.
66018         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
66019         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
66020         Likewise.
66021         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
66022         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
66023         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
66024         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
66025         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
66026         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
66027         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
66028         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
66029         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
66030         Likewise.
66031         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
66032         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
66033         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66034         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66035         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66036         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
66037         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
66038         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
66039         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
66040         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
66042 2010-08-26  Bruno Haible  <bruno@clisp.org>
66044         Modernize AC_TRY_LINK invocations.
66045         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
66046         AC_TRY_LINK.
66047         * m4/argp.m4 (gl_ARGP): Likewise.
66048         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
66049         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
66050         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
66051         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
66052         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
66053         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
66054         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
66055         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
66056         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
66057         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
66058         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
66059         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
66060         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
66061         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
66062         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
66063         * m4/hostent.m4 (gl_HOSTENT): Likewise.
66064         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
66065         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
66066         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
66067         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
66068         Likewise.
66069         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
66070         Likewise.
66071         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
66072         Likewise.
66073         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
66074         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
66075         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
66076         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
66077         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
66078         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66079         * m4/servent.m4 (gl_SERVENT): Likewise.
66080         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
66081         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
66082         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
66083         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
66084         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
66085         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
66086         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
66087         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
66088         * modules/tsearch-tests (configure.ac): Likewise.
66090 2010-08-26  Bruno Haible  <bruno@clisp.org>
66092         Modernize AC_TRY_COMPILE invocations.
66093         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
66094         AC_TRY_COMPILE.
66095         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
66096         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
66097         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
66098         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
66099         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
66100         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
66101         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
66102         * m4/lock.m4 (gl_LOCK): Likewise.
66103         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
66104         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
66105         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
66106         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
66107         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
66108         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
66109         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
66110         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
66111         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
66112         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
66113         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
66114         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
66115         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
66116         extraneous semicolon.
66118 2010-08-26  Jim Meyering  <meyering@redhat.com>
66120         stat-time: relax license LGPL
66121         * modules/stat-time (License): Change from GPL to LGPL,
66122         with consent from all contributors, for use in libguile.
66123         Requested by Ludovic Courtès.
66125 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
66127         poll: return immediately on POLLHUP.
66128         * lib/poll.c (poll): Always set timeout before wait_timeout is
66129         computed.
66131 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66133         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
66134         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
66135         rmdir ("dir/.//"), unlinkat.
66137 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
66139         stdbool: avoid spurious failure with modern xlc
66140         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66142 2010-08-24  Bruno Haible  <bruno@clisp.org>
66144         getloadavg: simplify code
66145         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
66146         gl_have_func. Update comments.
66148 2010-08-24  Eric Blake  <eblake@redhat.com>
66150         getloadavg: don't define SVR4 on cygwin
66151         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
66152         only define SVR4 when -lkvm is required.
66153         Reported by Yaakov Selkowitz.
66155 2010-08-24  Bruno Haible  <bruno@clisp.org>
66157         priv-set: fix comment
66158         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
66160 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
66162         priv-set: fix comments
66163         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
66164         to match code, as suggested by David Bartley in:
66165         http://lists.gnu.org/r/bug-tar/2010-08/msg00018.html
66167 2010-08-23  Eric Blake  <eblake@redhat.com>
66169         stdbool: avoid rejecting clang
66170         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
66171         * tests/test-stdbool.c: Enable more tests if using the system
66172         <stdbool.h> instead of the gnulib replacement.
66173         (main): Move xlc bug test to a runtime test for all compilers.
66174         Reported by Anders Kaseorg.
66176         argz: fix shell quoting issue
66177         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
66178         Reported by Charles Wilson.
66180 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
66181             Erik Faye-Lund <kusmabite@gmail.com>
66183         poll, select: handle ERROR_BROKEN_PIPE.
66184         * lib/poll.c (win32_compute_revents): Return POLLHUP when
66185         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66186         * lib/select.c (win32_compute_revents): Do not mark a pipe
66187         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
66189 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
66191         fts: allow compilation with C++
66192         * lib/fts_.h: Specify extern "C" linkage with C++.
66194 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66196         Fix gnulib-tool sed script de-commentation for AIX sed.
66197         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
66198         sed.
66200 2010-08-17  Eric Blake  <eblake@redhat.com>
66202         test-stddef: test for (some) offsetof bugs
66203         * tests/test-stddef.c: Enhance test to ensure correct type of
66204         offsetof.
66205         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
66206         that we are not fixing at this time.
66208 2010-08-15  Bruno Haible  <bruno@clisp.org>
66210         stpncpy: Allow stpncpy to be defined as a macro.
66211         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
66212         if it's already correctly declared.
66213         * lib/string.in.h (stpncpy): Undefine before redefining.
66214         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
66216 2010-08-14  Bruno Haible  <bruno@clisp.org>
66218         Rename module 'memxfrm' to 'amemxfrm'.
66219         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
66220         (amemxfrm): Renamed from memxfrm.
66221         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
66222         (amemxfrm): Renamed from memxfrm.
66223         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
66224         * NEWS: Mention the change.
66225         * MODULES.html.sh (String handling <string.h>): Update.
66226         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
66227         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
66228         * lib/unicase/u16-casexfrm.c: Likewise.
66229         * lib/unicase/u32-casexfrm.c: Likewise.
66230         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
66231         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
66232         * lib/uninorm/u16-normxfrm.c: Likewise.
66233         * lib/uninorm/u32-normxfrm.c: Likewise.
66234         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
66235         memxfrm.
66236         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
66237         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
66238         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
66239         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
66240         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
66241         Suggested by Paul Eggert.
66243 2010-08-14  Bruno Haible  <bruno@clisp.org>
66245         Tests for module 'astrxfrm'.
66246         * modules/astrxfrm-tests: New file.
66247         * tests/test-astrxfrm.c: New file.
66249         New module 'astrxfrm'.
66250         * lib/astrxfrm.h: New file.
66251         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
66252         * modules/astrxfrm: New file.
66254 2010-08-14  Reuben Thomas  <rrt@sc3d.org>
66256         regex: Tweak doc.
66257         * doc/regex.texi (Overview): Don't mention regex.c.
66258         (GNU Regular Expression Compiling): Likewise.
66259         (Match-end-of-line Operator): Mention 'not_eol'.
66261 2010-08-14  Brian Gough  <bjg@gnu.org>
66262             Bruno Haible  <bruno@clisp.org>
66264         git-merge-changelog: add doc relating to use with bzr and hg.
66265         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
66267 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
66269         pthread: fix pthread.h creation for srcdir != builddir
66270         * modules/pthread (Makefile.am): Fix the rule to work also in a
66271         non-srcdir build.
66273 2010-08-13  Karl Berry  <karl@gnu.org>
66275         * doc/regex.texi (Predefined Syntaxes): @smallexample.
66276         * doc/posix-*/*: force line break before @url of POSIX
66277         specifications.
66278         Suggested by Werner Lemberg.
66280 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
66282         strtod: fix const diagnostic
66283         * lib/strtod.c (strtod): Don't assign const char * to char *,
66284         as this elicits a warning from GCC when warnings are enabled.
66286 2010-08-10  Pádraig Brady  <P@draigbrady.com>
66287         and Eric Blake  <eblake@redhat.com>
66289         copy-acl: ignore ENOTSUP on HP-UX
66290         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
66291         so that it is available for HP-UX.
66292         * lib/copy-acl.c (qcopy_acl): Use it.
66293         Reported by Patrick M. Callahan.
66295 2010-08-10  Eric Blake  <eblake@redhat.com>
66297         open, chown: relax license
66298         * modules/open (License): Change to LGPLv2+, with consent by all
66299         authors, for use in augeas.
66300         * modules/chown (License): Likewise.
66301         * modules/lchown (Likewise): Likewise.
66302         Requested by Adam Stokes.
66304 2010-08-09  Karl Berry  <karl@gnu.org>
66306         * build-aux/ar-lib: new file, import from Automake.
66307         * config/srclist.txt: autocheck for updates.
66309 2010-08-09  Eric Blake  <eblake@redhat.com>
66311         readlinkat: adjust client modules
66312         * modules/areadlinkat (Depends-on): Use readlinkat, not
66313         symlinkat.
66314         * modules/areadlinkat-with-size (Depends-on): Likewise.
66316         mknod: be more vocal about danger of running tests as root
66317         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
66318         root, since that is just asking for problems.
66319         Suggested by Bruno Haible, based on a report by Rainer Tammer.
66321         readlinkat: split into its own module
66322         * modules/symlinkat: Split readlinkat...
66323         * modules/readlinkat: ...into separate module.
66324         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
66325         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
66326         * lib/symlinkat.c (readlinkat): Move...
66327         * lib/readlinkat.c: ...into new file.
66328         * modules/symlinkat-tests: Split readlinkat test...
66329         * modules/readlinkat-tests: ...into separate module.
66330         * tests/test-symlinkat.c: Split...
66331         * tests/test-readlinkat.c: ...into new file.
66332         * NEWS: Document the split.
66333         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
66334         * lib/unistd.in.h (readlinkat): Likewise.
66335         Suggested by Bruno Haible.
66337 2010-08-08  Bruno Haible  <bruno@clisp.org>
66339         memxfrm: Speed up.
66340         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
66341         that usually only one call to strxfrm is necessary for each string
66342         part.
66343         Reported by Paul Eggert <eggert@cs.ucla.edu>.
66345 2010-08-07  Karl Berry  <karl@gnu.org>
66347         * doc/posix-headers/limits.texi,
66348         * doc/posix-functions/malloc.texi,
66349         * doc/posix-functions/strsignal.texi: missing @item.
66350         * doc/ld-version-script.texi: spurious leading i.
66351         * doc/regex.texi (Interval Operators): no commas inside @var.
66353 2010-08-01  Bruno Haible  <bruno@clisp.org>
66355         Integrate the regex documentation.
66356         * doc/gnulib.texi: Define 'cn' index.
66357         (Regular expressions): New a chapter that includes regex.texi and
66358         regexprops-generic.texi.
66359         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
66360         syntax.
66362         Whitespace cleanup.
66363         * doc/regex.texi: Remove trailing spaces.
66365         Add regex documentation.
66366         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
66367         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
66368         Written by Kathy A. Hargreaves and Karl Berry.
66370 2010-08-01  Bruno Haible  <bruno@clisp.org>
66372         link: Update documentation.
66373         * doc/posix-functions/link.texi: Update regarding Solaris.
66375 2010-07-31  Bruno Haible  <bruno@clisp.org>
66377         Update modules list.
66378         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
66379         (String handling <string.h>): Add memcmp2, memxfrm.
66380         (Container data structures): Add xlist, xsublist, xoset.
66381         (Core language properties): Add alignof, unused-parameter.
66382         (Process control, Numeric conversion functions <stdlib.h>): Renamed
66383         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
66384         (Unibyte characters <ctype.h>): New section.
66385         (String handling <string.h>): New section.
66386         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
66387         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
66388         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
66389         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
66390         tan, tanh, tanl, y0, y1, yn.
66391         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
66392         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
66393         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
66394         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
66395         unlockpt, vdprintf, vdprintf-posix.
66396         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
66397         (File system functions): Add concat-filename, sys_file, sys_ioctl,
66398         xconcat-filename.
66399         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
66400         getdtablesize, pipe2, pipe2-safer.
66401         (Security): New section.
66402         (Networking functions): Add accept4.
66403         (Signal handling): Add sigpipe.
66404         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
66405         mbmemcasecoll.
66406         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
66407         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
66408         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
66409         pipe-filter-ii.
66410         (Misc): Add argp-version-etc, login_tty, parse-duration.
66412 2010-07-31  Bruno Haible  <bruno@clisp.org>
66414         Improve doc in MODULES.html.
66415         * modules/linkat (Description): Add the word "function".
66416         * modules/mkfifo (Description): Likewise.
66417         * modules/mknod (Description): Likewise.
66418         * modules/remove (Description): Likewise.
66419         * modules/renameat (Description): Likewise.
66420         * modules/stat (Description): Likewise.
66421         * modules/symlink (Description): Likewise.
66422         * modules/unlink (Description): Likewise.
66424 2010-07-31  Bruno Haible  <bruno@clisp.org>
66426         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
66427         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
66428         option --enable/disable-c++ instead of --enable/disable-cxx.
66429         * NEWS: Mention the change.
66431 2010-07-31  Bruno Haible  <bruno@clisp.org>
66433         readlink, areadlink: Relax test a bit.
66434         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
66435         alternative to ENOTDIR.
66436         * tests/test-areadlink.h (test_areadlink): Likewise.
66437         Reported by Rainer Tammer.
66439 2010-07-31  Bruno Haible  <bruno@clisp.org>
66441         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
66442         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
66443         character, perform the search using U_STRCHR.
66444         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
66445         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
66446         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
66447         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
66448         Suggested by Paolo Bonzini.
66450 2010-07-31  Bruno Haible  <bruno@clisp.org>
66452         unistr/u*-strstr: Fix dependencies.
66453         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
66454         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
66455         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
66457 2010-07-31  Bruno Haible  <bruno@clisp.org>
66459         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
66460         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
66461         the beginning of the loop.
66462         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
66463         cases in 'switch' statement.
66465         unistr/u8-strchr: Fix several bugs.
66466         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
66467         the string. When not found, return NULL, not a pointer near the end.
66469         More tests for unistr/u8-strchr.
66470         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
66471         that the function does not read past the first occurrence of the byte
66472         being searched.
66473         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
66474         * tests/unistr/test-u16-strchr.c (main): New function.
66475         * tests/unistr/test-u32-strchr.c (main): New function.
66477 2010-07-31  Bruno Haible  <bruno@clisp.org>
66479         posix-modules: Ignore backup files of documentation files.
66480         * posix-modules: grep only through files named *.texi.
66482 2010-07-31  Bruno Haible  <bruno@clisp.org>
66484         symlinkat: Fix documentation.
66485         * doc/posix-functions/readlinkat.texi: Fix module name.
66487 2010-07-31  Bruno Haible  <bruno@clisp.org>
66489         fchownat: Replace also when chown has the trailing slash bug.
66490         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
66491         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
66492         introduced on 2010-04-10.
66493         Reported by Rainer Tammer.
66495 2010-07-31  Bruno Haible  <bruno@clisp.org>
66497         linkat: Work around AIX 7.1 bug.
66498         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
66499         whether linkat handles trailing slash correctly. If not, replace linkat
66500         and define LINKAT_TRAILING_SLASH_BUG.
66501         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
66502         check whether (fd1,file1) points to a directory if file1 or file2 ends
66503         in a slash. Code taken from lib/link.c.
66504         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
66505         Reported by Rainer Tammer.
66507 2010-07-31  Bruno Haible  <bruno@clisp.org>
66509         Correctly determine whether pow is available in libc on AIX 7 with xlc.
66510         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
66511         This disables an xlc optimization that was causing wrong test results.
66512         Reported by Rainer Tammer.
66514 2010-07-31  Bruno Haible  <bruno@clisp.org>
66516         iconv: Work around AIX 6.1..7.1 bug.
66517         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
66518         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
66519         cross-compiling, guess no on all versions of AIX.
66520         Reported by Rainer Tammer.
66522 2010-07-31  Bruno Haible  <bruno@clisp.org>
66524         readlink: Relax test a bit.
66525         * tests/test-readlink.h (test_readlink): Allow different errno value
66526         when readlink is called with a file name that ends in / and refers to
66527         a file.
66528         Suggested by Eric Blake.
66529         Reported by Rainer Tammer.
66531 2010-07-31  Bruno Haible  <bruno@clisp.org>
66533         copysign: Does not require -lm on glibc systems.
66534         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
66535         gl_COMMON_DOUBLE_MATHFUNC.
66536         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
66538 2010-07-31  Bruno Haible  <bruno@clisp.org>
66540         duplocale: Work around AIX 7.1 bug.
66541         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
66542         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
66543         * lib/duplocale.c (rpl_duplocale): Update comment.
66544         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
66545         Reported by Rainer Tammer.
66547 2010-07-30  Bruno Haible  <bruno@clisp.org>
66549         dirfd: Avoid link error on AIX 7.1.
66550         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
66551         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
66552         exist, set REPLACE_DIRFD.
66553         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
66554         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
66555         * doc/posix-functions/dirfd.texi: Update.
66556         Reported by Rainer Tammer.
66558 2010-07-30  Eric Blake  <eblake@redhat.com>
66560         strtod: next round of AIX fixes
66561         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
66562         exponent.
66563         * tests/test-strtod.c (main): Enhance tests.
66564         * doc/posix-functions/strtod.texi (strtod): Document next bug.
66565         Reported by Rainer Tammer.
66567         futimens: fix configure check
66568         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
66569         Reported by Bruno Haible.
66571 2010-07-30  Bruno Haible  <bruno@clisp.org>
66573         getline: Update regarding AIX.
66574         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
66575         Reported by Rainer Tammer.
66577 2010-07-30  Bruno Haible  <bruno@clisp.org>
66579         wcwidth: Drop replacement on AIX 7.
66580         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
66581         AIX 7.
66582         Reported by Rainer Tammer.
66584 2010-07-30  Bruno Haible  <bruno@clisp.org>
66586         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
66587         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
66588         a 'char *'.
66589         Reported by Rainer Tammer.
66591 2010-07-30  Bruno Haible  <bruno@clisp.org>
66593         unlink: Update regarding AIX.
66594         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
66595         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
66596         Reported by Rainer Tammer.
66598 2010-07-30  Bruno Haible  <bruno@clisp.org>
66600         symlink: Update regarding AIX.
66601         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
66602         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
66603         Reported by Rainer Tammer.
66605 2010-07-30  Bruno Haible  <bruno@clisp.org>
66607         strndup: Update regarding AIX.
66608         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
66609         AIX 7.
66610         Reported by Rainer Tammer.
66612 2010-07-30  Bruno Haible  <bruno@clisp.org>
66614         stat: Update regarding AIX.
66615         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
66616         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
66617         Reported by Rainer Tammer.
66619 2010-07-30  Bruno Haible  <bruno@clisp.org>
66621         truncl: Fix autoconf test.
66622         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
66623         whether truncl works.
66624         Reported by Rainer Tammer.
66626 2010-07-30  Bruno Haible  <bruno@clisp.org>
66628         round: Update regarding AIX.
66629         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
66630         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
66631         Reported by Rainer Tammer.
66633 2010-07-30  Bruno Haible  <bruno@clisp.org>
66635         rename: Update regarding AIX.
66636         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
66637         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
66638         Reported by Rainer Tammer.
66640 2010-07-30  Bruno Haible  <bruno@clisp.org>
66642         printf.m4: Update regarding AIX.
66643         * m4/printf.m4: Update comments regarding AIX.
66644         Reported by Rainer Tammer.
66646 2010-07-30  Bruno Haible  <bruno@clisp.org>
66648         iconv: Update regarding AIX.
66649         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
66650         AIX 7.
66651         Reported by Rainer Tammer.
66653 2010-07-30  Bruno Haible  <bruno@clisp.org>
66655         getopt: Update regarding AIX.
66656         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
66657         no on AIX.
66658         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
66659         Reported by Rainer Tammer.
66661 2010-07-30  Bruno Haible  <bruno@clisp.org>
66663         ldexpl; Update regarding AIX.
66664         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
66665         on AIX 7.
66666         Reported by Rainer Tammer.
66668 2010-07-30  Bruno Haible  <bruno@clisp.org>
66670         frexpl: Update regarding AIX.
66671         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
66672         on AIX 7.
66673         Reported by Rainer Tammer.
66675 2010-07-30  Bruno Haible  <bruno@clisp.org>
66677         open, fopen: Update regarding AIX.
66678         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
66679         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
66680         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
66681         * doc/posix-functions/fopen.texi: Likewise.
66682         Reported by Rainer Tammer.
66684 2010-07-30  Bruno Haible  <bruno@clisp.org>
66686         chown: Update doc regarding AIX.
66687         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
66688         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
66689         Reported by Rainer Tammer.
66691 2010-07-30  Eric Blake  <eblake@redhat.com>
66693         strtod: fix bug in replacement function on AIX
66694         * lib/strtod.c (strtod): Special case broken "0x" parse in
66695         underlying strtod.
66696         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
66697         * doc/posix-functions/strtod.texi (strtod): Likewise.
66698         Reported by Rainer Tammer.
66700 2010-07-30  Bruno Haible  <bruno@clisp.org>
66702         mbrlen: Fix cross-compilation guess for AIX.
66703         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
66704         guess. Leftover from 2008-12-22.
66706 2010-07-30  Bruno Haible  <bruno@clisp.org>
66708         mbrtowc: Fix cross-compilation guess for AIX.
66709         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
66710         guess. Leftover from 2008-12-21.
66712 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
66714         init.sh: work around trap limitation of some shells
66715         * tests/init.sh (setup_): Move exit trap outside of shell function.
66717 2010-07-29  Eric Blake  <eblake@redhat.com>
66719         strtod: aid debugging
66720         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
66721         understanding why strtod is rejected.
66723 2010-07-28  Bruno Haible  <bruno@clisp.org>
66725         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
66726         * lib/unistr/u8-chr.c: Include <string.h>.
66727         * tests/unistr/test-u8-chr.c: Likewise.
66728         * tests/unistr/test-u16-chr.c: Likewise.
66729         * tests/unistr/test-u32-chr.c: Likewise.
66730         * tests/unistr/test-u8-strchr.c: Likewise.
66731         * tests/unistr/test-u16-strchr.c: Likewise.
66732         * tests/unistr/test-u32-strchr.c: Likewise.
66733         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
66734         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
66735         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
66736         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
66738 2010-07-28  Bruno Haible  <bruno@clisp.org>
66740         Use spaces for indentation, not tabs.
66741         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
66743 2010-07-27  Bruno Haible  <bruno@clisp.org>
66745         mbspcasecmp: Fix function specification.
66746         * lib/string.in.h (mbspcasecmp): Fix specification comment.
66747         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
66748         Reported by Eric Blake <eblake@redhat.com>.
66750 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
66752         timespec: use cast and not conditional, as truncation isn't possible
66753         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
66754         instead of a conditional.  Comment about the situation in more detail.
66755         This undoes most of the 2009-10-29 patch.
66757 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
66759         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
66760         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
66761         * lib/unistr/u8-strchr.c: Likewise.
66762         * modules/unistr/u8-chr: Depend on memchr.
66764         unistr/u*-strchr: add tests
66765         * modules/unistr/u8-strchr-tests: New file.
66766         * modules/unistr/u16-strchr-tests: New file.
66767         * modules/unistr/u32-strchr-tests: New file.
66768         * tests/unistr/test-strchr.h: New file.
66769         * tests/unistr/test-u8-strchr.c: New file.
66770         * tests/unistr/test-u16-strchr.c: New file.
66771         * tests/unistr/test-u32-strchr.c: New file.
66773         unistr/u*-chr: test multibyte sequences more
66774         * tests/unistr/test-chr.h: Do complete testing of the characters in the
66775         test vector.
66776         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
66777         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
66778         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
66780         unistr/u*-chr: test multibyte sequences
66781         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
66783         unistr/u*-chr: prepare for multibyte tests
66784         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
66785         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
66786         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
66787         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
66788         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
66789         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
66791 2010-07-18  Bruno Haible  <bruno@clisp.org>
66793         unistr/u8-strchr: Optimize non-ASCII argument case.
66794         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
66795         because the first byte often matches anyway.
66796         Reported by Pádraig Brady <P@draigbrady.com>.
66798 2010-07-15  Karl Berry  <karl@gnu.org>
66800         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
66802 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
66804         getcwd: on Solaris, work better if ancestors are inaccessible
66805         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
66806         buffer and size, try again with a large buffer.  This works better
66807         on Solaris, since its getcwd succeeds even if the path to the root
66808         is inaccessible, and this is helpful in common cases such as .zfs
66809         hidden directories.  Problem reported by J Chapman Flack in
66810         http://lists.gnu.org/r/bug-tar/2010-06/msg00000.html
66811         Use system getcwd if it's declared, not merely if it's partly
66812         working; use the partly-working test only to avoid needless effort
66813         if the system getcwd fails.
66814         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
66815         comment that was already obsolete and is now even more obsolete.
66816         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
66817         now might call strdup.
66819 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
66821         pthread: Add enough so that coreutils/src/sort.c compiles.
66822         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
66823         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
66824         gnulib. Include <sched.h> and <time.h>, as per POSIX.
66825         Include <sys/types.h>, in case it defines pthread_t.
66826         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
66827         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
66828         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
66829         (pthread_rwlockattr_t, pthread_spinlock_t):
66830         New typedefs, if HAVE_PTHREAD_T is not defined.
66831         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
66832         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
66833         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
66834         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
66835         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
66836         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
66837         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
66838         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
66839         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
66840         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
66841         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
66842         New macros.
66843         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
66844         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
66845         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
66846         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
66847         (pthread_spin_unlock): New dummy functions.
66848         (pthread_create): Return EAGAIN; don't set errno.
66849         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
66850         require AC_C_INLINE.
66851         * modules/pthread (Depends-on): Add sched, time.
66852         (pthread.h): Use AM_V_GEN.
66854 2010-07-13  Bruno Haible  <bruno@clisp.org>
66856         striconveh: Don't malloc memory if the result buffer is sufficient.
66857         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
66858         buffer if its size is sufficient.
66859         Reported by Ludovic Courtès <ludo@gnu.org>.
66861 2010-07-13  Bruno Haible  <bruno@clisp.org>
66863         strtod: Add safety check.
66864         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
66866 2010-07-12  Bruno Haible  <bruno@clisp.org>
66868         Unify tests that set gl_cv_func_ldexpl_no_libm.
66869         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
66870         gl_FUNC_LDEXPL.
66871         (gl_FUNC_LDEXPL): Invoke it.
66872         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66874 2010-07-12  Bruno Haible  <bruno@clisp.org>
66876         Unify tests that set gl_cv_func_ldexp_no_libm.
66877         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
66878         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
66879         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
66880         (configure.ac): Simply invoke gl_FUNC_LDEXP.
66881         * modules/strtod (Files): Add m4/ldexp.m4.
66883 2010-07-12  Bruno Haible  <bruno@clisp.org>
66885         Unify tests that set gl_cv_func_frexpl_no_libm.
66886         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
66887         gl_FUNC_FREXPL_NO_LIBM.
66888         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
66889         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66891 2010-07-12  Bruno Haible  <bruno@clisp.org>
66893         Unify tests that set gl_cv_func_frexp_no_libm.
66894         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
66895         gl_FUNC_FREXP_NO_LIBM.
66896         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
66897         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
66899 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66901         memcoll: clarify sizes versus lengths, document better, and tweak perf
66902         * lib/memcoll.c (strcoll_loop, memcoll0):
66903         Improve quality of descriptive comments.  Name variables
66904         consistently as to whether they are lengths (which do not include
66905         terminating null) versus sizes (which do).
66906         * lib/xmemcoll.c (xmemcoll0): Likewise.
66907         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
66908         returned when s1size == 0; this is easier to compile and saves
66909         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
66911 2010-07-12  Bruno Haible  <bruno@clisp.org>
66913         Tests for module '_Exit'.
66914         * modules/_Exit-tests: New file.
66915         * tests/test-_Exit.sh: New file.
66916         * tests/test-_Exit.c: New file.
66918         New module '_Exit'.
66919         * lib/stdlib.in.h (__attribute__): New macro.
66920         (_Exit): New declaration.
66921         * lib/_Exit.c: New file.
66922         * m4/_Exit.m4: New file.
66923         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
66924         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
66925         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
66926         * modules/_Exit: New file.
66927         * tests/test-stdlib-c++.cc (_Exit): Check signature.
66928         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
66930 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
66932         strtod: make it more-accurate typically, and don't require libm
66933         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
66934         Include limits.h.  Don't include string.h.
66935         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
66936         (locale_isspace): New function, so that no casts are needed to
66937         check whether *s is a space.
66938         (ldexp): Provide an unused dummy if not available.
66939         (scale_radix_exp, parse_number, underlying_strtod): New functions.
66940         (strtod): Use them.  This implementation prefers to use the
66941         underlying strtod if available, falling back on our own code
66942         only to fix known bugs.  This is more likely to produce an
66943         accurate result.  Also, it avoids the use of libm functions.
66944         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
66945         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
66946         was absent, but it caused a test failure with coreutils.
66947         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
66948         with libm.
66949         * modules/strtod (Makefile.am, Link): libm is no longer needed.
66950         * modules/strtod-tests (Makefile.am): Likewise.
66952 2010-07-11  Pádraig Brady  <P@draigBrady.com>
66953             Bruno Haible  <bruno@clisp.org>
66955         unistr/u8-strchr: Optimize ASCII argument case.
66956         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
66958 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
66960         (x)memcoll: minor tweaks
66961         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
66962         is after the type that it qualifies.
66963         (memcoll0): Likewise.
66964         * lib/memcoll.h (memcoll0): Likewise.
66965         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
66966         * lib/xmemcoll.h (xmemcoll0): Likewise.
66967         * lib/memcoll.c (memcoll0): Correct the comment.  This function
66968         differs from memcoll in that the NUL byte is part of the argument.
66969         Omit the abort-checks, as performance is a real issue here.  Plus,
66970         the checks were wrong anyway (an off-by-one error).  Omit local
66971         variable 'diff', as it's a bit clearer that way.
66972         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
66973         no longer needed.
66975 2010-07-08  Chen Guo  <chenguo4@yahoo.com>
66977         (x)memcoll: speedup when input is known to be NUL delimited
66978         * lib/memcoll.c: Include stdlib.
66979         (memcoll0): New function.
66980         (strcoll_loop): New function, refactored for use in both memcoll
66981         and memcoll0.
66982         * lib/memcoll.h (memcoll0): Add prototype.
66983         * lib/xmemcoll.c (xmemcoll0): New function.
66984         (collate_error): New function, refactored for use in both xmemcoll
66985         and xmemcoll0.
66986         * lib/xmemcoll.h (xmemcoll0): Add prototype.
66987         * m4/memcoll.m4: add inline invocation.
66989 2010-07-06  Pádraig Brady  <P@draigBrady.com>
66991         * build-aux/bootstrap: Remove any local translations
66992         from the translation project synchronization directory,
66993         so that local only translations are not distributed.
66995 2010-07-04  Bruno Haible  <bruno@clisp.org>
66997         fsusage: Clarify which code applies to which platforms.
66998         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
66999         platform.
67000         * lib/fsusage.c (get_fs_usage): Likewise.
67002 2010-07-04  Bruno Haible  <bruno@clisp.org>
67004         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
67005         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
67006         Reported by Martin Lambers <marlam@marlam.de>.
67008 2010-07-04  Jim Meyering  <meyering@redhat.com>
67010         hash: once again explicitly disallow insertion of NULL
67011         * lib/hash.c (hash_insert0): Reinstate just-removed test:
67012         inserting a NULL pointer cannot work with these functions.
67013         Add a comment with details.
67014         This reverts part of the 2010-07-01 commit, 5bef1a35
67015         "hash: extend module to deal with non-pointer keys".
67017 2010-07-01  Bruno Haible  <bruno@clisp.org>
67019         stdbool: Update doc.
67020         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
67021         Info from Christian Weisgerber <naddy@mips.inka.de>.
67023 2010-07-01  Jim Meyering  <meyering@redhat.com>
67025         hash: extend module to deal with non-pointer keys
67026         * lib/hash.c (hash_insert0): New interface, much like hash_insert
67027         but that allows insertion of non-pointer entries.
67028         Do not disallow an ENTRY value of NULL.
67029         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
67030         * lib/hash.h (hash_insert0): Declare.
67032 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
67034         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
67035         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
67036         not present (i.e. with autoconf 2.59 and when using gettextize, not
67037         gnulib), require AC_GNU_SOURCE instead.
67039 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
67041         idpriv-drop: Fix tests.
67042         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
67043         not to the test-idpriv-droptemp program.
67045 2010-06-29  Bruno Haible  <bruno@clisp.org>
67047         string: Fix syntax error with g++ 2.96.
67048         * lib/string.in.h (__pure__): Remove definition.
67049         (_GL_ATTRIBUTE_PURE): New macro.
67050         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
67051         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
67052         Reported by Christian Weisgerber <naddy@mips.inka.de>.
67054 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
67056         unitypes: Fix bug introduced on 2010-05-18.
67057         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
67059 2010-06-22  Eric Blake  <eblake@redhat.com>
67061         memmem: slight optimization
67062         * lib/str-two-way.h (critical_factorization): Update comments.
67063         Reduce work during factorization phase.
67064         Reported by Carlos Bueno <carlos@bueno.org>.
67066 2010-06-21  Bruno Haible  <bruno@clisp.org>
67068         Fix HAVE_CALLOC_POSIX misnomer.
67069         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
67070         !HAVE_CALLOC_POSIX.
67071         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
67072         HAVE_CALLOC_POSIX.
67073         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
67074         instead of HAVE_CALLOC_POSIX.
67075         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
67076         HAVE_CALLOC_POSIX.
67078         Use modern idiom for calloc() replacement.
67079         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
67080         AC_FUNC_CALLOC.
67081         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
67082         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
67083         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67084         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
67085         (gl_REPLACE_CALLOC): New macro.
67087 2010-06-21  Bruno Haible  <bruno@clisp.org>
67089         Fix HAVE_REALLOC_POSIX misnomer.
67090         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
67091         !HAVE_REALLOC_POSIX.
67092         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
67093         HAVE_REALLOC_POSIX.
67094         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
67095         instead of HAVE_REALLOC_POSIX.
67096         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
67097         HAVE_REALLOC_POSIX.
67099         Use modern idiom for realloc() replacement.
67100         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
67101         AC_FUNC_REALLOC.
67102         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
67103         Autoconf's AC_FUNC_REALLOC.
67104         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67105         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
67106         (gl_REPLACE_REALLOC): New macro.
67107         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67109 2010-06-21  Bruno Haible  <bruno@clisp.org>
67111         Fix HAVE_MALLOC_POSIX misnomer.
67112         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
67113         !HAVE_MALLOC_POSIX.
67114         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
67115         HAVE_MALLOC_POSIX.
67116         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
67117         instead of HAVE_MALLOC_POSIX.
67118         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
67119         HAVE_MALLOC_POSIX.
67121         Use modern idiom for malloc() replacement.
67122         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
67123         AC_FUNC_MALLOC.
67124         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
67125         Autoconf's AC_FUNC_MALLOC.
67126         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
67127         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
67128         (gl_REPLACE_MALLOC): New macro.
67129         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
67131 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
67133         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
67134         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
67135         This macro takes 3 arguments, not 4.
67137 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
67139         ipv6: fix detection under mingw
67140         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
67141         in6_addr.
67143 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
67145         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
67146         that strtod() works when cross-compiling to a glibc version known
67147         to work.
67149 2010-06-15  Bruno Haible  <bruno@clisp.org>
67151         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
67153 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
67155         select: Correct timeout.
67156         * lib/select.c (rpl_select): Compute wait_timeout correctly.
67158 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
67160         git-version-gen: init shell var to avoid env var influence
67161         * build-aux/git-version-gen (v): Init shell var to empty.
67163 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
67165         priv-set: Don't assume that priv.h exists merely because getppriv does.
67166         See Jan Andersen's bug report about AIX 5L in
67167         http://lists.gnu.org/r/bug-tar/2010-06/msg00019.html
67168         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
67169         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
67170         * lib/priv-set.h: Likewise.
67171         * tests/test-priv-set.c: Likewise.
67173 2010-06-13  Bruno Haible  <bruno@clisp.org>
67175         relocatable: Make it easier to test whether to install wrappers.
67176         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
67177         RELOCATABLE_VIA_WRAPPER.
67179 2010-06-13  Bruno Haible  <bruno@clisp.org>
67181         gnulib-tool: Display specified modules and dependencies differently.
67182         * gnulib-tool (func_show_module_list): New function.
67183         (func_import, func_create_testdir): Invoke it.
67184         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
67186 2010-06-13  Bruno Haible  <bruno@clisp.org>
67188         gnulib-tool: Align code of func_import and func_create_testdir.
67189         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
67190         specified_modules.
67192 2010-06-12  Jim Meyering  <meyering@redhat.com>
67194         test-inttostr: avoid spurious failure on Solaris 9
67195         * tests/test-inttostr.c (main): Skip the test when snprintf fails
67196         to accept "%ju".  Reported by Bruno Haible.
67198 2010-06-11  Jim Meyering  <meyering@redhat.com>
67200         test-sys_socket: mark variables as used more readably
67201         * tests/test-sys_socket.c (main): Mark otherwise unused variables
67202         as "used" explicitly via (void) statement casts.  This is more
67203         readable than using them in an artificial return expression.
67204         Suggestion from Bruno Haible.
67206 2010-06-11  Bruno Haible  <bruno@clisp.org>
67208         Avoid some more warnings from "gcc -Wwrite-strings".
67209         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
67210         to 'const char *'.
67211         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
67212         * tests/test-c-strcasestr.c (main): Likewise.
67213         * tests/test-mbscasestr1.c (main): Likewise.
67214         * tests/test-mbscasestr2.c (main): Likewise.
67215         * tests/test-memmem.c (main): Likewise.
67216         * tests/test-strstr.c (main): Likewise.
67217         * tests/test-strcasestr.c (main): Likewise.
67219 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67221         init.sh: change framework_failure_ to fail with status 99, not 1
67222         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
67223         automake's parallel-tests rule that this is an unexpected failure,
67224         even if the test is listed in XFAIL_TESTS.
67226 2010-06-11  Jim Meyering  <meyering@redhat.com>
67228         test-inttostr: avoid warnings about 4-6KB literal strings
67229         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
67230         Include "macros.h", for its definition of ASSERT.
67231         (CK): s/assert/ASSERT/
67232         * modules/inttostr-tests (Files): Add macros.h.
67234         init.sh: don't use $ME_ or skip_ before they are defined
67235         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
67236         their first uses.  Also hoist their companions: warn_, fail_,
67237         framework_failure_, $stderr_fileno.  Prompted by a patch from
67238         Stefano Lattarini.
67240         test-sys_socket: avoid set-but-not-used warnings from gcc
67241         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
67242         avoid warning about set-but-not-used variables.
67244         test-xvasprintf: avoid 'const' discard warnings
67245         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
67246         "const" when assigning from literal strings.
67247         (test_xasprintf): Add "void" in function argument list to placate
67248         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
67250         tests: avoid compilation warnings in argmatch and exclude tests...
67251         in packages that define ARGMATCH_DIE_DECL, like coreutils.
67252         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
67253         Since it always exits, declare with the "noreturn" attribute.
67254         * tests/test-argmatch.c: Likewise.
67256         tests: avoid 'const' discard warnings in mbsstr tests
67257         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
67258         * tests/test-mbsstr2.c (main): Likewise.
67260         test-verify: avoid warning from gcc's -Wmissing-declarations
67261         * tests/test-verify.c (function): Declare to be static.
67263         test-inttostr.c: include <string.h> for use of strcmp
67264         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
67266         test-linkat: avoid failed assertion on "other" architectures
67267         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
67268         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
67269         sparc: https://bugs.launchpad.net/bugs/591968
67271 2010-06-11  Jim Meyering  <meyering@redhat.com>
67273         printf.m4: avoid autoconf's "Expanded Before Required" warning
67274         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
67275         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
67276         autoconf warning.
67278 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
67280         Replacement header templates are now named with ".in", not "_".
67281         * doc/gnulib-intro.texi: Correct.
67283 2010-06-10  Jim Meyering  <meyering@redhat.com>
67285         inttostr-tests: depend on snprintf, not snprintf-posix
67286         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
67287         snprintf-posix, to avoid this aclocal failure:
67288           missing file gnulib-tests/vasnprintf.c
67289           configure.ac:45: error: expected source file, required through \
67290           AC_LIBSOURCES, not found
67292 2010-06-10  Jim Meyering  <meyering@redhat.com>
67294         inttostr: add a new function, inttostr, and tests
67295         The namesake function was not available.  The existence of the
67296         template file, inttostr.c makes its addition nontrivial.
67297         * lib/anytostr.c: Rename from inttostr.c.
67298         (anytostr): Rename from inttostr.
67299         * lib/inttostr.c: New file.
67300         * modules/inttostr (Files): Add anytostr.c.
67301         (Makefile.am): Set lib_SOURCES instead of ...
67302         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
67303         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
67304         * lib/offtostr.c: Likewise.
67305         * lib/uinttostr.c: Likewise.
67306         * lib/umaxtostr.c: Likewise.
67307         * modules/inttostr-tests: New file.
67308         * tests/test-inttostr.c: New file.  Test these functions.
67310 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
67311             Bruno Haible  <bruno@clisp.org>
67313         Add "Extending Gnulib" chapter to manual.
67314         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
67315         chapter.
67316         (Extending Gnulib): New chapter.
67317         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
67318         chapter.
67320 2010-06-09  Bruno Haible  <bruno@clisp.org>
67322         Avoid relocwrapper link errors due to gnulib replacement functions.
67323         * lib/areadlink.c: Use the system's malloc, realloc functions.
67324         (areadlink): Set errno to ENOMEM explicitly.
67325         * modules/areadlink (Depends-on): Remove malloc-posix.
67326         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67328 2010-06-09  Bruno Haible  <bruno@clisp.org>
67330         Avoid relocwrapper link errors due to gnulib replacement functions.
67331         * lib/canonicalize-lgpl.c: Use the system's malloc function.
67332         * lib/malloca.c: Likewise.
67333         * lib/relocatable.c: Likewise.
67334         * lib/progreloc.c: Use the system's malloc, sprintf functions.
67335         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
67336         * lib/setenv.c: Use the system's malloc, realloc functions.
67337         * lib/strerror.c: Use the system's sprintf function.
67338         Reported by Ben Pfaff <blp@cs.stanford.edu>.
67340 2010-06-04  Bruno Haible  <bruno@clisp.org>
67342         Prefer documented low-level autoconf macro names.
67343         * m4/lib-link.m4: Use m4_translit instead of translit.
67344         * m4/environ.m4: Likewise.
67345         * m4/mathfunc.m4: Likewise.
67346         * m4/onceonly.m4: Likewise.
67347         * m4/stdint.m4: Likewise.
67348         Suggested by Eric Blake.
67350 2010-06-04  Martin Lambers  <marlam@marlam.de>
67351             Bruno Haible  <bruno@clisp.org>
67353         havelib: Allow library names with '+' characters.
67354         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
67355         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
67357 2010-06-09  Bruno Haible  <bruno@clisp.org>
67359         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
67360         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
67361         realloc failed.
67363 2010-06-08  Peter Simons  <simons@cryp.to>
67365         maint.mk: make the news-check rule more configurable
67366         * top/maint.mk (news-check-lines-spec): New variable.
67367         (news-check): Use "sed -n 1,10p" in place of "head".
67369 2010-06-07  Jim Meyering  <meyering@redhat.com>
67371         do-release-commit-and-tag: fix typo in --help
67372         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
67374         regex: avoid new dead-code warning with gcc-4.6.0
67375         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
67376         if-block containing a while-loop.  It's been unused for at least
67377         5 years.
67379 2010-06-05  Bruno Haible  <bruno@clisp.org>
67381         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
67382         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
67384 2010-06-04  Bruno Haible  <bruno@clisp.org>
67386         Update to GNU gettext 0.18.1.
67387         * modules/gettext (configure.ac): Require gettext infrastructure from
67388         version 0.18.1.
67390 2010-06-03  Bruno Haible  <bruno@clisp.org>
67392         Don't use AC_LIBOBJ with file names in subdirectories.
67393         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
67394         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
67395         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
67396         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
67397         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
67398         gl_LIBUNISTRING_LIBSOURCE.
67399         (Makefile.am): Augment lib_SOURCES here, conditionally.
67400         * NEWS: Drop requirement for Automake option 'subdir-objects'.
67402 2010-06-03  Bruno Haible  <bruno@clisp.org>
67404         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
67405         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
67406         expansion does not end with a newline.
67407         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
67408         unnecessary newline.
67410 2010-06-03  Bruno Haible  <bruno@clisp.org>
67412         Reduce dependencies.
67413         * tests/test-quotearg.h: New file, extracted from
67414         tests/test-quotearg.c.
67415         * tests/test-quotearg-simple.c: New file, extracted from
67416         tests/test-quotearg.c.
67417         * tests/test-quotearg.c: Don't include <ctype.h>.
67418         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
67419         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
67420         use_quote_double_quotes, use_quotearg_colon): Moved to
67421         tests/test-quotearg.h.
67422         (results_g, flag_results, custom_quotes, custom_results): Moved
67423         to tests/test-quotearg-simple.c.
67424         (main): Moved the part that does not depend on gettext to
67425         tests/test-quotearg-simple.c. Return 77 if the test cannot be
67426         performed.
67427         * modules/quotearg-simple: New file.
67428         * modules/quotearg-simple-tests: New file.
67429         * modules/quotearg (Depends-on): Add quotearg-simple.
67430         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
67431         (Files): Add tests/test-quotearg.h.
67432         Reported by Paolo Bonzini.
67434 2010-06-03  Bruno Haible  <bruno@clisp.org>
67436         Reduce dependencies.
67437         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
67439 2010-06-03  Bruno Haible  <bruno@clisp.org>
67441         time: Undefine more broken macros.
67442         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
67443         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
67444         Reported by Eric Blake.
67446 2010-06-03  Bruno Haible  <bruno@clisp.org>
67448         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
67449         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
67450         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
67451         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
67452         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
67453         Reported by Ludovic Courtès <ludo@gnu.org>.
67455 2010-06-02  Eric Blake  <eblake@redhat.com>
67457         time: work with mingw + pthreads-win32 library
67458         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
67459         if timespec is defined only in pthread.h.
67460         * modules/time (Makefile.am): Substitute it.
67461         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
67462         <pthread.h>, when needed.
67463         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
67464         from the library.
67466 2010-05-31  Bruno Haible  <bruno@clisp.org>
67468         Avoid expanding two macros in the wrong order.
67469         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
67470         gl_LIBUNISTRING if it is defined.
67471         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
67472         autoconf >= 2.64.
67473         Reported by Ludovic Courtès <ludo@gnu.org>.
67475 2010-05-27  Jim Meyering  <meyering@redhat.com>
67477         maint.mk: also prohibit "#undef" of always-defined symbols
67478         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
67479         Allow more than one space before the symbol name.
67480         (sc_prohibit_always-defined_macros): Use grep's -E, now that
67481         the regexp uses alternation.
67483 2010-05-26  Eric Blake  <eblake@redhat.com>
67485         maint.mk: avoid echo -e
67486         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
67487         Convert all uses of echo -* to printf.
67488         Reported by Matthias Bolte.
67490 2010-05-25  Bruno Haible  <bruno@clisp.org>
67492         Update to GNU gettext 0.18, part 2.
67493         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
67494         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
67496 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67498         Add missing include in test-pwrite.c.
67499         * tests/test-pwrite.c: Include string.h, for strcmp.
67501 2010-05-24  Bruno Haible  <bruno@clisp.org>
67503         * NEWS: Mention requirement for Automake option 'subdir-objects'.
67505 2010-05-24  Bruno Haible  <bruno@clisp.org>
67507         Don't use conversion with transliteration in u{8,16,32}_strcoll.
67508         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
67509         iconveh_error argument.
67510         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
67511         U_STRCONV_TO_LOCALE.
67512         * lib/unistr/u16-strcoll.c: Likewise.
67513         * lib/unistr/u32-strcoll.c: Likewise.
67514         * modules/unistr/u8-strcoll (Depends-on): Add
67515         uniconv/u8-strconv-to-enc, localcharset. Remove
67516         uniconv/u8-strconv-to-locale.
67517         (configure.ac): Bump version number.
67518         * modules/unistr/u16-strcoll (Depends-on): Add
67519         uniconv/u16-strconv-to-enc, localcharset. Remove
67520         uniconv/u16-strconv-to-locale.
67521         (configure.ac): Bump version number.
67522         * modules/unistr/u32-strcoll (Depends-on): Add
67523         uniconv/u32-strconv-to-enc, localcharset. Remove
67524         uniconv/u32-strconv-to-locale.
67525         (configure.ac): Bump version number.
67527 2010-05-24  Bruno Haible  <bruno@clisp.org>
67529         Avoid a test failure on NetBSD 5.0.
67530         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
67531         an iconv() bug.
67533 2010-05-24  Bruno Haible  <bruno@clisp.org>
67535         Adjust #include directive style.
67536         * modules/regex (Includes): Recommend to write <regex.h>.
67538 2010-05-24  Bruno Haible  <bruno@clisp.org>
67540         regex: Don't require alloca.
67541         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
67542         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
67543         only inside if (0).
67545 2010-05-23  Jim Meyering  <meyering@redhat.com>
67547         test-renameat.c: include <sys/stat.h>
67548         * tests/test-renameat.c: Include <sys/stat.h>; required for
67549         definition of S_IS* macros.
67551 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
67553         Update maintainer documentation for 'relocatable-prog' module.
67554         * doc/relocatable-maint.texi: Update.
67555         Comments by Bruno Haible.
67557 2010-05-23  Bruno Haible  <bruno@clisp.org>
67559         git-merge-changelog: Enable --split-merged-entry by default.
67560         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
67561         (usage): Don't mention this option any more.
67562         Reported by Ralf Wildenhues.
67564 2010-05-23  Jim Meyering  <meyering@redhat.com>
67566         test-pwrite: do not leave behind a test file named "out"
67567         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
67568         The trivial-looking use of init.sh is really necessary.
67569         It ensures that the temporary file, "out", is created in
67570         a temporary directory, and removed upon termination.
67571         * tests/test-pwrite.sh: Re-add file.
67572         * modules/pwrite-tests: Reference it.
67574 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67576         Fix output redirection buglet in init.sh.
67577         * tests/init.sh: Fix redirection of stderr.
67579 2010-05-20  Simon Josefsson  <simon@josefsson.org>
67581         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
67583 2010-05-17  Simon Josefsson  <simon@josefsson.org>
67585         * modules/valgrind-tests: New file.
67586         * m4/valgrind-tests.m4: New file.
67587         * doc/valgrind-tests.texi: New file.
67588         * doc/gnulib.texi (Running self-tests under valgrind): New
67589         section.
67591 2010-05-19  Bruno Haible  <bruno@clisp.org>
67593         Clean up dead code in recent commit.
67594         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
67595         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
67596         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
67597         Suggested by Paolo Bonzini.
67599 2010-05-19  Bruno Haible  <bruno@clisp.org>
67601         Avoid valgrind error reports from libunistring.
67602         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
67603         * modules/libunistring (Files): Add it.
67604         * modules/libunistring-optional (Files): Likewise.
67606 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
67607             Bruno Haible  <bruno@clisp.org>
67609         New module 'libunistring-optional'.
67610         * modules/libunistring-optional: New file.
67611         * m4/libunistring-base.m4: New file.
67612         * m4/libunistring-optional.m4: New file.
67613         * lib/unicase.in.h: Renamed from lib/unicase.h.
67614         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
67615         * lib/unictype.in.h: Renamed from lib/unictype.h.
67616         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
67617         * lib/uniname.in.h: Renamed from lib/uniname.h.
67618         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
67619         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
67620         * lib/unistr.in.h: Renamed from lib/unistr.h.
67621         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
67622         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
67623         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
67624         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
67625         gl_LIBUNISTRING. If the library was found, determine the installed
67626         version and set LIBUNISTRING_VERSION.
67627         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
67628         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
67629         handle a configuration option --with-included-libunistring.
67630         * modules/libunistring (Files): Add m4/absolute-header.m4.
67631         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
67632         Add m4/libunistring-base.m4.
67633         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67634         (Makefile.am): Build unicase.h from unicase.in.h.
67635         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
67636         Add m4/libunistring-base.m4.
67637         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67638         (Makefile.am): Build uniconv.h from uniconv.in.h.
67639         * modules/unictype/base (Files): Use unictype.in.h instead of
67640         unictype.h. Add m4/libunistring-base.m4.
67641         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67642         (Makefile.am): Build unictype.h from unictype.in.h.
67643         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
67644         Add m4/libunistring-base.m4.
67645         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67646         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
67647         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
67648         Add m4/libunistring-base.m4.
67649         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67650         (Makefile.am): Build uniname.h from uniname.in.h.
67651         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
67652         Add m4/libunistring-base.m4.
67653         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67654         (Makefile.am): Build uninorm.h from uninorm.in.h.
67655         * modules/unistdio/base (Files): Use unistdio.in.h instead of
67656         unistdio.h. Add m4/libunistring-base.m4.
67657         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67658         (Makefile.am): Build unistdio.h from unistdio.in.h.
67659         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
67660         Add m4/libunistring-base.m4.
67661         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67662         (Makefile.am): Build unistr.h from unistr.in.h.
67663         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
67664         Add m4/libunistring-base.m4.
67665         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67666         (Makefile.am): Build unitypes.h from unitypes.in.h.
67667         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
67668         Add m4/libunistring-base.m4.
67669         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67670         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
67671         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
67672         uniwidth.h. Add m4/libunistring-base.m4.
67673         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
67674         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
67675         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
67676         instead of augmenting lib_SOURCES.
67677         * modules/unicase/empty-suffix-context: Likewise.
67678         * modules/unicase/locale-language: Likewise.
67679         * modules/unicase/tolower: Likewise.
67680         * modules/unicase/totitle: Likewise.
67681         * modules/unicase/toupper: Likewise.
67682         * modules/unicase/u8-casecmp: Likewise.
67683         * modules/unicase/u8-casecoll: Likewise.
67684         * modules/unicase/u8-casefold: Likewise.
67685         * modules/unicase/u8-casexfrm: Likewise.
67686         * modules/unicase/u8-ct-casefold: Likewise.
67687         * modules/unicase/u8-ct-tolower: Likewise.
67688         * modules/unicase/u8-ct-totitle: Likewise.
67689         * modules/unicase/u8-ct-toupper: Likewise.
67690         * modules/unicase/u8-is-cased: Likewise.
67691         * modules/unicase/u8-is-casefolded: Likewise.
67692         * modules/unicase/u8-is-lowercase: Likewise.
67693         * modules/unicase/u8-is-titlecase: Likewise.
67694         * modules/unicase/u8-is-uppercase: Likewise.
67695         * modules/unicase/u8-prefix-context: Likewise.
67696         * modules/unicase/u8-suffix-context: Likewise.
67697         * modules/unicase/u8-tolower: Likewise.
67698         * modules/unicase/u8-totitle: Likewise.
67699         * modules/unicase/u8-toupper: Likewise.
67700         * modules/unicase/u16-casecmp: Likewise.
67701         * modules/unicase/u16-casecoll: Likewise.
67702         * modules/unicase/u16-casefold: Likewise.
67703         * modules/unicase/u16-casexfrm: Likewise.
67704         * modules/unicase/u16-ct-casefold: Likewise.
67705         * modules/unicase/u16-ct-tolower: Likewise.
67706         * modules/unicase/u16-ct-totitle: Likewise.
67707         * modules/unicase/u16-ct-toupper: Likewise.
67708         * modules/unicase/u16-is-cased: Likewise.
67709         * modules/unicase/u16-is-casefolded: Likewise.
67710         * modules/unicase/u16-is-lowercase: Likewise.
67711         * modules/unicase/u16-is-titlecase: Likewise.
67712         * modules/unicase/u16-is-uppercase: Likewise.
67713         * modules/unicase/u16-prefix-context: Likewise.
67714         * modules/unicase/u16-suffix-context: Likewise.
67715         * modules/unicase/u16-tolower: Likewise.
67716         * modules/unicase/u16-totitle: Likewise.
67717         * modules/unicase/u16-toupper: Likewise.
67718         * modules/unicase/u32-casecmp: Likewise.
67719         * modules/unicase/u32-casecoll: Likewise.
67720         * modules/unicase/u32-casefold: Likewise.
67721         * modules/unicase/u32-casexfrm: Likewise.
67722         * modules/unicase/u32-ct-casefold: Likewise.
67723         * modules/unicase/u32-ct-tolower: Likewise.
67724         * modules/unicase/u32-ct-totitle: Likewise.
67725         * modules/unicase/u32-ct-toupper: Likewise.
67726         * modules/unicase/u32-is-cased: Likewise.
67727         * modules/unicase/u32-is-casefolded: Likewise.
67728         * modules/unicase/u32-is-lowercase: Likewise.
67729         * modules/unicase/u32-is-titlecase: Likewise.
67730         * modules/unicase/u32-is-uppercase: Likewise.
67731         * modules/unicase/u32-prefix-context: Likewise.
67732         * modules/unicase/u32-suffix-context: Likewise.
67733         * modules/unicase/u32-tolower: Likewise.
67734         * modules/unicase/u32-totitle: Likewise.
67735         * modules/unicase/u32-toupper: Likewise.
67736         * modules/unicase/ulc-casecmp: Likewise.
67737         * modules/unicase/ulc-casecoll: Likewise.
67738         * modules/unicase/ulc-casexfrm: Likewise.
67739         * modules/uniconv/u8-conv-from-enc: Likewise.
67740         * modules/uniconv/u8-conv-to-enc: Likewise.
67741         * modules/uniconv/u8-strconv-from-enc: Likewise.
67742         * modules/uniconv/u8-strconv-from-locale: Likewise.
67743         * modules/uniconv/u8-strconv-to-enc: Likewise.
67744         * modules/uniconv/u8-strconv-to-locale: Likewise.
67745         * modules/uniconv/u16-conv-from-enc: Likewise.
67746         * modules/uniconv/u16-conv-to-enc: Likewise.
67747         * modules/uniconv/u16-strconv-from-enc: Likewise.
67748         * modules/uniconv/u16-strconv-from-locale: Likewise.
67749         * modules/uniconv/u16-strconv-to-enc: Likewise.
67750         * modules/uniconv/u16-strconv-to-locale: Likewise.
67751         * modules/uniconv/u32-conv-from-enc: Likewise.
67752         * modules/uniconv/u32-conv-to-enc: Likewise.
67753         * modules/uniconv/u32-strconv-from-enc: Likewise.
67754         * modules/uniconv/u32-strconv-from-locale: Likewise.
67755         * modules/uniconv/u32-strconv-to-enc: Likewise.
67756         * modules/uniconv/u32-strconv-to-locale: Likewise.
67757         * modules/unictype/bidicategory-byname: Likewise.
67758         * modules/unictype/bidicategory-name: Likewise.
67759         * modules/unictype/bidicategory-of: Likewise.
67760         * modules/unictype/bidicategory-test: Likewise.
67761         * modules/unictype/block-list: Likewise.
67762         * modules/unictype/block-test: Likewise.
67763         * modules/unictype/category-C: Likewise.
67764         * modules/unictype/category-Cc: Likewise.
67765         * modules/unictype/category-Cf: Likewise.
67766         * modules/unictype/category-Cn: Likewise.
67767         * modules/unictype/category-Co: Likewise.
67768         * modules/unictype/category-Cs: Likewise.
67769         * modules/unictype/category-L: Likewise.
67770         * modules/unictype/category-Ll: Likewise.
67771         * modules/unictype/category-Lm: Likewise.
67772         * modules/unictype/category-Lo: Likewise.
67773         * modules/unictype/category-Lt: Likewise.
67774         * modules/unictype/category-Lu: Likewise.
67775         * modules/unictype/category-M: Likewise.
67776         * modules/unictype/category-Mc: Likewise.
67777         * modules/unictype/category-Me: Likewise.
67778         * modules/unictype/category-Mn: Likewise.
67779         * modules/unictype/category-N: Likewise.
67780         * modules/unictype/category-Nd: Likewise.
67781         * modules/unictype/category-Nl: Likewise.
67782         * modules/unictype/category-No: Likewise.
67783         * modules/unictype/category-P: Likewise.
67784         * modules/unictype/category-Pc: Likewise.
67785         * modules/unictype/category-Pd: Likewise.
67786         * modules/unictype/category-Pe: Likewise.
67787         * modules/unictype/category-Pf: Likewise.
67788         * modules/unictype/category-Pi: Likewise.
67789         * modules/unictype/category-Po: Likewise.
67790         * modules/unictype/category-Ps: Likewise.
67791         * modules/unictype/category-S: Likewise.
67792         * modules/unictype/category-Sc: Likewise.
67793         * modules/unictype/category-Sk: Likewise.
67794         * modules/unictype/category-Sm: Likewise.
67795         * modules/unictype/category-So: Likewise.
67796         * modules/unictype/category-Z: Likewise.
67797         * modules/unictype/category-Zl: Likewise.
67798         * modules/unictype/category-Zp: Likewise.
67799         * modules/unictype/category-Zs: Likewise.
67800         * modules/unictype/category-and: Likewise.
67801         * modules/unictype/category-and-not: Likewise.
67802         * modules/unictype/category-byname: Likewise.
67803         * modules/unictype/category-name: Likewise.
67804         * modules/unictype/category-none: Likewise.
67805         * modules/unictype/category-of: Likewise.
67806         * modules/unictype/category-or: Likewise.
67807         * modules/unictype/category-test: Likewise.
67808         * modules/unictype/combining-class: Likewise.
67809         * modules/unictype/ctype-alnum: Likewise.
67810         * modules/unictype/ctype-alpha: Likewise.
67811         * modules/unictype/ctype-blank: Likewise.
67812         * modules/unictype/ctype-cntrl: Likewise.
67813         * modules/unictype/ctype-digit: Likewise.
67814         * modules/unictype/ctype-graph: Likewise.
67815         * modules/unictype/ctype-lower: Likewise.
67816         * modules/unictype/ctype-print: Likewise.
67817         * modules/unictype/ctype-punct: Likewise.
67818         * modules/unictype/ctype-space: Likewise.
67819         * modules/unictype/ctype-upper: Likewise.
67820         * modules/unictype/ctype-xdigit: Likewise.
67821         * modules/unictype/decimal-digit: Likewise.
67822         * modules/unictype/digit: Likewise.
67823         * modules/unictype/mirror: Likewise.
67824         * modules/unictype/numeric: Likewise.
67825         * modules/unictype/property-alphabetic: Likewise.
67826         * modules/unictype/property-ascii-hex-digit: Likewise.
67827         * modules/unictype/property-bidi-arabic-digit: Likewise.
67828         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
67829         * modules/unictype/property-bidi-block-separator: Likewise.
67830         * modules/unictype/property-bidi-boundary-neutral: Likewise.
67831         * modules/unictype/property-bidi-common-separator: Likewise.
67832         * modules/unictype/property-bidi-control: Likewise.
67833         * modules/unictype/property-bidi-embedding-or-override: Likewise.
67834         * modules/unictype/property-bidi-eur-num-separator: Likewise.
67835         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
67836         * modules/unictype/property-bidi-european-digit: Likewise.
67837         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
67838         * modules/unictype/property-bidi-left-to-right: Likewise.
67839         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
67840         * modules/unictype/property-bidi-other-neutral: Likewise.
67841         * modules/unictype/property-bidi-pdf: Likewise.
67842         * modules/unictype/property-bidi-segment-separator: Likewise.
67843         * modules/unictype/property-bidi-whitespace: Likewise.
67844         * modules/unictype/property-byname: Likewise.
67845         * modules/unictype/property-combining: Likewise.
67846         * modules/unictype/property-composite: Likewise.
67847         * modules/unictype/property-currency-symbol: Likewise.
67848         * modules/unictype/property-dash: Likewise.
67849         * modules/unictype/property-decimal-digit: Likewise.
67850         * modules/unictype/property-default-ignorable-code-point: Likewise.
67851         * modules/unictype/property-deprecated: Likewise.
67852         * modules/unictype/property-diacritic: Likewise.
67853         * modules/unictype/property-extender: Likewise.
67854         * modules/unictype/property-format-control: Likewise.
67855         * modules/unictype/property-grapheme-base: Likewise.
67856         * modules/unictype/property-grapheme-extend: Likewise.
67857         * modules/unictype/property-grapheme-link: Likewise.
67858         * modules/unictype/property-hex-digit: Likewise.
67859         * modules/unictype/property-hyphen: Likewise.
67860         * modules/unictype/property-id-continue: Likewise.
67861         * modules/unictype/property-id-start: Likewise.
67862         * modules/unictype/property-ideographic: Likewise.
67863         * modules/unictype/property-ids-binary-operator: Likewise.
67864         * modules/unictype/property-ids-trinary-operator: Likewise.
67865         * modules/unictype/property-ignorable-control: Likewise.
67866         * modules/unictype/property-iso-control: Likewise.
67867         * modules/unictype/property-join-control: Likewise.
67868         * modules/unictype/property-left-of-pair: Likewise.
67869         * modules/unictype/property-line-separator: Likewise.
67870         * modules/unictype/property-logical-order-exception: Likewise.
67871         * modules/unictype/property-lowercase: Likewise.
67872         * modules/unictype/property-math: Likewise.
67873         * modules/unictype/property-non-break: Likewise.
67874         * modules/unictype/property-not-a-character: Likewise.
67875         * modules/unictype/property-numeric: Likewise.
67876         * modules/unictype/property-other-alphabetic: Likewise.
67877         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
67878         * modules/unictype/property-other-grapheme-extend: Likewise.
67879         * modules/unictype/property-other-id-continue: Likewise.
67880         * modules/unictype/property-other-id-start: Likewise.
67881         * modules/unictype/property-other-lowercase: Likewise.
67882         * modules/unictype/property-other-math: Likewise.
67883         * modules/unictype/property-other-uppercase: Likewise.
67884         * modules/unictype/property-paired-punctuation: Likewise.
67885         * modules/unictype/property-paragraph-separator: Likewise.
67886         * modules/unictype/property-pattern-syntax: Likewise.
67887         * modules/unictype/property-pattern-white-space: Likewise.
67888         * modules/unictype/property-private-use: Likewise.
67889         * modules/unictype/property-punctuation: Likewise.
67890         * modules/unictype/property-quotation-mark: Likewise.
67891         * modules/unictype/property-radical: Likewise.
67892         * modules/unictype/property-sentence-terminal: Likewise.
67893         * modules/unictype/property-soft-dotted: Likewise.
67894         * modules/unictype/property-space: Likewise.
67895         * modules/unictype/property-terminal-punctuation: Likewise.
67896         * modules/unictype/property-test: Likewise.
67897         * modules/unictype/property-titlecase: Likewise.
67898         * modules/unictype/property-unassigned-code-value: Likewise.
67899         * modules/unictype/property-unified-ideograph: Likewise.
67900         * modules/unictype/property-uppercase: Likewise.
67901         * modules/unictype/property-variation-selector: Likewise.
67902         * modules/unictype/property-white-space: Likewise.
67903         * modules/unictype/property-xid-continue: Likewise.
67904         * modules/unictype/property-xid-start: Likewise.
67905         * modules/unictype/property-zero-width: Likewise.
67906         * modules/unictype/scripts: Likewise.
67907         * modules/unictype/syntax-c-ident: Likewise.
67908         * modules/unictype/syntax-c-whitespace: Likewise.
67909         * modules/unictype/syntax-java-ident: Likewise.
67910         * modules/unictype/syntax-java-whitespace: Likewise.
67911         * modules/unilbrk/u8-possible-linebreaks: Likewise.
67912         * modules/unilbrk/u8-width-linebreaks: Likewise.
67913         * modules/unilbrk/u16-possible-linebreaks: Likewise.
67914         * modules/unilbrk/u16-width-linebreaks: Likewise.
67915         * modules/unilbrk/u32-possible-linebreaks: Likewise.
67916         * modules/unilbrk/u32-width-linebreaks: Likewise.
67917         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
67918         * modules/unilbrk/ulc-width-linebreaks: Likewise.
67919         * modules/uniname/uniname: Likewise.
67920         * modules/uninorm/canonical-decomposition: Likewise.
67921         * modules/uninorm/composition: Likewise.
67922         * modules/uninorm/decomposing-form: Likewise.
67923         * modules/uninorm/decomposition: Likewise.
67924         * modules/uninorm/filter: Likewise.
67925         * modules/uninorm/nfc: Likewise.
67926         * modules/uninorm/nfd: Likewise.
67927         * modules/uninorm/nfkc: Likewise.
67928         * modules/uninorm/nfkd: Likewise.
67929         * modules/uninorm/u8-normalize: Likewise.
67930         * modules/uninorm/u8-normcmp: Likewise.
67931         * modules/uninorm/u8-normcoll: Likewise.
67932         * modules/uninorm/u8-normxfrm: Likewise.
67933         * modules/uninorm/u16-normalize: Likewise.
67934         * modules/uninorm/u16-normcmp: Likewise.
67935         * modules/uninorm/u16-normcoll: Likewise.
67936         * modules/uninorm/u16-normxfrm: Likewise.
67937         * modules/uninorm/u32-normalize: Likewise.
67938         * modules/uninorm/u32-normcmp: Likewise.
67939         * modules/uninorm/u32-normcoll: Likewise.
67940         * modules/uninorm/u32-normxfrm: Likewise.
67941         * modules/unistdio/u8-asnprintf: Likewise.
67942         * modules/unistdio/u8-asprintf: Likewise.
67943         * modules/unistdio/u8-snprintf: Likewise.
67944         * modules/unistdio/u8-sprintf: Likewise.
67945         * modules/unistdio/u8-u8-asnprintf: Likewise.
67946         * modules/unistdio/u8-u8-asprintf: Likewise.
67947         * modules/unistdio/u8-u8-snprintf: Likewise.
67948         * modules/unistdio/u8-u8-sprintf: Likewise.
67949         * modules/unistdio/u8-u8-vasnprintf: Likewise.
67950         * modules/unistdio/u8-u8-vasprintf: Likewise.
67951         * modules/unistdio/u8-u8-vsnprintf: Likewise.
67952         * modules/unistdio/u8-u8-vsprintf: Likewise.
67953         * modules/unistdio/u8-vasnprintf: Likewise.
67954         * modules/unistdio/u8-vasprintf: Likewise.
67955         * modules/unistdio/u8-vsnprintf: Likewise.
67956         * modules/unistdio/u8-vsprintf: Likewise.
67957         * modules/unistdio/u16-asnprintf: Likewise.
67958         * modules/unistdio/u16-asprintf: Likewise.
67959         * modules/unistdio/u16-snprintf: Likewise.
67960         * modules/unistdio/u16-sprintf: Likewise.
67961         * modules/unistdio/u16-u16-asnprintf: Likewise.
67962         * modules/unistdio/u16-u16-asprintf: Likewise.
67963         * modules/unistdio/u16-u16-snprintf: Likewise.
67964         * modules/unistdio/u16-u16-sprintf: Likewise.
67965         * modules/unistdio/u16-u16-vasnprintf: Likewise.
67966         * modules/unistdio/u16-u16-vasprintf: Likewise.
67967         * modules/unistdio/u16-u16-vsnprintf: Likewise.
67968         * modules/unistdio/u16-u16-vsprintf: Likewise.
67969         * modules/unistdio/u16-vasnprintf: Likewise.
67970         * modules/unistdio/u16-vasprintf: Likewise.
67971         * modules/unistdio/u16-vsnprintf: Likewise.
67972         * modules/unistdio/u16-vsprintf: Likewise.
67973         * modules/unistdio/u32-asnprintf: Likewise.
67974         * modules/unistdio/u32-asprintf: Likewise.
67975         * modules/unistdio/u32-snprintf: Likewise.
67976         * modules/unistdio/u32-sprintf: Likewise.
67977         * modules/unistdio/u32-u32-asnprintf: Likewise.
67978         * modules/unistdio/u32-u32-asprintf: Likewise.
67979         * modules/unistdio/u32-u32-snprintf: Likewise.
67980         * modules/unistdio/u32-u32-sprintf: Likewise.
67981         * modules/unistdio/u32-u32-vasnprintf: Likewise.
67982         * modules/unistdio/u32-u32-vasprintf: Likewise.
67983         * modules/unistdio/u32-u32-vsnprintf: Likewise.
67984         * modules/unistdio/u32-u32-vsprintf: Likewise.
67985         * modules/unistdio/u32-vasnprintf: Likewise.
67986         * modules/unistdio/u32-vasprintf: Likewise.
67987         * modules/unistdio/u32-vsnprintf: Likewise.
67988         * modules/unistdio/u32-vsprintf: Likewise.
67989         * modules/unistdio/ulc-asnprintf: Likewise.
67990         * modules/unistdio/ulc-asprintf: Likewise.
67991         * modules/unistdio/ulc-fprintf: Likewise.
67992         * modules/unistdio/ulc-snprintf: Likewise.
67993         * modules/unistdio/ulc-sprintf: Likewise.
67994         * modules/unistdio/ulc-vasnprintf: Likewise.
67995         * modules/unistdio/ulc-vasprintf: Likewise.
67996         * modules/unistdio/ulc-vfprintf: Likewise.
67997         * modules/unistdio/ulc-vsnprintf: Likewise.
67998         * modules/unistdio/ulc-vsprintf: Likewise.
67999         * modules/unistr/u8-check: Likewise.
68000         * modules/unistr/u8-chr: Likewise.
68001         * modules/unistr/u8-cmp: Likewise.
68002         * modules/unistr/u8-cmp2: Likewise.
68003         * modules/unistr/u8-cpy: Likewise.
68004         * modules/unistr/u8-cpy-alloc: Likewise.
68005         * modules/unistr/u8-endswith: Likewise.
68006         * modules/unistr/u8-mblen: Likewise.
68007         * modules/unistr/u8-mbsnlen: Likewise.
68008         * modules/unistr/u8-mbtouc: Likewise.
68009         * modules/unistr/u8-mbtouc-unsafe: Likewise.
68010         * modules/unistr/u8-mbtoucr: Likewise.
68011         * modules/unistr/u8-move: Likewise.
68012         * modules/unistr/u8-next: Likewise.
68013         * modules/unistr/u8-prev: Likewise.
68014         * modules/unistr/u8-set: Likewise.
68015         * modules/unistr/u8-startswith: Likewise.
68016         * modules/unistr/u8-stpcpy: Likewise.
68017         * modules/unistr/u8-stpncpy: Likewise.
68018         * modules/unistr/u8-strcat: Likewise.
68019         * modules/unistr/u8-strchr: Likewise.
68020         * modules/unistr/u8-strcmp: Likewise.
68021         * modules/unistr/u8-strcoll: Likewise.
68022         * modules/unistr/u8-strcpy: Likewise.
68023         * modules/unistr/u8-strcspn: Likewise.
68024         * modules/unistr/u8-strdup: Likewise.
68025         * modules/unistr/u8-strlen: Likewise.
68026         * modules/unistr/u8-strmblen: Likewise.
68027         * modules/unistr/u8-strmbtouc: Likewise.
68028         * modules/unistr/u8-strncat: Likewise.
68029         * modules/unistr/u8-strncmp: Likewise.
68030         * modules/unistr/u8-strncpy: Likewise.
68031         * modules/unistr/u8-strnlen: Likewise.
68032         * modules/unistr/u8-strpbrk: Likewise.
68033         * modules/unistr/u8-strrchr: Likewise.
68034         * modules/unistr/u8-strspn: Likewise.
68035         * modules/unistr/u8-strstr: Likewise.
68036         * modules/unistr/u8-strtok: Likewise.
68037         * modules/unistr/u8-to-u16: Likewise.
68038         * modules/unistr/u8-to-u32: Likewise.
68039         * modules/unistr/u8-uctomb: Likewise.
68040         * modules/unistr/u16-check: Likewise.
68041         * modules/unistr/u16-chr: Likewise.
68042         * modules/unistr/u16-cmp: Likewise.
68043         * modules/unistr/u16-cmp2: Likewise.
68044         * modules/unistr/u16-cpy: Likewise.
68045         * modules/unistr/u16-cpy-alloc: Likewise.
68046         * modules/unistr/u16-endswith: Likewise.
68047         * modules/unistr/u16-mblen: Likewise.
68048         * modules/unistr/u16-mbsnlen: Likewise.
68049         * modules/unistr/u16-mbtouc: Likewise.
68050         * modules/unistr/u16-mbtouc-unsafe: Likewise.
68051         * modules/unistr/u16-mbtoucr: Likewise.
68052         * modules/unistr/u16-move: Likewise.
68053         * modules/unistr/u16-next: Likewise.
68054         * modules/unistr/u16-prev: Likewise.
68055         * modules/unistr/u16-set: Likewise.
68056         * modules/unistr/u16-startswith: Likewise.
68057         * modules/unistr/u16-stpcpy: Likewise.
68058         * modules/unistr/u16-stpncpy: Likewise.
68059         * modules/unistr/u16-strcat: Likewise.
68060         * modules/unistr/u16-strchr: Likewise.
68061         * modules/unistr/u16-strcmp: Likewise.
68062         * modules/unistr/u16-strcoll: Likewise.
68063         * modules/unistr/u16-strcpy: Likewise.
68064         * modules/unistr/u16-strcspn: Likewise.
68065         * modules/unistr/u16-strdup: Likewise.
68066         * modules/unistr/u16-strlen: Likewise.
68067         * modules/unistr/u16-strmblen: Likewise.
68068         * modules/unistr/u16-strmbtouc: Likewise.
68069         * modules/unistr/u16-strncat: Likewise.
68070         * modules/unistr/u16-strncmp: Likewise.
68071         * modules/unistr/u16-strncpy: Likewise.
68072         * modules/unistr/u16-strnlen: Likewise.
68073         * modules/unistr/u16-strpbrk: Likewise.
68074         * modules/unistr/u16-strrchr: Likewise.
68075         * modules/unistr/u16-strspn: Likewise.
68076         * modules/unistr/u16-strstr: Likewise.
68077         * modules/unistr/u16-strtok: Likewise.
68078         * modules/unistr/u16-to-u32: Likewise.
68079         * modules/unistr/u16-to-u8: Likewise.
68080         * modules/unistr/u16-uctomb: Likewise.
68081         * modules/unistr/u32-check: Likewise.
68082         * modules/unistr/u32-chr: Likewise.
68083         * modules/unistr/u32-cmp: Likewise.
68084         * modules/unistr/u32-cmp2: Likewise.
68085         * modules/unistr/u32-cpy: Likewise.
68086         * modules/unistr/u32-cpy-alloc: Likewise.
68087         * modules/unistr/u32-endswith: Likewise.
68088         * modules/unistr/u32-mblen: Likewise.
68089         * modules/unistr/u32-mbsnlen: Likewise.
68090         * modules/unistr/u32-mbtouc: Likewise.
68091         * modules/unistr/u32-mbtouc-unsafe: Likewise.
68092         * modules/unistr/u32-mbtoucr: Likewise.
68093         * modules/unistr/u32-move: Likewise.
68094         * modules/unistr/u32-next: Likewise.
68095         * modules/unistr/u32-prev: Likewise.
68096         * modules/unistr/u32-set: Likewise.
68097         * modules/unistr/u32-startswith: Likewise.
68098         * modules/unistr/u32-stpcpy: Likewise.
68099         * modules/unistr/u32-stpncpy: Likewise.
68100         * modules/unistr/u32-strcat: Likewise.
68101         * modules/unistr/u32-strchr: Likewise.
68102         * modules/unistr/u32-strcmp: Likewise.
68103         * modules/unistr/u32-strcoll: Likewise.
68104         * modules/unistr/u32-strcpy: Likewise.
68105         * modules/unistr/u32-strcspn: Likewise.
68106         * modules/unistr/u32-strdup: Likewise.
68107         * modules/unistr/u32-strlen: Likewise.
68108         * modules/unistr/u32-strmblen: Likewise.
68109         * modules/unistr/u32-strmbtouc: Likewise.
68110         * modules/unistr/u32-strncat: Likewise.
68111         * modules/unistr/u32-strncmp: Likewise.
68112         * modules/unistr/u32-strncpy: Likewise.
68113         * modules/unistr/u32-strnlen: Likewise.
68114         * modules/unistr/u32-strpbrk: Likewise.
68115         * modules/unistr/u32-strrchr: Likewise.
68116         * modules/unistr/u32-strspn: Likewise.
68117         * modules/unistr/u32-strstr: Likewise.
68118         * modules/unistr/u32-strtok: Likewise.
68119         * modules/unistr/u32-to-u16: Likewise.
68120         * modules/unistr/u32-to-u8: Likewise.
68121         * modules/unistr/u32-uctomb: Likewise.
68122         * modules/uniwbrk/u8-wordbreaks: Likewise.
68123         * modules/uniwbrk/u16-wordbreaks: Likewise.
68124         * modules/uniwbrk/u32-wordbreaks: Likewise.
68125         * modules/uniwbrk/ulc-wordbreaks: Likewise.
68126         * modules/uniwbrk/wordbreak-property: Likewise.
68127         * modules/uniwidth/u8-strwidth: Likewise.
68128         * modules/uniwidth/u8-width: Likewise.
68129         * modules/uniwidth/u16-strwidth: Likewise.
68130         * modules/uniwidth/u16-width: Likewise.
68131         * modules/uniwidth/u32-strwidth: Likewise.
68132         * modules/uniwidth/u32-width: Likewise.
68133         * modules/uniwidth/width: Likewise.
68134         * modules/unicase/cased-tests (Makefile.am): Link all test programs
68135         with $(LIBUNISTRING).
68136         * modules/unicase/ignorable-tests: Likewise.
68137         * modules/unicase/locale-language-tests: Likewise.
68138         * modules/unicase/tolower-tests: Likewise.
68139         * modules/unicase/totitle-tests: Likewise.
68140         * modules/unicase/toupper-tests: Likewise.
68141         * modules/unicase/u8-casecmp-tests: Likewise.
68142         * modules/unicase/u8-casecoll-tests: Likewise.
68143         * modules/unicase/u8-casefold-tests: Likewise.
68144         * modules/unicase/u8-is-cased-tests: Likewise.
68145         * modules/unicase/u8-is-casefolded-tests: Likewise.
68146         * modules/unicase/u8-is-lowercase-tests: Likewise.
68147         * modules/unicase/u8-is-titlecase-tests: Likewise.
68148         * modules/unicase/u8-is-uppercase-tests: Likewise.
68149         * modules/unicase/u8-tolower-tests: Likewise.
68150         * modules/unicase/u8-totitle-tests: Likewise.
68151         * modules/unicase/u8-toupper-tests: Likewise.
68152         * modules/unicase/u16-casecmp-tests: Likewise.
68153         * modules/unicase/u16-casecoll-tests: Likewise.
68154         * modules/unicase/u16-casefold-tests: Likewise.
68155         * modules/unicase/u16-is-cased-tests: Likewise.
68156         * modules/unicase/u16-is-casefolded-tests: Likewise.
68157         * modules/unicase/u16-is-lowercase-tests: Likewise.
68158         * modules/unicase/u16-is-titlecase-tests: Likewise.
68159         * modules/unicase/u16-is-uppercase-tests: Likewise.
68160         * modules/unicase/u16-tolower-tests: Likewise.
68161         * modules/unicase/u16-totitle-tests: Likewise.
68162         * modules/unicase/u16-toupper-tests: Likewise.
68163         * modules/unicase/u32-casecmp-tests: Likewise.
68164         * modules/unicase/u32-casecoll-tests: Likewise.
68165         * modules/unicase/u32-casefold-tests: Likewise.
68166         * modules/unicase/u32-is-cased-tests: Likewise.
68167         * modules/unicase/u32-is-casefolded-tests: Likewise.
68168         * modules/unicase/u32-is-lowercase-tests: Likewise.
68169         * modules/unicase/u32-is-titlecase-tests: Likewise.
68170         * modules/unicase/u32-is-uppercase-tests: Likewise.
68171         * modules/unicase/u32-tolower-tests: Likewise.
68172         * modules/unicase/u32-totitle-tests: Likewise.
68173         * modules/unicase/u32-toupper-tests: Likewise.
68174         * modules/unicase/ulc-casecmp-tests: Likewise.
68175         * modules/unicase/ulc-casecoll-tests: Likewise.
68176         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
68177         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
68178         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
68179         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
68180         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
68181         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
68182         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
68183         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
68184         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
68185         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
68186         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
68187         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
68188         * modules/unictype/bidicategory-byname-tests: Likewise.
68189         * modules/unictype/bidicategory-name-tests: Likewise.
68190         * modules/unictype/bidicategory-of-tests: Likewise.
68191         * modules/unictype/bidicategory-test-tests: Likewise.
68192         * modules/unictype/block-list-tests: Likewise.
68193         * modules/unictype/block-of-tests: Likewise.
68194         * modules/unictype/block-test-tests: Likewise.
68195         * modules/unictype/category-C-tests: Likewise.
68196         * modules/unictype/category-Cc-tests: Likewise.
68197         * modules/unictype/category-Cf-tests: Likewise.
68198         * modules/unictype/category-Cn-tests: Likewise.
68199         * modules/unictype/category-Co-tests: Likewise.
68200         * modules/unictype/category-Cs-tests: Likewise.
68201         * modules/unictype/category-L-tests: Likewise.
68202         * modules/unictype/category-Ll-tests: Likewise.
68203         * modules/unictype/category-Lm-tests: Likewise.
68204         * modules/unictype/category-Lo-tests: Likewise.
68205         * modules/unictype/category-Lt-tests: Likewise.
68206         * modules/unictype/category-Lu-tests: Likewise.
68207         * modules/unictype/category-M-tests: Likewise.
68208         * modules/unictype/category-Mc-tests: Likewise.
68209         * modules/unictype/category-Me-tests: Likewise.
68210         * modules/unictype/category-Mn-tests: Likewise.
68211         * modules/unictype/category-N-tests: Likewise.
68212         * modules/unictype/category-Nd-tests: Likewise.
68213         * modules/unictype/category-Nl-tests: Likewise.
68214         * modules/unictype/category-No-tests: Likewise.
68215         * modules/unictype/category-P-tests: Likewise.
68216         * modules/unictype/category-Pc-tests: Likewise.
68217         * modules/unictype/category-Pd-tests: Likewise.
68218         * modules/unictype/category-Pe-tests: Likewise.
68219         * modules/unictype/category-Pf-tests: Likewise.
68220         * modules/unictype/category-Pi-tests: Likewise.
68221         * modules/unictype/category-Po-tests: Likewise.
68222         * modules/unictype/category-Ps-tests: Likewise.
68223         * modules/unictype/category-S-tests: Likewise.
68224         * modules/unictype/category-Sc-tests: Likewise.
68225         * modules/unictype/category-Sk-tests: Likewise.
68226         * modules/unictype/category-Sm-tests: Likewise.
68227         * modules/unictype/category-So-tests: Likewise.
68228         * modules/unictype/category-Z-tests: Likewise.
68229         * modules/unictype/category-Zl-tests: Likewise.
68230         * modules/unictype/category-Zp-tests: Likewise.
68231         * modules/unictype/category-Zs-tests: Likewise.
68232         * modules/unictype/category-and-not-tests: Likewise.
68233         * modules/unictype/category-and-tests: Likewise.
68234         * modules/unictype/category-byname-tests: Likewise.
68235         * modules/unictype/category-name-tests: Likewise.
68236         * modules/unictype/category-none-tests: Likewise.
68237         * modules/unictype/category-of-tests: Likewise.
68238         * modules/unictype/category-or-tests: Likewise.
68239         * modules/unictype/category-test-withtable-tests: Likewise.
68240         * modules/unictype/combining-class-tests: Likewise.
68241         * modules/unictype/ctype-alnum-tests: Likewise.
68242         * modules/unictype/ctype-alpha-tests: Likewise.
68243         * modules/unictype/ctype-blank-tests: Likewise.
68244         * modules/unictype/ctype-cntrl-tests: Likewise.
68245         * modules/unictype/ctype-digit-tests: Likewise.
68246         * modules/unictype/ctype-graph-tests: Likewise.
68247         * modules/unictype/ctype-lower-tests: Likewise.
68248         * modules/unictype/ctype-print-tests: Likewise.
68249         * modules/unictype/ctype-punct-tests: Likewise.
68250         * modules/unictype/ctype-space-tests: Likewise.
68251         * modules/unictype/ctype-upper-tests: Likewise.
68252         * modules/unictype/ctype-xdigit-tests: Likewise.
68253         * modules/unictype/decimal-digit-tests: Likewise.
68254         * modules/unictype/digit-tests: Likewise.
68255         * modules/unictype/mirror-tests: Likewise.
68256         * modules/unictype/numeric-tests: Likewise.
68257         * modules/unictype/property-alphabetic-tests: Likewise.
68258         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
68259         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
68260         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
68261         * modules/unictype/property-bidi-block-separator-tests: Likewise.
68262         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
68263         * modules/unictype/property-bidi-common-separator-tests: Likewise.
68264         * modules/unictype/property-bidi-control-tests: Likewise.
68265         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
68266         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
68267         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
68268         * modules/unictype/property-bidi-european-digit-tests: Likewise.
68269         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
68270         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
68271         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
68272         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
68273         * modules/unictype/property-bidi-pdf-tests: Likewise.
68274         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
68275         * modules/unictype/property-bidi-whitespace-tests: Likewise.
68276         * modules/unictype/property-byname-tests: Likewise.
68277         * modules/unictype/property-combining-tests: Likewise.
68278         * modules/unictype/property-composite-tests: Likewise.
68279         * modules/unictype/property-currency-symbol-tests: Likewise.
68280         * modules/unictype/property-dash-tests: Likewise.
68281         * modules/unictype/property-decimal-digit-tests: Likewise.
68282         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
68283         * modules/unictype/property-deprecated-tests: Likewise.
68284         * modules/unictype/property-diacritic-tests: Likewise.
68285         * modules/unictype/property-extender-tests: Likewise.
68286         * modules/unictype/property-format-control-tests: Likewise.
68287         * modules/unictype/property-grapheme-base-tests: Likewise.
68288         * modules/unictype/property-grapheme-extend-tests: Likewise.
68289         * modules/unictype/property-grapheme-link-tests: Likewise.
68290         * modules/unictype/property-hex-digit-tests: Likewise.
68291         * modules/unictype/property-hyphen-tests: Likewise.
68292         * modules/unictype/property-id-continue-tests: Likewise.
68293         * modules/unictype/property-id-start-tests: Likewise.
68294         * modules/unictype/property-ideographic-tests: Likewise.
68295         * modules/unictype/property-ids-binary-operator-tests: Likewise.
68296         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
68297         * modules/unictype/property-ignorable-control-tests: Likewise.
68298         * modules/unictype/property-iso-control-tests: Likewise.
68299         * modules/unictype/property-join-control-tests: Likewise.
68300         * modules/unictype/property-left-of-pair-tests: Likewise.
68301         * modules/unictype/property-line-separator-tests: Likewise.
68302         * modules/unictype/property-logical-order-exception-tests: Likewise.
68303         * modules/unictype/property-lowercase-tests: Likewise.
68304         * modules/unictype/property-math-tests: Likewise.
68305         * modules/unictype/property-non-break-tests: Likewise.
68306         * modules/unictype/property-not-a-character-tests: Likewise.
68307         * modules/unictype/property-numeric-tests: Likewise.
68308         * modules/unictype/property-other-alphabetic-tests: Likewise.
68309         * modules/unictype/property-other-default-ignorable-code-point-tests:
68310         Likewise.
68311         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
68312         * modules/unictype/property-other-id-continue-tests: Likewise.
68313         * modules/unictype/property-other-id-start-tests: Likewise.
68314         * modules/unictype/property-other-lowercase-tests: Likewise.
68315         * modules/unictype/property-other-math-tests: Likewise.
68316         * modules/unictype/property-other-uppercase-tests: Likewise.
68317         * modules/unictype/property-paired-punctuation-tests: Likewise.
68318         * modules/unictype/property-paragraph-separator-tests: Likewise.
68319         * modules/unictype/property-pattern-syntax-tests: Likewise.
68320         * modules/unictype/property-pattern-white-space-tests: Likewise.
68321         * modules/unictype/property-private-use-tests: Likewise.
68322         * modules/unictype/property-punctuation-tests: Likewise.
68323         * modules/unictype/property-quotation-mark-tests: Likewise.
68324         * modules/unictype/property-radical-tests: Likewise.
68325         * modules/unictype/property-sentence-terminal-tests: Likewise.
68326         * modules/unictype/property-soft-dotted-tests: Likewise.
68327         * modules/unictype/property-space-tests: Likewise.
68328         * modules/unictype/property-terminal-punctuation-tests: Likewise.
68329         * modules/unictype/property-test-tests: Likewise.
68330         * modules/unictype/property-titlecase-tests: Likewise.
68331         * modules/unictype/property-unassigned-code-value-tests: Likewise.
68332         * modules/unictype/property-unified-ideograph-tests: Likewise.
68333         * modules/unictype/property-uppercase-tests: Likewise.
68334         * modules/unictype/property-variation-selector-tests: Likewise.
68335         * modules/unictype/property-white-space-tests: Likewise.
68336         * modules/unictype/property-xid-continue-tests: Likewise.
68337         * modules/unictype/property-xid-start-tests: Likewise.
68338         * modules/unictype/property-zero-width-tests: Likewise.
68339         * modules/unictype/scripts-tests: Likewise.
68340         * modules/unictype/syntax-c-ident-tests: Likewise.
68341         * modules/unictype/syntax-c-whitespace-tests: Likewise.
68342         * modules/unictype/syntax-java-ident-tests: Likewise.
68343         * modules/unictype/syntax-java-whitespace-tests: Likewise.
68344         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
68345         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
68346         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
68347         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
68348         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
68349         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
68350         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
68351         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
68352         * modules/uniname/uniname-tests: Likewise.
68353         * modules/uninorm/canonical-decomposition-tests: Likewise.
68354         * modules/uninorm/compat-decomposition-tests: Likewise.
68355         * modules/uninorm/composition-tests: Likewise.
68356         * modules/uninorm/decomposing-form-tests: Likewise.
68357         * modules/uninorm/decomposition-tests: Likewise.
68358         * modules/uninorm/filter-tests: Likewise.
68359         * modules/uninorm/nfc-tests: Likewise.
68360         * modules/uninorm/nfd-tests: Likewise.
68361         * modules/uninorm/nfkc-tests: Likewise.
68362         * modules/uninorm/nfkd-tests: Likewise.
68363         * modules/uninorm/u8-normcmp-tests: Likewise.
68364         * modules/uninorm/u8-normcoll-tests: Likewise.
68365         * modules/uninorm/u16-normcmp-tests: Likewise.
68366         * modules/uninorm/u16-normcoll-tests: Likewise.
68367         * modules/uninorm/u32-normcmp-tests: Likewise.
68368         * modules/uninorm/u32-normcoll-tests: Likewise.
68369         * modules/unistdio/u8-asnprintf-tests: Likewise.
68370         * modules/unistdio/u8-vasnprintf-tests: Likewise.
68371         * modules/unistdio/u8-vasprintf-tests: Likewise.
68372         * modules/unistdio/u8-vsnprintf-tests: Likewise.
68373         * modules/unistdio/u8-vsprintf-tests: Likewise.
68374         * modules/unistdio/u16-asnprintf-tests: Likewise.
68375         * modules/unistdio/u16-vasnprintf-tests: Likewise.
68376         * modules/unistdio/u16-vasprintf-tests: Likewise.
68377         * modules/unistdio/u16-vsnprintf-tests: Likewise.
68378         * modules/unistdio/u16-vsprintf-tests: Likewise.
68379         * modules/unistdio/u32-asnprintf-tests: Likewise.
68380         * modules/unistdio/u32-vasnprintf-tests: Likewise.
68381         * modules/unistdio/u32-vasprintf-tests: Likewise.
68382         * modules/unistdio/u32-vsnprintf-tests: Likewise.
68383         * modules/unistdio/u32-vsprintf-tests: Likewise.
68384         * modules/unistdio/ulc-asnprintf-tests: Likewise.
68385         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
68386         * modules/unistdio/ulc-vasprintf-tests: Likewise.
68387         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
68388         * modules/unistdio/ulc-vsprintf-tests: Likewise.
68389         * modules/unistr/u8-check-tests: Likewise.
68390         * modules/unistr/u8-chr-tests: Likewise.
68391         * modules/unistr/u8-cmp-tests: Likewise.
68392         * modules/unistr/u8-cmp2-tests: Likewise.
68393         * modules/unistr/u8-cpy-alloc-tests: Likewise.
68394         * modules/unistr/u8-cpy-tests: Likewise.
68395         * modules/unistr/u8-mblen-tests: Likewise.
68396         * modules/unistr/u8-mbsnlen-tests: Likewise.
68397         * modules/unistr/u8-mbtouc-tests: Likewise.
68398         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
68399         * modules/unistr/u8-mbtoucr-tests: Likewise.
68400         * modules/unistr/u8-move-tests: Likewise.
68401         * modules/unistr/u8-next-tests: Likewise.
68402         * modules/unistr/u8-prev-tests: Likewise.
68403         * modules/unistr/u8-set-tests: Likewise.
68404         * modules/unistr/u8-stpcpy-tests: Likewise.
68405         * modules/unistr/u8-stpncpy-tests: Likewise.
68406         * modules/unistr/u8-strcat-tests: Likewise.
68407         * modules/unistr/u8-strcmp-tests: Likewise.
68408         * modules/unistr/u8-strcoll-tests: Likewise.
68409         * modules/unistr/u8-strcpy-tests: Likewise.
68410         * modules/unistr/u8-strdup-tests: Likewise.
68411         * modules/unistr/u8-strlen-tests: Likewise.
68412         * modules/unistr/u8-strmblen-tests: Likewise.
68413         * modules/unistr/u8-strmbtouc-tests: Likewise.
68414         * modules/unistr/u8-strncat-tests: Likewise.
68415         * modules/unistr/u8-strncmp-tests: Likewise.
68416         * modules/unistr/u8-strncpy-tests: Likewise.
68417         * modules/unistr/u8-strnlen-tests: Likewise.
68418         * modules/unistr/u8-to-u16-tests: Likewise.
68419         * modules/unistr/u8-to-u32-tests: Likewise.
68420         * modules/unistr/u8-uctomb-tests: Likewise.
68421         * modules/unistr/u16-check-tests: Likewise.
68422         * modules/unistr/u16-chr-tests: Likewise.
68423         * modules/unistr/u16-cmp-tests: Likewise.
68424         * modules/unistr/u16-cmp2-tests: Likewise.
68425         * modules/unistr/u16-cpy-alloc-tests: Likewise.
68426         * modules/unistr/u16-cpy-tests: Likewise.
68427         * modules/unistr/u16-mblen-tests: Likewise.
68428         * modules/unistr/u16-mbsnlen-tests: Likewise.
68429         * modules/unistr/u16-mbtouc-tests: Likewise.
68430         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
68431         * modules/unistr/u16-mbtoucr-tests: Likewise.
68432         * modules/unistr/u16-move-tests: Likewise.
68433         * modules/unistr/u16-next-tests: Likewise.
68434         * modules/unistr/u16-prev-tests: Likewise.
68435         * modules/unistr/u16-set-tests: Likewise.
68436         * modules/unistr/u16-stpcpy-tests: Likewise.
68437         * modules/unistr/u16-stpncpy-tests: Likewise.
68438         * modules/unistr/u16-strcat-tests: Likewise.
68439         * modules/unistr/u16-strcmp-tests: Likewise.
68440         * modules/unistr/u16-strcoll-tests: Likewise.
68441         * modules/unistr/u16-strcpy-tests: Likewise.
68442         * modules/unistr/u16-strdup-tests: Likewise.
68443         * modules/unistr/u16-strlen-tests: Likewise.
68444         * modules/unistr/u16-strmblen-tests: Likewise.
68445         * modules/unistr/u16-strmbtouc-tests: Likewise.
68446         * modules/unistr/u16-strncat-tests: Likewise.
68447         * modules/unistr/u16-strncmp-tests: Likewise.
68448         * modules/unistr/u16-strncpy-tests: Likewise.
68449         * modules/unistr/u16-strnlen-tests: Likewise.
68450         * modules/unistr/u16-to-u32-tests: Likewise.
68451         * modules/unistr/u16-to-u8-tests: Likewise.
68452         * modules/unistr/u16-uctomb-tests: Likewise.
68453         * modules/unistr/u32-check-tests: Likewise.
68454         * modules/unistr/u32-chr-tests: Likewise.
68455         * modules/unistr/u32-cmp-tests: Likewise.
68456         * modules/unistr/u32-cmp2-tests: Likewise.
68457         * modules/unistr/u32-cpy-alloc-tests: Likewise.
68458         * modules/unistr/u32-cpy-tests: Likewise.
68459         * modules/unistr/u32-mblen-tests: Likewise.
68460         * modules/unistr/u32-mbsnlen-tests: Likewise.
68461         * modules/unistr/u32-mbtouc-tests: Likewise.
68462         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
68463         * modules/unistr/u32-mbtoucr-tests: Likewise.
68464         * modules/unistr/u32-move-tests: Likewise.
68465         * modules/unistr/u32-next-tests: Likewise.
68466         * modules/unistr/u32-prev-tests: Likewise.
68467         * modules/unistr/u32-set-tests: Likewise.
68468         * modules/unistr/u32-stpcpy-tests: Likewise.
68469         * modules/unistr/u32-stpncpy-tests: Likewise.
68470         * modules/unistr/u32-strcat-tests: Likewise.
68471         * modules/unistr/u32-strcmp-tests: Likewise.
68472         * modules/unistr/u32-strcoll-tests: Likewise.
68473         * modules/unistr/u32-strcpy-tests: Likewise.
68474         * modules/unistr/u32-strdup-tests: Likewise.
68475         * modules/unistr/u32-strlen-tests: Likewise.
68476         * modules/unistr/u32-strmblen-tests: Likewise.
68477         * modules/unistr/u32-strmbtouc-tests: Likewise.
68478         * modules/unistr/u32-strncat-tests: Likewise.
68479         * modules/unistr/u32-strncmp-tests: Likewise.
68480         * modules/unistr/u32-strncpy-tests: Likewise.
68481         * modules/unistr/u32-strnlen-tests: Likewise.
68482         * modules/unistr/u32-to-u16-tests: Likewise.
68483         * modules/unistr/u32-to-u8-tests: Likewise.
68484         * modules/unistr/u32-uctomb-tests: Likewise.
68485         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
68486         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
68487         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
68488         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
68489         * modules/uniwidth/u8-strwidth-tests: Likewise.
68490         * modules/uniwidth/u8-width-tests: Likewise.
68491         * modules/uniwidth/u16-strwidth-tests: Likewise.
68492         * modules/uniwidth/u16-width-tests: Likewise.
68493         * modules/uniwidth/u32-strwidth-tests: Likewise.
68494         * modules/uniwidth/u32-width-tests: Likewise.
68495         * modules/uniwidth/width-tests: Likewise.
68497 2010-05-18  Richard Jones  <rjones@redhat.com>
68499         doc: users.txt: list hivex
68500         * users.txt: Add hivex.
68502 2010-05-18  Richard Jones  <rjones@redhat.com>
68504         doc: users.txt: list febootstrap
68505         * users.txt: Add febootstrap.
68507 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
68509         bootstrap: fix an error when gnulib is not used as a git submodule
68510         * build-aux/bootstrap (gnulib_path): If its length is zero then
68511         assign "gnulib" to it.
68512         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
68514 2010-05-16  Bruno Haible  <bruno@clisp.org>
68516         Avoid autoconf warnings about AM_ICONV.
68517         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
68518         2.64.
68520 2010-05-16  Bruno Haible  <bruno@clisp.org>
68522         absolute-header: Make the macro usable in more situations.
68523         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
68524         from gl_ABSOLUTE_HEADER.
68525         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
68527 2010-05-16  James Youngman  <jay@gnu.org>
68529         doc: update users.txt
68530         * users.txt: Add CSSC.
68532 2010-05-16  Jim Meyering  <meyering@redhat.com>
68534         init.sh: fix an error in the previous change; add more comments
68535         * tests/init.sh: Compare exit code in loop against 9, not 2.
68536         Patch by Bruno Haible.
68537         Make the two tests more similar by adding an empty "then" clause.
68538         Add comments.
68540         init.sh: avoid unnecessary shell re-exec
68541         * tests/init.sh: Improve the re-exec-required check to first test the
68542         current shell.  If it passes the test, do not search for a shell that
68543         does pass, and do not re-exec.  This test is particularly contorted to
68544         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
68545         of $(...) evokes a syntax error and causes immediate shell exit with
68546         status 2.  Bruno Haible reported that the re-exec made it impossible
68547         to single-step through any init.sh-using script.
68549 2010-05-16  Bruno Haible  <bruno@clisp.org>
68551         Fix collision between gnulib's and libintl's printf replacements.
68552         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
68553         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
68554         (printf): When using GNU C, map the __printf__ function to rpl_printf
68555         via __asm__. When not using GNU C, define rpl_printf instead of
68556         __printf__.
68557         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
68558         commit.
68559         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
68560         commit.
68561         * m4/asm-underscore.m4: New file.
68562         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
68563         * modules/stdio (Files): Add m4/asm-underscore.m4.
68564         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
68565         Reported by Ben Pfaff.
68567 2010-05-16  Bruno Haible  <bruno@clisp.org>
68569         verify: Avoid skipping the test on openSUSE 11.0.
68570         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
68572 2010-05-13  Bruno Haible  <bruno@clisp.org>
68574         Avoid useless warnings from G++.
68575         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
68576         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
68577         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
68579 2010-05-11  Jim Meyering  <meyering@redhat.com>
68581         maint.mk: tweak preceding change
68582         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
68583         regexps tighter by anchoring at EOL, and make the new group "shy"
68584         for slightly decreased overhead.
68586 2010-05-11  Eric Blake  <eblake@redhat.com>
68588         maint.mk: gnulib doesn't guarantee NSIG
68589         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
68591 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68593         test-pwrite.c: Remove unused variable declaration.
68594         * tests/test-pwrite.c (main): Remove read_buf declaration.
68596         Remove useless test-pwrite.sh file.
68597         * tests/test-pwrite.sh: Delete file.
68598         * modules/pwrite-tests: Remove references.
68599         Reported by Bruno Haible.
68601 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
68603         init.sh: fix a typo
68604         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
68606 2010-05-10  Jim Meyering  <meyering@redhat.com>
68608         maint.mk: avoid using a temporary file in the always-defined-macros check
68609         * top/maint.mk (.re-defmac): Remove rule.
68610         (gl_trap_): Remove definition.
68611         (sc_prohibit_always-defined_macros): Rewrite not to create and
68612         depend on a temporary file.  Instead, depend on GNU grep's ability
68613         to read a list of regular expressions from stdin when given "-f -".
68615 2010-05-09  Bruno Haible  <bruno@clisp.org>
68617         Update to GNU gettext 0.18, part 1.
68618         * m4/gettext.m4: Update to GNU gettext 0.18.
68619         * m4/intl.m4: Likewise.
68620         * m4/po.m4: Likewise.
68621         * modules/gettext (Files): Add m4/fcntl-o.m4.
68622         (configure.ac): Require gettext infrastructure from version 0.18.
68624 2010-05-09  Jim Meyering  <meyering@redhat.com>
68626         init.sh: enable MALLOC_PERTURB_
68627         * tests/init.sh: Enable glibc's malloc-perturbing option.
68629         maint.mk: improve sc_cross_check_PATH_usage_in_tests
68630         With my recent change in init.sh from the two-line form:
68631             -#   : ${srcdir=.}
68632             -#   . "$srcdir/init.sh"; path_prepend_ .
68633             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
68634         I noticed that using the one-line form would cause this test
68635         to fail with a false-positive, or to stop working altogether,
68636         depending on whether help-version changed or all the tests did.
68637         * top/maint.mk (_hv_regex): Remove this definition.
68638         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
68639         (_hv_regex_strong): Use a stronger regex to check for conformance.
68640         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
68641         Give a separate diagnostic for lack of conforming use.
68643         maint.mk: prohibit definition of symbols defined by gnulib
68644         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
68645         definition of symbols defined by gnulib.
68647 2010-05-09  Bruno Haible  <bruno@clisp.org>
68649         acl: Avoid test failure on Cygwin-hosted mingw.
68650         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
68652 2010-05-09  Bruno Haible  <bruno@clisp.org>
68654         error: Use system's fcntl function.
68655         * lib/error.c (fcntl): Undefine.
68657 2010-05-09  Jim Meyering  <meyering@redhat.com>
68659         verify: adjust formatting to be more consistent
68660         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
68661         argument-list '('s, and after one comma.
68663 2010-05-09  Bruno Haible  <bruno@clisp.org>
68665         error: More reliable output on mingw.
68666         * lib/error.c: Include <windows.h>.
68667         (is_open): New function.
68668         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
68669         defined.
68671 2010-05-09  Bruno Haible  <bruno@clisp.org>
68673         vasnprintf: Fix syntax errors in libintl build on mingw.
68674         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
68675         pad_ourselves and prec_ourselves after use.
68677 2010-05-08  Bruno Haible  <bruno@clisp.org>
68679         * lib/config.charset: Update comments for Cygwin 1.7.
68680         * lib/localcharset.c: Likewise.
68682 2010-05-07  Jim Meyering  <meyering@redhat.com>
68684         init.sh: improve comments
68685         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
68686         . "${srcdir=.}/init.sh"; path_prepend_ .
68687         Add a note about path_prepend_ and the alternative of using
68688         TESTS_ENVIRONMENT.
68690 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
68692         exclude: Unescape hashed patterns in wildcard mode.
68693         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
68694         to the hash list.
68695         * tests/test-exclude8.sh: New test case.
68696         * modules/exclude-tests: Add new test.
68698 2010-05-05  Eric Blake  <eblake@redhat.com>
68700         verify: automate tests
68701         * modules/verify-tests: New module.
68702         * tests/test-verify.sh: New file.
68703         * tests/test-verify.c: Guard each negative test with a unique id.
68704         Also avoid warning about unused left hand of comma expressions.
68706 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
68708         Further improvements to verify.h, suggested by Eric Blake.
68709         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
68710         the GL_* versions, to avoid collision with OpenGL.
68711         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
68712         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
68713         than testing merely whether it's defined.
68715         Modify verify.h to pacify gcc -Wredundant_decls.
68716         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
68717         These use the prefix "GL_" since they're likely to be useful elsewhere.
68718         We may need to break them out into a different .h file.
68719         (__COUNTER__): Define to 0 if the compiler doesn't support it.
68720         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
68721         of verify_function__.
68723 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68725         Tests for module pwrite.
68726         * modules/pwrite-tests: New file.
68727         * tests/test-pwrite.sh: New file.
68728         * tests/test-pwrite.c: New file.
68730         New module pwrite.
68731         * lib/unistd.in.h (pwrite): New declaration.
68732         * lib/pwrite.c: New file, from glibc with modifications.
68733         * m4/pwrite.m4: New file.
68734         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
68735         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
68736         REPLACE_PWRITE.
68737         * modules/pwrite: New file.
68738         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
68739         REPLACE_PWRITE.
68740         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
68741         * doc/posix-functions/pwrite.texi: Mention the new module.
68743 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
68745         pread: Update documentation.
68746         * doc/posix-functions/pread.texi: Mention the 'pread' module.
68748 2010-05-04  Eric Blake  <eblake@redhat.com>
68750         docs: update cygwin progress
68751         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
68752         this bug.
68753         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
68754         Added in cygwin 1.7.2.
68755         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
68756         Likewise.
68757         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
68758         Likewise.
68759         * doc/glibc-functions/dup3.texi (dup3): Likewise.
68760         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
68761         * doc/glibc-functions/accept4.texi (accept4): Likewise.
68762         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
68763         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
68764         Mention nproc module.
68765         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
68766         bug in cygwin 1.7.5 addition.
68767         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
68768         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
68769         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
68770         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
68771         1.7.5.
68772         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
68773         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
68774         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
68775         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
68776         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
68777         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
68778         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
68779         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
68780         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
68781         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
68782         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
68783         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
68784         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
68785         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
68786         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
68787         Likewise.
68788         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
68789         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
68790         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
68791         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
68792         Likewise.
68793         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
68794         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
68795         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
68796         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
68797         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
68798         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
68799         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
68800         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
68801         Likewise.
68802         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
68803         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
68804         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
68805         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
68806         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
68807         Likewise.
68808         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
68809         Likewise.
68810         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
68811         Likewise.
68812         * doc/glibc-functions/xdrrec_endofrecord.texi
68813         (xdrrec_endofrecord): Likewise.
68814         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
68815         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
68816         Likewise.
68817         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
68818         Likewise.
68820 2010-05-04  Jim Meyering  <meyering@redhat.com>
68822         gendocs.sh: make its "-s FILE" option more useful
68823         * build-aux/gendocs.sh: When honoring the -s FILE option, update
68824         $PACKAGE to reflect the probably-different basename of "FILE".
68826 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
68828         bootstrap: don't ignore download_po_files failure
68829         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
68830         failure.
68832 2010-05-03  Jim Meyering  <meyering@redhat.com>
68834         maint.mk: allow to pass options to gendocs.sh
68835         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
68836         (gendocs_options_): New overridable variable.
68838         gnu-web-doc-update: don't ignore configure or build failure
68839         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
68841         announce-gen: backslash-escape '@'s in --help output
68842         * build-aux/announce-gen: Fix syntax errors.
68844         maint.mk, announce-gen: allow project-specific announcement mail headers
68845         * top/maint.mk (translation_project_): Define default.
68846         (announcement_Cc_, announcement_mail_headers_): Likewise.
68847         (announcement): Invoke announce-gen with new --mail-headers option.
68848         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
68850         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
68851         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
68852         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
68853         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
68854         line in the "err2" output file when running "make check" in verbose
68855         mode (i.e., with set -x enabled).
68857 2010-05-03  Bruno Haible  <bruno@clisp.org>
68859         wctob: Fix for weird platforms.
68860         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
68861         argument value.
68863 2010-05-03  Jim Meyering  <meyering@redhat.com>
68865         maint.mk: prohibit unwarranted use of <strings.h>
68866         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
68867         strings.h in a file that does not also use strcasecmp, strncasecmp,
68868         ffs or ffsll.
68870         maint.mk: remove obsolete comments
68871         * top/maint.mk: Remove stale, commented-out rules.
68873 2010-05-02  Bruno Haible  <bruno@clisp.org>
68875         wcwidth: Declare also when it's aliased.
68876         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
68877         macro.
68879 2010-05-02  Bruno Haible  <bruno@clisp.org>
68881         Fix regression from 2010-04-25.
68882         * gnulib-tool (func_modules_transitive_closure): Check the status of
68883         all modules, not only of the tests that are of the form foo-tests where
68884         foo is a module.
68886 2010-05-02  Bruno Haible  <bruno@clisp.org>
68888         wctob: Work around nasty Cygwin 1.7.2 bug.
68889         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
68890         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
68892 2010-05-01  Bruno Haible  <bruno@clisp.org>
68894         fpurge: Sharper test.
68895         * tests/test-fpurge.c (main): Add one more ftell check.
68896         * modules/fpurge-tests (Depends-on): Add ftell.
68897         Suggested by Eric Blake.
68899 2010-05-01  Bruno Haible  <bruno@clisp.org>
68901         ftello: Another test.
68902         * tests/test-ftello3.c: New file.
68903         * modules/ftello-tests (Files): Add it.
68904         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68905         MOSTLYCLEANFILES.
68907         ftell: Another test.
68908         * tests/test-ftell3.c: New file.
68909         * modules/ftell-tests (Files): Add it.
68910         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
68911         MOSTLYCLEANFILES.
68913 2010-05-01  Bruno Haible  <bruno@clisp.org>
68915         ftell, ftello: Work around Solaris bug.
68916         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
68917         * lib/ftello.c: Include stdio-impl.h.
68918         (ftello): On Solaris, when _IOWRT is set, compute the result without
68919         looking at _IOREAD.
68920         * modules/ftello (Files): Add lib/stdio-impl.h.
68921         * doc/posix-functions/ftell.texi: Mention Solaris bug.
68922         * doc/posix-functions/ftello.texi: Likewise.
68923         Reported by Eric Blake.
68925 2010-05-01  Bruno Haible  <bruno@clisp.org>
68927         freading: Adapt to special meaning of _IOREAD flag on Solaris.
68928         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
68929         the _IOWRT flag is also set.
68931 2010-05-01  Bruno Haible  <bruno@clisp.org>
68933         Fix doc about a HP-UX stdio bug.
68934         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
68935         * doc/posix-functions/ftello.texi: Likewise.
68937 2010-05-01  Bruno Haible  <bruno@clisp.org>
68939         lseek test: Fix failure on Solaris.
68940         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
68941         output.
68943 2010-04-30  Jim Meyering  <meyering@redhat.com>
68945         bootstrap: don't ignore failure to generate po*/Makevars
68946         * build-aux/bootstrap (with_gettext): Don't ignore failure
68947         to create po/Makevars or runtime-po/Makevars.
68949 2010-04-29  Eric Blake  <eblake@redhat.com>
68951         headers: relax license to LGPLv2+
68952         * modules/fcntl-h (License): Relax license.
68953         * modules/getopt-posix (License): Likewise.
68954         * modules/locale (License): Likewise.
68955         * modules/math (License): Likewise.
68956         * modules/pty (License): Likewise.
68957         * modules/sched (License): Likewise.
68958         * modules/search (License): Likewise.
68959         * modules/spawn (License): Likewise.
68960         * modules/stdarg (License): Likewise.
68961         * modules/sysexits (License): Likewise.
68963 2010-04-29  Jim Meyering  <meyering@redhat.com>
68965         inttypes: relax license to LGPLv2+
68966         * modules/inttypes (License): Relax license.
68968 2010-04-29  Simon Josefsson  <simon@josefsson.org>
68970         * top/maint.mk (indent): Run twice to produce idempotent results.
68972 2010-04-28  Bruno Haible  <bruno@clisp.org>
68974         getdate: Generate getdate.c in the source directory.
68975         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
68976         MOSTLYCLEANFILES.
68977         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
68979 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
68981         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
68982         is not declared as a const *; avoid warnings in that case.
68984 2010-04-28  Eric Blake  <eblake@redhat.com>
68986         canonicalize-lgpl: avoid compiler warning
68987         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
68988         declaration' / 'extraneous semicolon' warning with some compilers.
68989         Reported by Andreas Gruenbacher.
68991 2010-04-28  Jim Meyering  <meyering@redhat.com>
68993         init.sh: ensure a more reliable exit status when exiting via trap
68994         * tests/init.sh (setup_): Don't rely on $? in signal handler.
68995         Inspired by patches from Dmitry V. Levin.
68996         Also trap on signal 3 (SIGQUIT).
68998 2010-04-27  Bruno Haible  <bruno@clisp.org>
69000         Update doc about utimes().
69001         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
69002         'utimens' module.
69003         Reported by Andreas Gruenbacher <agruen@suse.de>.
69005 2010-04-27  Eric Blake  <eblake@redhat.com>
69007         full-read, full-write: relax license
69008         * modules/full-read (License): Drop to LGPLv2+.
69009         * modules/full-write (License): Likewise.
69010         * modules/safe-read (License): Likewise.
69011         * modules/safe-write (License): Likewise.
69013         pthread: mention library for linking
69014         * modules/pthread (Link): Mention $(LIB_PTHREAD).
69016 2010-04-27  Jim Meyering  <meyering@redhat.com>
69018         maint.mk: fix a bug introduced in last change
69019         * top/maint.mk (gl_assured_headers_): Now that all names are on
69020         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
69021         is not anchored to end of word, it should be adequate.
69023         maint.mk: avoid side-effect in latest syntax-check
69024         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
69025         to run commands via $(shell...), and hence to incur cost only when
69026         the new rule is actually run.
69028         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
69029         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
69030         and use that to create a regexp used to detect all #if HAVE_..._H uses.
69031         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
69032         (gl_assured_headers_, az_, AZ_): Define.
69033         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
69035 2010-04-26  Jim Meyering  <jim@meyering.net>
69036             Bruno Haible  <bruno@clisp.org>
69038         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
69039         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
69040         Prompted by an exchange with Gilles Espinasse.
69042 2010-04-26  Jim Meyering  <meyering@redhat.com>
69044         git-version-gen: aesthetic tweak
69045         * build-aux/git-version-gen: Use "$nl" rather than a literal,
69046         so that the command remains on a single line.
69048 2010-04-26  Eric Blake  <eblake@redhat.com>
69050         git-version-gen: allow use on EBCDIC hosts
69051         * build-aux/git-version-gen (dirty): Use literal rather than tying
69052         ourselves to ascii.
69053         Reported by Steve Goetze.
69055 2010-04-25  Bruno Haible  <bruno@clisp.org>
69057         netdb: Add support for GNULIB_POSIXCHECK.
69058         * lib/netdb.in.h: Include warn-on-use.h.
69059         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
69060         functions are used when GNULIB_POSIXCHECK is defined and the
69061         getaddrinfo module is not in use.
69062         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
69063         freeaddrinfo, gai_strerror, getnameinfo are declared.
69064         * modules/netdb (Depends-on): Add warn-on-use.
69065         (Makefile.am): Include warn-on-use.h in netdb.h.
69067 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
69069         build: avoid "make check" failure without .git/ directory
69070         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
69071         there is no .git/ directory.
69073 2010-04-25  Bruno Haible  <bruno@clisp.org>
69075         ptsname: Fix misuse of ttyname_r.
69076         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
69077         of errno.
69079 2010-04-25  Bruno Haible  <bruno@clisp.org>
69081         ttyname_r: Make it work on Solaris 10.
69082         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
69083         if the system function has the POSIX declaration. Test whether the
69084         function fails if the buffer is less than 128 bytes large.
69085         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
69086         system's ttyname_r function. Provide a reasonably large buffer.
69087         * modules/ttyname_r (Depends-on): Add extensions.
69088         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
69090 2010-04-25  Bruno Haible  <bruno@clisp.org>
69092         Use the 'extensions' module for some more functions on Solaris.
69093         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
69094         module.
69095         * doc/posix-functions/ctime_r.texi: Likewise.
69096         * doc/posix-functions/getgrgid_r.texi: Likewise.
69097         * doc/posix-functions/getgrnam_r.texi: Likewise.
69098         * doc/posix-functions/getpwnam_r.texi: Likewise.
69099         * doc/posix-functions/getpwuid_r.texi: Likewise.
69100         * doc/posix-functions/readdir_r.texi: Likewise.
69101         * doc/posix-functions/sigwait.texi: Likewise.
69102         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
69103         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
69105 2010-04-25  Bruno Haible  <bruno@clisp.org>
69107         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
69108         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
69109         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
69110         * lib/ttyname_r.c: Include <limits.h>.
69111         (ttyname_r): Define using the system's ttyname_r function, if it exists
69112         and not on Solaris.
69113         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
69114         set.
69115         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
69116         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
69117         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
69118         Reported by Simon Josefsson.
69120 2010-04-25  Bruno Haible  <bruno@clisp.org>
69122         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
69123         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
69124         * doc/posix-functions/ctime_r.texi: Likewise.
69125         * doc/posix-functions/getgrgid_r.texi: Likewise.
69126         * doc/posix-functions/getgrnam_r.texi: Likewise.
69127         * doc/posix-functions/getlogin_r.texi: Likewise.
69128         * doc/posix-functions/getpwnam_r.texi: Likewise.
69129         * doc/posix-functions/getpwuid_r.texi: Likewise.
69130         * doc/posix-functions/readdir_r.texi: Likewise.
69131         * doc/posix-functions/sigwait.texi: Likewise.
69132         * doc/posix-functions/ttyname_r.texi: Likewise.
69133         Reported by Simon Josefsson.
69135 2010-04-25  Bruno Haible  <bruno@clisp.org>
69137         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
69138         * gnulib-tool (func_usage): Document that --with-*-tests options apply
69139         also to --create-testdir.
69140         (func_acceptable): Don't consider the status of *-tests modules here.
69141         (func_modules_transitive_closure): Consider it here, before including a
69142         test module.
69143         (func_import, func_create_testdir): Set inc_all_direct_tests,
69144         inc_all_indirect_tests.
69145         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
69146         --create-testdir and --create-megatestdir.
69148 2010-04-25  Bruno Haible  <bruno@clisp.org>
69150         gnulib-tool: Add --without-*-tests options.
69151         * gnulib-tool (func_usage): Document the --without-*-tests options.
69152         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
69153         excl_unportable_tests): New variables.
69154         Fail if they are specified with --import or --update.
69155         (func_acceptable): Respect the excl_*_tests variables.
69156         (func_import): Set the excl_*_tests variables to empty.
69158 2010-04-25  Simon Josefsson  <simon@josefsson.org>
69159             Bruno Haible  <bruno@clisp.org>
69161         Work around a MacOS X 10.4 bug with openpty.
69162         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
69163         * tests/test-openpty.c (main): Close the master side explicitly.
69165 2010-04-25  Bruno Haible  <bruno@clisp.org>
69167         strnlen: Fix a C++ test error on MacOS X and Solaris.
69168         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
69169         the function is not declared.
69170         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
69171         Simon Josefsson.
69173 2010-04-24  Bruno Haible  <bruno@clisp.org>
69175         Avoid a gcc warning.
69176         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
69177         of correct type for %08lx directive.
69178         Reported by Eric Blake.
69180 2010-04-24  Bruno Haible  <bruno@clisp.org>
69182         vasnprintf: Correct errno value in case of out-of-memory.
69183         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
69184         or sprintf. Use the errno value from SNPRINTF or sprintf.
69185         Reported by Ian Beckwith <ianb@erislabs.net>.
69187 2010-04-24  Bruno Haible  <bruno@clisp.org>
69189         ansi-c++-opt: Find correct compiler when cross-compiling.
69190         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
69191         AC_CHECK_PROGS.
69192         Reported by Simon Josefsson.
69194 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
69196         vc-list-files: Add support for subversion
69197         * build-aux/vc-list-files: Use "svn list" to generate the list of
69198         files controlled by subversion.
69200 2010-04-23  Jim Meyering  <meyering@redhat.com>
69202         vc-list-files tests: convert to use init.sh
69203         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
69204         path_prepend_.
69205         Use Exit, not exit.
69206         Use skip_ rather than open coding it.
69207         Remove trap set-up and compare definitions.
69208         * tests/test-vc-list-files-git.sh: Likewise.
69209         * modules/vc-list-files-tests (Files): Add tests/init.sh.
69211 2010-04-22  Simon Josefsson  <simon@josefsson.org>
69213         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
69214         backup files.
69216 2010-04-21  Simon Josefsson  <simon@josefsson.org>
69218         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
69220 2010-04-20  Eric Blake  <eblake@redhat.com>
69222         tests: be robust to ignored SIGPIPE
69223         * tests/test-select-in.sh: Consume all output.
69224         * tests/test-lseek.sh: Check correct exit status, while avoiding
69225         EPIPE.
69227 2010-04-20  Simon Josefsson  <simon@josefsson.org>
69228             Bruno Haible  <bruno@clisp.org>
69230         visibility: Don't use -fvisibility if it leads to a warning.
69231         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
69232         yes, don't pretend that visibility works if it leads to a warning.
69233         Reported by Mike Gran <spk121@yahoo.com>.
69235 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
69237         * build-aux/bootstrap: Use "git -h" for testing for supported options
69238         instead of "git --help".  The short-form option only shows a summary,
69239         and doesn't layout the full man page.  Grep for the full option name
69240         in the summary, too.
69242 2010-04-19  Bruno Haible  <bruno@clisp.org>
69244         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
69245         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
69246         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
69247         mention of RELOCATABLE_STRIP.
69248         Reported by Sylvain Beucler <beuc@beuc.net>.
69250 2010-04-19  Bruno Haible  <bruno@clisp.org>
69252         * lib/diffseq.h: Fix typo in comment.
69253         Reported by Eric Blake.
69255 2010-04-19  Bruno Haible  <bruno@clisp.org>
69257         ioctl: Move autoconf macro to a .m4 file.
69258         * m4/ioctl.m4: New file, extracted from modules/ioctl.
69259         * modules/ioctl (Files): Add it.
69260         (configure.ac): Simply invoke gl_FUNC_IOCTL.
69261         Reported by Ian Beckwith <ianb@erislabs.net>.
69263 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
69264             Bruno Haible  <bruno@clisp.org>
69266         diffseq: Accommodate use-case with abstract arrays.
69267         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
69268         is not defined.
69269         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
69270         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
69272 2010-04-18  Bruno Haible  <bruno@clisp.org>
69274         * doc/posix-headers/stdbool.texi: More precise wording.
69276 2010-04-17  Jim Meyering  <meyering@redhat.com>
69278         maint.mk: use gnu-style indentation in an embedded perl script
69279         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
69280         Rename variable: s/two/last_two_bytes/
69282 2010-04-16  Eric Blake  <eblake@redhat.com>
69284         test-stdbool: skip test that fails with Solaris CC
69285         * tests/test-stdbool.c (f): Skip test that causes compilation
69286         error under buggy C++ compiler.
69287         * lib/stdbool.in.h: Document the limitation.
69288         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
69290         setenv: allow compilation with C++
69291         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
69292         register keyword.
69294         stdint: allow test to pass with C++
69295         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
69297         getopt: allow compilation with C++
69298         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
69299         struct.
69300         * lib/getopt.c (_getopt_internal_r): Use correct type.
69301         Reported by Dagobert Michelson, via Joel E. Denny.
69303 2010-04-16  Bruno Haible  <bruno@clisp.org>
69305         Override netdb.h always.
69306         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
69307         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
69308         Reported by Ludovic Courtès <ludo@gnu.org>.
69310 2010-04-15  Bruno Haible  <bruno@clisp.org>
69312         openpty: Fix mistake from 2010-03-21.
69313         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
69314         Reported by Simon Josefsson.
69316 2010-04-15  Eric Blake  <eblake@redhat.com>
69318         test-forkpty: fix expected signature
69319         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
69320         Reported by Simon Josefsson.
69322 2010-04-15  Jim Meyering  <meyering@redhat.com>
69324         maint.mk: texinfo_suffix_re_: correct the default regexp
69325         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
69327         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
69328         make it configurable via texinfo_suffix_re_.
69330 2010-04-14  Eric Blake  <eblake@redhat.com>
69332         strtok_r: relax license to LGPLv2+
69333         * modules/strtok_r (License): Relax license.
69334         Reported by Matthias Bolte.
69336 2010-04-14  Simon Josefsson  <simon@josefsson.org>
69338         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
69339         version 1.4.4 by default instead of requiring the libgcrypt
69340         version used during build.  This makes it possible to use the
69341         application with older but still binary compatible libgcrypt
69342         versions.
69344 2010-04-13  Eric Blake  <eblake@redhat.com>
69346         getopt-gnu: match recent glibc fixes and posix ruling
69347         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
69348         '+' handling, when requesting extensions.
69349         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
69350         'W;' handling.
69351         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
69352         * doc/posix-functions/getopt.texi (getopt): Document this.
69353         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69354         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69355         Likewise.
69357         getopt: merge bug fixes from glibc
69358         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
69359         diagnostics.  Honor '+:' correctly.  Reject ';'.
69361         getopt-posix: detect MacOS bug
69362         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
69363         optind when missing a required argument.
69364         * doc/posix-functions/getopt.texi (getopt): Document the bug.
69365         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
69366         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
69367         Likewise.
69369         getopt-posix: avoid spurious failure on Solaris
69370         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
69371         an indicator that setting optind=1 is sufficient for reset.
69373         getopt-posix: avoid spurious failure on FreeBSD
69374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
69375         in POSIX mode, since the m4 test uses it.
69377         gnulib-tool: silence warning on BSD sh
69378         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
69380 2010-04-13  Jim Meyering  <meyering@redhat.com>
69382         doc: users.txt: GNU patch now uses gnulib
69383         * users.txt: Add patch.
69385 2010-04-12  Jim Meyering  <meyering@redhat.com>
69387         maint.mk: generate more concise timing data for syntax-check rules
69388         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
69389         " done" from each line that reports a syntax-check test duration.
69391 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
69393         git-version-gen: use "git update-index..." rather than "git status"
69394         * build-aux/git-version-gen: Use git update-index --refresh, not
69395         "git status".  With some versions of git, "git status" would fail
69396         to update the index and result in an unwarranted "-dirty" suffix.
69398 2010-04-11  Jim Meyering  <meyering@redhat.com>
69400         openat: correct formatting (no semantic change)
69401         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
69402         Suggested by Bruno Haible.
69404 2010-04-11  Bruno Haible  <bruno@clisp.org>
69406         Stricter declaration checking in testdirs.
69407         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
69408         If for_tests is true, augment AM_CPPFLAGS to define
69409         GNULIB_STRICT_CHECKING.
69410         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
69411         GNULIB_STRICT_CHECKING is defined, verify that the function is
69412         declared.
69414 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
69415             Bruno Haible  <bruno@clisp.org>
69417         libunistring: Improve configure output.
69418         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
69419         Don't say "consider installing GNU libunistring" when checking again
69420         with libiconv.
69422 2010-04-11  Bruno Haible  <bruno@clisp.org>
69424         libunistring: Correct value of $LTLIBUNISTRING.
69425         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
69426         correct the value of $LTLIBUNISTRING.
69428 2010-04-11  Bruno Haible  <bruno@clisp.org>
69430         havelib: Add static libraries to LIBS in the right order.
69431         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
69432         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
69434 2010-04-11  Bruno Haible  <bruno@clisp.org>
69436         libunistring: Detect libunistring also when it depends on libiconv.
69437         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
69438         the second AC_LIB_HAVE_LINKFLAGS invocation.
69440 2010-04-11  James Youngman  <jay@gnu.org>
69442         close-stream: declare local scalars to be "const"
69443         * lib/close-stream.c (close_stream): Make boolean variables const
69444         to document the fact that we set but do not change them.
69446 2010-04-11  Bruno Haible  <bruno@clisp.org>
69448         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
69450 2010-04-11  Jim Meyering  <meyering@redhat.com>
69452         maint.mk: don't include dist-check.mk
69453         * top/maint.mk: Remove bogus include directive.
69455         maint.mk: improve empty-line-at-EOF check
69456         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
69457         solution, rather than tail+Perl-based one.  The latter would read
69458         a few kilobytes from the end of each file, and did not handle empty
69459         files properly.
69461         maint.mk: print the elapsed time for each syntax-check rule
69462         * top/maint.mk (sc_m_rules_): Save start time in a file.
69463         (sc_z_rules_): New rules: remove temp file and print elapsed time.
69464         (local-check): Interpose the .z rules
69466 2010-04-11  Jim Meyering  <meyering@redhat.com>
69468         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
69469         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
69470         empty file with one that ends in an empty line.
69472 2010-04-10  Bruno Haible  <bruno@clisp.org>
69474         mkdir: Make it work on mingw64.
69475         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
69476         * lib/mkdir.c: Update comment.
69477         Reported by Roman Donchenko (Роман Донченко) <dxdragon@yandex.ru>.
69479 2010-04-10  Bruno Haible  <bruno@clisp.org>
69481         Don't override improved macro from newer autoconf.
69482         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
69483         autoconf >= 2.62.
69484         Reported by Joel E. Denny <jdenny@clemson.edu>.
69486 2010-04-10  Jim Meyering  <meyering@redhat.com>
69488         maint.mk: new syntax-check rule: prohibit empty lines at end of file
69489         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
69491         maint.mk: correct a diagnostic
69492         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
69493         in diagnostic; now use $prohibit.
69495 2010-04-10  Bruno Haible  <address@hidden>
69497         fchownat: Fix a C++ test error on Solaris 8.
69498         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
69499         the function does not exist.
69501 2010-04-10  Bruno Haible  <bruno@clisp.org>
69503         vasnprintf: Add more tests.
69504         * tests/test-vasnprintf-posix.c: Include <errno.h>.
69505         (test_function): Test converting an invalid wide string.
69507         vasnprintf: Correct handling of unconvertible wide string arguments.
69508         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
69509         VASNPRINTF.
69510         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
69511         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
69512         smaller than the expected maximum need for the directive. Set errno to
69513         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
69514         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
69515         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
69516         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
69517         * modules/vasnprintf (Files): Add m4/printf.m4.
69518         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69520 2010-04-10  Bruno Haible  <bruno@clisp.org>
69522         vasnprintf: Fix crash in %ls directive.
69523         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
69524         string is passed as argument to %ls, with no precision and no width.
69525         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69527 2010-04-10  Bruno Haible  <bruno@clisp.org>
69529         vasnprintf: Fix multiple test failures on mingw.
69530         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
69531         _snprintf, or snwprintf, not _snwprintf.
69533 2010-04-10  Bruno Haible  <bruno@clisp.org>
69535         write: Fix a C++ test error on mingw.
69536         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
69538 2010-04-10  Bruno Haible  <bruno@clisp.org>
69540         vasnprintf test: Reduce code duplication.
69541         * tests/test-vasnprintf.c (test_function): New function, extracted from
69542         test_vasnprintf.
69543         (test_vasnprintf, test_asnprintf): Invoke it.
69545 2010-04-10  Bruno Haible  <bruno@clisp.org>
69547         strnlen: Fix warning in C++ mode on MacOS X.
69548         * lib/string.in.h (strnlen): Use the modern idiom.
69549         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
69550         defining strnlen as a macro already in <config.h>.
69551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
69552         REPLACE_STRNLEN.
69553         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
69554         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69556 2010-04-08  James Youngman  <jay@gnu.org>
69558         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
69559         the example.
69561 2010-04-09  Jim Meyering  <meyering@redhat.com>
69563         maint.mk: print better diagnostic when there is no $(_hv_file)
69564         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
69565         announce that when $(_hv_file) (aka help-version) does not exist.
69567         init.sh: run tr in the "C" locale to avoid multibyte interpretation
69568         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
69569         not try to interpret its random input bytes.  Jarno Rajahalme reported
69570         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
69571         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
69572         (mktempd_): Likewise, just in case.
69574         ftruncate: add two years to projected module removal date: 2012
69575         * m4/ftruncate.m4: Adjust comments.
69577         ftruncate: mark module as obsolete; even MinGW provides it, now
69578         * modules/ftruncate (Status): Obsolete.
69579         (Notice): Say that.
69580         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
69581         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
69583 2010-04-08  Bruno Haible  <bruno@clisp.org>
69585         Fix side effects from tests-related modules.
69586         * modules/dprintf-posix (Comment): New section.
69587         * modules/fprintf-posix (Comment): Likewise.
69588         * modules/obstack-printf-posix (Comment): Likewise.
69589         * modules/printf-posix (Comment): Likewise.
69590         * modules/snprintf-posix (Comment): Likewise.
69591         * modules/sprintf-posix (Comment): Likewise.
69592         * modules/vasnprintf-posix (Comment): Likewise.
69593         * modules/vasprintf-posix (Comment): Likewise.
69594         * modules/vdprintf-posix (Comment): Likewise.
69595         * modules/vfprintf-posix (Comment): Likewise.
69596         * modules/vprintf-posix (Comment): Likewise.
69597         * modules/vsnprintf-posix (Comment): Likewise.
69598         * modules/vsprintf-posix (Comment): Likewise.
69599         * modules/xprintf-posix (Comment): Likewise.
69600         * modules/xvasprintf-posix (Comment): Likewise.
69601         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
69602         * modules/floorf-tests (Depends-on): Likewise.
69603         * modules/round-tests (Depends-on): Likewise.
69604         * modules/roundf-tests (Depends-on): Likewise.
69605         * modules/trunc-tests (Depends-on): Likewise.
69606         * modules/truncf-tests (Depends-on): Likewise.
69607         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
69608         'fprintf-posix' module is not present.
69609         * tests/test-floorf2.c (check): Likewise.
69610         * tests/test-trunc2.c (check): Likewise.
69611         * tests/test-truncf2.c (check): Likewise.
69612         * tests/test-round2.c (equal): Likewise.
69613         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
69615 2010-04-07  Karl Berry  <karl@gnu.org>
69617         * config/srclist.txt,
69618         * config/srclistvars.sh,
69619         * config/srclist-update: doc fixes.
69621 2010-04-07  Jim Meyering  <meyering@redhat.com>
69623         maint.mk: add a PATH crosschecking syntax-check rule
69624         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
69625         Useful if you use a test like the one in help-version (coreutils,
69626         diffutils, grep, gzip) that ensures $(VERSION) matches what is
69627         printed by prog --version.
69629 2010-04-06  Bruno Haible  <bruno@clisp.org>
69631         Fix link error on mingw.
69632         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
69633         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
69635 2010-04-06  Bruno Haible  <bruno@clisp.org>
69637         Assume rmdir exists.
69638         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
69640 2010-04-06  Giuseppe Scrivano  <gscrivano@gnu.org>
69642         doc: update users.txt
69643         * users.txt: Add gcal.
69645 2010-04-06  Jim Meyering  <meyering@redhat.com>
69647         init.sh: simply unset TMPDIR rather than risking env -i
69648         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
69649         although it probably works fine on all Unix-based systems, some
69650         systems (Cygwin?) cannot tolerate a totally cleared environment.
69651         Suggestion from Eric Blake.
69653 2010-04-06  Jim Meyering  <meyering@redhat.com>
69655         init.sh: portability fix: use env's POSIX-specified -i option not -u
69656         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
69657         than unportable env -u.  Solaris 5.11's env lacks support for -u.
69659 2010-04-05  Bruno Haible  <bruno@clisp.org>
69661         btowc: Work around Cygwin 1.7.2 bug.
69662         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
69663         does not map NUL to 0.
69664         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
69666 2010-04-05  Bruno Haible  <bruno@clisp.org>
69668         Make the multithread modules work on Cygwin 1.7.2.
69669         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
69670         imported symbols can be declared weak, so that it returns "no" on
69671         Cygwin 1.7.2.
69673 2010-04-05  Bruno Haible  <bruno@clisp.org>
69675         Use the module 'strncat'.
69676         * modules/unistr/u8-strncat (Depends-on): Add strncat.
69678         Tests for module 'strncat'.
69679         * modules/strncat-tests: New file.
69680         * tests/test-strncat.c: New file.
69682         New module 'strncat'.
69683         * lib/string.in.h (strncat): New declaration.
69684         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
69685         * m4/strncat.m4: New file, based on m4/memchr.m4.
69686         * modules/strncat: New file.
69687         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
69688         is declared.
69689         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
69690         REPLACE_STRNCAT.
69691         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
69692         REPLACE_STRNCAT.
69693         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
69694         module.
69695         * tests/test-string-c++.cc: Check signature of strncat.
69697 2010-04-05  Jim Meyering  <meyering@redhat.com>
69699         xstrtoumax-tests: convert to use init.sh
69700         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
69701         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69702         Use Exit, not exit.
69703         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69705         xstrtoimax-tests: convert to use init.sh
69706         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
69707         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69708         Use Exit, not exit.
69709         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69711 2010-04-05  Bruno Haible  <bruno@clisp.org>
69713         sys_socket: Avoid #define replacements in C++ mode.
69714         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
69715         warning to the function if possible, rather than #defining the symbol
69716         to a dysfunctional alias.
69718 2010-04-05  Bruno Haible  <bruno@clisp.org>
69720         fseeko: Fix C++ test error on mingw.
69721         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
69722         gl_FUNC_FSEEKO.
69723         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
69724         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
69725         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
69726         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
69728 2010-04-05  Bruno Haible  <bruno@clisp.org>
69730         duplocale: Improve test output.
69731         * tests/test-duplocale.c (main): Print reason for skipped test.
69733 2010-04-05  Bruno Haible  <bruno@clisp.org>
69735         Assume rmdir exists.
69736         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
69737         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
69739 2010-04-05  Bruno Haible  <bruno@clisp.org>
69741         Fix link error on Solaris 8 with cc.
69742         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
69744 2010-04-05  Bruno Haible  <bruno@clisp.org>
69746         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69747         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
69749 2010-04-05  Bruno Haible  <bruno@clisp.org>
69751         vasprintf: Update documentation.
69752         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
69754 2010-04-05  Bruno Haible  <bruno@clisp.org>
69756         ptsname: Improve test.
69757         * tests/test-ptsname.c (main): Also try the various master names of BSD
69758         systems.
69760 2010-04-05  Bruno Haible  <bruno@clisp.org>
69762         memchr: Avoid a possible C++ test error.
69763         * lib/string.in.h (memchr): Provide declaration if function is missing.
69764         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
69765         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
69766         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
69767         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
69769 2010-04-05  Bruno Haible  <bruno@clisp.org>
69771         strtok_r: Improve idiom.
69772         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
69773         AC_LIBOBJ is used.
69775 2010-04-05  Bruno Haible  <bruno@clisp.org>
69777         strdup: Improve idiom.
69778         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
69779         AC_LIBOBJ is used.
69780         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
69781         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
69782         when AC_LIBOBJ is used.
69784 2010-04-05  Bruno Haible  <bruno@clisp.org>
69786         mbsinit, mbrtowc, wcrtomb: Improve idioms.
69787         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
69788         don't set REPLACE_MBSINIT to 1.
69789         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
69790         don't set REPLACE_MBRTOWC to 1.
69791         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
69792         exist, don't set REPLACE_MBSRTOWCS to 1.
69793         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
69794         exist, don't set REPLACE_MBSNRTOWCS to 1.
69795         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
69796         don't set REPLACE_WCRTOMB to 1.
69797         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
69798         exist, don't set REPLACE_WCSRTOMBS to 1.
69799         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
69800         exist, don't set REPLACE_WCSNRTOMBS to 1.
69802 2010-04-05  Bruno Haible  <bruno@clisp.org>
69804         ldexpl: Improve idiom.
69805         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
69806         make sure to set HAVE_DECL_LDEXPL to 0.
69808 2010-04-05  Jim Meyering  <meyering@redhat.com>
69810         xstrtol-tests: convert to use init.sh
69811         * modules/xstrtol-tests (Files): Add tests/init.sh.
69812         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69813         Use Exit, not exit.
69814         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69816         atexit-tests: convert to use init.sh
69817         * modules/atexit-tests (Files): Add tests/init.sh.
69818         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
69819         Use Exit, not exit.
69820         Remove uses of $EXEEXT and "./" to run a program in the current dir.
69822         init.sh: fix typo
69823         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
69825         init.sh: make it easier for a test script to write to the tty, ...
69826         when using automake's parallel-tests mode.
69827         * tests/init.sh (stderr_fileno_): Define overridable variable.
69828         (warn_): New function, to use it.
69829         (fail_, skip_, framework_failure_): Use warn_.
69831 2010-04-04  Bruno Haible  <bruno@clisp.org>
69833         btowc: Avoid warning.
69834         * lib/btowc.c: Include <stdlib.h>.
69835         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
69837 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69838             Bruno Haible  <bruno@clisp.org>
69840         wchar: Port to NetBSD 1.5.
69841         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
69842         * lib/wctype.in.h (WEOF): Likewise.
69844 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
69845             Bruno Haible  <bruno@clisp.org>
69847         Port extended stdio to NetBSD 1.5.
69848         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
69849         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
69850         older.
69852 2010-04-04  Bruno Haible  <bruno@clisp.org>
69854         string: Remove unused substitution.
69855         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
69856         HAVE_DECL_STRERROR.
69857         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
69859 2010-04-04  Bruno Haible  <bruno@clisp.org>
69861         strtod: Avoid a possible C++ test error.
69862         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
69863         set REPLACE_STRTOD.
69865 2010-04-04  Bruno Haible  <bruno@clisp.org>
69867         strerror: Update documentation.
69868         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
69870 2010-04-04  Bruno Haible  <bruno@clisp.org>
69872         stdio: Fix some C++ test errors on Solaris 8 with GCC.
69873         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
69874         _GL_CXXALIAS_SYS_CAST.
69876 2010-04-04  Bruno Haible  <bruno@clisp.org>
69878         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
69879         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
69880         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
69881         REPLACE_FREXPL to 1.
69882         * doc/posix-functions/frexpl.texi: Update documentation.
69884 2010-04-04  Bruno Haible  <bruno@clisp.org>
69886         math: Fix some C++ test errors on Solaris 8 and Cygwin.
69887         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
69889 2010-04-04  Bruno Haible  <bruno@clisp.org>
69891         Implement nanosleep for native Windows.
69892         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
69894 2010-04-04  Bruno Haible  <bruno@clisp.org>
69896         math: Fix some C++ test errors on Solaris 8.
69897         * lib/math.in.h (truncf, trunc): Use simpler idiom.
69899 2010-04-04  Bruno Haible  <bruno@clisp.org>
69901         math: Fix some C++ test errors on Cygwin.
69902         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
69903         truncl): Provide declaration if the system does not have it.
69904         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
69905         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
69906         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
69907         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
69908         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
69909         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
69910         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
69911         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
69912         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
69913         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
69914         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
69915         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
69916         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
69917         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
69918         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
69919         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
69920         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
69921         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69922         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69923         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
69924         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
69925         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
69927 2010-04-04  Bruno Haible  <bruno@clisp.org>
69929         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
69930         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
69931         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
69932         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
69933         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
69934         * m4/isinf.m4 (gl_ISINF): Likewise.
69935         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
69937 2010-04-04  Bruno Haible  <bruno@clisp.org>
69939         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
69940         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
69942 2010-04-04  Bruno Haible  <bruno@clisp.org>
69944         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
69945         * modules/tmpfile (configure.ac): Update.
69947         tmpfile: Fix C++ test error on mingw.
69948         * lib/stdio.in.h (tmpfile): New declaration.
69949         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
69950         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
69951         * modules/tmpfile (Depends-on): Add stdio.
69952         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
69953         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
69954         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
69955         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
69956         REPLACE_TMPFILE.
69957         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
69959 2010-04-04  Bruno Haible  <bruno@clisp.org>
69961         ioctl: Fix C++ test error on mingw.
69962         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
69963         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
69964         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
69966 2010-04-03  Bruno Haible  <bruno@clisp.org>
69968         wcwidth: Fix C++ test error on mingw.
69969         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
69970         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
69971         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
69973 2010-04-03  Bruno Haible  <bruno@clisp.org>
69975         nanosleep: Fix C++ test error on mingw.
69976         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
69977         * lib/time.in.h (nanosleep): Use modern idiom.
69978         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
69979         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
69980         REPLACE_NANOSLEEP to 1.
69981         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
69982         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
69984 2010-04-03  Bruno Haible  <bruno@clisp.org>
69986         strptime: Fix C++ test error on mingw.
69987         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
69988         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
69989         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
69990         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
69991         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
69992         not REPLACE_STRPTIME.
69993         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
69994         REPLACE_STRPTIME.
69996 2010-04-03  Bruno Haible  <bruno@clisp.org>
69998         timegm: Fix C++ test error on mingw.
69999         * lib/time.in.h (timegm): Use modern idiom.
70000         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
70001         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
70002         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
70003         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
70005 2010-04-03  Bruno Haible  <bruno@clisp.org>
70007         timegm: Assume declaration if function exists.
70008         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
70009         if it exists. Don't clobber ac_cv_func_timegm.
70011 2010-04-03  Bruno Haible  <bruno@clisp.org>
70013         time_r: Fix C++ test error on mingw.
70014         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
70015         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
70016         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
70017         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
70018         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
70020 2010-04-03  Bruno Haible  <bruno@clisp.org>
70022         time_r: Minor updates.
70023         * modules/time_r (Description): Mention the provided functions.
70024         * lib/time_r.c: Don't include <string.h>.
70025         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
70026         * doc/posix-functions/localtime_r.texi: Likewise.
70028 2010-04-03  Bruno Haible  <bruno@clisp.org>
70030         time: Fix regression introduced on 2010-03-08.
70031         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
70032         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
70034 2010-04-03  Jim Meyering  <meyering@redhat.com>
70036         maint.mk: don't silently disable project-specific syntax-check rules
70037         * top/maint.mk (_prohibit_regexp): Define, to help people realize
70038         that they need to convert their project-specific syntax-check rules
70039         to use the new _sc_search_regexp.
70041 2010-04-03  Bruno Haible  <bruno@clisp.org>
70043         fchdir: Fix regression introduced on 2010-03-08.
70044         * lib/unistd.in.h (fchdir): Fix declaration.
70045         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
70046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
70047         REPLACE_FCHDIR.
70048         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
70049         REPLACE_FCHDIR.
70051 2010-04-03  Bruno Haible  <bruno@clisp.org>
70053         getpagesize: Fix C++ test error on mingw.
70054         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
70055         system does not declare the function.
70056         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
70057         declared.
70058         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
70059         HAVE_DECL_GETPAGESIZE.
70060         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
70062 2010-04-03  Bruno Haible  <bruno@clisp.org>
70064         stdio: Make C++ tests work on mingw.
70065         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
70066         does not declare the function.
70068 2010-04-03  Bruno Haible  <bruno@clisp.org>
70070         ftello: Fix C++ test error on mingw.
70071         * lib/stdio.in.h (ftello): Use modern idiom.
70072         * lib/ftello.c (ftello): Renamed from rpl_ftello.
70073         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
70074         is missing and that it needs to be replaced.
70075         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
70076         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
70077         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
70079 2010-04-03  Bruno Haible  <bruno@clisp.org>
70081         fseeko: Fix C++ test error on mingw.
70082         * lib/stdio.in.h (fseeko): Use modern idiom.
70083         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
70084         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
70085         is missing and that it needs to be replaced.
70086         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
70087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
70088         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
70090 2010-04-03  Bruno Haible  <bruno@clisp.org>
70092         mkstemp: Fix C++ test error on mingw.
70093         * lib/stdlib.in.h (mkstemp): Use modern idiom.
70094         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
70095         function is missing and that it needs to be replaced.
70096         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
70097         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
70099 2010-04-03  Bruno Haible  <bruno@clisp.org>
70101         stpncpy: Fix C++ test error on mingw.
70102         * lib/string.in.h (stpncpy): Use modern idiom.
70103         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
70104         function is missing and that it needs to be replaced.
70105         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70106         REPLACE_STPNCPY.
70107         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
70109 2010-04-03  Bruno Haible  <bruno@clisp.org>
70111         sys_stat: Fix C++ test error on mingw.
70112         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
70113         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
70115 2010-04-03  Bruno Haible  <bruno@clisp.org>
70117         pty: Update doc.
70118         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
70120 2010-04-03  Bruno Haible  <bruno@clisp.org>
70122         unistd: Fix C++ test error on mingw.
70123         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
70125 2010-04-03  Bruno Haible  <bruno@clisp.org>
70127         Update doc regarding mingw.
70128         * doc/glibc-functions/openpty.texi: Update regarding mingw.
70129         * doc/glibc-functions/login_tty.texi: Likewise.
70130         * doc/glibc-functions/forkpty.texi: Likewise.
70132 2010-04-03  Bruno Haible  <bruno@clisp.org>
70134         stdlib: Avoid compilation failure of c-strtold on mingw.
70135         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
70137 2010-04-03  Bruno Haible  <bruno@clisp.org>
70139         locale: Make C++ tests work on Cygwin and mingw.
70140         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
70141         cannot provide the function.
70142         Reported by Simon Josefsson.
70144 2010-04-03  Bruno Haible  <bruno@clisp.org>
70146         localename: Port to MacOS X 10.6.
70147         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
70148         memory layout of the locales in MacOS X 10.6 as well.
70149         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
70151 2010-04-02  Bruno Haible  <bruno@clisp.org>
70153         gnulib-tool: Ensure that long-running tests are executed last.
70154         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
70155         running tests after the one for the other tests.
70157 2010-04-02  Bruno Haible  <bruno@clisp.org>
70159         gnulib-tool: Ensure the tests in the main directory are executed first.
70160         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
70161         start with the current directory.
70163 2010-04-02  Bruno Haible  <bruno@clisp.org>
70165         Tests for module 'havelib', moved here from GNU gettext.
70166         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
70167         modifications.
70168         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
70169         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
70170         with modifications.
70171         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
70172         modifications.
70173         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
70174         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
70175         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
70176         with modifications.
70177         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
70178         with modifications.
70179         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
70180         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
70181         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
70182         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
70183         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
70184         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
70185         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
70186         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
70187         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
70188         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
70189         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
70190         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
70191         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
70192         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
70193         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
70194         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
70195         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
70196         with modifications.
70197         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
70198         with modifications.
70199         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
70200         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
70201         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
70202         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
70203         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
70204         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
70205         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
70206         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
70207         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
70208         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
70209         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
70210         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
70211         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
70212         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
70213         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
70214         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
70215         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
70216         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
70217         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
70218         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
70219         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
70220         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
70221         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
70222         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
70223         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
70224         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
70225         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
70226         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
70227         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
70228         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
70229         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
70230         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
70231         * tests/havelib/rpathx/rpathx.c: New file, from
70232         gettext/autoconf-lib-link.
70233         * tests/havelib/rpathx/Makefile.am: New file, from
70234         gettext/autoconf-lib-link.
70235         * tests/havelib/rpathx/configure.ac: New file, from
70236         gettext/autoconf-lib-link with modifications.
70237         * tests/havelib/rpathy/rpathy.c: New file, from
70238         gettext/autoconf-lib-link.
70239         * tests/havelib/rpathy/Makefile.am: New file, from
70240         gettext/autoconf-lib-link.
70241         * tests/havelib/rpathy/configure.ac: New file, from
70242         gettext/autoconf-lib-link with modifications.
70243         * tests/havelib/rpathz/rpathz.c: New file, from
70244         gettext/autoconf-lib-link.
70245         * tests/havelib/rpathz/Makefile.am: New file, from
70246         gettext/autoconf-lib-link.
70247         * tests/havelib/rpathz/configure.ac: New file, from
70248         gettext/autoconf-lib-link with modifications.
70249         * tests/havelib/rpathlx/usex.c: New file, from
70250         gettext/autoconf-lib-link.
70251         * tests/havelib/rpathlx/Makefile.am: New file, from
70252         gettext/autoconf-lib-link.
70253         * tests/havelib/rpathlx/configure.ac: New file, from
70254         gettext/autoconf-lib-link with modifications.
70255         * tests/havelib/rpathly/usey.c: New file, from
70256         gettext/autoconf-lib-link.
70257         * tests/havelib/rpathly/Makefile.am: New file, from
70258         gettext/autoconf-lib-link.
70259         * tests/havelib/rpathly/configure.ac: New file, from
70260         gettext/autoconf-lib-link with modifications.
70261         * tests/havelib/rpathlz/usez.c: New file, from
70262         gettext/autoconf-lib-link.
70263         * tests/havelib/rpathlz/Makefile.am: New file, from
70264         gettext/autoconf-lib-link.
70265         * tests/havelib/rpathlz/configure.ac: New file, from
70266         gettext/autoconf-lib-link with modifications.
70267         * tests/havelib/rpathlyx/usey.c: New file, from
70268         gettext/autoconf-lib-link.
70269         * tests/havelib/rpathlyx/Makefile.am: New file, from
70270         gettext/autoconf-lib-link.
70271         * tests/havelib/rpathlyx/configure.ac: New file, from
70272         gettext/autoconf-lib-link with modifications.
70273         * tests/havelib/rpathlzyx/usez.c: New file, from
70274         gettext/autoconf-lib-link.
70275         * tests/havelib/rpathlzyx/Makefile.am: New file, from
70276         gettext/autoconf-lib-link.
70277         * tests/havelib/rpathlzyx/configure.ac: New file, from
70278         gettext/autoconf-lib-link with modifications.
70279         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
70280         with modifications.
70282 2010-04-02  Bruno Haible  <bruno@clisp.org>
70284         gnulib-tool: Create distributed built sources also for the tests.
70285         * gnulib-tool (func_create_testdir): Also generate distributed built
70286         sources in the tests directory.
70288 2010-04-02  Bruno Haible  <bruno@clisp.org>
70290         gnulib-tool: Obey user's environment variables.
70291         * gnulib-tool (func_create_testdir): When creating built sources,
70292         respect the environment variables for autoconf, automake, etc. given by
70293         the user.
70295 2010-04-02  Bruno Haible  <bruno@clisp.org>
70297         gnulib-tool: Provide the value of --m4-base to modules.
70298         * gnulib-tool (func_import, func_create_testdir): Emit a definition
70299         of gl_m4_base.
70301 2010-04-02  Eric Blake  <eblake@redhat.com>
70303         maint.mk: fix some fallout
70304         * NEWS: Document the incompatible change, and its effect on cfg.mk.
70305         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
70307 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70309         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
70310         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
70311         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
70312         (sc_cast_of_x_alloc_return_value): Likewise.
70313         (sc_cast_of_alloca_return_value): Likewise.
70314         (sc_space_tab): Likewise.
70315         (sc_prohibit_atoi_atof): Likewise.
70316         (sc_prohibit_magic_number_exit): Likewise.
70317         (sc_error_exit_success): Likewise.
70318         (sc_file_system): Likewise.
70319         (sc_prohibit_have_config_h): Likewise.
70320         (sc_require_config_h): Likewise.
70321         (sc_prohibit_HAVE_MBRTOWC): Likewise.
70322         (sc_obsolete_symbols): Likewise.
70323         (sc_changelog): Likewise.
70324         (sc_program_name): Likewise.
70325         (sc_the_the): Likewise.
70326         (sc_trailing_blank): Likewise.
70327         (sc_two_space_separator_in_usage): Likewise.
70328         (sc_useless_cpp_parens): Likewise.
70329         (sc_GPL_version): Likewise.
70330         (sc_GFDL_version): Likewise.
70331         (sc_texinfo_acronym): Likewise.
70332         (sc_prohibit_cvs_keyword): Likewise.
70333         (sc_prohibit_stat_st_blocks): Likewise.
70334         (sc_prohibit_S_IS_definition): Likewise.
70335         (sc_redundant_const): Likewise.
70336         (sc_makefile_TAB_only_indentation): Likewise.
70337         (sc_m4_quote_check): Likewise.
70338         (sc_makefile_path_separator_check): Likewise.
70339         (sc_copyright_check): Likewise.
70340         (sc_Wundef_boolean): Likewise.
70341         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
70343         maint.mk: match 0 or more whitespace-before-function-call '('
70344         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
70345         that have zero or two-and-more spaces between the function name
70346         and the open parenthesis.
70347         (sc_error_message_warn_fatal): Likewise.
70348         (sc_error_message_uppercase): Likewise.
70349         (sc_error_message_period): Likewise.
70351 2010-03-31  Eric Blake  <eblake@redhat.com>
70353         maint.mk: check for [ as well as test
70354         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
70355         Based on a libvirt report by Matthias Bolte.
70357         gnumakefile: don't squelch _version output
70358         * top/GNUmakefile (_version): Create one-shot dependency rather
70359         than using $(shell) when version must be regenerated.
70360         (_autoreconf): Run verbosely, by default.
70362         sys_time: avoid compiler warnings
70363         * lib/sys_time.in.h (includes): Ensure gcc pragma is
70364         unconditional, fixing regression from 2010-03-29.
70365         Reported by Simon Josefsson.
70367 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
70369         maint.mk: s/_header_without_use/_sc_header_without_use/
70370         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
70371         (sc_prohibit_assert_without_use): Use the new name.
70372         (sc_prohibit_close_stream_without_use): Likewise.
70373         (sc_prohibit_getopt_without_use): Likewise.
70374         (sc_prohibit_quotearg_without_use): Likewise.
70375         (sc_prohibit_quote_without_use): Likewise.
70376         (sc_prohibit_long_options_without_use): Likewise.
70377         (sc_prohibit_inttostr_without_use): Likewise.
70378         (sc_prohibit_ignore_value_without_use): Likewise.
70379         (sc_prohibit_error_without_use): Likewise.
70380         (sc_prohibit_xalloc_without_use): Likewise.
70381         (sc_prohibit_hash_without_use): Likewise.
70382         (sc_prohibit_hash_pjw_without_use): Likewise.
70383         (sc_prohibit_safe_read_without_use): Likewise.
70384         (sc_prohibit_argmatch_without_use): Likewise.
70385         (sc_prohibit_canonicalize_without_use): Likewise.
70386         (sc_prohibit_root_dev_ino_without_use): Likewise.
70387         (sc_prohibit_openat_without_use): Likewise.
70388         (sc_prohibit_c_ctype_without_use): Likewise.
70389         (sc_prohibit_signal_without_use): Likewise.
70390         (sc_prohibit_intprops_without_use): Likewise.
70392 2010-03-30  Eric Blake  <eblake@redhat.com>
70394         maint: improve module indicators
70395         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
70396         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
70397         columns, and avoid extra macro expansion.
70399         fdopendir: work around FreeBSD bug
70400         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
70401         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
70402         * modules/dirent (Makefile.am): Substitute it.
70403         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
70404         declaration.
70405         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
70406         fix.
70407         Reported by Christian Weisgerber <naddy@mips.inka.de>.
70409 2010-03-29  Bruno Haible  <bruno@clisp.org>
70411         Emit #pragma system_header after the inclusion guard, not before.
70412         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
70413         guard that spans the entire file, not before. This enables an
70414         optimization in GCC's preprocessor.
70415         * lib/ctype.in.h: Likewise.
70416         * lib/dirent.in.h: Likewise.
70417         * lib/errno.in.h: Likewise.
70418         * lib/float.in.h: Likewise.
70419         * lib/getopt.in.h: Likewise.
70420         * lib/iconv.in.h: Likewise.
70421         * lib/langinfo.in.h: Likewise.
70422         * lib/locale.in.h: Likewise.
70423         * lib/math.in.h: Likewise.
70424         * lib/netdb.in.h: Likewise.
70425         * lib/netinet_in.in.h: Likewise.
70426         * lib/pty.in.h: Likewise.
70427         * lib/sched.in.h: Likewise.
70428         * lib/se-selinux.in.h: Likewise.
70429         * lib/search.in.h: Likewise.
70430         * lib/spawn.in.h: Likewise.
70431         * lib/stdarg.in.h: Likewise.
70432         * lib/stdint.in.h: Likewise.
70433         * lib/string.in.h: Likewise.
70434         * lib/strings.in.h: Likewise.
70435         * lib/sys_file.in.h: Likewise.
70436         * lib/sys_ioctl.in.h: Likewise.
70437         * lib/sys_time.in.h: Likewise.
70438         * lib/sys_times.in.h: Likewise.
70439         * lib/sys_utsname.in.h: Likewise.
70440         * lib/sys_wait.in.h: Likewise.
70441         * lib/sysexits.in.h: Likewise.
70442         * lib/wctype.in.h: Likewise.
70444 2010-03-28  James Youngman  <jay@gnu.org>
70446         save-cwd: don't leak a file descriptor when the caller execs.
70447         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
70448         saved file descriptor.
70449         * modules/save-cwd (Depends-on): Depend on cloexec.
70451 2010-03-29  Bruno Haible  <bruno@clisp.org>
70453         Remove vestiges of fts-lgpl module.
70454         * lib/fts_.h: Assume GNULIB_FTS is 1.
70455         * lib/fts.c: Likewise.
70456         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70458 2010-03-28  Bruno Haible  <bruno@clisp.org>
70460         Fix definition of tests witness macro.
70461         * gnulib-tool (func_import): Fix definition of witness macro.
70463 2010-03-28  Bruno Haible  <bruno@clisp.org>
70465         Fix ioctl's protoype on glibc systems.
70466         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
70467         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
70468         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
70469         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
70470         signature. If not, arrange to replace the ioctl function.
70471         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
70472         REPLACE_IOCTL.
70473         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
70474         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
70475         Reported by Ludovic Courtès <ludo@gnu.org>.
70477 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
70479         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
70480         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
70481         made it so grep -r --include=GLOB* ... did not work.
70483 2010-03-26  Jim Meyering  <meyering@redhat.com>
70484             Eric Blake  <eblake@redhat.com>
70486         maint.mk: prohibit use of test's -o and -a operators
70487         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
70489 2010-03-28  Bruno Haible  <bruno@clisp.org>
70491         Remove unused GNULIB_XYZ macro definitions.
70492         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
70493         invocation.
70495 2010-03-28  Bruno Haible  <bruno@clisp.org>
70497         Mark privileged tests modules.
70498         * modules/idpriv-drop-tests (Status): New section.
70499         * modules/idpriv-droptemp-tests (Status): New section.
70501 2010-03-28  Bruno Haible  <bruno@clisp.org>
70503         Split C++ tests into separate tests modules.
70504         * modules/dirent-c++-tests: New file, extracted from
70505         modules/dirent-tests.
70506         * modules/dirent-tests: Depend on it.
70507         * modules/fcntl-h-c++-tests: New file, extracted from
70508         modules/fcntl-h-tests.
70509         * modules/fcntl-h-tests: Depend on it.
70510         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
70511         * modules/glob-tests: Depend on it.
70512         * modules/iconv-h-c++-tests: New file, extracted from
70513         modules/iconv-h-tests.
70514         * modules/iconv-h-tests: Depend on it.
70515         * modules/langinfo-c++-tests: New file, extracted from
70516         modules/langinfo-tests.
70517         * modules/langinfo-tests: Depend on it.
70518         * modules/locale-c++-tests: New file, extracted from
70519         modules/locale-tests.
70520         * modules/locale-tests: Depend on it.
70521         * modules/math-c++-tests: New file, extracted from modules/math-tests.
70522         * modules/math-tests: Depend on it.
70523         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
70524         * modules/pty-tests: Depend on it.
70525         * modules/search-c++-tests: New file, extracted from
70526         modules/search-tests.
70527         * modules/search-tests: Depend on it.
70528         * modules/signal-c++-tests: New file, extracted from
70529         modules/signal-tests.
70530         * modules/signal-tests: Depend on it.
70531         * modules/spawn-c++-tests: New file, extracted from
70532         modules/spawn-tests.
70533         * modules/spawn-tests: Depend on it.
70534         * modules/stdio-c++-tests: New file, extracted from
70535         modules/stdio-tests.
70536         * modules/stdio-tests: Depend on it.
70537         * modules/stdlib-c++-tests: New file, extracted from
70538         modules/stdlib-tests.
70539         * modules/stdlib-tests: Depend on it.
70540         * modules/string-c++-tests: New file, extracted from
70541         modules/string-tests.
70542         * modules/string-tests: Depend on it.
70543         * modules/sys_ioctl-c++-tests: New file, extracted from
70544         modules/sys_ioctl-tests.
70545         * modules/sys_ioctl-tests: Depend on it.
70546         * modules/sys_select-c++-tests: New file, extracted from
70547         modules/sys_select-tests.
70548         * modules/sys_select-tests: Depend on it.
70549         * modules/sys_socket-c++-tests: New file, extracted from
70550         modules/sys_socket-tests.
70551         * modules/sys_socket-tests: Depend on it.
70552         * modules/sys_stat-c++-tests: New file, extracted from
70553         modules/sys_stat-tests.
70554         * modules/sys_stat-tests: Depend on it.
70555         * modules/sys_time-c++-tests: New file, extracted from
70556         modules/sys_time-tests.
70557         * modules/sys_time-tests: Depend on it.
70558         * modules/time-c++-tests: New file, extracted from modules/time-tests.
70559         * modules/time-tests: Depend on it.
70560         * modules/unistd-c++-tests: New file, extracted from
70561         modules/unistd-tests.
70562         * modules/unistd-tests: Depend on it.
70563         * modules/wchar-c++-tests: New file, extracted from
70564         modules/wchar-tests.
70565         * modules/wchar-tests: Depend on it.
70566         * modules/wctype-c++-tests: New file, extracted from
70567         modules/wctype-tests.
70568         * modules/wctype-tests: Depend on it.
70569         Reported by Simon Josefsson.
70571 2010-03-28  Bruno Haible  <bruno@clisp.org>
70573         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
70574         * gnulib-tool (func_exists_module): New function, extracted from
70575         func_verify_module.
70576         (func_verify_module): Use it.
70577         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
70578         'foo' only if 'foo' exists.
70579         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
70580         module.
70582 2010-03-28  Bruno Haible  <bruno@clisp.org>
70584         gnulib-tool: Add support for special categories of tests.
70585         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
70586         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
70587         (func_usage): Document them.
70588         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
70589         inc_unportable_tests, inc_all_tests): New variables.
70590         (func_acceptable): Consider these variables.
70591         (func_modules_transitive_closure): Make it work when the 'Status' field
70592         consists of multiple words.
70593         (func_import): Store and restore the values of inc_cxx_tests,
70594         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
70595         inc_all_tests in gnulib-comp.m4.
70596         (func_create_testdir): Set inc_all_tests to true.
70597         * doc/gnulib.texi (Extra tests modules): New section.
70598         Suggested by Jim Meyering.
70600 2010-03-28  Bruno Haible  <bruno@clisp.org>
70602         ansi-c++-opt: Allow turning off the C++ build by default.
70603         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
70604         gl_CXX_CHOICE_DEFAULT_NO is defined.
70605         Requested by Eric Blake.
70607 2010-03-28  Bruno Haible  <bruno@clisp.org>
70609         unistd: Avoid #define replacements in C++ mode.
70610         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
70611         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
70612         setsockopt, shutdown, select): In C++, attach a warning to the function
70613         if possible, rather than #defining the symbol to a dysfunctional alias.
70614         Reported by John W. Eaton <jwe@gnu.org>.
70616 2010-03-28  Bruno Haible  <bruno@clisp.org>
70618         Fix link errors on mingw.
70619         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
70620         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
70621         $(LIBSOCKET).
70622         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
70623         $(LIBSOCKET).
70625 2010-03-28  Bruno Haible  <bruno@clisp.org>
70626             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70628         lib-ignore: Determine different options for different compilers.
70629         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
70630         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
70631         Add comments.
70632         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
70633         * NEWS: Mention the change.
70635 2010-03-27  Bruno Haible  <bruno@clisp.org>
70637         Remove unused GNULIB_XYZ macro definitions.
70638         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
70639         * modules/fseek (configure.ac): Likewise.
70640         * modules/ioctl (configure.ac): Likewise.
70641         * modules/open (configure.ac): Likewise.
70642         * modules/stdlib-safer (configure.ac): Likewise.
70644 2010-03-27  Bruno Haible  <bruno@clisp.org>
70646         Add a remark about certain modules.
70647         * modules/malloc (Comment): New section.
70648         * modules/realloc (Comment): Likewise.
70649         * modules/sigpipe (Comment): Likewise.
70651 2010-03-27  Bruno Haible  <bruno@clisp.org>
70653         Resolve conflict between the two kinds of module indicators.
70654         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
70655         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
70656         * modules/canonicalize (configure.ac): Invoke
70657         gl_MODULE_INDICATOR_FOR_TESTS.
70658         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
70659         GNULIB_XYZ.
70660         * tests/test-dirent-c++.cc: Likewise.
70661         * tests/test-dirent-safer.c: Likewise.
70662         * tests/test-dup2.c: Likewise.
70663         * tests/test-fchdir.c: Likewise.
70664         * tests/test-fcntl-h-c++.cc: Likewise.
70665         * tests/test-getopt.c: Likewise.
70666         * tests/test-getopt.h: Likewise.
70667         * tests/test-langinfo-c++.cc: Likewise.
70668         * tests/test-locale-c++.cc: Likewise.
70669         * tests/test-math-c++.cc: Likewise.
70670         * tests/test-pty-c++.cc: Likewise.
70671         * tests/test-search-c++.cc: Likewise.
70672         * tests/test-signal-c++.cc: Likewise.
70673         * tests/test-spawn-c++.cc: Likewise.
70674         * tests/test-stdio-c++.cc: Likewise.
70675         * tests/test-stdlib-c++.cc: Likewise.
70676         * tests/test-string-c++.cc: Likewise.
70677         * tests/test-sys_ioctl-c++.cc: Likewise.
70678         * tests/test-sys_select-c++.cc: Likewise.
70679         * tests/test-sys_socket-c++.cc: Likewise.
70680         * tests/test-sys_stat-c++.cc: Likewise.
70681         * tests/test-sys_time-c++.cc: Likewise.
70682         * tests/test-time-c++.cc: Likewise.
70683         * tests/test-unistd-c++.cc: Likewise.
70684         * tests/test-wchar-c++.cc: Likewise.
70685         * tests/uninorm/test-u8-nfc.c: Likewise.
70686         * tests/uninorm/test-u8-nfd.c: Likewise.
70687         * tests/uninorm/test-u8-nfkc.c: Likewise.
70688         * tests/uninorm/test-u8-nfkd.c: Likewise.
70689         * tests/uninorm/test-u16-nfc.c: Likewise.
70690         * tests/uninorm/test-u16-nfd.c: Likewise.
70691         * tests/uninorm/test-u16-nfkc.c: Likewise.
70692         * tests/uninorm/test-u16-nfkd.c: Likewise.
70693         * tests/uninorm/test-u32-nfc.c: Likewise.
70694         * tests/uninorm/test-u32-nfc-big.c: Likewise.
70695         * tests/uninorm/test-u32-nfd.c: Likewise.
70696         * tests/uninorm/test-u32-nfd-big.c: Likewise.
70697         * tests/uninorm/test-u32-nfkc.c: Likewise.
70698         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
70699         * tests/uninorm/test-u32-nfkd.c: Likewise.
70700         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
70701         * tests/uninorm/test-u32-normalize-big.c: Likewise.
70703 2010-03-27  Bruno Haible  <bruno@clisp.org>
70705         Distinguish two kinds of module indicators.
70706         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
70707         gl_MODULE_INDICATOR.
70708         (gl_MODULE_INDICATOR): New macro.
70709         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
70710         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
70711         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70712         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70713         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70714         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70715         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70716         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70717         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70718         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70719         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70720         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70721         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70722         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70723         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70724         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70725         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70726         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70727         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70728         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70729         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70730         * modules/cloexec (configure.ac): Likewise.
70731         * modules/getopt-gnu (configure.ac): Likewise.
70732         * modules/uninorm/u8-normalize (configure.ac): Likewise.
70733         * modules/uninorm/u16-normalize (configure.ac): Likewise.
70734         * modules/uninorm/u32-normalize (configure.ac): Likewise.
70735         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
70737 2010-03-27  Bruno Haible  <bruno@clisp.org>
70739         New module description field 'Comment'.
70740         * gnulib-tool: New option --extract-comment.
70741         (func_usage): Document it.
70742         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
70743         (func_get_comment): New function.
70744         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
70746 2010-03-27  Bruno Haible  <bruno@clisp.org>
70748         Addendum to 2010-02-07 commit.
70749         * gnulib-tool (func_usage): Document --extract-applicability option.
70751 2010-03-27  Bruno Haible  <bruno@clisp.org>
70753         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
70754         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
70755         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
70756         rather than link errors.
70758 2010-03-27  Bruno Haible  <bruno@clisp.org>
70760         Avoid side effects from tests-related modules on the compilation of lib.
70761         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
70762         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
70763         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
70764         parameter. Emit into AM_CPPFLAGS a definition of the designated C
70765         macro.
70766         (func_import): Define a witness macro. Assign it a value that depends
70767         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
70768         tests-related modules.
70769         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
70770         Reported by Jim Meyering.
70772 2010-03-27  Bruno Haible  <bruno@clisp.org>
70774         Factorize common .m4 code.
70775         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
70776         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
70777         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
70778         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
70779         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
70780         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
70781         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
70782         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
70783         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
70784         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
70785         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
70786         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
70787         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
70788         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
70789         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
70790         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
70791         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
70792         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
70793         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
70794         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
70795         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
70796         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
70797         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
70798         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
70799         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
70800         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
70801         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
70802         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
70803         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
70804         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
70805         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
70806         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
70808 2010-03-27  Bruno Haible  <bruno@clisp.org>
70810         Fix a compilation error on Cygwin with g++ >= 4.3.
70811         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
70812         if it is undefined or if we alias it to chmod.
70813         (lstat): Don't warn about the use of this function if it is undefined
70814         or if we alias it to stat.
70815         Reported by Simon Josefsson.
70817 2010-03-27  Bruno Haible  <bruno@clisp.org>
70819         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
70820         * modules/getlogin (configure.ac): Update.
70822         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
70823         * modules/getlogin_r (configure.ac): Update.
70825         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
70826         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
70827         * modules/inet_ntop (configure.ac): Update.
70829         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
70830         * modules/inet_pton (configure.ac): Update.
70832         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
70833         * modules/mbslen (configure.ac): Update.
70835         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
70836         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
70837         * modules/forkpty (configure.ac): Update.
70838         * modules/openpty (configure.ac): Update.
70840 2010-03-26  Simon Josefsson  <simon@josefsson.org>
70842         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
70843         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
70845 2010-03-25  Eric Blake  <eblake@redhat.com>
70847         maint: use pragma consistently across replacement headers
70848         * lib/ctype.in.h (system_header): Hoist for consistent placement.
70849         * lib/dirent.in.h (system_header): Likewise.
70850         * lib/errno.in.h (system_header): Likewise.
70851         * lib/float.in.h (system_header): Likewise.
70852         * lib/getopt.in.h (system_header): Likewise.
70853         * lib/iconv.in.h (system_header): Likewise.
70854         * lib/inttypes.in.h (system_header): Likewise.
70855         * lib/langinfo.in.h (system_header): Likewise.
70856         * lib/locale.in.h (system_header): Likewise.
70857         * lib/math.in.h (system_header): Likewise.
70858         * lib/netdb.in.h (system_header): Likewise.
70859         * lib/netinet_in.in.h (system_header): Likewise.
70860         * lib/pty.in.h (system_header): Likewise.
70861         * lib/sched.in.h (system_header): Likewise.
70862         * lib/se-selinux.in.h (system_header): Likewise.
70863         * lib/search.in.h (system_header): Likewise.
70864         * lib/spawn.in.h (system_header): Likewise.
70865         * lib/stdarg.in.h (system_header): Likewise.
70866         * lib/stdint.in.h (system_header): Likewise.
70867         * lib/string.in.h (system_header): Likewise.
70868         * lib/strings.in.h (system_header): Likewise.
70869         * lib/sys_file.in.h (system_header): Likewise.
70870         * lib/sys_ioctl.in.h (system_header): Likewise.
70871         * lib/sys_socket.in.h (system_header): Likewise.
70872         * lib/sys_times.in.h (system_header): Likewise.
70873         * lib/sys_utsname.in.h (system_header): Likewise.
70874         * lib/sys_wait.in.h (system_header): Likewise.
70875         * lib/sysexits.in.h (system_header): Likewise.
70876         * lib/unistd.in.h (system_header): Likewise.
70877         * lib/wctype.in.h (system_header): Likewise.
70879         arpa/inet: fix mingw compilation warning
70880         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
70881         Reported by Matthew Bolte.
70883 2010-03-25  Bruno Haible  <bruno@clisp.org>
70885         Avoid collision between gnulib wrapper and libintl wrapper.
70886         * lib/printf.c (printf): Don't define if a printf wrapper is already
70887         defined in intl/printf.c.
70888         Reported by Michel Boaventura <michel@michelboaventura.com>.
70890 2010-03-25  Bruno Haible  <bruno@clisp.org>
70892         Use ANSI C.
70893         * lib/readutmp.h (getutent): Provide ANSI C prototype.
70895 2010-03-25  Bruno Haible  <bruno@clisp.org>
70897         Minor formatting changes.
70898         * lib/acosl.c: Insert space before function argument list.
70899         * lib/argz.c: Likewise.
70900         * lib/asinl.c: Likewise.
70901         * lib/expl.c: Likewise.
70902         * lib/gen-uni-tables.c: Likewise.
70903         * lib/gettext.h: Likewise.
70904         * lib/glthread/lock.h: Likewise.
70905         * lib/tanl.c: Likewise.
70906         * lib/uniname/uniname.c: Likewise.
70907         * tests/test-idpriv-drop.c: Likewise.
70908         * tests/test-idpriv-droptemp.c: Likewise.
70909         * tests/test-lock.c: Likewise.
70910         * tests/test-tls.c: Likewise.
70911         * lib/argp-help.c: Insert space before function-like macro argument
70912         list.
70913         * lib/memcmp.c: Likewise.
70914         * tests/test-base64.c: Likewise.
70915         * lib/localename.c: Insert space before sizeof's argument list.
70916         * lib/safe-alloc.h: Likewise.
70917         * lib/file-set.h: Insert space before macro argument list.
70918         * tests/test-argp.c: Likewise.
70919         * lib/argp-namefrob.h: Insert space before function parameter list.
70920         * lib/getaddrinfo.c: Likewise.
70921         * lib/netdb.in.h: Likewise.
70922         * lib/parse-duration.h: Likewise.
70923         * lib/parse-duration.c: Likewise.
70924         * lib/poll.c: Likewise.
70925         * lib/select.c: Likewise.
70926         * lib/trim.h: Likewise.
70927         * tests/test-usleep.c: Likewise.
70928         * lib/ldexpl.c: Insert space before function parameter list and before
70929         function argument list.
70930         * lib/logl.c: Likewise.
70931         * lib/sqrtl.c: Likewise.
70932         * lib/trim.c: Likewise.
70933         * lib/cosl.c: Use GNU style indentation. Insert space before function
70934         argument list.
70935         * lib/sinl.c: Likewise.
70936         * lib/tsearch.c: Insert space after 'for'.
70937         Reported by Jim Meyering.
70939 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
70941         * maint.mk (sc_Wundef_boolean): Check for the presence of the
70942         config header before grepping, as it's not present before
70943         autoreconf/configure are run.  Reported by Simon Josefsson.
70945 2010-03-23  Bruno Haible  <bruno@clisp.org>
70947         pt_chown: Make it work with automake < 1.11.
70948         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
70949         Reported by Simon Josefsson.
70951 2010-03-23  Bruno Haible  <bruno@clisp.org>
70953         pt_chown: Don't depend on GPLed modules.
70954         * lib/pt_chown.c: Don't include idpriv.h.
70955         (main): Don't drop privileges.
70956         * modules/pt_chown (Depends-on): Remove idpriv-drop.
70957         Reported by Simon Josefsson.
70959 2010-03-24  Simon Josefsson  <simon@josefsson.org>
70961         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
70962         suggestions from karl@freefriends.org (Karl Berry).
70964 2010-03-22  Eric Blake  <eblake@redhat.com>
70966         gethostname: further tweaks
70967         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
70968         are overriding gethostname.
70969         Suggested by Bruno Haible.
70971 2010-03-21  Bruno Haible  <bruno@clisp.org>
70973         Fix comments.
70974         * lib/forkpty.c (rpl_forkpty): Fix comment.
70975         * lib/openpty.c (rpl_openpty): Likewise.
70976         Reported by Eric Blake.
70978 2010-03-22  Eric Blake  <eblake@redhat.com>
70980         gethostname: fix build on mingw
70981         * lib/unistd.in.h (includes): Work around fact that mingw
70982         <winsock2.h> re-includes <unistd.h>, by avoiding any
70983         redeclarations if we are being included by <winsock2.h>.
70984         Reported by Matthias Bolte.
70986 2010-03-21  Bruno Haible  <bruno@clisp.org>
70988         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
70989         * lib/forkpty.c (forkpty): New replacement function, from glibc with
70990         modifications.
70991         * lib/pty.in.h (forkpty): Update declaration. Add comments.
70992         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
70993         provide the replacement.
70994         * modules/forkpty (Depends-on): Add openpty, login_tty.
70995         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
70996         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
70997         * doc/glibc-functions/forkpty.texi: More supported platforms.
70998         * config/srclist.txt: Add forkpty.c (commented).
71000 2010-03-21  Bruno Haible  <bruno@clisp.org>
71002         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
71003         (Makefile.am): Verify that PTY_LIB is defined.
71005         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
71007 2010-03-21  Bruno Haible  <bruno@clisp.org>
71009         Tests for module 'login_tty'.
71010         * modules/login_tty-tests: New file.
71011         * tests/test-login_tty.c: New file.
71013         New module 'login_tty'.
71014         * lib/login_tty.c: New file.
71015         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
71016         * modules/login_tty: New file.
71017         * doc/glibc-functions/login_tty.texi: Mention the new module.
71019 2010-03-21  Bruno Haible  <bruno@clisp.org>
71021         login_tty: Documentation.
71022         * doc/glibc-functions/login_tty.texi: New file.
71023         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
71025 2010-03-21  Bruno Haible  <bruno@clisp.org>
71027         pty: Consistent macro naming.
71028         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
71029         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
71030         * modules/pty (configure.ac): Update.
71032 2010-03-21  Bruno Haible  <bruno@clisp.org>
71034         Tests for openpty: Make stricter.
71035         * tests/test-openpty.c (main): Add test of canonical processing and
71036         erase.
71037         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
71039         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
71040         * lib/openpty.c (openpty): New replacement function.
71041         * lib/pty.in.h: Include <termios.h>.
71042         (openpty): Update declaration. Add comments.
71043         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
71044         is not declared, arrange to provide the replacement. Check for _getpty
71045         and posix_openpt.
71046         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
71047         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
71048         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
71049         * modules/pty-tests (test_pty_c___LDADD): New variable.
71050         * doc/glibc-functions/openpty.texi: More supported platforms.
71052 2010-03-21  Bruno Haible  <bruno@clisp.org>
71054         setenv: Tweaks.
71055         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
71056         the test program.
71057         * doc/posix-functions/setenv.texi: Update platforms list.
71059 2010-03-21  Bruno Haible  <bruno@clisp.org>
71061         New module 'unlockpt'.
71062         * lib/unlockpt.c: New file, from glibc with modifications.
71063         * m4/unlockpt.m4: New file.
71064         * modules/unlockpt: New file.
71065         * lib/stdlib.in.h (unlockpt): New declaration.
71066         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
71067         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
71068         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
71069         HAVE_UNLOCKPT.
71070         * doc/posix-functions/unlockpt.texi: Mention the new module.
71071         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
71072         * config/srclist.txt: Add unlockpt.c (commented).
71074 2010-03-21  Jim Meyering  <meyering@redhat.com>
71076         maint.mk: prohibit inclusion of "intprops.h" without use
71077         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
71079 2010-03-21  Bruno Haible  <bruno@clisp.org>
71081         New module 'grantpt'.
71082         * lib/grantpt.c: New file, from glibc with modifications.
71083         * m4/grantpt.m4: New file.
71084         * modules/grantpt: New file.
71085         * lib/stdlib.in.h (grantpt): New declaration.
71086         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
71087         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
71088         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
71089         HAVE_GRANTPT.
71090         * doc/posix-functions/grantpt.texi: Mention the new module.
71091         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
71092         * config/srclist.txt: Add grantpt.c (commented).
71094 2010-03-21  Bruno Haible  <bruno@clisp.org>
71096         New module 'pt_chown'.
71097         * lib/pt_chown.c: New file, from glibc with modifications.
71098         * lib/pty-private.h: New file, from glibc with modifications.
71099         * modules/pt_chown: New file.
71100         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
71102 2010-03-21  Bruno Haible  <bruno@clisp.org>
71104         Tests for module 'ptsname'.
71105         * modules/ptsname-tests: New file.
71106         * tests/test-ptsname.c: New file.
71108         New module 'ptsname'.
71109         * lib/ptsname.c: New file, from glibc with modifications.
71110         * m4/ptsname.m4: New file.
71111         * modules/ptsname: New file.
71112         * lib/stdlib.in.h (ptsname): New declaration.
71113         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
71114         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
71115         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
71116         HAVE_PTSNAME.
71117         * doc/posix-functions/ptsname.texi: Mention the new module.
71118         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
71119         * config/srclist.txt: Add ptsname.c (commented).
71121 2010-03-21  Bruno Haible  <bruno@clisp.org>
71123         Tests for module 'ttyname_r'.
71124         * modules/ttyname_r-tests: New file.
71125         * tests/test-ttyname_r.c: New file.
71127         New module 'ttyname_r'.
71128         * lib/ttyname_r.c: New file.
71129         * m4/ttyname_r.m4: New file.
71130         * modules/ttyname_r: New file.
71131         * lib/unistd.in.h (ttyname_r): New declaration.
71132         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
71133         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
71134         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
71135         HAVE_TTYNAME_R.
71136         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
71137         * doc/posix-functions/ttyname_r.texi: Mention the new module.
71139 2010-03-20  Bruno Haible  <bruno@clisp.org>
71141         signal: Undefine macro definitions in C++ mode.
71142         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
71143         sigfillset): Undefine macro definitions from the system header in C++
71144         mode.
71145         Reported by John W. Eaton <jwe@gnu.org>.
71147 2010-03-20  Bruno Haible  <bruno@clisp.org>
71149         Ensure no #include statements inside extern "C" { ... }.
71150         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
71151         contain #include statements.
71152         * lib/time.in.h: Likewise.
71154 2010-03-20  Bruno Haible  <bruno@clisp.org>
71156         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
71157         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
71158         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
71159         Reported by John W. Eaton <jwe@gnu.org>.
71161 2010-03-20  Bruno Haible  <bruno@clisp.org>
71163         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
71164         Reported by Jim Meyering.
71166 2010-03-20  Bruno Haible  <bruno@clisp.org>
71168         pipe: Set errno upon failure.
71169         * lib/pipe.h: Specify that when -1 is returned, errno is set.
71170         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
71171         errno value in error message.
71173 2010-03-20  Bruno Haible  <bruno@clisp.org>
71174             Jim Meyering  <meyering@redhat.com>
71176         lchown: Avoid "unused variable" warning.
71177         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
71179 2010-03-20  Bruno Haible  <bruno@clisp.org>
71181         Work around unlink() bug on MacOS X 10.5.6.
71182         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
71183         attempting to unlink a parent directory.
71184         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
71185         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
71186         activate for the replacement function.
71187         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
71189 2010-03-20  Bruno Haible  <bruno@clisp.org>
71191         Fix link errors on Solaris 8.
71192         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
71193         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
71195 2010-03-19  Jim Meyering  <meyering@redhat.com>
71197         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
71198         The _LIBC implementation of build_range_exp correctly honors the
71199         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
71200         However, the non-_LIBC implementation would ignore that syntax-bit
71201         flag and return REG_ERANGE unconditionally.
71202         This change makes it honor that flag.
71203         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
71204         Make two pointer parameters "const".
71205         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
71206         (parse_bracket_exp): Update caller.
71208         regex.m4: correct the reversed range endpoint ([b-a]) test
71209         * m4/regex.m4: When requiring that [b-a] evoke failure,
71210         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
71211         test pass once again for x86-based systems.
71213 2010-03-19  Bruno Haible  <bruno@clisp.org>
71215         scandir: Fix link error on Solaris 8.
71216         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
71217         macros.
71219 2010-03-19  Bruno Haible  <bruno@clisp.org>
71221         getusershell: Fix documentation.
71222         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
71223         module.
71224         * doc/glibc-functions/setusershell.texi: Likewise.
71226         getusershell: Provide declaration, missing on Solaris 9.
71227         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
71228         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
71229         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
71230         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
71231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
71232         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
71233         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
71234         HAVE_GETUSERSHELL.
71235         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
71237 2010-03-19  Bruno Haible  <bruno@clisp.org>
71239         wctype: Provide iswblank function.
71240         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
71241         exists and is fine.
71242         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
71243         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
71244         * tests/test-wctype.c (main): Re-enable the iswblank tests.
71245         * doc/posix-functions/iswblank.texi: Update.
71247 2010-03-19  Bruno Haible  <bruno@clisp.org>
71249         Tests of module 'pty' in C++ mode.
71250         * modules/pty-tests: New file.
71251         * tests/test-pty-c++.cc: New file.
71252         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71254 2010-03-19  Eric Blake  <eblake@redhat.com>
71256         logb: fix documentation
71257         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
71258         1.5 declaration bug.
71260         forkpty, openpty: prefer glibc's const-safe prototype
71261         * lib/forkpty.c (rpl_forkpty): New file.
71262         * lib/openpty.c (rpl_openpty): Likewise.
71263         * modules/forkpty (Files): Distribute it.
71264         * modules/openpty (Files): Likewise.
71265         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
71266         check...
71267         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
71268         replacement for non-const BSD signature.
71269         * modules/pty (Makefile.am): Substitute witnesses.
71270         * lib/pty.in.h (forkpty, openpty): Declare replacements.
71271         * tests/test-forkpty.c: Update signature check.
71272         * tests/test-openpty.c: Likewise.
71273         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
71274         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71276         forkpty, openpty: split functions into new modules
71277         * modules/pty (Makefile.am): Substitute new witnesses.
71278         (Libraries): Move library detection...
71279         * modules/forkpty: ...into new module.
71280         * modules/openpty: Another new module.
71281         * modules/pty-tests: Rename and split...
71282         * modules/forkpty-tests: ...to this...
71283         * modules/openpty-tests: ...and this.
71284         * tests/test-pty.c: Rename and split...
71285         * tests/test-forkpty.c: ...to this...
71286         * tests/test-openpty.c: ...and this.
71287         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
71288         (gl_PTY): Split library searching...
71289         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
71290         (gl_FORKPTY, gl_OPENPTY): New macros.
71291         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
71292         * NEWS: Mention the split.
71293         * MODULES.html.sh (Misc): Document the modules.
71294         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
71295         * doc/glibc-functions/openpty.texi (openpty): Likewise.
71297         pty: improve replacement header
71298         * lib/pty.in.h: New file.
71299         * modules/pty (Files): Ship it.
71300         (Makefile.am): Always build replacement.
71301         * m4/pty.m4: Rename...
71302         * m4/pty_h.m4: ...to this.
71303         (gl_PTY): Modernize setting of witness macros; update check of
71304         forkpty to take proper advantage of cache.
71305         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
71307         getopt: avoid compiler warning
71308         * lib/getopt.c (attribute_hidden): Remove unused macro.
71310 2010-03-18  Bruno Haible  <bruno@clisp.org>
71312         Fix link errors on Solaris 8.
71313         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
71314         * modules/search-tests (test_search_c___LDADD): Likewise.
71315         * modules/signal-tests (test_signal_c___LDADD): Likewise.
71316         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
71317         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
71318         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
71319         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
71320         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
71321         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
71323 2010-03-18  Bruno Haible  <bruno@clisp.org>
71325         Fix bug introduced on 2010-03-14.
71326         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
71327         (gl_SPAWN_H): Require it.
71328         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
71329         Reported by Simon Josefsson.
71331 2010-03-18  Bruno Haible  <bruno@clisp.org>
71333         Fix typo introduced on 2009-12-31.
71334         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
71335         posix_spawn_file_actions_adddup2.
71337 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
71338         and Eric Blake  <eblake@redhat.com>
71340         test-vc-list-files-git: make more robust
71341         * tests/test-vc-list-files-git.sh: Unset problematic environment
71342         variables.  Chain commands together.
71344 2010-03-17  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
71346         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
71347         `AC_CHECK_DECL' invocation.
71349 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
71351         * lib/inttostr.c (inttostr): Make sure the invocation of verify
71352         appears before executable statements. Suggested by Petr Sumbera
71353         <Petr.Sumbera@Sun.COM>.
71355 2010-03-14  Bruno Haible  <bruno@clisp.org>
71357         * tests/test-flock.c (test_exclusive): Comment out a test that causes
71358         portability problems. Instead use a simpler test.
71359         (main): Check that invalid arguments are rejected only on Linux.
71361 2010-03-14  Bruno Haible  <bruno@clisp.org>
71363         Fix bug introduced on 2009-12-31.
71364         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
71365         gl_PREREQ_SYS_H_WINSOCK2 always.
71366         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
71367         SYS_SOCKET_H variable.
71368         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
71369         Update comments.
71370         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
71371         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
71372         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
71373         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
71374         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
71376 2010-03-14  Bruno Haible  <bruno@clisp.org>
71378         Fix values returned by sinl, cosl.
71379         * lib/trigl.h: Add specification comments.
71380         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
71381         that combines the values from the precomputed table with the values of
71382         the Chebyshev polynomials.
71384 2010-03-14  Bruno Haible  <bruno@clisp.org>
71386         Fix compilation error when modules 'posix_spawn[p]' are not used.
71387         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
71388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
71390 2010-03-14  Bruno Haible  <bruno@clisp.org>
71392         Fix compilation error on mingw when module 'time_r' is not used.
71393         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
71394         is 1.
71395         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
71396         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71397         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
71398         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
71400 2010-03-14  Bruno Haible  <bruno@clisp.org>
71402         Fix compilation error with Sun C.
71403         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
71404         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
71405         instead of GCC specific ULONG_LONG_MAX.
71406         * lib/xstrtoll.c: Likewise.
71407         * lib/xstrtoull.c: Likewise.
71409 2010-03-13  Bruno Haible  <bruno@clisp.org>
71411         Allow the user to disable C++ code and tests.
71412         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
71413         (gl_PROG_ANSI_CXX): Require it.
71415 2010-03-13  Bruno Haible  <bruno@clisp.org>
71417         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
71418         cases.
71420 2010-03-13  Bruno Haible  <bruno@clisp.org>
71422         Test that gnulib does not break the standard C++ headers.
71423         * tests/test-locale-c++2.cc: New file.
71424         * modules/locale-tests (Files): Add it.
71425         (Makefile.am): Compile it for test-locale-c++.
71426         * tests/test-math-c++2.cc: New file.
71427         * modules/math-tests (Files): Add it.
71428         (Makefile.am): Compile it for test-math-c++.
71429         * tests/test-signal-c++2.cc: New file.
71430         * modules/signal-tests (Files): Add it.
71431         (Makefile.am): Compile it for test-signal-c++.
71432         * tests/test-stdio-c++2.cc: New file.
71433         * modules/stdio-tests (Files): Add it.
71434         (Makefile.am): Compile it for test-stdio-c++.
71435         * tests/test-stdlib-c++2.cc: New file.
71436         * modules/stdlib-tests (Files): Add it.
71437         (Makefile.am): Compile it for test-stdlib-c++.
71438         * tests/test-string-c++2.cc: New file.
71439         * modules/string-tests (Files): Add it.
71440         (Makefile.am): Compile it for test-string-c++.
71441         * tests/test-time-c++2.cc: New file.
71442         * modules/time-tests (Files): Add it.
71443         (Makefile.am): Compile it for test-time-c++.
71444         Reported by John W. Eaton <jwe@gnu.org>.
71446 2010-03-13  Bruno Haible  <bruno@clisp.org>
71448         * gnulib-tool (func_usage): Clarify which options are available for
71449         --create-testdir and --create-megatestdir.
71451 2010-03-13  Bruno Haible  <bruno@clisp.org>
71453         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
71454         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
71455         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
71456         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
71457         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
71458         when appropriate.
71459         Reported by Jim Meyering.
71461 2010-03-12  Simon Josefsson  <simon@josefsson.org>
71463         * gnulib-tool (func_import): Explain origin of code.
71465 2010-03-12  Bruno Haible  <bruno@clisp.org>
71467         Fix problem with automake's definition of CXXLINK.
71468         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
71469         Reported by Simon Josefsson and Ludovic Courtès.
71471 2010-03-12  Bruno Haible  <bruno@clisp.org>
71473         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
71474         stable releases.
71476 2010-03-11  Bruno Haible  <bruno@clisp.org>
71478         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
71479         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
71480         whether the system provides one variant or multiple variants of the
71481         function.
71482         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
71483         C++ compilers.
71484         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
71485         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
71486         Reported by Jim Meyering.
71488 2010-03-09  Simon Josefsson  <simon@josefsson.org>
71490         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
71492 2010-03-08  Bruno Haible  <bruno@clisp.org>
71494         gnulib-tool: Add support for --libtool in --create-testdir.
71495         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
71496         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
71498 2010-03-08  Eric Blake  <eblake@redhat.com>
71500         gnulib-tool.texi: mention possibility of git submodule
71501         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
71502         submodules.
71503         * doc/.gitignore: Ignore another generated file.
71505 2010-03-08  Karl Berry  <karl@gnu.org>
71507         * doc/gnulib-tool.texi (VCS Issues): Mention third option
71508         of committing gnulib files while skipping others.
71510 2010-03-07  Bruno Haible  <bruno@clisp.org>
71512         Tests of module 'wctype' in C++ mode.
71513         * tests/test-wctype-c++.cc: New file.
71514         * modules/wctype-tests (Files): Add it and tests/signature.h.
71515         (Depends-on): Add ansi-c++-opt.
71516         (Makefile.am): Arrange to compile and run test-wctype-c++.
71518         Tests of module 'wchar' in C++ mode.
71519         * tests/test-wchar-c++.cc: New file.
71520         * modules/wchar-tests (Files): Add it and tests/signature.h.
71521         (Depends-on): Add ansi-c++-opt.
71522         (Makefile.am): Arrange to compile and run test-wchar-c++.
71523         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
71524         gl_MODULE_INDICATOR.
71526         Tests of module 'unistd' in C++ mode.
71527         * tests/test-unistd-c++.cc: New file.
71528         * modules/unistd-tests (Files): Add it and tests/signature.h.
71529         (Depends-on): Add ansi-c++-opt.
71530         (Makefile.am): Arrange to compile and run test-unistd-c++.
71531         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
71532         gl_MODULE_INDICATOR.
71534         Tests of module 'time' in C++ mode.
71535         * tests/test-time-c++.cc: New file.
71536         * modules/time-tests (Files): Add it and tests/signature.h.
71537         (Depends-on): Add ansi-c++-opt.
71538         (Makefile.am): Arrange to compile and run test-time-c++.
71539         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71541         Tests of module 'sys_time' in C++ mode.
71542         * tests/test-sys_time-c++.cc: New file.
71543         * modules/sys_time-tests (Files): Add it and tests/signature.h.
71544         (Depends-on): Add ansi-c++-opt.
71545         (Makefile.am): Arrange to compile and run test-sys_time-c++.
71546         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
71547         gl_MODULE_INDICATOR.
71549         Tests of module 'sys_stat' in C++ mode.
71550         * tests/test-sys_stat-c++.cc: New file.
71551         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
71552         (Depends-on): Add ansi-c++-opt.
71553         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
71554         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
71555         gl_MODULE_INDICATOR.
71557         Tests of module 'sys_socket' in C++ mode.
71558         * tests/test-sys_socket-c++.cc: New file.
71559         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
71560         (Depends-on): Add ansi-c++-opt.
71561         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
71562         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
71563         gl_MODULE_INDICATOR.
71565         Tests of module 'sys_select' in C++ mode.
71566         * tests/test-sys_select-c++.cc: New file.
71567         * modules/sys_select-tests (Files): Add it and tests/signature.h.
71568         (Depends-on): Add ansi-c++-opt.
71569         (Makefile.am): Arrange to compile and run test-sys_select-c++.
71570         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
71571         gl_MODULE_INDICATOR.
71573         Tests of module 'sys_ioctl' in C++ mode.
71574         * tests/test-sys_ioctl-c++.cc: New file.
71575         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
71576         (Depends-on): Add ansi-c++-opt.
71577         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
71578         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
71579         gl_MODULE_INDICATOR.
71581         Tests of module 'string' in C++ mode.
71582         * tests/test-string-c++.cc: New file.
71583         * modules/string-tests (Files): Add it and tests/signature.h.
71584         (Depends-on): Add ansi-c++-opt.
71585         (Makefile.am): Arrange to compile and run test-string-c++.
71586         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
71587         gl_MODULE_INDICATOR.
71589         Tests of module 'stdlib' in C++ mode.
71590         * tests/test-stdlib-c++.cc: New file.
71591         * modules/stdlib-tests (Files): Add it and tests/signature.h.
71592         (Depends-on): Add ansi-c++-opt.
71593         (Makefile.am): Arrange to compile and run test-stdlib-c++.
71594         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
71595         gl_MODULE_INDICATOR.
71597         Tests of module 'stdio' in C++ mode.
71598         * tests/test-stdio-c++.cc: New file.
71599         * modules/stdio-tests (Files): Add it and tests/signature.h.
71600         (Depends-on): Add ansi-c++-opt.
71601         (Makefile.am): Arrange to compile and run test-stdio-c++.
71602         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
71603         gl_MODULE_INDICATOR.
71605         Tests of module 'spawn' in C++ mode.
71606         * tests/test-spawn-c++.cc: New file.
71607         * modules/spawn-tests (Files): Add it and tests/signature.h.
71608         (Depends-on): Add ansi-c++-opt.
71609         (Makefile.am): Arrange to compile and run test-spawn-c++.
71610         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
71611         gl_MODULE_INDICATOR.
71613         Tests of module 'signal' in C++ mode.
71614         * tests/test-signal-c++.cc: New file.
71615         * modules/signal-tests (Files): Add it and tests/signature.h.
71616         (Depends-on): Add ansi-c++-opt.
71617         (Makefile.am): Arrange to compile and run test-signal-c++.
71618         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
71619         gl_MODULE_INDICATOR.
71621         Tests of module 'search' in C++ mode.
71622         * tests/test-search-c++.cc: New file.
71623         * modules/search-tests (Files): Add it and tests/signature.h.
71624         (Depends-on): Add ansi-c++-opt.
71625         (Makefile.am): Arrange to compile and run test-search-c++.
71626         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
71627         gl_MODULE_INDICATOR.
71629         Tests of module 'math' in C++ mode.
71630         * tests/test-math-c++.cc: New file.
71631         * modules/math-tests (Files): Add it and tests/signature.h.
71632         (Depends-on): Add ansi-c++-opt.
71633         (Makefile.am): Arrange to compile and run test-math-c++.
71634         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
71636         Tests of module 'locale' in C++ mode.
71637         * tests/test-locale-c++.cc: New file.
71638         * modules/locale-tests (Files): Add it and tests/signature.h.
71639         (Depends-on): Add ansi-c++-opt.
71640         (Makefile.am): Arrange to compile and run test-locale-c++.
71641         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
71642         gl_MODULE_INDICATOR.
71644         Tests of module 'langinfo' in C++ mode.
71645         * tests/test-langinfo-c++.cc: New file.
71646         * modules/langinfo-tests (Files): Add it and tests/signature.h.
71647         (Depends-on): Add ansi-c++-opt.
71648         (Makefile.am): Arrange to compile and run test-langinfo-c++.
71649         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
71650         gl_MODULE_INDICATOR.
71652         Tests of module 'iconv-h' in C++ mode.
71653         * tests/test-iconv-h-c++.cc: New file.
71654         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
71655         (Depends-on): Add ansi-c++-opt.
71656         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
71658         Tests of module 'glob' in C++ mode.
71659         * tests/test-glob-c++.cc: New file.
71660         * modules/glob-tests (Files): Add it.
71661         (Depends-on): Add ansi-c++-opt.
71662         (Makefile.am): Arrange to compile and run test-glob-c++.
71664         Tests of module 'fcntl-h' in C++ mode.
71665         * tests/test-fcntl-h-c++.cc: New file.
71666         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
71667         (Depends-on): Add ansi-c++-opt.
71668         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
71669         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
71670         gl_MODULE_INDICATOR.
71672         Tests of module 'dirent' in C++ mode.
71673         * tests/test-dirent-c++.cc: New file.
71674         * modules/dirent-tests (Files): Add it and tests/signature.h.
71675         (Depends-on): Add ansi-c++-opt.
71676         (Makefile.am): Arrange to compile and run test-dirent-c++.
71677         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
71678         gl_MODULE_INDICATOR.
71680         New module 'ansi-c++-opt'.
71681         * modules/ansi-c++-opt: New file.
71682         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
71684         Document C++ namespace mode.
71685         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
71687         wctype: Avoid #define replacements in C++ mode.
71688         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
71689         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
71690         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
71691         In C++, define a namespaced alias symbol.
71692         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
71693         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
71694         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
71695         rule.
71697         wchar: Avoid #define replacements in C++ mode.
71698         * lib/wchar.in.h: Include c++defs.h.
71699         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
71700         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
71701         symbol.
71702         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
71703         * modules/wchar (Depends-on): Add c++defs.
71704         (Makefile.am): Update wchar.h rule.
71706         unistd: Avoid #define replacements in C++ mode.
71707         * lib/unistd.in.h: Include c++defs.h.
71708         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
71709         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
71710         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
71711         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
71712         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
71713         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
71714         symbol.
71715         (environ): Update.
71716         * modules/unistd (Depends-on): Add c++defs.
71717         (Makefile.am): Update unistd.h rule.
71719         time: Avoid #define replacements in C++ mode.
71720         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
71721         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
71722         define a namespaced alias symbol.
71723         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
71724         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
71725         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
71726         * modules/time (Depends-on): Add c++defs, warn-on-use.
71727         (Makefile.am): Update time.h rule.
71728         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
71729         * modules/nanosleep (configure.ac): Likewise.
71730         * modules/strptime (configure.ac): Likewise.
71731         * modules/timegm (configure.ac): Likewise.
71733         sys_time: Avoid #define replacements in C++ mode.
71734         * lib/sys_time.in.h: Include c++defs.h.
71735         (gettimeofday): In C++, define a namespaced alias symbol.
71736         * modules/sys_time (Depends-on): Add c++defs.
71737         (Makefile.am): Update sys/time.h rule.
71739         sys_stat: Avoid #define replacements in C++ mode.
71740         * lib/sys_stat.in.h: Include c++defs.h.
71741         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
71742         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
71743         namespaced alias symbol.
71744         In C++, define a namespaced alias symbol.
71745         * modules/sys_stat (Depends-on): Add c++defs.
71746         (Makefile.am): Update sys/stat.h rule.
71748         sys_socket: Avoid #define replacements in C++ mode.
71749         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
71750         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
71751         definitions also when the system has a <sys/socket.h>.
71752         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
71753         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
71754         In C++, define a namespaced alias symbol.
71755         * modules/sys_socket (Depends-on): Add c++defs.
71756         (Makefile.am): Update sys/socket.h rule.
71758         sys_select: Avoid #define replacements in C++ mode.
71759         * lib/sys_select.in.h: Include c++defs.h. Enable the function
71760         definitions also when the system has a <sys/select.h>.
71761         (select): In C++, define a namespaced alias symbol.
71762         * modules/sys_select (Depends-on): Add c++defs.
71763         (Makefile.am): Update sys/select.h rule.
71765         sys_ioctl: Avoid #define replacements in C++ mode.
71766         * lib/sys_ioctl.in.h: Include c++defs.h.
71767         (ioctl): In C++, define a namespaced alias symbol.
71768         * modules/sys_ioctl (Depends-on): Add c++defs.
71769         (Makefile.am): Update sys/ioctl.h rule.
71771         string: Avoid #define replacements in C++ mode.
71772         * lib/string.in.h: Include c++defs.h.
71773         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
71774         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
71775         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
71776         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
71777         strsignal, strverscmp): In C++, define a namespaced alias symbol.
71778         * modules/string (Depends-on): Add c++defs.
71779         (Makefile.am): Update string.h rule.
71781         stdlib: Avoid #define replacements in C++ mode.
71782         * lib/stdlib.in.h: Include c++defs.h.
71783         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
71784         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
71785         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
71786         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
71787         symbol.
71788         * modules/stdlib (Depends-on): Add c++defs.
71789         (Makefile.am): Update stdlib.h rule.
71791         stdio: Avoid #define replacements in C++ mode.
71792         * lib/stdio.in.h: Include c++defs.h.
71793         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
71794         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
71795         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
71796         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
71797         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
71798         namespaced alias symbol.
71799         * modules/stdio (Depends-on): Add c++defs.
71800         (Makefile.am): Update stdio.h rule.
71802         spawn: Avoid #define replacements in C++ mode.
71803         * lib/spawn.in.h: Include c++defs.h.
71804         (posix_spawn, posix_spawnp, posix_spawnattr_init,
71805         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
71806         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
71807         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
71808         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
71809         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
71810         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
71811         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
71812         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
71813         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
71814         In C++, define a namespaced alias symbol.
71815         * modules/spawn (Depends-on): Add c++defs.
71816         (Makefile.am): Update spawn.h rule.
71818         signal: Avoid #define replacements in C++ mode.
71819         * lib/signal.in.h: Include c++defs.h.
71820         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
71821         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
71822         namespaced alias symbol.
71823         * modules/signal (Depends-on): Add c++defs.
71824         (Makefile.am): Update signal.h rule.
71826         search: Avoid #define replacements in C++ mode.
71827         * lib/search.in.h: Include c++defs.h.
71828         (_gl_search_compar_fn, _gl_search_action_fn): New types.
71829         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
71830         symbol.
71831         * modules/search (Depends-on): Add c++defs.
71832         (Makefile.am): Update search.h rule.
71834         math: Avoid #define replacements in C++ mode.
71835         * lib/math.in.h: Include c++defs.h.
71836         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
71837         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
71838         trunc, truncl): In C++, define a namespaced alias symbol.
71839         * modules/math (Depends-on): Add c++defs.
71840         (Makefile.am): Update math.h rule.
71842         locale: Avoid #define replacements in C++ mode.
71843         * lib/locale.in.h: Include c++defs.h.
71844         (duplocale): In C++, define a namespaced alias symbol.
71845         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
71846         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
71847         * modules/locale (Depends-on): Add c++defs.
71848         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
71850         langinfo: Avoid #define replacements in C++ mode.
71851         * lib/langinfo.in.h: Include c++defs.h.
71852         (nl_langinfo): In C++, define a namespaced alias symbol.
71853         * modules/langinfo (Depends-on): Add c++defs.
71854         (Makefile.am): Update langinfo.h rule.
71856         iconv-h: Avoid #define replacements in C++ mode.
71857         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
71858         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
71859         symbol.
71860         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
71861         whenever iconv is present.
71862         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
71863         (Makefile.am): Update iconv.h rule.
71865         glob: Avoid #define replacements in C++ mode.
71866         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
71867         (_gl_glob_errfunc_fn): New type.
71868         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
71869         symbol.
71870         * modules/glob (Depends-on): Add c++defs, warn-on-use.
71871         (Makefile.am): Update glob.h rule.
71873         fcntl-h: Avoid #define replacements in C++ mode.
71874         * lib/fcntl.in.h: Include c++defs.h.
71875         (fcntl, open, openat): In C++, define a namespaced alias symbol.
71876         * modules/fcntl-h (Depends-on): Add c++defs.
71877         (Makefile.am): Update fcntl.h rule.
71879         dirent: Avoid #define replacements in C++ mode.
71880         * lib/dirent.in.h: Include c++defs.h.
71881         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
71882         namespaced alias symbol.
71883         (dirfd): Update declaration.
71884         * modules/dirent (Depends-on): Add c++defs.
71885         (Makefile.am): Update dirent.h rule.
71887         ctype: Make it usable in C++ code.
71888         * lib/ctype.in.h: Include c++defs.h.
71889         (isblank): Declare as extern "C".
71890         * modules/ctype (Depends-on): Add c++defs.
71891         (Makefile.am): Update ctype.h rule.
71893         New module 'c++defs'.
71894         * modules/c++defs: New file.
71895         * build-aux/c++defs.h: New file.
71896         Reported by John W. Eaton <jwe@gnu.org>.
71898 2010-03-07  Bruno Haible  <bruno@clisp.org>
71900         logb: Provide missing declaration for Cygwin.
71901         * lib/math.in.h (logb): New declaration.
71902         * m4/logb.m4: New file.
71903         * modules/logb (Files): Add m4/logb.m4.
71904         (Depends-on): Add math.
71905         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
71906         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
71907         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
71908         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
71909         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
71911 2010-03-07  Bruno Haible  <bruno@clisp.org>
71913         Fix test-cond link error.
71914         * tests/test-cond.c: Include <stdio.h>.
71916 2010-03-07  Bruno Haible  <bruno@clisp.org>
71918         Fix test-dirent-safer link error.
71919         * modules/dirent-safer-tests (Makefile.am): Define
71920         test_dirent_safer_LDADD.
71922 2010-03-07  Bruno Haible  <bruno@clisp.org>
71924         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
71925         among default module list.
71927 2010-03-07  Bruno Haible  <bruno@clisp.org>
71929         Fix link error on platforms with GNU libiconv.
71930         * modules/unistr/u8-strcoll-tests (Makefile): Define
71931         test_u8_strcoll_LDADD.
71932         * modules/unistr/u16-strcoll-tests (Makefile): Define
71933         test_u16_strcoll_LDADD.
71934         * modules/unistr/u32-strcoll-tests (Makefile): Define
71935         test_u32_strcoll_LDADD.
71937 2010-03-07  Bruno Haible  <bruno@clisp.org>
71939         Use POSIX declarations for socket functions.
71940         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
71941         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
71942         rpl_sendto): Change declaration to match POSIX.
71943         * lib/connect.c (rpl_connect): Likewise.
71944         * lib/accept.c (rpl_accept): Likewise.
71945         * lib/bind.c (rpl_bind): Likewise.
71946         * lib/getpeername.c (rpl_getpeername): Likewise.
71947         * lib/getsockname.c (rpl_getsockname): Likewise.
71948         * lib/recv.c (rpl_recv): Likewise.
71949         * lib/send.c (rpl_send): Likewise.
71950         * lib/recvfrom.c (rpl_recvfrom): Likewise.
71951         * lib/sendto.c (rpl_sendto): Likewise.
71953 2010-03-06  Bruno Haible  <bruno@clisp.org>
71955         Clarify access, euidaccess, faccessat.
71956         * doc/posix-functions/faccessat.texi: Mention security problem under
71957         "Other problems", not "Portability problems".
71958         * doc/posix-functions/access.texi: Likewise. Mention a related security
71959         problem.
71960         * doc/glibc-functions/euidaccess.texi: Mention security problems.
71961         * lib/euidaccess.c: Add comments about platforms.
71962         * lib/unistd.in.h (access, euidaccess): Add warnings.
71964 2010-03-07  Bruno Haible  <bruno@clisp.org>
71966         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
71967         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
71968         (POSIX_SPAWN_SETSCHEDULER): Likewise.
71969         (POSIX_SPAWN_USEVFORK): Define in a way that works when
71970         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71971         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
71972         declare when POSIX_SPAWN_SETSCHEDULER is zero.
71973         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
71974         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
71975         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
71976         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
71977         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
71978         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
71979         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
71980         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
71981         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
71982         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
71983         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
71984         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
71985         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
71986         Likewise.
71987         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
71988         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
71989         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
71990         Likewise.
71991         * tests/test-spawn.c (main): Make it work when
71992         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
71994 2010-03-07  Bruno Haible  <bruno@clisp.org>
71996         Fix incorrect Makefile.am generation in German locale.
71997         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
71998         Execute sed command with character range in C locale.
72000 2010-03-06  Bruno Haible  <bruno@clisp.org>
72002         Tests for module 'iconv-h'.
72003         * modules/iconv-h-tests: New file.
72004         * tests/test-iconv-h.c: New file.
72006         New module 'iconv-h'.
72007         * modules/iconv-h: New file.
72008         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
72009         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
72010         (configure.ac): Remove gl_ICONV_H.
72011         (Makefile.am): Remove rule for iconv.h.
72013 2010-03-06  Bruno Haible  <bruno@clisp.org>
72015         More consistent naming of *.m4 files.
72016         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
72017         * modules/wctype (Files): Update.
72019         More consistent naming of *.m4 files.
72020         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
72021         * modules/wchar (Files): Update.
72023 2010-03-06  Jim Meyering  <meyering@redhat.com>
72025         euidaccess: relax license to LGPLv2+
72026         * modules/euidaccess (License): Relax to LGPLv2+.
72028 2010-03-06  Bruno Haible  <bruno@clisp.org>
72030         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
72031         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
72032         (Makefile.am): Augment lib_SOURCES instead.
72034 2010-03-04  Jim Meyering  <meyering@redhat.com>
72036         utime: remove obsolete module
72037         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
72038         unnecessary for years, and has been marked as obsolete for 10 months.
72039         * modules/utime: Remove file.
72040         * lib/utime.c: Remove file.
72041         * m4/utime.m4: Remove file.
72042         * m4/utimes-null.m4: Remove file.
72043         * doc/posix-functions/utime.texi (utime): Remove reference to
72044         the module.  Move the sole "fixed by gnulib" item into the
72045         "problems not fixed by Gnulib" list.
72046         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
72048 2010-03-05  Simon Josefsson  <simon@josefsson.org>
72050         * modules/exit (License): Relax license to LGPLv2+.
72051         (Status): Mark as obsolete.
72052         * NEWS: Mention deprecated 'exit' module.
72053         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
72054         of now obsolete 'exit'.
72056 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72058         fts-lgpl: remove unused module
72059         * modules/fts-lgpl: Remove.
72060         * MODULES.html.sh (func_all_modules): Adjust.
72061         * check-module (find_included_lib_files): Adjust.
72062         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
72064 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
72066         copy-acl: enhance Solaris ACL error handling
72067         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
72068         * lib/set-mode-acl.c (qset_acl): Likewise.
72070 2010-03-02  Bruno Haible  <bruno@clisp.org>
72072         spawn: Don't override the system defined values on FreeBSD 8.
72073         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
72074         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
72075         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
72076         if HAVE_POSIX_SPAWN is 1.
72077         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
72079 2010-03-01  Bruno Haible  <bruno@clisp.org>
72081         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
72082         regarding Automake.
72084 2010-02-25  Bruno Haible  <bruno@clisp.org>
72086         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
72087         * gnulib-tool: Define 'echo' as a function only before the ksh alias
72088         setting, not afterwards.
72089         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
72091 2010-02-24  Eric Blake  <eblake@redhat.com>
72093         bootstrap, git-version-gen: use timestamp
72094         * build-aux/git-version-gen (scriptversion): Force UTC.
72095         * build-aux/bootstrap (scriptversion): New variable.
72097         bootstrap: allow older git
72098         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
72099         older than 1.6.4.  Requested by the libvirt project.
72101 2010-02-23  Eric Blake  <eblake@redhat.com>
72103         warn-on-use: work with old autoconf
72104         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
72105         AS_VAR semantics of autoconf 2.60.
72106         Reported by Bruno Haible.
72108         bootstrap: improve some comments
72109         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
72110         clarification comments.
72112         gettimeofday: provide correct function
72113         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
72114         when replacement is declared, otherwise provide gettimeofday.
72115         Reported by Michael Goffioul.
72117 2010-02-23  Jim Meyering  <meyering@redhat.com>
72119         lib-ignore: relax license to "unlimited", not LGPLv2+
72120         * modules/lib-ignore (License): Relax to "unlimited".
72122 2010-02-23  Jim Meyering  <meyering@redhat.com>
72124         lib-ignore: relax license to LGPLv2+
72125         * modules/lib-ignore (License): Relax to LGPLv2+.
72127 2010-02-22  Eric Blake  <eblake@redhat.com>
72129         lseek: avoid bash 3.2 broken pipe bug
72130         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
72131         warning from bash 3.2.
72132         Reported by Ben Pfaff, with analysis from Bruno Haible.
72134         bootstrap: support non-FSF copyright holder
72135         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
72136         bootstrap.conf override of COPYRIGHT_HOLDER.
72137         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
72139         bootstrap: interoperate with gettext 0.14.1
72140         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
72142         bootstrap: allow for alternate submodule location
72143         * build-aux/bootstrap (gnulib_path): New variable; use instead of
72144         hardcoding submodule location.
72145         (gnulib_mk): Allow direct use of Makefile.am.
72147         bootstrap: use GNULIB_SRCDIR to reduce disk usage
72148         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
72149         rather than reconfiguring where the submodule points.
72151         gettimeofday: restore support for platforms that lack function
72152         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
72153         replacement if function is missing.
72154         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
72155         * modules/sys_time (Makefile.am): Substitute it.
72156         * lib/sys_time.in.h (gettimeofday): Check it.
72157         Reported by Michael Goffioul.
72159 2010-02-21  Bruno Haible  <bruno@clisp.org>
72161         * lib/stdio.in.h (obstack_printf): Fix typo.
72163 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
72165         vc-list-files: use bzr ls's -R option
72166         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
72167         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
72169 2010-02-21  Jim Meyering  <meyering@redhat.com>
72171         init.sh: fix EXEEXT shims to work also for names like test-prog
72172         * tests/init.sh: Re-exec a better shell, when needed.
72173         If the current shell lacks support for posix $(...), an init.sh-using
72174         test will now try to find a shell that supports that.  If EXEEXT is
72175         nonempty, we also require support for hyphen-in-alias-name and shell
72176         substitutions like ${var#glob}.  Failure to find such a shell results
72177         in a skipped test.
72179 2010-02-21  Bruno Haible  <bruno@clisp.org>
72181         Really work around "broken pipe" error message from bash 3.2.
72182         * gnulib-tool (func_reset_sigpipe): Remove function.
72183         (echo): In bash 3.2, define to a function that uses printf.
72184         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
72186 2010-02-20  Bruno Haible  <bruno@clisp.org>
72188         Restore support for automake 1.9.6 with autoconf 2.61.
72189         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
72190         Reported by James Youngman <jay@gnu.org>.
72192 2010-02-20  Bruno Haible  <bruno@clisp.org>
72194         Improve *printf warning condition.
72195         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
72196         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
72197         and the function is overridden due to SIGPIPE emulation.
72199 2010-02-20  Bruno Haible  <bruno@clisp.org>
72201         * lib/stdio.in.h: Tweak comments.
72203 2010-02-19  Bruno Haible  <bruno@clisp.org>
72205         Make it easier to find modules. New gnulib-tool option '--find'.
72206         * gnulib-tool: New option --find.
72207         (func_usage): Document it.
72208         (func_sanitize_modulelist): New function, extracted from
72209         func_all_modules.
72210         (func_all_modules): Invoke it.
72211         * doc/gnulib-tool.texi (Which modules?): New node.
72213 2010-02-18  Markus Duft  <mduft@gentoo.org>  (tiny change)
72215         * lib/sys_select.in.h: Provide select replacement even if
72216         sys/select.h exists on a system, for Interix.
72218 2010-02-18  Jim Meyering  <meyering@redhat.com>
72220         init.sh: don't use $(...) just yet
72221         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
72222         to accommodate e.g., Solaris' /bin/sh.
72224 2010-02-17  Bruno Haible  <bruno@clisp.org>
72226         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
72227         Reported by Ludovic Courtès <ludo@gnu.org>.
72229 2010-02-16  Simon Josefsson  <simon@josefsson.org>
72231         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
72232         linking with -lintl.
72234 2010-02-17  Simon Josefsson  <simon@josefsson.org>
72236         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
72237         if not provided by the system's netdb.h.  Reported by
72238         ludo@gnu.org (Ludovic Courtès).
72240 2010-02-15  Jim Meyering  <meyering@redhat.com>
72242         init.sh: improve portability and efficiency
72243         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
72244         "dummy" in a for loop.
72245         Use '!', not '^' to select the complement of a character set used
72246         in a "case" statement.
72247         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
72248         Suggestions from Eric Blake.
72250         init.sh: automatically accommodate programs with the .exe suffix
72251         Automatically arrange for an invocation of "prog" to execute the
72252         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
72253         may use the simpler "prog", yet still work when built on a system
72254         that requires specifying the added suffix.
72255         Do this by constructing a function named "prog" that invokes
72256         "prog.exe" for each .exe file in selected directories.
72257         * tests/init.sh (find_exe_basenames_): New function.
72258         (create_exe_shim_functions_): New function.
72259         (path_prepend_): Use it.
72261         maint.mk: mark syntax-check sc_*.m rules as .PHONY
72262         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
72263         "make -t syntax-check" doesn't create a ton of sc_*.m files.
72265 2010-02-14  Jim Meyering  <meyering@redhat.com>
72267         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
72268         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
72269         (sc_prohibit_hash_pjw_without_use): New rule.
72271         maint.mk: allow the default upload destination dir to be overridden
72272         * top/maint.mk (upload_dest_dir_): Define with a default that
72273         preserves the status quo.
72274         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
72275         Reported by Peter Simons.
72277         maint.mk: prohibit inclusion of "hash.h" without_use
72278         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
72280 2010-02-10  Jim Meyering  <meyering@redhat.com>
72282         maint.mk: prohibit inclusion of "ignore-value.h" without_use
72283         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
72285 2010-02-09  Eric Blake  <ebb9@byu.net>
72286         and Bruno Haible  <bruno@clisp.org>
72288         obstack-printf-posix: ensure declaration
72289         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
72290         extracted from gl_FUNC_OBSTACK_PRINTF.
72291         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
72292         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
72293         Likewise.
72294         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
72295         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
72296         0.
72298 2010-02-08  Bruno Haible  <bruno@clisp.org>
72300         gnulib-tool: Fix typo in 2010-02-07 commit.
72301         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
72302         Reported by Eric Blake.
72304 2010-02-07  Bruno Haible  <bruno@clisp.org>
72306         gnulib-tool: Fix up caching patches.
72307         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
72308         option --no-cache. Use associative arrays when supported by the shell.
72309         (sed_comments): New variable.
72310         (modcache): Renamed from do_cache.
72311         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
72312         abbreviate unnecessarily.
72313         (have_associative): New variable.
72314         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
72315         way also for ksh and zsh.
72316         (func_init_sed_convert_to_cache_statements): New function, extracted
72317         from func_cache_lookup_module. Add support for associative arrays.
72318         Don't set the c_MODULE_cached variable here. Ignore all lines before
72319         the first field header. Remove only the final newline, not all trailing
72320         newlines. Support empty fields correctly. Limit the use of 'eval' to
72321         assignments.
72322         (func_get_description, func_get_status, func_get_notice,
72323         func_get_applicability, func_get_filelist, func_get_dependencies,
72324         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
72325         func_get_automake_snippet, func_get_include_directive,
72326         func_get_link_directive, func_get_license, func_get_maintainer):
72327         Update documentation. List the unoptimized code first. Add support for
72328         associative arrays. Limit the use of 'eval' to assignments.
72329         (func_get_applicability): Undo stylistic pessimisations.
72330         (func_get_automake_snippet, func_get_include_directive): Reduce code
72331         duplication.
72332         (func_modules_transitive_closure, func_modules_add_dummy,
72333         func_modules_notice, func_modules_to_filelist, func_add_file,
72334         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
72335         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
72336         func_create_testdir, func_create_megatestdir): Update documentation.
72338 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72340         * gnulib-tool (func_cache_lookup_module): Store the module name
72341         belonging to the cache variable; error out if two different
72342         module names map to the same cache variable name.
72344 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72346         gnulib-tool: Make caching optional.
72347         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
72348         Update matching short versions of --no-changelog.
72349         (func_usage): Update.
72350         (sed_extract_cache_prog): Renamed from ...
72351         (sed_extract_prog): ... this; revert to old extraction script.
72352         (func_get_description, func_get_status)
72353         (func_get_notice, func_get_applicability, func_get_filelist)
72354         (func_get_dependencies, func_get_autoconf_early_snippet)
72355         (func_get_autoconf_snippet, func_get_automake_snippet)
72356         (func_get_include_directive, func_get_link_directive)
72357         (func_get_license, func_get_maintainer): If $do_cache is false,
72358         use old, non-caching extraction scripts.
72359         Suggestion by Bruno Haible.
72361 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72363         gnulib-tool: cache module metainformation.
72364         * gnulib-tool (sed_extract_prog): Match newline before each
72365         header, and rewrite header to a shell variable suffix.
72366         (func_cache_var, func_cache_lookup_module): New functions,
72367         to turn a module name into a cache variable prefix, and to
72368         look up and cache module metainformation.
72369         (func_get_description, func_get_status)
72370         (func_get_notice, func_get_applicability, func_get_filelist)
72371         (func_get_dependencies, func_get_autoconf_early_snippet)
72372         (func_get_autoconf_snippet, func_get_automake_snippet)
72373         (func_get_include_directive, func_get_link_directive)
72374         (func_get_license, func_get_maintainer): Use
72375         func_cache_lookup_module.
72377 2010-02-07  Bruno Haible  <bruno@clisp.org>
72379         fnctl: Fix missing dependency.
72380         * modules/fcntl (Depends-on): Add getdtablesize.
72381         Reported by John W. Eaton <jwe@gnu.org>.
72383 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72385         Argp: fix recognition of short alias options.
72387         * lib/argp-parse.c (convert_options): Fix improper use of
72388         `|' between character values.
72389         * tests/test-argp.c (group1_option): New alias option
72390         --read (-r).
72391         (group1_parser): Special handling for 'r'.
72392         (test15): New test case.
72393         (test_fun): Add test15.
72394         * tests/test-argp-2.sh: Update expected --help and --usage
72395         outputs.
72397 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
72399         * tests/test-argp.c: Fix indentation.
72401 2010-02-04  Eric Blake  <ebb9@byu.net>
72403         gettimeofday: expose type of second argument
72404         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
72405         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
72406         * tests/test-gettimeofday.c: Use it to silence warning.
72407         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
72408         the issue.
72410 2010-02-03  Jim Meyering  <meyering@redhat.com>
72412         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
72413         * lib/regcomp.c (TYPE_SIGNED): Define.
72414         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
72416         regcomp.c: avoid a new -Wshadow warning
72417         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
72419 2010-02-01  Jim Meyering  <meyering@redhat.com>
72421         removing useless parentheses in cpp #define directives
72422         For motivation, see commit c0221df4, "define STREQ(a,b)
72423         consistently, removing useless parentheses"
72424         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
72425         * lib/mountlist.c (MNT_IGNORE): Likewise.
72426         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
72428 2010-02-01  Eric Blake  <ebb9@byu.net>
72430         sys_time: use link-warning
72431         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
72432         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
72433         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
72434         * modules/sys_time (Depends-on): Add warn-on-use.
72435         (Makefile.am): Always build replacement.
72436         (configure.ac): Update substitutions.
72437         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
72438         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
72439         bother with SYS_TIME_H.
72440         * modules/gettimeofday (configure.ac): Declare indicator.
72441         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
72442         in use.
72444         closein-tests: silence compiler warning
72445         * tests/test-closein.c (main): Ignore fread result.
72446         * modules/closein-tests (Depends-on): Add ignore-value.
72448         tests: silence warning about system return
72449         * tests/test-areadlink-with-size.c (main): Ignore system result.
72450         * tests/test-areadlink.c (main): Likewise.
72451         * tests/test-areadlinkat-with-size.c (main): Likewise.
72452         * tests/test-areadlinkat.c (main): Likewise.
72453         * tests/test-canonicalize-lgpl.c (main): Likewise.
72454         * tests/test-canonicalize.c (main): Likewise.
72455         * tests/test-chown.c (main): Likewise.
72456         * tests/test-fchownat.c (main): Likewise.
72457         * tests/test-fdutimensat.c (main): Likewise.
72458         * tests/test-fstatat.c (main): Likewise.
72459         * tests/test-futimens.c (main): Likewise.
72460         * tests/test-lchown.c (main): Likewise.
72461         * tests/test-link.c (main): Likewise.
72462         * tests/test-linkat.c (main): Likewise.
72463         * tests/test-lstat.c (main): Likewise.
72464         * tests/test-mkdir.c (main): Likewise.
72465         * tests/test-mkdirat.c (main): Likewise.
72466         * tests/test-mkfifo.c (main): Likewise.
72467         * tests/test-mkfifoat.c (main): Likewise.
72468         * tests/test-mknod.c (main): Likewise.
72469         * tests/test-readlink.c (main): Likewise.
72470         * tests/test-remove.c (main): Likewise.
72471         * tests/test-rename.c (main): Likewise.
72472         * tests/test-renameat.c (main): Likewise.
72473         * tests/test-rmdir.c (main): Likewise.
72474         * tests/test-symlink.c (main): Likewise.
72475         * tests/test-symlinkat.c (main): Likewise.
72476         * tests/test-unlink.c (main): Likewise.
72477         * tests/test-unlinkat.c (main): Likewise.
72478         * tests/test-utimens.c (main): Likewise.
72479         * tests/test-utimensat.c (main): Likewise.
72480         * modules/areadlink-tests (Depends-on): Add ignore-value.
72481         * modules/areadlink-with-size-tests (Depends-on): Likewise.
72482         * modules/areadlinkat-tests (Depends-on): Likewise.
72483         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
72484         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
72485         * modules/canonicalize-tests (Depends-on): Likewise.
72486         * modules/chown-tests (Depends-on): Likewise.
72487         * modules/fdutimensat-tests (Depends-on): Likewise.
72488         * modules/futimens-tests (Depends-on): Likewise.
72489         * modules/lchown-tests (Depends-on): Likewise.
72490         * modules/link-tests (Depends-on): Likewise.
72491         * modules/linkat-tests (Depends-on): Likewise.
72492         * modules/lstat-tests (Depends-on): Likewise.
72493         * modules/mkdir-tests (Depends-on): Likewise.
72494         * modules/mkfifo-tests (Depends-on): Likewise.
72495         * modules/mkfifoat-tests (Depends-on): Likewise.
72496         * modules/mknod-tests (Depends-on): Likewise.
72497         * modules/openat-tests (Depends-on): Likewise.
72498         * modules/readlink-tests (Depends-on): Likewise.
72499         * modules/remove-tests (Depends-on): Likewise.
72500         * modules/rename-tests (Depends-on): Likewise.
72501         * modules/renameat-tests (Depends-on): Likewise.
72502         * modules/rmdir-tests (Depends-on): Likewise.
72503         * modules/symlink-tests (Depends-on): Likewise.
72504         * modules/symlinkat-tests (Depends-on): Likewise.
72505         * modules/unlink-tests (Depends-on): Likewise.
72506         * modules/utimens-tests (Depends-on): Likewise.
72507         * modules/utimensat-tests (Depends-on): Likewise.
72509 2010-01-31  Bruno Haible  <bruno@clisp.org>
72511         Perform the same test for many <math.h> functions.
72512         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
72513         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
72514         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
72515         of gl_MATHFUNC.
72516         * modules/acos (configure.ac): Likewise.
72517         * modules/asin (configure.ac): Likewise.
72518         * modules/atan (configure.ac): Likewise.
72519         * modules/atan2 (configure.ac): Likewise.
72520         * modules/cbrt (configure.ac): Likewise.
72521         * modules/copysign (configure.ac): Likewise.
72522         * modules/cos (configure.ac): Likewise.
72523         * modules/cosh (configure.ac): Likewise.
72524         * modules/erf (configure.ac): Likewise.
72525         * modules/erfc (configure.ac): Likewise.
72526         * modules/exp (configure.ac): Likewise.
72527         * modules/fmod (configure.ac): Likewise.
72528         * modules/hypot (configure.ac): Likewise.
72529         * modules/j0 (configure.ac): Likewise.
72530         * modules/j1 (configure.ac): Likewise.
72531         * modules/jn (configure.ac): Likewise.
72532         * modules/lgamma (configure.ac): Likewise.
72533         * modules/log (configure.ac): Likewise.
72534         * modules/log10 (configure.ac): Likewise.
72535         * modules/log1p (configure.ac): Likewise.
72536         * modules/pow (configure.ac): Likewise.
72537         * modules/remainder (configure.ac): Likewise.
72538         * modules/sin (configure.ac): Likewise.
72539         * modules/sinh (configure.ac): Likewise.
72540         * modules/tan (configure.ac): Likewise.
72541         * modules/tanh (configure.ac): Likewise.
72542         * modules/y0 (configure.ac): Likewise.
72543         * modules/y1 (configure.ac): Likewise.
72544         * modules/yn (configure.ac): Likewise.
72545         Suggested by Paolo Bonzini.
72547 2010-01-31  Bruno Haible  <bruno@clisp.org>
72549         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
72551 2010-01-31  Bruno Haible  <bruno@clisp.org>
72553         Work around getdelim() bug on FreeBSD 8.0.
72554         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
72555         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
72556         not work.
72557         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
72558         is 1.
72559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
72560         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
72561         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
72562         a non-zero size.
72563         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
72565 2010-01-31  Bruno Haible  <bruno@clisp.org>
72567         Work around getline() bug on FreeBSD 8.0.
72568         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
72569         and a non-zero size.
72570         * tests/test-getline.c (main): Likewise.
72571         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
72572         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
72574 2010-01-28  Eric Blake  <ebb9@byu.net>
72576         regex: fix build failure
72577         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
72578         platforms.
72580 2010-01-28  Jim Meyering  <meyering@redhat.com>
72582         regex: do not ignore memory allocation failure
72583         * lib/regex_internal.c (create_cd_newstate): Detect
72584         re_node_set_init_copy failure.   Extracted from glibc commit
72585         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72587         regex: sync more white-space changes from libc
72588         * lib/regex_internal.c: White-space only changes.
72589         * lib/regexec.c: Likewise.
72591         regex: add many uses of __attribute_warn_unused_result__
72592         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
72593         * lib/regexec.c: Likewise.
72594         Extracted from a messy glibc commit.
72596         regcomp.c: spelling and merge-artifact from glibc
72597         * lib/regcomp.c: Merge remainder of glibc's
72598         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72600         regcomp.c: sync white-space changes from glibc
72601         * lib/regcomp.c: Merge to accommodate white space
72602         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
72604         regcomp.c: do not ignore internal return values
72605         * lib/regcomp.c: Do not ignore internal return values.
72606         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
72607         but without its white-space changes and spelling fixes.
72609         regex_internal.h: define __attribute_warn_unused_result__
72610         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
72612         maint: add a syntax-check rule to check for vulnerable Makefile.in
72613         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
72615 2010-01-27  Jim Meyering  <meyering@redhat.com>
72617         ncftpput-ftp: clean up spaces
72618         * build-aux/ncftpput-ftp: Make Copyright line consistent.
72619         Remove trailing blanks.
72621 2010-01-27  Simon Josefsson  <simon@josefsson.org>
72623         * build-aux/git-version-gen: Fix copyright statement.
72624         * build-aux/gnupload: Likewise.
72625         * tests/test-arcfour.c: Likewise.
72626         * tests/test-arctwo.c: Likewise.
72627         * tests/test-count-one-bits.c: Likewise.
72628         * tests/test-crc.c: Likewise.
72629         * tests/test-des.c: Likewise.
72630         * tests/test-gc-arcfour.c: Likewise.
72631         * tests/test-gc-arctwo.c: Likewise.
72632         * tests/test-gc-des.c: Likewise.
72633         * tests/test-gc-hmac-md5.c: Likewise.
72634         * tests/test-gc-hmac-sha1.c: Likewise.
72635         * tests/test-gc-md2.c: Likewise.
72636         * tests/test-gc-md4.c: Likewise.
72637         * tests/test-gc-md5.c: Likewise.
72638         * tests/test-gc-pbkdf2-sha1.c: Likewise.
72639         * tests/test-gc-rijndael.c: Likewise.
72640         * tests/test-gc-sha1.c: Likewise.
72641         * tests/test-gc.c: Likewise.
72642         * tests/test-gethostname.c: Likewise.
72643         * tests/test-gettimeofday.c: Likewise.
72644         * tests/test-hash.c: Likewise.
72645         * tests/test-hmac-md5.c: Likewise.
72646         * tests/test-hmac-sha1.c: Likewise.
72647         * tests/test-md2.c: Likewise.
72648         * tests/test-md4.c: Likewise.
72649         * tests/test-md5.c: Likewise.
72650         * tests/test-memchr.c: Likewise.
72651         * tests/test-memchr2.c: Likewise.
72652         * tests/test-memcmp.c: Likewise.
72653         * tests/test-memmem.c: Likewise.
72654         * tests/test-memrchr.c: Likewise.
72655         * tests/test-rawmemchr.c: Likewise.
72656         * tests/test-read-file.c: Likewise.
72657         * tests/test-rijndael.c: Likewise.
72658         * tests/test-sockets.c: Likewise.
72659         * tests/test-strchrnul.c: Likewise.
72660         * tests/test-strstr.c: Likewise.
72661         * tests/test-strtod.c: Likewise.
72662         * build-aux/ncftpput-ftp: Likewise.
72664 2010-01-26  Eric Blake  <ebb9@byu.net>
72666         ignore-value: update recommended header name
72667         * modules/ignore-value (Include): Only use <> for headers that
72668         exist in glibc.
72670 2010-01-26  Jim Meyering  <meyering@redhat.com>
72672         test-userspec.c: avoid compiler warnings
72673         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
72674         and "initialization discards qualifiers..." warnings.
72675         Put the first "uid" in its own scope, and make char* members "const".
72677 2010-01-25  Bruno Haible  <bruno@clisp.org>
72679         gnulib-tool: Make warning diagnostics consistent.
72680         * gnulib-tool (func_warning): New function.
72681         Use it everywhere where gnulib-tool produces output to stderr and it is
72682         not a fatal error.
72684 2010-01-25  Bruno Haible  <bruno@clisp.org>
72686         Fix test dependencies.
72687         * modules/xstrtol-tests (Depends-on): Add inttypes.
72688         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
72690 2010-01-25  Pádraig Brady  <P@draigBrady.com>
72692         syntax-check: detect incorrect boolean macro values in config.h
72693         * modules/maintainer-makefile (configure.ac): Parameterize the location
72694         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
72695         The logic is from Eric Blake and the location indicated by Jim Meyering.
72696         Note the more natural CONFIG_HEADER name is prohibited by automake
72697         for backwards compatibility reasons.
72698         * top/maint.mk (sc_Wundef_boolean): New rule.
72700 2010-01-25  Jim Meyering  <meyering@redhat.com>
72702         bootstrap: detect MacOS 10.6's shasum, too
72703         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
72704         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
72706 2010-01-23  Jim Meyering  <meyering@redhat.com>
72708         xstrtoll: new module
72709         * modules/xstrtoll: New file.
72710         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
72711         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
72712         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
72713         ./configure fails if you use this module and lack "long long".
72714         * modules/xstrtoll-tests: New module.
72715         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
72716         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
72717         new init.sh-based test framework.
72719 2010-01-24  Bruno Haible  <bruno@clisp.org>
72721         Tests for module 'yn'.
72722         * modules/yn-tests: New file.
72723         * tests/test-yn.c: New file.
72725         Tests for module 'y1'.
72726         * modules/y1-tests: New file.
72727         * tests/test-y1.c: New file.
72729         Tests for module 'y0'.
72730         * modules/y0-tests: New file.
72731         * tests/test-y0.c: New file.
72733         Tests for module 'tanh'.
72734         * modules/tanh-tests: New file.
72735         * tests/test-tanh.c: New file.
72737         Tests for module 'tan'.
72738         * modules/tan-tests: New file.
72739         * tests/test-tan.c: New file.
72741         Tests for module 'sqrt'.
72742         * modules/sqrt-tests: New file.
72743         * tests/test-sqrt.c: New file.
72745         Tests for module 'sinh'.
72746         * modules/sinh-tests: New file.
72747         * tests/test-sinh.c: New file.
72749         Tests for module 'sin'.
72750         * modules/sin-tests: New file.
72751         * tests/test-sin.c: New file.
72753         Tests for module 'rint'.
72754         * modules/rint-tests: New file.
72755         * tests/test-rint.c: New file.
72757         Tests for module 'remainder'.
72758         * modules/remainder-tests: New file.
72759         * tests/test-remainder.c: New file.
72761         Tests for module 'pow'.
72762         * modules/pow-tests: New file.
72763         * tests/test-pow.c: New file.
72765         Tests for module 'nextafter'.
72766         * modules/nextafter-tests: New file.
72767         * tests/test-nextafter.c: New file.
72769         Tests for module 'modf'.
72770         * modules/modf-tests: New file.
72771         * tests/test-modf.c: New file.
72773         Tests for module 'logb'.
72774         * modules/logb-tests: New file.
72775         * tests/test-logb.c: New file.
72777         Tests for module 'log1p'.
72778         * modules/log1p-tests: New file.
72779         * tests/test-log1p.c: New file.
72781         Tests for module 'log10'.
72782         * modules/log10-tests: New file.
72783         * tests/test-log10.c: New file.
72785         Tests for module 'log'.
72786         * modules/log-tests: New file.
72787         * tests/test-log.c: New file.
72789         Tests for module 'lgamma'.
72790         * modules/lgamma-tests: New file.
72791         * tests/test-lgamma.c: New file.
72793         Tests for module 'ldexp'.
72794         * modules/ldexp-tests: New file.
72795         * tests/test-ldexp.c: New file.
72797         Tests for module 'jn'.
72798         * modules/jn-tests: New file.
72799         * tests/test-jn.c: New file.
72801         Tests for module 'j1'.
72802         * modules/j1-tests: New file.
72803         * tests/test-j1.c: New file.
72805         Tests for module 'j0'.
72806         * modules/j0-tests: New file.
72807         * tests/test-j0.c: New file.
72809         Tests for module 'hypot'.
72810         * modules/hypot-tests: New file.
72811         * tests/test-hypot.c: New file.
72813         Tests for module 'fmod'.
72814         * modules/fmod-tests: New file.
72815         * tests/test-fmod.c: New file.
72817         Tests for module 'fabs'.
72818         * modules/fabs-tests: New file.
72819         * tests/test-fabs.c: New file.
72821         Tests for module 'exp'.
72822         * modules/exp-tests: New file.
72823         * tests/test-exp.c: New file.
72825         Tests for module 'erfc'.
72826         * modules/erfc-tests: New file.
72827         * tests/test-erfc.c: New file.
72829         Tests for module 'erf'.
72830         * modules/erf-tests: New file.
72831         * tests/test-erf.c: New file.
72833         Tests for module 'cosh'.
72834         * modules/cosh-tests: New file.
72835         * tests/test-cosh.c: New file.
72837         Tests for module 'cos'.
72838         * modules/cos-tests: New file.
72839         * tests/test-cos.c: New file.
72841         Tests for module 'copysign'.
72842         * modules/copysign-tests: New file.
72843         * tests/test-copysign.c: New file.
72845         Tests for module 'cbrt'.
72846         * modules/cbrt-tests: New file.
72847         * tests/test-cbrt.c: New file.
72849         Tests for module 'atan2'.
72850         * modules/atan2-tests: New file.
72851         * tests/test-atan2.c: New file.
72853         Tests for module 'atan'.
72854         * modules/atan-tests: New file.
72855         * tests/test-atan.c: New file.
72857         Tests for module 'asin'.
72858         * modules/asin-tests: New file.
72859         * tests/test-asin.c: New file.
72861         Tests for module 'acos'.
72862         * modules/acos-tests: New file.
72863         * tests/test-acos.c: New file.
72865 2010-01-24  Bruno Haible  <bruno@clisp.org>
72867         Fix tests for common <math.h> functions.
72868         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
72869         code snippet that references the function pointer, rather than merely
72870         calling the function. Substitute the FUNC_LIBM variable.
72871         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
72872         * modules/acos (configure.ac): Likewise.
72873         * modules/asin (configure.ac): Likewise.
72874         * modules/atan (configure.ac): Likewise.
72875         * modules/atan2 (configure.ac): Likewise.
72876         * modules/cbrt (configure.ac): Likewise.
72877         * modules/copysign (configure.ac): Likewise.
72878         * modules/cos (configure.ac): Likewise.
72879         * modules/cosh (configure.ac): Likewise.
72880         * modules/erf (configure.ac): Likewise.
72881         * modules/erfc (configure.ac): Likewise.
72882         * modules/exp (configure.ac): Likewise.
72883         * modules/fabs (configure.ac): Likewise.
72884         * modules/fmod (configure.ac): Likewise.
72885         * modules/hypot (configure.ac): Likewise.
72886         * modules/j0 (configure.ac): Likewise.
72887         * modules/j1 (configure.ac): Likewise.
72888         * modules/jn (configure.ac): Likewise.
72889         * modules/ldexp (configure.ac): Likewise.
72890         * modules/lgamma (configure.ac): Likewise.
72891         * modules/log (configure.ac): Likewise.
72892         * modules/log10 (configure.ac): Likewise.
72893         * modules/log1p (configure.ac): Likewise.
72894         * modules/logb (configure.ac): Likewise.
72895         * modules/modf (configure.ac): Likewise.
72896         * modules/nextafter (configure.ac): Likewise.
72897         * modules/pow (configure.ac): Likewise.
72898         * modules/remainder (configure.ac): Likewise.
72899         * modules/rint (configure.ac): Likewise.
72900         * modules/sin (configure.ac): Likewise.
72901         * modules/sinh (configure.ac): Likewise.
72902         * modules/tan (configure.ac): Likewise.
72903         * modules/tanh (configure.ac): Likewise.
72904         * modules/y0 (configure.ac): Likewise.
72905         * modules/y1 (configure.ac): Likewise.
72906         * modules/yn (configure.ac): Likewise.
72908 2010-01-24  Bruno Haible  <bruno@clisp.org>
72910         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
72911         * tests/test-acosl.c (x): New variable.
72912         (main): Store argument in x and fetch it from x.
72913         * tests/test-asinl.c (x): New variable.
72914         (main): Store argument in x and fetch it from x.
72915         * tests/test-atanl.c (x): New variable.
72916         (main): Store argument in x and fetch it from x.
72917         * tests/test-cosl.c (x): New variable.
72918         (main): Store argument in x and fetch it from x.
72919         * tests/test-expl.c (x): New variable.
72920         (main): Store argument in x and fetch it from x.
72921         * tests/test-logl.c (x): New variable.
72922         (main): Store argument in x and fetch it from x.
72923         * tests/test-sinl.c (x): New variable.
72924         (main): Store argument in x and fetch it from x.
72925         * tests/test-sqrtl.c (x): New variable.
72926         (main): Store argument in x and fetch it from x.
72927         * tests/test-tanl.c (x): New variable.
72928         (main): Store argument in x and fetch it from x.
72930 2010-01-24  Bruno Haible  <bruno@clisp.org>
72932         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
72933         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
72934         assignments to the initial TESTS_ENVIRONMENT.
72935         * doc/gnulib.texi (Unit test modules): Document it.
72936         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
72937         TESTS_ENVIRONMENT.
72938         * modules/btowc-tests (Makefile.am): Likewise.
72939         * modules/c-stack-tests (Makefile.am): Likewise.
72940         * modules/c-strcase-tests (Makefile.am): Likewise.
72941         * modules/copy-file-tests (Makefile.am): Likewise.
72942         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
72943         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
72944         * modules/mbrtowc-tests (Makefile.am): Likewise.
72945         * modules/mbscasecmp-tests (Makefile.am): Likewise.
72946         * modules/mbscasestr-tests (Makefile.am): Likewise.
72947         * modules/mbschr-tests (Makefile.am): Likewise.
72948         * modules/mbscspn-tests (Makefile.am): Likewise.
72949         * modules/mbsinit-tests (Makefile.am): Likewise.
72950         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
72951         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
72952         * modules/mbspbrk-tests (Makefile.am): Likewise.
72953         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
72954         * modules/mbsrchr-tests (Makefile.am): Likewise.
72955         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
72956         * modules/mbsspn-tests (Makefile.am): Likewise.
72957         * modules/mbsstr-tests (Makefile.am): Likewise.
72958         * modules/nl_langinfo-tests (Makefile.am): Likewise.
72959         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
72960         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
72961         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
72962         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
72963         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
72964         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
72965         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
72966         * modules/wcrtomb-tests (Makefile.am): Likewise.
72967         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
72968         * modules/wcsrtombs-tests (Makefile.am): Likewise.
72969         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
72970         assignments from TESTS_ENVIRONMENT.
72971         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
72972         augmentation.
72973         * modules/argp-version-etc-tests (Makefile.am): Likewise.
72974         * modules/atexit-tests (Makefile.am): Likewise.
72975         * modules/binary-io-tests (Makefile.am): Likewise.
72976         * modules/closein-tests (Makefile.am): Likewise.
72977         * modules/dprintf-posix-tests (Makefile.am): Likewise.
72978         * modules/exclude-tests (Makefile.am): Likewise.
72979         * modules/fflush-tests (Makefile.am): Likewise.
72980         * modules/fpending-tests (Makefile.am): Likewise.
72981         * modules/fprintf-posix-tests (Makefile.am): Likewise.
72982         * modules/freadahead-tests (Makefile.am): Likewise.
72983         * modules/freadptr-tests (Makefile.am): Likewise.
72984         * modules/freadseek-tests (Makefile.am): Likewise.
72985         * modules/fseek-tests (Makefile.am): Likewise.
72986         * modules/fseeko-tests (Makefile.am): Likewise.
72987         * modules/ftell-tests (Makefile.am): Likewise.
72988         * modules/ftello-tests (Makefile.am): Likewise.
72989         * modules/idpriv-drop-tests (Makefile.am): Likewise.
72990         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
72991         * modules/lseek-tests (Makefile.am): Likewise.
72992         * modules/parse-duration-tests (Makefile.am): Likewise.
72993         * modules/perror-tests (Makefile.am): Likewise.
72994         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
72995         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
72996         * modules/pipe-tests (Makefile.am): Likewise.
72997         * modules/pread-tests (Makefile.am): Likewise.
72998         * modules/printf-posix-tests (Makefile.am): Likewise.
72999         * modules/select-tests (Makefile.am): Likewise.
73000         * modules/sigpipe-tests (Makefile.am): Likewise.
73001         * modules/tsearch-tests (Makefile.am): Likewise.
73002         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
73003         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
73004         * modules/uniname/uniname-tests (Makefile.am): Likewise.
73005         * modules/uniwidth/width-tests (Makefile.am): Likewise.
73006         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
73007         * modules/version-etc-tests (Makefile.am): Likewise.
73008         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
73009         * modules/vprintf-posix-tests (Makefile.am): Likewise.
73010         * modules/xalloc-die-tests (Makefile.am): Likewise.
73011         * modules/xprintf-posix-tests (Makefile.am): Likewise.
73012         * modules/xstrtoimax-tests (Makefile.am): Likewise.
73013         * modules/xstrtol-tests (Makefile.am): Likewise.
73014         * modules/xstrtoumax-tests (Makefile.am): Likewise.
73015         * modules/yesno-tests (Makefile.am): Likewise.
73016         Suggested by Jim Meyering.
73018 2010-01-24  Bruno Haible  <bruno@clisp.org>
73020         More documentation.
73021         * doc/gnulib.texi (Writing modules): New chapter.
73022         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
73023         the new chapter.
73025 2010-01-24  Jim Meyering  <meyering@redhat.com>
73027         maint.mk: do not prepend "./" after filtering
73028         * top/maint.mk (_prepend_srcdir_prefix): New variable
73029         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
73030         "./" when $(srcdir) is ".".
73032         define STREQ(a,b) consistently, removing useless parentheses
73033         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
73034         since the only risk is that "a" or "b" contains an unparenthesized
73035         comma, but if either did that, STREQ would have 3 or more arguments.
73036         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
73037         * lib/fts.c (STREQ): Remove unnecessary parentheses.
73038         * lib/hash-triple.c (STREQ): Likewise.
73039         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
73040         * lib/getugroups.c (STREQ): Likewise.
73042 2010-01-23  Jim Meyering  <meyering@redhat.com>
73044         maint.mk: fix syntax-check in a non-srcdir build directory
73045         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
73046         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
73048 2010-01-22  Jim Meyering  <meyering@redhat.com>
73050         userspec: add unit tests
73051         * tests/test-userspec.c: New file.
73052         * modules/userspec-tests: Likewise.
73054 2010-01-21  Jim Meyering  <meyering@redhat.com>
73056         maint.mk: handle source file names containing "." robustly
73057         * top/maint.mk (_dot_escaped_srcdir): Define.
73058         (VC_LIST): Use it in LHS of sed substitution.
73060 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
73062         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
73063         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
73064         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
73065         from a non-srcdir build.
73067 2010-01-20  Eric Blake  <ebb9@byu.net>
73069         warn-on-use: use instead of link-warning
73070         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
73071         * modules/unistd (Depends-on, Makefile.am): Likewise.
73072         * modules/arpa_inet (Depends-on): Replace link-warning with
73073         warn-on-use.
73074         (Makefile.am): Update rules accordingly.
73075         * modules/ctype (Depends-on, Makefile.am): Likewise.
73076         * modules/dirent (Depends-on, Makefile.am): Likewise.
73077         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
73078         * modules/inttypes (Depends-on, Makefile.am): Likewise.
73079         * modules/langinfo (Depends-on, Makefile.am): Likewise.
73080         * modules/locale (Depends-on, Makefile.am): Likewise.
73081         * modules/math (Depends-on, Makefile.am): Likewise.
73082         * modules/search (Depends-on, Makefile.am): Likewise.
73083         * modules/signal (Depends-on, Makefile.am): Likewise.
73084         * modules/spawn (Depends-on, Makefile.am): Likewise.
73085         * modules/stdlib (Depends-on, Makefile.am): Likewise.
73086         * modules/string (Depends-on, Makefile.am): Likewise.
73087         * modules/strings (Depends-on, Makefile.am): Likewise.
73088         * modules/sys_file (Depends-on, Makefile.am): Likewise.
73089         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
73090         * modules/sys_select (Depends-on, Makefile.am): Likewise.
73091         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
73092         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
73093         * modules/sys_times (Depends-on, Makefile.am): Likewise.
73094         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
73095         * modules/wchar (Depends-on, Makefile.am): Likewise.
73096         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
73097         should be poisoned.
73098         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
73099         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
73100         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
73101         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
73102         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
73103         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
73104         * m4/math_h.m4 (gl_MATH_H): Likewise.
73105         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
73106         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
73107         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
73108         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
73109         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
73110         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
73111         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
73112         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
73113         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
73114         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
73115         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
73116         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
73117         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
73118         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
73119         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
73120         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
73121         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
73122         GL_LINK_WARNING.
73123         * lib/ctype.in.h: Likewise.
73124         * lib/dirent.in.h: Likewise.
73125         * lib/fcntl.in.h: Likewise.
73126         * lib/inttypes.in.h: Likewise.
73127         * lib/langinfo.in.h: Likewise.
73128         * lib/locale.in.h: Likewise.
73129         * lib/math.in.h: Likewise.
73130         * lib/search.in.h: Likewise.
73131         * lib/signal.in.h: Likewise.
73132         * lib/spawn.in.h: Likewise.
73133         * lib/stdio.in.h: Likewise.
73134         * lib/stdlib.in.h: Likewise.
73135         * lib/string.in.h: Likewise.
73136         * lib/strings.in.h: Likewise.
73137         * lib/sys_file.in.h: Likewise.
73138         * lib/sys_ioctl.in.h: Likewise.
73139         * lib/sys_select.in.h: Likewise.
73140         * lib/sys_socket.in.h: Likewise.
73141         * lib/sys_stat.in.h: Likewise.
73142         * lib/sys_times.in.h: Likewise.
73143         * lib/sys_utsname.in.h: Likewise.
73144         * lib/unistd.in.h: Likewise.
73145         * lib/wchar.in.h: Likewise.
73147 2010-01-20  Bruno Haible  <bruno@clisp.org>
73149         Avoid duplicate -lm.
73150         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
73151         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
73152         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
73153         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
73154         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
73155         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
73156         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
73157         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
73158         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
73159         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
73160         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
73161         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
73162         Reported by Paolo Bonzini.
73164 2010-01-19  Bruno Haible  <bruno@clisp.org>
73166         langinfo, nl_langinfo: Relicense under LGPLv2+.
73167         * modules/langinfo (License): Change to LGPLv2+.
73168         * modules/nl_langinfo (License): Likewise.
73169         Patch by David Lutterkort <lutter@redhat.com>.
73171 2010-01-19  Bruno Haible  <bruno@clisp.org>
73173         Avoid compilation error with cc on OSF/1 5.1.
73174         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
73175         statement, not before.
73176         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73178 2010-01-18  Bruno Haible  <bruno@clisp.org>
73180         Avoid a link error due to the __printf__ symbol.
73181         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
73182         and 2.6.x.
73183         (__format__, __printf__): Remove definitions.
73184         * lib/argp-fmtstream.h: Likewise.
73185         * lib/argp.h: Likewise.
73186         * lib/error.h: Likewise.
73187         * lib/vasnprintf.h: Likewise.
73188         * lib/xprintf.h: Likewise.
73189         * lib/xvasprintf.h: Likewise.
73190         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73192 2010-01-18  Bruno Haible  <bruno@clisp.org>
73194         Tests for module 'tanl'.
73195         * modules/tanl-tests: New file.
73196         * tests/test-tanl.c: New file.
73198         Tests for module 'sqrtl'.
73199         * modules/sqrtl-tests: New file.
73200         * tests/test-sqrtl.c: New file.
73202         Tests for module 'sinl'.
73203         * modules/sinl-tests: New file.
73204         * tests/test-sinl.c: New file.
73206         Tests for module 'logl'.
73207         * modules/logl-tests: New file.
73208         * tests/test-logl.c: New file.
73210         Tests for module 'expl'.
73211         * modules/expl-tests: New file.
73212         * tests/test-expl.c: New file.
73214         Tests for module 'cosl'.
73215         * modules/cosl-tests: New file.
73216         * tests/test-cosl.c: New file.
73218         Tests for module 'atanl'.
73219         * modules/atanl-tests: New file.
73220         * tests/test-atanl.c: New file.
73222         Tests for module 'asinl'.
73223         * modules/asinl-tests: New file.
73224         * tests/test-asinl.c: New file.
73226         Tests for module 'acosl'.
73227         * modules/acosl-tests: New file.
73228         * tests/test-acosl.c: New file.
73230         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73231         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
73232         tanl): Use the standard gnulib idiom.
73233         * lib/cosl.c: Don't include trigl.c and sincosl.c.
73234         * lib/sinl.c: Likewise.
73235         * lib/tanl.c: Don't include trigl.c.
73236         (kernel_tanl): Make static.
73237         * lib/sincosl.c: Include trigl.h first.
73238         * lib/trigl.c: Likewise.
73239         * m4/acosl.m4: New file.
73240         * m4/asinl.m4: New file.
73241         * m4/atanl.m4: New file.
73242         * m4/cosl.m4: New file.
73243         * m4/expl.m4: New file.
73244         * m4/logl.m4: New file.
73245         * m4/sinl.m4: New file.
73246         * m4/sqrtl.m4: New file.
73247         * m4/tanl.m4: New file.
73248         * m4/mathl.m4: Remove file.
73249         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
73250         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
73251         Don't initialize GNULIB_MATHL.
73252         * modules/acosl: New file.
73253         * modules/asinl: New file.
73254         * modules/atanl: New file.
73255         * modules/cosl: New file.
73256         * modules/expl: New file.
73257         * modules/logl: New file.
73258         * modules/sinl: New file.
73259         * modules/sqrtl: New file.
73260         * modules/tanl: New file.
73261         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
73262         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
73263         substitute GNULIB_MATHL.
73264         * modules/mathl: Rewritten.
73265         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
73266         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
73267         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
73268         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
73269         * doc/posix-functions/expl.texi: Mention the 'expl' module.
73270         * doc/posix-functions/logl.texi: Mention the 'logl' module.
73271         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
73272         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
73273         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
73275 2010-01-18  Bruno Haible  <bruno@clisp.org>
73277         sqrt: Make gl_FUNC_SQRT requirable.
73278         * m4/sqrt.m4: New file.
73279         * modules/sqrt (Files): Add it.
73280         (configure.ac): Invoke gl_FUNC_SQRT.
73282 2010-01-18  Bruno Haible  <bruno@clisp.org>
73284         New modules for common <math.h> functions.
73285         * m4/mathfunc.m4: New file.
73286         * modules/acos: New file.
73287         * modules/asin: New file.
73288         * modules/atan: New file.
73289         * modules/atan2: New file.
73290         * modules/cbrt: New file.
73291         * modules/copysign: New file.
73292         * modules/cos: New file.
73293         * modules/cosh: New file.
73294         * modules/erf: New file.
73295         * modules/erfc: New file.
73296         * modules/exp: New file.
73297         * modules/fabs: New file.
73298         * modules/fmod: New file.
73299         * modules/hypot: New file.
73300         * modules/j0: New file.
73301         * modules/j1: New file.
73302         * modules/jn: New file.
73303         * modules/ldexp: New file.
73304         * modules/lgamma: New file.
73305         * modules/log: New file.
73306         * modules/log10: New file.
73307         * modules/log1p: New file.
73308         * modules/logb: New file.
73309         * modules/modf: New file.
73310         * modules/nextafter: New file.
73311         * modules/pow: New file.
73312         * modules/remainder: New file.
73313         * modules/rint: New file.
73314         * modules/sin: New file.
73315         * modules/sinh: New file.
73316         * modules/sqrt: New file.
73317         * modules/tan: New file.
73318         * modules/tanh: New file.
73319         * modules/y0: New file.
73320         * modules/y1: New file.
73321         * modules/yn: New file.
73322         * doc/posix-functions/acos.texi: Mention the 'acos' module.
73323         * doc/posix-functions/asin.texi: Mention the 'asin' module.
73324         * doc/posix-functions/atan.texi: Mention the 'atan' module.
73325         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
73326         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
73327         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
73328         * doc/posix-functions/cos.texi: Mention the 'cos' module.
73329         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
73330         * doc/posix-functions/erf.texi: Mention the 'erf' module.
73331         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
73332         * doc/posix-functions/exp.texi: Mention the 'exp' module.
73333         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
73334         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
73335         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
73336         * doc/posix-functions/j0.texi: Mention the 'j0' module.
73337         * doc/posix-functions/j1.texi: Mention the 'j1' module.
73338         * doc/posix-functions/jn.texi: Mention the 'jn' module.
73339         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
73340         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
73341         * doc/posix-functions/log.texi: Mention the 'log' module.
73342         * doc/posix-functions/log10.texi: Mention the 'log10' module.
73343         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
73344         * doc/posix-functions/logb.texi: Mention the 'logb' module.
73345         * doc/posix-functions/modf.texi: Mention the 'modf' module.
73346         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
73347         * doc/posix-functions/pow.texi: Mention the 'pow' module.
73348         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
73349         * doc/posix-functions/rint.texi: Mention the 'rint' module.
73350         * doc/posix-functions/sin.texi: Mention the 'sin' module.
73351         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
73352         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
73353         * doc/posix-functions/tan.texi: Mention the 'tan' module.
73354         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
73355         * doc/posix-functions/y0.texi: Mention the 'y0' module.
73356         * doc/posix-functions/y1.texi: Mention the 'y1' module.
73357         * doc/posix-functions/yn.texi: Mention the 'yn' module.
73359 2010-01-18  Jim Meyering  <meyering@redhat.com>
73361         ignore-value: relax license to LGPLv2+
73362         * modules/ignore-value (License): Relax to LGPLv2+.
73364         getdate: don't leak when TZ contains two or more '"'s
73365         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
73366         double quote in TZ after the first one.
73368         readtokens: do not leak internal token_lengths buffer
73369         * lib/readtokens.c (readtokens): Free the local, lengths,
73370         when the supplied "token_lengths" parameter is NULL.
73372 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73374         Fix a couple of missing LIBTHREAD link failures on AIX.
73375         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
73376         $(LIBTHREAD).
73377         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
73379         Link test-poll against INET_PTON_LIB.
73380         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
73381         for inet_pton on Solaris 10.
73383 2010-01-17  Bruno Haible  <bruno@clisp.org>
73385         unistdio/*-sprintf: Fix typo in module description.
73386         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
73387         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
73388         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
73389         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
73390         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
73391         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
73392         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
73393         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
73395 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73397         gnulib-tool: fix filelist for AIX, HP-UX ksh.
73398         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
73399         variables in shell case patterns, for AIX and HP-UX ksh.
73401         Split large sed scripts, for HP-UX sed.
73402         * modules/stdio: Split sed scripts around 50 sed commands,
73403         to avoid HP-UX limit of 99 commands, in the near future.
73404         * modules/string: Likewise.
73405         * modules/unistd: Likewise.
73407         gnulib-tool: avoid writing in the current directory.
73408         * gnulib-tool (func_emit_lib_Makefile_am)
73409         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
73410         not in the current directory, so concurrent gnulib-tool
73411         instances do not interfere.
73413 2010-01-16  Jim Meyering  <meyering@redhat.com>
73415         doc: update users.txt
73416         * users.txt: Add grep.
73417         (diffutils, gzip): Update URLs.
73419 2010-01-12  Bruno Haible  <bruno@clisp.org>
73421         posix_spawn: Avoid test failure on Cygwin.
73422         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
73423         characters.
73424         Reported by Simon Josefsson.
73426 2010-01-12  Bruno Haible  <bruno@clisp.org>
73428         * tests/test-cond.c (main): When skipping the test, show the reason.
73430 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73432         * lib/striconv.c (str_cd_iconv): Avoid if before free.
73434 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73436         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
73437         VC_LIST_ALWAYS_EXCLUDE_REGEX.
73439 2010-01-12  Eric Blake  <ebb9@byu.net>
73441         build: guarantee AS_VAR_IF
73442         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
73443         (gl_AS_VAR_IF): Move...
73444         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
73445         Reported by Simon Josefsson.
73447 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73449         * lib/stdio.in.h: Fix typo.
73451 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73453         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
73454         libgpg-error.
73456 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73458         * tests/test-xalloc-die.sh: Use $EXEEXT.
73460 2010-01-12  Simon Josefsson  <simon@josefsson.org>
73461             Bruno Haible  <bruno@clisp.org>
73463         getlogin, getlogin_r: Avoid test failure.
73464         * tests/test-getlogin.c: Include <stdio.h>.
73465         (main): Skip the test when the function fails because stdin is not a
73466         tty.
73467         * tests/test-getlogin_r.c: Include <stdio.h>.
73468         (main): Skip the test when the function fails because stdin is not a
73469         tty.
73471 2010-01-11  Eric Blake  <ebb9@byu.net>
73473         tests: avoid more large file warnings
73474         * tests/test-fflush.c: Avoid warning about ftell use.
73475         * tests/test-fseek.c: Avoid warning about fseek use.
73477 2010-01-10  Bruno Haible  <bruno@clisp.org>
73479         nproc: Work better on Linux when /proc and /sys are not mounted.
73480         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
73481         as lower bound when, on glibc/Linux systems,
73482         sysconf (_SC_NPROCESSORS_CONF) returns 1.
73483         Suggested by Pádraig Brady <P@draigbrady.com>.
73484         Reported by Dmitry V. Levin <ldv@altlinux.org>.
73486         nproc: Refactor.
73487         * lib/nproc.c (num_processors_via_affinity_mask): New function,
73488         extracted from num_processors.
73489         (num_processors): Call it.
73491 2010-01-11  Jim Meyering  <meyering@redhat.com>
73493         utimecmp: avoid new warning from upcoming gcc-4.5.0
73494         * lib/utimecmp.c (BILLION): Define using #define rather than an
73495         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
73497 2010-01-11  Eric Blake  <ebb9@byu.net>
73499         math: add portability warnings for classification macros
73500         * modules/math (Depends-on): Add warn-on-use.
73501         (Makefile.am): Provide new substitutions.
73502         * m4/math_h.m4 (gl_MATH_H): Require inline.
73503         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
73504         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
73505         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
73506         implement warnings.
73508         unistd: warn on use of environ without module
73509         * modules/unistd (Depends-on): Add warn-on-use.
73510         (Makefile.am): Provide new substitutions.
73511         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
73512         * lib/unistd.in.h (environ): Wrap with a warning helper function.
73514         stdio: warn on suspicious uses
73515         * modules/stdio (Depends-on): Add warn-on-use.
73516         (Makefile.am): Provide new substitutions.
73517         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
73518         fseeko.
73519         * lib/stdio.in.h (gets): Always warn on use.
73520         (fseek, ftell): Adjust when warnings are issued, and honor
73521         _GL_NO_LARGE_FILES as a way to silence the warning.
73522         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
73523         any warning about large file offsets.
73524         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
73525         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
73526         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
73527         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
73528         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
73529         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
73530         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
73531         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
73533         warn-on-use: new module
73534         * modules/warn-on-use: New file.
73535         * build-aux/warn-on-use.h: Likewise.
73536         * m4/warn-on-use.m4: Likewise.
73537         * MODULES.html.sh (Support for building): Mention it.
73539 2010-01-10  Bruno Haible  <bruno@clisp.org>
73541         Tests for module 'unistr/u32-strdup'.
73542         * modules/unistr/u32-strdup-tests: New file.
73543         * tests/unistr/test-u32-strdup.c: New file.
73545         Tests for module 'unistr/u16-strdup'.
73546         * modules/unistr/u16-strdup-tests: New file.
73547         * tests/unistr/test-u16-strdup.c: New file.
73549         Tests for module 'unistr/u8-strdup'.
73550         * modules/unistr/u8-strdup-tests: New file.
73551         * tests/unistr/test-u8-strdup.c: New file.
73552         * tests/unistr/test-strdup.h: New file.
73554         Tests for module 'unistr/u32-strncmp'.
73555         * modules/unistr/u32-strncmp-tests: New file.
73556         * tests/unistr/test-u32-strncmp.c: New file.
73558         Tests for module 'unistr/u16-strncmp'.
73559         * modules/unistr/u16-strncmp-tests: New file.
73560         * tests/unistr/test-u16-strncmp.c: New file.
73562         Tests for module 'unistr/u8-strncmp'.
73563         * modules/unistr/u8-strncmp-tests: New file.
73564         * tests/unistr/test-u8-strncmp.c: New file.
73565         * tests/unistr/test-strncmp.h: New file.
73567         Tests for module 'unistr/u32-strcoll'.
73568         * modules/unistr/u32-strcoll-tests: New file.
73569         * tests/unistr/test-u32-strcoll.c: New file.
73571         Tests for module 'unistr/u16-strcoll'.
73572         * modules/unistr/u16-strcoll-tests: New file.
73573         * tests/unistr/test-u16-strcoll.c: New file.
73575         Tests for module 'unistr/u8-strcoll'.
73576         * modules/unistr/u8-strcoll-tests: New file.
73577         * tests/unistr/test-u8-strcoll.c: New file.
73579         Tests for module 'unistr/u32-strcmp'.
73580         * modules/unistr/u32-strcmp-tests: New file.
73581         * tests/unistr/test-u32-strcmp.c: New file.
73582         * tests/unistr/test-u32-strcmp.h: New file.
73584         Tests for module 'unistr/u16-strcmp'.
73585         * modules/unistr/u16-strcmp-tests: New file.
73586         * tests/unistr/test-u16-strcmp.c: New file.
73587         * tests/unistr/test-u16-strcmp.h: New file.
73589         Tests for module 'unistr/u8-strcmp'.
73590         * modules/unistr/u8-strcmp-tests: New file.
73591         * tests/unistr/test-u8-strcmp.c: New file.
73592         * tests/unistr/test-u8-strcmp.h: New file.
73593         * tests/unistr/test-strcmp.h: New file.
73595         Tests for module 'unistr/u32-strncat'.
73596         * modules/unistr/u32-strncat-tests: New file.
73597         * tests/unistr/test-u32-strncat.c: New file.
73599         Tests for module 'unistr/u16-strncat'.
73600         * modules/unistr/u16-strncat-tests: New file.
73601         * tests/unistr/test-u16-strncat.c: New file.
73603         Tests for module 'unistr/u8-strncat'.
73604         * modules/unistr/u8-strncat-tests: New file.
73605         * tests/unistr/test-u8-strncat.c: New file.
73606         * tests/unistr/test-strncat.h: New file.
73608         Tests for module 'unistr/u32-strcat'.
73609         * modules/unistr/u32-strcat-tests: New file.
73610         * tests/unistr/test-u32-strcat.c: New file.
73612         Tests for module 'unistr/u16-strcat'.
73613         * modules/unistr/u16-strcat-tests: New file.
73614         * tests/unistr/test-u16-strcat.c: New file.
73616         Tests for module 'unistr/u8-strcat'.
73617         * modules/unistr/u8-strcat-tests: New file.
73618         * tests/unistr/test-u8-strcat.c: New file.
73619         * tests/unistr/test-strcat.h: New file.
73621         Tests for module 'unistr/u32-stpncpy'.
73622         * modules/unistr/u32-stpncpy-tests: New file.
73623         * tests/unistr/test-u32-stpncpy.c: New file.
73625         Tests for module 'unistr/u16-stpncpy'.
73626         * modules/unistr/u16-stpncpy-tests: New file.
73627         * tests/unistr/test-u16-stpncpy.c: New file.
73629         Tests for module 'unistr/u8-stpncpy'.
73630         * modules/unistr/u8-stpncpy-tests: New file.
73631         * tests/unistr/test-u8-stpncpy.c: New file.
73632         * tests/unistr/test-stpncpy.h: New file.
73634         Tests for module 'unistr/u32-strncpy'.
73635         * modules/unistr/u32-strncpy-tests: New file.
73636         * tests/unistr/test-u32-strncpy.c: New file.
73638         Tests for module 'unistr/u16-strncpy'.
73639         * modules/unistr/u16-strncpy-tests: New file.
73640         * tests/unistr/test-u16-strncpy.c: New file.
73642         Tests for module 'unistr/u8-strncpy'.
73643         * modules/unistr/u8-strncpy-tests: New file.
73644         * tests/unistr/test-u8-strncpy.c: New file.
73645         * tests/unistr/test-strncpy.h: New file.
73647         Tests for module 'unistr/u32-stpcpy'.
73648         * modules/unistr/u32-stpcpy-tests: New file.
73649         * tests/unistr/test-u32-stpcpy.c: New file.
73651         Tests for module 'unistr/u16-stpcpy'.
73652         * modules/unistr/u16-stpcpy-tests: New file.
73653         * tests/unistr/test-u16-stpcpy.c: New file.
73655         Tests for module 'unistr/u8-stpcpy'.
73656         * modules/unistr/u8-stpcpy-tests: New file.
73657         * tests/unistr/test-u8-stpcpy.c: New file.
73658         * tests/unistr/test-stpcpy.h: New file.
73660         Tests for module 'unistr/u32-strcpy'.
73661         * modules/unistr/u32-strcpy-tests: New file.
73662         * tests/unistr/test-u32-strcpy.c: New file.
73664         Tests for module 'unistr/u16-strcpy'.
73665         * modules/unistr/u16-strcpy-tests: New file.
73666         * tests/unistr/test-u16-strcpy.c: New file.
73668         Tests for module 'unistr/u8-strcpy'.
73669         * modules/unistr/u8-strcpy-tests: New file.
73670         * tests/unistr/test-u8-strcpy.c: New file.
73671         * tests/unistr/test-strcpy.h: New file.
73673         Tests for module 'unistr/u32-strnlen'.
73674         * modules/unistr/u32-strnlen-tests: New file.
73675         * tests/unistr/test-u32-strnlen.c: New file.
73677         Tests for module 'unistr/u16-strnlen'.
73678         * modules/unistr/u16-strnlen-tests: New file.
73679         * tests/unistr/test-u16-strnlen.c: New file.
73681         Tests for module 'unistr/u8-strnlen'.
73682         * modules/unistr/u8-strnlen-tests: New file.
73683         * tests/unistr/test-u8-strnlen.c: New file.
73684         * tests/unistr/test-strnlen.h: New file.
73686         Tests for module 'unistr/u32-strlen'.
73687         * modules/unistr/u32-strlen-tests: New file.
73688         * tests/unistr/test-u32-strlen.c: New file.
73690         Tests for module 'unistr/u16-strlen'.
73691         * modules/unistr/u16-strlen-tests: New file.
73692         * tests/unistr/test-u16-strlen.c: New file.
73694         Tests for module 'unistr/u8-strlen'.
73695         * modules/unistr/u8-strlen-tests: New file.
73696         * tests/unistr/test-u8-strlen.c: New file.
73698         Tests for module 'unistr/u32-prev'.
73699         * modules/unistr/u32-prev-tests: New file.
73700         * tests/unistr/test-u32-prev.c: New file.
73702         Tests for module 'unistr/u16-prev'.
73703         * modules/unistr/u16-prev-tests: New file.
73704         * tests/unistr/test-u16-prev.c: New file.
73706         Tests for module 'unistr/u8-prev'.
73707         * modules/unistr/u8-prev-tests: New file.
73708         * tests/unistr/test-u8-prev.c: New file.
73710         Tests for module 'unistr/u32-next'.
73711         * modules/unistr/u32-next-tests: New file.
73712         * tests/unistr/test-u32-next.c: New file.
73714         Tests for module 'unistr/u16-next'.
73715         * modules/unistr/u16-next-tests: New file.
73716         * tests/unistr/test-u16-next.c: New file.
73718         Tests for module 'unistr/u8-next'.
73719         * modules/unistr/u8-next-tests: New file.
73720         * tests/unistr/test-u8-next.c: New file.
73722         Tests for module 'unistr/u32-strmbtouc'.
73723         * modules/unistr/u32-strmbtouc-tests: New file.
73724         * tests/unistr/test-u32-strmbtouc.c: New file.
73726         Tests for module 'unistr/u16-strmbtouc'.
73727         * modules/unistr/u16-strmbtouc-tests: New file.
73728         * tests/unistr/test-u16-strmbtouc.c: New file.
73730         Tests for module 'unistr/u8-strmbtouc'.
73731         * modules/unistr/u8-strmbtouc-tests: New file.
73732         * tests/unistr/test-u8-strmbtouc.c: New file.
73734         Tests for module 'unistr/u32-strmblen'.
73735         * modules/unistr/u32-strmblen-tests: New file.
73736         * tests/unistr/test-u32-strmblen.c: New file.
73738         Tests for module 'unistr/u16-strmblen'.
73739         * modules/unistr/u16-strmblen-tests: New file.
73740         * tests/unistr/test-u16-strmblen.c: New file.
73742         Tests for module 'unistr/u8-strmblen'.
73743         * modules/unistr/u8-strmblen-tests: New file.
73744         * tests/unistr/test-u8-strmblen.c: New file.
73746         Tests for module 'unistr/u32-cpy-alloc'.
73747         * modules/unistr/u32-cpy-alloc-tests: New file.
73748         * tests/unistr/test-u32-cpy-alloc.c: New file.
73750         Tests for module 'unistr/u16-cpy-alloc'.
73751         * modules/unistr/u16-cpy-alloc-tests: New file.
73752         * tests/unistr/test-u16-cpy-alloc.c: New file.
73754         Tests for module 'unistr/u8-cpy-alloc'.
73755         * modules/unistr/u8-cpy-alloc-tests: New file.
73756         * tests/unistr/test-u8-cpy-alloc.c: New file.
73757         * tests/unistr/test-cpy-alloc.h: New file.
73759         Tests for module 'unistr/u32-mbsnlen'.
73760         * modules/unistr/u32-mbsnlen-tests: New file.
73761         * tests/unistr/test-u32-mbsnlen.c: New file.
73763         Tests for module 'unistr/u16-mbsnlen'.
73764         * modules/unistr/u16-mbsnlen-tests: New file.
73765         * tests/unistr/test-u16-mbsnlen.c: New file.
73767         Tests for module 'unistr/u8-mbsnlen'.
73768         * modules/unistr/u8-mbsnlen-tests: New file.
73769         * tests/unistr/test-u8-mbsnlen.c: New file.
73771         Tests for module 'unistr/u32-chr'.
73772         * modules/unistr/u32-chr-tests: New file.
73773         * tests/unistr/test-u32-chr.c: New file.
73775         Tests for module 'unistr/u16-chr'.
73776         * modules/unistr/u16-chr-tests: New file.
73777         * tests/unistr/test-u16-chr.c: New file.
73779         Tests for module 'unistr/u8-chr'.
73780         * modules/unistr/u8-chr-tests: New file.
73781         * tests/unistr/test-u8-chr.c: New file.
73782         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
73784         Tests for module 'unistr/u32-cmp2'.
73785         * modules/unistr/u32-cmp2-tests: New file.
73786         * tests/unistr/test-u32-cmp2.c: New file.
73788         Tests for module 'unistr/u16-cmp2'.
73789         * modules/unistr/u16-cmp2-tests: New file.
73790         * tests/unistr/test-u16-cmp2.c: New file.
73792         Tests for module 'unistr/u8-cmp2'.
73793         * modules/unistr/u8-cmp2-tests: New file.
73794         * tests/unistr/test-u8-cmp2.c: New file.
73795         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
73797         Tests for module 'unistr/u32-cmp'.
73798         * modules/unistr/u32-cmp-tests: New file.
73799         * tests/unistr/test-u32-cmp.c: New file.
73801         Tests for module 'unistr/u16-cmp'.
73802         * modules/unistr/u16-cmp-tests: New file.
73803         * tests/unistr/test-u16-cmp.c: New file.
73805         Tests for module 'unistr/u8-cmp'.
73806         * modules/unistr/u8-cmp-tests: New file.
73807         * tests/unistr/test-u8-cmp.c: New file.
73808         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
73810         Tests for module 'unistr/u32-set'.
73811         * modules/unistr/u32-set-tests: New file.
73812         * tests/unistr/test-u32-set.c: New file.
73814         Tests for module 'unistr/u16-set'.
73815         * modules/unistr/u16-set-tests: New file.
73816         * tests/unistr/test-u16-set.c: New file.
73818         Tests for module 'unistr/u8-set'.
73819         * modules/unistr/u8-set-tests: New file.
73820         * tests/unistr/test-u8-set.c: New file.
73821         * tests/unistr/test-set.h: New file.
73823         Tests for module 'unistr/u32-move'.
73824         * modules/unistr/u32-move-tests: New file.
73825         * tests/unistr/test-u32-move.c: New file.
73827         Tests for module 'unistr/u16-move'.
73828         * modules/unistr/u16-move-tests: New file.
73829         * tests/unistr/test-u16-move.c: New file.
73831         Tests for module 'unistr/u8-move'.
73832         * modules/unistr/u8-move-tests: New file.
73833         * tests/unistr/test-u8-move.c: New file.
73834         * tests/unistr/test-move.h: New file.
73836         Tests for module 'unistr/u32-cpy'.
73837         * modules/unistr/u32-cpy-tests: New file.
73838         * tests/unistr/test-u32-cpy.c: New file.
73840         Tests for module 'unistr/u16-cpy'.
73841         * modules/unistr/u16-cpy-tests: New file.
73842         * tests/unistr/test-u16-cpy.c: New file.
73844         Tests for module 'unistr/u8-cpy'.
73845         * modules/unistr/u8-cpy-tests: New file.
73846         * tests/unistr/test-u8-cpy.c: New file.
73847         * tests/unistr/test-cpy.h: New file.
73849 2010-01-09  Bruno Haible  <bruno@clisp.org>
73851         Tests for module 'unistr/u32-uctomb'.
73852         * modules/unistr/u32-uctomb-tests: New file.
73853         * tests/unistr/test-u32-uctomb.c: New file.
73855         Tests for module 'unistr/u16-uctomb'.
73856         * modules/unistr/u16-uctomb-tests: New file.
73857         * tests/unistr/test-u16-uctomb.c: New file.
73859         Tests for module 'unistr/u8-uctomb'.
73860         * modules/unistr/u8-uctomb-tests: New file.
73861         * tests/unistr/test-u8-uctomb.c: New file.
73863         Tests for module 'unistr/u32-mbtoucr'.
73864         * modules/unistr/u32-mbtoucr-tests: New file.
73865         * tests/unistr/test-u32-mbtoucr.c: New file.
73867         Tests for module 'unistr/u16-mbtoucr'.
73868         * modules/unistr/u16-mbtoucr-tests: New file.
73869         * tests/unistr/test-u16-mbtoucr.c: New file.
73871         Tests for module 'unistr/u8-mbtoucr'.
73872         * modules/unistr/u8-mbtoucr-tests: New file.
73873         * tests/unistr/test-u8-mbtoucr.c: New file.
73875         Tests for module 'unistr/u32-mbtouc'.
73876         * modules/unistr/u32-mbtouc-tests: New file.
73877         * tests/unistr/test-u32-mbtouc.c: New file.
73879         Tests for module 'unistr/u16-mbtouc'.
73880         * modules/unistr/u16-mbtouc-tests: New file.
73881         * tests/unistr/test-u16-mbtouc.c: New file.
73883         Tests for module 'unistr/u8-mbtouc'.
73884         * modules/unistr/u8-mbtouc-tests: New file.
73885         * tests/unistr/test-u8-mbtouc.c: New file.
73887         Tests for module 'unistr/u32-mbtouc-unsafe'.
73888         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
73889         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
73890         * tests/unistr/test-u32-mbtouc.h: New file.
73892         Tests for module 'unistr/u16-mbtouc-unsafe'.
73893         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
73894         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
73895         * tests/unistr/test-u16-mbtouc.h: New file.
73897         Tests for module 'unistr/u8-mbtouc-unsafe'.
73898         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
73899         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
73900         * tests/unistr/test-u8-mbtouc.h: New file.
73902         Tests for module 'unistr/u32-mblen'.
73903         * modules/unistr/u32-mblen-tests: New file.
73904         * tests/unistr/test-u32-mblen.c: New file.
73906         Tests for module 'unistr/u16-mblen'.
73907         * modules/unistr/u16-mblen-tests: New file.
73908         * tests/unistr/test-u16-mblen.c: New file.
73910         Tests for module 'unistr/u8-mblen'.
73911         * modules/unistr/u8-mblen-tests: New file.
73912         * tests/unistr/test-u8-mblen.c: New file.
73914         Tests for module 'unistr/u32-to-u16'.
73915         * modules/unistr/u32-to-u16-tests: New file.
73916         * tests/unistr/test-u32-to-u16.c: New file.
73918         Tests for module 'unistr/u32-to-u8'.
73919         * modules/unistr/u32-to-u8-tests: New file.
73920         * tests/unistr/test-u32-to-u8.c: New file.
73922         Tests for module 'unistr/u16-to-u32'.
73923         * modules/unistr/u16-to-u32-tests: New file.
73924         * tests/unistr/test-u16-to-u32.c: New file.
73926         Tests for module 'unistr/u16-to-u8'.
73927         * modules/unistr/u16-to-u8-tests: New file.
73928         * tests/unistr/test-u16-to-u8.c: New file.
73930         Tests for module 'unistr/u8-to-u32'.
73931         * modules/unistr/u8-to-u32-tests: New file.
73932         * tests/unistr/test-u8-to-u32.c: New file.
73934         Tests for module 'unistr/u8-to-u16'.
73935         * modules/unistr/u8-to-u16-tests: New file.
73936         * tests/unistr/test-u8-to-u16.c: New file.
73938         Tests for module 'unistr/u32-check'.
73939         * modules/unistr/u32-check-tests: New file.
73940         * tests/unistr/test-u32-check.c: New file.
73942         Tests for module 'unistr/u16-check'.
73943         * modules/unistr/u16-check-tests: New file.
73944         * tests/unistr/test-u16-check.c: New file.
73946         Tests for module 'unistr/u8-check'.
73947         * modules/unistr/u8-check-tests: New file.
73948         * tests/unistr/test-u8-check.c: New file.
73950         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
73951         (category_equals): New function.
73952         (main): Add more tests.
73953         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
73955         * tests/unictype/test-bidi_byname.c (main): Add more tests.
73957 2010-01-10  Bruno Haible  <bruno@clisp.org>
73959         unistr/u*-strcoll: Try harder to distinguish different strings.
73960         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
73961         compare s1 and s2 to see if they are different.
73963 2010-01-10  Bruno Haible  <bruno@clisp.org>
73965         unistr/u*-stpncpy: Fix the return value.
73966         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
73967         description of the return value consistent with stpncpy in glibc.
73968         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
73969         written non-NUL unit.
73971 2010-01-10  Bruno Haible  <bruno@clisp.org>
73973         unistr/u*-next: Add missing dependencies.
73974         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
73975         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
73976         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
73978 2010-01-10  Bruno Haible  <bruno@clisp.org>
73980         unistr/u8-mbsnlen: Fix return value for incomplete character.
73981         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
73982         u8_mblen.
73983         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
73984         Remove unistr/u8-mblen.
73985         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
73986         u16_mblen.
73987         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
73988         Remove unistr/u16-mblen.
73990 2010-01-10  Bruno Haible  <bruno@clisp.org>
73992         wchar: Fix compilation error when <wchar.h> is used from coreutils.
73993         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
73994         Reported by Brian Gough <bjg@gnu.org> and
73995         Chris Clayton <chris2553@googlemail.com> via
73996         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
73998 2010-01-09  Bruno Haible  <bruno@clisp.org>
74000         unistr/u16-to-u32: Reject invalid input.
74001         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
74002         u16_mbtouc.
74003         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
74004         Remove unistr/u16-mbtouc.
74006         unistr/u16-to-u8: Reject invalid input.
74007         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
74008         u16_mbtouc.
74009         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
74010         Remove unistr/u16-mbtouc.
74012         unistr/u8-to-u32: Reject invalid input.
74013         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
74014         u8_mbtouc.
74015         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
74016         Remove unistr/u8-mbtouc.
74018         unistr/u8-to-u16: Reject invalid input.
74019         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
74020         u8_mbtouc.
74021         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
74022         Remove unistr/u8-mbtouc.
74024 2010-01-09  Bruno Haible  <bruno@clisp.org>
74026         Tests for module 'getlogin'.
74027         * modules/getlogin-tests: New file.
74028         * tests/test-getlogin.c: New file.
74030         New module 'getlogin'.
74031         * lib/unistd.in.h (getlogin): New declaration.
74032         * lib/getlogin.c: New file.
74033         * m4/getlogin.m4: New file.
74034         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
74035         HAVE_GETLOGIN.
74036         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
74037         HAVE_GETLOGIN.
74038         * modules/getlogin: New file.
74039         * doc/posix-functions/getlogin.texi: Mention the new module.
74040         Reported by John W. Eaton <jwe@gnu.org>.
74042 2010-01-09  Bruno Haible  <bruno@clisp.org>
74044         getlogin_r: Support for native Windows.
74045         * lib/getlogin_r.c: Include <windows.h>
74046         (getlogin_r): Implement for native Windows.
74047         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
74048         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
74049         via John W. Eaton <jwe@gnu.org>.
74051 2010-01-09  Bruno Haible  <bruno@clisp.org>
74053         getlogin_r: Small fixes.
74054         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
74055         succeeds.
74056         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
74057         before testing whether getlogin_r is declared. No need to set
74058         HAVE_DECL_GETLOGIN_R to 1.
74059         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
74061 2010-01-09  Bruno Haible  <bruno@clisp.org>
74063         * lib/unistd.in.h (getlogin_r): Add comment.
74065 2010-01-09  Bruno Haible  <bruno@clisp.org>
74067         Tests for module 'getlogin_r'.
74068         * modules/getlogin_r-tests: New file.
74069         * tests/test-getlogin_r.c: New file.
74071 2010-01-09  Jim Meyering  <meyering@redhat.com>
74073         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
74074         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
74075         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
74077 2010-01-08  Simon Josefsson  <simon@josefsson.org>
74079         * lib/dup2.c (rpl_dup2): Improve comment.
74081 2010-01-08  Eric Blake  <ebb9@byu.net>
74083         maint.mk: allow packages to add makefile @@ exceptions
74084         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
74085         (sc_makefile_check): Rename...
74086         (sc_makefile_at_at_check): ...to this, and use hook.
74088         dup2: work around mingw bug
74089         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
74090         Reported by Simon Josefsson.
74092 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
74094         glob: Fix C++ compilation.
74095         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
74096         C++.
74098 2010-01-07  Bruno Haible  <bruno@clisp.org>
74100         Fix indentation of wctype.in.h, broken since 2007-01-06.
74101         * lib/wctype.in.h: Fix indentation of preprocessor directives.
74103 2010-01-07  Bruno Haible  <bruno@clisp.org>
74105         mbslen: Avoid collision with system function.
74106         * lib/string.in.h [MirBSD]: Include <wchar.h>.
74107         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
74108         * m4/mbslen.m4: New file.
74109         * modules/mbslen (Files): Add it.
74110         (configure.ac): Invoke gl_MBSLEN.
74111         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
74112         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
74113         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
74114         via Ian Beckwith <ianb@erislabs.net>.
74116 2010-01-07  Bruno Haible  <bruno@clisp.org>
74118         dirent: Document the last fix.
74119         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
74121 2010-01-07  Bruno Haible  <bruno@clisp.org>
74123         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
74124         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
74125         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
74126         va_list are defined.
74127         * doc/posix-headers/stdio.texi: Document the bug of missing types.
74128         Reported by Eric Blake.
74130 2010-01-07  Bruno Haible  <bruno@clisp.org>
74132         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
74133         * modules/xlist (Depends-on): Add 'list',
74134         * modules/xoset (Depends-on): Add 'oset'.
74135         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
74137 2010-01-07  Bruno Haible  <bruno@clisp.org>
74139         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
74140         * doc/posix-functions/strncasecmp.texi: Likewise.
74142 2010-01-07  Bruno Haible  <bruno@clisp.org>
74144         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
74146 2010-01-07  John W. Eaton  <jwe@octave.org>
74148         wctype: allow C++ use
74149         * lib/wctype.in.h: Add extern "C" block for C++.
74151 2010-01-06  Eric Blake  <ebb9@byu.net>
74153         maint.mk: detect incorrect GFDL usage
74154         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
74156 2010-01-06  Jim Meyering  <meyering@redhat.com>
74157         and Eric Blake  <ebb9@byu.net>
74159         maint.mk: ignore multi-line copyright in NEWS
74160         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
74162 2010-01-06  Eric Blake  <ebb9@byu.net>
74164         select: add missing dependency
74165         * modules/select-tests (Depends-on): Move sockets dependency...
74166         * modules/select (Depends-on): ...here.
74167         Reported by Ian Beckwith.
74169         doc: regenerate INSTALL
74170         * doc/INSTALL: Reflect recent autoconf update.
74171         * doc/INSTALL.ISO: Likewise.
74172         * doc/INSTALL.UTF-8: Likewise.
74174         pread: fix compilation on glibc
74175         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
74176         Reported by Ralf Wildenhues.
74178         dirent: fix test failure
74179         * lib/dirent.in.h (includes): Guarantee ino_t.
74180         Reported by Ralf Wildenhues.
74182 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
74184         linkat, renameat: avoid bad free
74185         * lib/at-func2.c (at_func2): Fix typo.
74186         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
74188 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74190         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
74191         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
74192         to avoid failure of symlink test later.
74194 2010-01-06  Eric Blake  <ebb9@byu.net>
74196         stdio, unistd: guarantee ssize_t
74197         * lib/unistd.in.h (includes): Ensure that types required by POSIX
74198         2008 are exposed when needed.
74199         * lib/stdio.in.h (includes): Likewise.
74200         Reported by Ralf Wildenhues.
74202 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
74204         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
74205         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
74206         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
74208 2010-01-06  Jim Meyering  <meyering@redhat.com>
74210         readtokens: this module *does* require xalloc.h
74211         It uses only functions that were omitted by the old syntax-check rule.
74212         * lib/readtokens.c: Include "xalloc.h" once again.
74213         * modules/readtokens (Depends-on): Add xalloc.
74214         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
74216 2010-01-05  Eric Blake  <ebb9@byu.net>
74218         maint: support 'make announcement' from a VPATH build
74219         * top/maint.mk (announcement): Look for correct NEWS file.
74221 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
74223         utimens (fdutimens): ignore a negative FD, per contract
74224         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
74225         when we have a valid file descriptor.  Otherwise, using a brand
74226         new glibc (with just-patched futimens that now fails with EBADF)
74227         would cause this function to fail with ENOSYS.
74228         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
74229         See also http://bugzilla.redhat.com/552320.
74231 2010-01-05  Eric Blake  <ebb9@byu.net>
74233         strcase: document what it provides
74234         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
74235         gnulib module.
74236         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
74237         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
74239 2010-01-05  Jim Meyering  <meyering@redhat.com>
74241         maint: remove useless inclusions of "xalloc.h"
74242         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
74243         * lib/readtokens.c: Likewise.
74244         * lib/same.c: Likewise.
74245         * modules/getloadavg (Depends-on): Remove xalloc.
74246         * modules/readtokens: Likewise.
74247         * modules/same: Likewise.
74249         maint.mk: include 4 more function names in alloca.h-checking regexp
74250         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
74251         regexp.  Before, we would give a false-positive (saying alloca.h
74252         is included unnecessarily) when the only uses involved omitted symbols.
74254         xalloc.h: use consistent formatting
74255         * lib/xalloc.h: Move declarations to start in the first column.
74257 2010-01-05  Eric Blake  <ebb9@byu.net>
74259         mkdir: avoid xalloc
74260         * lib/mkdir.c (includes): Drop unused header.
74261         Reported by John W. Eaton.
74263 2010-01-04  Jim Meyering  <meyering@redhat.com>
74265         nl_langinfo: avoid configure-time syntax error
74266         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
74267         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
74268         the empty string.  Don't let that provoke a shell syntax error.
74270         regcomp, regexec, fnmatch: avoid array bounds read error
74271         * lib/regcomp.c (build_equiv_class): From glibc:
74272         Use only the low 24 bits of a findidx return value as an index
74273         into the weights array.  Patch by Ulrich Drepper:
74274         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
74275         * lib/regexec.c (check_node_accept_bytes): Likewise.
74276         * lib/fnmatch_loop.c (FCT): Likewise.
74278         regcomp: skip collseq lookup when there are no rules
74279         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
74280         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
74282         regcomp: recognize ill-formed { } expressions
74283         * lib/regcomp.c (parse_dup_op): From glibc:
74284         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
74286         regcomp: fix typo in comment
74287         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
74288         s/satisfy/satisfies/.
74290         regcomp: sync from glibc: remove dead store
74291         * lib/regcomp.c (duplicate_node_closure): Remove useless
74292         search_duplicated_node call and dead store.
74294         regcomp: sync from glibc; always use nl_langinfo
74295         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
74296         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
74297         * modules/regex (Depends-on): Add nl_langinfo.
74299 2010-01-04  Eric Blake  <ebb9@byu.net>
74301         fdopendir: fix configure test
74302         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
74304 2010-01-01  Bruno Haible  <bruno@clisp.org>
74306         wchar: Remove unused configure check.
74307         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
74309 2010-01-01  Eric Blake  <ebb9@byu.net>
74311         headers: make check of system header explicit
74312         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
74313         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
74314         ourselves.
74315         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
74316         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74317         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
74318         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
74319         internals.
74320         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
74321         missing.
74322         Suggested by Bruno Haible.
74324 2010-01-01  Jim Meyering  <meyering@redhat.com>
74326         ChangeLog: tweak to eliminate unnecessary copyright line
74327         * ChangeLog: Remove a copyright line that was mistakenly updated
74328         by today's update-copyright run.  Reported by Eric Blake.
74330         test-update-copyright: don't let envvar setting cause test failure
74331         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74333 2010-01-01  Bruno Haible  <bruno@clisp.org>
74335         localename: Avoid gcc warning.
74336         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
74337         function if it is not used.
74339 2010-01-01  Jim Meyering  <meyering@redhat.com>
74341         update nearly all FSF copyright year lists to include 2010
74342         Use the same procedure as for 2009, outlined in
74343         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
74345         version-etc: set COPYRIGHT_YEAR to 2010
74346         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
74348 2009-12-31  Eric Blake  <ebb9@byu.net>
74350         doc: correct availability of cygwin 1.5.x getopt
74351         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
74352         variables.
74353         * doc/posix-functions/opterr.texi (opterr): Likewise.
74354         * doc/posix-functions/optind.texi (optind): Likewise.
74355         * doc/posix-functions/optopt.texi (optopt): Likewise.
74356         * doc/posix-functions/tzname.texi (tzname): Likewise.
74358         openat: update maintainer
74359         * modules/openat (Maintainer): Add myself.
74361         utimens: avoid shadowing warning
74362         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
74363         buffers into one, to avoid shadowing, as well as avoiding a
74364         redundant stat.
74365         Reported by Jim Meyering.
74367         test-dup2: avoid compiler warning
74368         * tests/test-dup2.c (is_inheritable): Only define if used.
74370 2010-01-01  Bruno Haible  <bruno@clisp.org>
74372         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
74373         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
74374         defined, use wctomb instead of wcrtomb.
74376 2010-01-01  Bruno Haible  <bruno@clisp.org>
74378         iconv: Reject native Solaris iconv.
74379         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
74380         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
74382 2009-12-31  Bruno Haible  <bruno@clisp.org>
74384         * tests/test-signal.c (main): Remove test of 'SIG'.
74386 2009-12-31  Bruno Haible  <bruno@clisp.org>
74388         spawn: Fix incomplete fix.
74389         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74390         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74391         warnings for GNULIB_POSIXCHECK again.
74392         Reported by Eric Blake.
74394 2009-12-31  Bruno Haible  <bruno@clisp.org>
74396         Avoid namespace pollution on glibc systems.
74397         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
74398         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
74399         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
74400         glibc systems.
74402 2009-12-31  Bruno Haible  <bruno@clisp.org>
74404         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
74405         (gl_REPLACE_WCHAR_H): Turn into a no-op.
74406         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
74407         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
74408         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
74409         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
74410         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
74412 2009-12-31  Bruno Haible  <bruno@clisp.org>
74414         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
74415         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
74416         afterwards.
74418 2009-12-31  Bruno Haible  <bruno@clisp.org>
74420         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
74421         SYS_UTSNAME_H.
74423 2009-12-31  Bruno Haible  <bruno@clisp.org>
74425         spawn: Fix misapplied patch.
74426         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
74427         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
74428         warnings for GNULIB_POSIXCHECK.
74430 2009-12-31  Bruno Haible  <bruno@clisp.org>
74432         times: Update after sys_times changed.
74433         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
74434         * modules/times (Files): Add it.
74435         (configure.ac): Invoke gl_FUNC_TIMES.
74437 2009-12-31  Bruno Haible  <bruno@clisp.org>
74439         Use AC_C_INLINE where necessary.
74440         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
74441         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
74442         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
74443         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
74444         * m4/mbfile.m4 (gl_MBFILE): Likewise.
74445         * m4/mbiter.m4 (gl_MBITER): Likewise.
74446         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
74447         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
74448         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
74449         * modules/u64 (configure.ac): Likewise.
74451 2009-12-31  Bruno Haible  <bruno@clisp.org>
74453         Use AC_C_INLINE instead of module 'inline' where possible.
74454         * modules/inline (Description): Clarify purpose.
74455         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
74456         * modules/count-one-bits (Depends-on): Remove inline.
74457         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
74458         * modules/openat (Depends-on): Remove inline.
74459         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
74460         instead of depending on module 'inline'.
74461         * modules/filevercmp (Depends-on, configure.ac): Likewise.
74462         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
74463         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
74464         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
74465         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
74466         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
74467         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
74468         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
74469         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
74470         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
74471         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
74472         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
74473         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
74474         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
74475         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
74476         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
74477         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
74478         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
74479         Likewise.
74480         * modules/unictype/property-ascii-hex-digit (Depends-on,
74481         configure.ac): Likewise.
74482         * modules/unictype/property-bidi-arabic-digit (Depends-on,
74483         configure.ac): Likewise.
74484         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
74485         configure.ac): Likewise.
74486         * modules/unictype/property-bidi-block-separator (Depends-on,
74487         configure.ac): Likewise.
74488         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
74489         configure.ac): Likewise.
74490         * modules/unictype/property-bidi-common-separator (Depends-on,
74491         configure.ac): Likewise.
74492         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
74493         Likewise.
74494         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
74495         configure.ac): Likewise.
74496         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
74497         configure.ac): Likewise.
74498         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
74499         configure.ac): Likewise.
74500         * modules/unictype/property-bidi-european-digit (Depends-on,
74501         configure.ac): Likewise.
74502         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
74503         configure.ac): Likewise.
74504         * modules/unictype/property-bidi-left-to-right (Depends-on,
74505         configure.ac): Likewise.
74506         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
74507         configure.ac): Likewise.
74508         * modules/unictype/property-bidi-other-neutral (Depends-on,
74509         configure.ac): Likewise.
74510         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
74511         Likewise.
74512         * modules/unictype/property-bidi-segment-separator (Depends-on,
74513         configure.ac): Likewise.
74514         * modules/unictype/property-bidi-whitespace (Depends-on,
74515         configure.ac): Likewise.
74516         * modules/unictype/property-combining (Depends-on, configure.ac):
74517         Likewise.
74518         * modules/unictype/property-composite (Depends-on, configure.ac):
74519         Likewise.
74520         * modules/unictype/property-currency-symbol (Depends-on,
74521         configure.ac): Likewise.
74522         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
74523         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
74524         Likewise.
74525         * modules/unictype/property-default-ignorable-code-point (Depends-on,
74526         configure.ac): Likewise.
74527         * modules/unictype/property-deprecated (Depends-on, configure.ac):
74528         Likewise.
74529         * modules/unictype/property-diacritic (Depends-on, configure.ac):
74530         Likewise.
74531         * modules/unictype/property-extender (Depends-on, configure.ac):
74532         Likewise.
74533         * modules/unictype/property-format-control (Depends-on, configure.ac):
74534         Likewise.
74535         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
74536         Likewise.
74537         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
74538         Likewise.
74539         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
74540         Likewise.
74541         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
74542         Likewise.
74543         * modules/unictype/property-hyphen (Depends-on, configure.ac):
74544         Likewise.
74545         * modules/unictype/property-id-continue (Depends-on, configure.ac):
74546         Likewise.
74547         * modules/unictype/property-id-start (Depends-on, configure.ac):
74548         Likewise.
74549         * modules/unictype/property-ideographic (Depends-on, configure.ac):
74550         Likewise.
74551         * modules/unictype/property-ids-binary-operator (Depends-on,
74552         configure.ac): Likewise.
74553         * modules/unictype/property-ids-trinary-operator (Depends-on,
74554         configure.ac): Likewise.
74555         * modules/unictype/property-ignorable-control (Depends-on,
74556         configure.ac): Likewise.
74557         * modules/unictype/property-iso-control (Depends-on, configure.ac):
74558         Likewise.
74559         * modules/unictype/property-join-control (Depends-on, configure.ac):
74560         Likewise.
74561         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
74562         Likewise.
74563         * modules/unictype/property-line-separator (Depends-on, configure.ac):
74564         Likewise.
74565         * modules/unictype/property-logical-order-exception (Depends-on,
74566         configure.ac): Likewise.
74567         * modules/unictype/property-lowercase (Depends-on, configure.ac):
74568         Likewise.
74569         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
74570         * modules/unictype/property-non-break (Depends-on, configure.ac):
74571         Likewise.
74572         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
74573         Likewise.
74574         * modules/unictype/property-numeric (Depends-on, configure.ac):
74575         Likewise.
74576         * modules/unictype/property-other-alphabetic (Depends-on,
74577         configure.ac): Likewise.
74578         * modules/unictype/property-other-default-ignorable-code-point
74579         (Depends-on, configure.ac): Likewise.
74580         * modules/unictype/property-other-grapheme-extend (Depends-on,
74581         configure.ac): Likewise.
74582         * modules/unictype/property-other-id-continue (Depends-on,
74583         configure.ac): Likewise.
74584         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
74585         Likewise.
74586         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
74587         Likewise.
74588         * modules/unictype/property-other-math (Depends-on, configure.ac):
74589         Likewise.
74590         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
74591         Likewise.
74592         * modules/unictype/property-paired-punctuation (Depends-on,
74593         configure.ac): Likewise.
74594         * modules/unictype/property-paragraph-separator (Depends-on,
74595         configure.ac): Likewise.
74596         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
74597         Likewise.
74598         * modules/unictype/property-pattern-white-space (Depends-on,
74599         configure.ac): Likewise.
74600         * modules/unictype/property-private-use (Depends-on, configure.ac):
74601         Likewise.
74602         * modules/unictype/property-punctuation (Depends-on, configure.ac):
74603         Likewise.
74604         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
74605         Likewise.
74606         * modules/unictype/property-radical (Depends-on, configure.ac):
74607         Likewise.
74608         * modules/unictype/property-sentence-terminal (Depends-on,
74609         configure.ac): Likewise.
74610         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
74611         Likewise.
74612         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
74613         * modules/unictype/property-terminal-punctuation (Depends-on,
74614         configure.ac): Likewise.
74615         * modules/unictype/property-titlecase (Depends-on, configure.ac):
74616         Likewise.
74617         * modules/unictype/property-unassigned-code-value (Depends-on,
74618         configure.ac): Likewise.
74619         * modules/unictype/property-unified-ideograph (Depends-on,
74620         configure.ac): Likewise.
74621         * modules/unictype/property-uppercase (Depends-on, configure.ac):
74622         Likewise.
74623         * modules/unictype/property-variation-selector (Depends-on,
74624         configure.ac): Likewise.
74625         * modules/unictype/property-white-space (Depends-on, configure.ac):
74626         Likewise.
74627         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
74628         Likewise.
74629         * modules/unictype/property-xid-start (Depends-on, configure.ac):
74630         Likewise.
74631         * modules/unictype/property-zero-width (Depends-on, configure.ac):
74632         Likewise.
74633         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
74634         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
74635         Likewise.
74637 2009-12-31  Bruno Haible  <bruno@clisp.org>
74639         Remove unnecessary AC_C_INLINE invocation.
74640         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
74641         since 2009-08-21.
74643 2009-12-31  Jim Meyering  <meyering@redhat.com>
74645         maint.mk: don't require explicit gpg_key_ID in cfg.mk
74646         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
74647         With this change, we can all remove the gpg_key_ID = ... definition
74648         from our respective cfg.mk files.
74650         maint.mk: create announcement template in ~/, not in /tmp
74651         * top/maint.mk (emit_upload_commands): Adjust.
74652         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
74653         Remove temporary file, .ci-msg.
74655 2009-12-31  Eric Blake  <ebb9@byu.net>
74657         link-warning: always build headers with link warnings
74658         * modules/arpa_inet (Makefile.am): Always build replacement
74659         header.
74660         * modules/ctype (Makefile.am): Likewise.
74661         * modules/dirent (Makefile.am): Likewise.
74662         * modules/inttypes (Makefile.am): Likewise.
74663         * modules/langinfo (Makefile.am): Likewise.
74664         * modules/locale (Makefile.am): Likewise.
74665         * modules/spawn (Makefile.am): Likewise.
74666         * modules/sys_file (Makefile.am): Likewise.
74667         * modules/sys_ioctl (Makefile.am): Likewise.
74668         * modules/sys_select (Makefile.am): Likewise.
74669         * modules/sys_socket (Makefile.am): Likewise.
74670         * modules/sys_times (Makefile.am): Likewise.
74671         * modules/sys_utsname (Makefile.am): Likewise.
74672         * modules/sys_wait (Makefile.am): Likewise.
74673         * modules/wchar (Makefile.am): Likewise.
74674         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
74675         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
74676         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
74677         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
74678         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
74679         Likewise.
74680         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
74681         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
74682         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
74683         Likewise.
74684         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
74685         Likewise.
74686         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
74687         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
74688         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
74689         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
74690         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
74691         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74692         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74693         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
74694         (gl_WCHAR_H_DEFAULTS): Likewise.
74696 2009-12-31  Eric Blake  <ebb9@byu.net>
74698         signal, spawn: use link warnings
74699         * lib/signal.in.h (sigset_t): Make unconditional.
74700         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
74701         (sigpending, sigprocmask, sigaction): Add link warnings.
74702         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
74703         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
74704         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
74705         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
74706         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
74707         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
74708         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
74709         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
74710         (posix_spawn_file_actions_destroy)
74711         (posix_spawn_file_actions_addopen)
74712         (posix_spawn_file_actions_addclose)
74713         (posix_spawn_file_actions_adddup2): Likewise.
74714         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
74715         * tests/test-signal.c (main): Enhance test.
74717         spawn: improve wrapper support
74718         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
74719         (gl_SPAWN_H_DEFAULTS): New defaults.
74720         * modules/spawn (Makefile.am): Substitute them.
74721         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
74722         Only declare if missing or broken.
74724         sys_times, sys_utsname: use include_next
74725         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
74726         header.
74727         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
74728         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
74729         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
74730         * modules/sys_times (Depends-on): Add include_next.
74731         (Makefile.am): Substitute additional values.
74732         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
74733         * lib/sys_times.in.h (includes): Include native header, if
74734         available.
74735         * lib/sys_utsname.in.h (includes): Likewise.
74736         * tests/test-sys_times.c (main): Enhance test.
74738         fdutimensat: revert prior patch
74739         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
74740         utimens.h.
74741         Reported by Bruno Haible.
74743 2009-12-30  Eric Blake  <ebb9@byu.net>
74745         sys_wait: drop link-warning dependency
74746         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
74747         link-warning efforts.
74748         * lib/sys_wait.in.h: Likewise.
74750         fdutimensat: remove bogus dependency
74751         * modules/fdutimensat (Depends-on): Drop inline.
74753         unistd: fix typo
74754         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
74756 2009-12-30  Bruno Haible  <bruno@clisp.org>
74758         Fix compilation error with Solaris cc.
74759         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
74760         * lib/unicase/u16-is-invariant.c: Likewise.
74761         * lib/unicase/u32-is-invariant.c: Likewise.
74762         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
74764 2009-12-30  Bruno Haible  <bruno@clisp.org>
74766         Fix test crash.
74767         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
74768         locales.
74769         Reported by Simon Josefsson <simon@josefsson.org>.
74771 2009-12-30  Bruno Haible  <bruno@clisp.org>
74773         Fix compilation error on most platforms.
74774         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
74775         Reported by Simon Josefsson <simon@josefsson.org>
74776         and Nelson H. F. Beebe <beebe@math.utah.edu>.
74778 2009-12-30  Eric Blake  <ebb9@byu.net>
74780         futimens, utimensat: work around ntfs-3g bug
74781         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
74782         a ctime bug is present, and expand workaround to cover ntfs-3g.
74783         * lib/utimens.c (fdutimens, lutimens): Likewise.
74784         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
74785         (validate_timespec): Adjust return value.
74786         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
74787         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
74788         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
74790 2009-12-29  Eric Blake  <ebb9@byu.net>
74792         link-warning: make usage consistent
74793         * modules/ctype (Depends-on): Add link-warning.
74794         (Makefile.am): Update rules accordingly.
74795         * modules/langinfo (Depends-on, Makefile.am): Likewise.
74796         * modules/locale (Depends-on, Makefile.am): Likewise.
74797         * modules/sys_file (Makefile.am): Likewise.
74798         * modules/getopt-posix (Makefile.am): Delete unused link warning
74799         efforts.
74800         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
74801         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
74802         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
74803         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
74805         stdio: remove unused variables
74806         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
74807         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
74808         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
74810         tests: test more substitute headers
74811         * modules/ctype-tests: New file.
74812         * modules/dirent-tests: Likewise.
74813         * modules/spawn-tests: Likewise.
74814         * modules/sys_file-tests: Likewise.
74815         * modules/sys_ioctl-tests: Likewise.
74816         * modules/sys_wait-tests: Likewise.
74817         * tests/test-ctype.c: Likewise.
74818         * tests/test-dirent.c: Likewise.
74819         * tests/test-spawn.c: Likewise.
74820         * tests/test-sys_file.c: Likewise.
74821         * tests/test-sys_ioctl.c: Likewise.
74822         * tests/test-sys_wait.c: Likewise.
74823         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
74824         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
74825         whether or not flock is in use.
74827         tests: remove License section from module
74828         * modules/arpa_inet-tests: Remove unneeded section.
74829         * modules/byteswap-tests: Likewise.
74830         * modules/ceilf-tests: Likewise.
74831         * modules/ceill-tests: Likewise.
74832         * modules/crypto/des-tests: Likewise.
74833         * modules/crypto/gc-arcfour-tests: Likewise.
74834         * modules/crypto/gc-arctwo-tests: Likewise.
74835         * modules/crypto/gc-des-tests: Likewise.
74836         * modules/crypto/gc-hmac-md5-tests: Likewise.
74837         * modules/crypto/gc-hmac-sha1-tests: Likewise.
74838         * modules/crypto/gc-md2-tests: Likewise.
74839         * modules/crypto/gc-md4-tests: Likewise.
74840         * modules/crypto/gc-md5-tests: Likewise.
74841         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
74842         * modules/crypto/gc-rijndael-tests: Likewise.
74843         * modules/crypto/gc-sha1-tests: Likewise.
74844         * modules/crypto/gc-tests: Likewise.
74845         * modules/crypto/md2-tests: Likewise.
74846         * modules/crypto/md4-tests: Likewise.
74847         * modules/fcntl-h-tests: Likewise.
74848         * modules/floorf-tests: Likewise.
74849         * modules/floorl-tests: Likewise.
74850         * modules/frexp-nolibm-tests: Likewise.
74851         * modules/frexp-tests: Likewise.
74852         * modules/frexpl-nolibm-tests: Likewise.
74853         * modules/frexpl-tests: Likewise.
74854         * modules/getaddrinfo-tests: Likewise.
74855         * modules/inttypes-tests: Likewise.
74856         * modules/isfinite-tests: Likewise.
74857         * modules/isinf-tests: Likewise.
74858         * modules/ldexpl-tests: Likewise.
74859         * modules/locale-tests: Likewise.
74860         * modules/math-tests: Likewise.
74861         * modules/netdb-tests: Likewise.
74862         * modules/netinet_in-tests: Likewise.
74863         * modules/printf-frexp-tests: Likewise.
74864         * modules/printf-frexpl-tests: Likewise.
74865         * modules/priv-set-tests: Likewise.
74866         * modules/random_r-tests: Likewise.
74867         * modules/round-tests: Likewise.
74868         * modules/roundf-tests: Likewise.
74869         * modules/roundl-tests: Likewise.
74870         * modules/search-tests: Likewise.
74871         * modules/select-tests: Likewise.
74872         * modules/signal-tests: Likewise.
74873         * modules/stdbool-tests: Likewise.
74874         * modules/stddef-tests: Likewise.
74875         * modules/stdint-tests: Likewise.
74876         * modules/stdio-tests: Likewise.
74877         * modules/stdlib-tests: Likewise.
74878         * modules/string-tests: Likewise.
74879         * modules/strings-tests: Likewise.
74880         * modules/sys_select-tests: Likewise.
74881         * modules/sys_socket-tests: Likewise.
74882         * modules/sys_stat-tests: Likewise.
74883         * modules/sys_time-tests: Likewise.
74884         * modules/sys_utsname-tests: Likewise.
74885         * modules/sysexits-tests: Likewise.
74886         * modules/time-tests: Likewise.
74887         * modules/trunc-tests: Likewise.
74888         * modules/truncf-tests: Likewise.
74889         * modules/truncl-tests: Likewise.
74890         * modules/tsearch-tests: Likewise.
74891         * modules/unistd-tests: Likewise.
74892         * modules/wchar-tests: Likewise.
74893         * modules/wctype-tests: Likewise.
74895         tests: fix license on several tests
74896         * tests/test-des.c: Update to GPLv3+.
74897         * tests/test-flock.c: Likewise.
74898         * tests/test-fsync.c: Likewise.
74899         * tests/test-futimens.h: Likewise.
74900         * tests/test-gc-arcfour.c: Likewise.
74901         * tests/test-gc-arctwo.c: Likewise.
74902         * tests/test-gc-des.c: Likewise.
74903         * tests/test-gc-hmac-md5.c: Likewise.
74904         * tests/test-gc-hmac-sha1.c: Likewise.
74905         * tests/test-gc-md2.c: Likewise.
74906         * tests/test-gc-md4.c: Likewise.
74907         * tests/test-gc-md5.c: Likewise.
74908         * tests/test-gc-pbkdf2-sha1.c: Likewise.
74909         * tests/test-gc-rijndael.c: Likewise.
74910         * tests/test-gc-sha1.c: Likewise.
74911         * tests/test-gc.c: Likewise.
74912         * tests/test-getcwd.c: Likewise.
74913         * tests/test-link.c: Likewise.
74914         * tests/test-link.h: Likewise.
74915         * tests/test-lutimens.h: Likewise.
74916         * tests/test-md2.c: Likewise.
74917         * tests/test-md4.c: Likewise.
74918         * tests/test-mkdir.h: Likewise.
74919         * tests/test-rename.c: Likewise.
74920         * tests/test-rename.h: Likewise.
74921         * tests/test-safe-alloc.c: Likewise.
74922         * tests/test-utimens-common.h: Likewise.
74923         * tests/test-utimens.h: Likewise.
74925         maint: sync license texts
74926         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
74927         * doc/gpl-3.0.texi: Revert copyright year update.
74928         * doc/lgpl-3.0.texi: Likewise.
74930 2009-12-29  Jim Meyering  <meyering@redhat.com>
74932         update nearly all FSF copyright year lists to include 2009
74933         The files named by the following are exempted:
74934             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
74935               test -f "$dst" && { echo "$dst"; continue; }
74936               test -d "$dst" || continue
74937               echo "$dst"/$(basename "$src")
74938             done > exempt
74939             git ls-files tests/unictype >> exempt
74940         In the remaining files, convert to all-interval notation if
74941         - there is already at least one year interval like 2000-2003
74942         - the file is maintained by me
74943         - the file is in lib/uni*/, where that style already prevails
74944         Otherwise, use update-copyright's default.
74946 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74947         and Eric Blake  <ebb9@byu.net>
74949         tests: don't require debug system() to pass
74950         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
74951         * tests/test-rmdir.h (test_rmdir_func): Likewise.
74952         * tests/test-unlink.h (test_unlink_func): Likewise.
74953         * tests/test-fstatat.c (main): ...into callers.
74954         * tests/test-lstat.c (main): Likewise.
74955         * tests/test-rmdir.c (main): Likewise.
74956         * tests/test-unlink.c (main): Likewise.
74957         * tests/test-unlinkat.c (main): Likewise.
74958         * tests/test-areadlink-with-size.c (main): Don't require a
74959         debug-only system call to pass, aiding cross-testing to mingw.
74960         * tests/test-areadlink.c (main): Likewise.
74961         * tests/test-areadlinkat-with-size.c (main): Likewise.
74962         * tests/test-areadlinkat.c (main): Likewise.
74963         * tests/test-canonicalize-lgpl.c (main): Likewise.
74964         * tests/test-canonicalize.c (main): Likewise.
74965         * tests/test-chown.c (main): Likewise.
74966         * tests/test-fchownat.c (main): Likewise.
74967         * tests/test-lchown.c (main): Likewise.
74968         * tests/test-fdutimensat.c (main): Likewise.
74969         * tests/test-futimens.c (main): Likewise.
74970         * tests/test-link.c (main): Likewise.
74971         * tests/test-linkat.c (main): Likewise.
74972         * tests/test-mkdir.c (main): Likewise.
74973         * tests/test-mkdirat.c (main): Likewise.
74974         * tests/test-mkfifo.c (main): Likewise.
74975         * tests/test-mkfifoat.c (main): Likewise.
74976         * tests/test-mknod.c (main): Likewise.
74977         * tests/test-readlink.c (main): Likewise.
74978         * tests/test-remove.c (main): Likewise.
74979         * tests/test-rename.c (main): Likewise.
74980         * tests/test-renameat.c (main): Likewise.
74981         * tests/test-symlink.c (main): Likewise.
74982         * tests/test-symlinkat.c (main): Likewise.
74983         * tests/test-utimens.c (main): Likewise.
74984         * tests/test-utimensat.c (main): Likewise.
74986 2009-12-29  Simon Josefsson  <simon@josefsson.org>
74988         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
74989         on $(UNUSED_PARAMETER_H) to avoid build failure.
74991 2009-12-28  Jim Meyering  <meyering@redhat.com>
74993         update-copyright: you may specify a max. line length other than 72
74994         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
74996         maint: use consistent FSF copyright line syntax
74997         * lib/posixtm.c: Add missing comma in FSF copyright line.
74998         * lib/posixtm.h: Likewise.
74999         * lib/getugroups.c: Add missing ", Inc.".
75001         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
75002         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
75003         FSF copyright line.  Remove trailing blanks.
75005 2009-12-28  Eric Blake  <ebb9@byu.net>
75007         test-dup2: reduce dependencies
75008         * modules/cloexec (Configure.ac): Set witness.
75009         * modules/dup2-tests (Depends-on): Drop cloexec.
75010         * tests/test-dup2.c (main): Skip portion of test if cloexec module
75011         not present.
75012         Suggested by Bruno Haible.
75014 2009-12-26  Bruno Haible  <bruno@clisp.org>
75016         Remove an unneeded dependency.
75017         * modules/fseterr (Depends-on): Remove dup2.
75019 2009-12-26  Eric Blake  <ebb9@byu.net>
75021         tests: use macros.h in more places
75022         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
75023         (ASSERT_STREAM): Provide default of stderr.
75024         * tests/test-dirent-safer.c: Include macros.h, using alternate
75025         stream for assertions.
75026         * tests/test-dup-safer.c: Likewise.
75027         * tests/test-freopen-safer.c: Likewise.
75028         * tests/test-getopt.c: Likewise.
75029         * tests/test-openat-safer.c: Likewise.
75030         * tests/test-pipe.c: Likewise.
75031         * tests/test-popen-safer.c: Likewise.
75032         * modules/dirent-safer-tests (Files): Include macros.h.
75033         * modules/unistd-safer-tests (Files): Likewise.
75034         * modules/freopen-safer-tests (Files): Likewise.
75035         * modules/getopt-posix-tests (Files): Likewise.
75036         * modules/openat-safer-tests (Files): Likewise.
75037         * modules/pipe-tests (Files): Likewise.
75039 2009-12-26  Bruno Haible  <bruno@clisp.org>
75041         javacomp-script: Portability fix.
75042         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
75043         that it also works on Solaris.
75045 2009-12-26  Bruno Haible  <bruno@clisp.org>
75047         localename: Fix storage allocation of gl_locale_name_thread's result.
75048         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
75049         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
75050         all platforms that have 'uselocale'.
75051         (gl_locale_name_thread_unsafe): New function, extracted from
75052         gl_locale_name_thread.
75053         (gl_locale_name_thread): Call struniq on all platforms that have
75054         'uselocale'.
75055         * tests/test-localename.c (test_locale_name_thread): Check that the
75056         resulting strings are permanently allocated.
75057         * modules/localename-tests (Depends-on): Add strdup.
75059 2009-12-26  Bruno Haible  <bruno@clisp.org>
75061         * tests/test-localename.c (categories): Fill in the strings.
75063 2009-12-26  Jim Meyering  <meyering@redhat.com>
75065         isdir: complete the removal of m4/isdir.m4
75066         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
75068         isdir: clean up, since at least grep still uses it
75069         * lib/isdir.c: Include "isdir.h".
75070         (S_ISDIR): Remove now-unneeded definition.
75071         * modules/isdir (Files): Add lib/isdir.h.
75072         * lib/isdir.h: New file, with declaration.
75073         * m4/isdir.m4: Remove file -- unneeded.
75075 2009-12-25  Bruno Haible  <bruno@clisp.org>
75077         selinux-h: Make generated .h files standalone.
75078         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
75079         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
75080         * lib/se-selinux.in.h: Likewise.
75081         * modules/selinux-h (Depends-on): Add unused-parameter.
75082         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
75083         selinux/selinux.h and selinux/context.h.
75084         Suggested by Eric Blake.
75086 2009-12-25  Bruno Haible  <bruno@clisp.org>
75088         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
75089         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
75090         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
75091         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
75092         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
75094 2009-12-24  Bruno Haible  <bruno@clisp.org>
75096         openat: Fix warning.
75097         * lib/openat-proc.c: Include <unistd.h>.
75099 2009-12-24  Bruno Haible  <bruno@clisp.org>
75101         New module 'unused-parameter'.
75102         * build-aux/unused-parameter.h: New file, extracted from earlier
75103         gnulib-common.m4.
75104         * modules/unused-parameter: New file.
75105         * lib/unistr.h: Include unused-parameter.h.
75106         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
75107         _GL_UNUSED.
75108         * modules/unistr/base (Depends-on): Add unused-parameter.
75110 2009-12-24  Bruno Haible  <bruno@clisp.org>
75112         Add missing dependencies to 'extensions' module.
75113         * m4/extensions.m4: Add comment.
75114         * modules/accept4 (Depends-on): Add extensions.
75115         * modules/dup3 (Depends-on): Likewise.
75116         * modules/fcntl (Depends-on): Likewise.
75117         * modules/futimens (Depends-on): Likewise.
75118         * modules/mknod (Depends-on): Likewise.
75119         * modules/pipe2 (Depends-on): Likewise.
75120         * modules/stat-time (Depends-on): Likewise.
75121         * modules/strcasestr-simple (Depends-on): Likewise.
75122         * modules/strsignal (Depends-on): Likewise.
75123         * modules/utimensat (Depends-on): Likewise.
75124         * modules/localcharset (Depends-on): Likewise. Needed because of
75125         gl_FCNTL_O_FLAGS.
75126         * modules/wcrtomb (Depends-on): Likewise. Needed because of
75127         AC_TYPE_MBSTATE_T.
75128         * modules/wcsnrtombs (Depends-on): Likewise.
75129         * modules/wcsrtombs (Depends-on): Likewise.
75131 2009-12-24  Bruno Haible  <bruno@clisp.org>
75133         binary-io: Avoid gcc warning due to SET_BINARY.
75134         * lib/binary-io.h (SET_BINARY): Cast the result to void.
75135         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
75137 2009-12-24  Bruno Haible  <bruno@clisp.org>
75139         Avoid future namespace pollution on glibc systems.
75140         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
75141         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
75142         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
75143         glibc systems.
75145 2009-12-24  Bruno Haible  <bruno@clisp.org>
75147         Refactor common macros used in tests.
75148         * tests/macros.h: New file.
75149         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
75150         and/or <stdlib.h>, if appropriate.
75151         (ASSERT, SIZEOF): Remove macros.
75152         * tests/test-areadlink-with-size.c: Likewise.
75153         * tests/test-areadlinkat.c: Likewise.
75154         * tests/test-areadlinkat-with-size.c: Likewise.
75155         * tests/test-argmatch.c: Likewise.
75156         * tests/test-argv-iter.c: Likewise.
75157         * tests/test-array-mergesort.c: Likewise.
75158         * tests/test-array_list.c: Likewise.
75159         * tests/test-array_oset.c: Likewise.
75160         * tests/test-avltree_list.c: Likewise.
75161         * tests/test-avltree_oset.c: Likewise.
75162         * tests/test-avltreehash_list.c: Likewise.
75163         * tests/test-base64.c: Likewise.
75164         * tests/test-binary-io.c: Likewise.
75165         * tests/test-bitrotate.c: Likewise.
75166         * tests/test-btowc.c: Likewise.
75167         * tests/test-byteswap.c: Likewise.
75168         * tests/test-c-ctype.c: Likewise.
75169         * tests/test-c-stack.c: Likewise.
75170         * tests/test-c-strcasecmp.c: Likewise.
75171         * tests/test-c-strcasestr.c: Likewise.
75172         * tests/test-c-strncasecmp.c: Likewise.
75173         * tests/test-c-strstr.c: Likewise.
75174         * tests/test-canonicalize-lgpl.c: Likewise.
75175         * tests/test-canonicalize.c: Likewise.
75176         * tests/test-carray_list.c: Likewise.
75177         * tests/test-ceilf1.c: Likewise.
75178         * tests/test-ceilf2.c: Likewise.
75179         * tests/test-ceill.c: Likewise.
75180         * tests/test-chown.c: Likewise.
75181         * tests/test-cloexec.c: Likewise.
75182         * tests/test-copy-acl.c: Likewise.
75183         * tests/test-copy-file.c: Likewise.
75184         * tests/test-count-one-bits.c: Likewise.
75185         * tests/test-dprintf-posix.c: Likewise.
75186         * tests/test-dup2.c: Likewise.
75187         * tests/test-dup3.c: Likewise.
75188         * tests/test-duplocale.c: Likewise.
75189         * tests/test-fbufmode.c: Likewise.
75190         * tests/test-fchdir.c: Likewise.
75191         * tests/test-fchownat.c: Likewise.
75192         * tests/test-fcntl-safer.c: Likewise.
75193         * tests/test-fcntl.c: Likewise.
75194         * tests/test-fdopendir.c: Likewise.
75195         * tests/test-fdutimensat.c: Likewise.
75196         * tests/test-fflush2.c: Likewise.
75197         * tests/test-file-has-acl.c: Likewise.
75198         * tests/test-filevercmp.c: Likewise.
75199         * tests/test-flock.c: Likewise.
75200         * tests/test-floorf1.c: Likewise.
75201         * tests/test-floorf2.c: Likewise.
75202         * tests/test-floorl.c: Likewise.
75203         * tests/test-fnmatch.c: Likewise.
75204         * tests/test-fopen.h: Likewise.
75205         * tests/test-fpending.c: Likewise.
75206         * tests/test-fprintf-posix.c: Likewise.
75207         * tests/test-fpurge.c: Likewise.
75208         * tests/test-freadable.c: Likewise.
75209         * tests/test-freadahead.c: Likewise.
75210         * tests/test-freading.c: Likewise.
75211         * tests/test-freadptr.c: Likewise.
75212         * tests/test-freadptr2.c: Likewise.
75213         * tests/test-freadseek.c: Likewise.
75214         * tests/test-freopen.c: Likewise.
75215         * tests/test-frexp.c: Likewise.
75216         * tests/test-frexpl.c: Likewise.
75217         * tests/test-fseek.c: Likewise.
75218         * tests/test-fseeko.c: Likewise.
75219         * tests/test-fstatat.c: Likewise.
75220         * tests/test-fstrcmp.c: Likewise.
75221         * tests/test-fsync.c: Likewise.
75222         * tests/test-ftell.c: Likewise.
75223         * tests/test-ftello.c: Likewise.
75224         * tests/test-func.c: Likewise.
75225         * tests/test-futimens.c: Likewise.
75226         * tests/test-fwritable.c: Likewise.
75227         * tests/test-fwriting.c: Likewise.
75228         * tests/test-getcwd.c: Likewise.
75229         * tests/test-getdate.c: Likewise.
75230         * tests/test-getdelim.c: Likewise.
75231         * tests/test-getdtablesize.c: Likewise.
75232         * tests/test-getgroups.c: Likewise.
75233         * tests/test-getline.c: Likewise.
75234         * tests/test-getndelim2.c: Likewise.
75235         * tests/test-glob.c: Likewise.
75236         * tests/test-hash.c: Likewise.
75237         * tests/test-i-ring.c: Likewise.
75238         * tests/test-iconv-utf.c: Likewise.
75239         * tests/test-iconv.c: Likewise.
75240         * tests/test-idpriv-drop.c: Likewise.
75241         * tests/test-idpriv-droptemp.c: Likewise.
75242         * tests/test-inet_ntop.c: Likewise.
75243         * tests/test-inet_pton.c: Likewise.
75244         * tests/test-isblank.c: Likewise.
75245         * tests/test-isfinite.c: Likewise.
75246         * tests/test-isinf.c: Likewise.
75247         * tests/test-isnan.c: Likewise.
75248         * tests/test-isnand.h: Likewise.
75249         * tests/test-isnanf.h: Likewise.
75250         * tests/test-isnanl.h: Likewise.
75251         * tests/test-lchown.c: Likewise.
75252         * tests/test-ldexpl.c: Likewise.
75253         * tests/test-link.c: Likewise.
75254         * tests/test-linkat.c: Likewise.
75255         * tests/test-linked_list.c: Likewise.
75256         * tests/test-linkedhash_list.c: Likewise.
75257         * tests/test-localename.c: Likewise.
75258         * tests/test-lseek.c: Likewise.
75259         * tests/test-lstat.c: Likewise.
75260         * tests/test-mbmemcasecmp.c: Likewise.
75261         * tests/test-mbmemcasecoll.c: Likewise.
75262         * tests/test-mbrtowc.c: Likewise.
75263         * tests/test-mbscasecmp.c: Likewise.
75264         * tests/test-mbscasestr1.c: Likewise.
75265         * tests/test-mbscasestr2.c: Likewise.
75266         * tests/test-mbscasestr3.c: Likewise.
75267         * tests/test-mbscasestr4.c: Likewise.
75268         * tests/test-mbschr.c: Likewise.
75269         * tests/test-mbscspn.c: Likewise.
75270         * tests/test-mbsinit.c: Likewise.
75271         * tests/test-mbsncasecmp.c: Likewise.
75272         * tests/test-mbsnrtowcs.c: Likewise.
75273         * tests/test-mbspbrk.c: Likewise.
75274         * tests/test-mbspcasecmp.c: Likewise.
75275         * tests/test-mbsrchr.c: Likewise.
75276         * tests/test-mbsrtowcs.c: Likewise.
75277         * tests/test-mbsspn.c: Likewise.
75278         * tests/test-mbsstr1.c: Likewise.
75279         * tests/test-mbsstr2.c: Likewise.
75280         * tests/test-mbsstr3.c: Likewise.
75281         * tests/test-memchr.c: Likewise.
75282         * tests/test-memchr2.c: Likewise.
75283         * tests/test-memcmp.c: Likewise.
75284         * tests/test-memmem.c: Likewise.
75285         * tests/test-memrchr.c: Likewise.
75286         * tests/test-mkdir.c: Likewise.
75287         * tests/test-mkdirat.c: Likewise.
75288         * tests/test-mkfifo.c: Likewise.
75289         * tests/test-mkfifoat.c: Likewise.
75290         * tests/test-mknod.c: Likewise.
75291         * tests/test-nanosleep.c: Likewise.
75292         * tests/test-nl_langinfo.c: Likewise.
75293         * tests/test-obstack-printf.c: Likewise.
75294         * tests/test-open.c: Likewise.
75295         * tests/test-openat.c: Likewise.
75296         * tests/test-pipe-filter-gi1.c: Likewise.
75297         * tests/test-pipe-filter-gi2-main.c: Likewise.
75298         * tests/test-pipe-filter-ii1.c: Likewise.
75299         * tests/test-pipe-filter-ii2-main.c: Likewise.
75300         * tests/test-pipe2.c: Likewise.
75301         * tests/test-popen.h: Likewise.
75302         * tests/test-posixtm.c: Likewise.
75303         * tests/test-pread.c: Likewise.
75304         * tests/test-printf-frexp.c: Likewise.
75305         * tests/test-printf-frexpl.c: Likewise.
75306         * tests/test-printf-posix.c: Likewise.
75307         * tests/test-priv-set.c: Likewise.
75308         * tests/test-quotearg.c: Likewise.
75309         * tests/test-random_r.c: Likewise.
75310         * tests/test-rawmemchr.c: Likewise.
75311         * tests/test-rbtree_list.c: Likewise.
75312         * tests/test-rbtree_oset.c: Likewise.
75313         * tests/test-rbtreehash_list.c: Likewise.
75314         * tests/test-readlink.c: Likewise.
75315         * tests/test-remove.c: Likewise.
75316         * tests/test-rename.c: Likewise.
75317         * tests/test-renameat.c: Likewise.
75318         * tests/test-rmdir.c: Likewise.
75319         * tests/test-round1.c: Likewise.
75320         * tests/test-roundf1.c: Likewise.
75321         * tests/test-roundl.c: Likewise.
75322         * tests/test-safe-alloc.c: Likewise.
75323         * tests/test-sameacls.c: Likewise.
75324         * tests/test-set-mode-acl.c: Likewise.
75325         * tests/test-setenv.c: Likewise.
75326         * tests/test-sigaction.c: Likewise.
75327         * tests/test-signbit.c: Likewise.
75328         * tests/test-sleep.c: Likewise.
75329         * tests/test-snprintf-posix.c: Likewise.
75330         * tests/test-snprintf.c: Likewise.
75331         * tests/test-sprintf-posix.c: Likewise.
75332         * tests/test-stat-time.c: Likewise.
75333         * tests/test-stat.c: Likewise.
75334         * tests/test-strcasestr.c: Likewise.
75335         * tests/test-strchrnul.c: Likewise.
75336         * tests/test-strerror.c: Likewise.
75337         * tests/test-striconv.c: Likewise.
75338         * tests/test-striconveh.c: Likewise.
75339         * tests/test-striconveha.c: Likewise.
75340         * tests/test-strsignal.c: Likewise.
75341         * tests/test-strstr.c: Likewise.
75342         * tests/test-strtod.c: Likewise.
75343         * tests/test-strverscmp.c: Likewise.
75344         * tests/test-symlink.c: Likewise.
75345         * tests/test-symlinkat.c: Likewise.
75346         * tests/test-trunc1.c: Likewise.
75347         * tests/test-trunc2.c: Likewise.
75348         * tests/test-truncf1.c: Likewise.
75349         * tests/test-truncf2.c: Likewise.
75350         * tests/test-truncl.c: Likewise.
75351         * tests/test-uname.c: Likewise.
75352         * tests/test-unlink.c: Likewise.
75353         * tests/test-unlinkat.c: Likewise.
75354         * tests/test-unsetenv.c: Likewise.
75355         * tests/test-usleep.c: Likewise.
75356         * tests/test-utimens.c: Likewise.
75357         * tests/test-utimensat.c: Likewise.
75358         * tests/test-vasnprintf-posix.c: Likewise.
75359         * tests/test-vasnprintf-posix2.c: Likewise.
75360         * tests/test-vasnprintf.c: Likewise.
75361         * tests/test-vasprintf-posix.c: Likewise.
75362         * tests/test-vasprintf.c: Likewise.
75363         * tests/test-vdprintf-posix.c: Likewise.
75364         * tests/test-vfprintf-posix.c: Likewise.
75365         * tests/test-vprintf-posix.c: Likewise.
75366         * tests/test-vsnprintf-posix.c: Likewise.
75367         * tests/test-vsnprintf.c: Likewise.
75368         * tests/test-vsprintf-posix.c: Likewise.
75369         * tests/test-wcrtomb.c: Likewise.
75370         * tests/test-wcsnrtombs.c: Likewise.
75371         * tests/test-wcsrtombs.c: Likewise.
75372         * tests/test-wctype.c: Likewise.
75373         * tests/test-wcwidth.c: Likewise.
75374         * tests/test-xfprintf-posix.c: Likewise.
75375         * tests/test-xmemdup0.c: Likewise.
75376         * tests/test-xprintf-posix.c: Likewise.
75377         * tests/test-xvasprintf.c: Likewise.
75378         * tests/unicase/test-locale-language.c: Likewise.
75379         * tests/unicase/test-mapping-part1.h: Likewise.
75380         * tests/unicase/test-predicate-part1.h: Likewise.
75381         * tests/unicase/test-u8-casecmp.c: Likewise.
75382         * tests/unicase/test-u8-casecoll.c: Likewise.
75383         * tests/unicase/test-u8-casefold.c: Likewise.
75384         * tests/unicase/test-u8-is-cased.c: Likewise.
75385         * tests/unicase/test-u8-is-casefolded.c: Likewise.
75386         * tests/unicase/test-u8-is-lowercase.c: Likewise.
75387         * tests/unicase/test-u8-is-titlecase.c: Likewise.
75388         * tests/unicase/test-u8-is-uppercase.c: Likewise.
75389         * tests/unicase/test-u8-tolower.c: Likewise.
75390         * tests/unicase/test-u8-totitle.c: Likewise.
75391         * tests/unicase/test-u8-toupper.c: Likewise.
75392         * tests/unicase/test-u16-casecmp.c: Likewise.
75393         * tests/unicase/test-u16-casecoll.c: Likewise.
75394         * tests/unicase/test-u16-casefold.c: Likewise.
75395         * tests/unicase/test-u16-is-cased.c: Likewise.
75396         * tests/unicase/test-u16-is-casefolded.c: Likewise.
75397         * tests/unicase/test-u16-is-lowercase.c: Likewise.
75398         * tests/unicase/test-u16-is-titlecase.c: Likewise.
75399         * tests/unicase/test-u16-is-uppercase.c: Likewise.
75400         * tests/unicase/test-u16-tolower.c: Likewise.
75401         * tests/unicase/test-u16-totitle.c: Likewise.
75402         * tests/unicase/test-u16-toupper.c: Likewise.
75403         * tests/unicase/test-u32-casecmp.c: Likewise.
75404         * tests/unicase/test-u32-casecoll.c: Likewise.
75405         * tests/unicase/test-u32-casefold.c: Likewise.
75406         * tests/unicase/test-u32-is-cased.c: Likewise.
75407         * tests/unicase/test-u32-is-casefolded.c: Likewise.
75408         * tests/unicase/test-u32-is-lowercase.c: Likewise.
75409         * tests/unicase/test-u32-is-titlecase.c: Likewise.
75410         * tests/unicase/test-u32-is-uppercase.c: Likewise.
75411         * tests/unicase/test-u32-tolower.c: Likewise.
75412         * tests/unicase/test-u32-totitle.c: Likewise.
75413         * tests/unicase/test-u32-toupper.c: Likewise.
75414         * tests/unicase/test-ulc-casecmp.c: Likewise.
75415         * tests/unicase/test-ulc-casecoll.c: Likewise.
75416         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
75417         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
75418         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
75419         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
75420         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
75421         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
75422         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
75423         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
75424         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
75425         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
75426         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
75427         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
75428         * tests/unictype/test-bidi_byname.c: Likewise.
75429         * tests/unictype/test-bidi_name.c: Likewise.
75430         * tests/unictype/test-bidi_of.c: Likewise.
75431         * tests/unictype/test-bidi_test.c: Likewise.
75432         * tests/unictype/test-block_list.c: Likewise.
75433         * tests/unictype/test-block_of.c: Likewise.
75434         * tests/unictype/test-block_test.c: Likewise.
75435         * tests/unictype/test-categ_and.c: Likewise.
75436         * tests/unictype/test-categ_and_not.c: Likewise.
75437         * tests/unictype/test-categ_byname.c: Likewise.
75438         * tests/unictype/test-categ_name.c: Likewise.
75439         * tests/unictype/test-categ_none.c: Likewise.
75440         * tests/unictype/test-categ_of.c: Likewise.
75441         * tests/unictype/test-categ_or.c: Likewise.
75442         * tests/unictype/test-categ_test_withtable.c: Likewise.
75443         * tests/unictype/test-combining.c: Likewise.
75444         * tests/unictype/test-decdigit.c: Likewise.
75445         * tests/unictype/test-digit.c: Likewise.
75446         * tests/unictype/test-mirror.c: Likewise.
75447         * tests/unictype/test-numeric.c: Likewise.
75448         * tests/unictype/test-pr_byname.c: Likewise.
75449         * tests/unictype/test-pr_test.c: Likewise.
75450         * tests/unictype/test-predicate-part1.h: Likewise.
75451         * tests/unictype/test-scripts.c: Likewise.
75452         * tests/unictype/test-sy_c_ident.c: Likewise.
75453         * tests/unictype/test-sy_java_ident.c: Likewise.
75454         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
75455         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
75456         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
75457         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
75458         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
75459         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
75460         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
75461         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
75462         * tests/uninorm/test-canonical-decomposition.c: Likewise.
75463         * tests/uninorm/test-compat-decomposition.c: Likewise.
75464         * tests/uninorm/test-composition.c: Likewise.
75465         * tests/uninorm/test-decomposing-form.c: Likewise.
75466         * tests/uninorm/test-decomposition.c: Likewise.
75467         * tests/uninorm/test-u8-nfc.c: Likewise.
75468         * tests/uninorm/test-u8-nfd.c: Likewise.
75469         * tests/uninorm/test-u8-nfkc.c: Likewise.
75470         * tests/uninorm/test-u8-nfkd.c: Likewise.
75471         * tests/uninorm/test-u8-normcmp.c: Likewise.
75472         * tests/uninorm/test-u8-normcoll.c: Likewise.
75473         * tests/uninorm/test-u16-nfc.c: Likewise.
75474         * tests/uninorm/test-u16-nfd.c: Likewise.
75475         * tests/uninorm/test-u16-nfkc.c: Likewise.
75476         * tests/uninorm/test-u16-nfkd.c: Likewise.
75477         * tests/uninorm/test-u16-normcmp.c: Likewise.
75478         * tests/uninorm/test-u16-normcoll.c: Likewise.
75479         * tests/uninorm/test-u32-nfc.c: Likewise.
75480         * tests/uninorm/test-u32-nfd.c: Likewise.
75481         * tests/uninorm/test-u32-nfkc.c: Likewise.
75482         * tests/uninorm/test-u32-nfkd.c: Likewise.
75483         * tests/uninorm/test-u32-normalize-big.c: Likewise.
75484         * tests/uninorm/test-u32-normcmp.c: Likewise.
75485         * tests/uninorm/test-u32-normcoll.c: Likewise.
75486         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
75487         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
75488         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
75489         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
75490         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
75491         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
75492         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
75493         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
75494         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
75495         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
75496         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
75497         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
75498         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
75499         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
75500         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
75501         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
75502         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
75503         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
75504         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
75505         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
75506         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
75507         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
75508         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
75509         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
75510         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
75511         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
75512         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
75513         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
75514         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
75515         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
75516         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
75517         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
75518         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
75519         * tests/uniwidth/test-u8-strwidth.c: Likewise.
75520         * tests/uniwidth/test-u8-width.c: Likewise.
75521         * tests/uniwidth/test-u16-strwidth.c: Likewise.
75522         * tests/uniwidth/test-u16-width.c: Likewise.
75523         * tests/uniwidth/test-u32-strwidth.c: Likewise.
75524         * tests/uniwidth/test-u32-width.c: Likewise.
75525         * tests/uniwidth/test-uc_width.c: Likewise.
75526         * tests/uniwidth/test-uc_width2.c: Likewise.
75527         * modules/acl-tests (Files): Add tests/macros.h.
75528         * modules/areadlink-tests (Files): Likewise.
75529         * modules/areadlink-with-size-tests (Files): Likewise.
75530         * modules/areadlinkat-tests (Files): Likewise.
75531         * modules/areadlinkat-with-size-tests (Files): Likewise.
75532         * modules/argmatch-tests (Files): Likewise.
75533         * modules/argv-iter-tests (Files): Likewise.
75534         * modules/array-list-tests (Files): Likewise.
75535         * modules/array-mergesort-tests (Files): Likewise.
75536         * modules/array-oset-tests (Files): Likewise.
75537         * modules/avltree-list-tests (Files): Likewise.
75538         * modules/avltree-oset-tests (Files): Likewise.
75539         * modules/avltreehash-list-tests (Files): Likewise.
75540         * modules/base64-tests (Files): Likewise.
75541         * modules/binary-io-tests (Files): Likewise.
75542         * modules/bitrotate-tests (Files): Likewise.
75543         * modules/btowc-tests (Files): Likewise.
75544         * modules/byteswap-tests (Files): Likewise.
75545         * modules/c-ctype-tests (Files): Likewise.
75546         * modules/c-stack-tests (Files): Likewise.
75547         * modules/c-strcase-tests (Files): Likewise.
75548         * modules/c-strcasestr-tests (Files): Likewise.
75549         * modules/c-strstr-tests (Files): Likewise.
75550         * modules/canonicalize-lgpl-tests (Files): Likewise.
75551         * modules/canonicalize-tests (Files): Likewise.
75552         * modules/carray-list-tests (Files): Likewise.
75553         * modules/ceilf-tests (Files): Likewise.
75554         * modules/ceill-tests (Files): Likewise.
75555         * modules/chown-tests (Files): Likewise.
75556         * modules/cloexec-tests (Files): Likewise.
75557         * modules/copy-file-tests (Files): Likewise.
75558         * modules/count-one-bits-tests (Files): Likewise.
75559         * modules/dprintf-posix-tests (Files): Likewise.
75560         * modules/dup2-tests (Files): Likewise.
75561         * modules/dup3-tests (Files): Likewise.
75562         * modules/duplocale-tests (Files): Likewise.
75563         * modules/fbufmode-tests (Files): Likewise.
75564         * modules/fchdir-tests (Files): Likewise.
75565         * modules/fcntl-safer-tests (Files): Likewise.
75566         * modules/fcntl-tests (Files): Likewise.
75567         * modules/fdopendir-tests (Files): Likewise.
75568         * modules/fdutimensat-tests (Files): Likewise.
75569         * modules/fflush-tests (Files): Likewise.
75570         * modules/filevercmp-tests (Files): Likewise.
75571         * modules/flock-tests (Files): Likewise.
75572         * modules/floorf-tests (Files): Likewise.
75573         * modules/floorl-tests (Files): Likewise.
75574         * modules/fnmatch-tests (Files): Likewise.
75575         * modules/fopen-safer-tests (Files): Likewise.
75576         * modules/fopen-tests (Files): Likewise.
75577         * modules/fpending-tests (Files): Likewise.
75578         * modules/fprintf-posix-tests (Files): Likewise.
75579         * modules/fpurge-tests (Files): Likewise.
75580         * modules/freadable-tests (Files): Likewise.
75581         * modules/freadahead-tests (Files): Likewise.
75582         * modules/freading-tests (Files): Likewise.
75583         * modules/freadptr-tests (Files): Likewise.
75584         * modules/freadseek-tests (Files): Likewise.
75585         * modules/freopen-tests (Files): Likewise.
75586         * modules/frexp-nolibm-tests (Files): Likewise.
75587         * modules/frexp-tests (Files): Likewise.
75588         * modules/frexpl-nolibm-tests (Files): Likewise.
75589         * modules/frexpl-tests (Files): Likewise.
75590         * modules/fseek-tests (Files): Likewise.
75591         * modules/fseeko-tests (Files): Likewise.
75592         * modules/fstrcmp-tests (Files): Likewise.
75593         * modules/fsync-tests (Files): Likewise.
75594         * modules/ftell-tests (Files): Likewise.
75595         * modules/ftello-tests (Files): Likewise.
75596         * modules/func-tests (Files): Likewise.
75597         * modules/futimens-tests (Files): Likewise.
75598         * modules/fwritable-tests (Files): Likewise.
75599         * modules/fwriting-tests (Files): Likewise.
75600         * modules/getcwd-tests (Files): Likewise.
75601         * modules/getdate-tests (Files): Likewise.
75602         * modules/getdelim-tests (Files): Likewise.
75603         * modules/getdtablesize-tests (Files): Likewise.
75604         * modules/getgroups-tests (Files): Likewise.
75605         * modules/getline-tests (Files): Likewise.
75606         * modules/getndelim2-tests (Files): Likewise.
75607         * modules/glob-tests (Files): Likewise.
75608         * modules/hash-tests (Files): Likewise.
75609         * modules/i-ring-tests (Files): Likewise.
75610         * modules/iconv-tests (Files): Likewise.
75611         * modules/iconv_open-utf-tests (Files): Likewise.
75612         * modules/idpriv-drop-tests (Files): Likewise.
75613         * modules/idpriv-droptemp-tests (Files): Likewise.
75614         * modules/inet_ntop-tests (Files): Likewise.
75615         * modules/inet_pton-tests (Files): Likewise.
75616         * modules/isblank-tests (Files): Likewise.
75617         * modules/isfinite-tests (Files): Likewise.
75618         * modules/isinf-tests (Files): Likewise.
75619         * modules/isnan-tests (Files): Likewise.
75620         * modules/isnand-nolibm-tests (Files): Likewise.
75621         * modules/isnand-tests (Files): Likewise.
75622         * modules/isnanf-nolibm-tests (Files): Likewise.
75623         * modules/isnanf-tests (Files): Likewise.
75624         * modules/isnanl-nolibm-tests (Files): Likewise.
75625         * modules/isnanl-tests (Files): Likewise.
75626         * modules/lchown-tests (Files): Likewise.
75627         * modules/ldexpl-tests (Files): Likewise.
75628         * modules/link-tests (Files): Likewise.
75629         * modules/linkat-tests (Files): Likewise.
75630         * modules/linked-list-tests (Files): Likewise.
75631         * modules/linkedhash-list-tests (Files): Likewise.
75632         * modules/localename-tests (Files): Likewise.
75633         * modules/lseek-tests (Files): Likewise.
75634         * modules/lstat-tests (Files): Likewise.
75635         * modules/mbmemcasecmp-tests (Files): Likewise.
75636         * modules/mbmemcasecoll-tests (Files): Likewise.
75637         * modules/mbrtowc-tests (Files): Likewise.
75638         * modules/mbscasecmp-tests (Files): Likewise.
75639         * modules/mbscasestr-tests (Files): Likewise.
75640         * modules/mbschr-tests (Files): Likewise.
75641         * modules/mbscspn-tests (Files): Likewise.
75642         * modules/mbsinit-tests (Files): Likewise.
75643         * modules/mbsncasecmp-tests (Files): Likewise.
75644         * modules/mbsnrtowcs-tests (Files): Likewise.
75645         * modules/mbspbrk-tests (Files): Likewise.
75646         * modules/mbspcasecmp-tests (Files): Likewise.
75647         * modules/mbsrchr-tests (Files): Likewise.
75648         * modules/mbsrtowcs-tests (Files): Likewise.
75649         * modules/mbsspn-tests (Files): Likewise.
75650         * modules/mbsstr-tests (Files): Likewise.
75651         * modules/memchr-tests (Files): Likewise.
75652         * modules/memchr2-tests (Files): Likewise.
75653         * modules/memcmp-tests (Files): Likewise.
75654         * modules/memmem-tests (Files): Likewise.
75655         * modules/memrchr-tests (Files): Likewise.
75656         * modules/mkdir-tests (Files): Likewise.
75657         * modules/mkfifo-tests (Files): Likewise.
75658         * modules/mkfifoat-tests (Files): Likewise.
75659         * modules/mknod-tests (Files): Likewise.
75660         * modules/nanosleep-tests (Files): Likewise.
75661         * modules/nl_langinfo-tests (Files): Likewise.
75662         * modules/obstack-printf-tests (Files): Likewise.
75663         * modules/open-tests (Files): Likewise.
75664         * modules/openat-tests (Files): Likewise.
75665         * modules/pipe-filter-gi-tests (Files): Likewise.
75666         * modules/pipe-filter-ii-tests (Files): Likewise.
75667         * modules/pipe2-tests (Files): Likewise.
75668         * modules/popen-safer-tests (Files): Likewise.
75669         * modules/popen-tests (Files): Likewise.
75670         * modules/posixtm-tests (Files): Likewise.
75671         * modules/pread-tests (Files): Likewise.
75672         * modules/printf-frexp-tests (Files): Likewise.
75673         * modules/printf-frexpl-tests (Files): Likewise.
75674         * modules/printf-posix-tests (Files): Likewise.
75675         * modules/priv-set-tests (Files): Likewise.
75676         * modules/quotearg-tests (Files): Likewise.
75677         * modules/random_r-tests (Files): Likewise.
75678         * modules/rawmemchr-tests (Files): Likewise.
75679         * modules/rbtree-list-tests (Files): Likewise.
75680         * modules/rbtree-oset-tests (Files): Likewise.
75681         * modules/rbtreehash-list-tests (Files): Likewise.
75682         * modules/readlink-tests (Files): Likewise.
75683         * modules/remove-tests (Files): Likewise.
75684         * modules/rename-tests (Files): Likewise.
75685         * modules/renameat-tests (Files): Likewise.
75686         * modules/rmdir-tests (Files): Likewise.
75687         * modules/round-tests (Files): Likewise.
75688         * modules/roundf-tests (Files): Likewise.
75689         * modules/roundl-tests (Files): Likewise.
75690         * modules/safe-alloc-tests (Files): Likewise.
75691         * modules/setenv-tests (Files): Likewise.
75692         * modules/sigaction-tests (Files): Likewise.
75693         * modules/signbit-tests (Files): Likewise.
75694         * modules/sleep-tests (Files): Likewise.
75695         * modules/snprintf-posix-tests (Files): Likewise.
75696         * modules/snprintf-tests (Files): Likewise.
75697         * modules/sprintf-posix-tests (Files): Likewise.
75698         * modules/stat-tests (Files): Likewise.
75699         * modules/stat-time-tests (Files): Likewise.
75700         * modules/strcasestr-tests (Files): Likewise.
75701         * modules/strchrnul-tests (Files): Likewise.
75702         * modules/strerror-tests (Files): Likewise.
75703         * modules/striconv-tests (Files): Likewise.
75704         * modules/striconveh-tests (Files): Likewise.
75705         * modules/striconveha-tests (Files): Likewise.
75706         * modules/strsignal-tests (Files): Likewise.
75707         * modules/strstr-tests (Files): Likewise.
75708         * modules/strtod-tests (Files): Likewise.
75709         * modules/strverscmp-tests (Files): Likewise.
75710         * modules/symlink-tests (Files): Likewise.
75711         * modules/symlinkat-tests (Files): Likewise.
75712         * modules/trunc-tests (Files): Likewise.
75713         * modules/truncf-tests (Files): Likewise.
75714         * modules/truncl-tests (Files): Likewise.
75715         * modules/uname-tests (Files): Likewise.
75716         * modules/unicase/cased-tests (Files): Likewise.
75717         * modules/unicase/ignorable-tests (Files): Likewise.
75718         * modules/unicase/locale-language-tests (Files): Likewise.
75719         * modules/unicase/tolower-tests (Files): Likewise.
75720         * modules/unicase/totitle-tests (Files): Likewise.
75721         * modules/unicase/toupper-tests (Files): Likewise.
75722         * modules/unicase/u8-casecmp-tests (Files): Likewise.
75723         * modules/unicase/u8-casecoll-tests (Files): Likewise.
75724         * modules/unicase/u8-casefold-tests (Files): Likewise.
75725         * modules/unicase/u8-is-cased-tests (Files): Likewise.
75726         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
75727         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
75728         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
75729         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
75730         * modules/unicase/u8-tolower-tests (Files): Likewise.
75731         * modules/unicase/u8-totitle-tests (Files): Likewise.
75732         * modules/unicase/u8-toupper-tests (Files): Likewise.
75733         * modules/unicase/u16-casecmp-tests (Files): Likewise.
75734         * modules/unicase/u16-casecoll-tests (Files): Likewise.
75735         * modules/unicase/u16-casefold-tests (Files): Likewise.
75736         * modules/unicase/u16-is-cased-tests (Files): Likewise.
75737         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
75738         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
75739         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
75740         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
75741         * modules/unicase/u16-tolower-tests (Files): Likewise.
75742         * modules/unicase/u16-totitle-tests (Files): Likewise.
75743         * modules/unicase/u16-toupper-tests (Files): Likewise.
75744         * modules/unicase/u32-casecmp-tests (Files): Likewise.
75745         * modules/unicase/u32-casecoll-tests (Files): Likewise.
75746         * modules/unicase/u32-casefold-tests (Files): Likewise.
75747         * modules/unicase/u32-is-cased-tests (Files): Likewise.
75748         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
75749         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
75750         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
75751         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
75752         * modules/unicase/u32-tolower-tests (Files): Likewise.
75753         * modules/unicase/u32-totitle-tests (Files): Likewise.
75754         * modules/unicase/u32-toupper-tests (Files): Likewise.
75755         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
75756         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
75757         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
75758         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
75759         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
75760         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
75761         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
75762         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
75763         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
75764         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
75765         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
75766         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
75767         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
75768         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
75769         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
75770         * modules/unictype/bidicategory-name-tests (Files): Likewise.
75771         * modules/unictype/bidicategory-of-tests (Files): Likewise.
75772         * modules/unictype/bidicategory-test-tests (Files): Likewise.
75773         * modules/unictype/block-list-tests (Files): Likewise.
75774         * modules/unictype/block-of-tests (Files): Likewise.
75775         * modules/unictype/block-test-tests (Files): Likewise.
75776         * modules/unictype/category-C-tests (Files): Likewise.
75777         * modules/unictype/category-Cc-tests (Files): Likewise.
75778         * modules/unictype/category-Cf-tests (Files): Likewise.
75779         * modules/unictype/category-Cn-tests (Files): Likewise.
75780         * modules/unictype/category-Co-tests (Files): Likewise.
75781         * modules/unictype/category-Cs-tests (Files): Likewise.
75782         * modules/unictype/category-L-tests (Files): Likewise.
75783         * modules/unictype/category-Ll-tests (Files): Likewise.
75784         * modules/unictype/category-Lm-tests (Files): Likewise.
75785         * modules/unictype/category-Lo-tests (Files): Likewise.
75786         * modules/unictype/category-Lt-tests (Files): Likewise.
75787         * modules/unictype/category-Lu-tests (Files): Likewise.
75788         * modules/unictype/category-M-tests (Files): Likewise.
75789         * modules/unictype/category-Mc-tests (Files): Likewise.
75790         * modules/unictype/category-Me-tests (Files): Likewise.
75791         * modules/unictype/category-Mn-tests (Files): Likewise.
75792         * modules/unictype/category-N-tests (Files): Likewise.
75793         * modules/unictype/category-Nd-tests (Files): Likewise.
75794         * modules/unictype/category-Nl-tests (Files): Likewise.
75795         * modules/unictype/category-No-tests (Files): Likewise.
75796         * modules/unictype/category-P-tests (Files): Likewise.
75797         * modules/unictype/category-Pc-tests (Files): Likewise.
75798         * modules/unictype/category-Pd-tests (Files): Likewise.
75799         * modules/unictype/category-Pe-tests (Files): Likewise.
75800         * modules/unictype/category-Pf-tests (Files): Likewise.
75801         * modules/unictype/category-Pi-tests (Files): Likewise.
75802         * modules/unictype/category-Po-tests (Files): Likewise.
75803         * modules/unictype/category-Ps-tests (Files): Likewise.
75804         * modules/unictype/category-S-tests (Files): Likewise.
75805         * modules/unictype/category-Sc-tests (Files): Likewise.
75806         * modules/unictype/category-Sk-tests (Files): Likewise.
75807         * modules/unictype/category-Sm-tests (Files): Likewise.
75808         * modules/unictype/category-So-tests (Files): Likewise.
75809         * modules/unictype/category-Z-tests (Files): Likewise.
75810         * modules/unictype/category-Zl-tests (Files): Likewise.
75811         * modules/unictype/category-Zp-tests (Files): Likewise.
75812         * modules/unictype/category-Zs-tests (Files): Likewise.
75813         * modules/unictype/category-and-not-tests (Files): Likewise.
75814         * modules/unictype/category-and-tests (Files): Likewise.
75815         * modules/unictype/category-byname-tests (Files): Likewise.
75816         * modules/unictype/category-name-tests (Files): Likewise.
75817         * modules/unictype/category-none-tests (Files): Likewise.
75818         * modules/unictype/category-of-tests (Files): Likewise.
75819         * modules/unictype/category-or-tests (Files): Likewise.
75820         * modules/unictype/category-test-withtable-tests (Files): Likewise.
75821         * modules/unictype/combining-class-tests (Files): Likewise.
75822         * modules/unictype/ctype-alnum-tests (Files): Likewise.
75823         * modules/unictype/ctype-alpha-tests (Files): Likewise.
75824         * modules/unictype/ctype-blank-tests (Files): Likewise.
75825         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
75826         * modules/unictype/ctype-digit-tests (Files): Likewise.
75827         * modules/unictype/ctype-graph-tests (Files): Likewise.
75828         * modules/unictype/ctype-lower-tests (Files): Likewise.
75829         * modules/unictype/ctype-print-tests (Files): Likewise.
75830         * modules/unictype/ctype-punct-tests (Files): Likewise.
75831         * modules/unictype/ctype-space-tests (Files): Likewise.
75832         * modules/unictype/ctype-upper-tests (Files): Likewise.
75833         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
75834         * modules/unictype/decimal-digit-tests (Files): Likewise.
75835         * modules/unictype/digit-tests (Files): Likewise.
75836         * modules/unictype/mirror-tests (Files): Likewise.
75837         * modules/unictype/numeric-tests (Files): Likewise.
75838         * modules/unictype/property-alphabetic-tests (Files): Likewise.
75839         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
75840         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
75841         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
75842         Likewise.
75843         * modules/unictype/property-bidi-block-separator-tests (Files):
75844         Likewise.
75845         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
75846         Likewise.
75847         * modules/unictype/property-bidi-common-separator-tests (Files):
75848         Likewise.
75849         * modules/unictype/property-bidi-control-tests (Files): Likewise.
75850         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
75851         Likewise.
75852         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
75853         Likewise.
75854         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
75855         Likewise.
75856         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
75857         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
75858         Likewise.
75859         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
75860         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
75861         Likewise.
75862         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
75863         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
75864         * modules/unictype/property-bidi-segment-separator-tests (Files):
75865         Likewise.
75866         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
75867         * modules/unictype/property-byname-tests (Files): Likewise.
75868         * modules/unictype/property-combining-tests (Files): Likewise.
75869         * modules/unictype/property-composite-tests (Files): Likewise.
75870         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
75871         * modules/unictype/property-dash-tests (Files): Likewise.
75872         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
75873         * modules/unictype/property-default-ignorable-code-point-tests (Files):
75874         Likewise.
75875         * modules/unictype/property-deprecated-tests (Files): Likewise.
75876         * modules/unictype/property-diacritic-tests (Files): Likewise.
75877         * modules/unictype/property-extender-tests (Files): Likewise.
75878         * modules/unictype/property-format-control-tests (Files): Likewise.
75879         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
75880         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
75881         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
75882         * modules/unictype/property-hex-digit-tests (Files): Likewise.
75883         * modules/unictype/property-hyphen-tests (Files): Likewise.
75884         * modules/unictype/property-id-continue-tests (Files): Likewise.
75885         * modules/unictype/property-id-start-tests (Files): Likewise.
75886         * modules/unictype/property-ideographic-tests (Files): Likewise.
75887         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
75888         * modules/unictype/property-ids-trinary-operator-tests (Files):
75889         Likewise.
75890         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
75891         * modules/unictype/property-iso-control-tests (Files): Likewise.
75892         * modules/unictype/property-join-control-tests (Files): Likewise.
75893         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
75894         * modules/unictype/property-line-separator-tests (Files): Likewise.
75895         * modules/unictype/property-logical-order-exception-tests (Files):
75896         Likewise.
75897         * modules/unictype/property-lowercase-tests (Files): Likewise.
75898         * modules/unictype/property-math-tests (Files): Likewise.
75899         * modules/unictype/property-non-break-tests (Files): Likewise.
75900         * modules/unictype/property-not-a-character-tests (Files): Likewise.
75901         * modules/unictype/property-numeric-tests (Files): Likewise.
75902         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
75903         * modules/unictype/property-other-default-ignorable-code-point-tests
75904         (Files): Likewise.
75905         * modules/unictype/property-other-grapheme-extend-tests (Files):
75906         Likewise.
75907         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
75908         * modules/unictype/property-other-id-start-tests (Files): Likewise.
75909         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
75910         * modules/unictype/property-other-math-tests (Files): Likewise.
75911         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
75912         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
75913         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
75914         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
75915         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
75916         * modules/unictype/property-private-use-tests (Files): Likewise.
75917         * modules/unictype/property-punctuation-tests (Files): Likewise.
75918         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
75919         * modules/unictype/property-radical-tests (Files): Likewise.
75920         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
75921         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
75922         * modules/unictype/property-space-tests (Files): Likewise.
75923         * modules/unictype/property-terminal-punctuation-tests (Files):
75924         Likewise.
75925         * modules/unictype/property-test-tests (Files): Likewise.
75926         * modules/unictype/property-titlecase-tests (Files): Likewise.
75927         * modules/unictype/property-unassigned-code-value-tests (Files):
75928         Likewise.
75929         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
75930         * modules/unictype/property-uppercase-tests (Files): Likewise.
75931         * modules/unictype/property-variation-selector-tests (Files): Likewise.
75932         * modules/unictype/property-white-space-tests (Files): Likewise.
75933         * modules/unictype/property-xid-continue-tests (Files): Likewise.
75934         * modules/unictype/property-xid-start-tests (Files): Likewise.
75935         * modules/unictype/property-zero-width-tests (Files): Likewise.
75936         * modules/unictype/scripts-tests (Files): Likewise.
75937         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
75938         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
75939         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
75940         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
75941         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
75942         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
75943         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
75944         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
75945         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
75946         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
75947         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
75948         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
75949         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
75950         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
75951         * modules/uninorm/composition-tests (Files): Likewise.
75952         * modules/uninorm/decomposing-form-tests (Files): Likewise.
75953         * modules/uninorm/decomposition-tests (Files): Likewise.
75954         * modules/uninorm/filter-tests (Files): Likewise.
75955         * modules/uninorm/nfc-tests (Files): Likewise.
75956         * modules/uninorm/nfd-tests (Files): Likewise.
75957         * modules/uninorm/nfkc-tests (Files): Likewise.
75958         * modules/uninorm/nfkd-tests (Files): Likewise.
75959         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
75960         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
75961         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
75962         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
75963         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
75964         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
75965         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
75966         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
75967         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
75968         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
75969         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
75970         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
75971         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
75972         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
75973         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
75974         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
75975         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
75976         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
75977         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
75978         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
75979         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
75980         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
75981         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
75982         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
75983         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
75984         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
75985         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
75986         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
75987         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
75988         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
75989         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
75990         * modules/uniwidth/u8-width-tests (Files): Likewise.
75991         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
75992         * modules/uniwidth/u16-width-tests (Files): Likewise.
75993         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
75994         * modules/uniwidth/u32-width-tests (Files): Likewise.
75995         * modules/uniwidth/width-tests (Files): Likewise.
75996         * modules/unlink-tests (Files): Likewise.
75997         * modules/unsetenv-tests (Files): Likewise.
75998         * modules/usleep-tests (Files): Likewise.
75999         * modules/utimens-tests (Files): Likewise.
76000         * modules/utimensat-tests (Files): Likewise.
76001         * modules/vasnprintf-posix-tests (Files): Likewise.
76002         * modules/vasnprintf-tests (Files): Likewise.
76003         * modules/vasprintf-posix-tests (Files): Likewise.
76004         * modules/vasprintf-tests (Files): Likewise.
76005         * modules/vdprintf-posix-tests (Files): Likewise.
76006         * modules/vfprintf-posix-tests (Files): Likewise.
76007         * modules/vprintf-posix-tests (Files): Likewise.
76008         * modules/vsnprintf-posix-tests (Files): Likewise.
76009         * modules/vsnprintf-tests (Files): Likewise.
76010         * modules/vsprintf-posix-tests (Files): Likewise.
76011         * modules/wcrtomb-tests (Files): Likewise.
76012         * modules/wcsnrtombs-tests (Files): Likewise.
76013         * modules/wcsrtombs-tests (Files): Likewise.
76014         * modules/wctype-tests (Files): Likewise.
76015         * modules/wcwidth-tests (Files): Likewise.
76016         * modules/xmemdup0-tests (Files): Likewise.
76017         * modules/xprintf-posix-tests (Files): Likewise.
76018         * modules/xvasprintf-tests (Files): Likewise.
76020 2009-12-24  Eric Blake  <ebb9@byu.net>
76022         test-nanosleep: fix typo
76023         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
76024         patch.
76025         Reported by Bruno Haible.
76027 2009-12-24  Bruno Haible  <bruno@clisp.org>
76029         Reduce namespace pollution on glibc systems.
76030         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
76031         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
76032         systems.
76033         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
76034         <getopt.h> on glibc systems.
76035         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
76036         systems.
76037         * lib/fcntl.c: Include <unistd.h> here instead.
76039 2009-12-24  Bruno Haible  <bruno@clisp.org>
76041         * lib/stdlib.in.h (includes): Fix typo in today's commit.
76043 2009-12-24  Eric Blake  <ebb9@byu.net>
76045         tests: add signature checks
76046         * tests/signature.h (SIGNATURE_CHECK): New file.
76047         * modules/atexit-tests (Files): Use it.
76048         * modules/btowc-tests (Files): Likewise.
76049         * modules/canonicalize-lgpl-tests (Files): Likewise.
76050         * modules/ceilf-tests (Files): Likewise.
76051         * modules/ceill-tests (Files): Likewise.
76052         * modules/chown-tests (Files): Likewise.
76053         * modules/dprintf-posix-tests (Files): Likewise.
76054         * modules/dup2-tests (Files): Likewise.
76055         * modules/dup3-tests (Files): Likewise.
76056         * modules/duplocale-tests (Files): Likewise.
76057         * modules/fchdir-tests (Files): Likewise.
76058         * modules/fcntl-tests (Files): Likewise.
76059         * modules/fdopendir-tests (Files): Likewise.
76060         * modules/fflush-tests (Files): Likewise.
76061         * modules/flock-tests (Files): Likewise.
76062         * modules/floorf-tests (Files): Likewise.
76063         * modules/floorl-tests (Files): Likewise.
76064         * modules/fnmatch-tests (Files): Likewise.
76065         * modules/fopen-tests (Files): Likewise.
76066         * modules/fprintf-posix-tests (Files): Likewise.
76067         * modules/freopen-tests (Files): Likewise.
76068         * modules/frexp-nolibm-tests (Files): Likewise.
76069         * modules/frexp-tests (Files): Likewise.
76070         * modules/frexpl-nolibm-tests (Files): Likewise.
76071         * modules/frexpl-tests (Files): Likewise.
76072         * modules/fseek-tests (Files): Likewise.
76073         * modules/fseeko-tests (Files): Likewise.
76074         * modules/fsync-tests (Files): Likewise.
76075         * modules/ftell-tests (Files): Likewise.
76076         * modules/ftello-tests (Files): Likewise.
76077         * modules/futimens-tests (Files): Likewise.
76078         * modules/getaddrinfo-tests (Files): Likewise.
76079         * modules/getcwd-tests (Files): Likewise.
76080         * modules/getdelim-tests (Files): Likewise.
76081         * modules/getdtablesize-tests (Files): Likewise.
76082         * modules/getgroups-tests (Files): Likewise.
76083         * modules/gethostname-tests (Files): Likewise.
76084         * modules/getline-tests (Files): Likewise.
76085         * modules/getopt-posix-tests (Files): Likewise.
76086         * modules/gettimeofday-tests (Files): Likewise.
76087         * modules/glob-tests (Files): Likewise.
76088         * modules/iconv-tests (Files): Likewise.
76089         * modules/inet_ntop-tests (Files): Likewise.
76090         * modules/inet_pton-tests (Files): Likewise.
76091         * modules/isblank-tests (Files): Likewise.
76092         * modules/lchown-tests (Files): Likewise.
76093         * modules/ldexpl-tests (Files): Likewise.
76094         * modules/link-tests (Files): Likewise.
76095         * modules/linkat-tests (Files): Likewise.
76096         * modules/lseek-tests (Files): Likewise.
76097         * modules/lstat-tests (Files): Likewise.
76098         * modules/mbrtowc-tests (Files): Likewise.
76099         * modules/mbsinit-tests (Files): Likewise.
76100         * modules/mbsnrtowcs-tests (Files): Likewise.
76101         * modules/mbsrtowcs-tests (Files): Likewise.
76102         * modules/memchr-tests (Files): Likewise.
76103         * modules/memcmp-tests (Files): Likewise.
76104         * modules/memmem-tests (Files): Likewise.
76105         * modules/memrchr-tests (Files): Likewise.
76106         * modules/mkdir-tests (Files): Likewise.
76107         * modules/mkfifo-tests (Files): Likewise.
76108         * modules/mkfifoat-tests (Files): Likewise.
76109         * modules/mknod-tests (Files): Likewise.
76110         * modules/nanosleep-tests (Files): Likewise.
76111         * modules/nl_langinfo-tests (Files): Likewise.
76112         * modules/obstack-printf-tests (Files): Likewise.
76113         * modules/open-tests (Files): Likewise.
76114         * modules/openat-tests (Files): Likewise.
76115         * modules/perror-tests (Files): Likewise.
76116         * modules/pipe2-tests (Files): Likewise.
76117         * modules/poll-tests (Files): Likewise.
76118         * modules/popen-tests (Files): Likewise.
76119         * modules/posix_spawn-tests (Files): Likewise.
76120         * modules/posix_spawnp-tests (Files): Likewise.
76121         * modules/pread-tests (Files): Likewise.
76122         * modules/printf-posix-tests (Files): Likewise.
76123         * modules/pty-tests (Files): Likewise.
76124         * modules/random_r-tests (Files): Likewise.
76125         * modules/rawmemchr-tests (Files): Likewise.
76126         * modules/readlink-tests (Files): Likewise.
76127         * modules/remove-tests (Files): Likewise.
76128         * modules/rename-tests (Files): Likewise.
76129         * modules/renameat-tests (Files): Likewise.
76130         * modules/rmdir-tests (Files): Likewise.
76131         * modules/round-tests (Files): Likewise.
76132         * modules/roundf-tests (Files): Likewise.
76133         * modules/roundl-tests (Files): Likewise.
76134         * modules/select-tests (Files): Likewise.
76135         * modules/setenv-tests (Files): Likewise.
76136         * modules/sigaction-tests (Files): Likewise.
76137         * modules/sleep-tests (Files): Likewise.
76138         * modules/snprintf-posix-tests (Files): Likewise.
76139         * modules/snprintf-tests (Files): Likewise.
76140         * modules/sprintf-posix-tests (Files): Likewise.
76141         * modules/stat-tests (Files): Likewise.
76142         * modules/strcasestr-tests (Files): Likewise.
76143         * modules/strchrnul-tests (Files): Likewise.
76144         * modules/strerror-tests (Files): Likewise.
76145         * modules/strsignal-tests (Files): Likewise.
76146         * modules/strstr-tests (Files): Likewise.
76147         * modules/strtod-tests (Files): Likewise.
76148         * modules/strverscmp-tests (Files): Likewise.
76149         * modules/symlink-tests (Files): Likewise.
76150         * modules/symlinkat-tests (Files): Likewise.
76151         * modules/times-tests (Files): Likewise.
76152         * modules/trunc-tests (Files): Likewise.
76153         * modules/truncf-tests (Files): Likewise.
76154         * modules/truncl-tests (Files): Likewise.
76155         * modules/tsearch-tests (Files): Likewise.
76156         * modules/uname-tests (Files): Likewise.
76157         * modules/unlink-tests (Files): Likewise.
76158         * modules/unsetenv-tests (Files): Likewise.
76159         * modules/usleep-tests (Files): Likewise.
76160         * modules/utimensat-tests (Files): Likewise.
76161         * modules/vasprintf-tests (Files): Likewise.
76162         * modules/vdprintf-posix-tests (Files): Likewise.
76163         * modules/vfprintf-posix-tests (Files): Likewise.
76164         * modules/vprintf-posix-tests (Files): Likewise.
76165         * modules/vsnprintf-posix-tests (Files): Likewise.
76166         * modules/vsnprintf-tests (Files): Likewise.
76167         * modules/vsprintf-posix-tests (Files): Likewise.
76168         * modules/wcrtomb-tests (Files): Likewise.
76169         * modules/wcsnrtombs-tests (Files): Likewise.
76170         * modules/wcsrtombs-tests (Files): Likewise.
76171         * modules/wcwidth-tests (Files): Likewise.
76172         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
76173         * tests/test-isinf.c (isinf): Likewise.
76174         * tests/test-isnan.c (isnan): Likewise.
76175         * tests/test-signbit.c (signbit): Likewise.
76176         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
76177         declaration, either as macro or with correct signature.
76178         (select): Ensure function under test is declared with correct
76179         signature in correct header.
76180         * tests/test-atexit.c (atexit): Likewise.
76181         * tests/test-btowc.c (btowc): Likewise.
76182         * tests/test-canonicalize-lgpl.c (realpath)
76183         (canonicalize_file_name): Likewise.
76184         * tests/test-ceilf1.c (ceilf): Likewise.
76185         * tests/test-ceill.c (ceill): Likewise.
76186         * tests/test-chown.c (chown): Likewise.
76187         * tests/test-dprintf-posix.c (dprintf): Likewise.
76188         * tests/test-dup2.c (dup2): Likewise.
76189         * tests/test-dup3.c (dup3): Likewise.
76190         * tests/test-duplocale.c (duplocale): Likewise.
76191         * tests/test-fchdir.c (fchdir): Likewise.
76192         * tests/test-fchownat.c (fchownat): Likewise.
76193         * tests/test-fcntl.c (fcntl): Likewise.
76194         * tests/test-fdopendir.c (fdopendir): Likewise.
76195         * tests/test-fflush.c (fflush): Likewise.
76196         * tests/test-flock.c (flock): Likewise.
76197         * tests/test-floorf1.c (floorf): Likewise.
76198         * tests/test-floorl.c (floorl): Likewise.
76199         * tests/test-fnmatch.c (fnmatch): Likewise.
76200         * tests/test-fopen.c (fopen): Likewise.
76201         * tests/test-fprintf-posix.c (fprintf): Likewise.
76202         * tests/test-freopen.c (freopen): Likewise.
76203         * tests/test-frexp.c (frexp): Likewise.
76204         * tests/test-frexpl.c (frexpl): Likewise.
76205         * tests/test-fseek.c (fseek): Likewise.
76206         * tests/test-fseeko.c (fseeko): Likewise.
76207         * tests/test-fstatat.c (fstatat): Likewise.
76208         * tests/test-fsync.c (fsync): Likewise.
76209         * tests/test-ftell.c (ftell): Likewise.
76210         * tests/test-ftello.c (ftello): Likewise.
76211         * tests/test-futimens.c (futimens): Likewise.
76212         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
76213         (gai_strerror): Likewise.
76214         * tests/test-getcwd.c (getcwd): Likewise.
76215         * tests/test-getdelim.c (getdelim): Likewise.
76216         * tests/test-getdtablesize.c (getdtablesize): Likewise.
76217         * tests/test-getgroups.c (getgroups): Likewise.
76218         * tests/test-gethostname.c (gethostname): Likewise.
76219         * tests/test-getline.c (getline): Likewise.
76220         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
76221         Likewise.
76222         * tests/test-gettimeofday.c (gettimeofday): Likewise.
76223         * tests/test-glob.c (glob, globfree): Likewise.
76224         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
76225         * tests/test-inet_ntop.c (inet_ntop): Likewise.
76226         * tests/test-inet_pton.c (inet_pton): Likewise.
76227         * tests/test-isblank.c (isblank): Likewise.
76228         * tests/test-lchown.c (lchown): Likewise.
76229         * tests/test-ldexpl.c (ldexpl): Likewise.
76230         * tests/test-link.c (link): Likewise.
76231         * tests/test-linkat.c (linkat): Likewise.
76232         * tests/test-lseek.c (lseek): Likewise.
76233         * tests/test-lstat.c (lstat): Likewise.
76234         * tests/test-mbrtowc.c (mbrtowc): Likewise.
76235         * tests/test-mbsinit.c (mbsinit): Likewise.
76236         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
76237         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
76238         * tests/test-memchr.c (memchr): Likewise.
76239         * tests/test-memcmp.c (memcmp): Likewise.
76240         * tests/test-memmem.c (memmem): Likewise.
76241         * tests/test-memrchr.c (memrchr): Likewise.
76242         * tests/test-mkdir.c (mkdir): Likewise.
76243         * tests/test-mkdirat.c (mkdirat): Likewise.
76244         * tests/test-mkfifo.c (mkfifo): Likewise.
76245         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
76246         * tests/test-mknod.c (mknod): Likewise.
76247         * tests/test-nanosleep.c (nanosleep): Likewise.
76248         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
76249         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
76250         Likewise.
76251         * tests/test-open.c (open): Likewise.
76252         * tests/test-openat.c (openat): Likewise.
76253         * tests/test-perror.c (perror): Likewise.
76254         * tests/test-pipe2.c (pipe2): Likewise.
76255         * tests/test-poll.c (poll): Likewise.
76256         * tests/test-popen.c (popen, pclose): Likewise.
76257         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
76258         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
76259         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
76260         (posix_spawn_file_actions_destroy)
76261         (posix_spawn_file_actions_addclose)
76262         (posix_spawn_file_actions_addopen)
76263         (posix_spawn_file_actions_adddup2): Likewise.
76264         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
76265         * tests/test-pread.c (pread): Likewise.
76266         * tests/test-printf-posix.c (printf): Likewise.
76267         * tests/test-pty.c (openpty, forkpty): Likewise.
76268         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
76269         (random_r): Likewise.
76270         * tests/test-rawmemchr.c (rawmemchr): Likewise.
76271         * tests/test-readlink.c (readlink): Likewise.
76272         * tests/test-remove.c (remove): Likewise.
76273         * tests/test-rename.c (rename): Likewise.
76274         * tests/test-renameat.c (renameat): Likewise.
76275         * tests/test-rmdir.c (rmdir): Likewise.
76276         * tests/test-round1.c (round): Likewise.
76277         * tests/test-roundf1.c (roundf): Likewise.
76278         * tests/test-roundl.c (roundl): Likewise.
76279         * tests/test-setenv.c (setenv): Likewise.
76280         * tests/test-sigaction.c (sigaction): Likewise.
76281         * tests/test-sleep.c (sleep): Likewise.
76282         * tests/test-snprintf.c (snprintf): Likewise.
76283         * tests/test-sprintf-posix.c (sprintf): Likewise.
76284         * tests/test-stat.c (stat): Likewise.
76285         * tests/test-stpncpy.c (stpncpy): Likewise.
76286         * tests/test-strcasestr.c (strcasestr): Likewise.
76287         * tests/test-strchrnul.c (strchrnul): Likewise.
76288         * tests/test-strerror.c (strerror): Likewise.
76289         * tests/test-strsignal.c (strsignal): Likewise.
76290         * tests/test-strstr.c (strstr): Likewise.
76291         * tests/test-strtod.c (strtod): Likewise.
76292         * tests/test-strverscmp.c (strverscmp): Likewise.
76293         * tests/test-symlink.c (symlink): Likewise.
76294         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
76295         * tests/test-times.c (times): Likewise.
76296         * tests/test-trunc1.c (trunc): Likewise.
76297         * tests/test-truncf1.c (truncf): Likewise.
76298         * tests/test-truncl.c (truncl): Likewise.
76299         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
76300         Likewise.
76301         * tests/test-uname.c (uname): Likewise.
76302         * tests/test-unlink.c (unlink): Likewise.
76303         * tests/test-unlinkat.c (unlinkat): Likewise.
76304         * tests/test-unsetenv.c (unsetenv): Likewise.
76305         * tests/test-usleep.c (usleep): Likewise.
76306         * tests/test-utimensat.c (utimensat): Likewise.
76307         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
76308         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
76309         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
76310         * tests/test-vprintf-posix.c (vprintf): Likewise.
76311         * tests/test-vsnprintf.c (vsnprintf): Likewise.
76312         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
76313         * tests/test-wcrtomb.c (wcrtomb): Likewise.
76314         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
76315         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
76316         * tests/test-wcwidth.c (wcwidth): Likewise.
76318         build: pull in conditional headers during GNULIB_POSIXCHECK
76319         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
76320         definitions from any conditionally-included headers.
76321         * lib/stdlib.in.h (includes): Likewise.
76322         * lib/unistd.in.h (includes): Likewise.
76324 2009-12-24  Bruno Haible  <bruno@clisp.org>
76326         * tests/test-argv-iter.c: Include header file being tested immediately
76327         after config.h.
76328         * tests/test-base64.c: Likewise.
76329         * tests/test-flock.c: Likewise.
76330         * tests/test-fsync.c: Likewise.
76331         * tests/test-getdate.c: Likewise.
76332         * tests/test-getndelim2.c: Likewise.
76333         * tests/test-isfinite.c: Likewise.
76334         * tests/test-isinf.c: Likewise.
76335         * tests/test-strerror.c: Likewise.
76336         * tests/test-strsignal.c: Likewise.
76338 2009-12-23  Eric Blake  <ebb9@byu.net>
76340         unistd: work around cygwin bug
76341         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
76342         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
76343         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
76345 2009-12-23  Bruno Haible  <bruno@clisp.org>
76347         localename: More tests.
76348         * tests/test-localename.c (SIZEOF): New macro.
76349         (categories): New variable.
76350         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
76351         test_locale_name_default): Add test w.r.t. thread locale.
76352         (test_locale_name_thread): New function.
76353         (main): Invoke it.
76355         localename: Make aware of thread locale.
76356         * lib/localename.h (gl_locale_name_thread): New declaration.
76357         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
76358         behaviour with respect to thread locale.
76359         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
76360         <langinfo.h>, glthread/lock.h.
76361         (SIZE_BITS): New macro.
76362         (string_hash): New function.
76363         (struct hash_node): New type.
76364         (HASH_TABLE_SIZE): New macro.
76365         (struniq_hash_table, struniq_lock): New variables.
76366         (struniq): New function.
76367         (gl_locale_name_thread): New function.
76368         (gl_locale_name): Invoke it.
76369         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
76370         * modules/localename (Depends-on): Add lock.
76371         Reported by Mike Gran <spk121@yahoo.com>.
76373 2009-12-23  Eric Blake  <ebb9@byu.net>
76375         va-args: new module
76376         * modules/va-args: New file.
76377         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
76378         * MODULES.html.sh (Core language properties): Mention it.
76380         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
76381         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
76382         named alias for __attribute__((__unused__)).
76383         * lib/chown.c: Update client.
76384         * lib/fchmodat.c: Likewise.
76385         * lib/fts.c: Likewise.
76386         * lib/getdate.y: Likewise.
76387         * lib/getgroups.c: Likewise.
76388         * lib/getopt.c: Likewise.
76389         * lib/getugroups.c: Likewise.
76390         * lib/mkdir.c: Likewise.
76391         * lib/mkfifo.c: Likewise.
76392         * lib/mkfifoat.c: Likewise.
76393         * lib/mknod.c: Likewise.
76394         * lib/mknodat.c: Likewise.
76395         * lib/readlink.c: Likewise.
76396         * lib/se-context.in.h: Likewise.
76397         * lib/se-selinux.in.h: Likewise.
76398         * lib/sockets.c: Likewise.
76399         * lib/symlink.c: Likewise.
76400         * lib/symlinkat.c: Likewise.
76401         * lib/unicodeio.c: Likewise.
76402         * lib/unistr.h: Likewise.
76403         * tests/test-areadlink.c: Likewise.
76404         * tests/test-areadlinkat.c: Likewise.
76405         * tests/test-filenamecat.c: Likewise.
76406         * tests/test-fseeko.c: Likewise.
76407         * tests/test-ftello.c: Likewise.
76408         * tests/test-getdate.c: Likewise.
76409         * tests/test-getgroups.c: Likewise.
76410         * tests/test-gethostname.c: Likewise.
76411         * tests/test-quotearg.c: Likewise.
76412         * tests/test-version-etc.c: Likewise.
76413         * tests/test-xalloc-die.c: Likewise.
76414         * tests/test-xfprintf-posix.c: Likewise.
76415         * tests/test-xprintf-posix.c: Likewise.
76416         * tests/test-xvasprintf.c: Likewise.
76418         tests: avoid compiler warnings
76419         * tests/test-fcntl.c (main): Delete unused parameters.
76420         * tests/test-freopen-safer.c (main): Likewise.
76421         * tests/test-xalloc-die.c (main): Mark unused parameters.
76422         * tests/test-fseeko.c (main): Likewise.
76423         * tests/test-ftello.c (main): Likewise.
76424         * tests/test-nanosleep.c (main): Avoid declaration warning.
76425         * tests/test-sleep.c (main): Likewise.
76426         * tests/test-unsetenv.c (main): Silence warning about string
76427         literal.
76428         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
76430 2009-12-23  Bruno Haible  <bruno@clisp.org>
76432         * tests/test-localename.c (test_locale_name): New function, extracted
76433         from main. Also test mixed situations.
76434         (test_locale_name_posix, test_locale_name_environ,
76435         test_locale_name_default): New functions.
76436         (main): Invoke them all.
76437         * modules/localename-tests (configure.ac): Test for newlocale.
76439 2009-12-23  Bruno Haible  <bruno@clisp.org>
76441         unistd: Ensure getcwd gets declared before being overridden.
76442         * lib/unistd.in.h: Conditionally include <io.h>.
76444 2009-12-22  Bruno Haible  <bruno@clisp.org>
76446         wchar: Diagnose broken combination of glibc and gcc versions and flags.
76447         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
76448         (gl_WCHAR_H): Invoke it.
76449         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
76450         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
76451         Reported by Karl Berry <karl@freefriends.org>.
76453 2009-12-22  Eric Blake  <ebb9@byu.net>
76455         math, unistd: avoid redundant includes
76456         * lib/math.in.h (isnan): No need to re-include <math.h>.
76457         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
76459         getsubopt: work around cygwin bug
76460         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
76461         avoid conflicting with system getsubopt.
76462         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
76463         bug.
76465         getopt: synchronize from glibc
76466         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
76467         parameter order.  Adjust all callers.
76468         (_getopt_internal_r, main): Adjust quoting in error messages.
76469         Drop considerations for outdated POSIX 1003.2 error message.
76470         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
76471         callers.
76472         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
76474         test-getopt: test stderr behavior
76475         * modules/getopt-posix-tests (Depends-on): Add dup2.
76476         * tests/test-getopt.c (ASSERT): Avoid stderr.
76477         (main): Move stderr to a temporary file.
76478         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
76479         Instead, add parameter to inform caller if output occurred.
76480         (test_getopt): Adjust all existing tests to expect silence, and
76481         add new tests of leading ":".
76482         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76483         glibc shortcomings with leading "-:" or "+:" in optstring.
76484         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76485         Likewise.
76486         * doc/posix-functions/getopt.texi (getopt): Likewise.
76488         test-getopt: enhance test
76489         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
76490         supports optind=0.
76491         * tests/test-getopt.c (OPTIND_MIN): Move...
76492         * tests/test-getopt.h (OPTIND_MIN): ...here.
76493         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
76494         Require that optind=0 works, since modern BSD supports it in
76495         addition to optreset, and since coreutils expects it.
76496         (test_getopt_long_only): New test.
76497         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
76498         glibc shortcomings with 'W;', and enforcement of optind=0.
76499         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
76500         Likewise.
76502 2009-12-21  Bruno Haible  <bruno@clisp.org>
76504         localename: Improvements for MacOS X and Cygwin.
76505         * lib/localename.h (gl_locale_name_environ): New declaration.
76506         * lib/localename.c (gl_locale_name_environ): New function, extracted from
76507         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
76508         (gl_locale_name_posix): Invoke it.
76509         (gl_locale_name_default): Add comments. Use Windows native API also on
76510         Cygwin.
76512 2009-12-21  Bruno Haible  <bruno@clisp.org>
76514         Update list of Win32 locale ids.
76515         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
76516         (LANG_SAMI): Renamed from LANG_SAAMI.
76517         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
76518         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
76519         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
76520         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
76521         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
76522         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
76523         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
76524         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
76525         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
76526         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
76527         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
76528         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
76529         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
76530         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
76531         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
76532         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
76533         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
76534         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
76535         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
76536         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
76537         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
76538         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
76539         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
76540         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
76541         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
76542         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
76543         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
76544         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
76545         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
76546         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
76547         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
76548         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
76549         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
76550         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
76551         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
76552         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
76553         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
76554         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
76555         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
76556         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
76557         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
76558         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
76559         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
76560         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
76561         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
76562         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
76563         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
76564         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
76565         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
76566         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
76567         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
76568         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
76569         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
76570         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
76571         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
76572         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
76573         Add more languages and countries for Sami, Sorbian. Add more countries
76574         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
76575         for Pashto. Change country for Syriac, Tswana.
76577 2009-12-21  Eric Blake  <ebb9@byu.net>
76579         test-utimens: avoid spurious failure
76580         * tests/test-chown.h (nap): Factor...
76581         * tests/nap.h: ...into new file.
76582         * tests/test-lchown.h (nap): Avoid duplication.
76583         * tests/test-utimens-common.h (nap): Use shared implementation,
76584         necessary on file systems with 1-second resolution.
76585         * modules/chown-tests (Files): Include new file.
76586         * modules/fdutimensat-tests (Files): Likewise.
76587         * modules/futimens-tests (Files): Likewise.
76588         * modules/lchown-tests (Files): Likewise.
76589         * modules/openat-tests (Files): Likewise.
76590         * modules/utimens-tests (Files): Likewise.
76591         * modules/utimensat-tests (Files): Likewise.
76593 2009-12-19  Eric Blake  <ebb9@byu.net>
76595         futimens, utimensat: work around Linux bug
76596         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
76597         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
76598         * lib/utimensat.c (rpl_utimensat): Work around it.
76599         * lib/futimens.c (rpl_futimens): Adjust comment.
76601         utimens: work around Linux ctime bug
76602         * lib/utimens.c (detect_ctime_bug): New helper function.
76603         (update_timespec): Differentiate between workaround needed for
76604         this bug vs. what is needed for systems that lack utimensat.
76605         (fdutimens, lutimens): Work around bug.
76607         utimens: check for ctime update
76608         * tests/test-utimens-common.h (check_ctime): Define.
76609         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
76610         * tests/test-futimens.h (test_futimens): Likewise.
76611         * tests/test-lutimens.h (test_lutimens): Likewise.
76612         * doc/posix-functions/futimens.texi (futimens): Document the bug.
76613         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
76615 2009-12-19  Bruno Haible  <bruno@clisp.org>
76617         dprintf-posix: Check against memory leak fixed on 2009-12-15.
76618         * tests/test-dprintf-posix2.sh: New file.
76619         * tests/test-dprintf-posix2.c: New file.
76620         * modules/dprintf-posix-tests (Files): Add them.
76621         (configure.ac): Check for getrlimit and setrlimit.
76622         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76624 2009-12-19  Bruno Haible  <bruno@clisp.org>
76626         fprintf-posix: Check against memory leak fixed on 2009-12-15.
76627         * tests/test-fprintf-posix3.sh: New file.
76628         * tests/test-fprintf-posix3.c: New file.
76629         * modules/fprintf-posix-tests (Files): Add them.
76630         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
76632 2009-12-19  Eric Blake  <ebb9@byu.net>
76634         dirfd: fix prototype
76635         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
76636         * lib/dirfd.c (dirfd): Likewise.
76638         canonicalize: reduce memory usage
76639         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
76640         allocation to size.
76641         Reported by Solar Designer <solar@openwall.com>.
76643 2009-12-19  Bruno Haible  <bruno@clisp.org>
76645         New module attribute 'Applicability'.
76646         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
76647         * gnulib-tool: New option --extract-applicability.
76648         (func_usage): Document it.
76649         (sed_extract_prog): Recognize it.
76650         (func_get_applicability): New function.
76651         (func_import): Generalize handling of 'link-warning' module.
76652         * modules/link-warning (Applicability): New section.
76653         * modules/arg-nonnull (Applicability): New section.
76654         Repoted by Simon Josefsson <simon@josefsson.org>.
76656 2009-12-19  Bruno Haible  <bruno@clisp.org>
76658         fflush: tweak
76659         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
76660         * lib/fseeko.c (rpl_fseeko): Likewise.
76662 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
76664         * lib/gl_list.h: Fix typo in comment.
76666 2009-12-16  Eric Blake  <ebb9@byu.net>
76668         fcntl: use to simplify other modules
76669         * modules/cloexec (Depends-on): Add fcntl.
76670         * modules/fchdir (Depends-on): Likewise.
76671         * modules/fd-safer-flag (Depends-on): Likewise.
76672         * modules/unistd-safer (Depends-on): Likewise.
76673         * modules/dup3 (configure.ac): Set module indicator.
76674         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
76675         missing.
76676         * lib/fchdir.c (_gl_register_dup): Fix comment.
76677         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
76678         * lib/dup-safer.c (dup_safer): Likewise.
76679         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
76680         * lib/dup3.c (dup3): Likewise.
76681         * tests/test-fchdir.c (main): Enhance test.
76682         Fixes a dup_cloexec bug reported by Ondřej Vašík.
76684         fcntl: port portions of fcntl to mingw
76685         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
76686         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
76687         replacement for mingw.
76688         * modules/fcntl (Description): Update.
76689         (Depends-on): Add dup2.
76690         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
76691         * modules/fcntl-h (Makefile.am): Substitute it.
76692         * lib/fcntl.in.h (fcntl): Update declaration.
76693         (F_DUPFD, F_GETFD): New macros, when needed.
76694         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
76695         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
76696         * tests/test-fcntl.c (check_flags, main): Enhance test for items
76697         we now guarantee.
76699         fcntl: work around cygwin bug in F_DUPFD
76700         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
76701         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
76702         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
76703         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
76704         * doc/posix-functions/fcntl.texi (fcntl): Document it.
76706         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
76707         * modules/fcntl (Files): List new files.
76708         (configure.ac): Run a test.
76709         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
76710         * lib/fcntl.c (rpl_fcntl): Likewise.
76711         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
76712         (gl_FCNTL_H): Always replace fcntl.h.
76713         * modules/fcntl-h (Makefile.am): Substitute witnesses.
76714         * lib/fcntl.in.h (fcntl): Declare replacement.
76715         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
76716         needed, plus a witness.
76717         * doc/posix-functions/fcntl.texi (fcntl): Document this.
76718         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
76719         * tests/test-fcntl.c: New file.
76720         * modules/fcntl-tests: Likewise.
76722         binary-io: avoid potential compilation warning
76723         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
76724         directives.
76726         fflush: avoid compilation error on NetBSD
76727         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
76728         between off_t and fpos_t, since the latter is sometimes a struct.
76729         * lib/fseeko.c (rpl_fseeko): Likewise.
76730         Reported by Alexander Nasonov <alnsn@yandex.ru>.
76732 2009-12-15  Eric Blake  <ebb9@byu.net>
76734         fcntl-h, stdio, sys_ioctl: fix declarations
76735         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
76736         function must not take arguments.
76737         * lib/sys_ioctl.in.h (ioctl): Likewise.
76738         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
76739         (open): Add a link warning.
76741 2009-12-15  Jim Meyering  <meyering@redhat.com>
76743         areadlink, areadlink-with-size: relax license to LGPLv2+
76744         * modules/areadlink (License): Relax to LGPLv2+.
76745         * modules/areadlink-with-size (License): Likewise.
76747 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
76748             Bruno Haible  <bruno@clisp.org>
76750         *printf: Fix memory leak.
76751         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
76752         * lib/vfprintf.c (vfprintf): Likewise.
76753         * lib/dprintf.c (dprintf): Likewise.
76754         * lib/vdprintf.c (vdprintf): Likewise.
76756 2009-12-14  Eric Blake  <ebb9@byu.net>
76758         accept4: adjust module dependencies
76759         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
76761         utimens: one more try at avoiding compiler warning
76762         * lib/utimens.c (lutimens): Lower scope of result.
76764 2009-12-13  Bruno Haible  <bruno@clisp.org>
76766         Move the malloc checking from module 'list' to new module 'xlist'.
76767         * modules/xlist: New file.
76768         * lib/gl_xlist.h: New file.
76769         * lib/gl_xlist.c: New file.
76770         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
76771         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
76772         gl_list_add_last, gl_list_add_before, gl_list_add_after,
76773         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
76774         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
76775         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
76776         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
76777         gl_sortedlist_nx_add): New declarations.
76778         (struct gl_list_implementation): Rename and change methods accordingly.
76779         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
76780         (gl_list_nx_create): Renamed from gl_list_create.
76781         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76782         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76783         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76784         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76785         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76786         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76787         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76788         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76789         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
76790         gl_list_create_empty.
76791         (gl_list_nx_create): Renamed from gl_list_create.
76792         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
76793         (gl_list_nx_set_at): Renamed from gl_list_set_at.
76794         (gl_list_nx_add_first): Renamed from gl_list_add_first.
76795         (gl_list_nx_add_last): Renamed from gl_list_add_last.
76796         (gl_list_nx_add_before): Renamed from gl_list_add_before.
76797         (gl_list_nx_add_after): Renamed from gl_list_add_after.
76798         (gl_list_nx_add_at): Renamed from gl_list_add_at.
76799         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
76800         * lib/gl_array_list.c: Don't include xalloc.h.
76801         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
76802         NULL upon out-of-memory.
76803         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
76804         out-of-memory.
76805         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
76806         Change return type to 'int'.
76807         (gl_array_nx_set_at): Renamed from gl_array_set_at.
76808         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76809         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
76810         upon out-of-memory.
76811         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
76812         upon out-of-memory.
76813         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
76814         upon out-of-memory.
76815         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
76816         upon out-of-memory.
76817         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
76818         out-of-memory.
76819         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
76820         Update.
76821         (gl_array_list_implementation): Update.
76822         * lib/gl_carray_list.c: Don't include xalloc.h.
76823         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
76824         Return NULL upon out-of-memory.
76825         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
76826         out-of-memory.
76827         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
76828         Change return type to 'int'.
76829         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
76830         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
76831         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
76832         upon out-of-memory.
76833         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
76834         upon out-of-memory.
76835         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
76836         out-of-memory.
76837         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
76838         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
76839         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
76840         Update.
76841         (gl_carray_list_implementation): Update.
76842         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
76843         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
76844         gl_linked_create_empty. Return NULL upon out-of-memory.
76845         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
76846         out-of-memory.
76847         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
76848         Change return type to 'int'. Return -1 upon out-of-memory.
76849         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
76850         out-of-memory.
76851         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
76852         upon out-of-memory.
76853         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
76854         upon out-of-memory.
76855         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
76856         NULL upon out-of-memory.
76857         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
76858         upon out-of-memory.
76859         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
76860         out-of-memory.
76861         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
76862         Update.
76863         * lib/gl_linked_list.c: Don't include xalloc.h.
76864         (gl_linked_list_implementation): Update.
76865         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
76866         (add_to_bucket): Change return type to 'int'.
76867         (gl_linkedhash_list_implementation): Update.
76868         * lib/gl_anytree_list1.h (free_subtree): New function.
76869         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
76870         gl_tree_create_empty. Return NULL upon out-of-memory.
76871         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
76872         Change return type to 'int'. Return -1 upon out-of-memory.
76873         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
76874         out-of-memory.
76875         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
76876         (gl_tree_remove_node): New function, moved here from
76877         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
76878         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
76879         Update.
76880         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
76881         malloc, not xmalloc. Return NULL upon out-of-memory.
76882         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76883         out-of-memory.
76884         (gl_tree_remove_node_from_tree): New function, extracted from
76885         gl_tree_remove_node.
76886         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76887         upon out-of-memory.
76888         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76889         out-of-memory.
76890         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76891         upon out-of-memory.
76892         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76893         upon out-of-memory.
76894         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76895         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
76896         not xmalloc. Return NULL upon out-of-memory.
76897         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
76898         out-of-memory.
76899         (gl_tree_remove_node_from_tree): New function, extracted from
76900         gl_tree_remove_node.
76901         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
76902         upon out-of-memory.
76903         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
76904         out-of-memory.
76905         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
76906         upon out-of-memory.
76907         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
76908         upon out-of-memory.
76909         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
76910         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
76911         gl_anytree_list1.h before gl_anyavltree_list2.h.
76912         (gl_avltree_list_implementation): Update.
76913         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
76914         gl_anytree_list1.h before gl_anyavltree_list2.h.
76915         (gl_rbtree_list_implementation): Update.
76916         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
76917         Change return type to 'int'. Return -1 upon out-of-memory. Use
76918         __builtin_expect.
76919         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
76920         (gl_avltreehash_list_implementation): Update.
76921         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
76922         (gl_rbtreehash_list_implementation): Update.
76923         * modules/array-list (Depends-on): Remove xalloc.
76924         * modules/carray-list (Depends-on): Likewise.
76925         * modules/linked-list (Depends-on): Likewise.
76926         * modules/linkedhash-list (Depends-on): Likewise.
76927         * modules/avltree-list (Depends-on): Likewise.
76928         * modules/rbtree-list (Depends-on): Likewise.
76929         * modules/avltreehash-list (Depends-on): Likewise.
76930         * modules/rbtreehash-list (Depends-on): Likewise.
76932         * modules/xsublist: New file.
76933         * lib/gl_xsublist.h: New file.
76934         * lib/gl_xsublist.c: New file.
76935         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
76936         (gl_sublist_nx_create): New declaration.
76937         * lib/gl_sublist.c: Don't include xalloc.h.
76938         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
76939         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
76940         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
76941         Change return type to 'int'. Return -1 upon out-of-memory.
76942         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
76943         upon out-of-memory.
76944         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
76945         NULL upon out-of-memory.
76946         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
76947         upon out-of-memory.
76948         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
76949         NULL upon out-of-memory.
76950         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
76951         NULL upon out-of-memory.
76952         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
76953         upon out-of-memory.
76954         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
76955         (gl_sublist_list_implementation): Update.
76956         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
76957         upon out-of-memory.
76958         * modules/sublist (Depends-on): Remove xalloc.
76960         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
76961         * tests/test-carray_list.c: Likewise.
76962         * tests/test-linked_list.c: Likewise.
76963         * tests/test-linkedhash_list.c: Likewise.
76964         * tests/test-avltree_list.c: Likewise.
76965         * tests/test-rbtree_list.c: Likewise.
76966         * tests/test-avltreehash_list.c: Likewise.
76967         * tests/test-rbtreehash_list.c: Likewise.
76968         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
76969         * modules/carray-list-tests (Makefile.am): Likewise.
76970         * modules/linked-list-tests (Makefile.am): Likewise.
76971         * modules/linkedhash-list-tests (Makefile.am): Likewise.
76972         * modules/avltree-list-tests (Makefile.am): Likewise.
76973         * modules/rbtree-list-tests (Makefile.am): Likewise.
76974         * modules/avltreehash-list-tests (Makefile.am): Likewise.
76975         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
76977         * NEWS: Mention the changes.
76979         * lib/clean-temp.c: Include gl_xlist.h.
76980         * modules/clean-temp (Depends-on): Add xlist.
76982         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
76983         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
76985         * tests/test-array_oset.c: Include gl_xlist.h.
76986         * modules/array-oset-tests (Depends-on): Add xlist.
76988         Reported by José E. Marchesi <jemarch@gnu.org>.
76990 2009-12-13  Bruno Haible  <bruno@clisp.org>
76992         Move the malloc checking from module 'oset' to new module 'xoset'.
76993         * modules/xoset: New file.
76994         * lib/gl_xoset.h: New file.
76995         * lib/gl_xoset.c: New file.
76996         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
76997         declarations.
76998         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
76999         (struct gl_oset_implementation): Rename and change methods accordingly.
77000         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
77001         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77002         'int'. Mark as __warn_unused_result__.
77003         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
77004         gl_oset_create_empty.
77005         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
77006         'int'.
77007         * lib/gl_array_oset.c: Don't include xalloc.h.
77008         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
77009         malloc, not xmalloc.
77010         (grow): Change return type to 'int'. Don't call xalloc_die.
77011         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
77012         to 'int'.
77013         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
77014         'int'.
77015         (gl_array_oset_implementation): Update.
77016         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
77017         gl_tree_create_empty.
77018         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
77019         'int'.
77020         * lib/gl_avltree_oset.c: Don't include xalloc.h.
77021         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77022         xmalloc.
77023         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77024         not xmalloc.
77025         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77026         xmalloc.
77027         (gl_avltree_oset_implementation): Update.
77028         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
77029         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
77030         xmalloc.
77031         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
77032         not xmalloc.
77033         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
77034         xmalloc.
77035         (gl_rbtree_oset_implementation): Update.
77036         * modules/array-oset (Depends-on): Remove xalloc.
77037         * modules/avltree-oset (Depends-on): Likewise.
77038         * modules/rbtree-oset (Depends-on): Likewise.
77039         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
77040         * tests/test-avltree_oset.c: Likewise.
77041         * tests/test-rbtree_oset.c: Likewise.
77042         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
77043         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
77044         * modules/rbtree-oset-tests (Makefile.am): Likewise.
77045         * NEWS: Mention the change.
77047 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
77049         maint.mk: allow a project to override release-prep commands
77050         * top/maint.mk (alpha, beta, stable): Move release-preparatory
77051         commands into a new rule.
77052         (release-prep): New rule.
77053         (release-prep-hook): New overridable variable.
77055 2009-12-13  Bruno Haible  <bruno@clisp.org>
77057         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
77059 2009-12-13  Jim Meyering  <meyering@redhat.com>
77061         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
77062         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
77064 2009-12-12  Bruno Haible  <bruno@clisp.org>
77066         duplocale: Tweak.
77067         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
77069 2009-12-12  Karl Berry  <karl@gnu.org>
77071         * config/srclist.txt (strtoll.c): tab changes, no more sync.
77073 2009-12-12  Bruno Haible  <bruno@clisp.org>
77075         * m4/po.m4: Undo incorrect untabification.
77077 2009-12-12  Bruno Haible  <bruno@clisp.org>
77079         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
77080         * modules/c-strtod (Depends-on): Add locale.
77081         * modules/c-strtold (Depends-on): Likewise.
77083 2009-12-12  Bruno Haible  <bruno@clisp.org>
77085         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
77087 2009-12-11  Eric Blake  <ebb9@byu.net>
77089         setenv: relax requirement in light of POSIX ruling
77090         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
77091         not NULL.
77092         * tests/test-setenv.c (main): Relax test.
77093         * tests/test-unsetenv.c (main): Likewise.
77094         * doc/posix-functions/setenv.texi (setenv): Document this.
77095         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
77097 2009-12-11  Bruno Haible  <bruno@clisp.org>
77099         New module 'fd-safer-flag'.
77100         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
77101         * lib/dup-safer.c (dup_safer_flag): Remove function.
77102         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
77103         * lib/fd-safer.c (fd_safer_flag): Remove function.
77104         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
77105         * modules/cloexec (configure.ac): Drop indicator macro.
77106         * modules/fd-safer-flag: New file.
77107         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
77108         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
77109         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
77111 2009-12-11  Bruno Haible  <bruno@clisp.org>
77113         Tests for module 'nl_langinfo'.
77114         * modules/nl_langinfo-tests: New file.
77115         * tests/test-nl_langinfo.sh: New file.
77116         * tests/test-nl_langinfo.c: New file.
77118         New module 'nl_langinfo'.
77119         * lib/nl_langinfo.c: New file.
77120         * m4/nl_langinfo.m4: New file.
77121         * modules/nl_langinfo: New file.
77122         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
77124 2009-12-11  Bruno Haible  <bruno@clisp.org>
77126         Tests for module 'langinfo'.
77127         * modules/langinfo-tests: New file.
77128         * tests/test-langinfo.c: New file.
77130         New module 'langinfo'.
77131         * lib/langinfo.in.h: New file.
77132         * m4/langinfo_h.m4: New file.
77133         * modules/langinfo: New file.
77134         * doc/posix-headers/langinfo.texi: Mention the new module.
77136 2009-12-11  Bruno Haible  <bruno@clisp.org>
77138         * lib/config.charset: Untabify.
77140 2009-12-11  Bruno Haible  <bruno@clisp.org>
77142         * modules/unistd-safer (configure.ac): Drop indicator macro.
77144 2009-12-11  Bruno Haible  <bruno@clisp.org>
77146         Move pipe2-safer code to its own file.
77147         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
77148         * lib/pipe-safer.c (pipe2_safer): Remove function.
77149         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
77150         (Makefile.am): Add it to lib_SOURCES.
77152 2009-12-10  Bruno Haible  <bruno@clisp.org>
77154         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
77156 2009-12-10  Bruno Haible  <bruno@clisp.org>
77158         Declare which arguments expect non-NULL values, for GCC and clang.
77159         * build-aux/arg-nonnull.h: New file.
77160         * modules/arg-nonnull: New file.
77161         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
77162         (inet_ntop, inet_pton): Use it.
77163         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
77164         (closedir, dirfd, opendir, scandir, alphasort): Use it.
77165         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
77166         (open, openat): Use it.
77167         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
77168         (fnmatch): Use it.
77169         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
77170         (getopt, getopt_long, getopt_long_only): Use it.
77171         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
77172         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
77173         Use it.
77174         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
77175         (iconv_open): Use it.
77176         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
77177         (strtoimax, strtoumax): Use it.
77178         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
77179         (duplocale): Use it.
77180         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
77181         (frexp, frexpl): Use it.
77182         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
77183         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
77184         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
77185         (tsearch, tfind, tdelete, twalk): Use it.
77186         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
77187         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
77188         sigpending): Use it.
77189         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
77190         (posix_spawn, posix_spawnp, posix_spawnattr_init,
77191         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
77192         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
77193         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
77194         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
77195         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
77196         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
77197         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
77198         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
77199         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
77200         Use it.
77201         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
77202         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
77203         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
77204         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
77205         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
77206         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
77207         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
77208         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
77209         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
77210         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
77211         strtoull, unsetenv): Use it.
77212         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
77213         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
77214         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
77215         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
77216         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
77217         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
77218         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
77219         (strcasecmp, strncasecmp): Use it.
77220         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
77221         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
77222         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
77223         rpl_setsockopt): Use it.
77224         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
77225         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
77226         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
77227         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
77228         (gettimeofday): Use it.
77229         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
77230         (times): Use it.
77231         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
77232         (uname): Use it.
77233         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
77234         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
77235         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
77236         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
77237         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
77238         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
77239         unlinkat, write): Use it.
77240         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
77241         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
77242         * lib/argv-iter.h: Include arg-nonnull.h.
77243         (_ATTRIBUTE_NONNULL_): Remove macro.
77244         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
77245         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
77246         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
77247         optimization.
77248         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
77249         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
77250         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
77251         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
77252         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
77253         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
77254         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
77255         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
77256         * modules/arpa_inet (Depends-on): Add arg-nonnull.
77257         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
77258         * modules/dirent (Depends-on): Add arg-nonnull.
77259         (Makefile.am): Insert arg-nonnull.h into dirent.h.
77260         * modules/fcntl-h (Depends-on): Add arg-nonnull.
77261         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
77262         * modules/fnmatch (Depends-on): Add arg-nonnull.
77263         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
77264         * modules/getopt-posix (Depends-on): Add arg-nonnull.
77265         (Makefile.am): Insert arg-nonnull.h into getopt.h.
77266         * modules/glob (Depends-on): Add arg-nonnull.
77267         (Makefile.am): Insert arg-nonnull.h into glob.h.
77268         * modules/iconv_open (Depends-on): Add arg-nonnull.
77269         (Makefile.am): Insert arg-nonnull.h into iconv.h.
77270         * modules/inttypes (Depends-on): Add arg-nonnull.
77271         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
77272         * modules/locale (Depends-on): Add arg-nonnull.
77273         (Makefile.am): Insert arg-nonnull.h into locale.h.
77274         * modules/math (Depends-on): Add arg-nonnull.
77275         (Makefile.am): Insert arg-nonnull.h into math.h.
77276         * modules/netdb (Depends-on): Add arg-nonnull.
77277         (Makefile.am): Insert arg-nonnull.h into netdb.h.
77278         * modules/search (Depends-on): Add arg-nonnull.
77279         (Makefile.am): Insert arg-nonnull.h into search.h.
77280         * modules/signal (Depends-on): Add arg-nonnull.
77281         (Makefile.am): Insert arg-nonnull.h into signal.h.
77282         * modules/spawn (Depends-on): Add arg-nonnull.
77283         (Makefile.am): Insert arg-nonnull.h into spawn.h.
77284         * modules/stdio (Depends-on): Add arg-nonnull.
77285         (Makefile.am): Insert arg-nonnull.h into stdio.h.
77286         * modules/stdlib (Depends-on): Add arg-nonnull.
77287         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
77288         * modules/string (Depends-on): Add arg-nonnull.
77289         (Makefile.am): Insert arg-nonnull.h into string.h.
77290         * modules/strings (Depends-on): Add arg-nonnull.
77291         (Makefile.am): Insert arg-nonnull.h into strings.h.
77292         * modules/sys_socket (Depends-on): Add arg-nonnull.
77293         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
77294         * modules/sys_stat (Depends-on): Add arg-nonnull.
77295         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
77296         * modules/sys_time (Depends-on): Add arg-nonnull.
77297         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
77298         * modules/sys_times (Depends-on): Add arg-nonnull.
77299         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
77300         * modules/sys_utsname (Depends-on): Add arg-nonnull.
77301         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
77302         * modules/time (Depends-on): Add arg-nonnull.
77303         (Makefile.am): Insert arg-nonnull.h into time.h.
77304         * modules/unistd (Depends-on): Add arg-nonnull.
77305         (Makefile.am): Insert arg-nonnull.h into unistd.h.
77306         * modules/wchar (Depends-on): Add arg-nonnull.
77307         (Makefile.am): Insert arg-nonnull.h into wchar.h.
77308         * modules/argv-iter (Depends-on): Add arg-nonnull.
77309         * tests/test-canonicalize.c (null_ptr): New function.
77310         (main): Use it.
77311         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
77312         (main): Use it.
77313         * tests/test-memmem.c (null_ptr): New function.
77314         (main): Use it.
77315         Reported by Jim Meyering.
77317 2009-12-10  Bruno Haible  <bruno@clisp.org>
77319         Use spaces for indentation, not tabs.
77320         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
77321         * m4/*.m4: Untabify.
77322         * build-aux/*.h: Untabify.
77323         * tests/**/*.[hc]: Untabify.
77324         * README: New section "Indent with spaces, not TABs", based on
77325         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
77326         * NEWS: Mention the change.
77328 2009-12-10  Bruno Haible  <bruno@clisp.org>
77330         pty test: Fix link error.
77331         * modules/pty-tests (Makefile.am): Add the default LDADD value to
77332         test_pty_LDADD.
77334 2009-12-07  Simon Josefsson  <simon@josefsson.org>
77336         * modules/pty: New file.
77337         * modules/pty-tests: New file.
77338         * m4/pty.m4: New file.
77339         * tests/test-pty.c: New file.
77340         * doc/glibc-headers/pty.texi: Modified.
77341         * doc/glibc-functions/forkpty.texi: Modified.
77342         * doc/glibc-functions/openpty.texi: Modified.
77344 2009-12-10  Bruno Haible  <bruno@clisp.org>
77346         Avoid syntax error in C++ mode.
77347         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
77349 2009-12-10  Bruno Haible  <bruno@clisp.org>
77351         Use sed with option -e.
77352         * gnulib-tool (func_version, func_emit_copyright_notice,
77353         func_emit_initmacro_end, func_import, func_create_testdir): Pass
77354         option -e to sed.
77355         * modules/link-warning (Makefile.am): Likewise.
77357 2009-12-10  Jim Meyering  <meyering@redhat.com>
77359         mgetgroups: do not write bytes beyond end of malloc'd buffer
77360         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
77361         username, we call getgroups with a one-element-shorter buffer,
77362         but still told it the length was original, max_n_groups.
77364 2009-12-09  Eric Blake  <ebb9@byu.net>
77366         cloexec: relax license
77367         * modules/cloexec (Maintainer): Add myself.
77368         (License): Use LGPL, not GPL.
77370         link-warning: optimize generation
77371         * modules/link-warning (Makefile.am): Reduce process usage.
77373 2009-12-09  Bruno Haible  <bruno@clisp.org>
77375         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
77376         workaround was added on 2009-11-17.
77378 2009-12-09  Jim Meyering  <meyering@redhat.com>
77379             Bruno Haible  <bruno@clisp.org>
77381         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
77382         * modules/link-warning (Makefile.am): Make the comment-removing sed
77383         command more robust in the face of bootstrap-prepended comment lines.
77385 2009-12-09  Bruno Haible  <bruno@clisp.org>
77387         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
77388         most one group.
77390 2009-12-09  Simon Josefsson  <simon@josefsson.org>
77391             Bruno Haible  <bruno@clisp.org>
77393         * build-aux/link-warning.h: Add copyright notice.
77394         * modules/link-warning (Makefile.am): Generate link-warning.h from
77395         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
77396         * NEWS: Mention change in link-warning module.
77397         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
77398         * modules/dirent (Makefile.am): Add dependency to dirent.h.
77399         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
77400         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
77401         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
77402         * modules/math (Makefile.am): Add dependency to math.h.
77403         * modules/search (Makefile.am): Add dependency to search.h.
77404         * modules/signal (Makefile.am): Add dependency to signal.h.
77405         * modules/spawn (Makefile.am): Add dependency to spawn.h.
77406         * modules/stdio (Makefile.am): Add dependency to stdio.h.
77407         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
77408         * modules/string (Makefile.am): Add dependency to string.h.
77409         * modules/strings (Makefile.am): Add dependency to strings.h.
77410         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
77411         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
77412         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
77413         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
77414         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
77415         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
77416         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
77417         * modules/unistd (Makefile.am): Add dependency to unistd.h.
77418         * modules/wchar (Makefile.am): Add dependency to wchar.h.
77420 2009-12-09  Bruno Haible  <bruno@clisp.org>
77422         fchdir: Optimize away rpl_fstat when possible.
77423         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
77424         REPLACE_OPEN_DIRECTORY.
77425         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
77427 2009-12-09  Bruno Haible  <bruno@clisp.org>
77429         * lib/fchdir.c: Update comment.
77431 2009-12-09  Bruno Haible  <bruno@clisp.org>
77433         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
77435 2009-12-08  Eric Blake  <ebb9@byu.net>
77437         fchdir: avoid memory leak on re-registration.
77438         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
77440 2009-12-08  Jim Meyering  <meyering@redhat.com>
77442         init.sh: avoid Solaris 10 /bin/sh portability problem
77443         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
77444         sourced script:
77445           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
77446           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
77447           bar
77448         tests/init.sh relied on that, accepting a --set-path=DIR argument,
77449         and two tests used that idiom.
77450         * tests/init.sh: Update suggested usage comments.
77451         (path_prepend_): New function, to be used in place
77452         of the --src-path=DIR option.
77453         (setup_): Move PATH-prepending code into path_prepend_.
77454         * tests/test-pread.sh: Adapt to new usage.
77455         * tests/test-xalloc-die.sh: Likewise.
77457 2009-12-08  Simon Josefsson  <simon@josefsson.org>
77459         * doc/gnulib.texi (Glibc pty.h): Add.
77460         * doc/glibc-functions/forkpty.texi: Add.
77461         * doc/glibc-functions/openpty.texi: Add.
77462         Suggested by Bruno Haible.
77464 2009-12-08  Eric Blake  <ebb9@byu.net>
77466         fchdir: fix logic bugs
77467         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
77468         * tests/test-fchdir.c (main): Enhance test.
77469         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
77470         is in use.
77472         dup2: fix logic bugs
77473         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
77474         REPLACE_DUP2 to decide when rpl_dup2 is needed.
77475         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
77476         exists.
77477         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
77479 2009-12-07  Eric Blake  <ebb9@byu.net>
77481         unlink: fix m4 detection
77482         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
77484         unistd-safer: add unit test
77485         * modules/unistd-safer-tests: New file.
77486         * tests/test-dup-safer.c: Likewise.
77487         * tests/test-cloexec.c (setmode): Avoid compiler warning.
77488         * tests/test-dup2.c (setmode): Likewise.
77489         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
77491         cloexec: preserve text vs. binary across dup_cloexec
77492         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
77493         mode.
77494         * modules/dup2-tests (Depends-on): Add binary-io.
77495         * modules/cloexec-tests (Depends-on): Likewise.
77496         * tests/test-dup2.c (setmode, is_mode): New helpers.
77497         (main): Add tests that translation mode is preserved.
77498         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
77499         Reported by Bruno Haible.
77501         mgetgroups: reduce duplicate listings
77502         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
77503         resulting array.
77504         * tests/test-chown.h (test_chown): Simplify client.
77505         * tests/test-lchown.h (test_lchown): Likewise.
77507 2009-12-06  Bruno Haible  <bruno@clisp.org>
77509         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
77510         value.
77512 2009-12-06  Bruno Haible  <bruno@clisp.org>
77514         * lib/progname.c: Include stdio.h, stdlib.h.
77515         (set_program_name): Reject a NULL argument.
77517 2009-12-05  Eric Blake  <ebb9@byu.net>
77519         pipe2-safer: new module
77520         * modules/pipe2-safer: New file.
77521         * lib/unistd-safer.h (pipe2_safer): New prototype.
77522         * lib/unistd--.h (pipe2): New wrapper.
77523         * lib/pipe-safer.c (pipe2_safer): New function.
77524         * modules/pipe (Depends-on): Add pipe2-safer.
77525         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
77527         stdlib-safer: preserve cloexec flag for mkostemp[s]
77528         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
77529         fd_safer_flag.
77531         unistd-safer: allow preservation of cloexec status via flag
77532         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
77533         prototypes.
77534         * lib/dup-safer.c (dup_safer_flag): New function.
77535         * lib/fd-safer.c (fd_safer_flag): Likewise.
77536         * modules/cloexec (configure.ac): Set witness.
77538         test-dup2: enhance test
77539         * modules/dup2-tests (Depends-on): Add cloexec.
77540         * tests/test-dup2.c (main): Enhance test.
77542         cloexec: add dup_cloexec
77543         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
77544         header and comments.
77545         * lib/cloexec.c (set_cloexec_flag): Add comments.
77546         (dup_cloexec): New function, with mingw implementation borrowed
77547         from...
77548         * lib/w32spawn.h (dup_noinherit): ...here.
77549         * modules/execute (Depends-on): Add cloexec.
77550         * modules/pipe (Depends-on): Likewise.
77551         * modules/cloexec (Depends-on): Add dup2.
77552         * modules/cloexec-tests (Files): New file.
77553         * tests/test-cloexec.c: Likewise.
77555         test-xalloc-die: fix test for mingw
77556         * modules/xalloc-die-tests (Files): Add tests/init.sh.
77557         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
77558         directory and .exe suffix off argv[0] output.
77560         test-fseeko: fix test for mingw
77561         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
77562         than undefining fseek, so test will pass on mingw.
77564 2009-12-05  Bruno Haible  <bruno@clisp.org>
77566         * lib/progname.h (set_program_name): Clarify specification.
77567         * lib/progname.c (set_program_name): Likewise.
77568         Reported by Jim Meyering.
77570 2009-12-05  Jim Meyering  <meyering@redhat.com>
77572         maint.mk: backslash-escape parens in default regexp
77573         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
77574         backslash-escape the literal parentheses.
77576         maint.mk: news-date-check: use grep -E
77577         * top/maint.mk (today): Define a Make variable, not a...
77578         (news-date-check): ...shell variable.
77579         (news-date-regexp): Use the Make variable.
77580         Use grep's -E option.  Change the failing diagnostic to mention
77581         the variable, $(news-date-regexp).
77583 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
77585         maintainer-makefile: allow customization of NEWS entry format
77586         * top/maint.mk (news-date-regexp): New overridable variable.
77587         (news-date-check): Use it.
77589 2009-12-04  Eric Blake  <ebb9@byu.net>
77591         mgetgroups: add xgetgroups, and avoid ENOSYS failures
77592         * lib/mgetgroups.h (xgetgroups): New prototype.
77593         * lib/mgetgroups.c (xgetgroups): New wrapper.
77594         (mgetgroups): Handle ENOSYS.
77595         * modules/mgetgroups (Depends-on): Add realloc.
77596         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
77598         mgetgroups: avoid argument promotion issues with -1
77599         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
77600         for invalid gid_t.
77601         * tests/test-chown.h (getegid, test_chown): Likewise.
77602         * tests/test-lchown.h (getegid, test_lchown): Likewise.
77604 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
77606         exclude: Fix header file problems.
77607         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
77609 2009-12-01  Jim Meyering  <meyering@redhat.com>
77611         fts: fts_open: do not let an empty string cause immediate failure
77612         This is required in support of GNU rm, for which the command
77613         "rm A '' B" must process and remove both A and B, in spite of
77614         the empty string argument.
77615         * lib/fts.c (fts_open): Do not let the presence of an empty string
77616         cause fts_open to fail immediately.  Most fts-using tools must be
77617         able to process all arguments, in order, and can be expected to
77618         diagnose such arguments themselves.
77620 2009-11-30  Eric Blake  <ebb9@byu.net>
77622         utimens: fix compilation error
77623         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
77624         Declare variable at right scope.
77626 2009-11-29  Jim Meyering  <meyering@redhat.com>
77628         bootstrap: handle perl-5.11's changed --version output
77629         * build-aux/bootstrap (get_version): Handle perl separately,
77630         since perl-5.11's --version output is different.
77632 2009-11-28  Jim Meyering  <meyering@redhat.com>
77634         userspec: depend on the inttostr module, too
77635         * modules/userspec (Depends-on): Add inttostr.
77637         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
77638         * lib/userspec.c (parse_with_separator): Do not accept a user ID
77639         number of MAXUID when it evaluates to (uid_t) -1.
77640         Likewise for group ID.  Reported by Matt McCutchen in
77641         <http://savannah.gnu.org/bugs/?28113>
77643         userspec: reformat to use spaces, not TABs
77644         * lib/userspec.c: Expand TABs to spaces.
77645         Add Emacs' "indent-tabs-mode: nil" hint.
77647 2009-11-27  Eric Blake  <ebb9@byu.net>
77649         getopt-gnu: flush out another BSD bug
77650         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
77651         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
77652         flush out BSD bug.
77653         * tests/test-getopt.h (test_getopt): End lists with NULL.
77654         * tests/test-getopt_long.h (test_getopt_long): Likewise.
77655         (test_getopt_long_posix): Enhance test.
77656         * modules/getopt-posix-tests (Depends-on): Add stdbool.
77657         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
77658         getopt-gnu.
77659         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
77660         Likewise.
77662 2009-11-27  Simon Josefsson  <simon@josefsson.org>
77664         * modules/idpriv-droptemp-tests (Notice): Fix text.
77666 2009-11-27  Jim Meyering  <meyering@redhat.com>
77668         test-xalloc-die: avoid spurious failure due to libtool argv difference
77669         In a libtool-enabled project, this test would fail due to a difference
77670         in the emitted program name, e.g.,
77671         -test-xalloc-die: memory exhausted
77672         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
77673         Use program to avoid that.
77674         * modules/xalloc-die-tests (Depends-on): Add progname.
77675         * tests/test-xalloc-die.c: Include progname.h".
77676         (program_name): Remove decl.
77677         (main): Call set_program_name.
77678         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
77680 2009-11-26  Richard Jones  <rjones@redhat.com>
77682         w32sock: leave win32 error in place.
77683         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
77685 2009-11-26  Eric Blake  <ebb9@byu.net>
77687         init.sh: suggest to use skip_ and fail_ functions in comments
77688         * tests/init.sh: Add a sentence.
77690 2009-11-25  Bruno Haible  <bruno@clisp.org>
77692         init.sh: add documentation in comments
77693         * tests/init.sh: Add some developer and user documentation.
77695 2009-11-26  Jim Meyering  <meyering@redhat.com>
77697         init.sh: accommodate even those who specify bogus srcdir manually
77698         * tests/init.sh: Normally, srcdir is guaranteed by automake and
77699         configure-time tests to be sanitized, so that there is no need to
77700         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
77701         (with no double quotes) suffices.  However, since tests may be
77702         invoked manually, and since you may explicitly set srcdir to the
77703         name of a directory containing spaces, do quote its uses here.
77704         * tests/test-pread.sh: Likewise.
77705         Suggested by Bruno Haible.
77707         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
77708         * tests/test-pread.sh: Write no data into the pipe, because
77709         test-pread actually reads none.  This avoids a diagnostic,
77710         "bash: echo: write error: Broken pipe", that arises in the unusual
77711         event something is ignoring SIGPIPE, and might be interpreted
77712         as some sort of failure.  Reported by Bruno Haible.
77714 2009-11-25  Jim Meyering  <meyering@redhat.com>
77716         test-pread: cover failure with ESPIPE and EINVAL
77717         * tests/test-pread.c (main): Test for failure, too.
77718         * tests/test-pread.sh: Invoke with stdin on a pipe.
77719         Suggested by Eric Blake.
77721         pread: improvement and fix
77722         * modules/pread (Depends-on): Depend on lseek, for portability to
77723         e.g., mingw.  Suggested by Eric Blake.
77724         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
77726         unistd.in.h: correct declaration of pread
77727         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
77728         Reported by Richard W.M. Jones.
77730         test-pread.sh: distribute the test script
77731         * modules/pread-tests (Files): Include test-pread.sh.
77733         test-pread.sh: clean up
77734         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
77735         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
77736         That is unnecessary, since it's always ".".
77737         Suggestion from Eric Blake.
77739         test-pread.sh: make executable
77740         * tests/test-pread.sh: Set executable bit.
77741         Reported by Eric Blake.
77743         correct typo in test-pread.sh
77744         * tests/test-pread.sh: Add #! line.
77746         test pread
77747         * tests/test-pread.c: New file.
77748         * tests/test-pread.sh: Likewise.
77749         * modules/pread-tests: Likewise.
77751         pread: new module
77752         * modules/pread: New file.
77753         * lib/unistd.in.h (pread): Define/declare.
77754         * lib/pread.c (pread): New file.
77755         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
77756         * modules/unistd (Makefile.am): Substitute witnesses.
77757         * doc/posix-functions/pread.texi (pread): Update.
77758         * MODULES.html.sh: Add pread.
77760 2009-11-25  Jim Meyering  <meyering@redhat.com>
77762         tests/init.sh: new file to be used via most *.sh tests
77763         * tests/init.sh: New file.
77765 2009-11-25  Eric Blake  <ebb9@byu.net>
77767         utimens: work around older Linux failure with symlinks
77768         * lib/utimens.c (lutimensat_works_really): New variable.
77769         (fdutimens, lutimens): Use it to manage kernels that support
77770         nanosecond times on files, but not on symlinks.
77771         Reported by Ondřej Vašík.
77773         utimes: fix configure grammar
77774         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
77776 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
77778         regex: Fix fastmap for multibyte character ranges.
77779         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
77780         characters when a multibyte character range is included.
77782 2009-11-22  Andy Wingo  <wingo@pobox.com>
77784         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
77785         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
77787 2009-11-24  Bruno Haible  <bruno@clisp.org>
77789         doc: Most *_l functions exist in MacOS X 10.5.
77790         * doc/posix-functions/duplocale.texi: Update platforms list.
77791         * doc/posix-functions/freelocale.texi: Likewise.
77792         * doc/posix-functions/newlocale.texi: Likewise.
77793         * doc/posix-functions/uselocale.texi: Likewise.
77794         * doc/posix-functions/isalnum_l.texi: Likewise.
77795         * doc/posix-functions/isalpha_l.texi: Likewise.
77796         * doc/posix-functions/isblank_l.texi: Likewise.
77797         * doc/posix-functions/iscntrl_l.texi: Likewise.
77798         * doc/posix-functions/isdigit_l.texi: Likewise.
77799         * doc/posix-functions/isgraph_l.texi: Likewise.
77800         * doc/posix-functions/islower_l.texi: Likewise.
77801         * doc/posix-functions/isprint_l.texi: Likewise.
77802         * doc/posix-functions/ispunct_l.texi: Likewise.
77803         * doc/posix-functions/isspace_l.texi: Likewise.
77804         * doc/posix-functions/isupper_l.texi: Likewise.
77805         * doc/posix-functions/iswalnum_l.texi: Likewise.
77806         * doc/posix-functions/iswalpha_l.texi: Likewise.
77807         * doc/posix-functions/iswblank_l.texi: Likewise.
77808         * doc/posix-functions/iswcntrl_l.texi: Likewise.
77809         * doc/posix-functions/iswctype_l.texi: Likewise.
77810         * doc/posix-functions/iswdigit_l.texi: Likewise.
77811         * doc/posix-functions/iswgraph_l.texi: Likewise.
77812         * doc/posix-functions/iswlower_l.texi: Likewise.
77813         * doc/posix-functions/iswprint_l.texi: Likewise.
77814         * doc/posix-functions/iswpunct_l.texi: Likewise.
77815         * doc/posix-functions/iswspace_l.texi: Likewise.
77816         * doc/posix-functions/iswupper_l.texi: Likewise.
77817         * doc/posix-functions/iswxdigit_l.texi: Likewise.
77818         * doc/posix-functions/isxdigit_l.texi: Likewise.
77819         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
77820         * doc/posix-functions/strcasecmp_l.texi: Likewise.
77821         * doc/posix-functions/strcoll_l.texi: Likewise.
77822         * doc/posix-functions/strfmon_l.texi: Likewise.
77823         * doc/posix-functions/strftime_l.texi: Likewise.
77824         * doc/posix-functions/strncasecmp_l.texi: Likewise.
77825         * doc/posix-functions/strxfrm_l.texi: Likewise.
77826         * doc/posix-functions/tolower_l.texi: Likewise.
77827         * doc/posix-functions/toupper_l.texi: Likewise.
77828         * doc/posix-functions/towctrans_l.texi: Likewise.
77829         * doc/posix-functions/towlower_l.texi: Likewise.
77830         * doc/posix-functions/towupper_l.texi: Likewise.
77831         * doc/posix-functions/wcscoll_l.texi: Likewise.
77832         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
77833         * doc/posix-functions/wctrans_l.texi: Likewise.
77834         * doc/posix-functions/wctype_l.texi: Likewise.
77835         * doc/glibc-functions/strptime_l.texi: Likewise.
77836         * doc/glibc-functions/strtod_l.texi: Likewise.
77837         * doc/glibc-functions/strtof_l.texi: Likewise.
77838         * doc/glibc-functions/strtol_l.texi: Likewise.
77839         * doc/glibc-functions/strtold_l.texi: Likewise.
77840         * doc/glibc-functions/strtoll_l.texi: Likewise.
77841         * doc/glibc-functions/strtoul_l.texi: Likewise.
77842         * doc/glibc-functions/strtoull_l.texi: Likewise.
77843         * doc/glibc-functions/wcsftime_l.texi: Likewise.
77844         * doc/glibc-functions/wcstod_l.texi: Likewise.
77845         * doc/glibc-functions/wcstof_l.texi: Likewise.
77846         * doc/glibc-functions/wcstol_l.texi: Likewise.
77847         * doc/glibc-functions/wcstold_l.texi: Likewise.
77848         * doc/glibc-functions/wcstoll_l.texi: Likewise.
77849         * doc/glibc-functions/wcstoul_l.texi: Likewise.
77850         * doc/glibc-functions/wcstoull_l.texi: Likewise.
77852 2009-11-24  Bruno Haible  <bruno@clisp.org>
77854         duplocale: Fix logic bug.
77855         * lib/duplocale.c: Don't include <langinfo.h>.
77856         (_NL_LOCALE_NAME): Remove macro.
77857         (rpl_duplocale): Use setlocale instead of nl_langinfo.
77858         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
77860 2009-11-23  Jim Meyering  <meyering@redhat.com>
77862         test-update-copyright: don't hard-code /usr/bin/perl
77863         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
77864         perl to print the current year.  Gilles Espinasse reported that
77865         the replaced use of perl was hard-coded as /usr/bin/perl.
77867 2009-11-23  Bruno Haible  <bruno@clisp.org>
77869         duplocale: Add support for glibc 2.3.x.
77870         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
77872 2009-11-22  Bruno Haible  <bruno@clisp.org>
77874         vasnprintf: Tiny optimization.
77875         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
77876         MacOS X.
77878 2009-11-22  Bruno Haible  <bruno@clisp.org>
77880         Tests for module 'duplocale'.
77881         * modules/duplocale-tests: New file.
77882         * tests/test-duplocale.c: New file.
77884         New module 'duplocale'.
77885         * m4/duplocale.m4: New file.
77886         * lib/locale.in.h (duplocale): New declaration.
77887         * lib/duplocale.c: New file.
77888         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
77889         gl_LOCALE_H_DEFAULTS): New macros.
77890         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
77891         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
77892         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
77893         REPLACE_DUPLOCALE.
77894         * modules/duplocale: New file.
77895         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
77897 2009-11-22  Bruno Haible  <bruno@clisp.org>
77899         * modules/locale-tests (configure.ac): Test for newlocale function.
77900         * tests/test-locale.c: When the system has extended locale functions,
77901         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
77903         locale: Make locale_t available when possible.
77904         * lib/locale.in.h: Include <xlocale.h> when it exists.
77905         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
77906         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
77907         * modules/locale (Depends-on): Add extensions.
77908         (Makefile.am): Also substitute HAVE_XLOCALE_H.
77909         * doc/posix-headers/locale.texi: Document the problem with locale_t.
77911 2009-11-22  Bruno Haible  <bruno@clisp.org>
77913         Add comments.
77914         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
77915         invocation.
77916         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
77917         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
77918         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
77920 2009-11-22  Bruno Haible  <bruno@clisp.org>
77922         error: account for the possibility of freopen (stdout).
77923         * lib/error.c: Include <unistd.h>.
77924         (flush_stdout): New function, extracted from error and error_at_line.
77925         Determine stdout's fd dynamically.
77926         (error, error_at_line): Invoke flush_stdout.
77927         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
77928         * modules/error (Depends-on): Add unistd.
77930 2009-11-22  Bruno Haible  <bruno@clisp.org>
77932         diffseq: Add comment.
77933         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
77935 2009-11-22  Jim Meyering  <meyering@redhat.com>
77937         c-stack: avoid defining an unused static function
77938         * lib/c-stack.c (find_stack_direction): Do not define this function
77939         when it will not be used.
77941         diffseq: avoid spurious gcc warnings
77942         * lib/diffseq.h (IF_LINT2): Define.
77943         (compareseq): Use it to initialize two members of "part".
77944         This avoids two used-uninitialized warnings.
77946 2009-11-21  Jim Meyering  <meyering@redhat.com>
77948         c-stack: avoid "ignoring return value of `write'" warning
77949         * lib/c-stack.c: Include "ignore-value.h".
77950         (die): Explicitly ignore each write return value.
77951         * modules/c-stack (Depends-on): Add ignore-value.
77953 2009-11-21  Bruno Haible  <bruno@clisp.org>
77955         diffseq: reduce scope of variable 'best'.
77956         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
77957         variable, earlier used for two different purposes.
77959 2009-11-21  Jim Meyering  <meyering@redhat.com>
77961         diffseq: remove useless assignment to "best"
77962         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
77963         assignment.  At that point "best" is already guaranteed to be zero.
77965 2009-11-20  Eric Blake  <ebb9@byu.net>
77967         build: mention ftp redirector in release announcements
77968         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
77969         values that used to come from cfg.mk; mention FTP redirect URL.
77970         * build-aux/announce-gen: Mention the mirror list.
77971         Suggested by Karl Berry.
77973         nanosleep: improve port to mingw
77974         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
77975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
77976         LIB_NANOSLEEP, but only when needed.
77977         * modules/select (Link): Document LIBSOCKET.
77978         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
77979         enough.
77981         nanosleep: work around cygwin bug
77982         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
77983         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
77984         bug.
77985         (getnow): Delete, not needed.
77986         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
77987         LIB_CLOCK_GETTIME.
77988         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
77989         clock-time, gettime.
77990         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
77991         bug.
77992         * modules/nanosleep-tests: New test.
77993         * tests/test-nanosleep.c: New file.
77995         sleep: work around cygwin bug
77996         * lib/sleep.c (rpl_sleep): Work around the bug.
77997         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
77998         (gl_PREREQ_SLEEP): Delete unused macro.
77999         * modules/sleep (Depends-on): Add verify.
78000         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78001         * modules/unistd (Makefile.am): Substitute witness.
78002         * lib/unistd.in.h (sleep): Update prototype.
78003         * doc/posix-functions/sleep.texi (sleep): Document the bug.
78004         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
78005         * modules/sleep-tests (Depends-on): Check for alarm.
78007 2009-11-20  Jim Meyering  <meyering@redhat.com>
78009         maint.mk: improve sc_prohibit_magic_number_exit
78010         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
78011         so it does not match uses like System.exit(1).
78012         Add comments showing how to correct all offenders.
78014 2009-11-19  Eric Blake  <ebb9@byu.net>
78016         xalloc-die-tests: add missing library
78017         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
78019         test-xvasprintf: silence compiler warnings
78020         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
78021         empty string from gcc.
78023 2009-11-19  Jim Meyering  <meyering@redhat.com>
78025         xfreopen: new module, from coreutils
78026         * modules/xfreopen: New module.
78027         * lib/xfreopen.c: New file.
78028         * lib/xfreopen.h: New file.
78029         * MODULES.html.sh (File stream based Input/Output"): Add it.
78031 2009-11-19  Eric Blake  <ebb9@byu.net>
78033         manywarnings: depend on warnings
78034         * modules/manywarnings (Depends-on): Add warnings.
78036         build: avoid compiler warnings
78037         * lib/select.c (rpl_select): Delete unused variable.
78038         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
78040 2009-11-18  Eric Blake  <ebb9@byu.net>
78042         tests: avoid false negative with --with-packager
78043         * tests/test-version-etc.sh: Discard packager information.
78044         * tests/test-argp-version-etc-1.sh: Likewise.
78045         Reported by Mike Frysinger.
78047         utimens: fix regression on Solaris
78048         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
78049         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
78050         can only change fd timestamps via futimesat.  Instead, use an
78051         additional witness macro to avoid BSD bug.
78052         Reported by Jim Meyering.
78054 2009-11-17  Eric Blake  <ebb9@byu.net>
78056         usleep: use it to simplify tests
78057         * modules/stat-time-tests (Depends-on): Add usleep.
78058         (configure.ac): Drop usleep check.
78059         * modules/chown-tests (Depends-on, configure.ac): Likewise.
78060         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
78061         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
78062         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
78063         * modules/openat-tests (Depends-on, configure.ac): Likewise.
78064         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
78065         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
78066         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
78067         Likewise.
78068         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
78069         * tests/test-lchown.h (nap): Likewise.
78070         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
78071         * tests/test-stat-time.c (nap): Likewise.
78072         * tests/test-utimens-common.h (nap): Update comments.
78074         usleep: new module
78075         * modules/usleep: New file.
78076         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
78077         * lib/usleep.c (usleep): Likewise.
78078         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
78079         * modules/unistd (Makefile.am): Substitute witnesses.
78080         * lib/unistd.in.h (usleep): Add declaration.
78081         * doc/pastposix-functions/usleep.texi (usleep): Document this.
78082         * MODULES.html.sh (Date and time): Likewise.
78083         * modules/usleep-tests (Depends-on): New test.
78084         * tests/test-usleep.c: New file.
78086         chown: work around OpenBSD bug
78087         * lib/chown.c (rpl_chown): Work around the bug.
78088         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
78089         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
78090         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
78091         * modules/chown (Depends-on): Add stdbool.
78092         * modules/lchown (Depends-on): Likewise.
78093         * doc/posix-functions/chown.texi (chown): Document the bug.
78094         * doc/posix-functions/lchown.texi (lchown): Likewise.
78095         * tests/test-lchown.h (test_chown): Relax test.
78097         mkstemp: avoid conflict with C++ keyword template
78098         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
78099         * lib/mkostemp.c (mkostemp): Likewise.
78100         * lib/mkostemps.c (mkostemps): Likewise.
78101         * lib/mkstemp.c (mkstemp): Likewise.
78102         * lib/mkstemps.c (mkstemps): Likewise.
78104         xalloc-die-tests: optimize
78105         * tests/test-xalloc-die.sh: Reduce number of processes.
78107 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78109         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
78110         patch from ludo@gnu.org (Ludovic Courtès).
78112 2009-11-17  Jim Meyering  <meyering@redhat.com>
78114         version-etc: use proper license string
78115         * modules/version-etc (License): Use LGPL, not LGPLv3+.
78116         * modules/version-etc-fsf: Likewise.
78118 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78120         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
78121         printed to stdout.  Deal with EOL differences.
78123 2009-11-17  Eric Blake  <ebb9@byu.net>
78125         unsetenv: work around Solaris bug
78126         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
78127         * lib/unsetenv.c (rpl_unsetenv): Work around it.
78128         Reported by Jim Meyering.
78130         vasnprintf: avoid compiler warnings
78131         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
78132         variables.
78133         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
78135 2009-11-17  Simon Josefsson  <simon@josefsson.org>
78137         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
78138         settings since xalloc-die is no longer the self test,
78139         xalloc-die.sh is.
78141 2009-11-17  Jim Meyering  <meyering@redhat.com>
78143         test-xalloc-die.sh: make the code agree with the commit log
78144         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
78145         at the end, just in case you happen to have a test-xalloc-die
78146         program in some other PATH directory.
78148         test-xalloc-die.sh: fix a portability bug
78149         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
78150         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
78151         Otherwise, argv[0] (as often seen in diagnostics) would be too
78152         system-dependent, sometimes with, and sometimes without the leading "./".
78154         version-etc-fsf: relax license to LGPLv3+
78155         * modules/version-etc-fsf (License): Relax license.
78157 2009-11-16  Eric Blake  <ebb9@byu.net>
78159         xalloc-die-tests: avoid printing null pointer
78160         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
78161         shell script.
78162         * tests/test-xalloc-die.c (program_name): Declare.
78163         * tests/test-xalloc-die.sh (tmpfiles): New file.
78165         setenv, unsetenv: work around various bugs
78166         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
78167         (setenv) [HAVE_SETENV]: Work around bugs.
78168         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
78169         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
78170         for bugs.
78171         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
78172         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
78173         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
78174         * modules/stdlib (Makefile.am): Update substitutions.
78175         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
78176         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
78177         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
78178         * modules/setenv-tests: New test.
78179         * modules/unsetenv-tests: Likewise.
78180         * tests/test-setenv.c: New file.
78181         * tests/test-unsetenv.c: Likewise.
78183 2009-11-16  Jim Meyering  <meyering@redhat.com>
78185         version-etc: relax license to LGPLv3+
78186         * modules/version-etc (License): Relax license.
78188         better AC_REQUIRE expanded-before-required-warning avoidance
78189         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
78190         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
78191         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
78192         which is no longer needed.
78194 2009-11-16  Eric Blake  <ebb9@byu.net>
78196         test-freading: clean up temporary file
78197         * tests/test-freading.c (main): Remove file on success, and use
78198         ASSERT more liberally.
78199         Reported by Jim Meyering.
78201 2009-11-16  Jim Meyering  <meyering@redhat.com>
78203         avoid new AC_REQUIRE expanded-before-required warnings
78204         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
78205         merely using it.
78206         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
78207         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
78209 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78211         * tests/test-xalloc-die.c: New file.
78212         * modules/xalloc-die-tests: New file.
78213         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
78214         XFAIL_TESTS so it can be appended by modules.
78216 2009-11-15  Simon Josefsson  <simon@josefsson.org>
78218         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
78219         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
78221 2009-11-14  Eric Blake  <ebb9@byu.net>
78223         fnmatch: avoid compiler warning
78224         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
78225         to silence compiler warning about mismatch signedness in ?:.
78226         Reported by Robert Millan.
78228         intprops: add double-inclusion guard
78229         * lib/intprops.h: Allow idempotent includes.
78230         Suggested by Bruce Korb.
78232         openat: detect Solaris fchownat bug
78233         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
78234         penalizing glibc chownat when only lchownat is broken.
78235         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
78236         trailing slash bugs.
78237         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
78238         * modules/openat-tests (Files): Include more files.
78239         (Depends-on): Add mgetgroups, sleep, stat-time.
78240         (configure.ac): Add additional checks.
78241         (Makefile.am): Build new test.
78242         * tests/test-fchownat.c: New file.
78244         lchown: detect Solaris and FreeBSD bug
78245         * lib/lchown.c (rpl_lchown): Work around bug.
78246         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
78247         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78248         * modules/unistd (Makefile.am): Populate it.
78249         * lib/unistd.in.h (lchown): Update declaration.
78250         * doc/posix-functions/lchown.texi (lchown): Document the bug.
78251         * modules/lchown-tests: New file.
78252         * tests/test-lchown.h (test_lchown): Likewise.
78253         * tests/test-lchown.c (main): Likewise.
78255         chown: detect Solaris and FreeBSD bug
78256         * lib/chown.c (rpl_chown): Work around bug.
78257         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
78258         (gl_PREREQ_CHOWN): Delete.
78259         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
78260         * modules/unistd (Makefile.am): Populate it.
78261         * lib/unistd.in.h (chown): Update declaration.
78262         * lib/lchown.c (chown): Update client.
78263         * modules/lchown (Depends-on): Add lstat.
78264         * doc/posix-functions/chown.texi (chown): Document the bug.
78265         * doc/posix-functions/getgroups.texi (getgroups): Document
78266         getgroups pitfall.
78267         * modules/chown-tests: New file.
78268         * tests/test-chown.h (test_chown): Likewise.
78269         * tests/test-chown.c (main): Likewise.
78271 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
78273         gnulib-tool: correctly detect absence of m4 directories
78274         * gnulib-tool: Avoid extra newline on data passed to wc -l.
78276 2009-11-14  Jim Meyering  <meyering@redhat.com>
78278         maint.mk: Prohibit inclusion of "xalloc.h" without use.
78279         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78281 2009-11-14  John W. Eaton  <jwe@gnu.org>
78283         strftime.h: wrap function declaration in extern "C" block
78284         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
78286 2009-11-13  Eric Blake  <ebb9@byu.net>
78288         getgroups: avoid compiler warning
78289         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
78291         getgroups: work around FreeBSD bug
78292         * lib/getgroups.c (rpl_getgroups): Work around the bug.
78293         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
78294         * doc/posix-functions/getgroups.texi (getgroups): Document it.
78295         * tests/test-getgroups.c (main): Fix buffer overrun.
78297         getgroups: avoid compilation failure
78298         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
78299         * modules/getgroups (Depends-on): Add stdint.
78301 2009-11-13  Jim Meyering  <meyering@redhat.com>
78303         test-getgroups: avoid compilation failure
78304         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
78306 2009-11-13  Eric Blake  <ebb9@byu.net>
78308         mgetgroups: new module, taken from coreutils
78309         * modules/mgetgroups: New file.
78310         * lib/mgetgroups.h: Likewise.
78311         * lib/mgetgroups.c (mgetgroups): Likewise.
78312         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
78313         * MODULES.html.sh (Users and groups): Mention it.
78315         getgroups: don't expose GETGROUPS_T to user
78316         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
78317         an element at a time if GETGROUPS_T is wrong size.
78318         * lib/getugroups.h (getugroups): Change signature.
78319         * lib/unistd.in.h (getgroups): Likewise.
78320         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
78321         signature needs fixing.
78322         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
78323         AC_TYPE_GETGROUPS.
78324         * modules/group-member (Depends-on): Add getgroups.
78325         * lib/group-member.c (group_info, get_group_info): Use gid_t.
78326         (group_member): Rely on getgroups replacement.
78327         * lib/getugroups.c (getugroups): Use gid_t.
78328         * tests/test-getgroups.c (main): Likewise.
78329         * NEWS: Mention the signature change.
78330         * doc/posix-functions/getgroups.texi (getgroups): Mention the
78331         problem with signature.
78332         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
78333         GETGROUPS_T is still useful for setgroups.
78335         getgroups, getugroups: provide stubs for mingw
78336         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
78337         * lib/getugroups.c (getugroups): Likewise.
78338         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
78339         function.  Modernize replacement scheme.
78340         (gl_PREREQ_GETGROUPS): Delete.
78341         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
78342         * modules/getgroups (configure.ac): Declare witness.
78343         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
78344         * modules/unistd (Depends-on): Substitute witness.
78345         * lib/unistd.in.h (getgroups): Declare replacement.
78347         getgroups: avoid calling exit
78348         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
78349         drop xalloc.
78350         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
78351         dependencies.
78352         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
78353         exiting, in the rare case of malloc failure.
78355         getgroups: fix logic error
78356         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
78357         has more than 20 groups.
78358         * modules/getgroups-tests: New test.
78359         * tests/test-getgroups.c: New file.
78361 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78363         * tests/test-base64.c: Improve.
78365 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78367         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
78368         Blake <ebb9@byu.net>.
78370 2009-11-13  Simon Josefsson  <simon@josefsson.org>
78372         * tests/test-xvasprintf.c: Add %s%s related checks.
78374 2009-11-12  Eric Blake  <ebb9@byu.net>
78376         version-etc: match standards.texi style
78377         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
78378         and use <> only for URLs.
78380 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
78382         fts: do not fail on a submount during traversal
78383         * lib/fts.c (fts_build): Read the stat info again after opening
78384         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
78385         Original report at http://bugzilla.redhat.com/501848.
78387 2009-11-12  Jim Meyering  <meyering@redhat.com>
78389         bootstrap: sync from coreutils
78390         * build-aux/bootstrap (bootstrap_epilogue): New function.
78391         Use git_modules_config in one more place.  This make bootstrap's
78392         --gnulib-srcdir option more useful for testing.
78394         bootstrap: generalize autoheader check
78395         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
78396         AC_CONFIG_HEADERS.
78398 2009-11-11  Eric Blake  <ebb9@byu.net>
78400         mkfifoat: use new modules for Solaris and BSD bugs
78401         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
78402         * lib/mkfifoat.c (mknodat): Split...
78403         * lib/mknodat.c (mknodat): ...into new file.
78404         * modules/mkfifoat (Files): Ship new file.
78405         (Depends-on): Add mkfifo, mknod.
78406         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
78407         (Depends-on): Add symlink.
78408         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
78409         redundant with test_mkfifo.h.
78410         (do_mkfifoat, do_mknodat): New helpers.
78412         mknod: new module
78413         * modules/mknod: New file.
78414         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
78415         * lib/mknod.c (mknod): Likewise.
78416         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78417         defaults.
78418         * modules/sys_stat (Makefile.am): Substitute them.
78419         * lib/sys_stat.in.h (mknod): Declare replacement.
78420         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78421         Document it.
78422         * doc/posix-functions/mknod.texi (mknod): Likewise.
78423         * modules/mknod-tests: New test.
78424         * tests/test-mknod.c: Likewise.
78426         mkfifo: new module
78427         * modules/mkfifo: New file.
78428         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
78429         * lib/mkfifo.c (mkfifo): Likewise.
78430         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
78431         defaults.
78432         * modules/sys_stat (Makefile.am): Substitute them.
78433         * lib/sys_stat.in.h (mkfifo): Declare replacement.
78434         * MODULES.html.sh (Support for systems lacking POSIX:2008):
78435         Document it.
78436         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
78437         * modules/mkfifo-tests: New test.
78438         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
78439         from test-mkfifoat.c.
78440         * tests/test-mkfifo.c: New file.
78442         readlink: detect FreeBSD bug
78443         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
78444         slash on symlink.
78445         * doc/posix-functions/readlink.texi (readlink): Document the bug.
78446         * tests/test-readlink.h (test_readlink): Enhance test.
78448         symlink: detect FreeBSD bug
78449         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
78450         slash on symlink.
78451         * doc/posix-functions/symlink.texi (symlink): Document the bug.
78452         * tests/test-symlink.h (test_symlink): Enhance test.
78454 2009-11-10  Eric Blake  <ebb9@byu.net>
78456         link: detect FreeBSD bug
78457         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
78458         symlink.
78459         * doc/posix-functions/link.texi (link): Document the bug.
78460         * tests/test-link.h (test_link): Enhance test.
78461         * tests/test-linkat.c (main): Update caller.
78463         unlink, remove: detect FreeBSD bug
78464         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
78465         slash on symlink.
78466         * doc/posix-functions/unlink.texi (unlink): Document the bug.
78467         * doc/posix-functions/remove.texi (remove): Likewise.
78468         * tests/test-unlink.h (test_unlink): Enhance test.
78469         * tests/test-remove.c (main): Likewise.
78471 2009-11-09  Eric Blake  <ebb9@byu.net>
78473         rename: detect FreeBSD bug
78474         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
78475         slash on symlink.
78476         * modules/renameat-tests (Depends-on): Add filenamecat.
78477         * tests/test-rename.h (test_rename): Allow one more errno.
78478         * tests/test-renameat.c (main): Likewise.
78479         * doc/posix-functions/rename.texi (rename): Document the bug.
78481         open: detect FreeBSD bug
78482         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
78483         symlink.
78484         * doc/posix-functions/open.texi (open): Document the bug.
78485         * doc/posix-functions/utimes.texi (utimes): Likewise.
78486         * tests/test-open.h (test_open): Add parameters, and test symlink
78487         handling.
78488         * tests/test-open.c (main): Adjust caller.
78489         * tests/test-fcntl-safer.c (main): Likewise.
78490         * modules/open-tests (Depends-on): Add stdbool, symlink.
78491         * modules/fcntl-safer-tests (Depends-on): Likewise.
78492         * tests/test-openat.c (main): Add test-open tests.
78494         stat: detect FreeBSD bug
78495         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
78496         symlink.
78497         * doc/posix-functions/stat.texi (stat): Document the bug.
78498         * tests/test-stat.h (test_stat_func): Add argument.
78499         * tests/test-stat.c (main): Adjust caller.
78500         * tests/test-fstatat.c (main): Likewise.
78501         * modules/stat-tests (Depends-on): Add stdbool, symlink.
78502         Reported by Jim Meyering.
78504 2009-11-09  James Youngman  <jay@gnu.org>
78506         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
78507         * lib/strftime.c: Correct placement of #include "ignore-value.h".
78509 2009-11-08  Jim Meyering  <meyering@redhat.com>
78511         utimens: remove invalid futimesat call
78512         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
78513         It used the file descriptor of the target file as the DIR_FD
78514         parameter and NULL as the file name.  That caused failure with
78515         errno == EFAULT on FreeBSD-8.0-rc2
78517 2009-11-07  Eric Blake  <ebb9@byu.net>
78519         fflush, freadseek: use fseeko, not fseek
78520         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
78521         (clear_ungetc_buffer): Avoid potential problems on large files.
78522         * lib/freadseek.c (freadseek): Likewise.
78523         * modules/freadseek (Depends-on): Add fseeko.
78524         * modules/fseek (configure.ac): Set a witness.
78525         * tests/test-fflush.c (main): Use fseeko.
78526         * tests/test-fpurge.c (fseek): Disable link warning.
78527         * tests/test-freadable.c (fseek): Likewise.
78528         * tests/test-freading.c (fseek): Likewise.
78529         * tests/test-fseeko.c (fseek): Likewise.
78530         * tests/test-ftell.c (fseek): Likewise.
78531         * tests/test-ftello.c (fseek): Likewise.
78532         * tests/test-fwritable.c (fseek): Likewise.
78533         * tests/test-fwriting.c (fseek): Likewise.
78535 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78537         * modules/memchr (Depends-on): Drop getpagesize dependency.
78539 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78541         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
78542         Reported by Ludovic Courtès.
78543         * build-aux/pmccabe2html: Improve example usage.
78544         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
78546 2009-11-06  Jim Meyering  <meyering@redhat.com>
78548         do-release-commit-and-tag: New module.
78549         Automate the release-commit and tag process.
78550         * build-aux/do-release-commit-and-tag: New script, from coreutils.
78551         * modules/do-release-commit-and-tag: New file.
78552         * MODULES.html.sh (Support for maintaining and releasing): Add it.
78554 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78556         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
78557         because test-select.c uses inet_pton.
78559 2009-11-06  Simon Josefsson  <simon@josefsson.org>
78561         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
78562         GETADDRINFO_LIB.  Bump serial number.
78563         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
78564         Suggested by Eric Blake <ebb9@byu.net>.
78566 2009-11-05  Eric Blake  <ebb9@byu.net>
78568         strtod: detect darwin bug
78569         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
78570         Reported by Leo Davis.
78572         freopen-safer: new module
78573         * modules/freopen-safer: New module.
78574         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
78575         * lib/freopen-safer.c (freopen_safer): New file.
78576         * lib/stdio-safer.h (freopen_safer): New declaration.
78577         * lib/stdio--.h (freopen): New override.
78578         * MODULES.html.sh (File stream based Input/Output): Mention it.
78579         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
78580         freopen-safer module.
78581         * doc/posix-functions/stderr.texi (stderr): Likewise.
78582         * doc/posix-functions/stdin.texi (stdin): Likewise.
78583         * doc/posix-functions/stdout.texi (stdout): Likewise.
78584         * modules/freopen-safer-tests: New test.
78585         * tests/test-reopen-safer.c: New file.
78587 2009-11-05  Jim Meyering  <meyering@redhat.com>
78589         maint.mk: Prohibit inclusion of "close-stream.h" without use.
78590         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
78592 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78594         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
78596 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78598         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
78600 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78602         Fix link error.
78603         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78604         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78606 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78608         * tests/test-func.c: Also test value of __func__.
78610 2009-11-05  Simon Josefsson  <simon@josefsson.org>
78612         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
78613         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
78615 2009-11-05  Bruno Haible  <bruno@clisp.org>
78617         Fix link error.
78618         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
78619         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
78620         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
78622 2009-11-05  Bruno Haible  <bruno@clisp.org>
78624         Tests for module 'inet_pton'.
78625         * modules/inet_pton-tests: New file.
78626         * tests/test-inet_pton.c: New file.
78628 2009-11-05  Bruno Haible  <bruno@clisp.org>
78630         Tests for module 'inet_ntop'.
78631         * modules/inet_ntop-tests: New file.
78632         * tests/test-inet_ntop.c: New file.
78634 2009-11-04  Eric Blake  <ebb9@byu.net>
78636         stdlib-safer: wrap all mkstemp variants
78637         * modules/mkostemp (configure.ac): Set witness.
78638         * modules/mkostemps (configure.ac): Likewise.
78639         * modules/mkstemps (configure.ac): Likewise.
78640         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
78641         (mkstemps_safer): Wrap more functions.
78642         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
78643         wrapping.
78644         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
78645         (mkstemps_safer): Implement the wrappers.
78647         mkstemps, mkostemps: new modules
78648         * modules/mkostemps: New module.
78649         * modules/mkstemps: Likewise.
78650         * lib/mkostemps.c (mkostemps): New file.
78651         * lib/mkstemps.c (mkstemps): Likewise.
78652         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
78653         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
78654         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
78655         * modules/stdlib (Makefile.am): Substitute them.
78656         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
78657         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
78658         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
78659         * doc/gnulib.texi (Glibc stdlib.h): Include them.
78660         * MODULES.html.sh (File system functions): Mention them.
78662         tempname: resync from glibc
78663         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
78664         same values for __GT_FILE as glibc.  Abort even when assertions
78665         are disabled.
78666         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
78667         match its value otherwise.  Allow idempotent inclusion.
78668         * lib/mkdtemp.c (mkdtemp): Adjust caller.
78669         * lib/mkostemp.c (mkostemp): Likewise.
78670         * lib/mkstemp.c (mkstemp): Likewise.
78671         * lib/tmpfile.c (tmpfile): Likewise.
78672         * NEWS: Document this.
78674         utimens: fix use of futimens on older Linux
78675         * lib/utimens.c (fdutimens): Use updated, rather than original,
78676         timespec to avoid bug in older Linux kernel.
78677         Reported by Simon Josefsson.
78679 2009-11-04  Bruno Haible  <bruno@clisp.org>
78681         Make num_processors more flexible and consistent.
78682         * lib/nproc.h (enum nproc_query): New type.
78683         (num_processors): Add a 'query' argument.
78684         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
78685         (num_processors): Add a 'query' argument. Test the value of the
78686         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
78687         mingw, count the number of CPUs available for the current process.
78688         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
78689         Check for sched_getaffinity and sched_getaffinity_np.
78690         * modules/nproc (Depends-on): Add c-ctype, extensions.
78691         * NEWS: Mention the change.
78693 2009-11-03  Bruno Haible  <bruno@clisp.org>
78695         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
78697 2009-11-03  Jim Meyering  <meyering@redhat.com>
78699         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
78700         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
78701         if it is defined.
78703 2009-11-02  Eric Blake  <ebb9@byu.net>
78705         mktime, timegm: share common declaration
78706         * lib/mktime-internal.h: New file.
78707         * lib/mktime.c: Use it rather than open-coding a declaration.
78708         * lib/timegm.c: Likewise.
78709         * modules/mktime (Files): Ship it.
78710         * modules/timegm (Files): Likewise.
78711         Suggested by Bruno Haible.
78713         test-update-copyright: update test to match script changes
78714         * tests/test-update-copyright.sh: Avoid hard-coding perl
78715         location.  Don't update *.bak created by earlier runs.
78717 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
78718             Simon Josefsson  <simon@josefsson.org>
78719             Bruno Haible  <bruno@clisp.org>
78721         Fix link error on Solaris 8.
78722         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
78723         also in libnsl. Define also INET_PTON_LIB.
78724         * modules/inet_pton (Link): New section.
78726 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78727             Bruno Haible  <bruno@clisp.org>
78729         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
78730         * modules/inet_ntop (Link): New section.
78731         Reported by Boyan Kasarov <bkasarov@gmail.com>.
78733 2009-11-02  Eric Blake  <ebb9@byu.net>
78735         maint: avoid compiler warnings in m4 macros
78736         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
78737         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
78739 2009-11-02  Simon Josefsson  <simon@josefsson.org>
78741         * m4/pmccabe2html.m4: Remove file.
78742         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
78743         function.  Change maintainer.
78744         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
78745         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
78746         Courtès).
78748 2009-10-31  Eric Blake  <ebb9@byu.net>
78750         fseeko: fix m4 regression
78751         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
78752         regression from 2009-10-27.
78753         Reported by Ralf Wildenhues.
78755 2009-10-31  Jim Meyering  <meyering@redhat.com>
78757         inttostr: aesthetics and improved (compile-time) safety
78758         Define inttype_is_signed rather than inttype_is_unsigned,
78759         since the sole use is via "#if inttype_is_signed".
78760         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
78761         inttype_is_unsigned.
78762         * lib/offtostr.c (inttype_is_signed): Likewise.
78763         * lib/uinttostr.c (inttype_is_signed): Likewise.
78764         * lib/umaxtostr.c (inttype_is_signed): Likewise.
78765         * lib/inttostr.c (inttostr): Use verify to cross-check the
78766         inttype_is_signed value and the signedness of the actual type.
78767         * modules/inttostr (Depends-on): Add verify.
78769 2009-10-30  Eric Blake  <ebb9@byu.net>
78771         build: avoid compiler warnings
78772         * lib/fchmodat.c (lchmod): Mark unused variables.
78773         * lib/getopt.c (_getopt_initialize): Likewise.
78774         * lib/mktime.c (__mktime_internal): Provide prototype.
78775         * lib/inttostr.c (inttostr): Avoid compiler warning even with
78776         older gcc that do not understand #pragma GCC diagnostic.
78777         * lib/uinttostr.c (inttype_is_unsigned): Define.
78778         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
78780 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
78782         stat: fix compilation on AIX
78783         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
78784         only see struct stat64.
78786 2009-10-30  Eric Blake  <ebb9@byu.net>
78788         exclude: make more robust
78789         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
78790         rather than masking a coding bug.
78791         Suggested by Bruno Haible.
78793 2009-10-30  Jim Meyering  <meyering@redhat.com>
78795         perl scripts: remove #!/usr/bin/perl in favor of more portable...
78796         Rather than putting #!/usr/bin/perl on the first line,
78797         start with a variant of what's recommended by "man perlrun" that
78798         invokes the first "perl" program from your shell's search path.
78799         * build-aux/gitlog-to-changelog: Replace #!... as above.
78800         Add a "Local Variables" perl mode setting.
78801         Prompted by a patch from Ludovic Courtès.
78802         Improved by Eric Blake.
78803         * build-aux/useless-if-before-free: Likewise.
78804         * build-aux/announce-gen: Likewise.
78805         * build-aux/update-copyright: Likewise.
78807 2009-10-29  Eric Blake  <ebb9@byu.net>
78809         filenamecat-lgpl: adjust clients
78810         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
78811         filenamecat.
78812         * modules/renameat (Depends-on): Likewise.
78814         filenamecat: split into filenamecat-lgpl
78815         * modules/filenamecat-lgpl: New module.
78816         * modules/filenamecat (Files): Move library-safe files into
78817         filenamecat-lgpl.
78818         (Depends-on): Add filenamecat-lgpl.
78819         (configure.ac): Declare witness.
78820         * lib/filenamecat.h (file_name_concat): Only declare when using
78821         GPL module.
78822         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
78823         Move...
78824         * lib/filenamecat-lgpl.c: ...into new file.
78825         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
78826         (gl_FILE_NAME_CONCAT): Use it.
78827         * MODULES.html.sh (File system functions): Mention new module.
78829         argp: avoid memory leak
78830         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
78831         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
78832         base_name, since the latter malloc()s and can call exit().
78833         Leak introduced 2006-07-03.
78835         dirname-lgpl: adjust clients that don't need full dirname
78836         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
78837         * modules/filenamecat (Depends-on): Likewise.
78838         * modules/linkat (Depends-on): Likewise.
78839         * modules/mkancesdirs (Depends-on): Likewise.
78840         * modules/mkdir (Depends-on): Likewise.
78841         * modules/openat (Depends-on): Likewise.
78842         * modules/savewd (Depends-on): Likewise.
78843         * modules/rename (Depends-on): Likewise.
78844         (License): Relax license.
78845         * modules/mkdir-tests (Depends-on): Drop progname.
78846         (Makefile.am): Delete unneeded LDADD.
78847         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
78849         dirname: split into dirname-lgpl
78850         * modules/dirname-lgpl: New module.
78851         * modules/dirname (Files): Move library-safe files into
78852         dirname-lgpl.
78853         (Depends-on): Add dirname-lgpl.
78854         (configure.ac): Declare witness.
78855         * modules/double-slash-root (License): Relax license.
78856         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
78857         module.
78858         * lib/dirname.c (dir_len, mdir_name): Move...
78859         * lib/dirname-lgpl.c: ...into new file.
78860         * lib/basename.c (last_component, base_len): Move...
78861         * lib/basename-lgpl.c: ...into new file.
78862         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
78863         (gl_DIRNAME): Use it.
78864         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
78865         Mention new module.
78866         * modules/dirname-tests (Depends-on): Add progname.
78867         * tests/test-dirname.c (program_name): Delete.
78869         mkdir: make safe for libraries
78870         * modules/mkdir (Depends-on): Drop xalloc.
78871         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
78872         exit.
78874         tests: avoid some compiler warnings
78875         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
78876         literals.
78877         * tests/test-memchr.c (main): Avoid type mismatch.
78878         * tests/test-arpa_inet.c (main): Avoid unused parameters.
78879         * tests/test-base64.c (main): Likewise.
78880         * tests/test-getdelim.c (main): Likewise.
78881         * tests/test-gethostname.c (main): Likewise.
78882         * tests/test-getline.c (main): Likewise.
78883         * tests/test-netinet_in.c (main): Likewise.
78884         * tests/test-select.c (open_server_socket, main): Likewise.
78885         * tests/test-select-stdin.c (main): Likewise.
78886         * tests/test-sockets.c (main): Likewise.
78887         * tests/test-strsignal.c (main): Likewise.
78888         * tests/test-sys_select.c (main): Likewise.
78889         * tests/test-sys_socket.c (main): Likewise.
78890         * tests/test-u64.c (main): Likewise.
78891         * tests/test-xfprintf-posix.c (main): Likewise.
78892         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
78894         sockets: avoid compiler warning
78895         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
78897         maint: detect usage(1) and other suspicious exits
78898         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
78900 2009-10-29  Jim Meyering  <meyering@redhat.com>
78902         timespec: long-to-int truncation could make timespec_cmp malfunction
78903         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
78904         a multiple of 2^32 nanoseconds as no difference.
78906 2009-10-28  Jim Meyering  <meyering@redhat.com>
78908         fprintftime: wrap macro code argument in "do {...} while(0)"
78909         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
78910         cpy macro must be a statement that can be followed by a semicolon.
78911         Now that the else clause contains a comment and is hence longer
78912         than one line, I require curly braces.  That in turn requires
78913         that we wrap this code block in the standard do...while(0).
78915         fprintftime: remove stray semicolon from previous change
78916         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
78918         fprintftime: avoid a warning about ignored fwrite return value
78919         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
78920         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
78921         that is unsafe.
78922         * modules/fprintftime (Depends-on): Add ignore-value.
78924         exclude: avoid an unwarranted warning
78925         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
78927 2009-10-27  Eric Blake  <ebb9@byu.net>
78929         fseek: avoid compilation failure when fflush is replaced
78930         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
78931         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
78932         module is in use.
78933         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
78934         module is not in use; since REPLACE_FSEEK worked otherwise.
78935         (GNULIB_FTELLO): Likewise for ftell.
78936         Reported by Ian Beckwith and others.
78938 2009-10-27  Bruno Haible  <bruno@clisp.org>
78940         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
78941         Reported by Jim Meyering.
78943 2009-10-27  Jim Meyering  <jim@meyering.net>
78944             Bruno Haible  <bruno@clisp.org>
78946         Avoid warning despite dropping the return value of fwrite.
78947         * lib/unicodeio.c: Include ignore-value.h.
78948         (fwrite_success_callback): Explicitly ignore fwrite's return value.
78949         * modules/unicodeio (Depends-on): Add ignore-value.
78951 2009-10-26  Eric Blake  <ebb9@byu.net>
78953         areadlinkat: fix fallback path
78954         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
78955         pointer and zero.
78957 2009-10-22  Pádraig Brady  <P@draigBrady.com>
78959         Use a better IO block size for modern systems
78960         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
78961         * lib/md2.c: Likewise.
78962         * lib/md4.c: Likewise.
78963         * lib/md5.c: Likewise.
78964         * lib/sha1.c: Likewise.
78965         * lib/sha256.c: Likewise.
78966         * lib/sha512.c: Likewise.
78968 2009-10-22  Eric Blake  <ebb9@byu.net>
78970         tests: avoid several compiler warnings
78971         * tests/test-getcwd.c (main): Avoid buffer underflow.
78972         * tests/test-getdate.c (main): String literals are not safe with
78973         putenv, so use setenv.  Declare unused argument.
78974         * modules/getdate-tests (Depends-on): Add setenv.
78975         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
78976         problems with string literals in char *.
78977         * tests/test-hash.c (main): Avoid shadowing declaration.
78978         (insert_new): Treat string literals as char const *.
78979         * tests/test-getopt.h (test_getopt): Likewise.
78980         (getopt_loop): Alter types to minimize casting elsewhere.
78981         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
78982         (test_getopt_long_posix): Likewise.
78983         (do_getopt_long): Add wrapper to minimize casting.
78984         * tests/test-atexit.c (clear_temp_file): Use void.
78985         * tests/test-areadlink-with-size.c (main): Declare unused
78986         arguments.
78987         * tests/test-areadlink.c (main): Likewise.
78988         * tests/test-areadlinkat-with-size.c (main): Likewise.
78989         * tests/test-areadlinkat.c (main): Likewise.
78990         * tests/test-canonicalize-lgpl.c (main): Likewise.
78991         * tests/test-canonicalize.c (main): Likewise.
78992         * tests/test-dirent-safer.c (main): Likewise.
78993         * tests/test-dirname.c (main): Likewise.
78994         * tests/test-dup2.c (main): Likewise.
78995         * tests/test-fchdir.c (main): Likewise.
78996         * tests/test-fcntl-h.c (main): Likewise.
78997         * tests/test-fcntl-safer.c (main): Likewise.
78998         * tests/test-fdopendir.c (main): Likewise.
78999         * tests/test-fdutimensat.c (main): Likewise.
79000         * tests/test-fflush.c (main): Likewise.
79001         * tests/test-filenamecat.c (main): Likewise.
79002         * tests/test-filevercmp.c (main): Likewise.
79003         * tests/test-fopen-safer.c (main): Likewise.
79004         * tests/test-fopen.c (main): Likewise.
79005         * tests/test-fpending.c (main): Likewise.
79006         * tests/test-fpurge.c (main): Likewise.
79007         * tests/test-freading.c (main): Likewise.
79008         * tests/test-fstatat.c (main): Likewise.
79009         * tests/test-fsync.c (main): Likewise.
79010         * tests/test-futimens.c (main): Likewise.
79011         * tests/test-getndelim2.c (main): Likewise.
79012         * tests/test-gettimeofday.c (main): Likewise.
79013         * tests/test-getopt.c (main): Likewise.
79014         * tests/test-i-ring.c (main): Likewise.
79015         * tests/test-inttypes.c (main): Likewise.
79016         * tests/test-link.c (main): Likewise.
79017         * tests/test-lstat.c (main): Likewise.
79018         * tests/test-math.c (main): Likewise.
79019         * tests/test-md5.c (main): Likewise.
79020         * tests/test-memchr2.c (main): Likewise.
79021         * tests/test-memrchr.c (main): Likewise.
79022         * tests/test-mkdir.c (main): Likewise.
79023         * tests/test-mkdirat.c (main): Likewise.
79024         * tests/test-mkfifoat.c (main): Likewise.
79025         * tests/test-open.c (main): Likewise.
79026         * tests/test-openat-safer.c (main): Likewise.
79027         * tests/test-openat.c (main): Likewise.
79028         * tests/test-quotearg.c (main): Likewise.
79029         * tests/test-rawmemchr.c (main): Likewise.
79030         * tests/test-readlink.c (main): Likewise.
79031         * tests/test-remove.c (main): Likewise.
79032         * tests/test-rename.c (main): Likewise.
79033         * tests/test-renameat.c (main): Likewise.
79034         * tests/test-rmdir.c (main): Likewise.
79035         * tests/test-sha1.c (main): Likewise.
79036         * tests/test-signal.c (main): Likewise.
79037         * tests/test-sigaction.c (main): Likewise.
79038         * tests/test-stat.c (main): Likewise.
79039         * tests/test-stat-time.c (main): Likewise.
79040         * tests/test-stddef.c (main): Likewise.
79041         * tests/test-stdint.c (main): Likewise.
79042         * tests/test-stdio.c (main): Likewise.
79043         * tests/test-stdlib.c (main): Likewise.
79044         * tests/test-strchrnul.c (main): Likewise.
79045         * tests/test-strerror.c (main): Likewise.
79046         * tests/test-string.c (main): Likewise.
79047         * tests/test-strtod.c (main): Likewise.
79048         * tests/test-strverscmp.c (main): Likewise.
79049         * tests/test-symlink.c (main): Likewise.
79050         * tests/test-symlinkat.c (main): Likewise.
79051         * tests/test-sys_stat.c (main): Likewise.
79052         * tests/test-sys_time.c (main): Likewise.
79053         * tests/test-time.c (main): Likewise.
79054         * tests/test-unistd.c (main): Likewise.
79055         * tests/test-unlink.c (main): Likewise.
79056         * tests/test-unlinkat.c (main): Likewise.
79057         * tests/test-utimens.c (main): Likewise.
79058         * tests/test-utimensat.c (main): Likewise.
79059         * tests/test-version-etc.c (main): Likewise.
79060         * tests/test-wchar.c (main): Likewise.
79061         * tests/test-wctype.c (main): Likewise.
79062         * tests/test-xprintf-posix.c (main): Likewise.
79063         * tests/test-posixtm.c (main): Likewise.
79064         (STREQ): Delete unused macro.
79065         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
79066         shadowed variables.
79067         * tests/test-memchr.c (main): Likewise.
79069 2009-10-21  Eric Blake  <ebb9@byu.net>
79071         areadlinkat: avoid failure on older glibc
79072         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
79073         rather than mis-comparing 0 against FUNC_RESULT of char*.
79075 2009-10-21  Bruno Haible  <bruno@clisp.org>
79077         * modules/stpncpy (License): Relicense under LGPLv2+.
79078         Reported by David Lutterkort <lutter@redhat.com>.
79080 2009-10-20  Eric Blake  <ebb9@byu.net>
79082         utimensat: work around Solaris 9 bug
79083         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
79084         has trailing slash bugs.
79085         * tests/test-lutimens.h (test_lutimens): Enhance test.
79086         * tests/test-utimens.h (test_utimens): Likewise.
79087         * doc/posix-functions/utime.texi (utime): Enhance documentation.
79088         * doc/posix-functions/utimes.texi (utimes): Likewise.
79089         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79090         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
79091         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
79092         * doc/posix-functions/futimens.texi (futimens): Likewise.
79094         fdutimensat: new module
79095         * modules/fdutimensat: New file.
79096         * lib/fdutimensat.c (fdutimensat): Likewise.
79097         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
79098         * MODULES.html.sh (File system functions): Mention module.
79099         * modules/fdutimensat-tests: New test.
79100         * tests/test-fdutimensat.c: Likewise.
79102         doc: regenerate INSTALL
79103         * doc/INSTALL: Reflect recent autoconf update.
79104         * doc/INSTALL.ISO: Likewise.
79105         * doc/INSTALL.UTF-8: Likewise.
79107 2009-10-20  Pádraig Brady  <P@draigBrady.com>
79109         acl: warn if ACL support is not detected
79110         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
79112 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
79114         * lib/nproc.h: Add extern "C" block for C++.
79116 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
79117             Bruno Haible  <bruno@clisp.org>
79119         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
79120         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
79121         * doc/posix-functions/isalpha.texi: Likewise.
79122         * doc/posix-functions/isblank.texi: Likewise.
79123         * doc/posix-functions/iscntrl.texi: Likewise.
79124         * doc/posix-functions/isdigit.texi: Likewise.
79125         * doc/posix-functions/isgraph.texi: Likewise.
79126         * doc/posix-functions/islower.texi: Likewise.
79127         * doc/posix-functions/isprint.texi: Likewise.
79128         * doc/posix-functions/ispunct.texi: Likewise.
79129         * doc/posix-functions/isspace.texi: Likewise.
79130         * doc/posix-functions/isupper.texi: Likewise.
79131         * doc/posix-functions/isxdigit.texi: Likewise.
79133 2009-10-18  Bruno Haible  <bruno@clisp.org>
79135         Tests for module 'isblank'.
79136         * modules/isblank-tests: New file.
79137         * tests/test-isblank.c: New file.
79139         New module 'isblank'.
79140         * lib/isblank.c: New file.
79141         * m4/isblank.m4: New file.
79142         * modules/isblank: New file.
79143         * doc/posix-functions/isblank.texi: Mention the new module.
79145 2009-10-18  Bruno Haible  <bruno@clisp.org>
79147         New module 'ctype'.
79148         * lib/ctype.in.h: New file.
79149         * m4/ctype.m4: New file.
79150         * modules/ctype: New file.
79151         * doc/posix-headers/ctype.texi: Mention the new module.
79153 2009-10-18  Jim Meyering  <meyering@redhat.com>
79155         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
79156         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
79157         right after its initialization, rather than farther down.
79158         Keeping these in close proximity makes it easier to ensure
79159         that each such variable is initialized.  E.g.,
79161             LIB_CLOCK_GETTIME=
79162             AC_SUBST([LIB_CLOCK_GETTIME])
79164         This change also increments these serial numbers.
79165         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
79166         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79167         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79169 2009-10-18  Bruno Haible  <bruno@clisp.org>
79171         Don't let environment variables perturb build.
79172         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
79173         (gl_PREREQ_GETHRXTIME): ... not here.
79175 2009-10-18  Bruno Haible  <bruno@clisp.org>
79177         Avoid symlink attack in localcharset module.
79178         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
79179         (O_NOFOLLOW): Define fallback.
79180         (get_charset_aliases): Don't open the file if it is a symbolic link.
79181         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
79182         gl_FCNTL_H.
79183         (gl_FCNTL_H): Require it.
79184         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
79185         * modules/localcharset (Files): Add m4/fcntl_h.m4.
79186         Reported by Fergal Glynn <fglynn@veracode.com>.
79188 2009-10-18  Bruno Haible  <bruno@clisp.org>
79190         Implement nproc for mingw.
79191         * lib/nproc.c: Include <windows.h>
79192         (num_processors): On native Windows platforms, try GetSystemInfo.
79194 2009-10-18  Bruno Haible  <bruno@clisp.org>
79196         Implement nproc for IRIX.
79197         * lib/nproc.c: Include <sys/sysmp.h>.
79198         (num_processors): On IRIX systems, try sysmp.
79199         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
79201 2009-10-18  Bruno Haible  <bruno@clisp.org>
79203         Implement nproc for HP-UX.
79204         * lib/nproc.c: Include <sys/pstat.h>
79205         (num_processors): On HP-UX systems, try pstat_getdynamic.
79206         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
79207         pstat_getdynamic.
79209 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
79210             Bruno Haible  <bruno@clisp.org>
79212         Implement nproc for NetBSD, OpenBSD.
79213         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
79214         (ARRAY_SIZE): New macro.
79215         (num_processors): On BSD systems, try sysctl of HW_NCPU.
79216         * m4/nproc.m4: New file.
79217         * modules/nproc (Files): Add m4/nproc.m4.
79218         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
79219         (Makefile.am): Instead, augment lib_SOURCES.
79221 2009-10-18  Bruno Haible  <bruno@clisp.org>
79223         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
79224         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
79225         sys/param.h.
79227 2009-10-16  Eric Blake  <ebb9@byu.net>
79229         utimensat: new module
79230         * modules/utimensat: New file.
79231         * lib/utimensat.c (utimensat): Likewise.
79232         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
79233         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
79234         so we can work around Linux bugs.
79235         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79236         * modules/sys_stat (Makefile.am): Substitute them.
79237         * lib/sys_stat.in.h (utimensat): Declare it.
79238         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79239         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79240         * modules/utimensat-tests: New test.
79241         * tests/test-utimensat.c: Likewise.
79243         utimens: let lutimens work on non-symlinks
79244         * lib/utimens.c (lutimens): Fall back to utimens rather than
79245         failing with ENOSYS, when file is not a symlink.
79246         (utimens): Reduce redirection.
79247         * tests/test-lutimens.h (test_lutimens): Update test to cover
79248         non-symlinks.
79249         * tests/test-utimens.h (test_utimens): Update test to cover
79250         symlinks.
79251         * tests/test-utimens.c (main): Update caller.
79253         utimens: cache whether utimensat syscall works
79254         * lib/utimens.c (utimensat_works_really): New cache variable.
79255         (fdutimens, lutimens): Use it to avoid failing syscall.
79257         test-stat-time, test-utimens: improve portability
79258         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
79259         ext4 on alpha, and for cygwin.
79260         * tests/test-utimens-common.h: New file.
79261         (nap): Factor delays into single function.
79262         * tests/test-lutimens.h (test_lutimens): Use new header.
79263         * tests/test-futimens.h (test_futimens): Likewise.
79264         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
79265         timestamps to occur from same machine, as was done previously for
79266         test_utimens.
79267         * modules/utimens-tests (Files): Ship new file.
79268         * modules/futimens-tests (Files): Likewise.
79269         Reported in part by Jim Meyering.
79271         sys_stat: sort replacement declarations
79272         * lib/sys_stat.in.h: Sort declarations.
79273         * lib/futimens.c (futimens): Fix typo.
79275 2009-10-15  Jim Meyering  <meyering@redhat.com>
79277         don't let environment settings perturb build
79278         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
79279         could cause a configure-time and/or build-time malfunction.
79280         Typically, a configure-time function-in-library test is performed
79281         via code like this:
79283           LIB_VAR=
79284           AC_SUBST([LIB_VAR])
79285           prefix_saved_LIBS=$LIBS
79286             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
79287                        [test "$ac_cv_search_FUNC" = "none required" ||
79288                         LIB_VAR=$ac_cv_search_FUNC])
79289           LIBS=$prefix_saved_LIBS
79291         However, in each of the files affected by this change, the LIB_VAR=
79292         initialization was omitted.  Thus, when set in the environment, its
79293         value would propagate into generated Makefiles when FUNC is not found
79294         in LIB_NAME.
79295         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
79296         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
79297         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79299 2009-10-14  Eric Blake  <ebb9@byu.net>
79301         fchdir: avoid infinite recursion in mingw
79302         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
79303         recursing.
79305         test-stat-time: port to mingw
79306         * tests/test-stat-time.c (force_unlink): Return a value.
79307         (test_ctime) [W32]: Fix compilation error.
79308         (nap): Don't call usleep with too large an argument.  Use
79309         force_unlink.
79310         * doc/pastposix-functions/usleep.texi (usleep): Document the
79311         portability issue.
79313 2009-10-13  Jim Meyering  <meyering@redhat.com>
79315         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
79316         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
79317         * modules/pipe-filter-ii: Likewise.
79318         * modules/sys_socket-tests: Likewise.
79319         * modules/tsearch-tests: Likewise.
79320         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
79321         (check): Depend on it.
79323 2009-10-12  Eric Blake  <ebb9@byu.net>
79325         utimens-tests: port to NFS file systems
79326         * tests/test-utimens.h (test_utimens): Refactor utimecmp
79327         comparisons to avoid spurious failures from timestamp drift
79328         between NFS machines.
79330 2009-10-12  Eric Blake  <ebb9@byu.net>
79332         stat-time-tests: minor cleanups
79333         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
79334         * tests/test-stat-time.c (nap): Separate assignment from call.
79335         Suggested by Paolo Bonzini and Bruno Haible.
79337         sys_stat: guarantee struct timespec
79338         * lib/sys_stat.in.h (includes): Always include <time.h>
79339         * modules/sys_stat (Depends-on): Add time.
79340         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
79341         mode_t permission values.
79342         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
79343         get at subsecond timestamps.
79345 2009-10-10  Eric Blake  <ebb9@byu.net>
79347         futimens: new module
79348         * modules/futimens: New file.
79349         * lib/futimens.c (futimens): Likewise.
79350         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
79351         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
79352         we can work around Linux bugs.
79353         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
79354         * modules/sys_stat (Makefile.am): Substitute them.
79355         * lib/sys_stat.in.h (futimens): Declare it.
79356         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79357         * doc/posix-functions/futimens.texi (futimens): Likewise.
79358         * modules/futimens-tests: New test.
79359         * tests/test-futimens.c: Likewise.
79361         utimens: introduce fdutimens
79362         * lib/utimens.h (fdutimens): New prototype.
79363         * lib/utimens.c (gl_futimens): Move guts...
79364         (fdutimens): ...to new interface.
79365         * tests/test-utimens.c (do_fdutimens): Use it.
79367         utimens: add UTIME_NOW and UTIME_OMIT support
79368         * lib/utimens.c (validate_timespec, update_timespec): New helper
79369         functions.
79370         (gl_futimens, lutimens): Use them.
79371         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
79372         stdbool, sys_stat.
79373         (Link): Mention resulting library dependency.
79374         * modules/utimecmp (Link): Likewise.
79375         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
79376         (Makefile.am): Pick up library dependency.
79377         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
79378         definition.
79379         * tests/test-sys_stat.c: Test the definitions.
79380         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
79381         * NEWS: Document library dependency.
79383         utimecmp: support symlink timestamps
79384         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
79385         hashing when possible.  Use pathconf when available.
79386         (SYSCALL_RESOLUTION): Recognize tighter resolution.
79387         * modules/utimecmp (Depends-on): Add lstat.
79389         utimens: add lutimens interface
79390         * lib/utimens.c (lutimens): New function.
79391         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
79392         * lib/utimens.h (lutimens): Declare new interface.
79393         * tests/test-utimens.c (main): Enhance test.
79394         * tests/test-lutimens.h (test_lutimens): New file.
79395         * modules/utimens-tests (Files): Distribute it.
79396         (Depends-on): Add symlink.
79397         (configure.ac): Check for usleep.
79399         utimens: validate futimens usage
79400         * lib/utimens.c (gl_futimens): Require valid fd up front, using
79401         fewer syscalls on failure later on.  Avoid compiler warning on
79402         mingw.
79403         * modules/utimens (Depends-on): Add dup2.
79405         utimens: add test
79406         * modules/utimens-tests: New test.
79407         * tests/test-utimens.h: New file.
79408         * tests/test-futimens.h: Likewise.
79409         * tests/test-utimens.c: Likewise.
79411         doc: mention timestamp portability issues
79412         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
79413         instead.
79414         * doc/posix-functions/utime.texi (utime): Likewise.
79415         * doc/posix-functions/utimes.texi (utimes): Likewise.
79416         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
79417         instead.
79418         * doc/posix-functions/futimens.texi (futimens): Mention utimens
79419         module.
79420         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
79421         Mention weakness with symlink timestamps.
79422         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
79423         to utimensat/futimens instead.
79424         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
79426         test-dup2: enhance test
79427         * tests/test-dup2.c (main): Also check AT_FDCWD.
79429         test-stat-time: avoid more spurious failures
79430         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
79431         xfs; and avoid race if the two timestamps cross quantization edge.
79433         relocatable: prefer 'file system' over 'filesystem'
79434         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
79435         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
79436         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
79437         * doc/relocatable.texi (Enabling Relocatability): Likewise.
79438         * lib/relocatable.c (compute_curr_prefix): Likewise.
79440 2009-10-10  Jim Meyering  <meyering@redhat.com>
79442         stat-time-tests: check for the usleep function
79443         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
79445 2009-10-10  Bruno Haible  <bruno@clisp.org>
79447         * modules/xnanosleep: Put the Link section after the Include section.
79449 2009-10-09  Eric Blake  <ebb9@byu.net>
79451         dup2: work around FreeBSD 6.1 bug
79452         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
79453         * doc/posix-functions/dup2.texi (dup2): Document it.
79454         Reported by Nelson H. F. Beebe and Jim Meyering.
79456         test-stat-time: port to buggy NFS clients
79457         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
79458         (test_ctime): Also skip test if mtime and ctime are skewed.
79460         maint: prefer 'file system' over 'filesystem'
79461         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
79462         * doc/posix-functions/lstat.texi (lstat): Likewise.
79463         * lib/file-has-acl.c (file_has_acl): Likewise.
79464         * lib/fwriteerror.c [TEST]: Likewise.
79465         * tests/test-areadlink.h (test_areadlink): Likewise.
79466         * tests/test-areadlinkat-with-size.c (main): Likewise.
79467         * tests/test-areadlinkat.c (main): Likewise.
79468         * tests/test-canonicalize-lgpl.c (main): Likewise.
79469         * tests/test-canonicalize.c (main): Likewise.
79470         * tests/test-fstatat.c (main): Likewise.
79471         * tests/test-linkat.c (main): Likewise.
79472         * tests/test-lstat.h (test_lstat_func): Likewise.
79473         * tests/test-mkdir.h (test_mkdir): Likewise.
79474         * tests/test-readlink.h (test_readlink): Likewise.
79475         * tests/test-remove.c (main): Likewise.
79476         * tests/test-rename.h (test_rename): Likewise.
79477         * tests/test-renameat.c (main): Likewise.
79478         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79479         * tests/test-symlink.h (test_symlink): Likewise.
79480         * tests/test-symlinkat.c (main): Likewise.
79481         * tests/test-unlink.h (test_unlink_func): Likewise.
79482         * tests/test-unlinkat.c (main): Likewise.
79484         maint: make realtime library usage explicit
79485         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
79486         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
79487         * modules/settime (Link): Likewise.
79488         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
79490         test-stat-time: speed up execution
79491         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
79492         warning on mingw.
79493         (nap): New helper function.
79494         (prepare_test): Use it to reduce sleep time.
79495         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
79496         execution.
79497         * modules/stat-time-tests (configure.ac): Check for usleep.
79499 2009-10-09  Jim Meyering  <meyering@redhat.com>
79501         selinux-h: always use getfilecon wrappers
79502         * lib/getfilecon.c: New file.
79503         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
79504         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
79505         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
79506         (fgetfilecon): Provide a stub.
79507         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
79508         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
79509         file unconditionally.
79510         When <selinux/selinux.h> is found, arrange to use wrappers.
79511         * modules/selinux-h (Files): Add getfilecon.c.
79512         (Makefile.am): Substitute include-next-related bits
79513         into the now-always-generated selinux/selinux.h file.
79514         * doc/glibc-functions/lgetfilecon.texi: New file.
79515         * doc/glibc-functions/fgetfilecon.texi: New file.
79516         * doc/glibc-functions/getfilecon.texi: New file.
79517         * doc/glibc-functions/getfilecon-desc.texi: New file.
79518         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
79519         which to pull in the new files.
79520         * MODULES.html.sh (Misc): Add selinux-h.
79522 2009-10-08  Jim Meyering  <meyering@redhat.com>
79524         unistd: fix comment typo
79525         * lib/unistd.in.h (euidaccess): Fix a comment typo.
79527 2009-10-08  Eric Blake  <ebb9@byu.net>
79529         areadlink: use SIZE_MAX consistently
79530         * modules/areadlink (Depends-on): Add stdint.
79531         * modules/areadlink-with-size (Depends-on): Likewise.
79532         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
79533         gives NULL; drop sys/types, since unistd gives size_t; and add
79534         stdint for SIZE_MAX.
79535         (SIZE_MAX): Rely on headers.
79536         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
79537         and add stdint.
79538         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
79539         (SIZE_MAX): Likewise.
79540         (INITIAL_BUF_SIZE): Turn into enum.
79541         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
79543 2009-10-08  Jim Meyering  <meyering@redhat.com>
79545         areadlinkat: avoid compilation failure
79546         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
79547         Fix typo in comment.
79549 2009-10-07  Eric Blake  <ebb9@byu.net>
79551         areadlinkat-with-size: new module
79552         * modules/areadlinkat-with-size: New module.
79553         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
79554         * lib/areadlink.h (areadlinkat): Declare it.
79555         * MODULES.html.sh (File system functions): Mention it.
79556         * modules/areadlinkat-with-size-tests: New test.
79557         * tests/test-areadlinkat-with-size.c: New file.
79559         xreadlinkat: new module
79560         * modules/xreadlinkat: New module.
79561         * lib/xreadlinkat.c (xreadlinkat): New file.
79562         * lib/xreadlink.h (xreadlinkat): Declare it.
79563         * MODULES.html.sh (File system functions): Mention it.
79565         areadlinkat: new module
79566         * lib/at-func.c (FUNC_FAIL): New define.
79567         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
79568         * modules/areadlinkat: New module.
79569         * lib/linkat.c (areadlinkat): Move...
79570         * lib/areadlinkat.c (areadlinkat): ...to new file.
79571         * lib/areadlink.h (areadlinkat): Declare it.
79572         * modules/linkat (Depends-on): Add areadlinkat.
79573         * MODULES.html.sh (File system functions): Mention it.
79574         * modules/areadlinkat-tests: New test.
79575         * tests/test-areadlinkat.c: New file.
79577         areadlink, areadlink-with-size: add tests
79578         * modules/areadlink-tests: New test.
79579         * modules/areadlink-with-size-tests: Likewise.
79580         * tests/test-areadlink.h: New file.
79581         * tests/test-areadlink.c: Likewise.
79582         * tests/test-areadlink-with-size.c: Likewise.
79584         maint: minor cleanups
79585         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
79586         _UNUSED_PARAMETER_ instead.
79587         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
79588         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
79589         * modules/linkat-tests (Files): Distribute test-link.h.
79591         openat, utimens: whitespace cleanup
79592         * lib/openat.c: Prefer space throughout, rather than mix of 8
79593         spaces vs. tabs.
79594         * lib/at-func.c: Likewise.
79595         * lib/utimens.c: Likewise.
79597         openat: avoid using wrong fd
79598         * lib/openat.c (openat_permissive): Reject user's fd if saving the
79599         working directory chooses same fd.
79600         * lib/at-func.c (AT_FUNC_NAME): Likewise.
79602         mkdir, mkdirat: fix cygwin 1.5.x bug
79603         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
79604         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
79605         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
79606         bug.
79607         (gl_PREREQ_MKDIR): Delete unused macro.
79608         * modules/mkdir (Files): Track file rename.
79609         (configure.ac): Update macro name.
79610         * modules/openat (Depends-on): Add mkdir.
79611         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
79613         mkdir, mkdirat: add tests
79614         * modules/mkdir-tests: New test.
79615         * tests/test-mkdir.h: New file.
79616         * tests/test-mkdir.c: Likewise.
79617         * tests/test-mkdirat.c: Likewise.
79618         * modules/openat-tests (Files): Add new files.
79619         (Makefile.am): Run new test.
79621 2009-10-06  Eric Blake  <ebb9@byu.net>
79623         doc: tweak *at function documentation
79624         * doc/posix-functions/faccessat.texi (faccessat): Mention
79625         known issue with replacement.
79626         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
79627         * doc/posix-functions/linkat.texi (linkat): Likewise.
79628         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
79629         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
79630         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
79631         * doc/posix-functions/renameat.texi (renameat): Likewise.
79632         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
79634         openat: fix GNU/Hurd bug in unlinkat
79635         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
79636         broken.
79637         * doc/posix-functions/unlink.texi (unlink): Document this.
79638         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
79640         fdopendir: fix GNU/Hurd bug
79641         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
79642         allowing non-directory fds.
79643         * lib/fdopendir.c (rpl_fdopendir): Work around it.
79644         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
79645         * modules/dirent (Makefile.am): Substitute it.
79646         * lib/dirent.in.h (fdopendir): Declare replacement.
79647         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
79648         * tests/test-fdopendir.c (main): Test something other than
79649         /dev/null, since on Hurd that behaves like a directory.
79651         test-symlink: port to GNU/Hurd
79652         * tests/test-symlink.h (test_symlink): Relax expected errno.
79654         doc: tweak more cygwin information
79655         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
79656         now compatible with glibc.
79657         * doc/posix-functions/getopt.texi (getopt): Likewise.
79659         getopt-gnu: add another test
79660         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
79661         guarantee behavior relied on by m4.
79662         * tests/test-getopt.c (main): Use it.
79663         * modules/getopt-posix-tests (Depends-on): Add setenv.
79664         See http://lists.gnu.org/r/bug-m4/2006-09/msg00028.html.
79666         getopt: fix compilation on darwin
79667         * lib/getopt.in.h (includes): Leave breadcrumbs during system
79668         include.
79669         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
79670         Reported by Ludovic Courtès.
79672 2009-10-06  Bruno Haible  <bruno@clisp.org>
79674         * modules/size_max (Description): Discourage its use.
79675         Reported by Simon Josefsson.
79677 2009-10-06  Jim Meyering  <meyering@redhat.com>
79679         linkat: avoid compilation failure
79680         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
79682 2009-10-05  Eric Blake  <ebb9@byu.net>
79684         linkat: support Linux 2.6.17
79685         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
79686         linkat on Linux, but allow cache variable override.
79687         * lib/linkat.c (rpl_linkat): Define override.
79688         * modules/linkat (Depends-on): Add symlinkat.
79689         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
79690         * modules/unistd (Makefile.am): Substitute it.
79691         * lib/unistd.in.h (linkat): Declare replacement.
79692         Reported by Pádraig Brady.
79694         quotearg: port test to systems with C.UTF-8 locale
79695         * tests/test-quotearg.c (struct result_strings): Add another
79696         member, differentiating between C.ASCII and C.UTF-8 handling.
79697         (compare_strings): Add parameter.
79698         (main): Adjust all callers.
79700         getopt: avoid clash with FreeBSD _getopt_internal
79701         * lib/getopt.in.h (_getopt_internal): Override the name.
79702         * lib/getopt_int.h (includes): Pick up any overrides.
79703         Reported by Reuben Thomas.
79705         hash: allow C89 compilation
79706         * lib/hash.c (check_tuning): Move declaration before statement.
79707         Reported by Reuben Thomas.
79709 2009-10-05  Karl Berry  <karl@gnu.org>
79711         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
79713 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
79714             Bruno Haible  <bruno@clisp.org>
79716         * lib/uname.c (uname): Use a table-driven algorithm to compute
79717         Windows NT versions.
79719 2009-10-04  Bruno Haible  <bruno@clisp.org>
79721         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
79722         program_invocation_short_name.
79723         * modules/progname (configure.ac): Test for presence of
79724         program_invocation_short_name.
79725         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
79727 2009-10-04  Bruno Haible  <bruno@clisp.org>
79729         * lib/progname.c (set_program_name): Fix comment.
79730         Reported by Jim Meyering.
79732 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79733             Bruno Haible  <bruno@clisp.org>
79735         * lib/uname.c: Include <string.h>.
79736         (uname): Do only one call to GetVersionEx in the common case.
79738 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
79739             Bruno Haible  <bruno@clisp.org>
79741         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
79742         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
79743         (uname): Add support for Windows CE and various non-x86 CPU types.
79745 2009-10-03  Bruno Haible  <bruno@clisp.org>
79747         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
79748         invocation to tests/configure.ac.
79749         Reported by Ian Beckwith <ianb@erislabs.net>.
79751 2009-10-02  Eric Blake  <ebb9@byu.net>
79753         fchdir: avoid compiler warning
79754         * lib/fchdir.c (canonicalize_file_name)
79755         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
79757         test-open: support mingw errno values
79758         * tests/test-open.h (test_open): Relax test.
79759         * tests/test-fopen.h (test_fopen): Likewise.
79760         * tests/test-openat-safer.c (main): Likewise.
79762         open: fix opening directory on mingw
79763         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
79765         test-open: on GNU/Hurd, /dev/null is a directory
79766         * tests/test-fopen.h (main): Rename...
79767         (test_fopen): ...to this.  Use a guaranteed non-directory when
79768         confirming open behavior on trailing slash.
79769         * tests/test-openat-safer.c (main): Likewise.
79770         * tests/test-open.h (main): Likewise....
79771         (test_open): ...to this.
79772         * tests/test-fopen.c (main): Adjust caller.
79773         * tests/test-fopen-safer.c (main): Likewise.
79774         * tests/test-open.c (main): Likewise.
79775         * tests/test-fcntl-safer.c (main): Likewise.
79776         Reported by Samuel Thibault.
79778         rename, fchdir: don't ignore chdir failure
79779         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
79780         * lib/rename.c (rpl_rename) [W32]: Likewise.
79781         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
79782         an empty destination directory if source cannot be renamed,
79783         although there is still possibility for failure.
79784         * doc/posix-functions/rename.texi (rename): Document the race.
79785         Reported by Jim Meyering.
79787         maint: cleanup whitespace in recent commits
79788         * lib/rename.c (rpl_rename): Remove tabs.
79789         * tests/test-link.h (test_link): Likewise.
79790         * lib/fchdir.c (get_name): Likewise.
79791         Reported by Jim Meyering.
79793 2009-10-02  Ben Pfaff  <blp@gnu.org>
79795         relocatable-prog-wrapper: Add missing dependency on
79796         double-slash-root.
79797         * modules/relocatable-prog-wrapper: Add dependency.
79798         Reported by Ian Beckwith <ianb@erislabs.net>.
79800 2009-10-02  Eric Blake  <ebb9@byu.net>
79802         renameat: fix Solaris bugs
79803         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
79804         needed fixing.
79805         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
79806         * modules/stdio (Makefile.am): Substitute it.
79807         * lib/stdio.in.h (renameat): Declare replacement.
79808         * lib/renameat.c (rpl_renameat): Implement fix.
79810         renameat: new module
79811         * modules/renameat: New file.
79812         * lib/renameat.c (renameat): Likewise.
79813         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
79814         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
79815         * modules/stdio (Makefile.am): Substitute them.
79816         * lib/stdio.in.h (renameat): Declare it.
79817         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
79818         * doc/posix-functions/renameat.texi (renameat): Likewise.
79819         * modules/renameat-tests: New test.
79820         * tests/test-renameat.c: Likewise.
79822         rename: fix mingw bugs
79823         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
79824         directory overwrite bugs.
79826         rename: fix another cygwin 1.5 bug
79827         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
79828         checks.
79829         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
79830         unnecessary cygwin workarounds.  Also work around bug with moving
79831         full directory onto an empty one.
79832         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
79834         rename-dest-slash: merge into rename module
79835         * modules/rename-dest-slash (Status): Mark obsolete.
79836         (Depends-on): Add rename.
79837         (Files): Let rename do it all.
79838         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
79839         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
79840         * m4/rename-dest-slash.m4: ...so this file can be deleted.
79841         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
79842         * lib/rename.c (rpl_rename): Update comments.
79844         rename: fix cygwin 1.5.x bugs
79845         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
79846         * lib/rename.c (rpl_rename): Work around them.
79847         * modules/rename (Depends-on): Add same-inode.
79849         rename: fix Solaris 10 bug
79850         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79851         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
79852         was the only bug.
79854         rename: fix Solaris 9 bug
79855         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
79856         on non-directory.  Avoid calling exit.
79857         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
79858         strdup.
79859         * modules/rename-tests (Depends-on): Drop lstat.
79860         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
79861         (gl_PREREQ_RENAME): Delete unused macro.
79863         rename-dest-slash: fix NetBSD bug
79864         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
79865         links.
79866         * modules/rename-dest-slash (Depends-on): Add same-inode.
79868         rename-tests: new test, exposes several platform bugs
79869         * modules/rename-tests: New file.
79870         * tests/test-rename.h: Likewise.
79871         * tests/test-rename.c: Likewise.
79872         * doc/posix-functions/rename.texi (rename): Improve documentation,
79873         including bugs that will eventually be fixed in gnulib.
79875 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
79877         * lib/uname.c: Include <stdlib.h>
79878         (uname): Assume version info is available.
79880 2009-10-02  Jim Meyering  <meyering@redhat.com>
79882         gnu-web-doc-update: correct --help output
79883         * build-aux/gnu-web-doc-update: Make --help output relevant.
79885         gnu-web-doc-update: add standard options
79886         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
79888         gnu-web-doc-update: New module.
79889         Use this script to automatically update the on-line web documentation
79890         for your GNU project at http://www.gnu.org/software/$pkg/manual/
79891         * modules/gnu-web-doc-update: New file, from coreutils.
79892         * build-aux/gnu-web-doc-update: New script.
79894 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
79896         link: LoadLibrary is not needed.
79897         * lib/link.c: Use GetModuleHandle.
79899 2009-10-01  Eric Blake  <ebb9@byu.net>
79901         getopt: bump serial number
79902         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
79903         change.
79905         tests: tighten link, rmdir, and remove tests
79906         * tests/test-link.h (includes): No need to use <config.h> here.
79907         Clean up if directory hard link was created, otherwise test for
79908         trailing '.'.
79909         * tests/test-linkat.c (main): Simplify.
79910         * tests/test-remove.c (main): Enhance test for trailing '.'.
79911         * tests/test-rmdir.h (test_rmdir_func): Likewise.
79913 2009-10-01  Jim Meyering  <meyering@redhat.com>
79915         maint.mk: requiring "make major" was annoying, for a "minor" release.
79916         What is intended is "stable", to contrast with alpha and beta,
79917         so require "make stable", not "make major".
79918         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
79919         (get_tool_versions): Likewise.
79920         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
79922 2009-09-30  Ben Pfaff  <blp@gnu.org>
79924         Fix broken build of replacement for Windows tmpfile().
79925         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
79926         flags argument added along with the 'mkostemp' module.
79928 2009-09-28  Bruno Haible  <bruno@clisp.org>
79930         Avoid identifier clash with POSIX function 'remove' defined as a macro.
79931         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
79932         to 'remove_elt'.
79933         (gl_list_remove): Update.
79934         * lib/gl_list.c (gl_list_remove): Update.
79935         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
79936         to 'remove_elt'.
79937         (gl_oset_remove): Update.
79938         * lib/gl_list.c (gl_oset_remove): Update.
79939         Reported by Eric Blake.
79941 2009-09-28  Eric Blake  <ebb9@byu.net>
79943         doc: mention yet more cygwin 1.7 status
79944         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
79945         cygwin.
79946         * doc/glibc-functions/execvpe.texi (execvpe): New file.
79947         * doc/gnulib.texi (Glibc unistd.h): Mention it.
79949         argp: fix test failure
79950         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
79951         that are not upper-case.  Pass correct range to tolower.
79953 2009-09-27  Jim Meyering  <meyering@redhat.com>
79955         test-yesno: work around sparc-dash here-document infelicity
79956         Without this change, the literal \177 byte in a here document
79957         would make dash 0.5.5.1-3 access uninitialized memory.
79958         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
79959         Instead, use a marker, "@", and filter through tr to create the desired
79960         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
79962 2009-09-27  Bruno Haible  <bruno@clisp.org>
79964         Disable untested support for new flavours of ACLs on AIX.
79965         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
79966         progress.
79967         * lib/set-mode-acl.c (qset_acl): Likewise.
79969 2008-12-07  Bruno Haible  <bruno@clisp.org>
79971         Add support for new flavours of ACLs on AIX. (Untested.)
79972         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
79973         (file_has_acl): Add support for newer AIX.
79974         * lib/set-mode-acl.c (qset_acl): Likewise.
79975         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
79976         Rainer Tammer <tammer@tammer.net>.
79978 2009-09-26  Eric Blake  <ebb9@byu.net>
79980         argp: fix compilation of getopt
79981         * lib/getopt.in.h (includes): Use different guard than glibc.
79982         Reported by Sergey Poznyakoff.
79984         doc: mention more cygwin 1.7 status
79985         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
79986         bug.
79987         * doc/posix-functions/execl.texi (execl): Likewise.
79988         * doc/posix-functions/execle.texi (execle): Likewise.
79989         * doc/posix-functions/execlp.texi (execlp): Likewise.
79990         * doc/posix-functions/execv.texi (execv): Likewise.
79991         * doc/posix-functions/execve.texi (execve): Likewise.
79992         * doc/posix-functions/execvp.texi (execvp): Likewise.
79993         * doc/glibc-functions/canonicalize_file_name.texi
79994         (canonicalize_file_name): Cygwin 1.7 now provides this.
79995         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
79996         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
79997         on AT_SYMLINK_NOFOLLOW.
79999 2009-09-24  Eric Blake  <ebb9@byu.net>
80001         test-linkat: make test more robust
80002         * tests/test-linkat.c (main): Avoid collision with EEXIST.
80004         getopt: fix inclusion guards for cygwin
80005         * modules/getopt-posix (Depends-on): Add include-next.
80006         (Makefile.am): Substitute more items in replacement header.
80007         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
80008         <getopt.h>.
80009         * lib/getopt.in.h (includes): Use split inclusion guard, and
80010         prefer <getopt.h> over include <unistd.h> when one is present.
80011         (option): Also override name of 'struct option'.
80013         same-inode: revert prior change; it is not yet ready
80014         * NEWS: Undo mention of this change.
80015         * lib/same-inode.h (same-inode.h): Undo tri-state change.
80016         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80017         * lib/cycle-check.c (cycle_check): Likewise.
80018         * lib/same.c (same_name): Likewise.
80019         * lib/at-func2.c (at_func2): Likewise.
80021 2009-09-23  Eric Blake  <ebb9@byu.net>
80023         linkat: new module
80024         * modules/linkat: New file.
80025         * lib/at-func2.c (at_func2): Likewise.
80026         * lib/linkat.c (linkat): Likewise.
80027         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
80028         * lib/openat-priv.h (at_func2): Add declaration.
80029         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80030         * modules/unistd (Makefile.am): Substitute them.
80031         * lib/unistd.in.h (linkat): Declare it.
80032         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80033         * doc/posix-functions/linkat.texi (linkat): Likewise.
80034         * doc/posix-functions/link.texi (link): Tweak wording.
80035         * tests/test-link.c (main): Move guts...
80036         * tests/test-link.h (test_link): ...into new file.
80037         * modules/linkat-tests: New test.
80038         * tests/test-linkat.c: Likewise.
80039         * modules/link-tests (Files): Ship new file.
80040         (Depends-on): Add stdbool.
80042         dirname: add library-safe mdir_name
80043         * lib/dirname.h (mdir_name): New prototype.
80044         * lib/dirname.c (dir_name): Move guts...
80045         (mdir_name): ...to new function that avoids xalloc_die.
80047         fchdir: another mingw fix
80048         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
80049         * lib/fchdir.c (get_name): New helper method; skips canonicalize
80050         on mingw (where it has not yet been ported), and make it optional
80051         elsewhere.
80052         (_gl_register_fd): Use it.
80054         same-inode: make SAME_INODE tri-state, to port to mingw
80055         * NEWS: Mention this change.
80056         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
80057         st_ino always being 0.
80058         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
80059         * lib/cycle-check.c (cycle_check): Likewise.
80060         * lib/same.c (same_name): Likewise.
80062         lstat: avoid mingw compilation error
80063         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
80064         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
80065         lstat ourselves.
80066         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
80067         was adequate.
80068         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
80069         the checks for lstat.
80070         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
80072         link: fix test failure on Solaris 9
80073         * lib/link.c (rpl_link): Don't assume link will catch bogus
80074         trailing slash on source.
80076         test-symlinkat: enhance test
80077         * tests/test-readlink.c (main): Move guts...
80078         * tests/test-readlink.h (test_readlink): ...into new file.
80079         * tests/test-symlink.c (main): Move guts...
80080         * tests/test-symlink.h (test_symlink): ...into new file.
80081         * tests/test-symlinkat.c (main): Use new files for further
80082         coverage.
80083         (do_symlink, do_readlink): New helper functions.
80084         * modules/symlink-tests (Files): Ship new file.
80085         (Depends-on): Add stdbool.
80086         * modules/readlink-tests (Files): Ship new file.
80087         (Depends-on): Add stdbool.
80088         * modules/symlinkat-tests (Files): Use new files.
80090 2009-09-23  Eric Blake  <ebb9@byu.net>
80092         readlink: document portability issue with symlink length
80093         * doc/posix-functions/lstat.texi (lstat): Mention that some file
80094         systems have bogus st_size on symlinks, and mention the
80095         areadlink-with-size module.
80096         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
80097         * doc/posix-functions/readlink.texi (readlink): Mention the
80098         areadlink module, and ERANGE failure.
80099         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80100         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
80102         readlink: fix Solaris 9 bug with trailing slash
80103         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
80104         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
80105         * doc/posix-functions/readlink.texi (readlink): Document this.
80106         * modules/readlink-tests: New test.
80107         * tests/test-readlink.c: Likewise.
80109         readlink: fix cygwin 1.5.x bug with return type
80110         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
80111         * lib/unistd.in.h (readlink): Use ssize_t.
80112         * lib/readlink.c (readlink): Likewise.
80113         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80114         * modules/unistd (Makefile.am): Substitute it.
80115         * lib/unistd.in.h (readlink): Declare replacement.
80116         * doc/posix-functions/readlink.texi (readlink): Document this.
80118         symlink: use throughout gnulib
80119         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
80120         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
80121         symlink is not used.
80122         * modules/symlinkat (Depends-on): Add symlink.
80123         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80124         * modules/canonicalize-tests (Depends-on): Likewise.
80125         * modules/lstat-tests (Depends-on): Likewise.
80126         * modules/openat-tests (Depends-on): Likewise.
80127         * modules/remove-tests (Depends-on): Likewise.
80128         * modules/rmdir-tests (Depends-on): Likewise.
80129         * modules/unlink-tests (Depends-on): Likewise.
80130         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
80131         * tests/test-canonicalize.c (symlink): Likewise.
80132         * tests/test-fstatat.c (symlink): Likewise.
80133         * tests/test-lstat.c (symlink): Likewise.
80134         * tests/test-remove.c (symlink): Likewise.
80135         * tests/test-rmdir.c (symlink): Likewise.
80136         * tests/test-unlink.c (symlink): Likewise.
80137         * tests/test-unlinkat.c (symlink): Likewise.
80139         symlink: new module, for Solaris 9 bug
80140         * modules/symlink: New file.
80141         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
80142         * lib/symlink.c: Likewise.
80143         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
80144         * modules/unistd (Makefile.am): Substitute them.
80145         * lib/unistd.in.h (symlink): Declare replacement.
80146         * MODULES.html.sh (File system functions): Mention it.
80147         * doc/posix-functions/symlink.texi (symlink): Likewise.
80148         * modules/symlink-tests: New test.
80149         * tests/test-symlink.c: Likewise.
80151 2009-09-23  Bruno Haible  <bruno@clisp.org>
80153         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
80154         when needed.
80155         Test case: gnulib-tool --import --with-tests atexit inttypes.
80156         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
80158 2009-09-23  Bruno Haible  <bruno@clisp.org>
80160         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
80161         subcommand, not in a subshell.
80163 2009-09-22  Eric Blake  <ebb9@byu.net>
80165         unistd: sort replacement declarations
80166         * lib/unistd.in.h: Sort declarations.
80168         open, openat: minor optimization
80169         * lib/open.c (open): If open succeeded, len is non-zero.
80170         * lib/openat.c (rpl_openat): Likewise.
80172         link-follow: ensure correct result
80173         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
80174         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
80175         distinguish between possible failures.
80177 2009-09-21  Eric Blake  <ebb9@byu.net>
80179         fts: avoid compiler warning
80180         * lib/fts.c (dirent_inode_sort_may_be_useful)
80181         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
80183 2009-09-19  Bruno Haible  <bruno@clisp.org>
80185         * lib/progreloc.c (canonicalize_file_name): New declaration.
80187 2009-09-19  Eric Blake  <ebb9@byu.net>
80189         link: fix quoting
80190         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
80192         openat: fix openat bugs on Solaris 9
80193         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
80194         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
80195         * modules/openat (Depends-on): Add open.
80196         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
80197         * modules/fcntl-h (Makefile.am): Substitute it.
80198         * lib/fcntl.in.h (openat): Declare replacement.
80199         * doc/posix-functions/openat.texi (openat): Document this.
80201         openat: move fstatat and unlinkat into correct files
80202         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
80203         compiled.
80204         * lib/openat.c (fstatat, unlinkat): Move...
80205         * lib/fstatat.c (fstatat): ...into correct files.
80206         * lib/unlinkat.c (unlinkat): Likewise.
80208         openat: fix unlinkat bugs on Solaris 9
80209         * lib/unlinkat.c (unlinkat): New file.
80210         * modules/openat (Depends-on): Add unlink.
80211         (Files): Distribute it.
80212         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
80213         trailing slash behavior is broken.
80214         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
80215         * modules/unistd (Makefile.am): Substitute it.
80216         * lib/unistd.in.h (unlinkat): Declare replacement.
80217         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
80219         openat: fix fstatat bugs on Solaris 9
80220         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
80221         stat.
80222         * doc/posix-functions/fstatat.texi (fstatat): Document this.
80224         test-unlinkat: enhance test, to expose Solaris 9 bug
80225         * tests/test-unlink.c (main): Factor guts...
80226         * tests/test-unlink.h (test_rmdir_func): ...into new file.
80227         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
80228         * tests/test-rmdir.c (main): Adjust caller.
80229         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
80230         (unlinker): New helper function.
80231         (rmdirat): Enhance check.
80232         * modules/rmdir-tests (Depends-on): Add stdbool.
80233         * modules/unlink-tests (Depends-on): Likewise.
80234         (Files): Add test-unlink.h.
80235         * modules/openat-tests (Files): Likewise.
80236         (Depends-on): Add unlinkdir.
80238         test-fstatat: new test, to expose Solaris 9 bugs
80239         * tests/test-stat.c (main): Factor guts...
80240         * tests/test-stat.h (test_stat_func): ...into new file.
80241         * tests/test-lstat.c (main): Factor guts...
80242         * tests/test-lstat.h (test_lstat_func): ...into new file.
80243         * tests/test-fstatat.c: New file.
80244         * modules/stat-tests (Files): Add test-stat.h.
80245         * modules/lstat-tests (Files): Add test-lstat.h.
80246         (Depends-on): Add stdbool.
80247         * modules/openat-tests (Depends-on): Add pathmax.
80248         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
80249         (Makefile.am): Run new test.
80251         remove: new module, for mingw and Solaris 9 bugs
80252         * modules/remove: New file.
80253         * lib/remove.c: Likewise.
80254         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
80255         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
80256         * modules/stdio (Makefile.am): Use them.
80257         * lib/stdio.in.h (remove): Declare replacement.
80258         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80259         * doc/posix-functions/remove.texi (remove): Likewise.
80260         * modules/remove-tests: New test.
80261         * tests/test-remove.c: Likewise.
80263         unlink: new module, for Solaris 9 bug
80264         * modules/unlink: New file.
80265         * lib/unlink.c: Likewise.
80266         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
80267         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80268         * modules/unistd (Makefile.am): Use them.
80269         * lib/unistd.in.h (stat): Declare replacement.
80270         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80271         * doc/posix-functions/unlink.texi (unlink): Likewise.
80272         * modules/unlink-tests: New test.
80273         * tests/test-unlink.c: Likewise.
80275         lstat: fix Solaris 9 bug
80276         * lib/lstat.c (lstat): Also check for trailing slash on
80277         non-symlink, non-directories.  Use stat module to simplify logic.
80278         * doc/posix-functions/lstat.texi (lstat): Document it.
80279         * modules/lstat-tests (Depends-on): Add errno, same-inode.
80280         (configure.ac): Check for symlink.
80281         * tests/test-lstat.c (main): Add more tests.
80283         stat: add as dependency to other modules
80284         * modules/chown (Depends-on): Add stat.
80285         * modules/euidaccess (Depends-on): Likewise.
80286         * modules/fchdir (Depends-on): Likewise.
80287         * modules/isdir (Depends-on): Likewise.
80288         * modules/link (Depends-on): Likewise.
80289         * modules/lstat (Depends-on): Likewise.
80290         * modules/mkdir-p (Depends-on): Likewise.
80291         * modules/modechange (Depends-on): Likewise.
80292         * modules/open (Depends-on): Likewise.
80293         * modules/readlink (Depends-on): Likewise.
80294         * modules/same (Depends-on): Likewise.
80296         stat: fix Solaris 9 bug
80297         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
80298         slash.
80299         * lib/stat.c (rpl_stat): Work around it.
80300         * doc/posix-functions/stat.texi (stat): Update documentation.
80302         stat: new module, for mingw bug
80303         * modules/stat: New file.
80304         * lib/stat.c: Likewise.
80305         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
80306         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80307         * modules/sys_stat (Makefile.am): Use them.
80308         * lib/sys_stat.in.h (stat): Declare replacement.
80309         * lib/openat.c (fstatat): Deal with lstat and stat being function
80310         macros.
80311         * modules/openat (Depends-on): Add inline.
80312         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
80313         * doc/posix-functions/stat.texi (stat): Likewise.
80314         * modules/stat-tests: New test.
80315         * tests/test-stat.c: Likewise.
80317 2009-09-19  Jim Meyering  <meyering@redhat.com>
80319         syntax-check: detect unnecessary inclusion of canonicalize.h
80320         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
80322 2009-09-19  Eric Blake  <ebb9@byu.net>
80324         canonicalize-lgpl: adjust clients to use correct header
80325         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80326         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
80327         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
80328         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
80329         * lib/progreloc.c (includes): Likewise.
80331 2009-09-19  Jim Meyering  <meyering@redhat.com>
80333         test-posixtm.c: correct a comment
80334         * tests/test-posixtm.c: Correct first-line comment.
80335         Spotted by Eric Blake.
80337 2009-09-16  Jim Meyering  <meyering@redhat.com>
80339         posixtm-tests: make T const-correct; add a test case
80340         * tests/test-posixtm.c (T): Declare const.
80341         Add a test for -(2^31+1).
80342         Remove useless can-succeed-only-in-2002 test.
80344         posixtm-tests: adjust the sole failing test
80345         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
80346         expected output matches what mktime now produces.  Cross-checked via
80347         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
80349         posixtm: move #ifdef'd tests into a new module
80350         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
80351         * tests/test-posixtm.c: ... this new file.
80352         * modules/posixtm-tests: New module.
80354 2009-09-19  Eric Blake  <ebb9@byu.net>
80356         openat: simplify use of at-func.c
80357         * lib/at-func.c (includes): Include prerequisites here, to
80358         simplify requirements on client files.
80359         * lib/openat-priv.h: Add double-inclusion guard.
80360         * lib/faccessat.c (includes): Simplify.
80361         * lib/fchmodat.c (includes): Likewise.
80362         * lib/fchownat.c (includes): Likewise.
80363         * lib/mkdirat.c (includes): Likewise.
80364         * lib/mkfifoat.c (includes): Likewise.
80365         * lib/symlinkat.c (includes): Likewise.
80367         openat: allow return of fd 0
80368         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
80369         * modules/save-cwd (Depends-on): Replace fcntl-safer with
80370         unistd-safer.
80371         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
80372         <fcntl.h>; this module does not leak fds.
80373         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
80374         must be allowed to return 0, leaving openat_safer to add the
80375         safety.
80376         (openat_permissive): Avoid writing to just-opened fd 2 if
80377         restoring the current directory fails.
80378         * lib/openat-die.c (openat_restore_fail): Add comment.
80379         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
80380         (save_cwd): Guarantee safe fd, but without use of open_safer.
80381         * tests/test-openat.c: New test.
80382         * modules/openat-tests (Files, Makefile.am): Distribute and build
80383         new file.
80385         relocatable-prog-wrapper: fix build
80386         * modules/relocatable-prog-wrapper (Files): Update name of
80387         canonicalize m4 file, broken on 2009-09-17.
80388         Reported by emad hajjar <aleppos@hotmail.com>.
80390 2009-09-19  Bruno Haible  <bruno@clisp.org>
80392         * lib/safe-alloc.h: Use the standard header with GPL copyright.
80393         * lib/safe-alloc.c: Likewise.
80394         Reported by Ian Beckwith <ianb@erislabs.net>.
80396 2009-09-18  Bruno Haible  <bruno@clisp.org>
80398         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
80399         Reported by <erobles@sensacd.com.mx>.
80401 2009-09-17  Eric Blake  <ebb9@byu.net>
80403         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
80404         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
80405         slashes when checking if last component is missing.
80406         * tests/test-canonicalize.c (main): Test this.
80408         canonicalize, canonicalize-lgpl: honor // if distinct from /
80409         * modules/canonicalize (Files): Add double-slash-root.m4.
80410         * modules/canonicalize-lgpl (Files): Likewise.
80411         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
80412         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
80413         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
80414         fallback definition.
80415         (canonicalize_filename_mode): Use it to protect //.
80416         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
80417         (__realpath): Likewise.
80418         * tests/test-canonicalize.c (main): Test this.
80419         * tests/test-canonicalize-lgpl.c (main): Likewise.
80420         * modules/canonicalize-tests (Depends-on): Add same-inode.
80421         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
80423         canonicalize-lgpl: fix glibc bug with trailing slash
80424         * m4/canonicalize-lgpl.m4: Move contents...
80425         * m4/canonicalize.m4: ...here.
80426         (gl_CANONICALIZE_LGPL): Factor realpath check...
80427         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
80428         glibc 2.3.5 bug, fixed 2005-04-27.
80429         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
80430         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
80431         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
80432         * modules/canonicalize-lgpl (Files): Manage file rename.
80433         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80434         * modules/stdlib (Makefile.am): Substitute witness.
80435         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
80436         is needed.
80437         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
80438         replacement is required.
80439         * lib/canonicalize.c (canonicalize_file_name): Likewise.
80440         * doc/glibc-functions/canonicalize_file_name.texi
80441         (canonicalize_file_name): Document this.
80442         * doc/posix-functions/realpath.texi (realpath): Likewise.
80444         canonicalize-lgpl: reject non-directory with trailing slash
80445         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
80446         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
80447         catches failures in glibc 2.3.5.
80448         * tests/test-canonicalize.c (main): Likewise.
80450         canonicalize-lgpl: use native realpath if it works
80451         * lib/canonicalize-lgpl.c (realpath): Guard with
80452         FUNC_REALPATH_WORKS.
80453         * lib/stdlib.in.h (realpath): Make declaration optional based on
80454         HAVE_REALPATH.
80455         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
80456         native realpath works.
80457         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
80458         * modules/stdlib (Makefile.am): Substitute witness.
80460         canonicalize, canonicalize-lgpl: use <stdlib.h>
80461         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
80462         (Include): Mention <stdlib.h>.
80463         (configure.ac): Mention functions we provide.
80464         * modules/canonicalize (configure.ac): Likewise.
80465         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
80466         realpath if canonicalize_file_name is missing.
80467         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
80468         * modules/stdlib (Makefile.am): Substitute witnesses.
80469         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
80470         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
80471         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
80472         * NEWS: Document this.
80473         * doc/glibc-functions/canonicalize_file_name.texi
80474         (canonicalize_file_name): Likewise.
80475         * doc/posix-functions/realpath.texi (realpath): Likewise.
80476         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
80478         test-canonicalize: consolidate into single C program
80479         * tests/test-canonicalize.sh: Delete; move setup into...
80480         * tests/test-canonicalize.c (main): ...the program, making it
80481         easier to run in debugger.  Add some tests.
80482         * modules/canonicalize-tests (Files): Remove unused file.
80483         (Depends-on): Add progname.
80484         (configure.ac, Makefile.am): Simplify.
80486         test-canonicalize-lgpl: consolidate into single C program
80487         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
80488         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
80489         easier to run in debugger.  Add some tests.
80490         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
80491         (configure.ac, Makefile.am): Simplify.
80493         canonicalize: avoid resolvepath
80494         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
80495         unnecessary checks.
80496         * lib/canonicalize.c (includes): Simplify.
80497         (canonicalize_file_name): Drop resolvepath implementation.
80498         * modules/canonicalize (Depends-on): Drop filenamecat.
80500         canonicalize: don't lose errno
80501         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
80502         over calls to free.
80504         canonicalize: simplify errno handling
80505         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
80506         assignment.
80508         canonicalize, canonicalize-lgpl: update module dependencies
80509         * modules/canonicalize (Depends-on): Add extensions, lstat,
80510         pathmax, stdlib.
80511         (Files): Drop pathmax.h.
80512         (configure.ac): Adjust macro name.
80513         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
80514         lstat, stdlib, sys_stat.
80515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
80516         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
80517         extensions.
80518         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
80519         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
80520         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
80521         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
80522         declaration, if available.
80523         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
80524         we can rely on the readlink module.
80525         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
80526         (includes): Use <unistd.h> unconditionally.
80528 2009-09-17  Eric Blake  <ebb9@byu.net>
80530         maint: make Include sections of modules consistent
80531         * modules/alloca: Use only header name; no need to list #include.
80532         * modules/alloca-opt: Likewise.
80533         * modules/arpa_inet: Likewise.
80534         * modules/canon-host: Likewise.
80535         * modules/configmake: Likewise.
80536         * modules/dirent: Likewise.
80537         * modules/eealloc: Likewise.
80538         * modules/environ: Likewise.
80539         * modules/fchdir: Likewise.
80540         * modules/fcntl: Likewise.
80541         * modules/fcntl-h: Likewise.
80542         * modules/gethrxtime: Likewise.
80543         * modules/gettime: Likewise.
80544         * modules/ignore-value: Likewise.
80545         * modules/inet_ntop: Likewise.
80546         * modules/inet_pton: Likewise.
80547         * modules/inttypes: Likewise.
80548         * modules/isnand-nolibm: Likewise.
80549         * modules/isnanf-nolibm: Likewise.
80550         * modules/mbchar: Likewise.
80551         * modules/mbfile: Likewise.
80552         * modules/mbiter: Likewise.
80553         * modules/mbuiter: Likewise.
80554         * modules/netdb: Likewise.
80555         * modules/netinet_in: Likewise.
80556         * modules/nproc: Likewise.
80557         * modules/pagealign_alloc: Likewise.
80558         * modules/poll: Likewise.
80559         * modules/printf-frexp: Likewise.
80560         * modules/pthread: Likewise.
80561         * modules/putenv: Likewise.
80562         * modules/random_r: Likewise.
80563         * modules/relocatable-prog: Likewise.
80564         * modules/search: Likewise.
80565         * modules/select: Likewise.
80566         * modules/selinux-h: Likewise.
80567         * modules/settime: Likewise.
80568         * modules/signal: Likewise.
80569         * modules/size_max: Likewise.
80570         * modules/socklen: Likewise.
80571         * modules/ssize_t: Likewise.
80572         * modules/stdarg: Likewise.
80573         * modules/stdbool: Likewise.
80574         * modules/stddef: Likewise.
80575         * modules/stdint: Likewise.
80576         * modules/stdio: Likewise.
80577         * modules/stdlib: Likewise.
80578         * modules/string: Likewise.
80579         * modules/strings: Likewise.
80580         * modules/sys_file: Likewise.
80581         * modules/sys_ioctl: Likewise.
80582         * modules/sys_select: Likewise.
80583         * modules/sys_socket: Likewise.
80584         * modules/sys_stat: Likewise.
80585         * modules/sys_time: Likewise.
80586         * modules/sys_times: Likewise.
80587         * modules/sys_utsname: Likewise.
80588         * modules/sys_wait: Likewise.
80589         * modules/sysexits: Likewise.
80590         * modules/time: Likewise.
80591         * modules/times: Likewise.
80592         * modules/tmpfile: Likewise.
80593         * modules/trim: Likewise.
80594         * modules/unistd: Likewise.
80595         * modules/wchar: Likewise.
80596         * modules/wctype: Likewise.
80598 2009-09-17  Bruno Haible  <bruno@clisp.org>
80600         Make getdate.y compile on QNX and NetBSD 5 / i386.
80601         * m4/getdate.m4 (gl_GETDATE): Conditionally define
80602         TIME_T_FITS_IN_LONG_INT.
80603         * lib/getdate.y (long_time_t): New type.
80604         (relative_time): Change type of 'seconds' field to long_time_t.
80605         (get_date): Update types of local variables. Check against overflow
80606         during conversion from long_time_t to time_t.
80607         Reported by Matt Kraai <kraai@ftbfs.org>
80608         and Hasso Tepper <hasso@netbsd.org>.
80610 2009-09-17  Bruno Haible  <bruno@clisp.org>
80612         * modules/COPYING: Update copyright years.
80613         * modules/README: Likeiwse.
80614         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
80615         Reported by Ian Beckwith <ianb@erislabs.net>.
80617 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80619         * users.txt: Update references for gnuit package.
80621 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
80623         * m4/getdelim.m4: Fix typo in copyright line.
80625 2009-09-17  Bruno Haible  <bruno@clisp.org>
80627         * lib/atoll.c: Use the standard header with GPL copyright.
80628         * lib/argz.in.h: Likewise.
80629         * lib/glob.c: Likewise.
80630         * lib/glob-libc.h: Likewise.
80631         * lib/random_r.c: Likewise.
80632         * lib/siglist.h: Likewise.
80633         * lib/strsignal.c: Likewise.
80634         Reported by Ian Beckwith <ianb@erislabs.net>.
80636 2009-09-17  Eric Blake  <ebb9@byu.net>
80638         rmdir: ensure correct dependency order
80639         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
80641 2009-09-17  Bruno Haible  <bruno@clisp.org>
80643         Disable assertion that fails on NetBSD 5 / i386.
80644         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
80645         Reported by Sam Steingold <sds@gnu.org>
80646         and Hasso Tepper <hasso@netbsd.org>.
80648 2009-09-16  Eric Blake  <ebb9@byu.net>
80650         unlinkdir: port to mingw
80651         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
80652         on which no one can unlink a directory.
80654         stdlib: sort witness names
80655         * modules/stdlib (Makefile.am): Sort replacements.
80656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
80657         * lib/stdlib.in.h: Likewise.
80659         parse-duration-tests: avoid link failure
80660         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
80661         LIBINTL.
80662         Reported by Tom G. Christensen.
80664         openat-tests: ensure unlinkat behaves like rmdir
80665         * tests/test-rmdir.c (main): Factor guts...
80666         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
80667         * modules/rmdir-tests (Files): Ship new file.
80668         * modules/openat-tests: New test.
80669         * tests/test-unlinkat.c: Likewise.
80671         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
80672         * modules/rmdir-errno (Status, Notice): Now obsolete.
80674         rmdir: work around cygwin 1.5.x and mingw bugs
80675         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
80676         * lib/rmdir.c (rmdir): Work around it.
80677         * modules/rmdir (Status, Notice): No longer obsolete.
80678         (Files): Add dos.m4.
80679         (Depends-on): Add unistd.
80680         (configure.ac): Set witnesses.
80681         (License): Relax to LGPLv2+.
80682         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
80683         * modules/unistd (Makefile.am): Substitute witnesses.
80684         * lib/unistd.in.h (rmdir): Declare replacement.
80685         * doc/posix-functions/rmdir.texi (rmdir): Document this.
80686         * modules/rmdir-tests: New tests.
80687         * tests/test-rmdir.c: Likewise.
80689 2009-09-15  Eric Blake  <ebb9@byu.net>
80691         fchdir: improve use of replacement functions
80692         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
80693         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
80694         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
80695         REPLACE_CLOSEDIR.
80696         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
80697         * modules/sys_stat (Makefile.am): Substitute correct witness.
80698         * modules/dirent (Makefile.am): Likewise.
80699         * modules/unistd (Makefile.am): Likewise.
80700         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
80701         * lib/unistd.in.h (dup): Likewise.
80702         * lib/sys_stat.in.h (fstat): Likewise.
80704         maint: ignore gnulib-tool temp files
80705         * .gitignore: Ignore files created during gnulib-tool --test.
80707 2009-09-13  Jim Meyering  <meyering@redhat.com>
80709         posixtm: don't reject a time that specify "60" as the number of seconds
80710         * lib/posixtm.c (posixtime): The code to reject invalid dates
80711         would also reject a time specified with the .60 suffix.
80712         But POSIX allows that, in order to accommodate leap seconds.
80713         So don't reject it.
80714         (main): Adjust tests accordingly.
80715         * modules/posixtm (Depends-on): Add stpcpy.
80717 2009-09-11  Jim Meyering  <meyering@redhat.com>
80719         announce-gen: include [$release_type] in emitted Subject:
80720         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
80721         e.g., [stable] in the emitted Subject: line.
80723 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
80725         Remove obsolete macros from several modules.
80726         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
80727         obsolete Autoconf macros with their modern counterparts.
80728         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
80729         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
80730         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
80731         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
80732         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
80733         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
80734         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
80735         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
80736         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
80737         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
80738         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
80739         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
80740         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
80741         * m4/sockets.m4 (gl_SOCKETS): Likewise.
80742         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
80743         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
80744         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
80745         * m4/time_r.m4 (gl_TIME_R): Likewise.
80746         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
80747         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
80748         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
80750         Fix copyright header in build-aux scripts.
80751         * build-aux/git-version-gen: Fix copyright header to match GPLv3
80752         recommendation.
80753         * build-aux/ncftpput-ftp: Likewise.
80754         * build-aux/update-copyright: Likewise.
80756 2009-09-09  Eric Blake  <ebb9@byu.net>
80758         test-link: allow Linux choice of errno
80759         * tests/test-link.c (main): Relax test for alternate error.
80761         strndup: fix improper m4 caching
80762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
80763         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
80764         (gl_PREREQ_STRNDUP): Delete.
80765         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
80766         * modules/string (Makefile.am): Substitute it.
80767         * lib/string.in.h (strndup): Modernize prototype.
80769         getcwd: port to mingw
80770         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
80771         different from the POSIX assumptions made throughout the getcwd
80772         module; fortunately, the mingw getcwd does not need replacement.
80773         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
80774         * modules/getcwd-tests: New test.
80775         * tests/test-getcwd.c: Likewise.
80777         link: fix platform bugs
80778         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
80779         * lib/link.c (link): Work around them.  Fix related mingw bug.
80780         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
80781         * modules/unistd (Makefile.am): Substitute it.
80782         * lib/unistd.in.h (link): Declare replacement.
80783         * doc/posix-functions/link.texi (link): Document this.
80784         * modules/link (Depends-on): Add strdup-posix, sys_stat.
80786         test-link: consolidate into single C program, test more cases
80787         * tests/test-link.sh: Delete.
80788         * tests/test-link.c: Test more error conditions.  Exposes bugs on
80789         at least Cygwin and Solaris.
80790         * modules/link-tests (Files): Remove unused file.
80791         (Depends-on): Add errno, sys_stat.
80792         (Makefile.am): Simplify.
80794 2009-09-08  Bruno Haible  <bruno@clisp.org>
80796         Work around towlower, towupper bug on mingw.
80797         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
80798         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
80799         * doc/posix-functions/towlower.texi: Mention the mingw bug.
80800         * doc/posix-functions/towupper.texi: Likewise.
80801         Reported by Eric Blake.
80803 2009-09-08  Jim Meyering  <meyering@redhat.com>
80805         build: don't try to run autoheader if we don't use it
80806         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
80807         is not used in configure.ac.
80809 2009-09-08  Eric Blake  <ebb9@byu.net>
80811         euidaccess: fix compilation error
80812         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
80814         rawmemchr: relax license
80815         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
80816         okay.
80817         Reported by Jim Meyering.
80819         mkfifoat: new module
80820         * modules/mkfifoat: New file.
80821         * lib/mkfifoat.c: Likewise.
80822         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
80823         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
80824         * modules/sys_stat (Makefile.am): Use them.
80825         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
80826         * MODULES.html.sh (File system functions): Mention module.
80827         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
80828         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
80829         * modules/mkfifoat-tests: New test.
80830         * tests/test-mkfifoat.c: Likewise.
80832         strchrnul: relax license
80833         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
80834         okay.
80835         Reported by Jim Meyering.
80837 2009-09-08  Eric Blake  <ebb9@byu.net>
80839         fstatat: fix compilation on Solaris
80840         * lib/fstatat.c (includes): Add fcntl.h.
80841         Reported by Pádraig Brady.
80843 2009-09-07  Eric Blake  <ebb9@byu.net>
80845         rename: modernize replacement
80846         * modules/rename (Depends-on): Add stdio.
80847         (configure.ac): Declare witness.
80848         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
80849         stdio take care of replacement.
80850         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
80851         * modules/stdio (Makefile.am): Substitute them.
80852         * lib/stdio.in.h (rename): Declare replacement.
80853         * lib/rename.c (includes): Allow cross-compilation to non-windows
80854         machines.
80855         * doc/posix-functions/rename.texi (rename): Improve
80856         documentation.
80858         stdio: sort witness names
80859         * modules/stdio (Makefile.am): Sort replacements.
80860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
80861         * lib/stdio.in.h: Likewise.
80863         getcwd: minor cleanups
80864         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
80865         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
80867         openat: provide more convenience names
80868         * modules/faccessat (configure.ac): Add C witness.
80869         * lib/unistd.in.h (readlinkat): Fix typo.
80870         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
80871         convenience wrappers.
80872         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
80873         wrappers in syntax checks.
80875 2009-09-06  Eric Blake  <ebb9@byu.net>
80877         doc: fix comments in recent patches
80878         * lib/faccessat.c: Mention correct function.
80879         * lib/fchmodat.c: Likewise.
80880         * lib/fchownat.c: Likewise.
80881         * lib/symlinkat.c: Likewise.
80882         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
80883         constants.
80885         faccessat, symlinkat: continue cleanup of previous patch
80886         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
80887         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
80888         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
80889         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
80890         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
80891         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
80892         set.
80894 2009-09-06  Bruno Haible  <bruno@clisp.org>
80896         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
80897         (fstatat): Declare if GNULIB_FSTATAT is set.
80898         (mkdirat): Declare if GNULIB_MKDIRAT is set.
80899         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
80900         (unlinkat): Declare if GNULIB_UNLINKAT is set.
80901         * modules/fcntl-h (Files): Remove m4/openat.m4.
80902         * modules/sys_stat (Files): Remove m4/openat.m4.
80903         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
80904         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
80905         * modules/unistd (Files): Remove m4/openat.m4.
80906         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
80907         GNULIB_OPENAT.
80908         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
80909         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
80910         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
80911         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
80912         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
80913         gl_OPENAT_DEFAULTS.
80914         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
80915         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
80916         Don't require gl_OPENAT_DEFAULTS.
80917         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
80918         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
80919         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
80920         (gl_OPENAT_DEFAULTS): Remove macro.
80922 2009-09-06  Bruno Haible  <bruno@clisp.org>
80924         * modules/openat (configure.ac): Remove unneeded witness.
80926 2009-09-06  Bruno Haible  <bruno@clisp.org>
80928         Set errno to ENOSYS when a function is entirely unsupported.
80929         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
80930         EOPNOTSUPP.
80931         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
80932         * modules/chown (Depends-on): Remove errno.
80934 2009-09-06  Bruno Haible  <bruno@clisp.org>
80936         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
80938 2009-09-06  Bruno Haible  <bruno@clisp.org>
80940         * lib/sys_stat.in.h: Fix preprocessor command indentation.
80942 2009-09-06  Ben Pfaff  <blp@gnu.org>
80943             Bruno Haible  <bruno@clisp.org>
80945         Work around a glibc bug in strtok_r.
80946         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
80947         Undefine if UNDEFINE_STRTOK_R is set.
80948         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
80949         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
80950         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
80951         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
80952         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
80953         UNDEFINE_STRTOK_R.
80954         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
80956 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
80958         exclude: minor fix
80959         * lib/exclude.c: Include wctype.h
80961 2009-09-06  Akim Demaille  <demaille@gostai.com>
80963         bootstrap: improve error message
80964         * build-aux/bootstrap (find_tool): Upon failure, report the list
80965         of candidates.
80966         Honor the initial value of the envvar.
80968 2009-09-05  Eric Blake  <ebb9@byu.net>
80970         symlinkat: new module
80971         * modules/symlinkat: New file.
80972         * lib/symlinkat.c: Likewise.
80973         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
80974         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
80975         * modules/unistd (Makefile.am): Use them.
80976         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
80977         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
80978         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
80979         * MODULES.html.sh (File system functions): Mention module.
80980         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
80981         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
80982         * modules/symlinkat-tests: New test.
80983         * tests/test-symlinkat.c: Likewise.
80985         test-openat-safer: add more checks
80986         * tests/test-openat-safer.c (main): Check more code paths.
80988 2009-09-05  Jim Meyering  <meyering@redhat.com>
80990         syntax-check: detect unnecessary inclusion of openat.h
80991         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
80993 2009-09-05  Bruno Haible  <bruno@clisp.org>
80995         Support towlower, towupper.
80996         * doc/posix-functions/towlower.texi: Mention module wctype.
80997         * doc/posix-functions/towupper.texi: Likewise.
80998         * lib/wctype.in.h (towlower, towupper): New functions.
80999         * tests/test-wctype.c: Include stdio.h, stdlib.h.
81000         (ASSERT): New macro.
81001         (e): New variable.
81002         (main): Test also towlower, towupper. Test WEOF argument.
81003         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
81005 2009-09-05  Bruno Haible  <bruno@clisp.org>
81007         Fix conversion behaviour when the input is invalid.
81008         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
81009         mark occurring in first pass of indirect conversion.
81010         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
81011         input.
81012         Found by clang's static analyzer.
81014 2009-09-05  Bruno Haible  <bruno@clisp.org>
81016         * tests/test-striconveh.c (main): Test indirect conversion on platforms
81017         where direct conversion is possible.
81019 2009-09-04  Eric Blake  <ebb9@byu.net>
81021         openat: fail with ENOENT on empty name
81022         * lib/openat-proc.c (openat_proc_name): Special-case the empty
81023         buffer.
81025         link-follow: fix logic bug in prior patch
81026         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
81027         reversed sense of yes and no in prior patch.  Avoid confusing
81028         compilation failure with desired semantics.
81030         link-follow: accommodate mingw and cross-compilation
81031         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
81032         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
81033         cross-compilation results to -1, to make linkat easier to
81034         implement when cross-compiling.  Trivially support mingw.
81035         * modules/link-follow (configure.ac): Call new name.
81036         * NEWS: Mention this.
81038 2009-09-03  Eric Blake  <ebb9@byu.net>
81040         faccessat: compile replacement
81041         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
81042         needed.
81044         fts: fix compilation error
81045         * lib/fts.c (includes): Re-add "openat.h", for
81046         openat_needs_fchdir.
81048         faccessat: new module
81049         * modules/faccessat: New file.
81050         * lib/faccessat.c: Likewise.
81051         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
81052         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
81053         * modules/unistd (Makefile.am): Use it.
81054         * lib/unistd.in.h (faccessat): Declare it.
81055         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
81056         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
81057         * MODULES.html.sh (File system functions): Mention it.
81058         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
81059         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
81061         euidaccess: prefer POSIX over non-standard implementation
81062         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
81063         * lib/euidaccess.c (euidaccess): Use it if available.
81065         openat: make template easier to use
81066         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
81067         AT_FUNC_F2 to be undefined.
81068         (VALIDATE_FLAG): New macro; use it to reject bad flags.
81069         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
81070         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
81071         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
81072         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
81073         Likewise.
81074         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
81075         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
81076         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
81077         Likewise.
81079         openat: declare in POSIX headers
81080         * NEWS: Mention this.
81081         * modules/openat (configure.ac): Declare witnesses.
81082         (Depends-on): Add fcntl-h, sys_stat, unistd.
81083         (Include): Mention correct headers.
81084         * modules/fcntl-h (Depends-on): Add link-warning.
81085         (Files): Add openat.m4.
81086         (Makefile.am): Substitute witnesses.
81087         * modules/sys_stat (Files, Makefile.am): Likewise.
81088         * modules/unistd (Files, Makefile.am): Likewise.
81089         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
81090         (gl_OPENAT_DEFAULTS): New macro.
81091         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
81092         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
81093         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
81094         (SYS_STAT_H): Remove unused variable.
81095         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
81096         * lib/fcntl--.h (includes): Remove unneeded header.
81097         * lib/openat-safer.c (includes): Likewise.
81098         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
81099         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
81100         appropriate headers.
81101         (__OPENAT_PREFIX): Delete.
81102         * lib/fcntl.in.h (openat): Provide declaration.
81103         (AT_FDCWD): Fix Solaris bug.
81104         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
81105         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
81106         * lib/fchmodat.c (includes):  Adjust to find declaration.
81107         * lib/fchownat.c (includes): Likewise.
81108         * lib/mkdirat.c (includes): Likewise.
81109         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
81110         still visible.
81112 2009-09-02  Eric Blake  <ebb9@byu.net>
81114         errno: use consistently
81115         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
81116         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
81117         * lib/canonicalize.c (ELOOP): Likewise.
81118         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
81119         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
81120         * lib/lchown.c (EOPNOTSUPP): Likewise.
81121         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
81122         * lib/savewd.c (ESTALE): Likewise.
81123         * lib/settime.c (ENOSYS): Likewise.
81124         * lib/utimens.c (ENOSYS): Likewise.
81125         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
81126         * lib/chdir-safer.c (ELOOP): Likewise.
81127         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
81128         * modules/c-stack (Depends-on): Add errno.
81129         * modules/canonicalize (Depends-on): Likewise.
81130         * modules/chdir-safer (Depends-on): Likewise.
81131         * modules/fdopendir (Depends-on): Likewise.
81132         * modules/inet_ntop (Depends-on): Likewise.
81133         * modules/inet_pton (Depends-on): Likewise.
81134         * modules/lchown (Depends-on): Likewise.
81135         * modules/openat (Depends-on): Likewise.
81136         * modules/savewd (Depends-on): Likewise.
81137         * modules/settime (Depends-on): Likewise.
81138         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
81140         fts: avoid leaking fds
81141         * modules/fts (Depends-on): Add cloexec.
81142         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
81143         flag.
81145         fts: make directory fds more robust
81146         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
81147         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
81149         backupfile, chdir-long, fts, savedir: make safer
81150         * lib/backupfile.c (includes): Use "dirent--.h", since
81151         numbered_backup can write to stderr during readdir.
81152         * lib/savedir.c (includes): Likewise.
81153         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
81154         emulation can write to stderr on failure.
81155         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
81156         * lib/getcwd.c: Document why opendir_safer is unused.
81157         * lib/glob.c: Likewise.
81158         * lib/scandir.c: Likewise.
81159         * lib/openat-proc.c: Likewise, for open_safer.
81160         * modules/backupfile (Depends-on): Add dirent-safer.
81161         * modules/savedir (Depends-on): Likewise.
81162         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
81163         * modules/chdir-long (Depends-on): Add openat-safer.
81165         openat-safer: new module
81166         * modules/openat-safer: New file.
81167         * lib/openat-safer.c: Likewise.
81168         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
81169         * lib/fcntl-safer.h (openat_safer): Declare.
81170         * lib/fcntl--.h (openat): Override.
81171         * MODULES.html.sh (File descriptor based I/O): Mention it.
81172         * lib/openat.h: Add double-inclusion guards.
81173         * lib/openat.c (includes): Only include "fcntl-safer.h", not
81174         "fcntl--.h", so we can implement openat.
81175         * modules/openat-safer-tests: New test.
81176         * tests/test-openat-safer.c: New file.
81178         dirent-safer: new module
81179         * modules/dirent-safer: New file.
81180         * lib/dirent--.h: Likewise.
81181         * lib/dirent-safer.h: Likewise.
81182         * lib/opendir-safer.c: Likewise.
81183         * m4/dirent-safer.m4: Likewise.
81184         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
81185         * modules/dirent-safer-tests: New test.
81186         * tests/test-dirent-safer.c: New file.
81187         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
81189         fdopendir: optimize on mingw
81190         * lib/unistd.in.h (_gl_directory_name): New prototype.
81191         * lib/fchdir.c (_gl_directory_name): Implement it.
81192         (fchdir): Use it to simplify implementation.
81193         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
81194         fchdir, when available, to avoid calling [f]chdir().
81196         fdopendir: split into its own module
81197         * lib/openat.c (fdopendir): Move...
81198         * lib/fdopendir.c: ...into new file.
81199         * modules/fdopendir: New module.
81200         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
81201         * modules/openat (Depends-on): Add fdopendir.
81202         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
81203         fdopendir here.
81204         * modules/savedir (Depends-on): Only need fdopendir, not full
81205         openat.
81206         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
81207         * lib/openat.h (fdopendir): Drop prototype.
81208         * lib/dirent.in.h (fdopendir): Provide prototype.
81209         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
81210         * modules/dirent (Makefile.am): Substitute them.
81211         * MODULES.html.sh (File system functions): Mention it.
81212         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
81213         * modules/fdopendir-tests: New file.
81214         * tests/test-fdopendir.c: Likewise.
81216         fchdir: use more consistent macro convention
81217         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
81218         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
81219         REPLACE_FCHDIR, rather than relying on config.h macros.
81220         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
81221         inside a single make-time REPLACE_FCHDIR block, rather than using
81222         the config.h FCHDIR_REPLACEMENT.
81223         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
81224         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
81225         Manage fstat replacement.
81226         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
81227         REPLACE_FCHDIR.
81228         * modules/sys_stat (Files): Add m4/unistd_h.m4.
81229         (Makefile.am): Substitute REPLACE_FCHDIR.
81230         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
81231         FCHDIR_REPLACEMENT.
81232         * lib/dup-safer.c (dup_safer): Likewise.
81233         * lib/dup2.c (rpl_dup2): Likewise.
81234         * lib/dup3.c (rpl_dup3): Likewise.
81235         * lib/open.c (rpl_open): Likewise.
81237         fchdir: simplify error handling, and support dup3
81238         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
81239         stdbool, malloc-posix, realloc-posix.
81240         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
81241         (ensure_dirs_slot): Return false on allocation failure.
81242         (rpl_dup2): Delete.
81243         (_gl_register_dup): New function.
81244         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
81245         (_gl_register_fd): Close fd on allocation failure.
81246         * lib/fcntl.in.h (_gl_register_fd): Update signature.
81247         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
81248         prototype.
81249         (rpl_dup2_fchdir): Delete prototype.
81250         * lib/open.c (open): Update caller.
81251         * lib/dup2.c (dup2): Track fchdir metadata.
81252         * lib/dup3.c (dup3): Likewise.
81253         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
81254         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
81256 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81258         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
81259         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
81260         don't pass arguments to AC_OUTPUT.
81262 2009-09-02  Bruno Haible  <bruno@clisp.org>
81264         * modules/mkdtemp (License): Relicense under LGPLv2+.
81265         Reported by Paolo Bonzini.
81267 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
81269         Replace uses of obsolete autoconf macros in Jim's modules.
81270         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
81271         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
81272         can evoke a warning from autoconf when run with -Wobsolete
81273         enabled.  They were declared obsolete for good reasons (see
81274         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
81275         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
81276         should not continue using the deprecated macros.
81277         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
81278         obsolete Autoconf macros with modern counterparts.
81279         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
81280         * m4/dos.m4 (gl_AC_DOS): Likewise.
81281         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
81282         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
81283         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
81284         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
81285         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
81286         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
81287         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
81288         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
81289         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
81290         Likewise.
81291         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
81292         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
81293         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
81294         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
81295         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
81296         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
81298 2009-09-01  Eric Blake  <ebb9@byu.net>
81300         fchdir: fix off-by-one bug in previous patch
81301         * lib/fchdir.c (rpl_fstat): Use correct bounds.
81302         (_gl_unregister_fd): Delete useless if.
81304 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
81306         maint.mk: sort the list of syntax-check rules
81307         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
81308         easier to get a sense of progress when the rules are run sequentially
81309         and take a long time.
81311 2009-09-01  Simon Josefsson  <simon@josefsson.org>
81313         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
81314         * modules/netinet_in: Likewise.
81315         * modules/sys_file: Likewise.
81316         * modules/sys_ioctl: Likewise.
81317         * modules/sys_select: Likewise.
81318         * modules/sys_socket: Likewise.
81319         * modules/sys_stat: Likewise.
81320         * modules/sys_time: Likewise.
81321         * modules/sys_times: Likewise.
81322         * modules/sys_utsname: Likewise.
81323         * modules/sys_wait: Likewise.
81325 2009-09-01  Jim Meyering  <meyering@redhat.com>
81327         fts: help ensure that return values are not ignored
81328         * lib/fts_.h (__GNUC_PREREQ): Define.
81329         (__attribute_warn_unused_result__): Define.
81330         (fts_children, fts_close, fts_open, fts_read): Declare with
81331         __attribute_warn_unused_result__.
81333         fts: fts_close now fails also when closing a dir file descriptor fails
81334         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
81335         and propagate to caller, along with errno.
81337         announce-gen: correct formatting in --help output
81338         * build-aux/announce-gen (usage): Move the one-line description in
81339         --help output "up", to where it belongs, just after Usage:.
81341 2009-08-31  Eric Blake  <ebb9@byu.net>
81343         fchdir: port to mingw
81344         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
81345         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
81346         opened, then use a substitute.
81347         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
81348         replacement.
81349         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
81350         (_gl_register_fd): No need to check stat if open already filters
81351         all directories.
81352         (fchdir): Fix error condition to match POSIX.
81353         * modules/fchdir (Depends-on): Add sys_stat.
81354         * doc/posix-functions/open.texi (open): Document the limitation.
81355         * modules/fchdir-tests: New file.
81356         * tests/test-fchdir.c: Likewise.
81358         canonicalize: allow cross-testing from cygwin to mingw
81359         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
81360         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
81361         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
81362         Likewise.
81363         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
81364         target does not support symlinks.
81365         * tests/test-canonicalize-lgpl.sh: Likewise.
81367         chown: avoid compilation warning on mingw
81368         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
81369         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
81370         mingw.
81371         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
81372         * modules/chown (Depends-on): Add errno.
81374 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
81376         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
81377         command.
81379 2009-08-31  Jim Meyering  <meyering@redhat.com>
81381         canonicalize: remove useless initialization
81382         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
81383         initialization of local, "end".
81385 2009-08-30  Bruno Haible  <bruno@clisp.org>
81387         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
81388         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
81389         ENOSYS.
81391 2009-08-30  Bruno Haible  <bruno@clisp.org>
81393         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
81394         /usr/xpg4/bin/tr when it exists.
81395         * tests/test-pipe-filter-gi1.sh: Likewise.
81397 2009-08-30  Bruno Haible  <bruno@clisp.org>
81399         Work around deficient /usr/bin/id program on Solaris.
81400         * tests/test-file-has-acl.sh (ID): New variable.
81401         * tests/test-set-mode-acl.sh (ID): Likewise.
81402         * tests/test-copy-acl.sh (ID): Likewise.
81403         * tests/test-copy-file.sh (ID): Likewise.
81405 2009-08-30  Bruno Haible  <bruno@clisp.org>
81407         New module 'xstriconveh'.
81408         * lib/xstriconveh.h: New file.
81409         * lib/xstriconveh.c: New file.
81410         * modules/xstriconveh: New file.
81412 2009-08-30  Bruno Haible  <bruno@clisp.org>
81414         Make it easier to use mem_cd_iconveh.
81415         * lib/striconveh.h (iconveh_t): New type.
81416         (iconveh_open, iconveh_close): New declarations.
81417         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81418         with a single 'const iconveh_t *' argument.
81419         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
81420         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
81421         with a single 'const iconveh_t *' argument.
81422         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
81423         * tests/test-striconveh.c (main): Update.
81424         * NEWS: Mention the change.
81426 2009-08-30  Bruno Haible  <bruno@clisp.org>
81428         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
81429         problem.
81431 2009-08-30  Bruno Haible  <bruno@clisp.org>
81433         Work around iconv_open problem on Solaris.
81434         * lib/iconv_open-solaris.gperf: New file.
81435         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
81436         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
81437         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
81438         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
81439         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
81440         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
81442 2009-08-29  Jim Meyering  <meyering@redhat.com>
81444         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
81445         * top/maint.mk (cvs-check): Remove target; it was just an alias
81446         to the better-named vc-diff-check.
81447         (maintainer-distcheck): Remove rule.  It was used only from
81448         the (alpha/beta/major) target, and all of its commands but one
81449         were coreutils-specific.
81450         (vc-dist): Remove rule.
81451         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
81452         Run vc-diff-check, not vc-dist.
81453         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
81455 2009-08-27  Bruno Haible  <bruno@clisp.org>
81457         * tests/test-bitrotate.c (main): Remove test that uses a shift count
81458         of 0.
81460 2009-08-27  Bruno Haible  <bruno@clisp.org>
81462         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
81463         compilers.
81464         * doc/func.texi: Document the SunPRO C bug.
81466 2009-08-27  Bruno Haible  <bruno@clisp.org>
81468         Fix link error on Solaris.
81469         * tests/test-parse-duration.c (xstrdup): Remove function.
81471 2009-08-26  Pádraig Brady  <P@draigbrady.com>
81473         ignore-value: handle pointer types, too
81474         * lib/ignore-value.h (__attribute__): Remove definition.
81475         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
81476         of a more concise and more-often effective "(void) i" statement.
81477         (ignore_ptr): New function to suppress warnings from functions that
81478         return pointers, and to make it explicit that one function doesn't
81479         handle all cases.
81481 2009-08-25  Bruno Haible  <bruno@clisp.org>
81483         dup2: work around a Linux bug.
81484         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
81485         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
81486         * doc/posix-functions/dup2.texi: Mention the Linux bug.
81487         Reported by Simon Josefsson.
81489 2009-08-25  Jim Meyering  <meyering@redhat.com>
81491         libguestfs uses gnulib
81492         * users.txt: Add libguestfs.
81494 2009-08-24  Eric Blake  <ebb9@byu.net>
81496         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
81497         * lib/pipe2.c (includes): Add binary-io.h.
81498         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
81500 2009-08-24  Bruno Haible  <bruno@clisp.org>
81502         Tolerate declared but missing accept4 syscall.
81503         * lib/accept4.c (accept4): Invoke original accept4 function first, if
81504         available.
81505         * lib/sys_socket.in.h (accept4): If the function is already present,
81506         override it.
81507         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
81508         * modules/accept4 (Makefile.am): Compile accept4.c always.
81509         Reported by Paolo Bonzini and Eric Blake.
81511 2009-08-23  Bruno Haible  <bruno@clisp.org>
81513         New module 'accept4'.
81514         * lib/sys_socket.in.h (accept4): New declaration.
81515         * lib/accept4.c: New file.
81516         * m4/accept4.m4: New file.
81517         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
81518         GNULIB_ACCEPT4, HAVE_ACCEPT4.
81519         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
81520         HAVE_ACCEPT4.
81521         * modules/accept4: New file.
81522         * doc/glibc-functions/accept4.texi: Mention the new module.
81524 2009-08-24  Jim Meyering  <meyering@redhat.com>
81526         progname: also set global program_invocation_name, when possible
81527         Before this change, a libtool-enabled program that calls glibc's
81528         error function would report the program name as
81529         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
81530         * modules/progname (configure.ac): Check for a declaration of
81531         program_invocation_name.
81532         * lib/progname.c:  Include <errno.h>.
81533         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
81534         Set program_invocation_name.
81536 2009-08-23  Bruno Haible  <bruno@clisp.org>
81538         * lib/dup3.c: Include <string.h>.
81540 2009-08-23  Bruno Haible  <bruno@clisp.org>
81542         * lib/dup3.c (dup3): Test only once whether the system actually exists.
81543         * lib/pipe2.c (pipe2): Likewise.
81544         Suggested by Eric Blake.
81546 2009-08-23  Bruno Haible  <bruno@clisp.org>
81548         Tolerate declared but missing dup3 syscall.
81549         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
81550         * lib/unistd.in.h (dup3): If the function is already present,
81551         override it.
81552         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
81553         * modules/dup3 (Makefile.am): Compile dup3.c always.
81554         Reported by Paolo Bonzini.
81556 2009-08-23  Bruno Haible  <bruno@clisp.org>
81558         Tolerate declared but missing pipe2 syscall.
81559         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
81560         available.
81561         * lib/unistd.in.h (pipe2): If the function is already present,
81562         override it.
81563         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
81564         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
81565         Reported by Paolo Bonzini.
81567 2009-08-23  Bruno Haible  <bruno@clisp.org>
81569         * lib/pipe2.c (pipe2): Move #ifs inside function.
81571 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81573         quotearg: document limitations of quote_these_too
81574         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
81575         those limitations are created.
81576         * lib/quotearg.h (set_char_quoting): Document that digits and
81577         letters that are special after backslash are not permitted.
81578         (quotearg_char): Cross-reference set_char_quoting documentation.
81580 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
81582         quotearg: implement custom_quoting_style
81583         * lib/quotearg.c: (struct quoting_options): Add left_quote and
81584         right_quote fields.
81585         (set_custom_quoting): New public function.
81586         (quotearg_buffer_restyled): Add left_quote and right_quote
81587         arguments, handle them very much like locale quoting, and update
81588         all uses.
81589         (quotearg_n_custom): New public function.
81590         (quotearg_n_custom_mem): New public function.
81591         (quotearg_custom): New public function.
81592         (quotearg_custom_mem): New public function.
81593         * lib/quotearg.h: Prototype and document new public functions.
81594         (enum quoting_style): For escape_quoting_style and
81595         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
81596         ignored even though they're otherwise like c_quoting_style.
81597         Add custom_quoting_style member and document with comparison to
81598         clocale_quoting_style.
81599         * tests/test-quotearg.c (custom_quotes): New array.
81600         (custom_results): New array.
81601         (main): Extend to test custom quoting.
81603 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81605         quotearg: fix right quote escaping when it's in quote_these_too
81606         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
81607         quote, be sure to prepend only one backslash.
81608         * tests/test-quotearg.c (use_quote_double_quotes): New function.
81609         (main): Test it.
81611 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
81613         quotearg-tests: test escaping of embedded locale quotes
81614         * tests/test-quotearg.c (struct result_strings): Add member for
81615         new input.
81616         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
81617         (inputs): Add new input.
81618         (results_g): Add expected results.
81619         (flag_results): Likewise.
81620         (locale_results): Likewise.
81621         (compare_strings): Check those.
81623 2009-08-23  Bruno Haible  <bruno@clisp.org>
81625         Tests for module 'dup3'.
81626         * modules/dup3-tests: New file.
81627         * tests/test-dup3.c: New file.
81629         New module 'dup3'.
81630         * lib/unistd.in.h (dup3): New declaration.
81631         * lib/dup3.c: New file.
81632         * m4/dup3.m4: New file.
81633         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
81634         HAVE_DUP3.
81635         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
81636         * modules/dup3: New file.
81637         * doc/glibc-functions/dup3.texi: Mention the new module.
81639 2009-08-23  Bruno Haible  <bruno@clisp.org>
81641         Tweak the dup2 test.
81642         * tests/test-dup2.c (main): Create the test file empty. Verify that an
81643         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
81644         the test file is still empty. Fix argument order of lseek.
81646 2009-08-23  Bruno Haible  <bruno@clisp.org>
81648         Avoid test link errors when the modules getopt-gnu, gettext are used.
81649         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
81650         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
81652 2009-08-23  Bruno Haible  <bruno@clisp.org>
81654         Fix getdtablesize() on mingw.
81655         * lib/getdtablesize.c (getdtablesize): Implement differently.
81656         * lib/unistd.in.h (getdtablesize): Improve comment.
81658 2009-08-23  Bruno Haible  <bruno@clisp.org>
81660         New module 'mkostemp'.
81661         Based on Ulrich Drepper's 2007-08-10 change in glibc.
81662         * lib/stdlib.in.h (mksotemp): New declaration.
81663         * lib/mkostemp.c: New file, from glibc with modifications.
81664         * lib/tempname.h (GT_FILE): Remove outdated comment.
81665         (gen_tempname): Add flags argument.
81666         * lib/tempname.c (__GT_BIGFILE): Remove macro.
81667         (__GT_FILE): Map to 1.
81668         (small_open, large_open): Remove macros.
81669         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
81670         * lib/mkstemp.c (mkstemp): Update.
81671         * lib/mkdtemp.c (mkdtemp): Likewise.
81672         * m4/mkostemp.m4: New file.
81673         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
81674         HAVE_MKOSTEMP.
81675         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
81676         HAVE_MKOSTEMP.
81677         * modules/mkostemp: New file, based on modules/mkstemp.
81678         * doc/glibc-functions/mkostemp.texi: Mention the new module.
81679         * NEWS: Mention the change.
81681 2009-08-23  Bruno Haible  <bruno@clisp.org>
81683         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
81684         Reported by Eric Blake.
81686 2009-08-23  Bruno Haible  <bruno@clisp.org>
81688         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
81689         Reported by Eric Blake.
81691 2009-08-23  Bruno Haible  <bruno@clisp.org>
81693         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
81694         * modules/pipe2 (Depends-on): Likewise.
81696 2009-08-23  Eric Blake  <ebb9@byu.net>
81698         fcntl-h: add O_TTY_INIT support
81699         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
81700         * tests/test-fcntl-h.c (o): Test it.
81701         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81703         fcntl-h: rename from fcntl, in preparation for fcntl(2)
81704         * modules/fcntl: Move <fcntl.h> header replacement...
81705         * modules/fcntl-h: ...to new name, so as not to collide with
81706         like-named function.
81707         * tests/test-fcntl.c: Rename...
81708         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
81709         * modules/fcntl-tests: Rename...
81710         * modules/fcntl-h-tests: ...to this.  Update test file name.
81711         * modules/chdir-long (Depends-on): Update clients.
81712         * modules/chdir-safer (Depends-on): Likewise.
81713         * modules/fcntl-safer (Depends-on): Likewise.
81714         * modules/fts (Depends-on): Likewise.
81715         * modules/mkancesdirs (Depends-on): Likewise.
81716         * modules/mkdir-p (Depends-on): Likewise.
81717         * modules/open (Depends-on): Likewise.
81718         * modules/savewd (Depends-on): Likewise.
81719         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
81720         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
81722 2009-08-22  Bruno Haible  <bruno@clisp.org>
81724         * modules/binary-io (License): Relicense under LGPL.
81725         * modules/pipe2 (License): Likewise.
81727 2009-08-22  Bruno Haible  <bruno@clisp.org>
81729         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
81730         return value.
81731         * lib/pipe-filter-gi.c (filter_init): Likewise.
81732         Reported by Eric Blake.
81734 2009-08-22  Bruno Haible  <bruno@clisp.org>
81736         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
81737         * modules/pipe (Depends-on): Add pipe2.
81739 2009-08-22  Bruno Haible  <bruno@clisp.org>
81741         Tests for module 'pipe2'.
81742         * modules/pipe2-tests: New file.
81743         * tests/test-pipe2.c: New file.
81745         New module 'pipe2'.
81746         * lib/unistd.in.h (pipe2): New declaration.
81747         * lib/pipe2.c: New file.
81748         * m4/pipe2.m4: New file.
81749         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
81750         HAVE_PIPE2.
81751         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
81752         * modules/pipe2: New file.
81753         * doc/glibc-functions/pipe2.texi: Mention the new module.
81755 2009-08-22  Bruno Haible  <bruno@clisp.org>
81757         Reference some new glibc functions.
81758         * doc/glibc-functions/accept4.texi: New file.
81759         * doc/glibc-functions/dup3.texi: New file.
81760         * doc/glibc-functions/mkostemp.texi: New file.
81761         * doc/glibc-functions/pipe2.texi: New file.
81762         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
81763         (Glibc sys/socket.h): Refer to accept4.
81764         (Glibc unistd.h): Refer to dup3, pipe2.
81765         Reported by Eric Blake.
81767 2009-08-22  Jim Meyering  <meyering@redhat.com>
81768             Bruno Haible  <bruno@clisp.org>
81770         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
81771         This makes it so packages using automake-1.11's silent-rules option
81772         can print e.g., a single "GEN    configmake.h" line, rather than
81773         the 30+ statements that perform the job.  If you want to see the
81774         actual commands, you can still run "make V=1".
81775         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
81776         so that make output is abbreviated when those variables are defined
81777         appropriately.
81778         * modules/argz: Likewise.
81779         * modules/arpa_inet: Likewise.
81780         * modules/byteswap: Likewise.
81781         * modules/configmake: Likewise.
81782         * modules/dirent: Likewise.
81783         * modules/errno: Likewise.
81784         * modules/fcntl: Likewise.
81785         * modules/float: Likewise.
81786         * modules/fnmatch: Likewise.
81787         * modules/getopt-posix: Likewise.
81788         * modules/glob: Likewise.
81789         * modules/iconv_open: Likewise.
81790         * modules/inttypes: Likewise.
81791         * modules/localcharset: Likewise.
81792         * modules/locale: Likewise.
81793         * modules/math: Likewise.
81794         * modules/netdb: Likewise.
81795         * modules/netinet_in: Likewise.
81796         * modules/poll: Likewise.
81797         * modules/posix_spawnp-tests: Likewise.
81798         * modules/sched: Likewise.
81799         * modules/search: Likewise.
81800         * modules/selinux-h: Likewise.
81801         * modules/signal: Likewise.
81802         * modules/spawn: Likewise.
81803         * modules/stdarg: Likewise.
81804         * modules/stdbool: Likewise.
81805         * modules/stddef: Likewise.
81806         * modules/stdint: Likewise.
81807         * modules/stdio: Likewise.
81808         * modules/stdlib: Likewise.
81809         * modules/string: Likewise.
81810         * modules/strings: Likewise.
81811         * modules/sys_file: Likewise.
81812         * modules/sys_ioctl: Likewise.
81813         * modules/sys_select: Likewise.
81814         * modules/sys_socket: Likewise.
81815         * modules/sys_stat: Likewise.
81816         * modules/sys_time: Likewise.
81817         * modules/sys_times: Likewise.
81818         * modules/sys_utsname: Likewise.
81819         * modules/sys_wait: Likewise.
81820         * modules/sysexits: Likewise.
81821         * modules/time: Likewise.
81822         * modules/unistd: Likewise.
81823         * modules/wchar: Likewise.
81824         * modules/wctype: Likewise.
81826 2009-08-22  Jim Meyering  <meyering@redhat.com>
81828         announce-gen: detect write failure
81829         * build-aux/announce-gen: Add Coda at end.
81830         Remove equivalent-but-more-verbose block at top.
81832 2009-08-19  Akim Demaille  <demaille@gostai.com>
81834         bootstrap: --help to stdout.
81835         * bootstrap (usage): Don't send --help to stderr.
81836         Use a here doc instead of a long string.
81838 2009-08-21  Eric Blake  <ebb9@byu.net>
81840         test-popen-safer: split from test-popen
81841         * tests/test-popen.c (main): Move...
81842         * tests/test-popen.h: ...into new file.
81843         * tests/test-popen-safer2.c: New file.
81844         * modules/popen-tests (Files): Add test-popen.h.
81845         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
81846         Suggested by Bruno Haible.
81848         test-fcntl-safer: split from test-open
81849         * tests/test-open.c (main): Move...
81850         * tests/test-open.h: ...into new file.
81851         * tests/test-fcntl-safer.c: New file.
81852         * modules/open-tests (Files): Add test-open.h.
81853         * modules/fcntl-safer-tests: New file.
81854         Suggested by Bruno Haible.
81856         test-fopen-safer: split from test-fopen
81857         * tests/test-fopen.c (main): Move...
81858         * tests/test-fopen.h: ...into new file.
81859         * tests/test-fopen-safer.c: New file.
81860         * modules/fopen-tests (Files): Add test-fopen.h.
81861         * modules/fopen-safer-tests: New file.
81862         Suggested by Bruno Haible.
81864 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81866         popen-safer: test O_CLOEXEC at run-time.
81867         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
81869 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
81871         fcntl: move more flags to the header
81872         * lib/cloexec.c: Do not define FD_CLOEXEC here.
81873         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
81874         * lib/fcntl.in.h: Do both things here.
81876 2009-08-21  Jim Meyering  <meyering@redhat.com>
81878         consistently remove $@-t before redirecting to it
81879         * modules/argz: Remove $@-t and $@ before redirecting to the former.
81880         * modules/alloca-opt: Likewise.
81881         * modules/byteswap: Likewise.
81882         * modules/fnmatch: Likewise.
81883         * modules/getopt-posix: Likewise.
81884         * modules/glob: Likewise.
81885         * modules/poll: Likewise.
81886         * modules/posix_spawnp-tests: Likewise.
81887         * modules/sys_socket: Likewise.
81888         * modules/sysexits: Likewise.
81890 2009-08-21  Eric Blake  <ebb9@byu.net>
81892         popen: simplify access to original popen
81893         * lib/popen.c (rpl_popen): No need to worry about popen being a
81894         macro.
81895         Reported by Bruno Haible.
81897 2009-08-20  Eric Blake  <ebb9@byu.net>
81899         build: avoid some compiler warnings
81900         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
81901         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
81902         type.
81903         (new_exclude_segment, excluded_file_pattern_p)
81904         (excluded_file_name_p): Reduce scope.
81905         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
81906         old-style declaration.
81908 2009-08-20  Simon Josefsson  <simon@josefsson.org>
81910         * tests/test-exclude1.sh: Handle Windows EOL.
81911         * tests/test-exclude2.sh: Likewise.
81912         * tests/test-exclude3.sh: Likewise.
81913         * tests/test-exclude4.sh: Likewise.
81914         * tests/test-exclude5.sh: Likewise.
81915         * tests/test-exclude6.sh: Likewise.
81916         * tests/test-exclude7.sh: Likewise.
81918 2009-08-19  Akim Demaille  <demaille@gostai.com>
81920         bootstrap: find sha1sum when named gsha1sum.
81921         * bootstrap (find_tool): New.
81922         ($SHA1SUM): New.
81923         Use it.
81925 2009-08-20  Jim Meyering  <meyering@redhat.com>
81927         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
81928         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
81929         expression that converts "." in a file name to "\." in the resulting
81930         regexp.  Start with a dummy statement, so that prior shell variable
81931         definitions are expanded portably.  Reported by Simon Josefsson.
81933 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
81935         Fix polling for writeability of a screen buffer.
81936         * lib/poll.c: Distinguish input and screen buffers for the
81937         Win32 implementation.
81938         * lib/select.c: Likewise.
81940 2009-08-19  Eric Blake  <ebb9@byu.net>
81942         popen-safer: prevent popen from clobbering std descriptors
81943         * modules/popen-safer: New file.
81944         * lib/popen-safer.c: Likewise.
81945         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
81946         * lib/stdio--.h (popen): Provide override.
81947         * lib/stdio-safer.h (popen_safer): Provide declaration.
81948         * tests/test-popen.c (includes): Partially test this.
81949         * modules/popen-safer-tests: New file, for more tests.
81950         * tests/test-popen-safer.c: Likewise.
81951         * MODULES.html.sh (file stream based Input/Output): Mention it.
81953         tests: test some of the *-safer modules
81954         * modules/fopen-safer (Depends-on): Add fopen.
81955         * modules/fcntl-safer (Depends-on): Add fcntl.
81956         * modules/stdlib-safer (Depends-on): Add stdlib.
81957         (configure.ac): Set indicator.
81958         * modules/unistd-safer (configure.ac): Likewise.
81959         * modules/tmpfile-safer (configure.ac): Likewise.
81960         (Depends-on): Add tmpfile.
81961         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
81962         active.
81963         * tests/test-fopen.c (includes): Test safer versions when they are
81964         in use.
81965         * tests/test-open.c (includes): Likewise.
81967         popen: fix cygwin 1.5 bug when stdin closed
81968         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
81969         * modules/popen: New file.
81970         * modules/popen-tests: Likewise.
81971         * tests/test-popen.c: Likewise.
81972         * m4/popen.m4: Likewise.
81973         * lib/popen.c: Likewise.
81974         * lib/stdio.in.h (popen): New declaration.
81975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
81976         * modules/stdio (Makefile.am): Likewise.
81977         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
81979 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
81981         maint.mk: give full control over update-copyright exclusions
81982         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
81983         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
81984         (update-copyright): Don't force inclusion of top-level
81985         ChangeLog.  Don't force exclusion of all COPYING files, but make
81986         them the default exclusion instead.
81988 2009-08-16  Bruno Haible  <bruno@clisp.org>
81990         Fix test failures on Solaris 10.
81991         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
81992         tests when Solaris iconv() is used.
81993         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
81994         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
81995         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
81996         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
81997         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
81999 2009-08-16  Bruno Haible  <bruno@clisp.org>
82001         Fix test failures on Solaris 10.
82002         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
82003         'tr' program and pass it as first argument.
82004         * tests/test-pipe-filter-gi1.sh: Likewise.
82005         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
82006         program as first argument.
82007         * tests/test-pipe-filter-gi1.c (main): Likewise.
82009 2009-08-16  Eric Blake  <ebb9@byu.net>
82011         fpurge: fix previous commits
82012         * modules/fpurge (Makefile.am): Make replacement conditional,
82013         partially reverting 2007-04-29 change; missed in previous
82014         attempt.
82015         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
82016         is missing.
82018 2009-08-16  Bruno Haible  <bruno@clisp.org>
82020         Clarify fpurge's effect on the file position.
82021         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
82022         * tests/test-fpurge.c (main): Make a second pass for checking the file
82023         position.
82025 2009-08-16  Bruno Haible  <bruno@clisp.org>
82027         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
82028         declaration of fpurge is missing.
82029         * tests/test-fpurge.c (main): Check that the file has not more contents
82030         than expected. Close the file before removing it.
82032 2009-08-15  Eric Blake  <ebb9@byu.net>
82034         fpurge: don't wrap working cygwin implementation
82035         * lib/fpurge.c (fpurge): Fix comment typo.
82036         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
82037         1.7 to avoid replacement.
82038         * tests/test-fpurge.c (main): Enhance test.
82040 2009-08-15  Eric Blake  <ebb9@byu.net>
82041         and Jim Meyering  <meyering@redhat.com>
82043         test-update-copyright: skip if perl is insufficient
82044         * tests/test-update-copyright.sh: Failure to run maintainer tool
82045         should not cause testsuite failure on cygwin 1.5.
82047 2009-08-14  Eric Blake  <ebb9@byu.net>
82049         doc: mention more functions added in cygwin 1.7.0
82050         * doc/posix-headers/limits.texi (limits.h): Update for recent
82051         cygwin additions.
82052         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
82053         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
82054         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
82055         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
82056         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
82058 2009-08-14  Eric Blake  <ebb9@byu.net>
82060         maint.mk: simplify update-copyright rule
82061         * top/maint.mk (update-copyright-local): Delete, and document how
82062         to do it in cfg.mk instead.
82063         (update-copyright-exclude-regexp): Delete, and document how to do
82064         it in .x-update-copyright instead.
82065         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
82066         exclude ChangeLog.
82068 2009-08-14  Bruno Haible  <bruno@clisp.org>
82070         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
82072 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82074         maint.mk: support update-copyright-env
82075         * top/maint.mk (update-copyright-env): Define place-holder.
82076         (update-copyright): Expand $(update-copyright-env) before
82077         invoking update-copyright.
82079 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82081         update-copyright: implement forced reformatting
82082         * build-aux/update-copyright: Implement and document
82083         UPDATE_COPYRIGHT_FORCE.
82084         * tests/test-update-copyright.sh: Test it.
82086 2009-08-14  Eric Blake  <ebb9@byu.net>
82087         and Bruno Haible  <bruno@clisp.org>
82089         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
82090         * tests/test-locale.c: Revert previous patch related to NULL.
82091         * tests/test-stdio.c: Likewise.
82092         * tests/test-stdlib.c: Likewise.
82093         * tests/test-string.c: Likewise.
82094         * tests/test-unistd.c: Likewise.
82095         * modules/time-tests (Depends-on): Add verify.
82096         * modules/wchar-tests (Depends-on): Likewise.
82097         * tests/test-time.c: Test for NULL compliance.
82098         * tests/test-wchar.c: Likewise.
82099         * modules/locale (Depends-on): Add stddef.
82100         * modules/stdio (Depends-on): Likewise.
82101         * modules/stdlib (Depends-on): Likewise.
82102         * modules/string (Depends-on): Likewise.
82103         * modules/time (Depends-on): Likewise.
82104         * modules/unistd (Depends-on): Likewise.
82105         * modules/wchar (Depends-on): Likewise.
82106         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
82107         * lib/stdlib.in.h (includes): Likewise.
82108         * lib/string.in.h (includes): Likewise.
82109         * lib/time.in.h (includes): Likewise.
82110         * lib/unistd.in.h (includes): Likewise.
82111         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
82112         replaced.
82113         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
82114         * m4/stddef_h.m4: New file.
82115         * modules/stddef: Likewise.
82116         * lib/stddef.in.h: Likewise.
82117         * modules/stddef-tests: Likewise.
82118         * tests/test-stddef.c: Likewise.
82119         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
82120         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
82121         * doc/posix-headers/locale.texi (locale.h): Likewise.
82122         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
82123         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
82124         * doc/posix-headers/string.texi (string.h): Likewise.
82125         * doc/posix-headers/time.texi (time.h): Likewise.
82126         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
82127         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
82129 2009-08-14  Eric Blake  <ebb9@byu.net>
82131         doc: improve git diff of texinfo files
82132         * .gitattributes: Add rule for *.texi files, with hint on how to
82133         use it.
82134         Copied from m4, and based on a report by Bruno Haible.
82136 2009-08-14  Bruno Haible  <bruno@clisp.org>
82138         Disable multithread support by default on Cygwin 1.5.x for real.
82139         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
82141 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
82143         update-copyright: much ado about intervals
82144         * build-aux/update-copyright: Implement and document
82145         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
82146         of copyright year intervals.
82147         Also, document UPDATE_COPYRIGHT_YEAR.
82148         * tests/test-update-copyright.sh: Test it.
82150         update-copyright: convert 2-digit to 4-digit years
82151         * build-aux/update-copyright: Implement and document.
82152         * tests/test-update-copyright.sh: Update.
82154 2009-08-14  Jim Meyering  <meyering@redhat.com>
82156         test-exclude: avoid coreutils "make check" failure
82157         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
82158         just as in test-argmatch.c.
82160 2009-08-13  Eric Blake  <ebb9@byu.net>
82162         test-dup2: fix bad assumption
82163         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
82164         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
82166         test-version-etc: fix CRLF portability issue
82167         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
82168         recognize \r.
82169         * tests/test-argp-version-etc-1.sh: Likewise.
82171         getopt: update client modules
82172         * modules/argp (Depends-on): Use getopt-gnu.
82173         * modules/git-merge-changelog (Depends-on): Likewise.
82174         * modules/long-options (Depends-on): Likewise.
82175         * modules/xstrtol (Depends-on): Likewise.
82177 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82179         * tests/test-version-etc.sh: Don't fail on different
82180         project/version.  Don't fail on CRLF differences.  Rewrite to use
82181         multiple -e instead of multiple sed forks, suggested by Eric Blake
82182         <ebb9@byu.net>.
82183         * tests/test-argp-version-etc-1.sh: Likewise.
82185 2009-08-13  Simon Josefsson  <simon@josefsson.org>
82187         * tests/test-version-etc.sh: Don't fail on different
82188         project/version.
82190 2009-08-12  Bruno Haible  <bruno@clisp.org>
82192         Tests for modules 'getopt-posix', 'getopt-gnu'.
82193         * modules/getopt-posix-tests: New file.
82194         * tests/test-getopt.c: New file.
82195         * tests/test-getopt.h: New file.
82196         * tests/test-getopt_long.h: New file.
82198         New modules 'getopt-posix', 'getopt-gnu'.
82199         * modules/getopt-gnu: New file, renamed from modules/getopt.
82200         * modules/getopt-posix: New file.
82201         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
82202         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
82203         (gl_GETOPT): Remove macro.
82204         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
82205         Disable the test against BSD systems that declare optreset. Test
82206         against mingw bug. Test against lack of support of optional arguments
82207         on many platforms.
82208         * doc/glibc-headers/getopt.texi: Update module name and list of
82209         relevant platforms.
82210         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
82211         'getopt-gnu' and more portability problems.
82212         * NEWS: Mention the changes.
82214 2009-08-12  Bruno Haible  <bruno@clisp.org>
82216         Ensure that optarg etc. get declared by <unistd.h>.
82217         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
82218         AC_USE_SYSTEM_EXTENSIONS.
82219         * modules/getopt (Depends-on): Add 'extensions'.
82221 2009-08-12  Bruno Haible  <bruno@clisp.org>
82223         Avoid test link errors.
82224         * modules/pipe-filter-ii-tests (Makefile.am): Define
82225         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
82226         * modules/pipe-filter-gi-tests (Makefile.am): Define
82227         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
82228         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82230 2009-08-12  Bruno Haible  <bruno@clisp.org>
82232         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
82233         gl_GETOPT_SUBSTITUTE before.
82234         (gl_GETOPT): Use it.
82235         * m4/argp.m4 (gl_ARGP): Update.
82236         Reported by Sergey Poznyakoff.
82238         * m4/getopt.m4: Reorder macros.
82239         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
82240         (gl_GETOPT_SUBSTITUTE): Remove macro.
82242 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82244         Minor improvement in gitlog-to-changelog
82246         * build-aux/gitlog-to-changelog: New option `--format' makes
82247         output format string configurable.
82249 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
82251         Optimize exclude: use hash tables for non-wildcard patterns.
82253         * lib/exclude.c: Include hash.h and mbuiter.h
82254         (struct exclude_pattern, exclude_segment): New data types.
82255         (struct exclude): Rewrite.
82256         (fnmatch_pattern_has_wildcards): New function.
82257         (new_exclude_segment, free_exclude_segment): New functions.
82258         (excluded_file_pattern_p, excluded_file_name_p): New functions.
82259         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
82260         * lib/exclude.h (is_fnmatch_pattern): New prototype.
82261         * modules/exclude: Depend on hash and mbuiter.
82263         * modules/exclude-tests: New file.
82264         * tests/test-exclude.c: New file.
82265         * tests/test-exclude1.sh: New file.
82266         * tests/test-exclude2.sh: New file.
82267         * tests/test-exclude3.sh: New file.
82268         * tests/test-exclude4.sh: New file.
82269         * tests/test-exclude5.sh: New file.
82270         * tests/test-exclude6.sh: New file.
82271         * tests/test-exclude7.sh: New file.
82273 2009-08-12  Bruno Haible  <bruno@clisp.org>
82275         Ensure that getopt() gets declared by <unistd.h>.
82276         * lib/unistd.in.h: Conditionally include getopt.h.
82277         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
82278         Set GNULIB_UNISTD_H_GETOPT.
82279         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82280         GNULIB_UNISTD_H_GETOPT.
82281         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
82283 2009-08-12  Bruno Haible  <bruno@clisp.org>
82285         Clarify logic.
82286         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
82287         gl_replace_getopt instead of GETOPT_H.
82289 2009-08-12  Bruno Haible  <bruno@clisp.org>
82291         * m4/getopt.m4: Add comments.
82293 2009-08-12  Bruno Haible  <bruno@clisp.org>
82295         Disable multithread support by default on Cygwin 1.5.x.
82296         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
82297         set gl_use_threads=no if not specified otherwise.
82299 2009-08-11  Bruno Haible  <bruno@clisp.org>
82301         Avoid compilation error on NetBSD 5.0.
82302         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
82303         * tests/test-stdio.c: Likewise.
82304         * tests/test-stdlib.c: Likewise.
82305         * tests/test-string.c: Likewise.
82306         * tests/test-unistd.c: Likewise.
82307         Reported by Greg Troxel <gdt@ir.bbn.com>
82308         at <https://savannah.gnu.org/support/?106973>.
82310 2009-08-11  Bruno Haible  <bruno@clisp.org>
82312         * modules/dup2-tests (Depends-on): Remove close.
82314         Undo 2009-07-19 commit.
82315         * modules/acl-tests (Depends-on): Remove close.
82316         * modules/binary-io-tests (Depends-on): Likewise.
82317         * modules/closein-tests (Depends-on): Likewise.
82318         * modules/flock-tests (Depends-on): Likewise.
82319         * modules/fsync-tests (Depends-on): Likewise.
82320         * modules/lseek-tests (Depends-on): Likewise.
82321         * modules/pipe-tests (Depends-on): Likewise.
82322         * modules/posix_spawn-tests (Depends-on): Likewise.
82323         * modules/posix_spawnp-tests (Depends-on): Likewise.
82324         * modules/stat-time-tests (Depends-on): Likewise.
82325         * modules/yesno-tests (Depends-on): Likewise.
82327 2009-08-10  Bruno Haible  <bruno@clisp.org>
82329         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
82331 2009-08-10  Bruno Haible  <bruno@clisp.org>
82333         Fix a gcc warning.
82334         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
82336 2009-08-10  Bruno Haible  <bruno@clisp.org>
82338         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
82339         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
82340         not only the first time.
82341         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
82342         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
82343         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
82344         is 1, not only the first time.
82346 2009-08-10  Bruno Haible  <bruno@clisp.org>
82348         Make it possible to use module 'gethostname' without module 'close'.
82349         * lib/unistd.in.h (close): Evoke a link error only if
82350         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
82352         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82353         * modules/unistd (Makefile.am): Substitute
82354         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82355         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
82356         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
82357         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
82358         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82359         * modules/sys_ioctl (Makefile.am): Substitute
82360         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82361         * modules/socket (configure.ac): On native Windows, set
82362         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
82363         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
82364         Reported by Sam Steingold <sds@gnu.org>.
82366 2009-08-10  Bruno Haible  <bruno@clisp.org>
82368         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
82369         * modules/ioctl (configure.ac): Likewise.
82371 2009-08-10  Bruno Haible  <bruno@clisp.org>
82373         Avoid collision between gnulib wrapper and libintl wrapper.
82374         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
82375         already defined in intl/printf.c.
82376         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
82377         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
82379 2009-08-09  Bruno Haible  <bruno@clisp.org>
82381         Make <sys/select.h> really self-contained, also on Solaris 10.
82382         * lib/sys_select.in.h: Include <string.h>.
82383         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
82384         Solaris 10 problem.
82385         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
82386         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
82387         Reported by Jim Meyering.
82389 2009-08-09  Bruno Haible  <bruno@clisp.org>
82391         Avoid warnings from 'aclocal' that are due to a use of macro name
82392         AM_XGETTEXT_OPTION that is not defined in automake.
82393         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
82394         automake.
82395         * modules/error (configure.ac): Likewise.
82396         * modules/propername (configure.ac): Likewise.
82397         * modules/vasprintf (configure.ac): Likewise.
82398         * modules/verror (configure.ac): Likewise.
82399         * modules/xprintf (configure.ac): Likewise.
82400         * modules/xvasprintf (configure.ac): Likewise.
82402 2009-08-08  Bruno Haible  <bruno@clisp.org>
82404         Avoid compilation error in C++ mode.
82405         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
82406         Reported by Sam Steingold <sds@gnu.org>.
82408 2009-08-08  Bruno Haible  <bruno@clisp.org>
82410         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
82411         for the various Unix platforms.
82412         * doc/posix-headers/limits.texi: Update platforms list regarding
82413         HOST_NAME_MAX.
82414         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
82416 2009-08-07  Jim Meyering  <meyering@redhat.com>
82418         selinux-at: fix typo in a comment
82419         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
82420         Spotted by Paolo Bonzini.
82422         selinux-at: remove redundant m4 code, add documentation
82423         * modules/selinux-at (configure.ac): Remove redundant code.
82424         LIB_SELINUX is already set via the dependent module, selinux-h.
82425         (Include): Add quotes around selinux-at.h.
82426         * lib/selinux-at.h: Add documentation.
82427         Reported by Bruno Haible in
82428         http://marc.info/?l=gnulib-bug&m=124958988300749
82430 2009-08-07  Bruno Haible  <bruno@clisp.org>
82432         Avoid link error on MacOS X 10.3 and 10.4.
82433         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
82434         on non-ELF systems.
82435         * lib/argp-pv.c (argp_program_version): Likewise.
82436         Reported by Simon Josefsson.
82438 2009-08-07  Simon Josefsson  <simon@josefsson.org>
82440         * tests/test-version-etc.sh: Use $EXEEXT.
82442 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
82444         update-copyright: update documentation to point to maint.mk
82445         * build-aux/update-copyright: Here.
82447 2009-08-06  Jim Meyering  <meyering@redhat.com>
82449         maint.mk: support update-copyright-local
82450         * top/maint.mk (update-copyright-local): Define place-holder.
82451         (update-copyright): Depend on $(update-copyright-local).
82453 2009-08-06  Jim Meyering  <meyering@redhat.com>
82455         selinux-at: new module
82456         Initially written for coreutils, this module will soon be
82457         used by findutils, too.
82458         * MODULES.html.sh [Misc]: Add selinux-at.
82459         * lib/selinux-at.h: New file, from coreutils.
82460         * lib/selinux-at.c: Likewise.
82461         * modules/selinux-at: Likewise.
82462         (License): Change from LGPL to GPL, since it depends
82463         on the GPL'd openat module.
82465         doc: update README
82466         * README: Remove references to cogito.
82467         Remove cvs-repo-updating instructions from 2007.
82468         Don't imply that CVS is better if you have limited disk space.
82470 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82472         update-copyright: support C-style comments
82473         * build-aux/update-copyright: Implement and document.
82474         * tests/test-update-copyright.sh: Test.
82476 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82478         update-copyright: support omitted "(C)"
82479         * build-aux/update-copyright: Implement and document.  Also,
82480         allow variable whitespace before "(C)".
82481         * tests/test-update-copyright.sh: Test.
82483 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82485         update-copyright: don't trip on non-FSF copyright statements
82486         * build-aux/update-copyright: Fix so that the first correctly
82487         formatted FSF copyright statement is recognized no matter what
82488         appears before it.  Update documentation.
82489         * tests/test-update-copyright.sh: Test that.
82491 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82493         update-copyright: clean up code a little
82494         * build-aux/update-copyright: Append "_re" to the name of any
82495         variable holding a regular expression.
82496         Replace "old" and "new" with "stmt" in variable names.
82497         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
82498         handled correctly.
82499         Format code more consistently.
82501 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
82503         update-copyright-tests: improve portability
82504         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
82505         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
82507 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82509         update-copyright: support @copyright{} and &copy;
82510         * build-aux/update-copyright: Implement and document.
82511         * tests/test-update-copyright.sh: Test.
82513 2009-08-04  Jim Meyering  <meyering@redhat.com>
82515         update-copyright-tests: correctly test EOL=\r\n handling
82516         * tests/test-update-copyright.sh: Put \r at the end of some lines
82517         for the dos-eol tests.  Based on a patch by Joel E. Denny.
82519         maint.mk: make update-copyright exclusion list more configurable
82520         * top/maint.mk (update-copyright): Default to excluding COPYING,
82521         but allow an override, in case someone does want to update that file.
82523         maint.mk: don't update copyright date in COPYING
82524         * top/maint.mk (update-copyright): Exclude COPYING.
82526         maint.mk: add a copyright-updating rule
82527         * top/maint.mk (update-copyright): New rule.
82528         Derived from coreutils/Makefile.am.
82530         update-copyright: rename some variables
82531         * build-aux/update-copyright: Rename a few variables for clarity.
82532         Tweak syntax.  List Joel E. Denny as coauthor.
82534 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
82536         update-copyright: fix bug for 2-digit last year and add tests
82537         * build-aux/update-copyright: Fix bug.
82538         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
82539         specified.
82540         * modules/update-copyright-tests: New
82541         * tests/test-update-copyright.sh: New.
82543 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82545         update-copyright: handle leading tabs in line prefix
82546         * build-aux/update-copyright: Count leading tabs as 8 spaces
82547         when computing margin.  This helps with the formatting of
82548         ChangeLogs, for example.
82549         Fix documentation a little.
82551 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82553         update-copyright: support EOL=\r\n
82554         * build-aux/update-copyright: Implement that.
82556 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
82558         update-copyright: automatically format copyright statements
82559         * build-aux/update-copyright: Implement that.
82560         Also, be a little more predictable and safer by always failing
82561         when the full copyright format is not perfectly recognized as an
82562         unbroken whole.  Discussed at
82563         <http://lists.gnu.org/r/bug-gnulib/2009-07/msg00131.html>.
82564         Rewrite documentation.
82566 2009-08-03  Bruno Haible  <bruno@clisp.org>
82568         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
82570 2009-08-02  Bruno Haible  <bruno@clisp.org>
82572         Tests for module 'uname'.
82573         * modules/uname-tests: New file.
82574         * tests/test-uname.c: New file.
82576         New module 'uname'.
82577         * lib/uname.c: New file.
82578         * m4/uname.m4: New file.
82579         * modules/uname: New file.
82580         * doc/posix-functions/uname.texi: Mention the new module.
82582 2009-08-02  Bruno Haible  <bruno@clisp.org>
82584         Tests for module 'sys_utsname'.
82585         * modules/sys_utsname-tests: New file.
82586         * tests/test-sys_utsname.c: New file.
82588         New module 'sys_utsname'.
82589         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
82590         * m4/sys_utsname_h.m4: New file.
82591         * modules/sys_utsname: New file.
82592         * doc/posix-headers/sys_utsname.texi: Mention the new module.
82594 2009-08-02  Bruno Haible  <bruno@clisp.org>
82596         Implicitly initialize the sockets library.
82597         * lib/gethostname.c: Include sockets.h.
82598         (rpl_gethostname): Invoke gl_sockets_startup.
82599         * lib/socket.c: Include sockets.h.
82600         (rpl_socket): Invoke gl_sockets_startup.
82601         * modules/gethostname (Depends-on): Add sockets.
82602         * modules/socket (Depends-on): Likewise.
82603         * tests/test-poll.c: Don't include sockets.h.
82604         (main): Don't invoke gl_sockets_startup.
82605         * tests/test-select.c: Don't include sockets.h.
82606         (main): Don't invoke gl_sockets_startup.
82608 2009-08-02  Bruno Haible  <bruno@clisp.org>
82610         Allow multiple calls to gl_sockets_startup.
82611         * lib/sockets.c (initialized_sockets_version): New variable.
82612         (gl_sockets_startup): Do nothing if already called for this or a higher
82613         version.
82614         (gl_sockets_cleanup): Reset initialized_sockets_version.
82616 2009-08-03  Simon Josefsson  <simon@josefsson.org>
82618         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
82619         different project/version.
82621 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
82622             Bruno Haible  <bruno@clisp.org>
82624         Tests for module 'pipe-filter-gi'.
82625         * modules/pipe-filter-gi-tests: New file.
82626         * tests/test-pipe-filter-gi1.sh: New file.
82627         * tests/test-pipe-filter-gi1.c: New file.
82628         * tests/test-pipe-filter-gi2.sh: New file.
82629         * tests/test-pipe-filter-gi2-main.c: New file.
82630         * tests/test-pipe-filter-gi2-child.c: New file.
82632         New module 'pipe-filter-gi'.
82633         * lib/pipe-filter-gi.c: New file.
82634         * modules/pipe-filter-gi: New file.
82636 2009-08-02  Bruno Haible  <bruno@clisp.org>
82637             Paolo Bonzini  <bonzini@gnu.org>
82639         Tests for module 'pipe-filter-ii'.
82640         * modules/pipe-filter-ii-tests: New file.
82641         * tests/test-pipe-filter-ii1.sh: New file.
82642         * tests/test-pipe-filter-ii1.c: New file.
82643         * tests/test-pipe-filter-ii2.sh: New file.
82644         * tests/test-pipe-filter-ii2-main.c: New file.
82645         * tests/test-pipe-filter-ii2-child.c: New file.
82647         New module 'pipe-filter-ii'.
82648         * lib/pipe-filter.h: New file.
82649         * lib/pipe-filter-ii.c: New file.
82650         * lib/pipe-filter-aux.h: New file.
82651         * modules/pipe-filter-ii: New file.
82653 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82655         * lib/gc-libgcrypt.c: Change copyright to FSF.
82656         * lib/gc-gnulib.c: Likewise.
82658 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
82660         * lib/gethostname.c: Include limits.h.
82662 2009-08-02  Simon Josefsson  <simon@josefsson.org>
82663             Bruno Haible  <bruno@clisp.org>
82665         Ensure HOST_NAME_MAX as part of the gethostname module.
82666         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
82667         define also HOST_NAME_MAX.
82668         * tests/test-gethostname.c: Include <limits.h>.
82669         (main): Check also HOST_NAME_MAX.
82670         * doc/posix-headers/limits.texi: Document the mingw problem.
82672 2009-08-02  Bruno Haible  <bruno@clisp.org>
82674         * lib/gethostname.c (gethostname): Fix handling of large len argument.
82675         Add comments.
82677 2009-03-31  Simon Josefsson  <simon@josefsson.org>
82679         * lib/gethostname.c: Add Windows wrapper.
82680         * m4/gethostname.m4: Look for gethostname in -lws2_32.
82681         * modules/gethostname: Depend on sys_socket & errno, for also
82682         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
82683         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
82685 2009-07-31  Jim Meyering  <meyering@redhat.com>
82687         getloadavg: fix symbol name in comment
82688         * lib/getloadavg.c: Correct a typo I introduced when adding
82689         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
82690         Matt Kraai spotted the problem.
82692 2009-07-29  Matt Kraai  <mkraai@beckman.com>
82694         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
82695         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
82696         code also if ! defined N_NAME_POINTER.
82697         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
82698         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
82699         but the n_name member is a 12-byte array.
82701 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
82703         update-copyright: generalize comment handling
82704         * build-aux/update-copyright: Handle copyright statements
82705         within more comment styles.
82706         Document usage.
82707         Report any file with an external copyright holder or parse failure.
82709 2009-07-29  Jim Meyering  <meyering@redhat.com>
82711         mktime: correct setting of REPLACE_MKTIME
82712         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
82714         update-copyright: new module
82715         * modules/update-copyright: New file.
82716         * build-aux/update-copyright: New file.
82717         * MODULES.html.sh (maint+release support): Add update-copyright.
82719 2009-07-27  Bruno Haible  <bruno@clisp.org>
82721         Fix compilation error when <ctime> is used and mktime is replaced.
82722         * lib/time.in.h (mktime): New declaration.
82723         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
82724         REPLACE_MKTIME instead of defining mktime in config.h.
82725         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
82726         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
82727         Reported by Ross McFarland <rwmcfa1@neces.com>.
82729 2009-07-27  Bruno Haible  <bruno@clisp.org>
82731         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
82732         Reported by Matt Kraai <mkraai@beckman.com>.
82734 2009-07-25  Jim Meyering  <meyering@redhat.com>
82736         maint.mk: avoid warnings about missing files
82737         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
82738         diagnostic when .prev-version does not exist.
82739         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
82740         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
82741         nonexistent cfg.mk.
82742         Suggestions from Simon Josefsson.
82744 2009-07-25  Bruno Haible  <bruno@clisp.org>
82746         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
82747         defined as macros. Needed on QNX 6.4.1.
82748         Reported by Matt Kraai <mkraai@beckman.com>.
82750 2009-07-23  Jim Meyering  <meyering@redhat.com>
82752         maint.mk: invoke "make dist" with a working value of XZ_OPT
82753         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
82755 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
82757         Make fseeko.c compile on QNX.
82758         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
82760 2009-07-22  Peter Simons  <simons@cryp.to>
82762         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
82763         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
82764         * lib/md4.h: Likewise.
82765         * lib/md5.h: Likewise.
82766         * lib/sha1.h: Likewise.
82767         * lib/sha256.h: Likewise.
82768         * lib/sha512.h: Likewise.
82770         tests-sha1: don't assign literal string to 'char *' variable
82771         * tests/test-sha1.c (main): Declare locals with "const" to match
82772         attributes of the right hand side.
82774 2009-07-21  Eric Blake  <ebb9@byu.net>
82776         dup2: fix more mingw problems
82777         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
82778         fd to itself.
82779         * doc/posix-functions/dup2.texi (dup2): Document the bug.
82780         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
82781         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
82782         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
82783         care of mingw bugs.
82785 2009-07-21  Jim Meyering  <meyering@redhat.com>
82787         vc-list-files: avoid failure when /bin/sh is dash
82788         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
82789         On some Debian based systems, /bin/sh is a symlink to dash, and running
82790         this command would omit the "/" following each 'tests' prefix:
82791           dash -x build-aux/vc-list-files -C . tests
82792         That is because bash and dash work differently:
82793           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
82794           bash ok
82795           dash odd
82797 2009-07-21  Eric Blake  <ebb9@byu.net>
82799         dup2-tests: test previous patch
82800         * modules/dup2-tests: New file.
82801         * tests/test-dup2.c: Likewise.
82802         * tests/test-open.c (main): Avoid unspecified behavior.
82803         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
82804         test.
82806         dup2: work around mingw and cygwin 1.5 bug
82807         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
82808         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
82809         * modules/unistd (Makefile.am): Substitute it.
82810         * lib/unistd.in.h (dup2): Declare the replacement.
82811         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
82812         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
82813         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
82814         * modules/execute (Depends-on): Add dup2.
82815         * modules/fseterr (Depends-on): Likewise.
82816         * modules/pipe (Depends-on): Likewise.
82817         * modules/posix_spawn-internal (Depends-on): Likewise.
82819 2009-07-21  Bruno Haible  <bruno@clisp.org>
82821         * modules/.gitattributes: New file.
82823 2009-07-20  Bruno Haible  <bruno@clisp.org>
82825         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
82826         (main): Use it.
82828 2009-07-20  Eric Blake  <ebb9@byu.net>
82830         test-pipe: make a bit more robust.
82831         * tests/test-pipe.c (myerr): Allow error messages regardless of
82832         what we do to stderr.
82833         (test_pipe): Rearrange to avoid deadlock.
82834         (child_main): Try a larger read, to ensure we avoided deadlock.
82835         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
82836         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
82837         if misused.
82839 2009-07-19  Jim Meyering  <meyering@redhat.com>
82841         fts: avoid false-positive cycle-detection
82842         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
82843         for each new command line argument.
82845 2009-07-19  Bruno Haible  <bruno@clisp.org>
82847         Fix build error on mingw with the modules sys_select and unistd.
82848         * modules/acl-tests (Depends-on): Add close.
82849         * modules/binary-io-tests (Depends-on): Likewise.
82850         * modules/closein-tests (Depends-on): Likewise.
82851         * modules/flock-tests (Depends-on): Likewise.
82852         * modules/fsync-tests (Depends-on): Likewise.
82853         * modules/lseek-tests (Depends-on): Likewise.
82854         * modules/pipe-tests (Depends-on): Likewise.
82855         * modules/posix_spawn-tests (Depends-on): Likewise.
82856         * modules/posix_spawnp-tests (Depends-on): Likewise.
82857         * modules/stat-time-tests (Depends-on): Likewise.
82858         * modules/yesno-tests (Depends-on): Likewise.
82860 2009-07-19  Bruno Haible  <bruno@clisp.org>
82862         Unify conditionals.
82863         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
82864         macros, not at the compiler macros.
82865         * lib/pipe.c: Likewise.
82866         * lib/execute.c: Likewise.
82867         * lib/spawni.c: Likewise.
82869 2009-07-19  Bruno Haible  <bruno@clisp.org>
82871         Fix handling of closed stdin/stdout/stderr on mingw.
82872         * lib/w32spawn.h: Include unistd.h.
82873         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
82874         file descriptor with O_NOINHERIT flag.
82875         (fd_safer_noinherit): New function, based on fd-safer.c.
82876         (dup_safer_noinherit): New function, based on dup-safer.c.
82877         (undup_safer_noinherit): New function.
82878         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
82879         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
82880         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
82881         instead of fd_safer.
82882         * tests/test-pipe.c: Include <windows.h>.
82883         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
82884         result.
82886         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
82887         from main.
82888         (test_pipe): Pass an extra argument for disambiguation.
82889         (main): Invoke parent_main or child_main.
82891         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
82892         consistently.
82894 2009-07-18  Eric Blake  <ebb9@byu.net>
82896         test-pipe: fix mingw build
82897         * tests/test-pipe.c (main): Avoid fcntl on mingw.
82899 2009-07-18  Bruno Haible  <bruno@clisp.org>
82901         * modules/pipe-tests (Makefile.am): Fix typo.
82903 2009-07-18  Eric Blake  <ebb9@byu.net>
82905         error: fix mingw build
82906         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
82907         Reported by Bruno Haible.
82909         error: avoid undefined use of stdout
82910         * lib/error.c (error, error_at_line): Check that fd 1 is open
82911         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
82912         is handling faults and the close_stdout module wants to report the
82913         detection of closed stdout as an error.
82915 2009-07-17  Eric Blake  <ebb9@byu.net>
82917         pipe: be robust in face of closed fds
82918         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
82919         should cause child to misbehave.
82920         * modules/pipe-tests: New module.
82921         * tests/test-pipe.c: New file.
82922         * tests/test-pipe.sh: New file.
82923         Reported by Akim Demaille.
82925 2009-07-14  Bruno Haible  <bruno@clisp.org>
82927         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
82928         Reported by anonymous kc.
82930 2009-07-07  Jim Meyering  <meyering@redhat.com>
82932         maint.mk: don't look for translatable strings in *.m4 or *.mk
82933         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
82934         when searching for translatable strings.
82936 2009-07-05  Jim Meyering  <meyering@redhat.com>
82938         remove superfluous parentheses in STREQ definition
82939         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
82940         * lib/getugroups.c (STREQ): Likewise.
82941         * lib/fnmatch.c (STREQ): Likewise.
82942         Spotted by Bruno Haible.
82944 2009-07-04  Jim Meyering  <meyering@redhat.com>
82946         argv-iter: new module
82947         * MODULES.html.sh: Add argv-iter.
82948         * lib/argv-iter.c, lib/argv-iter.h: New files.
82949         * modules/argv-iter: New file.
82950         * modules/argv-iter-tests: New file.
82951         * tests/test-argv-iter.c: Test it.
82953 2009-07-04  Bruno Haible  <bruno@clisp.org>
82955         Fix assertion.
82956         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
82957         contains more exact copies of a given entry than file2, leave the extra
82958         copies unpaired rather than aborting.
82959         Reported by Eric Blake.
82961 2009-07-02  Bruno Haible  <bruno@clisp.org>
82963         Speedup git-merge-changelog for git cherry-pick.
82964         * lib/git-merge-changelog.c (struct entries_mapping): New type.
82965         (entries_mapping_get): New function, extracted from compute_mapping.
82966         (entries_mapping_reverse_get): New function.
82967         (compute_mapping): Add a 'full' argument. Return the result in a
82968         'struct entries_mapping'.
82969         (main): Update. Access the mappings through entries_mapping_get.
82970         Reported by Eric Blake.
82972 2009-07-02  Bruno Haible  <bruno@clisp.org>
82974         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
82975         best_i.
82977 2009-07-02  Bruno Haible  <bruno@clisp.org>
82979         Speed up approximate search for matching ChangeLog entries.
82980         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
82981         argument. Call fstrcmp_bounded instead of fstrcmp.
82982         (compute_mapping, try_split_merged_entry, main): Update callers.
82984 2009-07-02  Bruno Haible  <bruno@clisp.org>
82986         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
82988 2009-06-30  Bruno Haible  <bruno@clisp.org>
82990         Reduce the number of uc_is_cased calls.
82991         * lib/unicase.h (casing_suffix_context_t): Add
82992         'first_char_except_ignorable' field.
82993         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
82994         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
82995         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
82996         Update initializer.
82997         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
82998         case-ignorable characters.
82999         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
83000         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
83001         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
83002         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
83003         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
83005 2009-06-30  Bruno Haible  <bruno@clisp.org>
83007         Tests for module 'unicase/ignorable'.
83008         * modules/unicase/ignorable-tests: New file.
83009         * tests/unicase/test-ignorable.c: New file, generated by
83010         gen-uni-tables.
83012         Tests for module 'unicase/cased'.
83013         * modules/unicase/cased-tests: New file.
83014         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
83015         * tests/unicase/test-predicate-part1.h: New file, derived from
83016         tests/unictype/test-predicate-part1.h.
83017         * tests/unicase/test-predicate-part2.h: New file, same as
83018         tests/unictype/test-predicate-part2.h.
83020         Fix evaluation of "Before C" condition of FINAL_SIGMA.
83021         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
83022         (output_casing_properties): New function.
83023         (main): Call it.
83024         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
83025         * lib/unicase/cased.c: Include unictype/bitmap.h.
83026         (uc_is_cased): Define through a bitmap lookup.
83027         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
83028         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
83029         (uc_is_case_ignorable): Define through a bitmap lookup.
83030         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
83031         lib/unictype/bitmap.h.
83032         (Depends-on): Add inline. Clean up.
83033         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
83034         lib/unictype/bitmap.h.
83035         (Depends-on): Add inline. Clean up.
83036         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
83037         recognition.
83038         * tests/unicase/test-u16-tolower.c (main): Likewise.
83039         * tests/unicase/test-u32-tolower.c (main): Likewise.
83041 2009-06-30  Bruno Haible  <bruno@clisp.org>
83043         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
83044         * lib/unicase/u16-casemap.c: Likewise.
83045         * lib/unicase/u32-casemap.c: Likewise.
83047 2009-06-29  Bruno Haible  <bruno@clisp.org>
83049         Define u32_casefold as a wrapper around u32_ct_casefold.
83050         * lib/unicase/u32-casefold.c: Update.
83051         * modules/unicase/u32-casefold (Depends-on): Add
83052         unicase/u32-ct-casefold, unicase/empty-prefix-context,
83053         unicase/empty-suffix-context. Clean up.
83055         Define u16_casefold as a wrapper around u16_ct_casefold.
83056         * lib/unicase/u16-casefold.c: Update.
83057         * modules/unicase/u16-casefold (Depends-on): Add
83058         unicase/u16-ct-casefold, unicase/empty-prefix-context,
83059         unicase/empty-suffix-context. Clean up.
83061         Define u8_casefold as a wrapper around u8_ct_casefold.
83062         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
83063         * lib/unicase/u8-casefold.c: Update.
83064         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
83065         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83067         Define u32_totitle as a wrapper around u32_ct_totitle.
83068         * lib/unicase/u32-totitle.c: Update.
83069         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
83070         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83072         Define u16_totitle as a wrapper around u16_ct_totitle.
83073         * lib/unicase/u16-totitle.c: Update.
83074         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
83075         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83077         Define u8_totitle as a wrapper around u8_ct_totitle.
83078         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
83079         functions.
83080         (FUNC): Delegate to U_CT_TOTITLE.
83081         * lib/unicase/u8-totitle.c: Update.
83082         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
83083         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
83085         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
83086         invocation.
83087         * modules/unicase/u32-tolower (Depends-on): Add
83088         unicase/empty-prefix-context, unicase/empty-suffix-context.
83090         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
83091         invocation.
83092         * modules/unicase/u16-tolower (Depends-on): Add
83093         unicase/empty-prefix-context, unicase/empty-suffix-context.
83095         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
83096         * modules/unicase/u8-tolower (Depends-on): Add
83097         unicase/empty-prefix-context, unicase/empty-suffix-context.
83099         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
83100         invocation.
83101         * modules/unicase/u32-toupper (Depends-on): Add
83102         unicase/empty-prefix-context, unicase/empty-suffix-context.
83104         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
83105         invocation.
83106         * modules/unicase/u16-toupper (Depends-on): Add
83107         unicase/empty-prefix-context, unicase/empty-suffix-context.
83109         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
83110         * modules/unicase/u8-toupper (Depends-on): Add
83111         unicase/empty-prefix-context, unicase/empty-suffix-context.
83113         New module 'unicase/u32-ct-casefold'.
83114         * lib/unicase/u32-ct-casefold.c: New file.
83115         * modules/unicase/u32-ct-casefold: New file.
83117         New module 'unicase/u16-ct-casefold'.
83118         * lib/unicase/u16-ct-casefold.c: New file.
83119         * modules/unicase/u16-ct-casefold: New file.
83121         New module 'unicase/u8-ct-casefold'.
83122         * lib/unicase/u8-ct-casefold.c: New file.
83123         * lib/unicase/u-ct-casefold.h: New file, derived from
83124         lib/unicase/u-casefold.h.
83125         * modules/unicase/u8-ct-casefold: New file.
83127         New module 'unicase/u32-ct-totitle'.
83128         * lib/unicase/u32-ct-totitle.c: New file.
83129         * modules/unicase/u32-ct-totitle: New file.
83131         New module 'unicase/u16-ct-totitle'.
83132         * lib/unicase/u16-ct-totitle.c: New file.
83133         * modules/unicase/u16-ct-totitle: New file.
83135         New module 'unicase/u8-ct-totitle'.
83136         * lib/unicase/u8-ct-totitle.c: New file.
83137         * lib/unicase/u-ct-totitle.h: New file, derived from
83138         lib/unicase/u-totitle.h.
83139         * modules/unicase/u8-ct-totitle: New file.
83141         New module 'unicase/u32-ct-tolower'.
83142         * lib/unicase/u32-ct-tolower.c: New file.
83143         * modules/unicase/u32-ct-tolower: New file.
83145         New module 'unicase/u16-ct-tolower'.
83146         * lib/unicase/u16-ct-tolower.c: New file.
83147         * modules/unicase/u16-ct-tolower: New file.
83149         New module 'unicase/u8-ct-tolower'.
83150         * lib/unicase/u8-ct-tolower.c: New file.
83151         * modules/unicase/u8-ct-tolower: New file.
83153         New module 'unicase/u32-ct-toupper'.
83154         * lib/unicase/u32-ct-toupper.c: New file.
83155         * modules/unicase/u32-ct-toupper: New file.
83157         New module 'unicase/u16-ct-toupper'.
83158         * lib/unicase/u16-ct-toupper.c: New file.
83159         * modules/unicase/u16-ct-toupper: New file.
83161         New module 'unicase/u8-ct-toupper'.
83162         * lib/unicase/u8-ct-toupper.c: New file.
83163         * modules/unicase/u8-ct-toupper: New file.
83165         Add context arguments to u*_casemap functions.
83166         * lib/unicase/unicasemap.h: Include unicase.h.
83167         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
83168         suffix_context arguments.
83169         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
83170         functions.
83171         (FUNC): Add prefix_context and suffix_context arguments. Use
83172         uc_is_cased and uc_is_case_ignorable.
83173         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
83174         * lib/unicase/u16-casemap.c: Likewise.
83175         * lib/unicase/u32-casemap.c: Likewise.
83176         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
83177         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83178         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
83179         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83180         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
83181         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
83183         New module 'unicase/u32-suffix-context'.
83184         * lib/unicase/u32-suffix-context.c: New file.
83185         * modules/unicase/u32-suffix-context: New file.
83187         New module 'unicase/u16-suffix-context'.
83188         * lib/unicase/u16-suffix-context.c: New file.
83189         * modules/unicase/u16-suffix-context: New file.
83191         New module 'unicase/u8-suffix-context'.
83192         * lib/unicase/u8-suffix-context.c: New file.
83193         * lib/unicase/u-suffix-context.h: New file.
83194         * modules/unicase/u8-suffix-context: New file.
83196         New module 'unicase/empty-suffix-context'.
83197         * lib/unicase/empty-suffix-context.c: New file.
83198         * modules/unicase/empty-suffix-context: New file.
83200         New module 'unicase/u32-prefix-context'.
83201         * lib/unicase/u32-prefix-context.c: New file.
83202         * modules/unicase/u32-prefix-context: New file.
83204         New module 'unicase/u16-prefix-context'.
83205         * lib/unicase/u16-prefix-context.c: New file.
83206         * modules/unicase/u16-prefix-context: New file.
83208         New module 'unicase/u8-prefix-context'.
83209         * lib/unicase/u8-prefix-context.c: New file.
83210         * lib/unicase/u-prefix-context.h: New file.
83211         * lib/unicase/context.h: New file.
83212         * modules/unicase/u8-prefix-context: New file.
83214         New module 'unicase/empty-prefix-context'.
83215         * lib/unicase/empty-prefix-context.c: New file.
83216         * modules/unicase/empty-prefix-context: New file.
83218         New module 'unicase/ignorable'.
83219         * lib/unicase/ignorable.c: New file.
83220         * modules/unicase/ignorable: New file.
83222         New module 'unicase/cased'.
83223         * lib/unicase/caseprop.h: New file.
83224         * lib/unicase/cased.c: New file.
83225         * modules/unicase/cased: New file.
83227         New functions for case mapping of substrings.
83228         * lib/unicase.h (casing_prefix_context_t): New type.
83229         (unicase_empty_prefix_context): New variable.
83230         (u8_casing_prefix_context, u16_casing_prefix_context,
83231         u32_casing_prefix_context, u8_casing_prefixes_context,
83232         u16_casing_prefixes_context, u32_casing_prefixes_context): New
83233         declarations.
83234         (casing_suffix_context_t): New type.
83235         (unicase_empty_suffix_context): New variable.
83236         (u8_casing_suffix_context, u16_casing_suffix_context,
83237         u32_casing_suffix_context, u8_casing_suffixes_context,
83238         u16_casing_suffixes_context, u32_casing_suffixes_context,
83239         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
83240         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
83241         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
83242         declarations.
83244 2009-06-28  Jim Meyering  <meyering@redhat.com>
83246         boostrap: indent only with spaces
83247         * build-aux/bootstrap: Indent only with spaces, never TABs.
83249         bootstrap: split long lines
83250         * build-aux/bootstrap: Keep line length < 80.
83252         bootstrap: sync from coreutils
83253         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
83254         just as autoreconf does.  Verify a list of prerequisite
83255         package-name,version-number pairs if defined in bootstrap.conf.
83256         Refer to README-prereq, if prerequisites are not satisfied.
83258 2009-06-27  Eric Blake  <ebb9@byu.net>
83260         tests: add test for bogus NULL definition
83261         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
83262         * tests/test-stdlib.c: Likewise.
83263         * tests/test-string.c: Likewise.
83264         * tests/test-locale.c: Likewise.
83265         * tests/test-unistd.c: Likewise.
83266         * modules/stdio-tests (Depends-on): Add verify.
83267         * modules/stdlib-tests (Depends-on): Likewise.
83268         * modules/string-tests (Depends-on): Likewise.
83269         * modules/locale-tests (Depends-on): Likewise.
83270         * modules/unistd-tests (Depends-on): Likewise.
83272 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
83274         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
83275         self-explaining comment.
83276         * m4/selinux-selinux-h: Update serial.
83277         (gl_LIBSELINUX): New macro, adding a warning for missing development
83278         packages to code extracted from...
83279         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
83280         Add warning for missing development packages here, too.
83282 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
83284         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
83286 2009-06-25  Eric Blake  <ebb9@byu.net>
83288         version-etc: fix regression
83289         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
83290         gcc.
83291         (version_etc): Use it, to catch bugs with trailing NULL.
83292         * lib/version-etc.c (version_etc_arn): Delete unused argument.
83293         (version_etc_va): Fix logic bug.
83294         * modules/version-etc-tests: Add test.
83295         * tests/test-version-etc.c: New file.
83296         * tests/test-version-etc.sh: Likewise.
83298 2009-06-25  Sam Steingold  <sds@gnu.org>
83300         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
83301         mbtowc declaration.
83303 2009-06-25  Eric Blake  <ebb9@byu.net>
83305         fpurge: migrate into <stdio.h>
83306         * lib/fpurge.h: Delete...
83307         * lib/stdio.in.h (fpurge): ...and declare here, instead.
83308         * lib/fpurge.c (fpurge): Change declaring header.
83309         * modules/fpurge (Files): Drop deleted file.
83310         (Depends-on): Add stdio.
83311         (configure.ac): Set witness.
83312         * modules/stdio (Makefile.am): Support fpurge macros.
83313         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
83314         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
83315         * lib/fflush.c: Update client.
83316         * tests/test-fpurge.c: Likewise.
83317         * NEWS: Mention the change.
83319 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83321         * lib/argp-version-etc.c (program_authors): Add const
83322         qualifier.
83323         * lib/version-etc.c: Fix typos in the comments.
83324         * modules/argp-version-etc: Depends on version-etc.
83326 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83328         argp-version-etc: new module.
83330         * lib/argp-version-etc.c: New file.
83331         * lib/argp-version-etc.h: New file.
83332         * modules/argp-version-etc: New file.
83333         * modules/argp-version-etc-tests: New file.
83334         * tests/test-argp-version-etc.c: New test.
83335         * tests/test-argp-version-etc-1.sh: New test.
83337 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
83339         Provide additional interfaces and documentation for version-etc
83340         module.
83342         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
83343         interfaces.
83344         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
83345         prototypes.
83347 2009-06-24  Bruno Haible  <bruno@clisp.org>
83349         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
83350         HAVE_LIB${NAME} macro.
83351         Reported by Sam Steingold <sds@gnu.org>.
83353 2009-06-23  Simon Josefsson  <simon@josefsson.org>
83355         * modules/hash-tests (test_hash_LDADD): Link to libintl when
83356         needed.
83358 2009-06-21  Bruno Haible  <bruno@clisp.org>
83360         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
83361         work.
83362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
83363         together with LIB${NAME}, LTLIB${NAME}.
83364         Reported by Sam Steingold <sds@gnu.org>.
83366 2009-06-20  Jim Meyering  <meyering@redhat.com>
83368         tests: make sc_require_test_exit_idiom more generic
83369         * top/maint.mk (Exit_witness_file): New overridable variable.
83370         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
83371         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
83373 2009-06-19  Jim Meyering  <meyering@redhat.com>
83375         hash: reverse order of src/dst parameters in an internal interface
83376         * lib/hash.c (transfer_entries): Reverse order of parameters to
83377         put DST before SRC.  Adjust callers.
83379         tests: test-hash: avoid wholesale duplication
83380         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
83381         Instead, use a loop and add a single conditional.
83383         tests: test-hash: allow seed selection via a command line argument
83384         * tests/test-hash.c (get_seed): New function.
83385         (main): Use it.
83387 2009-06-19  Eric Blake  <ebb9@byu.net>
83389         hash: avoid memory leak on allocation failure
83390         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
83391         failure.  Factor repeated algorithm...
83392         (transfer_entries): ...into new helper routine.
83393         (hash_delete): React to hash_rehash return value.
83395         hash: reduce memory pressure in hash_rehash no-op case
83396         * lib/hash.c (next_prime): Avoid overflow.
83397         (hash_initialize): Factor bucket size computation...
83398         (compute_bucket_size): ...into new helper function.
83399         (hash_rehash): Use new function and open coding to reduce memory
83400         pressure, and avoid a memory leak in USE_OBSTACK code.
83401         Reported by Jim Meyering.
83403 2009-06-18  Eric Blake  <ebb9@byu.net>
83405         hash: make rotation more obvious
83406         * modules/hash (Depends-on): Add bitrotate and stdint.
83407         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
83408         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
83409         (SIZE_MAX): Rely on headers for definition.
83410         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
83411         (raw_hasher): Use rotr_sz.
83412         Suggested by Jim Meyering.
83414         hash: fix memory leak in last patch
83415         * lib/hash.c (hash_rehash): Avoid memory leak.
83417         hash: avoid no-op rehashing
83418         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
83420         hash: provide default callback functions
83421         * lib/hash.c (raw_hasher, raw_comparator): New functions.
83422         (hash_initialize): Use them as defaults.
83423         * tests/test-hash.c (main): Test this.
83425         hash: minor optimization
83426         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
83427         when possible.
83428         (hash_initialize): Document this promise.
83429         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
83430         * tests/test-hash.c (hash_compare_strings): Test this.
83432 2009-06-18  Bruno Haible  <bruno@clisp.org>
83434         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
83435         going to be replaced anyway.
83437 2009-06-18  Bruno Haible  <bruno@clisp.org>
83439         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
83440         in one place.
83441         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
83442         be replaced anyway.
83444 2009-06-18  Eric Blake  <ebb9@byu.net>
83446         hash: check for resize before insertion
83447         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
83448         threshold before insertion, so that a pathological hash_rehash
83449         that fills every bucket can still trigger another rehash.
83451 2009-06-18  Jim Meyering  <meyering@redhat.com>
83453         hash-tests: add a loop around the small tests
83454         * tests/test-hash.c (main): Repeat small tests with selected
83455         small initial table sizes.
83457 2009-06-17  Eric Blake  <ebb9@byu.net>
83459         hash: minor cleanups
83460         * lib/hash.h (hash_entry): Make opaque, by moving...
83461         * lib/hash.c (hash_entry): ...here.
83462         (hash_insert): Clarify restrictions on what can be inserted.
83463         (hash_get_next): Clarify when it is safe to remove an element
83464         during traversal.
83465         (check_tuning): Skip verification when tuning is known safe.
83466         (hash_initialize): Clarify restrictions on tuning.
83468 2009-06-17  Jim Meyering  <jim@meyering.net>
83469         and Eric Blake  <ebb9@byu.net>
83471         hash-tests: new module
83472         * modules/hash-tests: New file.
83473         * tests/test-hash.c: New file.
83475 2009-06-17  Eric Blake  <ebb9@byu.net>
83477         strstr-simple: document new module
83478         * MODULES.html.sh: Document new module.
83480         strstr, strcasestr: replace on platforms with broken memchr
83481         * modules/strstr: Split into...
83482         * modules/strstr-simple: ...new module that does not care about
83483         performance, but does care about glibc bug.
83484         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
83485         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
83486         if platform memchr is broken, per Debian bug 521737.
83487         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
83488         memchr.
83489         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
83490         * doc/posix-functions/strstr.texi (strstr): Document the fix.
83491         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
83492         * modules/mountlist (Depends-on): Add strstr-simple.
83493         * modules/gen-uni-tables (Depends-on): Likewise.
83494         * modules/argz (Depends-on): Add strstr.
83496 2009-06-17  Bruno Haible  <bruno@clisp.org>
83498         * modules/posix_spawn-internal (Depends-on): Add errno.
83500 2009-06-17  Bruno Haible  <bruno@clisp.org>
83502         Define missing ESTALE on Interix 3.5.
83503         * lib/errno.in.h (ESTALE): Assign a value if missing.
83504         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
83505         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
83506         missing.
83507         * doc/posix-headers/errno.texi: Mention the Interix bug.
83508         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
83510 2009-06-15  Eric Blake  <ebb9@byu.net>
83512         memchr, memchr2: add valgrind exception
83513         * lib/memchr.valgrind: New file.
83514         * lib/memchr2.valgrind: New file.
83515         * modules/memchr (Files): Distribute valgrind file.
83516         * modules/memchr2 (Files): Likewise.
83518         docs: memchr is no longer obsolete
83519         * MODULES.html.sh: Move memchr from obsolete to string.h section.
83520         * lib/string.in.h (memchr): Simplify logic.
83522 2009-06-14  Jim Meyering  <meyering@redhat.com>
83524         link-follow: fix the "checking..." message to not mention trailing slash
83525         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
83526         never considered trailing slashes.
83528 2009-06-14  Bruno Haible  <bruno@clisp.org>
83530         * m4/memchr.m4: Mention also the bug on IA-64.
83531         * doc/posix-functions/memchr.texi: Likewise.
83533 2009-06-12  Eric Blake  <ebb9@byu.net>
83535         memchr: detect broken x86_64 and alpha implementations
83536         * modules/memchr-tests (Depends-on): Move mmap detection...
83537         * modules/memchr (Depends-on): ...here.
83538         (configure.ac): Set indicator.
83539         * lib/string.in.h (memchr): Declare replacement.
83540         * modules/string (Makefile.am): Trigger replacement.
83541         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
83542         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
83543         bugs.
83544         * doc/posix-functions/memchr.texi (memchr): Document the bug.
83545         * modules/getpagesize (License): Relax license.
83547 2009-06-11  Bruno Haible  <bruno@clisp.org>
83549         * lib/idpriv.h: Add more references.
83551 2009-06-08  Bruno Haible  <bruno@clisp.org>
83553         Tests for module 'idpriv-droptemp'.
83554         * modules/idpriv-droptemp-tests: New file.
83555         * tests/test-idpriv-droptemp.sh: New file.
83556         * tests/test-idpriv-droptemp.su.sh: New file.
83557         * tests/test-idpriv-droptemp.c: New file.
83559         New module 'idpriv-droptemp'.
83560         * lib/idpriv-droptemp.c: New file.
83561         * modules/idpriv-droptemp: New file.
83563 2009-06-08  Bruno Haible  <bruno@clisp.org>
83565         Tests for module 'idpriv-drop'.
83566         * modules/idpriv-drop-tests: New file.
83567         * tests/test-idpriv-drop.sh: New file.
83568         * tests/test-idpriv-drop.su.sh: New file.
83569         * tests/test-idpriv-drop.c: New file.
83571         New module 'idpriv-drop'.
83572         * lib/idpriv.h: New file.
83573         * lib-idpriv-drop.c: New file.
83574         * m4/idpriv.m4: New file.
83575         * modules/idpriv-drop: New file.
83577 2009-06-08  Bruno Haible  <bruno@clisp.org>
83579         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
83580         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
83581         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
83582         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
83583         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
83584         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
83585         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
83587 2009-06-08  Eric Blake  <ebb9@byu.net>
83589         test-strstr: use memory fence, when possible
83590         * tests/test-strstr.c (main): Use memory fence, in order to be
83591         more likely to trigger Debian bug 521737.
83592         * modules/strstr-tests (Files): Pull in additional files.
83594         memchr: no longer obsolete, for wider field testing
83595         * modules/memchr (Status, Notice): Delete, this module is no
83596         longer obsolete.
83597         * modules/vasnprintf (Depends-on): Add memchr.
83599 2009-06-07  Jim Meyering  <meyering@redhat.com>
83601         hash: declare some functions with the warn_unused_result attribute
83602         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
83604 2009-06-07  Bruno Haible  <bruno@clisp.org>
83606         * tests/test-alignof.c: Don't test int64_t if it does not exist.
83607         Reported by Eric Blake.
83609 2009-06-06  Eric Blake  <ebb9@byu.net>
83611         test-alignof: fix typo with long double
83612         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
83613         compiler error.
83615 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
83617         Escape non-texinfo { and }s.
83618         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
83619         markup error.
83621 2009-06-04  Jim Meyering  <meyering@redhat.com>
83623         gitlog-to-changelog: don't infloop on an empty commit log
83624         * build-aux/gitlog-to-changelog: Warn about an empty log message.
83625         Reported by Boris Petersen <transacid@centerim.org>.
83627 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
83629         version-etc: extend for packagers
83630         Add three new configure options, intended for packagers:
83631           --with-packager="packager name"
83632           --with-packager-version="packager-specific version"
83633           --with-packager-bug-reports="packager bug reporting"
83634         An example with coreutils:
83635           $ ./configure \
83636             --with-packager=Gentoo \
83637             --with-packager-bug-report=http://bugs.gentoo.org/ \
83638             --with-packager-version="patchset 1.6"
83639           $ ./src/ls --version | head -n2
83640           ls (GNU coreutils) 7.1-dirty
83641           Packaged by Gentoo (patchset 1.6)
83642         Note that the bug reporting info via --help doesn't show up because
83643         coreutils uses its own custom emit_bug_reporting_address() implementation
83644         in src/system.h.  If it didn't, it'd look like:
83645           $ ./src/ls --help | tail -n4
83646           Report bugs to <bug-coreutils@gnu.org>.
83647           Report Gentoo bugs to <http://bugs.gentoo.org/>.
83648           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
83649           General help using GNU software: <http://www.gnu.org/gethelp/>.
83650         * lib/version-etc.c: Print new information, if provided.
83651         * m4/version-etc.m4: New file.
83652         * modules/version-etc (Files): Add m4/version-etc.m4.
83653         (configure.ac): Add gl_VERSION_ETC.
83655 2009-05-31  Bruno Haible  <bruno@clisp.org>
83657         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
83658         and 'int64_t'.
83659         * modules/alignof-tests (Dependencies): Add stdint.
83660         Reported by Eric Blake.
83662 2009-05-31  Bruno Haible  <bruno@clisp.org>
83664         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
83665         restriction due to compiler bugs.
83666         Reported by Eric Blake.
83668 2009-05-31  Simon Josefsson  <simon@josefsson.org>
83669             Bruno Haible  <bruno@clisp.org>
83671         Fix test-alignof failure.
83672         * lib/alignof.h (alignof_slot): New macro.
83673         (alignof_type): New macro, with the same semantics as the previous
83674         'alignof'.
83675         (alignof): Alias to alignof_slot.
83676         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
83677         check that the results are usable as constant expressions.
83679 2009-05-31  Bruno Haible  <bruno@clisp.org>
83681         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
83682         * tests/test-memchr.c (main): Check that memchr does not read past the
83683         first occurrence of the byte.
83684         * tests/test-strstr.c (main): Update comment.
83685         Suggested by Eric Blake.
83687 2009-05-30  Bruno Haible  <bruno@clisp.org>
83689         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
83690         detail how to use dumpbin.
83691         Reported by David Byron <dbyron@dbyron.com>.
83693 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83695         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
83697 2009-06-02  Simon Josefsson  <simon@josefsson.org>
83699         * m4/manywarnings.m4: Add GCC 4.4 warnings.
83701 2009-05-28  Bruno Haible  <bruno@clisp.org>
83703         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
83704         build-aux/ files.
83706 2009-05-28  Simon Josefsson  <simon@josefsson.org>
83708         * gnulib-tool (func_import): Transform license on build-aux/ files too.
83710 2009-05-27  Simon Josefsson  <simon@josefsson.org>
83712         * gnulib-tool (sed_transform_main_lib_file)
83713         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
83714         regexps.
83716 2009-05-26  Simon Josefsson  <simon@josefsson.org>
83718         * tests/test-strstr.c: Add another self-test.
83719         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
83720         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
83722 2009-05-23  Bruno Haible  <bruno@clisp.org>
83724         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
83725         change.
83727 2009-05-21  Bruno Haible  <bruno@clisp.org>
83729         Simplify use of mode_t varargs.
83730         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
83731         uses 'mode_t' or 'int'.
83732         * lib/openat.c (openat): Likewise.
83733         * lib/open-safer.c (open_safer): Likewise.
83734         * m4/mode_t.m4: New file.
83735         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
83736         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
83737         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
83738         * modules/open (Files): Add m4/mode_t.m4.
83739         * modules/openat (Files): Likewise.
83740         * modules/fcntl-safer (Files): Likewise.
83741         Suggested by Eric Blake.
83743 2009-05-21  Pádraig Brady  <P@draigbrady.com>
83745         * doc/glibc-functions/fallocate.texi: New file.
83746         * doc/gnulib.texi: Include it.
83748 2009-05-21  Eric Blake  <ebb9@byu.net>
83749             Bruno Haible  <bruno@clisp.org>
83751         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
83752         invocations.
83753         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
83755 2009-05-21  Eric Blake  <ebb9@byu.net>
83756             Bruno Haible  <bruno@clisp.org>
83758         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
83759         include_next. Fix of 2008-11-20 commit.
83760         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
83761         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
83762         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
83763         NEXT_MATH_H.
83764         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
83765         instead of NEXT_MATH_H.
83767 2009-05-21  Bruno Haible  <bruno@clisp.org>
83769         Avoid redefinition warnings for SIZE_MAX.
83770         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
83771         Reported by Simon Josefsson.
83773 2009-05-21  Bruno Haible  <bruno@clisp.org>
83775         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
83776         AC_CACHE_VAL.
83778 2009-05-20  Bruno Haible  <bruno@clisp.org>
83780         Make zeroptr.h work on mingw.
83781         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
83782         mprotect.
83783         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
83784         * modules/memchr2-tests (configure.ac): Likewise.
83785         * modules/memcmp-tests (configure.ac): Likewise.
83786         * modules/memmem-tests (configure.ac): Likewise.
83787         * modules/memrchr-tests (configure.ac): Likewise.
83788         Reported by Simon Josefsson.
83790 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83792         * tests/test-glob.c: Include string.h for strcmp prototype.
83794 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83796         * modules/getdelim (Depends-on): Add explicit stdint, although it
83797         was implicitly already pulled in via realloc-posix.
83798         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
83800 2009-05-20  Simon Josefsson  <simon@josefsson.org>
83802         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
83803         G. Christensen" <tgc@jupiterrise.com>.
83804         * m4/sys_socket_h.m4: Check for sa_family_t.
83805         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
83806         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
83807         * tests/test-sys_socket.c: Check that sa_family_t works.
83809 2009-05-18  Eric Blake  <ebb9@byu.net>
83811         maint.mk: allow gnulib_dir in VPATH build
83812         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
83814 2009-05-15  Jim Meyering  <meyering@redhat.com>
83816         maint.mk: Give gnulib_dir a default definition.
83817         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
83818         Thus, most packages no longer need to specify this variable in cfg.mk
83820 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
83822         rename.m4: fix typos that would make non-mingw cross-configure fail
83823         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
83825 2009-05-13  Eric Blake  <ebb9@byu.net>
83827         mmap-anon: avoid out-of-order autoconf expansion
83828         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
83829         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
83830         * modules/memchr-tests (Depends-on): Add extensions.
83831         * modules/memchr2-tests (Depends-on): Add extensions.
83832         * modules/memcmp-tests (Depends-on): Add extensions.
83833         * modules/memmem-tests (Depends-on): Add extensions.
83834         * modules/memrchr-tests (Depends-on): Add extensions.
83836 2009-05-13  Bruno Haible  <bruno@clisp.org>
83838         Make some tests ISO C 99 compliant.
83839         * tests/zerosize-ptr.h: New file.
83840         * tests/test-memchr.c: Include zerosize-ptr.h.
83841         (main): Use a zero-size object pointer instead of NULL.
83842         * tests/test-memchr2.c: Include zerosize-ptr.h.
83843         (main): Use a zero-size object pointer instead of NULL.
83844         * tests/test-memcmp.c: Include zerosize-ptr.h.
83845         (main): Use a zero-size object pointer instead of NULL.
83846         * tests/test-memmem.c: Include zerosize-ptr.h.
83847         (main): Use a zero-size object pointer instead of NULL.
83848         * tests/test-memrchr.c: Include zerosize-ptr.h.
83849         (main): Use a zero-size object pointer instead of NULL.
83850         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
83851         m4/mmap-anon.m4.
83852         (Depends-on): Add getpagesize.
83853         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83854         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
83855         m4/mmap-anon.m4.
83856         (Depends-on): Add getpagesize.
83857         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83858         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
83859         m4/mmap-anon.m4.
83860         (Depends-on): Add getpagesize.
83861         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83862         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
83863         m4/mmap-anon.m4.
83864         (Depends-on): Add getpagesize.
83865         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83866         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
83867         m4/mmap-anon.m4.
83868         (Depends-on): Add getpagesize.
83869         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
83871 2009-05-12  Bruno Haible  <bruno@clisp.org>
83873         Tests for module 'alignof'.
83874         * modules/alignof-tests: New file.
83875         * tests/test-alignof.c: New file.
83877 2009-05-12  Bruno Haible  <bruno@clisp.org>
83879         Fix alignof macro.
83880         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
83881         vendor compilers that are always correct.
83883 2009-05-12  Bruno Haible  <bruno@clisp.org>
83885         Make the MAP_ANONYMOUS detection work on HP-UX 11.
83886         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
83887         not whether its fully works.
83889 2009-05-12  Bruno Haible  <bruno@clisp.org>
83891         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
83893 2009-05-12  Jim Meyering  <meyering@redhat.com>
83895         * top/maint.mk: Adjust backslash alignment.
83897 2009-05-11  Simon Josefsson  <simon@josefsson.org>
83899         * top/maint.mk: Make $(srcdir)/build-aux configurable.
83901 2009-05-11  Eric Blake  <ebb9@byu.net>
83903         argp: avoid undefined behavior
83904         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
83905         macros.
83907 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83909         * tests/test-vc-list-files-git.sh: Do git config of user.email and
83910         user.name to prevent git commit from complaining.
83912 2009-05-10  Bruno Haible  <bruno@clisp.org>
83914         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
83915         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
83916         it rewrites every file name only once.
83917         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
83919 2009-05-08  Bruno Haible  <bruno@clisp.org>
83921         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
83922         instead of 'max'.
83924 2009-05-08  Simon Josefsson  <simon@josefsson.org>
83926         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
83927         sockaddr_storage test.
83929 2009-05-07  Simon Josefsson  <simon@josefsson.org>
83931         * modules/sys_socket (Makefile.am): Substitute
83932         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
83933         * m4/sys_socket_h.m4: Check for sockaddr_storage.
83934         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
83935         * tests/test-sys_socket.c: Check sockaddr_storage.
83937 2009-05-08  Bruno Haible  <bruno@clisp.org>
83939         New module 'alignof'.
83940         * lib/alignof.h: New file.
83941         * modules/alignof: New file.
83943 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83944             Bruno Haible  <bruno@clisp.org>
83946         Fix test-file-has-acl on FreeBSD.
83947         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
83948         mask is implicitly added.
83949         * tests/test-file-has-acl.c: Include <signal.h>.
83950         (main): Terminate the test after 5 seconds.
83951         * modules/acl-tests (configure.ac): Check for alarm function.
83953 2009-05-04  Bruno Haible  <bruno@clisp.org>
83955         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
83956         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
83957         * modules/errno (configure.ac): Drop AC_REQUIRE.
83958         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
83959         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
83961 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83963         * modules/glob-tests: New module.
83964         * tests/test-glob.c: Add.
83966 2009-05-04  Simon Josefsson  <simon@josefsson.org>
83968         * modules/fnmatch-tests: New module.
83969         * tests/test-fnmatch.c: Add.
83971 2009-05-04  Eric Blake  <ebb9@byu.net>
83973         maint: make the new no-submodule-changes rule VPATH-safe
83974         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
83976 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83977             Bruno Haible  <bruno@clisp.org>
83979         acl: Fix infinite loop on FreeBSD.
83980         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
83981         of return value from acl_get_entry.
83982         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
83983         Likewise.
83985 2009-05-03  Bruno Haible  <bruno@clisp.org>
83987         * lib/acl-internal.h (acl_entries): Clarify return value.
83988         * lib/acl_entries.c (acl_entries): Likewise.
83990 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
83992         Bug fix in acl module.
83993         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
83995 2009-05-03  Bruno Haible  <bruno@clisp.org>
83997         Create gperf-generated file in the source dir, not in the build dir.
83998         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
83999         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
84000         * modules/unicase/locale-language (unicase/locale-languages.h):
84001         Likewise.
84002         * modules/unicase/special-casing (unicase/special-casing-table.h):
84003         Likewise.
84004         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
84005         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
84006         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
84007         Reported by Ralf Wildenhues.
84009 2009-05-03  Bruno Haible  <bruno@clisp.org>
84011         * modules/fnmatch (Description, configure.ac): Taken from
84012         fnmatch-posix.
84013         * modules/fnmatch-posix: Turn into a symbolic reference to the
84014         'fnmatch' module, and deprecate.
84015         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
84017 2009-05-03  Bruno Haible  <bruno@clisp.org>
84019         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
84020         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
84021         Reported by Ralf Wildenhues.
84023 2009-05-04  Simon Josefsson  <simon@josefsson.org>
84025         * m4/fnmatch.m4: Fix fnmatch re-define.
84027 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
84029         priv-set: new module and tests; adapt write-any-file
84030         * lib/priv-set.c: New file.
84031         * lib/priv-set.h: New file.
84032         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
84033         * lib/write-any-file.c: Simplify by using priv-set module.
84034         * m4/priv-set.m4: New file.
84035         * modules/priv-set: New file.
84036         * modules/unlinkdir: Add dependency on priv-set module.
84037         * modules/write-any-file: Likewise.
84039         Tests for module 'priv-set'.
84040         * modules/priv-set-tests: New file.
84041         * tests/test-priv-set.c: New file.
84043 2009-05-03  Jim Meyering  <meyering@redhat.com>
84044             Bruno Haible  <bruno@clisp.org>
84046         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
84047         use the converted UTF-8 variant of the name instead.
84049 2009-05-03  Jim Meyering  <meyering@redhat.com>
84051         tests: tighten some getdate tests
84052         * tests/test-getdate.c (main): Tighten tests: require equality,
84053         not just greater than.  Set TZ envvar to UTC0.
84055 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
84057         getdate: correctly interpret "next monday" when run on a Monday
84058         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
84059         that e.g., "next tues" (when run on a tuesday) results in a date
84060         that is one week in the future, and not today's date.
84061         I.e., add a week when the wday is the same as the current one.
84062         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
84063         and earlier by Martin Bernreuther and Jan Minář.
84064         * tests/test-getdate.c (main): Check that "next DAY" is always in
84065         the future and that "last DAY" is always in the past.
84067 2009-05-02  Jim Meyering  <meyering@redhat.com>
84069         build: ensure that a release build fails when a submodule is unclean
84070         * top/maint.mk (no-submodule-changes): New rule.
84071         (alpha beta major): Depend on it.
84073 2009-05-02  Bruno Haible  <bruno@clisp.org>
84075         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
84076         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
84077         shell variable gl_fnmatch_required to detect which variant is
84078         requested.
84079         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
84080         gl_FUNC_FNMATCH_POSIX.
84081         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
84082         exclude fnmatch-posix.
84084 2009-05-02  Bruno Haible  <bruno@clisp.org>
84086         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
84087         * modules/mbsrtowcs (License): Change to LGPLv2+.
84088         * modules/strnlen1 (License): Likewise.
84089         Reported by Simon Josefsson.
84091 2009-05-02  Bruno Haible  <bruno@clisp.org>
84093         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
84094         "cross".
84095         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
84096         gnulib-tool was called with option --source-base=lib.
84098 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84100         Use automake *-local hooks without commands, for extensibility.
84101         * modules/localcharset (Makefile.am): Rename install-exec-local
84102         rule to install-exec-localcharset, and make it a prerequisite of
84103         install-exec-local.  Likewise, rename the uninstall-local rule to
84104         uninstall-localcharset, and make it a prerequisite of the former.
84106 2009-05-01  Bruno Haible  <bruno@clisp.org>
84108         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
84109         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84110         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
84111         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
84112         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
84113         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84114         m4/locale-zh.m4, m4/codeset.m4.
84116         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
84117         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
84118         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
84119         m4/locale-zh.m4.
84121         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
84122         REPLACE_WCRTOMB if mbstate_t must be replaced.
84123         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
84124         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
84126 2009-05-01  Bruno Haible  <bruno@clisp.org>
84128         Avoid compiler warnings when redefining macros defined by <libintl.h>.
84129         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
84130         dngettext, dcngettext, textdomain, bindtextdomain,
84131         bind_textdomain_codeset): Undefine before redefining.
84133 2009-04-30  Bruno Haible  <bruno@clisp.org>
84135         Fix bug introduced on 2009-04-25.
84136         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
84137         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
84138         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
84139         is defined.
84140         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
84141         is defined.
84142         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
84143         is defined.
84144         Reported by Elbert_Pol <elbert.pol@gmail.com>.
84146 2009-04-28  Bruno Haible  <bruno@clisp.org>
84148         Comment tweaks.
84149         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
84150         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
84151         * lib/unicase.h (u*_casexfrm): Likewise.
84152         Reported by Paolo Bonzini.
84154 2009-04-28  Bruno Haible  <bruno@clisp.org>
84156         Fix a compilation error.
84157         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
84158         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
84159         Reported by Jim Meyering.
84161 2009-04-27  Bruno Haible  <bruno@clisp.org>
84163         New module 'libunistring'.
84164         * modules/libunistring: New file.
84165         * m4/libunistring.m4: New file.
84166         * MODULES.html.sh (Unicode string functions): Add it.
84168 2009-04-27  Eric Blake  <ebb9@byu.net>
84170         maint.mk: allow package-specific header to provide <config.h>
84171         * top/maint.mk (sc_require_config_h): New variable.
84172         (sc_require_config_h, sc_require_config_h_first): Use it.
84174 2009-04-27  Simon Josefsson  <simon@josefsson.org>
84176         * top/maint.mk (sc_avoid_if_before_free): Except
84177         useless-if-before-free script.
84179 2009-04-27  Eric Blake  <ebb9@byu.net>
84181         maintainer-makefile: depend on all required helper scripts
84182         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
84183         useless-if-before-free.
84184         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
84185         version, rather than assuming gnulib checkout is available.
84186         Reported by Simen Josefsson.
84188 2009-04-26  Bruno Haible  <bruno@clisp.org>
84190         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
84191         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
84192         "../" or "..".
84194 2009-04-26  Bruno Haible  <bruno@clisp.org>
84196         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
84197         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
84198         AC_LIB_HAVE_LINKFLAGS.
84200 2009-04-26  Bruno Haible  <bruno@clisp.org>
84202         Simplify calling convention of u*_conv_from_encoding.
84203         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
84204         u32_conv_from_encoding): Expect a resultbuf argument and return the
84205         result directly as a pointer.
84206         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
84207         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
84208         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
84209         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
84210         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
84211         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84212         Update.
84213         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
84214         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
84215         * lib/vasnprintf.c (VASNPRINTF): Update.
84216         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
84217         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
84218         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
84219         * NEWS: Mention the change.
84221 2009-04-26  Bruno Haible  <bruno@clisp.org>
84223         Simplify calling convention of u*_conv_to_encoding.
84224         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
84225         u32_conv_to_encoding): Expect a resultbuf argument and return the
84226         result directly as a pointer.
84227         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84228         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
84229         freeing scaled_offsets if mem_iconveha failed.
84230         * lib/unicase/u-casexfrm.h (FUNC): Update.
84231         * lib/uninorm/u-normxfrm.h (FUNC): Update.
84232         * lib/vasnprintf.c (VASNPRINTF): Update.
84233         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
84234         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
84235         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
84236         * NEWS: Mention the change.
84238 2009-04-26  Bruno Haible  <bruno@clisp.org>
84240         Avoid test failures on AIX and OSF/1.
84241         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
84242         malloc(0).
84243         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
84244         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
84245         Likewise.
84246         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
84247         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
84248         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
84249         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
84250         * doc/posix-functions/malloc.texi: Document the portability problem
84251         related to malloc(0).
84253 2009-04-26  Bruno Haible  <bruno@clisp.org>
84255         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
84256         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
84257         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
84259 2009-04-25  Bruno Haible  <bruno@clisp.org>
84261         Avoid link error when creating a namespace clean library.
84262         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
84263         as macro with arguments if already defined as an alias.
84264         * lib/signbitf.c (gl_signbitf): Don't undefine.
84265         * lib/signbitd.c (gl_signbitd): Don't undefine.
84266         * lib/signbitl.c (gl_signbitl): Don't undefine.
84268 2009-04-25  Jim Meyering  <meyering@redhat.com>
84270         vc-list-files: fix another quoting bug
84271         * build-aux/vc-list-files: Avoid sed backslash expansion
84272         of pathological directory names.
84274 2009-04-25  Eric Blake  <ebb9@byu.net>
84276         vc-list-files: fix shell quoting error
84277         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
84278         timestamp.
84280 2009-04-25  Jim Meyering  <meyering@redhat.com>
84282         vc-list-files: restore lost functionality with subdir argument
84283         * build-aux/vc-list-files: When given a non-"." sub-directory
84284         argument, substitute the $dir/ prefix back onto each resulting name.
84285         Otherwise, coreutils' root_tests check would fail.
84287 2009-04-24  Eric Blake  <ebb9@byu.net>
84289         vc-list-files: ignore git symlinks
84290         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
84291         than ls-files, to ignore git symlinks.
84293         maint.mk: import improvements from m4
84294         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
84295         (move_if_change): Delete unused macro.
84296         (news-date-check, vc-diff-check): Support VPATH builds.
84297         (announcement): Likewise.  Split --bootstrap-tools list...
84298         (boostrap-tools): ...into separate list, which can be overridden
84299         in cfg.mk.
84300         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
84301         requiring dependency on useless-if-before-free module.
84302         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
84303         Support VPATH builds.
84305 2009-04-24  Jim Meyering  <meyering@redhat.com>
84307         maint.mk: remove coreutils-specific rules and variables
84308         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
84309         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
84310         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
84312         maint.mk: remove obsolete rule
84313         * top/maint.mk (rel-check): Remove rule.
84314         (WGET, WGETFLAGS): Remove now-unused variables.
84316 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84318         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
84319         consistency.
84321         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
84322         '$(PATH_SEPARATOR)' instead of ':'.
84324 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84326         * lib/getopt1.c (main): Use 'const' for static array.
84328 2009-04-24  Simon Josefsson  <simon@josefsson.org>
84330         * top/maint.mk: Sync with coreutils.
84331         * NEWS: Explain incompatibilities.
84333 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84334             Bruno Haible  <bruno@clisp.org>
84336         Fix cross-compilation results.
84337         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
84338         statement, as third argument of AC_TRY_RUN.
84339         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
84340         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
84341         Likewise.
84342         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
84343         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
84344         Likewise.
84345         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
84346         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
84347         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
84349 2009-04-20  Bruno Haible  <bruno@clisp.org>
84351         Avoid test failure on mingw.
84352         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
84354 2009-04-20  Bruno Haible  <bruno@clisp.org>
84356         Avoid compilation error on mingw.
84357         * modules/localename-tests (Depends-on): Add locale.
84359 2009-04-19  Bruno Haible  <bruno@clisp.org>
84361         Support for building a shared library on Windows platforms.
84362         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
84363         (main): Test the presence of UNINORM_NFC here.
84364         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
84365         (main): Test the presence of UNINORM_NFD here.
84366         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
84367         (main): Test the presence of UNINORM_NFKC here.
84368         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
84369         (main): Test the presence of UNINORM_NFKD here.
84371 2009-04-19  Bruno Haible  <bruno@clisp.org>
84373         Avoid a compiler warning.
84374         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
84375         Change type of variable 'sequence'.
84377 2009-04-19  Bruno Haible  <bruno@clisp.org>
84379         * modules/configmake (Makefile.am): When the contents of configmake.h
84380         does not change, arrange to preserve its modification time.
84382 2009-04-17  Simon Josefsson  <simon@josefsson.org>
84384         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
84385         gettext domain.
84387 2009-04-16  Jim Meyering  <meyering@redhat.com>
84389         useless-if-before-free: improve conversion code
84390         * build-aux/useless-if-before-free: Adjust code-in-comment to match
84391         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
84393 2009-04-14  Bruno Haible  <bruno@clisp.org>
84395         * modules/fcntl (Depends-on): Add extensions.
84396         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
84398 2009-04-12  Ben Pfaff  <blp@gnu.org>
84400         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
84401         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
84403 2009-03-20  Ben Pfaff  <blp@gnu.org>
84405         Make rename replace existing destinations on Windows.
84406         * m4/rename.m4: Add test for Mingw.
84407         * lib/rename.c: Add rename replacement that uses MoveFileEx with
84408         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
84409         * doc/posix-functions/rename.texi: Document.
84411 2009-04-10  Bruno Haible  <bruno@clisp.org>
84413         New include file "iconveh.h".
84414         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
84415         * lib/striconveh.h: Include it.
84416         (enum iconv_ilseq_handler): Remove definition.
84417         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
84418         striconveh.h.
84419         * lib/striconveha.c: Include striconveh.h.
84420         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
84421         * modules/striconveh (Files): Add lib/iconveh.h.
84422         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
84423         lib/striconveh.h.
84425 2009-04-10  Bruno Haible  <bruno@clisp.org>
84427         * lib/uniconv.h: Update comment.
84429 2009-04-10  Bruno Haible  <bruno@clisp.org>
84431         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
84432         always.
84433         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
84434         * lib/unistr/u16-mbtouc-aux.c: Likewise.
84435         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
84436         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
84437         "unistring-notinline.h", so that the function gets defined always.
84438         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
84439         * lib/unistr/u8-uctomb.c: Likewise.
84440         * lib/unistr/u16-mbtouc.c: Likewise.
84441         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
84442         * lib/unistr/u16-uctomb.c: Likewise.
84443         * lib/unistr/u32-mbtouc.c: Likewise.
84444         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
84445         * lib/unistr/u32-uctomb.c: Likewise.
84447 2009-04-10  Bruno Haible  <bruno@clisp.org>
84449         Mark 'utime' obsolete.
84450         * modules/utime (Status, Notice): New sections.
84451         Suggested by Jim Meyering.
84453         Fix cross-compile guess for utime test.
84454         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
84455         autoconf.
84456         * doc/posix-functions/utime.texi: Give more precisions.
84457         Reported by Jan <ipif@ymail.com>.
84459 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
84461         filevercmp: correct today's change
84462         * lib/filevercmp.c: Also handle coreutils' test inputs.
84463         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
84465         Fix regression in 'filevercmp' module. Thanks Sven Joachim
84466         for reporting it.
84467         * lib/filevercmp.c: Special handle for "", "." and "..".
84468         * tests/test-filevercmp.c: Enlarge the set suite.
84470 2009-04-07  Jim Meyering  <meyering@redhat.com>
84472         useless-if-before-free: show how to remove braced useless free, too
84473         * build-aux/useless-if-before-free: still only in a comment, though.
84475 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
84477         maint.mk: import changes to syntax-check macros from coreutils
84478         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
84479         Use them in the relevant macros.
84481 2009-04-06  Bruno Haible  <bruno@clisp.org>
84483         Fix unportable use of bit-fields.
84484         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
84485         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
84486         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
84488 2009-04-06  Bruno Haible  <bruno@clisp.org>
84490         Avoid test failures on AIX and OSF/1.
84491         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
84492         that malloc(0) = NULL.
84493         * tests/unicase/test-u8-tolower.c (check): Likewise.
84494         * tests/unicase/test-u8-totitle.c (check): Likewise.
84495         * tests/unicase/test-u8-toupper.c (check): Likewise.
84496         * tests/unicase/test-u16-casefold.c (check): Likewise.
84497         * tests/unicase/test-u16-tolower.c (check): Likewise.
84498         * tests/unicase/test-u16-totitle.c (check): Likewise.
84499         * tests/unicase/test-u16-toupper.c (check): Likewise.
84500         * tests/unicase/test-u32-casefold.c (check): Likewise.
84501         * tests/unicase/test-u32-tolower.c (check): Likewise.
84502         * tests/unicase/test-u32-totitle.c (check): Likewise.
84503         * tests/unicase/test-u32-toupper.c (check): Likewise.
84504         * tests/uninorm/test-u8-nfc.c (check): Likewise.
84505         * tests/uninorm/test-u8-nfd.c (check): Likewise.
84506         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
84507         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
84508         * tests/uninorm/test-u16-nfc.c (check): Likewise.
84509         * tests/uninorm/test-u16-nfd.c (check): Likewise.
84510         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
84511         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
84512         * tests/uninorm/test-u32-nfc.c (check): Likewise.
84513         * tests/uninorm/test-u32-nfd.c (check): Likewise.
84514         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
84515         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
84517 2009-04-05  Bruno Haible  <bruno@clisp.org>
84519         Work around an autoconf limitation.
84520         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
84521         comment line if it would be longer than 3 KB.
84523 2009-04-05  Bruno Haible  <bruno@clisp.org>
84525         Avoid test failure with libiconv-1.13.
84526         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
84527         of the expected test results.
84529 2009-04-05  Bruno Haible  <bruno@clisp.org>
84531         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
84532         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
84533         that it should be installed.
84535 2009-04-05  Bruno Haible  <bruno@clisp.org>
84537         * gnulib-tool: New option --copy-file.
84538         (func_usage): Document it.
84539         (func_dest_tmpfilename): Moved out of func_import.
84540         (func_add_file, func_update_file): New functions, extracted from
84541         func_import.
84542         (func_import): Update.
84544 2009-04-05  Karl Berry  <karl@gnu.org>
84546         * README: prominently mention gnulib-tool.
84547         Rearrange sections so getting the code is near the top.
84549 2009-04-05  Bruno Haible  <bruno@clisp.org>
84551         * lib/unicase.h: Mention u*_cmp2.
84552         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84553         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
84554         * lib/unicase/ulc-casecmp.c: Likewise.
84555         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
84556         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
84557         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
84558         unistr/u8-cmp.
84559         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
84560         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
84561         unistr/u16-cmp.
84562         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
84563         unistr/u32-cmp.
84565         * lib/uninorm.h: Mention u*_cmp2.
84566         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
84567         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
84568         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
84569         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
84570         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
84571         unistr/u8-cmp.
84572         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
84573         unistr/u16-cmp.
84574         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
84575         unistr/u32-cmp.
84577         New module 'unistr/u32-cmp2'.
84578         * lib/unistr/u32-cmp2.c: New file.
84579         * modules/unistr/u32-cmp2: New file.
84581         New module 'unistr/u16-cmp2'.
84582         * lib/unistr/u16-cmp2.c: New file.
84583         * modules/unistr/u16-cmp2: New file.
84585         New module 'unistr/u8-cmp2'.
84586         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
84587         * lib/unistr/u8-cmp2.c: New file.
84588         * lib/unistr/u-cmp2.h: New file.
84589         * modules/unistr/u8-cmp2: New file.
84591 2009-04-05  Bruno Haible  <bruno@clisp.org>
84593         * lib/unictype.h (uc_property_is_valid): New macro.
84594         * tests/unictype/test-pr_byname.c (main): Use it.
84596         * lib/unistr.h: Doc fixes.
84597         * lib/uniconv.h: Doc fixes.
84598         * lib/unictype.h: Doc fixes.
84600 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
84602         Port coreutils 7.2 to Solaris 8.
84604         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
84605         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
84606         for Solaris 8.  This is a bit of a hack, as it means it's the
84607         caller's responsibility to add -lnsl if needed, but most likely it
84608         won't be needed since only getaddrinfo uses this and getaddrinfo
84609         isn't needed on Solaris 8.
84611         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
84612         problem to Solaris 8 encountered with coreutils 7.2, which
84613         resulted in a message "fnmatch.c:292: warning: passing argument 4
84614         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
84615         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
84617 2009-04-03  Simon Josefsson  <simon@josefsson.org>
84619         * m4/ld-version-script.m4: Add FIXME comment.
84621 2009-04-02  Simon Josefsson  <simon@josefsson.org>
84623         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
84624         SOVERSION variable.
84626 2009-04-02  Bruno Haible  <bruno@clisp.org>
84628         * Makefile (info, html, dvi, pdf): Combine the rules.
84629         Suggested by Jim Meyering.
84631 2009-04-01  Bruno Haible  <bruno@clisp.org>
84633         * Makefile (info, html, dvi, pdf): New targets.
84634         Reported by Reuben Thomas <rrt@sc3d.org>.
84636 2009-04-01  Bruno Haible  <bruno@clisp.org>
84638         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
84639         can be put into PATH.
84640         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
84642 2009-04-01  Bruno Haible  <bruno@clisp.org>
84644         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
84646 2009-04-01  Bruno Haible  <bruno@clisp.org>
84648         Rename module 'visibility'.
84649         * modules/lib-symbol-visibility: Renamed from modules/visibility.
84650         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
84651         * doc/gnulib.texi: Update.
84652         * MODULES.html.sh (Misc): Update.
84653         * NEWS: Mention the change.
84655 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84657         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
84658         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
84659         Eric Blake <ebb9@byu.net> for review.
84660         * MODULES.html.sh: Add lib-msvc-compat.
84661         * doc/gnulib.texi: Link to new section.
84662         * m4/ld-output-def.m4: New file.
84663         * doc/ld-output-def.texi: New file.
84665 2009-04-01  Simon Josefsson  <simon@josefsson.org>
84667         Rename ld-version-script to lib-symbol-versions.  Suggested by
84668         Bruno Haible <bruno@clisp.org>.
84669         * modules/ld-version-script: Renamed to lib-symbol-versions.
84670         * doc/ld-version-script.texi: Fix module name.
84671         * MODULES.html.sh: Add lib-symbol-versions.
84673 2009-03-31  Simon Josefsson  <simon@josefsson.org>
84675         * modules/u64-tests: New file.
84676         * tests/test-u64.c: New file.
84678 2009-03-04  Simon Josefsson  <simon@josefsson.org>
84680         * MODULES.html.sh: Mention u64.
84681         * modules/u64: New module.
84682         * modules/crypto/sha512: Depend on u64 module instead of providing
84683         u64.h.
84685 2009-03-27  Eric Blake  <ebb9@byu.net>
84687         test-strerror: make debugging EAI_SYSTEM easier
84688         * modules/getaddrinfo-tests (Depends-on): Add strerror.
84689         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
84690         failure was EAI_SYSTEM.
84692 2009-03-25  Bruno Haible  <bruno@clisp.org>
84694         Fix a problem with --enable-relocatable on Solaris 7.
84695         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
84696         since 2008-02-24.
84698 2009-03-25  Eric Blake  <ebb9@byu.net>
84700         test-sockets: avoid gcc warning
84701         * tests/test-sockets.c (main): Silence compiler warning.
84703 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
84705         New modules nproc, pthread, contributed by Glen Lenker.
84707         * MODULES.html.sh: Add pthread, nproc.
84708         * lib/nproc.c: New file.
84709         * lib/nproc.h: New file.
84710         * lib/pthread.in.h: New file.
84711         * m4/pthread.m4: New file.
84712         * modules/nproc: New file.
84713         * modules/pthread: New file.
84715 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84717         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
84718         New variable.
84720 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
84722         filevercmp: handle simple~ and numbered.~3~ backup suffixes
84723         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
84724         * tests/test-filevercmp.c: Add tests for backup suffixes.
84726 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84728         * modules/stdlib (Depends-on): Add stdint, needed when defining
84729         struct random_data on, for example, HP-UX 10.20.  Reported by
84730         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
84732 2009-03-24  Simon Josefsson  <simon@josefsson.org>
84734         * lib/readline.c (readline): Call fflush on stdout after printing
84735         prompt.
84737 2009-03-20  Bruno Haible  <bruno@clisp.org>
84739         Remove dependency from 'close' module to -lws2_32 on native Windows.
84740         * lib/close-hook.h: New file.
84741         * lib/close-hook.c: New file.
84742         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
84743         w32sock.h.
84744         (_gl_close_fd_maybe_socket): Remove function.
84745         (rpl_close): Invoke execute_all_close_hooks instead of
84746         _gl_close_fd_maybe_socket.
84747         * lib/sockets.c: Include close-hook.h, w32sock.h.
84748         (close_fd_maybe_socket): New function, essentially from lib/close.c.
84749         (close_sockets_hook): New variable.
84750         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
84751         (gl_sockets_cleanup): Unregister it.
84752         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
84753         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
84754         * modules/close-hook: New file.
84755         * modules/close (Files): Remove lib/w32sock.h.
84756         (Depends-on): Add close-hook.
84757         (Link): Remove section.
84758         * modules/sockets (Files): Add lib/w32sock.h.
84759         (Depends-on): Add close-hook.
84760         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
84761         invocation.
84762         * NEWS: Mention that LIB_CLOSE is gone.
84764 2009-03-23  Eric Blake  <ebb9@byu.net>
84766         signal-tests: test previous patch
84767         * tests/test-signal.c: New file.
84768         * modules/signal-tests: Likewise.
84770         signal.h: always support 'volatile sig_atomic_t'
84771         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
84772         (gl_SIGNAL_H_DEFAULTS): Add a default.
84773         * modules/signal (Makefile.am): Substitute if needed.
84774         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
84775         users can blindly add volatile.
84776         * doc/posix-headers/signal.texi (signal.h): Document it.
84777         Reported by Matthew Woehlke.
84779 2009-03-23  Jim Meyering  <meyering@redhat.com>
84781         pathmax: PATH_MAX: use pathconf only when available
84782         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
84783         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
84784         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
84785         This avoids a link failure in a PSP cross-compilation environment
84786         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
84788         * lib/vasnprintf.c (divide): Fix typo in comment.
84790 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84792         * gnulib-tool (func_filter_filelist): Fix comment.
84794 2009-03-20  Bruno Haible  <bruno@clisp.org>
84796         Make sockets.h self-contained.
84797         * lib/sockets.c: Include sockets.h first.
84798         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
84800 2009-03-19  Eric Blake  <ebb9@byu.net>
84802         doc: mention more functions added in cygwin 1.7.0
84803         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
84804         addition.
84805         * doc/posix-functions/log2f.texi: Likewise.
84807 2009-03-19  Jim Meyering  <meyering@redhat.com>
84809         fsusage: avoid syntax error due to statement-before-declaration
84810         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
84811         after all declarations.  Reported by Matthew Woehlke in
84812         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
84814 2009-03-18  Eric Blake  <ebb9@byu.net>
84816         build-aux/compile: sync from automake
84817         * build-aux/compile: New file, from automake.
84818         * config/srclist.txt: Mention build-aux/compile.
84820 2009-03-17  Bruno Haible  <bruno@clisp.org>
84822         * lib/git-merge-changelog.c: Fix typo in comment.
84823         Reported by Reuben Thomas <rrt@sc3d.org>.
84825 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
84827         * m4/regex.m4: update and improve help for
84828         --without-included-regex.
84830 2009-03-17  Simon Josefsson  <simon@josefsson.org>
84832         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
84833         failure on missing include files.
84835 2009-03-17  Eric Blake  <ebb9@byu.net>
84837         doc: mention more functions added in cygwin 1.7.0
84838         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
84839         addition.
84840         * doc/posix-functions/fwscanf.texi: Likewise.
84841         * doc/posix-functions/swprintf.texi: Likewise.
84842         * doc/posix-functions/swscanf.texi: Likewise.
84843         * doc/posix-functions/vfwprintf.texi: Likewise.
84844         * doc/posix-functions/vfwscanf.texi: Likewise.
84845         * doc/posix-functions/vswprintf.texi: Likewise.
84846         * doc/posix-functions/vswscanf.texi: Likewise.
84847         * doc/posix-functions/vwprintf.texi: Likewise.
84848         * doc/posix-functions/vwscanf.texi: Likewise.
84849         * doc/posix-functions/wcscasecmp.texi: Likewise.
84850         * doc/posix-functions/wcsdup.texi: Likewise.
84851         * doc/posix-functions/wcsftime.texi: Likewise.
84852         * doc/posix-functions/wcsncasecmp.texi: Likewise.
84853         * doc/posix-functions/wprintf.texi: Likewise.
84854         * doc/posix-functions/wscanf.texi: Likewise.
84855         * doc/glibc-functions/gethostbyname2.texi: Likewise.
84857 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
84859         maint.mk: really add $(AM_MAKEFLAGS)
84860         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
84861         was inadvertently omitted in the last commit.
84862         Spotted by Bruno Haible.
84864         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
84865         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
84866         $(AM_MAKEFLAGS)' rather than plain `make'.
84868         gnulib-tool: execute $MAKE not make
84869         * gnulib-tool: Default $MAKE to 'make'.
84870         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
84871         than make.  Initialize $MAKE in the do-autobuild script.
84873         gnulib-tool: use $MAKE not make in generated files
84874         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
84875         make, in generated files.  Initialize $MAKE in the do-autobuild
84876         script.
84878         * top/GNUmakefile (_have-git-version-gen): Fix typo.
84880         GNUmakefile: disable parallelism only for multiple, recursive targets
84881         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
84882         additions in the Makefile.
84883         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
84884         by Automake.
84885         (.NOTPARALLEL): Only disable parallel builds if multiple targets
84886         are listed on the command line and at least one of them is
84887         listed in $(ALL_RECURSIVE_TARGETS).
84889 2009-03-14  Bruno Haible  <bruno@clisp.org>
84891         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
84892         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
84893         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
84894         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
84895         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
84896         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
84897         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
84898         unistr/u8-uctomb.
84899         * modules/unistr/u8-strchr (Depends-on): Likewise.
84900         * modules/unistr/u8-strrchr (Depends-on): Likewise.
84901         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
84902         unistr/u16-uctomb.
84903         * modules/unistr/u16-strchr (Depends-on): Likewise.
84904         * modules/unistr/u16-strrchr (Depends-on): Likewise.
84906 2009-03-12  Bruno Haible  <bruno@clisp.org>
84908         Work around select() bug on Interix 3.5.
84909         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
84910         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
84911         * m4/select.m4: New file.
84912         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
84913         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
84914         * modules/select (Files): Add m4/select.m4.
84915         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
84916         * modules/nanosleep (Depends-on): Add select.
84917         * modules/poll (Depends-on): Likewise.
84918         * doc/posix-functions/select.texi: Mention the Interix bug.
84919         Reported by Markus Duft <mduft@gentoo.org>.
84921         * lib/select.c: Renamed from lib/winsock-select.c.
84922         * modules/select (Files): Add lib/select.c, remove
84923         lib/winsock-select.c.
84924         (configure.ac): Update.
84926 2009-03-12  Jim Meyering  <meyering@redhat.com>
84928         avoid gcc warnings about unused macro definitions
84929         * lib/readtokens.c (STREQ): Remove unused definition.
84930         * lib/xmalloc.c (SIZE_MAX): Likewise.
84931         * lib/openat-die.c (N_): Likewise.
84932         * lib/mountlist.c (SIZE_MAX): Remove definition.
84933         Instead, include <stdint.h>.
84934         * lib/readutmp.c: Likewise.
84935         * modules/readutmp (Depends-on): Add stdint.
84936         * modules/mountlist (Depends-on): Add stdint.
84937         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
84939 2009-03-10  Bruno Haible  <bruno@clisp.org>
84941         Tests for module 'mbmemcasecoll'.
84942         * modules/mbmemcasecoll-tests: New file.
84943         * tests/test-mbmemcasecoll1.sh: New file.
84944         * tests/test-mbmemcasecoll2.sh: New file.
84945         * tests/test-mbmemcasecoll3.sh: New file.
84946         * tests/test-mbmemcasecoll.c: New file.
84948         New module 'mbmemcasecoll'.
84949         * lib/mbmemcasecoll.h: New file.
84950         * lib/mbmemcasecoll.c: New file.
84951         * modules/mbmemcasecoll: New file.
84953         * tests/test-mbmemcasecmp.h: New file, extracted from
84954         tests/test-mbmemcasecmp.c.
84955         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
84956         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
84957         (main): Update.
84958         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
84960 2009-03-09  Bruno Haible  <bruno@clisp.org>
84962         Tests for module 'mbmemcasecmp'.
84963         * modules/mbmemcasecmp-tests: New file.
84964         * tests/test-mbmemcasecmp1.sh: New file.
84965         * tests/test-mbmemcasecmp2.sh: New file.
84966         * tests/test-mbmemcasecmp3.sh: New file.
84967         * tests/test-mbmemcasecmp.c: New file.
84969         New module 'mbmemcasecmp'.
84970         * lib/mbmemcasecmp.h: New file.
84971         * lib/mbmemcasecmp.c: New file.
84972         * modules/mbmemcasecmp: New file.
84974 2009-03-09  Bruno Haible  <bruno@clisp.org>
84976         Tests for module 'unicase/ulc-casecoll'.
84977         * modules/unicase/ulc-casecoll-tests: New file.
84978         * tests/unicase/test-ulc-casecoll1.sh: New file.
84979         * tests/unicase/test-ulc-casecoll2.sh: New file.
84980         * tests/unicase/test-ulc-casecoll.c: New file.
84982         New module 'unicase/ulc-casecoll'.
84983         * lib/unicase.h (ulc_casecoll): New declaration.
84984         * lib/unicase/ulc-casecoll.c: New file.
84985         * modules/unicase/ulc-casecoll: New file.
84987         New module 'unicase/ulc-casexfrm'.
84988         * lib/unicase.h (ulc_casexfrm): New declaration.
84989         * lib/unicase/ulc-casexfrm.c: New file.
84990         * modules/unicase/ulc-casexfrm: New file.
84992 2009-03-09  Bruno Haible  <bruno@clisp.org>
84994         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
84995         invocations.
84997         * m4/mbscasecmp.m4: Remove file.
84998         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
84999         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
85001         * m4/mbscasestr.m4: Remove file.
85002         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
85003         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
85005         * m4/mbschr.m4: Remove file.
85006         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
85007         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
85009         * m4/mbscspn.m4: Remove file.
85010         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
85011         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
85013         * m4/mbslen.m4: Remove file.
85014         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
85015         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
85017         * m4/mbsncasecmp.m4: Remove file.
85018         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
85019         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
85021         * m4/mbsnlen.m4: Remove file.
85022         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
85023         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
85025         * m4/mbspbrk.m4: Remove file.
85026         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
85027         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
85029         * m4/mbspcasecmp.m4: Remove file.
85030         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
85031         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
85033         * m4/mbsrchr.m4: Remove file.
85034         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
85035         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
85037         * m4/mbssep.m4: Remove file.
85038         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
85039         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
85041         * m4/mbsspn.m4: Remove file.
85042         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
85043         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
85045         * m4/mbsstr.m4: Remove file.
85046         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
85047         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
85049         * m4/mbstok_r.m4: Remove file.
85050         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
85051         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
85053         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
85055         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
85056         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
85058         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
85060 2009-03-08  Bruno Haible  <bruno@clisp.org>
85062         Tests for module 'unicase/ulc-casecmp'.
85063         * modules/unicase/ulc-casecmp-tests: New file.
85064         * tests/unicase/test-ulc-casecmp1.sh: New file.
85065         * tests/unicase/test-ulc-casecmp2.sh: New file.
85066         * tests/unicase/test-ulc-casecmp.c: New file.
85068         New module 'unicase/ulc-casecmp'.
85069         * lib/unicase.h (ulc_casecmp): New declaration.
85070         * lib/unicase/ulc-casecmp.c: New file.
85071         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
85072         'const SRC_UNIT *'.
85073         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
85074         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
85075         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
85076         * modules/unicase/ulc-casecmp: New file.
85078         Tests for module 'unicase/u32-is-cased'.
85079         * modules/unicase/u32-is-cased-tests: New file.
85080         * tests/unicase/test-u32-is-cased.c: New file.
85082         Tests for module 'unicase/u16-is-cased'.
85083         * modules/unicase/u16-is-cased-tests: New file.
85084         * tests/unicase/test-u16-is-cased.c: New file.
85086         Tests for module 'unicase/u8-is-cased'.
85087         * modules/unicase/u8-is-cased-tests: New file.
85088         * tests/unicase/test-u8-is-cased.c: New file.
85089         * tests/unicase/test-is-cased.h: New file.
85091         New module 'unicase/u32-is-cased'.
85092         * lib/unicase/u32-is-cased.c: New file.
85093         * modules/unicase/u32-is-cased: New file.
85095         New module 'unicase/u16-is-cased'.
85096         * lib/unicase/u16-is-cased.c: New file.
85097         * modules/unicase/u16-is-cased: New file.
85099         New module 'unicase/u8-is-cased'.
85100         * lib/unicase/u8-is-cased.c: New file.
85101         * lib/unicase/u-is-cased.h: New file.
85102         * modules/unicase/u8-is-cased: New file.
85104         Tests for module 'unicase/u32-is-casefolded'.
85105         * modules/unicase/u32-is-casefolded-tests: New file.
85106         * tests/unicase/test-u32-is-casefolded.c: New file.
85108         Tests for module 'unicase/u16-is-casefolded'.
85109         * modules/unicase/u16-is-casefolded-tests: New file.
85110         * tests/unicase/test-u16-is-casefolded.c: New file.
85112         Tests for module 'unicase/u8-is-casefolded'.
85113         * modules/unicase/u8-is-casefolded-tests: New file.
85114         * tests/unicase/test-u8-is-casefolded.c: New file.
85115         * tests/unicase/test-is-casefolded.h: New file.
85117         New module 'unicase/u32-is-casefolded'.
85118         * lib/unicase/u32-is-casefolded.c: New file.
85119         * modules/unicase/u32-is-casefolded: New file.
85121         New module 'unicase/u16-is-casefolded'.
85122         * lib/unicase/u16-is-casefolded.c: New file.
85123         * modules/unicase/u16-is-casefolded: New file.
85125         New module 'unicase/u8-is-casefolded'.
85126         * lib/unicase/u8-is-casefolded.c: New file.
85127         * modules/unicase/u8-is-casefolded: New file.
85129         Tests for module 'unicase/u32-is-titlecase'.
85130         * modules/unicase/u32-is-titlecase-tests: New file.
85131         * tests/unicase/test-u32-is-titlecase.c: New file.
85133         Tests for module 'unicase/u16-is-titlecase'.
85134         * modules/unicase/u16-is-titlecase-tests: New file.
85135         * tests/unicase/test-u16-is-titlecase.c: New file.
85137         Tests for module 'unicase/u8-is-titlecase'.
85138         * modules/unicase/u8-is-titlecase-tests: New file.
85139         * tests/unicase/test-u8-is-titlecase.c: New file.
85140         * tests/unicase/test-is-titlecase.h: New file.
85142         New module 'unicase/u32-is-titlecase'.
85143         * lib/unicase/u32-is-titlecase.c: New file.
85144         * modules/unicase/u32-is-titlecase: New file.
85146         New module 'unicase/u16-is-titlecase'.
85147         * lib/unicase/u16-is-titlecase.c: New file.
85148         * modules/unicase/u16-is-titlecase: New file.
85150         New module 'unicase/u8-is-titlecase'.
85151         * lib/unicase/u8-is-titlecase.c: New file.
85152         * modules/unicase/u8-is-titlecase: New file.
85154         Tests for module 'unicase/u32-is-lowercase'.
85155         * modules/unicase/u32-is-lowercase-tests: New file.
85156         * tests/unicase/test-u32-is-lowercase.c: New file.
85158         Tests for module 'unicase/u16-is-lowercase'.
85159         * modules/unicase/u16-is-lowercase-tests: New file.
85160         * tests/unicase/test-u16-is-lowercase.c: New file.
85162         Tests for module 'unicase/u8-is-lowercase'.
85163         * modules/unicase/u8-is-lowercase-tests: New file.
85164         * tests/unicase/test-u8-is-lowercase.c: New file.
85165         * tests/unicase/test-is-lowercase.h: New file.
85167         New module 'unicase/u32-is-lowercase'.
85168         * lib/unicase/u32-is-lowercase.c: New file.
85169         * modules/unicase/u32-is-lowercase: New file.
85171         New module 'unicase/u16-is-lowercase'.
85172         * lib/unicase/u16-is-lowercase.c: New file.
85173         * modules/unicase/u16-is-lowercase: New file.
85175         New module 'unicase/u8-is-lowercase'.
85176         * lib/unicase/u8-is-lowercase.c: New file.
85177         * modules/unicase/u8-is-lowercase: New file.
85179         Tests for module 'unicase/u32-is-uppercase'.
85180         * modules/unicase/u32-is-uppercase-tests: New file.
85181         * tests/unicase/test-u32-is-uppercase.c: New file.
85183         Tests for module 'unicase/u16-is-uppercase'.
85184         * modules/unicase/u16-is-uppercase-tests: New file.
85185         * tests/unicase/test-u16-is-uppercase.c: New file.
85187         Tests for module 'unicase/u8-is-uppercase'.
85188         * modules/unicase/u8-is-uppercase-tests: New file.
85189         * tests/unicase/test-u8-is-uppercase.c: New file.
85190         * tests/unicase/test-is-uppercase.h: New file.
85192         New module 'unicase/u32-is-uppercase'.
85193         * lib/unicase/u32-is-uppercase.c: New file.
85194         * modules/unicase/u32-is-uppercase: New file.
85196         New module 'unicase/u16-is-uppercase'.
85197         * lib/unicase/u16-is-uppercase.c: New file.
85198         * modules/unicase/u16-is-uppercase: New file.
85200         New module 'unicase/u8-is-uppercase'.
85201         * lib/unicase/u8-is-uppercase.c: New file.
85202         * modules/unicase/u8-is-uppercase: New file.
85204         New module 'unicase/u32-is-invariant'.
85205         * lib/unicase/u32-is-invariant.c: New file.
85206         * modules/unicase/u32-is-invariant: New file.
85208         New module 'unicase/u16-is-invariant'.
85209         * lib/unicase/u16-is-invariant.c: New file.
85210         * modules/unicase/u16-is-invariant: New file.
85212         New module 'unicase/u8-is-invariant'.
85213         * lib/unicase/u8-is-invariant.c: New file.
85214         * lib/unicase/invariant.h: New file.
85215         * lib/unicase/u-is-invariant.h: New file.
85216         * modules/unicase/u8-is-invariant: New file.
85218         Tests for module 'unicase/u32-casecoll'.
85219         * modules/unicase/u32-casecoll-tests: New file.
85220         * tests/unicase/test-u32-casecoll.c: New file.
85222         Tests for module 'unicase/u16-casecoll'.
85223         * modules/unicase/u16-casecoll-tests: New file.
85224         * tests/unicase/test-u16-casecoll.c: New file.
85226         Tests for module 'unicase/u8-casecoll'.
85227         * modules/unicase/u8-casecoll-tests: New file.
85228         * tests/unicase/test-u8-casecoll.c: New file.
85230         New module 'unicase/u32-casecoll'.
85231         * lib/unicase/u32-casecoll.c: New file.
85232         * modules/unicase/u32-casecoll: New file.
85234         New module 'unicase/u16-casecoll'.
85235         * lib/unicase/u16-casecoll.c: New file.
85236         * modules/unicase/u16-casecoll: New file.
85238         New module 'unicase/u8-casecoll'.
85239         * lib/unicase/u8-casecoll.c: New file.
85240         * lib/unicase/u-casecoll.h: New file.
85241         * modules/unicase/u8-casecoll: New file.
85243         New module 'unicase/u32-casexfrm'.
85244         * lib/unicase/u32-casexfrm.c: New file.
85245         * modules/unicase/u32-casexfrm: New file.
85247         New module 'unicase/u16-casexfrm'.
85248         * lib/unicase/u16-casexfrm.c: New file.
85249         * modules/unicase/u16-casexfrm: New file.
85251         New module 'unicase/u8-casexfrm'.
85252         * lib/unicase/u8-casexfrm.c: New file.
85253         * lib/unicase/u-casexfrm.h: New file.
85254         * modules/unicase/u8-casexfrm: New file.
85256         Tests for module 'unicase/u32-casecmp'.
85257         * modules/unicase/u32-casecmp-tests: New file.
85258         * tests/unicase/test-u32-casecmp.c: New file.
85260         Tests for module 'unicase/u16-casecmp'.
85261         * modules/unicase/u16-casecmp-tests: New file.
85262         * tests/unicase/test-u16-casecmp.c: New file.
85264         Tests for module 'unicase/u8-casecmp'.
85265         * modules/unicase/u8-casecmp-tests: New file.
85266         * tests/unicase/test-u8-casecmp.c: New file.
85267         * tests/unicase/test-casecmp.h: New file.
85269         New module 'unicase/u32-casecmp'.
85270         * lib/unicase/u32-casecmp.c: New file.
85271         * modules/unicase/u32-casecmp: New file.
85273         New module 'unicase/u16-casecmp'.
85274         * lib/unicase/u16-casecmp.c: New file.
85275         * modules/unicase/u16-casecmp: New file.
85277         New module 'unicase/u8-casecmp'.
85278         * lib/unicase/u8-casecmp.c: New file.
85279         * lib/unicase/u-casecmp.h: New file.
85280         * modules/unicase/u8-casecmp: New file.
85282         Tests for module 'unicase/u32-casefold'.
85283         * modules/unicase/u32-casefold-tests: New file.
85284         * tests/unicase/test-u32-casefold.c: New file.
85286         Tests for module 'unicase/u16-casefold'.
85287         * modules/unicase/u16-casefold-tests: New file.
85288         * tests/unicase/test-u16-casefold.c: New file.
85290         Tests for module 'unicase/u8-casefold'.
85291         * modules/unicase/u8-casefold-tests: New file.
85292         * tests/unicase/test-u8-casefold.c: New file.
85294         New module 'unicase/u32-casefold'.
85295         * lib/unicase/u32-casefold.c: New file.
85296         * modules/unicase/u32-casefold: New file.
85298         New module 'unicase/u16-casefold'.
85299         * lib/unicase/u16-casefold.c: New file.
85300         * modules/unicase/u16-casefold: New file.
85302         New module 'unicase/u8-casefold'.
85303         * lib/unicase/u8-casefold.c: New file.
85304         * lib/unicase/u-casefold.h: New file.
85305         * modules/unicase/u8-casefold: New file.
85307         New module 'unicase/tocasefold'.
85308         * lib/unicase/casefold.h: New file.
85309         * lib/unicase/tocasefold.c: New file.
85310         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
85311         * modules/unicase/tocasefold: New file.
85313         Tests for module 'unicase/u32-totitle'.
85314         * modules/unicase/u32-totitle-tests: New file.
85315         * tests/unicase/test-u32-totitle.c: New file.
85317         Tests for module 'unicase/u16-totitle'.
85318         * modules/unicase/u16-totitle-tests: New file.
85319         * tests/unicase/test-u16-totitle.c: New file.
85321         Tests for module 'unicase/u8-totitle'.
85322         * modules/unicase/u8-totitle-tests: New file.
85323         * tests/unicase/test-u8-totitle.c: New file.
85325         New module 'unicase/u32-totitle'.
85326         * lib/unicase/u32-totitle.c: New file.
85327         * modules/unicase/u32-totitle: New file.
85329         New module 'unicase/u16-totitle'.
85330         * lib/unicase/u16-totitle.c: New file.
85331         * modules/unicase/u16-totitle: New file.
85333         New module 'unicase/u8-totitle'.
85334         * lib/unicase/u8-totitle.c: New file.
85335         * lib/unicase/u-totitle.h: New file.
85336         * modules/unicase/u8-totitle: New file.
85338         Tests for module 'unicase/u32-tolower'.
85339         * modules/unicase/u32-tolower-tests: New file.
85340         * tests/unicase/test-u32-tolower.c: New file.
85342         Tests for module 'unicase/u16-tolower'.
85343         * modules/unicase/u16-tolower-tests: New file.
85344         * tests/unicase/test-u16-tolower.c: New file.
85346         Tests for module 'unicase/u8-tolower'.
85347         * modules/unicase/u8-tolower-tests: New file.
85348         * tests/unicase/test-u8-tolower.c: New file.
85350         New module 'unicase/u32-tolower'.
85351         * lib/unicase/u32-tolower.c: New file.
85352         * modules/unicase/u32-tolower: New file.
85354         New module 'unicase/u16-tolower'.
85355         * lib/unicase/u16-tolower.c: New file.
85356         * modules/unicase/u16-tolower: New file.
85358         New module 'unicase/u8-tolower'.
85359         * lib/unicase/u8-tolower.c: New file.
85360         * modules/unicase/u8-tolower: New file.
85362         Tests for module 'unicase/u32-toupper'.
85363         * modules/unicase/u32-toupper-tests: New file.
85364         * tests/unicase/test-u32-toupper.c: New file.
85366         Tests for module 'unicase/u16-toupper'.
85367         * modules/unicase/u16-toupper-tests: New file.
85368         * tests/unicase/test-u16-toupper.c: New file.
85370         Tests for module 'unicase/u8-toupper'.
85371         * modules/unicase/u8-toupper-tests: New file.
85372         * tests/unicase/test-u8-toupper.c: New file.
85374         New module 'unicase/u32-toupper'.
85375         * lib/unicase/u32-toupper.c: New file.
85376         * modules/unicase/u32-toupper: New file.
85378         New module 'unicase/u16-toupper'.
85379         * lib/unicase/u16-toupper.c: New file.
85380         * modules/unicase/u16-toupper: New file.
85382         New module 'unicase/u8-toupper'.
85383         * lib/unicase/u8-toupper.c: New file.
85384         * modules/unicase/u8-toupper: New file.
85386         New module 'unicase/u32-casemap'.
85387         * lib/unicase/u32-casemap.c: New file.
85388         * modules/unicase/u32-casemap: New file.
85390         New module 'unicase/u16-casemap'.
85391         * lib/unicase/u16-casemap.c: New file.
85392         * modules/unicase/u16-casemap: New file.
85394         New module 'unicase/u8-casemap'.
85395         * lib/unicase/unicasemap.h: New file.
85396         * lib/unicase/u8-casemap.c: New file.
85397         * lib/unicase/u-casemap.h: New file.
85398         * modules/unicase/u8-casemap: New file.
85400         New module 'unicase/special-casing'.
85401         * lib/unicase/special-casing.h: New file.
85402         * lib/unicase/special-casing.c: New file.
85403         * lib/unicase/special-casing-table.gperf: New file, generated by
85404         gen-uni-tables.c.
85405         * modules/unicase/special-casing: New file.
85407         Tests for module 'unicase/locale-language'.
85408         * modules/unicase/locale-language-tests: New file.
85409         * tests/unicase/test-locale-language.sh: New file.
85410         * tests/unicase/test-locale-language.c: New file.
85412         New module 'unicase/locale-language'.
85413         * lib/unicase/locale-language.c: New file.
85414         * lib/unicase/locale-languages.gperf: New file.
85415         * modules/unicase/locale-language: New file.
85417         Generate more tables for case conversion and case folding.
85418         * lib/gen-uni-tables.c (SCC_*): New enum items.
85419         (struct special_casing_rule): New type.
85420         (casing_rules, num_casing_rules, allocated_casing_rules): New
85421         variables.
85422         (add_casing_rule, fill_casing_rules): New functions.
85423         (struct casefold_rule): New type.
85424         (casefolding_rules, num_casefolding_rules,
85425         allocated_casefolding_rules): New variables.
85426         (fill_casefolding_rules): New function.
85427         (unicode_casefold): New variable.
85428         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
85429         sort_casing_rules, output_casing_rules): New functions.
85430         (main): Accept to more arguments: SpecialCasing.txt and
85431         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
85432         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
85433         Output mapping for casefolding.
85435         * lib/unicase.h: Include stdbool.h, uninorm.h.
85436         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
85437         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
85438         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
85439         arguments.
85440         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
85441         resultp arguments.
85442         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
85443         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
85444         resultp arguments.
85445         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
85446         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
85447         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
85448         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
85449         declarations.
85450         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
85452 2009-03-08  Bruno Haible  <bruno@clisp.org>
85454         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85455         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
85456         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
85457         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85459 2009-03-07  Bruno Haible  <bruno@clisp.org>
85461         Adjust u*_normcmp, u*_normcoll API.
85462         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
85463         u16_normcoll, u32_normcoll): Change failure conventions.
85464         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
85465         errno and return -1.
85466         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
85468 2009-03-07  Bruno Haible  <bruno@clisp.org>
85470         Tests for module 'uninorm/u32-normcoll'.
85471         * modules/uninorm/u32-normcoll-tests: New file.
85472         * tests/uninorm/test-u32-normcoll.c: New file.
85474         Tests for module 'uninorm/u16-normcoll'.
85475         * modules/uninorm/u16-normcoll-tests: New file.
85476         * tests/uninorm/test-u16-normcoll.c: New file.
85478         Tests for module 'uninorm/u8-normcoll'.
85479         * modules/uninorm/u8-normcoll-tests: New file.
85480         * tests/uninorm/test-u8-normcoll.c: New file.
85482 2009-03-07  Bruno Haible  <bruno@clisp.org>
85484         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
85485         tests/uninorm/test-u32-normcmp.c.
85486         * tests/uninorm/test-u32-normcmp.c: Include it.
85487         (test_nonascii): New function, extracted from main. Add some more
85488         tests.
85489         (main): Invoke test_ascii and test_nonascii.
85490         * modules/uninorm/u32-normcmp-tests (Files): Add
85491         tests/uninorm/test-u32-normcmp.h.
85492         (Depends-on): Remove uninorm/u32-normcmp.
85494         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
85495         tests/uninorm/test-u16-normcmp.c.
85496         * tests/uninorm/test-u16-normcmp.c: Include it.
85497         (test_nonascii): New function, extracted from main. Add some more
85498         tests.
85499         (main): Invoke test_ascii and test_nonascii.
85500         * modules/uninorm/u16-normcmp-tests (Files): Add
85501         tests/uninorm/test-u16-normcmp.h.
85502         (Depends-on): Remove uninorm/u16-normcmp.
85504         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
85505         tests/uninorm/test-u8-normcmp.c.
85506         * tests/uninorm/test-u8-normcmp.c: Include it.
85507         (test_nonascii): New function, extracted from main. Add some more
85508         tests.
85509         (main): Invoke test_ascii and test_nonascii.
85510         * modules/uninorm/u8-normcmp-tests (Files): Add
85511         tests/uninorm/test-u8-normcmp.h.
85512         (Depends-on): Remove uninorm/u8-normcmp.
85514 2009-03-07  Bruno Haible  <bruno@clisp.org>
85516         New module 'uninorm/u32-normcoll'.
85517         * lib/uninorm/u32-normcoll.c: New file.
85518         * modules/uninorm/u32-normcoll: New file.
85520         New module 'uninorm/u16-normcoll'.
85521         * lib/uninorm/u16-normcoll.c: New file.
85522         * modules/uninorm/u16-normcoll: New file.
85524         New module 'uninorm/u8-normcoll'.
85525         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
85526         declarations.
85527         * lib/uninorm/u8-normcoll.c: New file.
85528         * lib/uninorm/u-normcoll.h: New file.
85529         * modules/uninorm/u8-normcoll: New file.
85531         New module 'uninorm/u32-normxfrm'.
85532         * lib/uninorm/u32-normxfrm.c: New file.
85533         * modules/uninorm/u32-normxfrm: New file.
85535         New module 'uninorm/u16-normxfrm'.
85536         * lib/uninorm/u16-normxfrm.c: New file.
85537         * modules/uninorm/u16-normxfrm: New file.
85539         New module 'uninorm/u8-normxfrm'.
85540         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
85541         declarations.
85542         * lib/uninorm/u8-normxfrm.c: New file.
85543         * lib/uninorm/u-normxfrm.h: New file.
85544         * modules/uninorm/u8-normxfrm: New file.
85546 2009-03-07  Bruno Haible  <bruno@clisp.org>
85548         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
85549         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
85550         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
85552 2009-03-07  Bruno Haible  <bruno@clisp.org>
85554         New module 'memxfrm'.
85555         * lib/memxfrm.h: New file.
85556         * lib/memxfrm.c: New file.
85557         * modules/memxfrm: New file.
85559 2009-03-07  Bruno Haible  <bruno@clisp.org>
85561         New module 'memcmp2'.
85562         * lib/memcmp2.h: New file.
85563         * lib/memcmp2.c: New file.
85564         * modules/memcmp2: New file.
85566 2009-03-07  Bruno Haible  <bruno@clisp.org>
85568         Tests for module 'uninorm/decomposing-form'.
85569         * modules/uninorm/decomposing-form-tests: New file.
85570         * tests/uninorm/test-decomposing-form.c: New file.
85572         New module 'uninorm/decomposing-form'.
85573         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
85574         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
85575         Add 'decomposing_variant' field.
85576         * lib/uninorm/decomposing-form.c: New file.
85577         * lib/uninorm/nfc.c (uninorm_nfc): Update.
85578         * lib/uninorm/nfd.c (uninorm_nfd): Update.
85579         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
85580         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
85581         * modules/uninorm/decomposing-form: New file.
85582         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
85583         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
85585 2009-03-07  Bruno Haible  <bruno@clisp.org>
85587         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
85588         strings.
85590 2009-03-06  Bruno Haible  <bruno@clisp.org>
85592         Tests for module 'uninorm/u32-normcmp'.
85593         * tests/uninorm/test-u32-normcmp.c: New file.
85594         * modules/uninorm/u32-normcmp-tests: New file.
85596         Tests for module 'uninorm/u16-normcmp'.
85597         * tests/uninorm/test-u16-normcmp.c: New file.
85598         * modules/uninorm/u16-normcmp-tests: New file.
85600         Tests for module 'uninorm/u8-normcmp'.
85601         * tests/uninorm/test-u8-normcmp.c: New file.
85602         * modules/uninorm/u8-normcmp-tests: New file.
85604         New module 'uninorm/u32-normcmp'.
85605         * lib/uninorm/u32-normcmp.c: New file.
85606         * modules/uninorm/u32-normcmp: New file.
85608         New module 'uninorm/u16-normcmp'.
85609         * lib/uninorm/u16-normcmp.c: New file.
85610         * modules/uninorm/u16-normcmp: New file.
85612         New module 'uninorm/u8-normcmp'.
85613         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
85614         declarations.
85615         * lib/uninorm/u8-normcmp.c: New file.
85616         * lib/uninorm/u-normcmp.h: New file.
85617         * modules/uninorm/u8-normcmp: New file.
85619 2009-03-06  Bruno Haible  <bruno@clisp.org>
85621         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
85622         Reported by Eric Blake.
85624 2009-03-06  Eric Blake  <ebb9@byu.net>
85625             Bruno Haible  <bruno@clisp.org>
85627         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
85628         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
85629         condition.
85630         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85631         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
85632         condition.
85633         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
85635 2009-03-06  Eric Blake  <ebb9@byu.net>
85637         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
85638         to avoid compiler warnings.
85639         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
85641 2009-03-05  Bruno Haible  <bruno@clisp.org>
85643         * tests/test-ftell.c (main): Disable test beyond end of file on
85644         FreeMiNT.
85645         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85647 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
85649         * lib/filevercmp.c: Move hidden files up in ordering.
85650         * tests/test-filevercmp.c: Add tests for hidden files.
85652 2009-03-04  Bruno Haible  <bruno@clisp.org>
85654         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
85655         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
85656         AM_CFLAGS.
85657         Reported by Simon Josefsson.
85659 2009-03-03  Bruno Haible  <bruno@clisp.org>
85661         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
85662         Reported by Simon Josefsson.
85664         * doc/ld-version-script.texi: Update node reference.
85666 2009-03-03  Bruno Haible  <bruno@clisp.org>
85668         * modules/visibility (License): Change to 'unlimited'.
85669         Suggested by Simon Josefsson.
85671 2009-03-03  Jim Meyering  <meyering@redhat.com>
85673         unlinkdir: cannot_unlink_dir may modify process state
85674         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
85675         it's neither thread-safe nor appropriate for use in a library.
85677 2009-03-03  Eric Blake  <ebb9@byu.net>
85679         test-closein: silence test under Darwin
85680         * tests/test-closein.sh: Ignore stderr from cat, since we don't
85681         care if it dies from EPIPE or EBADF.
85683 2009-03-03  Bruno Haible  <bruno@clisp.org>
85685         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
85686         earlier.
85687         * doc/visibility.texi: Fix @node and @section.
85689 2009-03-03  Simon Josefsson  <simon@josefsson.org>
85691         * doc/gnulib.texi: Link to sections for ld version script and
85692         visibility.
85693         * doc/visibility.texi: Add @node and @section.
85694         * modules/ld-version-script: New module.
85695         * m4/ld-version-script.m4: New file.
85696         * doc/ld-version-script.texi: New file.
85698 2009-03-02  David Lutterkort  <lutter@redhat.com>
85700         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
85701         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85703 2009-03-02  Bruno Haible  <bruno@clisp.org>
85705         * doc/visibility.texi: Mention libtool's -export-symbols option.
85707 2009-03-02  Jim Meyering  <meyering@redhat.com>
85709         announce-gen: new option: --no-print-checksums
85710         * build-aux/announce-gen (usage): Describe it.
85711         (print_checksums): Print a newline here, not in the [*] footnote.
85712         (main): Honor it.
85714 2009-03-01  Bruno Haible  <bruno@clisp.org>
85716         Use socklen_t in the native Windows replacements prototypes.
85717         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
85718         instead of 'int'.
85719         * lib/getsockopt.c (rpl_getsockopt): Likewise.
85720         * lib/setsockopt.c (rpl_setsockopt): Likewise.
85721         * modules/getsockopt (Depends-on): Add socklen.
85722         * modules/setsockopt (Depends-on): Add socklen.
85724 2009-03-01  Bruno Haible  <bruno@clisp.org>
85726         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
85727         least 4.2.
85729 2009-03-01  Eric Blake  <ebb9@byu.net>
85730             Bruno Haible  <bruno@clisp.org>
85732         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
85733         error messages.
85734         * lib/wait-process.c (wait_subprocess): Omit error message about
85735         deadly signal sent to the child of termsigp != NULL.
85737 2009-03-01  Eric Blake  <ebb9@byu.net>
85739         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
85741 2009-03-01  Bruno Haible  <bruno@clisp.org>
85743         Avoid a gcc warning.
85744         * tests/test-sched.c (b): Make global.
85745         Reported by Eric Blake.
85747 2009-01-19  Martin Lambers  <marlam@marlam.de>
85749         Provide POSIX semantics for socket timeout options on W32.
85750         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
85751         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
85752         * modules/setsockopt: Depend on sys_time module for struct timeval.
85753         * modules/getsockopt: Depend on sys_time module for struct timeval.
85755 2009-03-01  Simon Josefsson  <simon@josefsson.org>
85757         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
85758         __USE_GNU, for consistency with netdb.in.h.
85759         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85761 2009-03-01  Bruno Haible  <bruno@clisp.org>
85763         More support for FreeMiNT.
85764         * lib/fseeko.c (rpl_fseeko): Complete last commit.
85765         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85767 2009-03-01  Bruno Haible  <bruno@clisp.org>
85769         More support for FreeMiNT.
85770         * lib/fpurge.c (fpurge): Correct last commit.
85771         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85773 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
85775         Fix unportable awk script in vc-list-files.
85776         * build-aux/vc-list-files: In the replacement awk script, use
85777         substr with a second argument of 1, not zero.
85778         Report by Simon Josefsson.
85780 2009-02-28  Bruno Haible  <bruno@clisp.org>
85782         More support for FreeMiNT.
85783         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
85784         to FreeMiNT today.
85785         * lib/fwriting.c (fwriting): Likewise.
85786         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
85788 2009-02-28  Bruno Haible  <bruno@clisp.org>
85790         * tests/test-freadseek.c (main): Disable test beyond end of file on
85791         FreeMiNT.
85792         * tests/test-ftello.c (main): Likewise.
85793         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
85795 2009-02-28  Bruno Haible  <bruno@clisp.org>
85797         Add tentative support for FreeMiNT.
85798         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
85799         * lib/fpurge.c (fpurge): Likewise.
85800         * lib/freadable.c (freadable): Likewise.
85801         * lib/freading.c (freading): Likewise.
85802         * lib/freadptr.c (freadptr): Likewise.
85803         * lib/freadseek.c (freadptrinc): Likewise.
85804         * lib/fseeko.c (rpl_fseeko): Likewise.
85805         * lib/fseterr.c (fseterr): Likewise.
85806         * lib/fwritable.c (fwritable): Likewise.
85807         * lib/fwriting.c (fwriting): Likewise.
85808         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
85809         Hourihane.
85810         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
85812 2009-02-28  Bruno Haible  <bruno@clisp.org>
85814         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
85815         SIGCHLD.
85816         Reported by Jim Meyering.
85818 2009-02-28  Bruno Haible  <bruno@clisp.org>
85820         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
85821         Mention the results of these tests on various platforms.
85822         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
85823         order.
85824         * doc/posix-functions/printf.texi: Likewise.
85825         * doc/posix-functions/snprintf.texi: Likewise.
85826         * doc/posix-functions/sprintf.texi: Likewise.
85827         * doc/posix-functions/vfprintf.texi: Likewise.
85828         * doc/posix-functions/vprintf.texi: Likewise.
85829         * doc/posix-functions/vsnprintf.texi: Likewise.
85830         * doc/posix-functions/vsprintf.texi: Likewise.
85831         * doc/glibc-functions/obstack_printf.texi: Likewise.
85832         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
85834 2009-02-28  Bruno Haible  <bruno@clisp.org>
85836         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
85837         Reported by Loïc Minier <lool@dooz.org>.
85839 2009-02-27  Bruno Haible  <bruno@clisp.org>
85841         * gnulib-tool (func_import): Make the sed expression used to create the
85842         sed script for updating the .gitignore file POSIX compliant.
85843         Reported by Eric Blake.
85845 2009-02-27  Bruno Haible  <bruno@clisp.org>
85847         * gnulib-tool (sed): Don't alias as "sed --posix".
85848         Reported by Eric Blake.
85850 2009-02-27  Bruno Haible  <bruno@clisp.org>
85852         Avoid test link errors.
85853         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
85854         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
85855         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
85856         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
85857         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
85859 2009-02-27  Bruno Haible  <bruno@clisp.org>
85861         Avoid spurious "(cached)" in configure output.
85862         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
85863         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
85864         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
85865         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
85866         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
85867         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
85868         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
85869         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
85870         Reported by Eric Blake.
85872 2009-02-27  Eric Blake  <ebb9@byu.net>
85874         printf: fix regression in previous patch
85875         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
85877 2009-02-27  Bruno Haible  <bruno@clisp.org>
85879         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
85880         value.
85881         * lib/stdint.in.h: Likewise.
85882         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
85884 2009-02-27  Eric Blake  <ebb9@byu.net>
85886         doc: mention more functions added in cygwin 1.7.0
85887         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
85888         addition.
85889         * doc/posix-functions/open_wmemstream.texi: Likewise.
85890         * doc/posix-functions/wcsnlen.texi: Likewise.
85891         * doc/posix-functions/wcsnrtombs.texi: Likewise.
85892         * doc/posix-functions/wcstod.texi: Likewise.
85893         * doc/posix-functions/wcstof.texi: Likewise.
85894         * doc/posix-functions/wcstoimax.texi: Likewise.
85895         * doc/posix-functions/wcstok.texi: Likewise.
85896         * doc/posix-functions/wcstoumax.texi: Likewise.
85898         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
85899         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
85900         * doc/posix-functions/fprintf.texi: Update.
85901         * doc/posix-functions/printf.texi: Update.
85902         * doc/posix-functions/snprintf.texi: Update.
85903         * doc/posix-functions/sprintf.texi: Update.
85904         * doc/posix-functions/vfprintf.texi: Update.
85905         * doc/posix-functions/vprintf.texi: Update.
85906         * doc/posix-functions/vsnprintf.texi: Update.
85907         * doc/posix-functions/vsprintf.texi: Update.
85908         * doc/glibc-functions/obstack_printf.texi: Update.
85909         * doc/glibc-functions/obstack_vprintf.texi: Update.
85911 2009-02-26  Eric Blake  <ebb9@byu.net>
85913         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
85914         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
85915         compilation bug by using runtime conversion.
85916         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
85917         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
85918         * modules/ceill-tests (Files): Use nan.h.
85919         * modules/floorl-tests (Files): Likewise.
85920         * modules/frexpl-tests (Files): Likewise.
85921         * modules/isnanl-tests (Files): Likewise.
85922         * modules/ldexpl-tests (Files): Likewise.
85923         * modules/roundl-tests (Files): Likewise.
85924         * modules/truncl-tests (Files): Likewise.
85925         * tests/test-ceill.c (main): Use a working NaN.
85926         * tests/test-floorl.c (main): Likewise.
85927         * tests/test-frexpl.c (main): Likewise.
85928         * tests/test-isnan.c (test_long_double): Likewise.
85929         * tests/test-isnanl.h (main): Likewise.
85930         * tests/test-ldexpl.h (main): Likewise.
85931         * tests/test-roundl.h (main): Likewise.
85932         * tests/test-truncl.h (main): Likewise.
85933         See http://lists.gnu.org/r/bug-gnulib/2009-02/msg00190.html.
85935 2009-02-26  Eric Blake  <ebb9@byu.net>
85936             Bruno Haible  <bruno@clisp.org>
85938         Work around a *printf bug with %ls on Solaris.
85939         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
85940         precision is specified, sprintf stops converting the wide string
85941         argument when the number of bytes that have been produced by this
85942         conversion equals or exceeds the precision.
85943         * doc/posix-functions/fprintf.texi: Update.
85944         * doc/posix-functions/printf.texi: Update.
85945         * doc/posix-functions/snprintf.texi: Update.
85946         * doc/posix-functions/sprintf.texi: Update.
85947         * doc/posix-functions/vfprintf.texi: Update.
85948         * doc/posix-functions/vprintf.texi: Update.
85949         * doc/posix-functions/vsnprintf.texi: Update.
85950         * doc/posix-functions/vsprintf.texi: Update.
85951         * doc/glibc-functions/obstack_printf.texi: Update.
85952         * doc/glibc-functions/obstack_vprintf.texi: Update.
85954 2009-02-26  Eric Blake  <ebb9@byu.net>
85956         stdlib: favor compiler check of random.h
85957         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
85958         to avoid an ObjC random.h installed by Swarm.
85960 2009-02-26  Bruno Haible  <bruno@clisp.org>
85962         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
85963         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
85964         Reported by Gary V. Vaughan <gary@gnu.org>.
85966 2009-02-26  Bruno Haible  <bruno@clisp.org>
85968         Fix *printf behaviour regarding the %ls directive.
85969         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
85970         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
85971         NEED_PRINTF_DIRECTIVE_LS.
85972         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
85973         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
85974         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
85975         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
85976         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
85977         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
85978         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
85979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
85980         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
85981         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
85982         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
85983         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
85984         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
85985         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
85986         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
85987         * doc/posix-functions/fprintf.texi: Update.
85988         * doc/posix-functions/printf.texi: Update.
85989         * doc/posix-functions/snprintf.texi: Update.
85990         * doc/posix-functions/sprintf.texi: Update.
85991         * doc/posix-functions/vfprintf.texi: Update.
85992         * doc/posix-functions/vprintf.texi: Update.
85993         * doc/posix-functions/vsnprintf.texi: Update.
85994         * doc/posix-functions/vsprintf.texi: Update.
85995         * doc/glibc-functions/obstack_printf.texi: Update.
85996         * doc/glibc-functions/obstack_vprintf.texi: Update.
85997         Reported by Eric Blake.
85999 2009-02-25  Bruno Haible  <bruno@clisp.org>
86001         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
86002         with known value.
86003         Reported by Gary V. Vaughan <gary@gnu.org>.
86005 2009-02-25  Bruno Haible  <bruno@clisp.org>
86007         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
86008         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
86009         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
86010         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
86011         Reported by Gary V. Vaughan <gary@gnu.org>.
86013 2009-02-25  Bruno Haible  <bruno@clisp.org>
86015         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
86016         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
86017         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
86018         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
86019         Reported by Gary V. Vaughan <gary@gnu.org>.
86021 2009-02-25  Eric Blake  <ebb9@byu.net>
86023         tests: skip fseek/ftell tests if ungetc is broken
86024         * m4/ungetc.m4: New file.
86025         * modules/fseek-tests: Split test, so ungetc dependency is
86026         separate from rest of test.
86027         * modules/fseeko-tests: Likewise.
86028         * modules/ftell-tests: Likewise.
86029         * modules/ftello-tests: Likewise.
86030         * tests/test-fseek.c (main): Isolate ungetc dependency.
86031         * tests/test-fseeko.c (main): Likewise.
86032         * tests/test-ftell.c (main): Likewise.
86033         * tests/test-ftello.c (main): Likewise.
86034         * tests/test-fseek2.sh: New file.
86035         * tests/test-fseeko2.sh: Likewise.
86036         * tests/test-ftell2.sh: Likewise.
86037         * tests/test-ftello2.sh: Likewise.
86039 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
86041         test-getaddrinfo: fix usage of skip return code 77
86042         * tests/test-gettaddrinfo.c: Return skip code 77 only
86043         for first occurrence of skip (4x77 is not 77)
86045 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
86047         strtod: avoid C99 decl-after-statement
86048         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
86050 2009-02-24  Eric Blake  <ebb9@byu.net>
86052         strtod: detect HP-UX 11.31 bug
86053         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
86054         Reported by Gary V. Vaughan.
86056 2009-02-23  Bruno Haible  <bruno@clisp.org>
86058         Fix invalid read past end of memory block.
86059         * lib/vasnprintf.c (DCHAR_SET): Define.
86060         (local_wcslen): Define only when needed.
86061         (local_strnlen, local_wcsnlen): New functions.
86062         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
86063         directives that involve a conversion ourselves.
86064         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
86065         wcsnlen, mbrtowc, wcrtomb.
86066         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
86067         * tests/test-vasprintf-posix.c (test_function): Likewise.
86068         * tests/test-snprintf-posix.h (test_function): Likewise.
86069         * tests/test-sprintf-posix.h (test_function): Likewise.
86070         Reported by Ben Pfaff <blp@cs.stanford.edu>.
86072 2009-02-22  Bruno Haible  <bruno@clisp.org>
86074         Implement new clarified decomposition of Hangul syllables.
86075         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
86076         of type LTV, return only a pairwise decomposition.
86077         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
86078         Likewise.
86079         * tests/uninorm/test-decomposition.c (main): Updated expected result.
86080         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
86081         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
86083 2009-02-22  Bruno Haible  <bruno@clisp.org>
86085         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
86086         zero-length results and shrink excess allocated memory.
86087         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
86088         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
86089         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
86090         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
86091         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
86092         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
86093         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
86094         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
86095         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
86096         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
86097         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
86098         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
86100 2009-02-21  Bruno Haible  <bruno@clisp.org>
86102         * doc/gnulib.texi: Include safe-alloc.texi earlier.
86103         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
86104         spaces after a period. Put a space between a macro name and its
86105         argument list. Trivial rewordings.
86106         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
86107         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
86108         (main): Return 0 explicitly.
86110 2009-02-21  Bruno Haible  <bruno@clisp.org>
86112         Tests for module 'uninorm/filter'.
86113         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
86114         * modules/uninorm/filter-tests: New file.
86116         New module 'uninorm/filter'.
86117         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
86118         uninorm_filter_flush, uninorm_filter_free): New declarations.
86119         * lib/uninorm/uninorm-filter.c: New file.
86120         * modules/uninorm/filter: New file.
86122 2009-02-21  Bruno Haible  <bruno@clisp.org>
86124         Tests for module 'uninorm/nfkc'.
86125         * tests/uninorm/test-nfkc.c: New file.
86126         * tests/uninorm/test-u8-nfkc.c: New file.
86127         * tests/uninorm/test-u16-nfkc.c: New file.
86128         * tests/uninorm/test-u32-nfkc.c: New file.
86129         * tests/uninorm/test-u32-nfkc-big.sh: New file.
86130         * tests/uninorm/test-u32-nfkc-big.c: New file.
86131         * modules/uninorm/nfkc-tests: New file.
86133         New module 'uninorm/nfkc'.
86134         * lib/uninorm/nfkc.c: New file.
86135         * modules/uninorm/nfkc: New file.
86137         Tests for module 'uninorm/nfkd'.
86138         * tests/uninorm/test-nfkd.c: New file.
86139         * tests/uninorm/test-u8-nfkd.c: New file.
86140         * tests/uninorm/test-u16-nfkd.c: New file.
86141         * tests/uninorm/test-u32-nfkd.c: New file.
86142         * tests/uninorm/test-u32-nfkd-big.sh: New file.
86143         * tests/uninorm/test-u32-nfkd-big.c: New file.
86144         * modules/uninorm/nfkd-tests: New file.
86146         New module 'uninorm/nfkd'.
86147         * lib/uninorm/nfkd.c: New file.
86148         * modules/uninorm/nfkd: New file.
86150         Tests for module 'uninorm/nfc'.
86151         * tests/uninorm/test-nfc.c: New file.
86152         * tests/uninorm/test-u8-nfc.c: New file.
86153         * tests/uninorm/test-u16-nfc.c: New file.
86154         * tests/uninorm/test-u32-nfc.c: New file.
86155         * tests/uninorm/test-u32-nfc-big.sh: New file.
86156         * tests/uninorm/test-u32-nfc-big.c: New file.
86157         * modules/uninorm/nfc-tests: New file.
86159         New module 'uninorm/nfc'.
86160         * lib/uninorm/nfc.c: New file.
86161         * modules/uninorm/nfc: New file.
86163         Tests for module 'uninorm/nfd'.
86164         * tests/uninorm/test-nfd.c: New file.
86165         * tests/uninorm/test-u8-nfd.c: New file.
86166         * tests/uninorm/test-u16-nfd.c: New file.
86167         * tests/uninorm/test-u32-nfd.c: New file.
86168         * tests/uninorm/test-u32-nfd-big.sh: New file.
86169         * tests/uninorm/test-u32-nfd-big.c: New file.
86170         * tests/uninorm/test-u32-normalize-big.h: New file.
86171         * tests/uninorm/test-u32-normalize-big.c: New file.
86172         * tests/uninorm/NormalizationTest.txt: New file, created from
86173         Unicode 5.1.0 NormalizationTest.txt.
86174         * modules/uninorm/nfd-tests: New file.
86176         New module 'uninorm/nfd'.
86177         * lib/uninorm/nfd.c: New file.
86178         * modules/uninorm/nfd: New file.
86180         New module 'uninorm/u32-normalize'.
86181         * lib/uninorm/u32-normalize.c: New file.
86182         * modules/uninorm/u32-normalize: New file.
86184         New module 'uninorm/u16-normalize'.
86185         * lib/uninorm/u16-normalize.c: New file.
86186         * modules/uninorm/u16-normalize: New file.
86188         New module 'uninorm/u8-normalize'.
86189         * lib/uninorm/u8-normalize.c: New file.
86190         * lib/uninorm/normalize-internal.h: New file.
86191         * lib/uninorm/u-normalize-internal.h: New file.
86192         * modules/uninorm/u8-normalize: New file.
86194         New module 'uninorm/decompose-internal'.
86195         * lib/uninorm/decompose-internal.c: New file.
86196         * modules/uninorm/decompose-internal: New file.
86198         Tests for module 'uninorm/composition'.
86199         * tests/uninorm/test-composition.c: New file.
86200         * modules/uninorm/composition-tests: New file.
86202         New module 'uninorm/composition'.
86203         * lib/uninorm/composition.c: New file.
86204         * lib/uninorm/composition-table.gperf: New file, generated by
86205         gen-uni-tables.
86206         * modules/uninorm/composition: New file.
86208         Tests for module 'uninorm/compat-decomposition'.
86209         * tests/uninorm/test-compat-decomposition.c: New file.
86210         * modules/uninorm/compat-decomposition-tests: New file.
86212         New module 'uninorm/compat-decomposition'.
86213         * lib/uninorm/decompose-internal.h: New file.
86214         * lib/uninorm/compat-decomposition.c: New file.
86215         * modules/uninorm/compat-decomposition: New file.
86217         Tests for module 'uninorm/canonical-decomposition'.
86218         * tests/uninorm/test-canonical-decomposition.c: New file.
86219         * modules/uninorm/canonical-decomposition-tests: New file.
86221         New module 'uninorm/canonical-decomposition'.
86222         * lib/uninorm/canonical-decomposition.c: New file.
86223         * modules/uninorm/canonical-decomposition: New file.
86225         Tests for module 'uninorm/decomposition'.
86226         * tests/uninorm/test-decomposition.c: New file.
86227         * modules/uninorm/decomposition-tests: New file.
86229         New module 'uninorm/decomposition'.
86230         * lib/uninorm/decomposition.c: New file.
86231         * modules/uninorm/decomposition: New file.
86233         New module 'uninorm/decomposition-table'.
86234         * lib/uninorm/decomposition-table.h: New file.
86235         * lib/uninorm/decomposition-table.c: New file.
86236         * lib/uninorm/decomposition-table1.h: New file, generated by
86237         gen-uni-tables.
86238         * lib/uninorm/decomposition-table2.h: New file, generated by
86239         gen-uni-tables.
86240         * modules/uninorm/decomposition-table: New file.
86242         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
86243         (UC_DECOMP_*): New enumeration items.
86244         (get_decomposition): New function.
86245         (struct decomp_table): New type.
86246         (output_decomposition, output_decomposition_tables): New functions.
86247         (unicode_composition_exclusions): New variable.
86248         (fill_composition_exclusions, debug_output_composition_tables): New
86249         functions.
86250         (main): Accept one more argument. Invoke fill_composition_exclusions.
86251         Output decomposition and composition tables.
86253         New module 'uninorm/base'.
86254         * lib/uninorm.h: New file.
86255         * lib/unictype.h: Update comment.
86256         * modules/uninorm/base: New file.
86258 2009-02-21  David Lutterkort  <lutter@redhat.com>
86260         Tests for module 'safe-alloc'.
86261         * tests/test-safe-alloc.c: New file.
86262         * modules/safe-alloc-tests: New file.
86264         New module 'safe-alloc'.
86265         * lib/safe-alloc.h: New file.
86266         * lib/safe-alloc.c: New file.
86267         * m4/safe-alloc.m4: New file.
86268         * modules/safe-alloc: New file.
86269         * doc/safe-alloc.texi: New file.
86270         * doc/gnulib.texi: Include it.
86271         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
86272         safe-alloc.
86274 2009-02-18  Bruno Haible  <bruno@clisp.org>
86276         Fix link error on non-glibc systems.
86277         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
86278         variable.
86279         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
86281 2009-02-18  Jim Meyering  <meyering@redhat.com>
86283         fts: avoid used-uninitialized error due to recent change
86284         * lib/fts.c (fts_read): Guard uses of the new member,
86285         parent->fts_n_dirs_remaining, since it's not relevant for
86286         the parent of a directory specified on the command-line.
86288 2009-02-17  James Youngman  <jay@gnu.org>
86289             Bruno Haible  <bruno@clisp.org>
86291         * m4/include_next.m4: Reformulate comment.
86293 2009-02-16  Jim Meyering  <meyering@redhat.com>
86295         fts: add #if guards so that the fts_lgpl module still builds
86296         * lib/fts.c: Guard just-added hash-table-using parts with
86297         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
86298         Reported by Simon Josefsson.
86300 2009-02-15  Bruno Haible  <bruno@clisp.org>
86302         * modules/array-mergesort-tests: New file.
86303         * tests/test-array-mergesort.c: New file.
86305         New module 'array-mergesort'.
86306         * modules/array-mergesort: New file.
86307         * lib/array-mergesort.h: New file.
86309 2009-02-15  Bruno Haible  <bruno@clisp.org>
86311         Fix 2009-02-07 commit.
86312         * lib/gen-uni-tables.c (output_predicate, output_category,
86313         output_combclass, output_bidi_category, output_decimal_digit,
86314         output_digit, output_numeric, output_mirror, output_scripts,
86315         output_ident_category, output_simple_mapping): Fix format directives.
86316         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
86318 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
86320         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
86321         fixes are available from IBM.
86323 2009-02-13  Jim Meyering  <meyering@redhat.com>
86325         fts: arrange not to stat non-directories in more cases
86326         This makes GNU find (when it doesn't need to stat each file)
86327         *much* more efficient at traversing reiserfs file systems.
86328         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
86329         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
86330         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
86331         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
86332         (leaf_optimization_applies): New function.
86333         (LCO_hash, LCO_compare): New helper functions.
86334         (link_count_optimize_ok): New function.
86335         (fts_stat): Initialize new member (if dir).
86336         (fts_read): Decrement parent's fts_n_dirs_remaining count if
86337         we've just stat'ed a directory.  Skip the stat call when possible.
86338         ---
86339         Note this AFS-related exchange:
86340         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
86341         and note find's pioctl call in find/fstype.c.
86342         But that is necessary only if you want to enable the
86343         optimization for AFS, and for now, I don't.
86345         fts: move a function definition "up" (no semantic change)
86346         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
86347         "up" to precede upcoming use of a related function.
86349 2009-02-11  Jim Meyering  <meyering@redhat.com>
86351         fts: correct internal computation of nlinks (optimization-related)
86352         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
86353         whether the current entry is a directory, so don't test it.
86355 2009-02-10  Bruno Haible  <bruno@clisp.org>
86357         Tests for module 'uniwbrk/ulc-wordbreaks'.
86358         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
86359         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
86360         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
86362         Tests for module 'uniwbrk/u32-wordbreaks'.
86363         * modules/uniwbrk/u32-wordbreaks-tests: New file.
86364         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
86366         Tests for module 'uniwbrk/u16-wordbreaks'.
86367         * modules/uniwbrk/u16-wordbreaks-tests: New file.
86368         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
86370         Tests for module 'uniwbrk/u8-wordbreaks'.
86371         * modules/uniwbrk/u8-wordbreaks-tests: New file.
86372         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
86374 2009-02-10  Bruno Haible  <bruno@clisp.org>
86376         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
86377         property.
86378         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
86379         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
86380         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
86382 2009-02-10  Simon Josefsson  <simon@josefsson.org>
86384         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
86385         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
86387 2009-02-10  Bruno Haible  <bruno@clisp.org>
86389         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
86390         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
86391         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
86392         * lib/unilbrk/u8-possible-linebreaks.c: Update.
86393         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
86394         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
86396 2009-02-09  Simon Josefsson  <simon@josefsson.org>
86398         * lib/sockets.h (gl_fd_to_handle): New function.
86400         * tests/test-sockets.c: Call gl_fd_to_handle.
86402 2009-02-09  Bruno Haible  <bruno@clisp.org>
86404         * doc/havelib.texi: Document the conventions on bi-arch systems.
86406 2009-02-08  Bruno Haible  <bruno@clisp.org>
86408         Document the AC_LIB_LINKFLAGS macro.
86409         * doc/havelib.texi: New file, mostly written on 2005-05-24.
86410         * doc/gnulib.texi: Include it.
86412 2009-02-08  Bruno Haible  <bruno@clisp.org>
86414         Fix wrong order of sections, compared to TOC.
86415         * doc/gnulib.texi: Include relocatable-maint.texi after the
86416         "Regular expressions" node, not before.
86418 2009-02-08  Bruno Haible  <bruno@clisp.org>
86420         Tests for module 'unicase/totitle'.
86421         * modules/unicase/totitle-tests: New file.
86423         Tests for module 'unicase/tolower'.
86424         * modules/unicase/tolower-tests: New file.
86426         Tests for module 'unicase/toupper'.
86427         * modules/unicase/toupper-tests: New file.
86428         * tests/unicase/test-mapping-part1.h: New file.
86429         * tests/unicase/test-mapping-part2.h: New file.
86431         New module 'unicase/totitle'.
86432         * modules/unicase/totitle: New file.
86433         * lib/unicase/totitle.c: New file.
86435         New module 'unicase/tolower'.
86436         * modules/unicase/tolower: New file.
86437         * lib/unicase/tolower.c: New file.
86439         New module 'unicase/toupper'.
86440         * modules/unicase/toupper: New file.
86441         * lib/unicase/toupper.c: New file.
86442         * lib/unicase/simple-mapping.h: New file.
86444         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
86445         (mapping_table): New structure.
86446         (output_simple_mapping): New function.
86447         (main): Invoke output_simple_mapping_test and output_simple_mapping.
86448         * modules/gen-uni-tables (Description): Update.
86449         * lib/unicase/toupper.h: New file, automatically generated by
86450         gen-uni-tables.
86451         * lib/unicase/tolower.h: New file, automatically generated by
86452         gen-uni-tables.
86453         * lib/unicase/totitle.h: New file, automatically generated by
86454         gen-uni-tables.
86455         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
86456         gen-uni-tables.
86457         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
86458         gen-uni-tables.
86459         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
86460         gen-uni-tables.
86462         New module 'unicase/base'.
86463         * modules/unicase/base: New file.
86464         * lib/unicase.h: New file.
86466 2009-02-08  Bruno Haible  <bruno@clisp.org>
86468         New module 'uniwbrk/ulc-wordbreaks'.
86469         * modules/uniwbrk/ulc-wordbreaks: New file.
86470         * lib/uniwbrk/ulc-wordbreaks.c: New file.
86472         New module 'uniwbrk/u32-wordbreaks'.
86473         * modules/uniwbrk/u32-wordbreaks: New file.
86474         * lib/uniwbrk/u32-wordbreaks.c: New file.
86476         New module 'uniwbrk/u16-wordbreaks'.
86477         * modules/uniwbrk/u16-wordbreaks: New file.
86478         * lib/uniwbrk/u16-wordbreaks.c: New file.
86480         New module 'uniwbrk/u8-wordbreaks'.
86481         * modules/uniwbrk/u8-wordbreaks: New file.
86482         * lib/uniwbrk/u8-wordbreaks.c: New file.
86483         * lib/uniwbrk/u-wordbreaks.h: New file.
86485         New module 'uniwbrk/table'.
86486         * modules/uniwbrk/table: New file.
86487         * lib/uniwbrk/wbrktable.h: New file.
86488         * lib/uniwbrk/wbrktable.c: New file.
86490         New module 'uniwbrk/wordbreak-property'.
86491         * modules/uniwbrk/wordbreak-property: New file.
86492         * lib/uniwbrk/wordbreak-property.c: New file.
86494         * lib/gen-uni-tables.c (WBP_*): New enum items.
86495         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
86496         (unicode_org_wbp): New variable.
86497         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
86498         New functions.
86499         (wbp_table): New structure.
86500         (output_wbp, output_wbrk_tables): New functions.
86501         (main): Accept additional argument. Invoke fill_org_wbp,
86502         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
86503         output_wbrk_tables.
86504         * modules/gen-uni-tables (Description): Update.
86505         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
86506         gen-uni-tables.
86508         New module 'uniwbrk/base'.
86509         * modules/uniwbrk/base: New file.
86510         * lib/uniwbrk.h: New file.
86512 2009-02-08  Bruno Haible  <bruno@clisp.org>
86514         Update to Unicode 5.1.0.
86515         * lib/gen-uni-tables.c (is_property_alphabetic): Include
86516         U+2185..U+2188.
86517         (is_property_default_ignorable_code_point): Don't include characters
86518         of category Cc or Cs and not-a-characters.
86519         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
86520         U+0D79, U+109E, U+109F, U+A60C.
86521         * lib/unictype/bidi_of.h: Regenerated.
86522         * lib/unictype/blocks.h: Regenerated.
86523         * lib/unictype/categ_C.h: Regenerated.
86524         * lib/unictype/categ_Cf.h: Regenerated.
86525         * lib/unictype/categ_Cn.h: Regenerated.
86526         * lib/unictype/categ_L.h: Regenerated.
86527         * lib/unictype/categ_Ll.h: Regenerated.
86528         * lib/unictype/categ_Lm.h: Regenerated.
86529         * lib/unictype/categ_Lo.h: Regenerated.
86530         * lib/unictype/categ_Lu.h: Regenerated.
86531         * lib/unictype/categ_M.h: Regenerated.
86532         * lib/unictype/categ_Mc.h: Regenerated.
86533         * lib/unictype/categ_Me.h: Regenerated.
86534         * lib/unictype/categ_Mn.h: Regenerated.
86535         * lib/unictype/categ_N.h: Regenerated.
86536         * lib/unictype/categ_Nd.h: Regenerated.
86537         * lib/unictype/categ_Nl.h: Regenerated.
86538         * lib/unictype/categ_No.h: Regenerated.
86539         * lib/unictype/categ_P.h: Regenerated.
86540         * lib/unictype/categ_Pd.h: Regenerated.
86541         * lib/unictype/categ_Pe.h: Regenerated.
86542         * lib/unictype/categ_Pf.h: Regenerated.
86543         * lib/unictype/categ_Pi.h: Regenerated.
86544         * lib/unictype/categ_Po.h: Regenerated.
86545         * lib/unictype/categ_Ps.h: Regenerated.
86546         * lib/unictype/categ_S.h: Regenerated.
86547         * lib/unictype/categ_Sk.h: Regenerated.
86548         * lib/unictype/categ_Sm.h: Regenerated.
86549         * lib/unictype/categ_So.h: Regenerated.
86550         * lib/unictype/categ_of.h: Regenerated.
86551         * lib/unictype/combining.h: Regenerated.
86552         * lib/unictype/ctype_alnum.h: Regenerated.
86553         * lib/unictype/ctype_alpha.h: Regenerated.
86554         * lib/unictype/ctype_graph.h: Regenerated.
86555         * lib/unictype/ctype_lower.h: Regenerated.
86556         * lib/unictype/ctype_print.h: Regenerated.
86557         * lib/unictype/ctype_punct.h: Regenerated.
86558         * lib/unictype/ctype_upper.h: Regenerated.
86559         * lib/unictype/decdigit.h: Regenerated.
86560         * lib/unictype/digit.h: Regenerated.
86561         * lib/unictype/mirror.h: Regenerated.
86562         * lib/unictype/numeric.h: Regenerated.
86563         * lib/unictype/pr_alphabetic.h: Regenerated.
86564         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
86565         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
86566         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
86567         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
86568         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
86569         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
86570         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
86571         * lib/unictype/pr_combining.h: Regenerated.
86572         * lib/unictype/pr_dash.h: Regenerated.
86573         * lib/unictype/pr_decimal_digit.h: Regenerated.
86574         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
86575         * lib/unictype/pr_deprecated.h: Regenerated.
86576         * lib/unictype/pr_diacritic.h: Regenerated.
86577         * lib/unictype/pr_extender.h: Regenerated.
86578         * lib/unictype/pr_format_control.h: Regenerated.
86579         * lib/unictype/pr_grapheme_base.h: Regenerated.
86580         * lib/unictype/pr_grapheme_extend.h: Regenerated.
86581         * lib/unictype/pr_grapheme_link.h: Regenerated.
86582         * lib/unictype/pr_id_continue.h: Regenerated.
86583         * lib/unictype/pr_id_start.h: Regenerated.
86584         * lib/unictype/pr_ideographic.h: Regenerated.
86585         * lib/unictype/pr_ignorable_control.h: Regenerated.
86586         * lib/unictype/pr_lowercase.h: Regenerated.
86587         * lib/unictype/pr_math.h: Regenerated.
86588         * lib/unictype/pr_numeric.h: Regenerated.
86589         * lib/unictype/pr_other_alphabetic.h: Regenerated.
86590         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
86591         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
86592         * lib/unictype/pr_other_id_continue.h: Regenerated.
86593         * lib/unictype/pr_other_lowercase.h: Regenerated.
86594         * lib/unictype/pr_other_math.h: Regenerated.
86595         * lib/unictype/pr_punctuation.h: Regenerated.
86596         * lib/unictype/pr_sentence_terminal.h: Regenerated.
86597         * lib/unictype/pr_soft_dotted.h: Regenerated.
86598         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
86599         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
86600         * lib/unictype/pr_unified_ideograph.h: Regenerated.
86601         * lib/unictype/pr_uppercase.h: Regenerated.
86602         * lib/unictype/pr_xid_continue.h: Regenerated.
86603         * lib/unictype/pr_xid_start.h: Regenerated.
86604         * lib/unictype/pr_zero_width.h: Regenerated.
86605         * lib/unictype/scripts.h: Regenerated.
86606         * lib/unictype/scripts_byname.gperf: Regenerated.
86607         * lib/unictype/sy_java_ident.h: Regenerated.
86608         * lib/unilbrk/lbrkprop1.h: Regenerated.
86609         * lib/unilbrk/lbrkprop2.h: Regenerated.
86610         * tests/unictype/test-categ_C.c: Regenerated.
86611         * tests/unictype/test-categ_Cf.c: Regenerated.
86612         * tests/unictype/test-categ_Cn.c: Regenerated.
86613         * tests/unictype/test-categ_L.c: Regenerated.
86614         * tests/unictype/test-categ_Ll.c: Regenerated.
86615         * tests/unictype/test-categ_Lm.c: Regenerated.
86616         * tests/unictype/test-categ_Lo.c: Regenerated.
86617         * tests/unictype/test-categ_Lu.c: Regenerated.
86618         * tests/unictype/test-categ_M.c: Regenerated.
86619         * tests/unictype/test-categ_Mc.c: Regenerated.
86620         * tests/unictype/test-categ_Me.c: Regenerated.
86621         * tests/unictype/test-categ_Mn.c: Regenerated.
86622         * tests/unictype/test-categ_N.c: Regenerated.
86623         * tests/unictype/test-categ_Nd.c: Regenerated.
86624         * tests/unictype/test-categ_Nl.c: Regenerated.
86625         * tests/unictype/test-categ_No.c: Regenerated.
86626         * tests/unictype/test-categ_P.c: Regenerated.
86627         * tests/unictype/test-categ_Pd.c: Regenerated.
86628         * tests/unictype/test-categ_Pe.c: Regenerated.
86629         * tests/unictype/test-categ_Pf.c: Regenerated.
86630         * tests/unictype/test-categ_Pi.c: Regenerated.
86631         * tests/unictype/test-categ_Po.c: Regenerated.
86632         * tests/unictype/test-categ_Ps.c: Regenerated.
86633         * tests/unictype/test-categ_S.c: Regenerated.
86634         * tests/unictype/test-categ_Sk.c: Regenerated.
86635         * tests/unictype/test-categ_Sm.c: Regenerated.
86636         * tests/unictype/test-categ_So.c: Regenerated.
86637         * tests/unictype/test-ctype_alnum.c: Regenerated.
86638         * tests/unictype/test-ctype_alpha.c: Regenerated.
86639         * tests/unictype/test-ctype_graph.c: Regenerated.
86640         * tests/unictype/test-ctype_lower.c: Regenerated.
86641         * tests/unictype/test-ctype_print.c: Regenerated.
86642         * tests/unictype/test-ctype_punct.c: Regenerated.
86643         * tests/unictype/test-ctype_upper.c: Regenerated.
86644         * tests/unictype/test-decdigit.h: Regenerated.
86645         * tests/unictype/test-digit.h: Regenerated.
86646         * tests/unictype/test-numeric.h: Regenerated.
86647         * tests/unictype/test-pr_alphabetic.c: Regenerated.
86648         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
86649         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
86650         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
86651         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
86652         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
86653         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
86654         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
86655         * tests/unictype/test-pr_combining.c: Regenerated.
86656         * tests/unictype/test-pr_dash.c: Regenerated.
86657         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
86658         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
86659         * tests/unictype/test-pr_deprecated.c: Regenerated.
86660         * tests/unictype/test-pr_diacritic.c: Regenerated.
86661         * tests/unictype/test-pr_extender.c: Regenerated.
86662         * tests/unictype/test-pr_format_control.c: Regenerated.
86663         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
86664         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
86665         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
86666         * tests/unictype/test-pr_id_continue.c: Regenerated.
86667         * tests/unictype/test-pr_id_start.c: Regenerated.
86668         * tests/unictype/test-pr_ideographic.c: Regenerated.
86669         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
86670         * tests/unictype/test-pr_lowercase.c: Regenerated.
86671         * tests/unictype/test-pr_math.c: Regenerated.
86672         * tests/unictype/test-pr_numeric.c: Regenerated.
86673         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
86674         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
86675         Regenerated.
86676         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
86677         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
86678         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
86679         * tests/unictype/test-pr_other_math.c: Regenerated.
86680         * tests/unictype/test-pr_punctuation.c: Regenerated.
86681         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
86682         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
86683         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
86684         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
86685         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
86686         * tests/unictype/test-pr_uppercase.c: Regenerated.
86687         * tests/unictype/test-pr_xid_continue.c: Regenerated.
86688         * tests/unictype/test-pr_xid_start.c: Regenerated.
86689         * tests/unictype/test-pr_zero_width.c: Regenerated.
86691         Update to Unicode 5.1.0.
86692         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
86693         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
86694         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
86695         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
86696         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
86697         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
86698         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
86699         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
86700         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
86701         (nonspacing_table_ind): Update.
86702         * tests/uniwidth/test-uc_width2.sh: Update expected result.
86704         Update to Unicode 5.1.0.
86705         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
86706         code transform.
86707         * lib/uniname/uniname.c (unicode_character_name,
86708         unicode_name_character): Add the range 0x1Fxxx to the code transform.
86709         * lib/uniname/uninames.h: Regenerated.
86710         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
86712 2009-02-07  Bruno Haible  <bruno@clisp.org>
86714         Merge gen-ctype and gen-lbrk into a single program.
86715         * lib/gen-uni-tables.c: New file, incorporating
86716         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
86717         Add directory prefixes to the names of the generated files.
86718         * lib/unictype/gen-ctype.c: Remove file.
86719         * lib/unilbrk/gen-lbrk.c: Remove file.
86720         * modules/gen-uni-tables: New file.
86721         * modules/unictype/gen-ctype: Remove file.
86722         * modules/unilbrk/gen-lbrk: Remove file.
86724 2009-02-07  Bruno Haible  <bruno@clisp.org>
86726         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
86728         New module 'unistr/u32-strcoll'.
86729         * modules/unistr/u32-strcoll: New file.
86730         * lib/unistr/u32-strcoll.c: New file.
86732         New module 'unistr/u16-strcoll'.
86733         * modules/unistr/u16-strcoll: New file.
86734         * lib/unistr/u16-strcoll.c: New file.
86736         New module 'unistr/u8-strcoll'.
86737         * modules/unistr/u8-strcoll: New file.
86738         * lib/unistr/u8-strcoll.c: New file.
86739         * lib/unistr/u-strcoll.h: New file.
86741 2009-02-07  Bruno Haible  <bruno@clisp.org>
86743         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
86744         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86745         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
86746         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
86747         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
86748         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
86750 2009-02-07  Bruno Haible  <bruno@clisp.org>
86752         Make 64-bit clean.
86753         * lib/unictype/gen-ctype.c (output_predicate, output_category,
86754         output_combclass, output_bidi_category, output_decimal_digit,
86755         output_digit, output_numeric, output_mirror, output_scripts,
86756         output_ident_category): Use proper width specifier in format strings.
86758 2009-02-07  Bruno Haible  <bruno@clisp.org>
86760         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
86761         failure behaviour.
86763 2009-02-07  Jim Meyering  <meyering@redhat.com>
86765         regex: avoid compilation failure with upcoming gcc-4.4
86766         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
86767         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
86768         "... error: integer overflow in preprocessor expression".
86770 2009-02-05  Ben Pfaff  <blp@gnu.org>
86772         Fix link errors on Windows when close module is used.
86773         * modules/close: Add $(LIB_CLOSE) to Link section.
86774         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
86775         $(LIB_CLOSE) on Windows.
86777 2009-02-05  Jim Meyering  <meyering@redhat.com>
86779         still avoid unused-parameter warnings, but do it cleanly
86780         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
86781         (get_fs_usage): Cast to void instead.
86782         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
86783         (dev_from_mount_options, read_file_system_list): Cast to void.
86784         Prompted by Bruno Haible.
86786 2009-02-04  Jim Meyering  <meyering@redhat.com>
86788         fsusage.c: correct copyright year
86789         * lib/fsusage.c: Reflect year in which the change is pushed into
86791         avoid misc. warnings
86792         * lib/fsusage.c (UNUSED_PARAM): Define.
86793         (get_fs_usage): Mark parameter "disk" as unused.
86794         * lib/getugroups.c (getgrent): Use "void" in prototype.
86795         * lib/mountlist.c: Mark unused parameters.
86796         (read_file_system_list): Declare a local with "const".
86797         * lib/nanosleep.c (getnow): Declare static.
86798         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
86800         dirfd: set errno upon failure
86801         * lib/dirfd.c: Include <errno.h>.
86802         Set errno to ENOTSUP when returning -1.
86803         * modules/dirfd (Depends-on): Add errno.
86804         Suggested by John Kodis <kodis@comcast.net>.
86806 2009-02-01  Bruno Haible  <bruno@clisp.org>
86808         Don't assume sizeof (long) >= sizeof (void *).
86809         * lib/memcmp.c: Include stdint.h.
86810         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
86811         srcp2 to 'const byte *'.
86812         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
86813         types to uintptr_t.
86814         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
86815         * modules/memcmp (Depends-on): Add stdint.
86816         Reported by Ozkan Sezer <sezeroz@gmail.com>.
86818 2009-01-30  Eric Blake  <ebb9@byu.net>
86820         fix more require-before-expand issues
86821         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
86822         expand, AC_PROG_AWK.
86823         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
86825 2009-01-28  Eric Blake  <ebb9@byu.net>
86827         version-etc: use consistent URL formatting
86828         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
86829         Improve formatting.  Use fputs for string without %.
86831 2009-01-28  Jim Meyering  <meyering@redhat.com>
86833         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
86834         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
86835         "underquoted definition of NAME" from autoconf-2.59.
86837 2009-01-28  Bruno Haible  <bruno@clisp.org>
86839         * doc/gnulib.texi: Add "Obsolete modules" to index.
86841 2009-01-28  Jim Meyering  <meyering@redhat.com>
86843         useless-if-before-free: recognize more variants
86844         * build-aux/useless-if-before-free: Also recognize e.g.,
86845         if (NULL != p) free (p);
86847 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
86849         test-getaddrinfo: skip (don't fail) this test when there's no network
86850         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
86851         on the presumption that it means you lack network access.
86853 2009-01-26  Jim Meyering  <meyering@redhat.com>
86855         fflush: avoid warnings on modern systems
86856         * lib/fflush.c (rpl_fflush): Move declarations of locals,
86857         pos and result, into scopes where they're used.
86859 2009-01-26  Eric Blake  <ebb9@byu.net>
86861         Silence warning reintroduced by recent extensions patch.
86862         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
86863         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
86864         autoconf.
86866         Backport improved autoconf semantics of AC_DEFUN_ONCE.
86867         * m4/00gnulib.m4: New file.
86868         * gnulib-tool (func_get_filelist): Always use it.
86869         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
86870         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
86872 2009-01-25  Bruno Haible  <bruno@clisp.org>
86874         Make test-quotearg work on MacOS X and AIX.
86875         * tests/test-quotearg.sh: New file.
86876         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
86877         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
86878         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
86879         include <libintl.h>.
86880         (fake_locale): Remove variable.
86881         (gettext, dgettext, dcgettext): Remove functions.
86882         (main): Instead of setting a fake locale, set a real locale. Call
86883         textdomain and bindtextdomain.
86884         * modules/quotearg-tests (Files): Add the new files.
86885         (Depends-on): Add gettext, setenv, unsetenv.
86886         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
86887         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
86888         Augment TESTS_ENVIRONMENT.
86890 2009-01-25  Bruno Haible  <bruno@clisp.org>
86892         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
86893         fr_FR.ISO8859-1 locale on MacOS X.
86894         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
86895         ja_JP.eucJP locale on MacOS X.
86896         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
86897         zh_CN.GB18030 locale on MacOS X.
86899 2009-01-25  Bruno Haible  <bruno@clisp.org>
86901         Avoid link errors on MacOS X 10.3.
86902         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
86903         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
86905 2009-01-25  Bruno Haible  <bruno@clisp.org>
86907         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86908         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
86909         * modules/pipe (Files): Remove m4/posix_spawn.m4.
86910         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86911         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
86912         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86913         posix_spawnattr_init, posix_spawnattr_setsigmask,
86914         posix_spawnattr_setflags, posix_spawnattr_destroy.
86916         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
86917         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
86918         * modules/execute (Files): Remove m4/posix_spawn.m4.
86919         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
86920         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
86921         posix_spawnattr_init, posix_spawnattr_setsigmask,
86922         posix_spawnattr_setflags, posix_spawnattr_destroy.
86924 2009-01-25  Bruno Haible  <bruno@clisp.org>
86926         * lib/glthread/threadlib.c: Include <stdlib.h>.
86928 2009-01-25  Bruno Haible  <bruno@clisp.org>
86930         * lib/glthread/threadlib.c (dummy): New declaration.
86932 2009-01-25  Bruno Haible  <bruno@clisp.org>
86934         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
86935         multibyte characters also for the GB18030 encoding. Don't crash when
86936         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
86938 2009-01-25  Bruno Haible  <bruno@clisp.org>
86940         Avoid redefining 'struct random_data' on OSF/1 5.1.
86941         * lib/stdlib.in.h: Include <random.h> if it exists.
86942         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
86943         HAVE_RANDOM_H. Include <random.h> when testing whether
86944         'struct random_data' exists.
86945         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
86947 2009-01-25  Bruno Haible  <bruno@clisp.org>
86949         Don't install charset.alias on MacOS X >= 10.3.
86950         * lib/localcharset.c (DARWIN7): New macro.
86951         (get_charset_aliases): Hardcode the result for Darwin7.
86952         * modules/localcharset (install-exec-local): Don't install
86953         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
86955 2009-01-25  Bruno Haible  <bruno@clisp.org>
86957         Don't install charset.alias on mingw and Cygwin.
86958         * modules/localcharset (install-exec-local): Don't install
86959         charset.alias on mingw and Cygwin, if the file does not yet exist.
86960         The result for these platforms is hardcoded in localcharset.c.
86962 2009-01-25  Bruno Haible  <bruno@clisp.org>
86964         Make it possible again to use AC_GNU_SOURCE together with gnulib.
86965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
86966         before requiring AC_USE_SYSTEM_EXTENSIONS.
86968 2009-01-25  Jim Meyering  <meyering@redhat.com>
86970         c-strtod: avoid warnings
86971         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
86972         "assignment discards qualifiers from pointer target type" warnings.
86974 2009-01-24  Bruno Haible  <bruno@clisp.org>
86976         Add support for non-UTF-8 locales on MacOS X.
86977         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
86978         canonical encodings. For Darwin 7 and newer, don't map traditional
86979         encodings to UTF-8.
86980         Reported by Vincent Lefevre <vincent@vinc17.org>
86981         at <http://savannah.gnu.org/bugs/?25235>.
86983 2009-01-24  Bruno Haible  <bruno@clisp.org>
86985         * doc/gnulib.texi (Obsolete modules): New section.
86986         Reported by Mike Frysinger <vapier@gentoo.org>.
86988 2009-01-24  Bruno Haible  <bruno@clisp.org>
86990         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
86991         (%.dvi): New rule.
86993 2009-01-24  Bruno Haible  <bruno@clisp.org>
86995         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
86996         Reported by Eric Blake.
86998 2009-01-24  Bruno Haible  <bruno@clisp.org>
87000         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
87001         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
87002         Reported by Gary V. Vaughan <gary@gnu.org>.
87004 2009-01-24  Bruno Haible  <bruno@clisp.org>
87006         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
87008 2009-01-23  Bruno Haible  <bruno@clisp.org>
87010         Make c-strtod, c-strtold usable in libraries.
87011         * lib/c-strtod.c: Include string.h instead of xalloc.h.
87012         (C_STRTOD): Call strdup instead of xstrdup.
87013         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
87014         * modules/c-strtold (Depends-on): Likewise.
87015         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
87016         * NEWS: Mention the change.
87017         Reported by Michael Gold <mgold@ncf.ca>.
87019 2009-01-23  Jim Meyering  <meyering@redhat.com>
87021         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
87022         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
87023         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
87025 2009-01-23  Simon Josefsson  <simon@josefsson.org>
87027         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
87028         GNU CoreUtils.
87029         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
87030         * modules/version-etc (Description): Update.
87032 2009-01-22  Bruno Haible  <bruno@clisp.org>
87034         Cache the C locale object.
87035         * lib/c-strtod.c (c_locale_cache): New variable.
87036         (c_locale): New function.
87037         (C_STRTOD): Use it, and don't call freelocale.
87038         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
87039         Suggested by Paolo Bonzini.
87041 2009-01-21  Bruno Haible  <bruno@clisp.org>
87043         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
87044         conditions other than overflow.
87046 2009-01-21  Bruno Haible  <bruno@clisp.org>
87048         * lib/c-strtod.c: Include errno.h.
87049         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
87050         value from STRTOD_L and STRTOD.
87052 2009-01-21  Bruno Haible  <bruno@clisp.org>
87053         and Jim Meyering  <meyering@redhat.com>
87055         nanosleep: skip configure test (fail it) for apple universal builds
87056         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
87057         universal builds, assume that nanosleep does not work.
87058         * modules/nanosleep (Depends-on): Add multiarch.
87060         mktime: skip configure test (fail it) for apple universal builds
87061         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
87062         universal builds, assume that mktime does not work.
87063         * modules/mktime (Depends-on): Add multiarch.
87065 2009-01-21  Eric Blake  <ebb9@byu.net>
87067         multiarch: avoid expand-before-require warning
87068         * modules/multiarch (configure.ac): Require, rather than expand,
87069         gl_MULTIARCH.
87070         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
87071         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
87072         enforce that all clients require it.  Partial reversion of
87073         2008-12-29 patch.
87075         error: avoid expand-before-require warning
87076         * modules/errno (configure.ac): Require, rather than expand,
87077         gl_HEADER_ERRNO_H.
87078         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
87079         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
87080         enforce that all clients require it.
87082         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
87083         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
87084         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
87085         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
87087 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
87089         Revert:
87090         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87092         regex: do not depend on obsolete modules.
87093         * modules/regex: Remove memcmp and memmove.
87095 2009-01-20  Bruno Haible  <bruno@clisp.org>
87097         Make the 'link' module link on Windows NT 4.
87098         * lib/link.c (_WIN32_WINNT): Don't define.
87099         (CreateHardLinkFuncType): New type.
87100         (CreateHardLinkFunc, initialized): New variables.
87101         (initialize): New function.
87102         (link): Invoke CreateHardLink indirectly through the function pointer.
87104 2009-01-20  Bruno Haible  <bruno@clisp.org>
87106         Fix compilation failure on mingw.
87107         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
87109 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
87111         * doc/c-strtod.texi: Mention a couple of restrictions.
87113 2009-01-20  Jim Meyering  <meyering@redhat.com>
87115         gettimeofday: move more declarations out of functions
87116         * lib/gettimeofday.c: Move extern declarations of tzset and
87117         gmtime out of containing functions.  Prompted by Bruno Haible.
87119 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
87121         regex: do not depend on obsolete modules.
87122         * modules/regex: Remove memcmp and memmove.
87124 2009-01-19  Bruno Haible  <bruno@clisp.org>
87126         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87127         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
87128         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87129         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
87130         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
87132 2009-01-19  Bruno Haible  <bruno@clisp.org>
87134         * tests/test-link.c: Include <errno.h>.
87135         (main): Exit with code 77 when a hard link cannot be created due to
87136         the file system.
87137         * tests/test-link.sh: Skip test when a hard link cannot be created due
87138         to the file system.
87139         Suggested by Eric Blake.
87141 2009-01-19  Martin Lambers  <marlam@marlam.de>
87143         * modules/link-tests: New file.
87144         * tests/test-link.sh: New file.
87145         * tests/test-link.c: New file.
87147 2009-01-19  Eric Blake  <ebb9@byu.net>
87149         doc: mention another function added in cygwin 1.7.0
87150         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
87151         Another new function in cygwin 1.7.
87153 2009-01-19  Bruno Haible  <bruno@clisp.org>
87155         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
87156         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
87157         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
87158         gl_BIGENDIAN, not AC_C_BIGENDIAN.
87159         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
87160         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
87161         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
87162         * m4/md4.m4 (gl_MD4): Likewise.
87163         * m4/md5.m4 (gl_MD5): Likewise.
87164         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
87165         * m4/sha1.m4 (gl_SHA1): Likewise.
87166         * m4/sha256.m4 (gl_SHA256): Likewise.
87167         * m4/sha512.m4 (gl_SHA512): Likewise.
87169 2009-01-19  Bruno Haible  <bruno@clisp.org>
87171         * modules/uniname/uniname-tests (Depends-on): Add progname.
87172         * tests/uniname/test-uninames.c: Include progname.h.
87173         (main): Call set_program_name.
87175         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
87176         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
87177         (main): Call set_program_name.
87179         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
87180         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
87181         (main): Call set_program_name.
87183         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
87184         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
87185         (main): Call set_program_name.
87187         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
87188         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
87189         (main): Call set_program_name.
87191         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
87192         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
87193         (main): Call set_program_name.
87195         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
87196         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
87197         (main): Call set_program_name.
87199         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
87200         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
87201         (main): Call set_program_name.
87203         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
87204         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
87205         (main): Call set_program_name.
87207 2009-01-19  Eric Blake  <ebb9@byu.net>
87209         test-unistd: test previous patch
87210         * tests/test-unistd.c: Test *_FILENO macros.
87212         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
87213         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87214         Guarantee a definition.
87215         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
87216         * modules/unistd-safer (Depends-on): Add dependency on unistd.
87217         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
87218         * lib/dup-safer.c (STDERR_FILENO): Likewise.
87219         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87220         Likewise.
87221         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
87222         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
87223         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
87224         Likewise.
87225         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
87226         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
87227         (STDERR_FILENO): Likewise.
87228         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
87229         (STDERR_FILENO): Likewise.
87230         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
87231         (STDERR_FILENO): Likewise.
87232         Reported by Elbert Pol.
87234 2009-01-19  Eric Blake  <ebb9@byu.net>
87236         doc: mention more functions added in cygwin 1.7.0
87237         * doc/posix-functions/abort.texi (abort): Update wording related
87238         to cygwin.
87239         * doc/posix-functions/daylight.texi (daylight): Likewise.
87240         * doc/posix-functions/optarg.texi (optarg): Likewise.
87241         * doc/posix-functions/optarg.texi (opterr): Likewise.
87242         * doc/posix-functions/optarg.texi (optind): Likewise.
87243         * doc/posix-functions/optarg.texi (optopt): Likewise.
87244         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
87245         worked in 1.5.x, and was withdrawn in 1.7.
87246         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
87247         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
87248         cygwin versions.
87249         * doc/posix-functions/perror.texi (perror): Likewise.
87250         * doc/posix-functions/printf.texi (printf): Likewise.
87251         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
87252         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
87253         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
87254         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
87255         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
87256         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
87257         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
87258         Likewise.
87259         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
87260         Likewise.
87261         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
87262         this function.
87263         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
87264         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
87265         Likewise.
87266         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
87267         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
87268         * doc/posix-functions/confstr.texi (confstr): Likewise.
87269         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
87270         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
87271         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
87272         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
87273         * doc/posix-functions/fputws.texi (fputws): Likewise.
87274         * doc/posix-functions/fwide.texi (fwide): Likewise.
87275         * doc/posix-functions/getwc.texi (getwc): Likewise.
87276         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
87277         * doc/posix-functions/putwc.texi (putwc): Likewise.
87278         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
87279         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
87280         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
87281         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
87282         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
87283         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
87284         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
87285         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
87286         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
87287         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
87288         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
87290 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87292         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
87293         * lib/ioctl.c: Include <sys/ioctl.h>.
87295 2009-01-19  Simon Josefsson  <simon@josefsson.org>
87297         * modules/getdate-tests (Depends-on): Add progname.
87298         * tests/test-getdate.c: Use progname module, to avoid link errors
87299         on non-glibc systems.
87301 2009-01-18  Simon Josefsson  <simon@josefsson.org>
87303         * modules/filenamecat-tests (Depends-on): Add progname.
87304         * modules/fstrcmp-tests (Depends-on): Likewise.
87306         * tests/test-filenamecat.c: Use progname module, to avoid link
87307         errors on non-glibc systems.
87308         * tests/test-fstrcmp.c: Likewise.
87310 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
87312         gettimeofday: avoid warning: nested extern declaration of 'localtime'
87313         * lib/gettimeofday.c: Move extern declaration out of function.
87315 2009-01-18  Bruno Haible  <bruno@clisp.org>
87317         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
87318         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
87319         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
87321 2009-01-18  Bruno Haible  <bruno@clisp.org>
87323         * lib/strftime.c (MEMPCPY): Remove unused macro.
87324         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
87326 2009-01-18  Martin Lambers  <marlam@marlam.de>
87328         New module 'link'.
87329         * lib/unistd.in.h (link): New declaration.
87330         * lib/link.c: New file.
87331         * m4/link.m4: New file.
87332         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
87333         HAVE_LINK.
87334         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
87335         * modules/link: New file.
87336         * doc/posix-functions/link.texi: Mention the new module.
87338 2009-01-18  Bruno Haible  <bruno@clisp.org>
87340         * tests/test-avltree_list.c (main): Call set_program_name.
87341         * tests/test-avltree_oset.c (main): Likewise.
87342         * tests/test-obstack-printf.c: Include progname.h.
87343         (main): Call set_program_name.
87344         * tests/test-quotearg.c: Include progname.h.
87345         (main): Call set_program_name.
87346         * tests/test-xmemdup0.c: Include progname.h.
87347         (main): Call set_program_name.
87349 2009-01-18  Bruno Haible  <bruno@clisp.org>
87351         New module 'alphasort'.
87352         * lib/dirent.in.h (alphasort): New declaration.
87353         * lib/alphasort.c: New file, from glibc with modifications.
87354         * m4/alphasort.m4: New file.
87355         * modules/alphasort: New file.
87356         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
87357         HAVE_ALPHASORT.
87358         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
87359         HAVE_ALPHASORT.
87360         * doc/posix-functions/alphasort.texi: Mention the new module and the
87361         portability problems.
87363 2009-01-18  Bruno Haible  <bruno@clisp.org>
87365         New module 'scandir'.
87366         * lib/dirent.in.h (scandir): New declaration.
87367         * lib/scandir.c: New file, from glibc with modifications.
87368         * m4/scandir.m4: New file.
87369         * modules/scandir: New file.
87370         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
87371         HAVE_SCANDIR.
87372         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
87373         HAVE_SCANDIR.
87374         * doc/posix-functions/scandir.texi: Mention the new module and the
87375         portability problems.
87377 2009-01-17  Bruno Haible  <bruno@clisp.org>
87379         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
87380         Update documentation.
87381         (func_remove_suffix): Escape all dots in the suffix. Update
87382         documentation.
87383         (func_filter_filelist): Update documentation.
87384         Reported by Ralf Wildenhues.
87386 2009-01-17  Bruno Haible  <bruno@clisp.org>
87388         * modules/dprintf-posix-tests: New file.
87389         * tests/test-dprintf-posix.sh: New file.
87390         * tests/test-dprintf-posix.c: New file.
87392         New modules 'dprintf', 'dprintf-posix'.
87393         * lib/stdio.in.h (dprintf): New declaration.
87394         * lib/dprintf.c: New file.
87395         * m4/dprintf.m4: New file.
87396         * m4/dprintf-posix.m4: New file.
87397         * modules/dprintf: New file.
87398         * modules/dprintf-posix: New file.
87399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
87400         HAVE_DPRINTF, REPLACE_DPRINTF.
87401         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
87402         HAVE_DPRINTF, REPLACE_DPRINTF.
87403         * doc/posix-functions/dprintf.texi: Mention the new modules.
87405 2009-01-17  Bruno Haible  <bruno@clisp.org>
87407         * modules/vdprintf-posix-tests: New file.
87408         * tests/test-vdprintf-posix.sh: New file.
87409         * tests/test-vdprintf-posix.c: New file.
87411         New modules 'vdprintf', 'vdprintf-posix'.
87412         * lib/stdio.in.h (vdprintf): New declaration.
87413         * lib/vdprintf.c: New file.
87414         * m4/vdprintf.m4: New file.
87415         * m4/vdprintf-posix.m4: New file.
87416         * modules/vdprintf: New file.
87417         * modules/vdprintf-posix: New file.
87418         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
87419         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87420         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
87421         HAVE_VDPRINTF, REPLACE_VDPRINTF.
87422         * doc/posix-functions/vdprintf.texi: Mention the new modules.
87424 2009-01-17  Bruno Haible  <bruno@clisp.org>
87426         Fix replacement of fopen on mingw.
87427         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
87428         mingw.
87430 2009-01-17  Bruno Haible  <bruno@clisp.org>
87432         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
87433         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
87435 2009-01-17  Bruno Haible  <bruno@clisp.org>
87437         Avoid test-fflush2.sh failure on mingw.
87438         * tests/test-fflush2.c: Include binary-io.h.
87439         (main): Put standard input into binary mode.
87440         * modules/fflush-tests (Depends-on): Add binary-io.
87442 2009-01-17  Bruno Haible  <bruno@clisp.org>
87444         * lib/wchar.in.h: In another particular situation, include only the
87445         system's <wchar.h> file.
87446         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
87447         Reported by Albert Chin-A-Young <china@thewrittenword.com>
87448         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
87450 2009-01-17  Bruno Haible  <bruno@clisp.org>
87452         Support for stripping executables in --enable-relocatable.
87453         * build-aux/install-reloc: Expect one more argument, or an environment
87454         variable RELOC_STRIP_PROG. If set, strip the destination program and
87455         its wrapper.
87456         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
87457         RELOC_STRIP_PROG.
87458         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
87459         to set RELOCATABLE_STRIP.
87460         * NEWS: Mention the new Makefile requirement.
87462 2009-01-17  Bruno Haible  <bruno@clisp.org>
87464         * build-aux/install-reloc: Remove debugging information left over by
87465         C compiler on MacOS X.
87467 2009-01-17  Bruno Haible  <bruno@clisp.org>
87469         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
87470         * lib/progreloc.c (find_executable): Fix type of pointer passed to
87471         _NSGetExecutablePath.
87473 2009-01-16  Jim Meyering  <meyering@redhat.com>
87475         strerror: avoid warnings about discarding "const"
87476         * lib/strerror.c (rpl_strerror): Instead of returning a const
87477         string from each and every "case", use a variable, and add a single
87478         cast after the switch.
87480 2009-01-16  Albert Chin-A-Young  <china@thewrittenword.com>
87482         * lib/arpa_inet.in.h: Add extern "C" block for C++.
87484 2009-01-16  Bruno Haible  <bruno@clisp.org>
87486         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
87487         array initializer syntax that also works in C++ mode.
87488         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87490 2009-01-16  Jim Meyering  <meyering@redhat.com>
87492         poll: suppress a warning
87493         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
87494         to ignore "...unsigned expression < 0 is always false" warnings.
87496 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
87498         poll: remove declarations of unused variables
87499         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
87500         sockbuf and optlen.
87502 2009-01-15  Bruno Haible  <bruno@clisp.org>
87504         Make fflush-after-ungetc POSIX compliant on BSD systems.
87505         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
87506         (clear_ungetc_buffer): Implement also for other systems.
87507         (rpl_fflush): On glibc systems, invoke
87508         clear_ungetc_buffer_preserving_position. Otherwise, invoke
87509         clear_ungetc_buffer after fetching the stream's position, not before.
87511 2009-01-15  Bruno Haible  <bruno@clisp.org>
87513         Make fflush-after-ungetc POSIX compliant on glibc systems.
87514         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
87515         after ungetc.
87516         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
87517         (rpl_fflush): On glibc systems, simply call the system's fflush
87518         function after clearing the ungetc buffer.
87519         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
87520         Instead, lseek only to the end of file, then use the system's fseeko
87521         for the rest. On glibc systems, reset the EOF indicator bit.
87523 2009-01-15  Jim Meyering  <meyering@redhat.com>
87525         openmp.m4: revert quote-adding change, for portability to older autoconf
87526         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
87527         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
87528         Simon Josefsson noticed the problem when using autoconf-2.61.
87530 2009-01-15  Bruno Haible  <bruno@clisp.org>
87532         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
87533         * tests/test-fflush2.c (ASSERT): Always fail.
87534         (main): Add two tests for fflush() after ungetc(), taking into account
87535         the Austin Group's clarification.
87536         Suggested by Eric Blake.
87538 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
87540         mktime.m4: remove K&R-style function prototypes
87541         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
87542         for the Sun C++ compiler.
87544 2009-01-14  Bruno Haible  <bruno@clisp.org>
87546         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
87547         while including <wchar.h>.
87548         * lib/wchar.in.h: In two particular situations on HP-UX, include only
87549         the system's <wchar.h> file.
87550         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
87552 2009-01-14  Bruno Haible  <bruno@clisp.org>
87554         * m4/csharp.m4: Don't mention gettext on the serial number line.
87555         * m4/csharpexec.m4: Likewise.
87556         * m4/eaccess.m4: Likewise.
87557         * m4/javaexec.m4: Likewise.
87558         * m4/sig_atomic_t.m4: Likewise.
87559         * m4/tmpdir.m4: Likewise.
87560         * m4/intldir.m4: Bump gettext version.
87561         * m4/lib-ld.m4: Likewise.
87563 2009-01-14  Bruno Haible  <bruno@clisp.org>
87565         * lib/progname.c (set_program_name): Add more comments.
87566         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
87568 2009-01-14  Simon Josefsson  <simon@josefsson.org>
87570         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
87571         were sys/stat.h does not define it.
87573 2009-01-14  Jim Meyering  <meyering@redhat.com>
87575         many *.m4 files: improve m4 quoting
87576         99% of this change was performed by running the following commands:
87577         git ls-files | grep '\.m4$' | xargs perl -pi \
87578           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
87579           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87580           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
87581           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
87582         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
87583         The remainder were to add Copyright dates, increment serial numbers,
87584         undo some changes in comments, exclude m4/intl.m4, and add quotes
87585         around the "1" in ",1" where the unusual spacing prohibited the
87586         above regexps from doing the job.  For more details, see
87587         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
87588         * m4/acl.m4: Modified.
87589         * m4/afs.m4: Likewise.
87590         * m4/alloca.m4: Likewise.
87591         * m4/argp.m4: Likewise.
87592         * m4/argz.m4: Likewise.
87593         * m4/atexit.m4: Likewise.
87594         * m4/bison-i18n.m4: Likewise.
87595         * m4/bison.m4: Likewise.
87596         * m4/byteswap.m4: Likewise.
87597         * m4/c-stack.m4: Likewise.
87598         * m4/c-strtod.m4: Likewise.
87599         * m4/calloc.m4: Likewise.
87600         * m4/canonicalize-lgpl.m4: Likewise.
87601         * m4/chown.m4: Likewise.
87602         * m4/clock_time.m4: Likewise.
87603         * m4/codeset.m4: Likewise.
87604         * m4/copy-file.m4: Likewise.
87605         * m4/csharp.m4: Likewise.
87606         * m4/csharpcomp.m4: Likewise.
87607         * m4/csharpexec.m4: Likewise.
87608         * m4/d-ino.m4: Likewise.
87609         * m4/d-type.m4: Likewise.
87610         * m4/dirfd.m4: Likewise.
87611         * m4/double-slash-root.m4: Likewise.
87612         * m4/eaccess.m4: Likewise.
87613         * m4/eealloc.m4: Likewise.
87614         * m4/environ.m4: Likewise.
87615         * m4/errno_h.m4: Likewise.
87616         * m4/euidaccess.m4: Likewise.
87617         * m4/execute.m4: Likewise.
87618         * m4/fatal-signal.m4: Likewise.
87619         * m4/fchdir.m4: Likewise.
87620         * m4/fcntl_h.m4: Likewise.
87621         * m4/fileblocks.m4: Likewise.
87622         * m4/filenamecat.m4: Likewise.
87623         * m4/findprog.m4: Likewise.
87624         * m4/flexmember.m4: Likewise.
87625         * m4/fnmatch.m4: Likewise.
87626         * m4/fopen.m4: Likewise.
87627         * m4/fpending.m4: Likewise.
87628         * m4/fprintf-posix.m4: Likewise.
87629         * m4/free.m4: Likewise.
87630         * m4/frexp.m4: Likewise.
87631         * m4/frexpl.m4: Likewise.
87632         * m4/fsusage.m4: Likewise.
87633         * m4/ftruncate.m4: Likewise.
87634         * m4/gc-camellia.m4: Likewise.
87635         * m4/gc-random.m4: Likewise.
87636         * m4/gc.m4: Likewise.
87637         * m4/getaddrinfo.m4: Likewise.
87638         * m4/getcwd-abort-bug.m4: Likewise.
87639         * m4/getcwd-path-max.m4: Likewise.
87640         * m4/getdate.m4: Likewise.
87641         * m4/getdomainname.m4: Likewise.
87642         * m4/getgroups.m4: Likewise.
87643         * m4/gethostname.m4: Likewise.
87644         * m4/gethrxtime.m4: Likewise.
87645         * m4/getline.m4: Likewise.
87646         * m4/getloadavg.m4: Likewise.
87647         * m4/getndelim2.m4: Likewise.
87648         * m4/getpass.m4: Likewise.
87649         * m4/gettext.m4: Likewise.
87650         * m4/gettime.m4: Likewise.
87651         * m4/gettimeofday.m4: Likewise.
87652         * m4/gnulib-common.m4: Likewise.
87653         * m4/group-member.m4: Likewise.
87654         * m4/host-os.m4: Likewise.
87655         * m4/iconv.m4: Likewise.
87656         * m4/iconv_open.m4: Likewise.
87657         * m4/inet_ntop.m4: Likewise.
87658         * m4/inet_pton.m4: Likewise.
87659         * m4/inline.m4: Likewise.
87660         * m4/intldir.m4: Likewise.
87661         * m4/intlmacosx.m4: Likewise.
87662         * m4/intmax.m4: Likewise.
87663         * m4/intmax_t.m4: Likewise.
87664         * m4/inttypes.m4: Likewise.
87665         * m4/inttypes_h.m4: Likewise.
87666         * m4/inttypes-pri.m4: Likewise.
87667         * m4/isapipe.m4: Likewise.
87668         * m4/isnand.m4: Likewise.
87669         * m4/isnanf.m4: Likewise.
87670         * m4/isnanl.m4: Likewise.
87671         * m4/javacomp.m4: Likewise.
87672         * m4/javaexec.m4: Likewise.
87673         * m4/jm-winsz1.m4: Likewise.
87674         * m4/jm-winsz2.m4: Likewise.
87675         * m4/lchown.m4: Likewise.
87676         * m4/lcmessage.m4: Likewise.
87677         * m4/ldexpl.m4: Likewise.
87678         * m4/lib-ld.m4: Likewise.
87679         * m4/lib-link.m4: Likewise.
87680         * m4/libsigsegv.m4: Likewise.
87681         * m4/link-follow.m4: Likewise.
87682         * m4/localcharset.m4: Likewise.
87683         * m4/locale-fr.m4: Likewise.
87684         * m4/locale-ja.m4: Likewise.
87685         * m4/locale-tr.m4: Likewise.
87686         * m4/locale-zh.m4: Likewise.
87687         * m4/lock.m4: Likewise.
87688         * m4/longlong.m4: Likewise.
87689         * m4/ls-mntd-fs.m4: Likewise.
87690         * m4/lstat.m4: Likewise.
87691         * m4/malloc.m4: Likewise.
87692         * m4/mathl.m4: Likewise.
87693         * m4/mbrtowc.m4: Likewise.
87694         * m4/mbstate_t.m4: Likewise.
87695         * m4/mbswidth.m4: Likewise.
87696         * m4/memchr.m4: Likewise.
87697         * m4/memcmp.m4: Likewise.
87698         * m4/memcpy.m4: Likewise.
87699         * m4/memmem.m4: Likewise.
87700         * m4/memmove.m4: Likewise.
87701         * m4/mempcpy.m4: Likewise.
87702         * m4/memrchr.m4: Likewise.
87703         * m4/memset.m4: Likewise.
87704         * m4/minmax.m4: Likewise.
87705         * m4/mkdir-slash.m4: Likewise.
87706         * m4/mkdtemp.m4: Likewise.
87707         * m4/mktime.m4: Likewise.
87708         * m4/mmap-anon.m4: Likewise.
87709         * m4/mountlist.m4: Likewise.
87710         * m4/nanosleep.m4: Likewise.
87711         * m4/nls.m4: Likewise.
87712         * m4/nocrash.m4: Likewise.
87713         * m4/open.m4: Likewise.
87714         * m4/openat.m4: Likewise.
87715         * m4/openmp.m4: Likewise.
87716         * m4/pathmax.m4: Likewise.
87717         * m4/perl.m4: Likewise.
87718         * m4/physmem.m4: Likewise.
87719         * m4/pipe.m4: Likewise.
87720         * m4/po.m4: Likewise.
87721         * m4/poll.m4: Likewise.
87722         * m4/posixtm.m4: Likewise.
87723         * m4/posixver.m4: Likewise.
87724         * m4/printf-frexp.m4: Likewise.
87725         * m4/printf-frexpl.m4: Likewise.
87726         * m4/printf-posix.m4: Likewise.
87727         * m4/printf-posix-rpl.m4: Likewise.
87728         * m4/printf.m4: Likewise.
87729         * m4/progtest.m4: Likewise.
87730         * m4/putenv.m4: Likewise.
87731         * m4/readline.m4: Likewise.
87732         * m4/readlink.m4: Likewise.
87733         * m4/readutmp.m4: Likewise.
87734         * m4/realloc.m4: Likewise.
87735         * m4/regex.m4: Likewise.
87736         * m4/relocatable.m4: Likewise.
87737         * m4/relocatable-lib.m4: Likewise.
87738         * m4/rename-dest-slash.m4: Likewise.
87739         * m4/rename.m4: Likewise.
87740         * m4/rmdir-errno.m4: Likewise.
87741         * m4/rmdir.m4: Likewise.
87742         * m4/roundf.m4: Likewise.
87743         * m4/roundl.m4: Likewise.
87744         * m4/rpmatch.m4: Likewise.
87745         * m4/save-cwd.m4: Likewise.
87746         * m4/selinux-selinux-h.m4: Likewise.
87747         * m4/setenv.m4: Likewise.
87748         * m4/settime.m4: Likewise.
87749         * m4/sig2str.m4: Likewise.
87750         * m4/sig_atomic_t.m4: Likewise.
87751         * m4/signalblocking.m4: Likewise.
87752         * m4/signbit.m4: Likewise.
87753         * m4/sigpipe.m4: Likewise.
87754         * m4/sockets.m4: Likewise.
87755         * m4/sockpfaf.m4: Likewise.
87756         * m4/st_dm_mode.m4: Likewise.
87757         * m4/stat-time.m4: Likewise.
87758         * m4/stdbool.m4: Likewise.
87759         * m4/stdint.m4: Likewise.
87760         * m4/stdint_h.m4: Likewise.
87761         * m4/stpcpy.m4: Likewise.
87762         * m4/stpncpy.m4: Likewise.
87763         * m4/strcase.m4: Likewise.
87764         * m4/strchrnul.m4: Likewise.
87765         * m4/strcspn.m4: Likewise.
87766         * m4/strdup.m4: Likewise.
87767         * m4/strftime.m4: Likewise.
87768         * m4/strndup.m4: Likewise.
87769         * m4/strnlen.m4: Likewise.
87770         * m4/strpbrk.m4: Likewise.
87771         * m4/strptime.m4: Likewise.
87772         * m4/strsep.m4: Likewise.
87773         * m4/strtod.m4: Likewise.
87774         * m4/strtoimax.m4: Likewise.
87775         * m4/strtok_r.m4: Likewise.
87776         * m4/strtol.m4: Likewise.
87777         * m4/strtoll.m4: Likewise.
87778         * m4/strtoul.m4: Likewise.
87779         * m4/strtoull.m4: Likewise.
87780         * m4/strtoumax.m4: Likewise.
87781         * m4/strverscmp.m4: Likewise.
87782         * m4/threadlib.m4: Likewise.
87783         * m4/timegm.m4: Likewise.
87784         * m4/tm_gmtoff.m4: Likewise.
87785         * m4/tmpdir.m4: Likewise.
87786         * m4/tmpfile.m4: Likewise.
87787         * m4/tzset.m4: Likewise.
87788         * m4/uintmax_t.m4: Likewise.
87789         * m4/unlinkdir.m4: Likewise.
87790         * m4/unlocked-io.m4: Likewise.
87791         * m4/uptime.m4: Likewise.
87792         * m4/userspec.m4: Likewise.
87793         * m4/utimbuf.m4: Likewise.
87794         * m4/utime.m4: Likewise.
87795         * m4/utimes-null.m4: Likewise.
87796         * m4/utimes.m4: Likewise.
87797         * m4/vararrays.m4: Likewise.
87798         * m4/vasnprintf.m4: Likewise.
87799         * m4/vfprintf-posix.m4: Likewise.
87800         * m4/vprintf-posix.m4: Likewise.
87801         * m4/wait-process.m4: Likewise.
87802         * m4/wchar_t.m4: Likewise.
87803         * m4/wint_t.m4: Likewise.
87804         * m4/write-any-file.m4: Likewise.
87805         * m4/yield.m4: Likewise.
87807 2009-01-13  Bruno Haible  <bruno@clisp.org>
87809         Avoid test-copy-file.sh failures when ACL support insufficient.
87810         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
87811         TESTS_ENVIRONMENT.
87812         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
87813         Reported by Jim Meyering.
87815 2009-01-13  Bruno Haible  <bruno@clisp.org>
87817         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
87818         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
87819         * modules/unistdio/u8-printf-parse (Files): Likewise.
87820         * modules/unistdio/u32-printf-parse (Files): Likewise.
87821         * modules/unistdio/ulc-printf-parse (Files): Likewise.
87823 2009-01-13  Simon Josefsson  <simon@josefsson.org>
87825         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
87826         and m4/inttypes_h.m4 too.
87828 2009-01-12  Eric Blake  <ebb9@byu.net>
87830         tests: IRIX 6.2 cc can't compile -0.0 into .data
87831         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
87832         rather than at compile-time.
87833         * tests/test-floorl.c (minus_zero): Likewise.
87834         * tests/test-frexpl.c (minus_zero): Likewise.
87835         * tests/test-isnan.c (minus_zerol): Likewise.
87836         * tests/test-isnanl.h (minus_zero): Likewise.
87837         * tests/test-ldexpl.c (minus_zero): Likewise.
87838         * tests/test-roundl.c (minus_zero): Likewise.
87839         * tests/test-signbit.c (minus_zerol): Likewise.
87840         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
87841         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
87842         * tests/test-truncl.c (minus_zero): Likewise.
87843         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
87844         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
87845         Reported by Tom G. Christensen and Nelson H. F. Beebe.
87847 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87849         regex: fix glibc bug 9697
87850         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
87851         handling.
87853 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87855         regex: fix glibc bug 697
87856         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
87857         being NULL also if there are no backreferences.
87859 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
87861         regex: merge glibc changes
87862         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
87863         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
87864         re_string_skip_chars, re_string_reconstruct): Likewise.
87865         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
87867 2009-01-07  Jim Meyering  <meyering@redhat.com>
87869         poll: filter through cppi
87870         * lib/poll.c: Indent cpp directives to reflect nesting.
87872 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
87874         poll: don't return uninitialized
87875         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
87877 2009-01-06  Jeremy Olexa  <darkside@gentoo.org>  (tiny change)
87879         avoid compile failure on AIX 6.1
87880         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
87881         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
87883 2009-01-04  Jim Meyering  <meyering@redhat.com>
87885         remove duplicate inclusion of <stdio.h>
87886         * tests/test-fprintf-posix.c: Likewise.
87887         * tests/test-printf-posix.c: Likewise.
87888         * tests/test-snprintf-posix.c: Likewise.
87889         * tests/test-sprintf-posix.c: Likewise.
87890         * tests/test-vasprintf-posix.c: Likewise.
87891         * tests/test-vfprintf-posix.c: Likewise.
87892         * tests/test-vprintf-posix.c: Likewise.
87893         * tests/test-vsnprintf-posix.c: Likewise.
87894         * tests/test-vsprintf-posix.c: Likewise.
87896 2009-01-03  Jim Meyering  <meyering@redhat.com>
87898         gnulib-tool: fix sed-based filtering
87899         * gnulib-tool (func_filter_filelist): Remove extra backslash
87900         in sed_fff_filter definition.
87902 2009-01-02  Jim Meyering  <meyering@redhat.com>
87904         strftime: avoid compilation failure on Solaris 2.6
87905         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
87906         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
87907         Don't #define mbrlen or mbsinit, since now they're guaranteed to
87908         be available.  Reported by Tom G. Christensen.  Details in
87909         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
87911 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87912             Bruno Haible  <bruno@clisp.org>
87914         Speed up gnulib-tool by doing more string processing through shell
87915         built-ins.
87916         * gnulib-tool (fast_func_append): New variable.
87917         (func_remove_prefix, func_remove_suffix): New functions.
87918         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
87919         (func_filter_filelist): New function.
87920         (func_get_dependencies): Use func_remove_suffix instead of sed.
87921         (func_get_automake_snippet): Use func_filter_filelist instead of a
87922         subshell and sed invocation.
87924 2009-01-01  Bruno Haible  <bruno@clisp.org>
87926         Fix a security bug.
87927         * gnulib-tool (func_import, import, update): Don't allow the characters
87928         '"', '$', '`', '\' in macro arguments that become part of commands that
87929         are evaluated.
87931 2009-01-01  Bruno Haible  <bruno@clisp.org>
87933         * gnulib-tool (func_reset_sigpipe): Add more comments.
87935 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87937         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
87938         func_emit_tests_Makefile_am, func_import): Abort loops early if we
87939         already know the answer.
87941 2009-01-01  Jim Meyering  <meyering@redhat.com>
87943         * lib/version-etc.c (version_etc_va): Update copyright year.
87945 2008-12-30  Bruno Haible  <bruno@clisp.org>
87947         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
87948         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
87949         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
87951 2008-12-29  Eric Blake  <ebb9@byu.net>
87953         multiarch: avoid autoconf AC_REQUIRE bug
87954         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
87955         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
87956         2.63 and older.
87957         Reported by Bruno Haible, and analyzed in
87958         http://lists.gnu.org/r/bug-autoconf/2008-12/msg00039.html
87960 2008-12-29  Bruno Haible  <bruno@clisp.org>
87962         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
87963         files in subdirectories correctly.
87964         Reported by Ralf Wildenhues.
87966 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
87968         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
87969         rather than 'join FILE -', for Solaris join.
87971 2008-12-29  Bruno Haible  <bruno@clisp.org>
87973         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
87974         quoting.
87975         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
87976         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
87977         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
87978         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
87979         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
87980         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
87981         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
87982         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
87983         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
87984         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
87985         * m4/nls.m4 (AM_NLS): Likewise.
87986         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
87987         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
87988         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
87989         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
87990         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
87991         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
87992         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
87993         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
87994         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
87995         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
87996         * m4/xsize.m4 (gl_XSIZE): Likewise.
87997         Suggested by Jim Meyering.
87999 2008-11-17  Bruce Korb  <bkorb@gnu.org>
88001         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
88002         * lib/parse-duration.c: use a switch instead of cascading if's.
88004 2008-12-29  Eric Blake  <ebb9@byu.net>
88006         wchar.h: supply WEOF on Irix 5.3
88007         * lib/wchar.in.h (wint_t): Also supply WEOF.
88008         * lib/wctype.in.h (wint_t): Likewise.
88009         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
88010         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
88011         Reported by Tom G. Christensen.
88013 2008-12-26  Bruno Haible  <bruno@clisp.org>
88015         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
88016         i486, i586, i686.
88018 2008-12-26  Bruno Haible  <bruno@clisp.org>
88020         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
88022 2008-12-26  Bruno Haible  <bruno@clisp.org>
88024         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
88025         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
88026         not __STDC_CONSTANT_MACROS.
88027         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
88029 2008-12-25  Bruno Haible  <bruno@clisp.org>
88031         Add support for universal builds to vasnprintf.
88032         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
88033         universal builds, guess no.
88034         * modules/vasnprintf-posix (Depends-on): Add multiarch.
88035         * modules/vasprintf-posix (Depends-on): Likewise.
88036         * modules/fprintf-posix (Depends-on): Likewise.
88037         * modules/vfprintf-posix (Depends-on): Likewise.
88038         * modules/snprintf-posix (Depends-on): Likewise.
88039         * modules/vsnprintf-posix (Depends-on): Likewise.
88040         * modules/sprintf-posix (Depends-on): Likewise.
88041         * modules/vsprintf-posix (Depends-on): Likewise.
88042         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
88043         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
88044         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
88045         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
88046         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
88047         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
88048         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
88050         Add support for universal builds to <inttypes.h>.
88051         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
88052         _SCNu64_PREFIX): In Apple
88053         universal builds, define directly, using _LP64.
88054         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
88055         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
88056         * modules/inttypes (Depends-on): Add multiarch.
88057         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88059         Add support for universal builds to <stdint.h>.
88060         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
88061         universal builds, define directly, using _LP64.
88062         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
88063         Apple universal builds, don't test for the size and suffix of ptrdiff_t
88064         and size_t.
88065         * modules/stdint (Depends-on): Add multiarch.
88066         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
88068         New module 'multiarch'.
88069         * modules/multiarch: New file.
88070         * m4/multiarch.m4: New file.
88072 2008-12-25  Bruno Haible  <bruno@clisp.org>
88074         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
88076 2008-12-25  Bruno Haible  <bruno@clisp.org>
88078         * modules/btowc (License): Relicense under LGPLv2+.
88079         * modules/mbsinit (License): Likewise.
88080         * modules/mbrtowc (License): Likewise.
88081         * modules/wcrtomb (License): Likewise.
88082         * modules/streq (License): Likewise.
88083         Reported by David Lutterkort <lutter@redhat.com>.
88085 2008-12-23  Bruno Haible  <bruno@clisp.org>
88087         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
88089 2008-12-23  Bruno Haible  <bruno@clisp.org>
88091         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
88092         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
88093         GETADDRINFO_LIB, not in LIBS.
88094         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
88095         * modules/canon-host (Link): Likewise.
88096         * NEWS: Mention the change.
88097         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
88098         GETADDRINFO_LIB.
88100 2008-12-22  Bruno Haible  <bruno@clisp.org>
88102         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
88103         * doc/posix-functions/iswalpha_l.texi: Likewise.
88104         * doc/posix-functions/iswblank_l.texi: Likewise.
88105         * doc/posix-functions/iswcntrl_l.texi: Likewise.
88106         * doc/posix-functions/iswctype_l.texi: Likewise.
88107         * doc/posix-functions/iswdigit_l.texi: Likewise.
88108         * doc/posix-functions/iswgraph_l.texi: Likewise.
88109         * doc/posix-functions/iswlower_l.texi: Likewise.
88110         * doc/posix-functions/iswprint_l.texi: Likewise.
88111         * doc/posix-functions/iswpunct_l.texi: Likewise.
88112         * doc/posix-functions/iswspace_l.texi: Likewise.
88113         * doc/posix-functions/iswupper_l.texi: Likewise.
88114         * doc/posix-functions/iswxdigit_l.texi: Likewise.
88115         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
88116         * doc/posix-functions/open_wmemstream.texi: Likewise.
88117         * doc/posix-functions/swscanf.texi: Likewise.
88118         * doc/posix-functions/towctrans_l.texi: Likewise.
88119         * doc/posix-functions/towlower.texi: Likewise.
88120         * doc/posix-functions/towlower_l.texi: Likewise.
88121         * doc/posix-functions/towupper.texi: Likewise.
88122         * doc/posix-functions/towupper_l.texi: Likewise.
88123         * doc/posix-functions/vfwprintf.texi: Likewise.
88124         * doc/posix-functions/vfwscanf.texi: Likewise.
88125         * doc/posix-functions/vswscanf.texi: Likewise.
88126         * doc/posix-functions/vwprintf.texi: Likewise.
88127         * doc/posix-functions/vwscanf.texi: Likewise.
88128         * doc/posix-functions/wcpcpy.texi: Likewise.
88129         * doc/posix-functions/wcpncpy.texi: Likewise.
88130         * doc/posix-functions/wcscasecmp.texi: Likewise.
88131         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
88132         * doc/posix-functions/wcscoll_l.texi: Likewise.
88133         * doc/posix-functions/wcsdup.texi: Likewise.
88134         * doc/posix-functions/wcsncasecmp.texi: Likewise.
88135         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
88136         * doc/posix-functions/wcsnlen.texi: Likewise.
88137         * doc/posix-functions/wcsnrtombs.texi: Likewise.
88138         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
88139         * doc/posix-functions/wctrans_l.texi: Likewise.
88140         * doc/posix-functions/wctype_l.texi: Likewise.
88141         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
88142         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
88143         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
88144         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
88145         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
88146         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
88147         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
88148         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
88149         * doc/glibc-functions/wcschrnul.texi: Likewise.
88150         * doc/glibc-functions/wcsftime_l.texi: Likewise.
88151         * doc/glibc-functions/wcstod_l.texi: Likewise.
88152         * doc/glibc-functions/wcstof_l.texi: Likewise.
88153         * doc/glibc-functions/wcstol_l.texi: Likewise.
88154         * doc/glibc-functions/wcstold_l.texi: Likewise.
88155         * doc/glibc-functions/wcstoll_l.texi: Likewise.
88156         * doc/glibc-functions/wcstoq.texi: Likewise.
88157         * doc/glibc-functions/wcstoul_l.texi: Likewise.
88158         * doc/glibc-functions/wcstoull_l.texi: Likewise.
88159         * doc/glibc-functions/wcstouq.texi: Likewise.
88160         * doc/glibc-functions/wmempcpy.texi: Likewise.
88162 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
88163             Eric Blake  <ebb9@byu.net>
88164             Paolo Bonzini  <bonzini@gnu.org>
88165             Bruno Haible  <bruno@clisp.org>
88167         Make c-stack work on Haiku.
88168         * lib/c-stack.c (SA_ONSTACK): Define fallback.
88169         (c_stack_action): Use SA_ONSTACK flag.
88171 2008-12-22  Bruno Haible  <bruno@clisp.org>
88173         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
88175 2008-12-22  Bruno Haible  <bruno@clisp.org>
88177         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
88178         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
88179         being overridden.
88180         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
88181         New macros.
88182         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
88183         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
88184         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
88185         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
88187 2008-12-22  Bruno Haible  <bruno@clisp.org>
88189         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
88190         from test code.
88192 2008-12-22  Eric Blake  <ebb9@byu.net>
88194         Avoid gcc warnings on cygwin.
88195         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
88196         Avoid unused variable.
88197         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
88198         Likewise.
88200 2008-12-22  Bruno Haible  <bruno@clisp.org>
88202         Remove HAVE_MBRTOWC conditionals.
88203         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
88204         (mbscasecmp): Assume mbrtowc function.
88205         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
88206         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
88207         * lib/mbschr.c: Include mbuiter.h unconditionally.
88208         (mbschr): Assume mbrtowc function.
88209         * lib/mbscspn.c: Include mbuiter.h unconditionally.
88210         (mbscspn): Assume mbrtowc function.
88211         * lib/mbslen.c: Include mbuiter.h unconditionally.
88212         (mbslen): Assume mbrtowc function.
88213         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
88214         (mbsncasecmp): Assume mbrtowc function.
88215         * lib/mbsnlen.c: Include mbiter.h unconditionally.
88216         (mbsnlen): Assume mbrtowc function.
88217         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
88218         (mbspbrk): Assume mbrtowc function.
88219         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
88220         (mbspcasecmp): Assume mbrtowc function.
88221         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
88222         (mbsrchr): Assume mbrtowc function.
88223         * lib/mbssep.c: Include mbuiter.h unconditionally.
88224         (mbssep): Assume mbrtowc function.
88225         * lib/mbsspn.c: Include mbuiter.h unconditionally.
88226         (mbsspn): Assume mbrtowc function.
88227         * lib/mbsstr.c: Include mbuiter.h unconditionally.
88228         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
88229         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
88230         (mbstok_r): Assume mbrtowc function.
88231         * lib/propername.c: Include mbuiter.h unconditionally.
88232         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
88233         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
88234         (trim2): Assume mbrtowc function.
88235         * lib/mbswidth.c (mbsinit): Remove fallback definition.
88236         (mbsnwidth): Assume mbrtowc function.
88237         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
88238         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
88239         fallback definitions.
88240         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
88242 2008-12-22  Bruno Haible  <bruno@clisp.org>
88244         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
88246 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
88248         * modules/regex: Request emulations for the mb*/wc* functions we need.
88249         * m4/regex.m4: Don't look for those functions here.
88250         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
88252 2008-12-22  Bruno Haible  <bruno@clisp.org>
88254         * modules/fnmatch (Depends-on): Remove duplicated dependency.
88256 2008-12-21  Bruno Haible  <bruno@clisp.org>
88258         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
88259         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
88260         (Include): Remove conditionalization.
88261         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
88262         (Include): Remove conditionalization.
88263         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
88264         (Include): Remove conditionalization.
88265         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
88266         * m4/mbfile.m4 (gl_MBFILE): Likewise.
88267         * NEWS: Mention the change.
88268         Reported by Alan Hourihane <alanh@fairlite.co.uk>
88269         via Sergey Poznyakoff <gray@gnu.org.ua>.
88271 2008-12-21  Bruno Haible  <bruno@clisp.org>
88273         * MODULES.html.sh (Extended multibyte and wide character utilities
88274         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
88275         wcrtomb, wcsrtombs.
88276         (Support for systems lacking POSIX:2008): Add accept, bind, close,
88277         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
88278         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
88279         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
88281 2008-12-21  Bruno Haible  <bruno@clisp.org>
88283         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
88285 2008-12-21  Bruno Haible  <bruno@clisp.org>
88287         * modules/wcsnrtombs-tests: New file.
88288         * tests/test-wcsnrtombs1.sh: New file.
88289         * tests/test-wcsnrtombs2.sh: New file.
88290         * tests/test-wcsnrtombs3.sh: New file.
88291         * tests/test-wcsnrtombs4.sh: New file.
88292         * tests/test-wcsnrtombs.c: New file.
88294         New module 'wcsnrtombs'.
88295         * lib/wchar.in.h (wcsnrtombs): New declaration.
88296         * lib/wcsnrtombs.c: New file.
88297         * lib/wcsrtombs-state.c: New file.
88298         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
88299         (internal_state): Remove variable.
88300         * m4/wcsnrtombs.m4: New file.
88301         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
88302         compilation units.
88303         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
88304         HAVE_WCSNRTOMBS.
88305         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
88306         HAVE_WCSNRTOMBS.
88307         * modules/wcsnrtombs: New file.
88308         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
88309         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
88311 2008-12-21  Bruno Haible  <bruno@clisp.org>
88313         * modules/wcsrtombs-tests: New file.
88314         * tests/test-wcsrtombs1.sh: New file.
88315         * tests/test-wcsrtombs2.sh: New file.
88316         * tests/test-wcsrtombs3.sh: New file.
88317         * tests/test-wcsrtombs4.sh: New file.
88318         * tests/test-wcsrtombs.c: New file.
88320         New module 'wcsrtombs'.
88321         * lib/wchar.in.h (wcsrtombs): New declaration.
88322         * lib/wcsrtombs.c: New file.
88323         * m4/wcsrtombs.m4: New file.
88324         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
88325         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88326         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
88327         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
88328         * modules/wcsrtombs: New file.
88329         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
88330         bugs.
88332 2008-12-21  Bruno Haible  <bruno@clisp.org>
88334         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
88335         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
88336         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
88337         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
88338         if not correct.
88339         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
88340         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
88341         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88342         m4/locale-zh.m4, m4/codeset.m4.
88343         * doc/posix-functions/wcrtomb.texi: Document the bug.
88345 2008-12-21  Bruno Haible  <bruno@clisp.org>
88347         Work around a btowc() bug on IRIX 6.5.
88348         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
88349         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
88350         REPLACE_WTOBC if not.
88351         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
88352         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
88353         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
88355 2008-12-21  Bruno Haible  <bruno@clisp.org>
88357         * modules/wcrtomb-tests: New file.
88358         * tests/test-wcrtomb.sh: New file.
88359         * tests/test-wcrtomb.c: New file.
88361         New module 'wcrtomb'.
88362         * lib/wchar.in.h (wcrtomb): New declaration.
88363         * lib/wcrtomb.c: New file.
88364         * m4/wcrtomb.m4: New file.
88365         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
88366         HAVE_WCRTOMB.
88367         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
88368         HAVE_WCRTOMB.
88369         * modules/wcrtomb: New file.
88370         * doc/posix-functions/wcrtomb.texi: Mention the new module.
88372 2008-12-21  Bruno Haible  <bruno@clisp.org>
88374         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
88375         * modules/mbsrtowcs (Files): Likewise.
88376         * modules/wctob (Files): Likewise.
88377         * modules/c-strcase-tests (Files): Likewise.
88378         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
88379         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
88380         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
88381         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
88382         * modules/vasnprintf-posix-tests (Files): Likewise.
88384 2008-12-21  William Pursell  <bill.pursell@gmail.com>
88386         gitlog-to-changelog: pass all command-line arguments to git-log
88387         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
88388         it is sometimes convenient to filter the commits in various ways.
88389         gitlog-to-changelog only allows --since to specify a start date,
88390         but git-log itself supports many other filtering mechanisms.
88391         At the moment, I want to filter by branch name.  Rather than
88392         adding a --branch option to gitlog-to-changelog, it seems more
88393         flexible to simply pass all options directly to git-log and let
88394         git do the work.  Notice that this effectively makes --since a
88395         redundant option for gitlog-to-changelog, but removing it would
88396         require current usage to change since calls would then require
88397         an additional '--'.
88399 2008-12-21  Bruno Haible  <bruno@clisp.org>
88401         * modules/mbsnrtowcs-tests: New file.
88402         * tests/test-mbsnrtowcs1.sh: New file.
88403         * tests/test-mbsnrtowcs2.sh: New file.
88404         * tests/test-mbsnrtowcs3.sh: New file.
88405         * tests/test-mbsnrtowcs4.sh: New file.
88406         * tests/test-mbsnrtowcs.c: New file.
88408         New module 'mbsnrtowcs'.
88409         * lib/wchar.in.h (mbsnrtowcs): New declaration.
88410         * lib/mbsnrtowcs.c: New file.
88411         * lib/mbsrtowcs-state.c: New file.
88412         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
88413         (internal_state): Remove variable.
88414         * m4/mbsnrtowcs.m4: New file.
88415         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
88416         compilation units.
88417         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
88418         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88419         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
88420         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
88421         * modules/mbsnrtowcs: New file.
88422         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
88423         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
88424         portability problem.
88426 2008-12-21  Bruno Haible  <bruno@clisp.org>
88428         Work around mbsrtowcs bug.
88429         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
88430         (gl_FUNC_MBSRTOWCS): Invoke it.
88431         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88432         m4/locale-zh.m4.
88433         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
88435 2008-12-21  Bruno Haible  <bruno@clisp.org>
88437         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
88439 2008-12-21  Bruno Haible  <bruno@clisp.org>
88441         Update doc for AIX.
88442         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
88443         16-bit wchar_t type.
88444         * doc/posix-functions/btowc.texi: Likewise.
88445         * doc/posix-functions/fgetwc.texi: Likewise.
88446         * doc/posix-functions/fgetws.texi: Likewise.
88447         * doc/posix-functions/fputwc.texi: Likewise.
88448         * doc/posix-functions/fputws.texi: Likewise.
88449         * doc/posix-functions/fwide.texi: Likewise.
88450         * doc/posix-functions/fwprintf.texi: Likewise.
88451         * doc/posix-functions/fwscanf.texi: Likewise.
88452         * doc/posix-functions/getwchar.texi: Likewise.
88453         * doc/posix-functions/getwc.texi: Likewise.
88454         * doc/posix-functions/iswalnum.texi: Likewise.
88455         * doc/posix-functions/iswalpha.texi: Likewise.
88456         * doc/posix-functions/iswblank.texi: Likewise.
88457         * doc/posix-functions/iswcntrl.texi: Likewise.
88458         * doc/posix-functions/iswctype.texi: Likewise.
88459         * doc/posix-functions/iswdigit.texi: Likewise.
88460         * doc/posix-functions/iswgraph.texi: Likewise.
88461         * doc/posix-functions/iswlower.texi: Likewise.
88462         * doc/posix-functions/iswprint.texi: Likewise.
88463         * doc/posix-functions/iswpunct.texi: Likewise.
88464         * doc/posix-functions/iswspace.texi: Likewise.
88465         * doc/posix-functions/iswupper.texi: Likewise.
88466         * doc/posix-functions/iswxdigit.texi: Likewise.
88467         * doc/posix-functions/mbrtowc.texi: Likewise.
88468         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88469         * doc/posix-functions/mbstowcs.texi: Likewise.
88470         * doc/posix-functions/mbtowc.texi: Likewise.
88471         * doc/posix-functions/putwchar.texi: Likewise.
88472         * doc/posix-functions/putwc.texi: Likewise.
88473         * doc/posix-functions/swprintf.texi: Likewise.
88474         * doc/posix-functions/tolower.texi: Likewise.
88475         * doc/posix-functions/toupper.texi: Likewise.
88476         * doc/posix-functions/towctrans.texi: Likewise.
88477         * doc/posix-functions/ungetwc.texi: Likewise.
88478         * doc/posix-functions/vswprintf.texi: Likewise.
88479         * doc/posix-functions/wcrtomb.texi: Likewise.
88480         * doc/posix-functions/wcscat.texi: Likewise.
88481         * doc/posix-functions/wcschr.texi: Likewise.
88482         * doc/posix-functions/wcscmp.texi: Likewise.
88483         * doc/posix-functions/wcscoll.texi: Likewise.
88484         * doc/posix-functions/wcscpy.texi: Likewise.
88485         * doc/posix-functions/wcscspn.texi: Likewise.
88486         * doc/posix-functions/wcsftime.texi: Likewise.
88487         * doc/posix-functions/wcslen.texi: Likewise.
88488         * doc/posix-functions/wcsncat.texi: Likewise.
88489         * doc/posix-functions/wcsncmp.texi: Likewise.
88490         * doc/posix-functions/wcsncpy.texi: Likewise.
88491         * doc/posix-functions/wcspbrk.texi: Likewise.
88492         * doc/posix-functions/wcsrchr.texi: Likewise.
88493         * doc/posix-functions/wcsrtombs.texi: Likewise.
88494         * doc/posix-functions/wcsspn.texi: Likewise.
88495         * doc/posix-functions/wcsstr.texi: Likewise.
88496         * doc/posix-functions/wcstod.texi: Likewise.
88497         * doc/posix-functions/wcstof.texi: Likewise.
88498         * doc/posix-functions/wcstoimax.texi: Likewise.
88499         * doc/posix-functions/wcstok.texi: Likewise.
88500         * doc/posix-functions/wcstold.texi: Likewise.
88501         * doc/posix-functions/wcstoll.texi: Likewise.
88502         * doc/posix-functions/wcstol.texi: Likewise.
88503         * doc/posix-functions/wcstombs.texi: Likewise.
88504         * doc/posix-functions/wcstoull.texi: Likewise.
88505         * doc/posix-functions/wcstoul.texi: Likewise.
88506         * doc/posix-functions/wcstoumax.texi: Likewise.
88507         * doc/posix-functions/wcswidth.texi: Likewise.
88508         * doc/posix-functions/wcsxfrm.texi: Likewise.
88509         * doc/posix-functions/wctob.texi: Likewise.
88510         * doc/posix-functions/wctomb.texi: Likewise.
88511         * doc/posix-functions/wctrans.texi: Likewise.
88512         * doc/posix-functions/wctype.texi: Likewise.
88513         * doc/posix-functions/wcwidth.texi: Likewise.
88514         * doc/posix-functions/wmemchr.texi: Likewise.
88515         * doc/posix-functions/wmemcmp.texi: Likewise.
88516         * doc/posix-functions/wmemcpy.texi: Likewise.
88517         * doc/posix-functions/wmemmove.texi: Likewise.
88518         * doc/posix-functions/wmemset.texi: Likewise.
88519         * doc/posix-functions/wprintf.texi: Likewise.
88520         * doc/posix-functions/wscanf.texi: Likewise.
88522 2008-12-21  Bruno Haible  <bruno@clisp.org>
88524         Update doc for HP-UX 11.11.
88525         * doc/posix-functions/btowc.texi: Clarify that the function is missing
88526         in HP-UX version 11.00, not in all versions of HP-UX 11.
88527         * doc/posix-functions/fwide.texi: Likewise.
88528         * doc/posix-functions/fwprintf.texi: Likewise.
88529         * doc/posix-functions/fwscanf.texi: Likewise.
88530         * doc/posix-functions/inet_ntop.texi: Likewise.
88531         * doc/posix-functions/inet_pton.texi: Likewise.
88532         * doc/posix-functions/mbrlen.texi: Likewise.
88533         * doc/posix-functions/mbrtowc.texi: Likewise.
88534         * doc/posix-functions/mbsinit.texi: Likewise.
88535         * doc/posix-functions/mbsrtowcs.texi: Likewise.
88536         * doc/posix-functions/swprintf.texi: Likewise.
88537         * doc/posix-functions/swscanf.texi: Likewise.
88538         * doc/posix-functions/towctrans.texi: Likewise.
88539         * doc/posix-functions/vfwprintf.texi: Likewise.
88540         * doc/posix-functions/vswprintf.texi: Likewise.
88541         * doc/posix-functions/vwprintf.texi: Likewise.
88542         * doc/posix-functions/wcrtomb.texi: Likewise.
88543         * doc/posix-functions/wcsrtombs.texi: Likewise.
88544         * doc/posix-functions/wcsstr.texi: Likewise.
88545         * doc/posix-functions/wctob.texi: Likewise.
88546         * doc/posix-functions/wctrans.texi: Likewise.
88547         * doc/posix-functions/wmemchr.texi: Likewise.
88548         * doc/posix-functions/wmemcmp.texi: Likewise.
88549         * doc/posix-functions/wmemcpy.texi: Likewise.
88550         * doc/posix-functions/wmemmove.texi: Likewise.
88551         * doc/posix-functions/wmemset.texi: Likewise.
88552         * doc/posix-functions/wprintf.texi: Likewise.
88553         * doc/posix-functions/wscanf.texi: Likewise.
88555 2008-12-21  Bruno Haible  <bruno@clisp.org>
88557         Work around a portability problem.
88558         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
88559         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
88561 2008-12-20  Bruno Haible  <bruno@clisp.org>
88563         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
88564         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
88565         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
88566         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
88567         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
88569         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
88570         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
88571         set.
88572         (GNULIB_defined_mbstate_t): New macro.
88573         (mbsinit): Redefine if REPLACE_MBSINIT is set.
88574         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
88575         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
88576         reuses the system's mbrtowc function but works around the bugs.
88577         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
88578         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
88579         macros.
88580         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
88581         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
88582         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
88583         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
88584         REPLACE_MBSINIT if mbsinit needs to be overridden.
88585         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
88586         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88587         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
88588         REPLACE_MBSINIT, REPLACE_MBRTOWC.
88589         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
88590         m4/locale-zh.m4.
88591         (Depends): Add mbsinit.
88592         * modules/mbsinit (Depends): Add mbrtowc.
88593         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
88595 2008-12-20  Bruno Haible  <bruno@clisp.org>
88597         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
88598         so that there are no conversion errors on AIX.
88599         * tests/test-mbsrtowcs.c (main): LIkewise.
88601 2008-12-20  Bruno Haible  <bruno@clisp.org>
88603         Work around wctob bug on Solaris <= 9.
88604         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
88605         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
88606         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
88607         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
88608         * modules/wctob (Files): Add m4/locale-fr.m4.
88609         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
88611 2008-12-20  Bruno Haible  <bruno@clisp.org>
88613         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
88614         /dev/null.
88615         * tests/test-select-in.sh: Likewise.
88616         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
88618 2008-12-20  Bruno Haible  <bruno@clisp.org>
88620         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
88621         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
88622         Cygwin 1.5.x.
88624 2008-12-20  Bruno Haible  <bruno@clisp.org>
88626         Ensure mbstate_t is defined on HP-UX 11.11.
88627         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
88628         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
88629         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
88630         AC_USE_SYSTEM_EXTENSIONS.
88631         * modules/fnmatch (Depends-on): Add extensions.
88632         * modules/mbrlen (Depends-on): Likewise.
88633         * modules/mbrtowc (Depends-on): Likewise.
88634         * modules/mbsinit (Depends-on): Likewise.
88635         * modules/mbsrtowcs (Depends-on): Likewise.
88636         * modules/mbswidth (Depends-on): Likewise.
88637         * modules/quotearg (Depends-on): Likewise.
88638         * modules/strftime (Depends-on): Likewise.
88640 2008-12-20  Bruno Haible  <bruno@clisp.org>
88642         Ensure wctob is declared on IRIX 6.5.
88643         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
88644         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
88645         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
88646         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
88647         of HAVE_WCTOB.
88648         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
88649         HAVE_WCTOB.
88650         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
88652 2008-12-19  Bruno Haible  <bruno@clisp.org>
88654         * modules/mbsrtowcs-tests: New file.
88655         * tests/test-mbsrtowcs1.sh: New file.
88656         * tests/test-mbsrtowcs2.sh: New file.
88657         * tests/test-mbsrtowcs3.sh: New file.
88658         * tests/test-mbsrtowcs4.sh: New file.
88659         * tests/test-mbsrtowcs.c: New file.
88661         New module 'mbsrtowcs'.
88662         * lib/wchar.in.h (mbsrtowcs): New declaration.
88663         * lib/mbsrtowcs.c: New file.
88664         * m4/mbsrtowcs.m4: New file.
88665         * modules/mbsrtowcs: New file.
88666         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
88667         HAVE_MBSRTOWCS.
88668         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
88669         HAVE_MBSRTOWCS.
88670         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
88672 2008-12-19  Bruno Haible  <bruno@clisp.org>
88674         New module 'mbrlen'.
88675         * lib/wchar.in.h (mbrlen): New declaration.
88676         * lib/mbrlen.c: New file.
88677         * m4/mbrlen.m4: New file.
88678         * modules/mbrlen: New file.
88679         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
88680         HAVE_MBRLEN.
88681         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
88682         HAVE_MBRLEN.
88683         * doc/posix-functions/mbrlen.texi: Document the new module.
88685 2008-12-19  Bruno Haible  <bruno@clisp.org>
88687         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
88688         * modules/mbrtowc (Depends-on): Add verify.
88689         Suggested by Paul Eggert.
88691 2008-12-18  Bruno Haible  <bruno@clisp.org>
88693         * modules/mbsinit-tests: New file.
88694         * tests/test-mbsinit.sh: New file.
88695         * tests/test-mbsinit.c: New file.
88697 2008-12-18  Bruno Haible  <bruno@clisp.org>
88699         * modules/mbrtowc-tests: New file.
88700         * tests/test-mbrtowc1.sh: New file.
88701         * tests/test-mbrtowc2.sh: New file.
88702         * tests/test-mbrtowc3.sh: New file.
88703         * tests/test-mbrtowc4.sh: New file.
88704         * tests/test-mbrtowc.c: New file.
88706         New module 'mbrtowc'.
88707         * lib/wchar.in.h (mbstate_t): Override when the system does not have
88708         mbsinit and mbrtowc.
88709         (mbrtowc): New declaration.
88710         * lib/mbrtowc.c: New file.
88711         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
88712         * modules/mbrtowc: New file.
88713         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
88714         HAVE_MBRTOWC.
88715         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
88716         HAVE_MBRTOWC.
88717         * doc/posix-functions/mbrtowc.texi: Document the new module.
88719 2008-12-18  Bruno Haible  <bruno@clisp.org>
88721         New module 'wctob'.
88722         * lib/wchar.in.h (wctob): New declaration.
88723         * lib/wctob.c: New file.
88724         * m4/wctob.m4: New file.
88725         * modules/wctob: New file.
88726         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
88727         HAVE_WCTOB.
88728         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
88729         * doc/posix-functions/wctob.texi: Document the new module.
88731 2008-12-18  Bruno Haible  <bruno@clisp.org>
88733         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
88734         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
88736 2008-12-18  Simon Josefsson  <simon@josefsson.org>
88738         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
88739         G. Christensen" <tgc@jupiterrise.com>.
88741         * lib/flock.c: Need to include errno.h.  Reported by "Tom
88742         G. Christensen" <tgc@jupiterrise.com>.
88744         * lib/flock.c: Need to include string.h.  Reported by "Tom
88745         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
88746         <ebb9@byu.net>.
88748 2008-12-18  Bruno Haible  <bruno@clisp.org>
88750         * m4/locale-ja.m4: New file, from GNU gettext.
88752 2008-12-17  Bruno Haible  <bruno@clisp.org>
88754         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
88755         Suggested by Eric Blake.
88757 2008-12-17  Bruno Haible  <bruno@clisp.org>
88759         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
88761 2008-12-17  Bruno Haible  <bruno@clisp.org>
88763         * lib/mbsinit.c: Include verify.h. Verify an assumption.
88764         * modules/mbsinit (Depends-on): Add verify.
88765         Suggested by Paul Eggert.
88767 2008-12-17  Bruno Haible  <bruno@clisp.org>
88769         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
88770         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
88771         gl_FUNC_MBRTOWC.
88772         * m4/mbiter.m4 (gl_MBITER): LIkewise.
88773         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
88774         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
88775         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
88776         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
88777         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
88778         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
88779         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
88780         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
88781         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
88782         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
88783         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
88784         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
88785         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
88786         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
88787         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
88788         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
88789         * modules/trim (configure.ac): Likewise.
88791 2008-12-17  Bruno Haible  <bruno@clisp.org>
88793         * modules/btowc-tests: New file.
88794         * tests/test-btowc1.sh: New file.
88795         * tests/test-btowc2.sh: New file.
88796         * tests/test-btowc.c: New file.
88798         New module 'btowc'.
88799         * lib/wchar.in.h (btowc): New declaration.
88800         * lib/btowc.c: New file.
88801         * m4/btowc.m4: New file.
88802         * modules/btowc: New file.
88803         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
88804         HAVE_BTOWC.
88805         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
88806         * doc/posix-functions/btowc.texi: Document the new module.
88808 2008-12-17  Bruno Haible  <bruno@clisp.org>
88810         New module 'mbsinit'.
88811         * lib/wchar.in.h (mbsinit): New declaration.
88812         * lib/mbsinit.c: New file.
88813         * m4/mbsinit.m4: New file.
88814         * modules/mbsinit: New file.
88815         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
88816         HAVE_MBSINIT.
88817         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
88818         HAVE_MBSINIT.
88819         * doc/posix-functions/mbsinit.texi: Document the new module.
88821 2008-12-16  Bruno Haible  <bruno@clisp.org>
88823         * lib/unistd.in.h: Add comment.
88824         * tests/test-environ.c: Don't include <stdlib.h>.
88826 2008-12-16  Bruno Haible  <bruno@clisp.org>
88828         * lib/parse-duration.h (parse_duration): Document return value
88829         convention.
88830         * lib/parse-duration.c: Include specification header first. Add
88831         comments.
88832         (_): Remove macro.
88833         (parse_year_month_day, parse_hour_minute_second): Move side effects
88834         outside of strchr call.
88835         (parse_non_iso8601): Move side effects outside of isspace call.
88836         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
88837         call.
88839 2008-12-16  Bruno Haible  <bruno@clisp.org>
88841         * tests/test-parse-duration.sh: Produce no output when the test
88842         succeeds.
88844 2008-12-16  Bruno Haible  <bruno@clisp.org>
88846         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
88847         expressions.
88849 2008-12-15  Bruno Haible  <bruno@clisp.org>
88851         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
88852         * doc/glibc-functions/flistxattr.texi: Likewise.
88853         * doc/glibc-functions/fopencookie.texi: Likewise.
88854         * doc/glibc-functions/fremovexattr.texi: Likewise.
88855         * doc/glibc-functions/fsetxattr.texi: Likewise.
88856         * doc/glibc-functions/getxattr.texi: Likewise.
88857         * doc/glibc-functions/lgetxattr.texi: Likewise.
88858         * doc/glibc-functions/listxattr.texi: Likewise.
88859         * doc/glibc-functions/llistxattr.texi: Likewise.
88860         * doc/glibc-functions/lremovexattr.texi: Likewise.
88861         * doc/glibc-functions/lsetxattr.texi: Likewise.
88862         * doc/glibc-functions/removexattr.texi: Likewise.
88863         * doc/glibc-functions/setxattr.texi: Likewise.
88864         * doc/posix-functions/open_memstream.texi: Likewise.
88866 2008-12-15  Eric Blake  <ebb9@byu.net>
88868         Update doc for cygwin 1.7.
88869         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
88870         functions.
88871         * doc/posix-functions/fchmodat.texi: Likewise.
88872         * doc/posix-functions/fchownat.texi: Likewise.
88873         * doc/posix-functions/fdopendir.texi: Likewise.
88874         * doc/posix-functions/fmemopen.texi: Likewise.
88875         * doc/posix-functions/freeaddrinfo.texi: Likewise.
88876         * doc/posix-functions/fstatat.texi: Likewise.
88877         * doc/posix-functions/futimens.texi: Likewise.
88878         * doc/posix-functions/gai_strerror.texi: Likewise.
88879         * doc/posix-functions/getaddrinfo.texi: Likewise.
88880         * doc/posix-functions/getnameinfo.texi: Likewise.
88881         * doc/posix-functions/if_freenameindex.texi: Likewise.
88882         * doc/posix-functions/if_indextoname.texi: Likewise.
88883         * doc/posix-functions/if_nameindex.texi: Likewise.
88884         * doc/posix-functions/if_nametoindex.texi: Likewise.
88885         * doc/posix-functions/insque.texi: Likewise.
88886         * doc/posix-functions/linkat.texi: Likewise.
88887         * doc/posix-functions/llrint.texi: Likewise.
88888         * doc/posix-functions/llrintf.texi: Likewise.
88889         * doc/posix-functions/llrintl.texi: Likewise.
88890         * doc/posix-functions/lockf.texi: Likewise.
88891         * doc/posix-functions/lrintl.texi: Likewise.
88892         * doc/posix-functions/mkdirat.texi: Likewise.
88893         * doc/posix-functions/mkfifoat.texi: Likewise.
88894         * doc/posix-functions/mknodat.texi: Likewise.
88895         * doc/posix-functions/mq_close.texi: Likewise.
88896         * doc/posix-functions/mq_getattr.texi: Likewise.
88897         * doc/posix-functions/mq_notify.texi: Likewise.
88898         * doc/posix-functions/mq_open.texi: Likewise.
88899         * doc/posix-functions/mq_receive.texi: Likewise.
88900         * doc/posix-functions/mq_send.texi: Likewise.
88901         * doc/posix-functions/mq_setattr.texi: Likewise.
88902         * doc/posix-functions/mq_timedreceive.texi: Likewise.
88903         * doc/posix-functions/mq_timedsend.texi: Likewise.
88904         * doc/posix-functions/mq_unlink.texi: Likewise.
88905         * doc/posix-functions/open_memstream.texi: Likewise.
88906         * doc/posix-functions/openat.texi: Likewise.
88907         * doc/posix-functions/posix_fadvise.texi: Likewise.
88908         * doc/posix-functions/posix_fallocate.texi: Likewise.
88909         * doc/posix-functions/posix_madvise.texi: Likewise.
88910         * doc/posix-functions/posix_memalign.texi: Likewise.
88911         * doc/posix-functions/posix_openpt.texi: Likewise.
88912         * doc/posix-functions/readlinkat.texi: Likewise.
88913         * doc/posix-functions/remque.texi: Likewise.
88914         * doc/posix-functions/renameat.texi: Likewise.
88915         * doc/posix-functions/rintl.texi: Likewise.
88916         * doc/posix-functions/sem_unlink.texi: Likewise.
88917         * doc/posix-functions/shm_open.texi: Likewise.
88918         * doc/posix-functions/shm_unlink.texi: Likewise.
88919         * doc/posix-functions/signgam.texi: Likewise.
88920         * doc/posix-functions/sigset.texi: Likewise.
88921         * doc/posix-functions/stpcpy.texi: Likewise.
88922         * doc/posix-functions/stpncpy.texi: Likewise.
88923         * doc/posix-functions/strerror.texi: Likewise.
88924         * doc/posix-functions/strtod.texi: Likewise.
88925         * doc/posix-functions/symlinkat.texi: Likewise.
88926         * doc/posix-functions/unlinkat.texi: Likewise.
88927         * doc/posix-functions/utimensat.texi: Likewise.
88928         * doc/glibc-functions/bindresvport.texi: Likewise.
88929         * doc/glibc-functions/dn_expand.texi: Likewise.
88930         * doc/glibc-functions/exp10.texi: Likewise.
88931         * doc/glibc-functions/exp10f.texi: Likewise.
88932         * doc/glibc-functions/fgetxattr.texi: Likewise.
88933         * doc/glibc-functions/flistxattr.texi: Likewise.
88934         * doc/glibc-functions/fopencookie.texi: Likewise.
88935         * doc/glibc-functions/freeifaddrs.texi: Likewise.
88936         * doc/glibc-functions/fremovexattr.texi: Likewise.
88937         * doc/glibc-functions/fsetxattr.texi: Likewise.
88938         * doc/glibc-functions/getifaddrs.texi: Likewise.
88939         * doc/glibc-functions/getxattr.texi: Likewise.
88940         * doc/glibc-functions/lgetxattr.texi: Likewise.
88941         * doc/glibc-functions/listxattr.texi: Likewise.
88942         * doc/glibc-functions/llistxattr.texi: Likewise.
88943         * doc/glibc-functions/lremovexattr.texi: Likewise.
88944         * doc/glibc-functions/lsetxattr.texi: Likewise.
88945         * doc/glibc-functions/pow10.texi: Likewise.
88946         * doc/glibc-functions/pow10f.texi: Likewise.
88947         * doc/glibc-functions/rcmd_af.texi: Likewise.
88948         * doc/glibc-functions/removexattr.texi: Likewise.
88949         * doc/glibc-functions/res_init.texi: Likewise.
88950         * doc/glibc-functions/res_mkquery.texi: Likewise.
88951         * doc/glibc-functions/res_query.texi: Likewise.
88952         * doc/glibc-functions/res_querydomain.texi: Likewise.
88953         * doc/glibc-functions/res_send.texi: Likewise.
88954         * doc/glibc-functions/rresvport_af.texi: Likewise.
88955         * doc/glibc-functions/setxattr.texi: Likewise.
88956         * doc/glibc-functions/strcasestr.texi: Likewise.
88958 2008-12-15  Bruno Haible  <bruno@clisp.org>
88960         Fix compilation error on OSF/1 4.0.
88961         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
88962         <sys/time.h>, simply delegate to the system header.
88963         Reported by Daniel Richard G. <oss@teragram.com>.
88965 2008-12-15  Bruno Haible  <bruno@clisp.org>
88967         * doc/posix-functions/openat.texi: Mention the 'openat' module.
88968         * doc/posix-functions/fchmodat.texi: Likewise.
88969         * doc/posix-functions/fchownat.texi: Likewise.
88970         * doc/posix-functions/fdopendir.texi: Likewise.
88971         * doc/posix-functions/fstatat.texi: Likewise.
88972         * doc/posix-functions/mkdirat.texi: Likewise.
88973         * doc/posix-functions/unlinkat.texi: Likewise.
88975 2008-12-14  Bruno Haible  <bruno@clisp.org>
88977         Update doc for POSIX:2008.
88978         * doc/posix-functions/faccessat.texi: New file.
88979         * doc/posix-functions/fchmodat.texi: New file.
88980         * doc/posix-functions/fchownat.texi: New file.
88981         * doc/posix-functions/fdopendir.texi: New file.
88982         * doc/posix-functions/fstatat.texi: New file.
88983         * doc/posix-functions/futimens.texi: New file.
88984         * doc/posix-functions/linkat.texi: New file.
88985         * doc/posix-functions/mkdirat.texi: New file.
88986         * doc/posix-functions/mkfifoat.texi: New file.
88987         * doc/posix-functions/mknodat.texi: New file.
88988         * doc/posix-functions/open_wmemstream.texi: New file.
88989         * doc/posix-functions/openat.texi: New file.
88990         * doc/posix-functions/psiginfo.texi: New file.
88991         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
88992         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
88993         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
88994         * doc/posix-functions/readlinkat.texi: New file.
88995         * doc/posix-functions/renameat.texi: New file.
88996         * doc/posix-functions/strerror_l.texi: New file.
88997         * doc/posix-functions/symlinkat.texi: New file.
88998         * doc/posix-functions/unlinkat.texi: New file.
88999         * doc/posix-functions/utimensat.texi: New file.
89000         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89002 2008-12-14  Bruno Haible  <bruno@clisp.org>
89004         Update doc for POSIX:2008.
89005         * doc/posix-functions/alphasort.texi: Renamed from
89006         doc/glibc-functions/alphasort.texi.
89007         * doc/posix-functions/dirfd.texi: Renamed from
89008         doc/glibc-functions/dirfd.texi.
89009         * doc/posix-functions/dprintf.texi: Renamed from
89010         doc/glibc-functions/dprintf.texi.
89011         * doc/posix-functions/duplocale.texi: Renamed from
89012         doc/glibc-functions/duplocale.texi.
89013         * doc/posix-functions/fexecve.texi: Renamed from
89014         doc/glibc-functions/fexecve.texi.
89015         * doc/posix-functions/fmemopen.texi: Renamed from
89016         doc/glibc-functions/fmemopen.texi.
89017         * doc/posix-functions/freelocale.texi: Renamed from
89018         doc/glibc-functions/freelocale.texi.
89019         * doc/posix-functions/getdate_err.texi: Renamed from
89020         doc/glibc-functions/getdate_err.texi.
89021         * doc/posix-functions/isalnum_l.texi: Renamed from
89022         doc/glibc-functions/isalnum_l.texi.
89023         * doc/posix-functions/isalpha_l.texi: Renamed from
89024         doc/glibc-functions/isalpha_l.texi.
89025         * doc/posix-functions/isblank_l.texi: Renamed from
89026         doc/glibc-functions/isblank_l.texi.
89027         * doc/posix-functions/iscntrl_l.texi: Renamed from
89028         doc/glibc-functions/iscntrl_l.texi.
89029         * doc/posix-functions/isdigit_l.texi: Renamed from
89030         doc/glibc-functions/isdigit_l.texi.
89031         * doc/posix-functions/isgraph_l.texi: Renamed from
89032         doc/glibc-functions/isgraph_l.texi.
89033         * doc/posix-functions/islower_l.texi: Renamed from
89034         doc/glibc-functions/islower_l.texi.
89035         * doc/posix-functions/isprint_l.texi: Renamed from
89036         doc/glibc-functions/isprint_l.texi.
89037         * doc/posix-functions/ispunct_l.texi: Renamed from
89038         doc/glibc-functions/ispunct_l.texi.
89039         * doc/posix-functions/isspace_l.texi: Renamed from
89040         doc/glibc-functions/isspace_l.texi.
89041         * doc/posix-functions/isupper_l.texi: Renamed from
89042         doc/glibc-functions/isupper_l.texi.
89043         * doc/posix-functions/iswalnum_l.texi: Renamed from
89044         doc/glibc-functions/iswalnum_l.texi.
89045         * doc/posix-functions/iswalpha_l.texi: Renamed from
89046         doc/glibc-functions/iswalpha_l.texi.
89047         * doc/posix-functions/iswblank_l.texi: Renamed from
89048         doc/glibc-functions/iswblank_l.texi.
89049         * doc/posix-functions/iswcntrl_l.texi: Renamed from
89050         doc/glibc-functions/iswcntrl_l.texi.
89051         * doc/posix-functions/iswctype_l.texi: Renamed from
89052         doc/glibc-functions/iswctype_l.texi.
89053         * doc/posix-functions/iswdigit_l.texi: Renamed from
89054         doc/glibc-functions/iswdigit_l.texi.
89055         * doc/posix-functions/iswgraph_l.texi: Renamed from
89056         doc/glibc-functions/iswgraph_l.texi.
89057         * doc/posix-functions/iswlower_l.texi: Renamed from
89058         doc/glibc-functions/iswlower_l.texi.
89059         * doc/posix-functions/iswprint_l.texi: Renamed from
89060         doc/glibc-functions/iswprint_l.texi.
89061         * doc/posix-functions/iswpunct_l.texi: Renamed from
89062         doc/glibc-functions/iswpunct_l.texi.
89063         * doc/posix-functions/iswspace_l.texi: Renamed from
89064         doc/glibc-functions/iswspace_l.texi.
89065         * doc/posix-functions/iswupper_l.texi: Renamed from
89066         doc/glibc-functions/iswupper_l.texi.
89067         * doc/posix-functions/iswxdigit_l.texi: Renamed from
89068         doc/glibc-functions/iswxdigit_l.texi.
89069         * doc/posix-functions/isxdigit_l.texi: Renamed from
89070         doc/glibc-functions/isxdigit_l.texi.
89071         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
89072         doc/glibc-functions/mbsnrtowcs.texi.
89073         * doc/posix-functions/mkdtemp.texi: Renamed from
89074         doc/glibc-functions/mkdtemp.texi.
89075         * doc/posix-functions/newlocale.texi: Renamed from
89076         doc/glibc-functions/newlocale.texi.
89077         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
89078         doc/glibc-functions/nl_langinfo_l.texi.
89079         * doc/posix-functions/open_memstream.texi: Renamed from
89080         doc/glibc-functions/open_memstream.texi.
89081         * doc/posix-functions/opterr.texi: Renamed from
89082         doc/glibc-functions/opterr.texi.
89083         * doc/posix-functions/optind.texi: Renamed from
89084         doc/glibc-functions/optind.texi.
89085         * doc/posix-functions/optopt.texi: Renamed from
89086         doc/glibc-functions/optopt.texi.
89087         * doc/posix-functions/psignal.texi: Renamed from
89088         doc/glibc-functions/psignal.texi.
89089         * doc/posix-functions/scandir.texi: Renamed from
89090         doc/glibc-functions/scandir.texi.
89091         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
89092         doc/glibc-functions/sched_get_priority_min.texi.
89093         * doc/posix-functions/signgam.texi: Renamed from
89094         doc/glibc-functions/signgam.texi.
89095         * doc/posix-functions/stpcpy.texi: Renamed from
89096         doc/glibc-functions/stpcpy.texi.
89097         * doc/posix-functions/stpncpy.texi: Renamed from
89098         doc/glibc-functions/stpncpy.texi.
89099         * doc/posix-functions/strcasecmp_l.texi: Renamed from
89100         doc/glibc-functions/strcasecmp_l.texi.
89101         * doc/posix-functions/strcoll_l.texi: Renamed from
89102         doc/glibc-functions/strcoll_l.texi.
89103         * doc/posix-functions/strfmon_l.texi: Renamed from
89104         doc/glibc-functions/strfmon_l.texi.
89105         * doc/posix-functions/strftime_l.texi: Renamed from
89106         doc/glibc-functions/strftime_l.texi.
89107         * doc/posix-functions/strncasecmp_l.texi: Renamed from
89108         doc/glibc-functions/strncasecmp_l.texi.
89109         * doc/posix-functions/strndup.texi: Renamed from
89110         doc/glibc-functions/strndup.texi.
89111         * doc/posix-functions/strnlen.texi: Renamed from
89112         doc/glibc-functions/strnlen.texi.
89113         * doc/posix-functions/strsignal.texi: Renamed from
89114         doc/glibc-functions/strsignal.texi.
89115         * doc/posix-functions/strxfrm_l.texi: Renamed from
89116         doc/glibc-functions/strxfrm_l.texi.
89117         * doc/posix-functions/timer_gettime.texi: Renamed from
89118         doc/glibc-functions/timer_gettime.texi.
89119         * doc/posix-functions/tolower_l.texi: Renamed from
89120         doc/glibc-functions/tolower_l.texi.
89121         * doc/posix-functions/toupper_l.texi: Renamed from
89122         doc/glibc-functions/toupper_l.texi.
89123         * doc/posix-functions/towctrans_l.texi: Renamed from
89124         doc/glibc-functions/towctrans_l.texi.
89125         * doc/posix-functions/towlower_l.texi: Renamed from
89126         doc/glibc-functions/towlower_l.texi.
89127         * doc/posix-functions/towupper_l.texi: Renamed from
89128         doc/glibc-functions/towupper_l.texi.
89129         * doc/posix-functions/uselocale.texi: Renamed from
89130         doc/glibc-functions/uselocale.texi.
89131         * doc/posix-functions/vdprintf.texi: Renamed from
89132         doc/glibc-functions/vdprintf.texi.
89133         * doc/posix-functions/wcpcpy.texi:
89134         Renamed from doc/glibc-functions/wcpcpy.texi.
89135         * doc/posix-functions/wcpncpy.texi: Renamed from
89136         doc/glibc-functions/wcpncpy.texi.
89137         * doc/posix-functions/wcscasecmp.texi: Renamed from
89138         doc/glibc-functions/wcscasecmp.texi.
89139         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
89140         doc/glibc-functions/wcscasecmp_l.texi.
89141         * doc/posix-functions/wcscoll_l.texi: Renamed from
89142         doc/glibc-functions/wcscoll_l.texi.
89143         * doc/posix-functions/wcsdup.texi: Renamed from
89144         doc/glibc-functions/wcsdup.texi.
89145         * doc/posix-functions/wcsncasecmp.texi: Renamed from
89146         doc/glibc-functions/wcsncasecmp.texi.
89147         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
89148         doc/glibc-functions/wcsncasecmp_l.texi.
89149         * doc/posix-functions/wcsnlen.texi: Renamed from
89150         doc/glibc-functions/wcsnlen.texi.
89151         * doc/posix-functions/wcsnrtombs.texi: Renamed from
89152         doc/glibc-functions/wcsnrtombs.texi.
89153         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
89154         doc/glibc-functions/wcsxfrm_l.texi.
89155         * doc/posix-functions/wctrans_l.texi: Renamed from
89156         doc/glibc-functions/wctrans_l.texi.
89157         * doc/posix-functions/wctype_l.texi: Renamed from
89158         doc/glibc-functions/wctype_l.texi.
89159         * doc/gnulib.texi (Function Substitutes): Add these subsections.
89160         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
89161         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
89162         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
89163         these subsections.
89164         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
89165         Remove sections.
89167 2008-12-14  Bruno Haible  <bruno@clisp.org>
89169         Update doc for POSIX:2008.
89170         * doc/posix-functions/*.texi: Update URL of POSIX specification.
89172 2008-12-14  Bruno Haible  <bruno@clisp.org>
89174         Update doc for POSIX:2008.
89175         * doc/pastposix-functions/bcmp.texi: Renamed from
89176         doc/posix-functions/bcmp.texi.
89177         * doc/pastposix-functions/bcopy.texi: Renamed from
89178         doc/posix-functions/bcopy.texi.
89179         * doc/pastposix-functions/bsd_signal.texi: Renamed from
89180         doc/posix-functions/bsd_signal.texi.
89181         * doc/pastposix-functions/bzero.texi: Renamed from
89182         doc/posix-functions/bzero.texi.
89183         * doc/pastposix-functions/ecvt.texi: Renamed from
89184         doc/posix-functions/ecvt.texi.
89185         * doc/pastposix-functions/fcvt.texi: Renamed from
89186         doc/posix-functions/fcvt.texi.
89187         * doc/pastposix-functions/ftime.texi: Renamed from
89188         doc/posix-functions/ftime.texi.
89189         * doc/pastposix-functions/gcvt.texi: Renamed from
89190         doc/posix-functions/gcvt.texi.
89191         * doc/pastposix-functions/getcontext.texi: Renamed from
89192         doc/posix-functions/getcontext.texi.
89193         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
89194         doc/posix-functions/gethostbyaddr.texi.
89195         * doc/pastposix-functions/gethostbyname.texi: Renamed from
89196         doc/posix-functions/gethostbyname.texi.
89197         * doc/pastposix-functions/getwd.texi: Renamed from
89198         doc/posix-functions/getwd.texi.
89199         * doc/pastposix-functions/h_errno.texi: Renamed from
89200         doc/posix-functions/h_errno.texi.
89201         * doc/pastposix-functions/index.texi: Renamed from
89202         doc/posix-functions/index.texi.
89203         * doc/pastposix-functions/makecontext.texi: Renamed from
89204         doc/posix-functions/makecontext.texi.
89205         * doc/pastposix-functions/mktemp.texi: Renamed from
89206         doc/posix-functions/mktemp.texi.
89207         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
89208         doc/posix-functions/pthread_attr_getstackaddr.texi.
89209         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
89210         doc/posix-functions/pthread_attr_setstackaddr.texi.
89211         * doc/pastposix-functions/rindex.texi: Renamed from
89212         doc/posix-functions/rindex.texi.
89213         * doc/pastposix-functions/scalb.texi: Renamed from
89214         doc/posix-functions/scalb.texi.
89215         * doc/pastposix-functions/setcontext.texi: Renamed from
89216         doc/posix-functions/setcontext.texi.
89217         * doc/pastposix-functions/swapcontext.texi: Renamed from
89218         doc/posix-functions/swapcontext.texi.
89219         * doc/pastposix-functions/ualarm.texi: Renamed from
89220         doc/posix-functions/ualarm.texi.
89221         * doc/pastposix-functions/usleep.texi: Renamed from
89222         doc/posix-functions/usleep.texi.
89223         * doc/pastposix-functions/vfork.texi: Renamed from
89224         doc/posix-functions/vfork.texi.
89225         * doc/pastposix-functions/wcswcs.texi: Renamed from
89226         doc/posix-functions/wcswcs.texi.
89227         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
89228         (Function Substitutes): Update.
89230 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89232         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
89233         m4/strerror.m4.
89235 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89236             Bruno Haible  <bruno@clisp.org>
89238         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
89240 2008-12-13  Bruno Haible  <bruno@clisp.org>
89242         * modules/strtoull (Depends-on): Remove unistd.
89244 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89246         * modules/strtoull (Depends-on): Add stdlib.
89248 2008-12-11  Simon Josefsson  <simon@josefsson.org>
89250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
89252 2008-12-10  Jim Meyering  <meyering@redhat.com>
89254         gl_ASSERT: don't say assertions are disabled when they're not
89255         * m4/assert.m4 (gl_ASSERT): Do not make configure report
89256         "checking whether to enable assertions... no", when they are in
89257         fact enabled.  This is solely a bug in the output of configure.
89258         In spite of saying "no", NDEBUG was not defined in that case.
89259         Also, as noted by Eric Blake, leave assertions enabled upon
89260         --enable-assert=INVALID.
89262 2008-12-10  Bruno Haible  <bruno@clisp.org>
89264         Change MODULES.html to refer to POSIX:2008 where possible.
89265         * MODULES.html.sh (POSIX2008_URL): New variable.
89266         (posix_headers): Remove sys/timeb, ucontext.
89267         (posix2001_headers): New variable.
89268         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
89269         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
89270         index, makecontext, mktemp, pthread_attr_getstackaddr,
89271         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
89272         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
89273         (posix2001_functions): New variable.
89274         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
89275         otherwise.
89277 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89279         add missing include to parse-duration.c
89280         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
89281         * modules/parse-duration (Depends-on): Add xalloc.
89283         fix sed script reading maint.mk
89284         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
89285         (syntax-check-rules): Use it.
89287 2008-12-09  Bruno Haible  <bruno@clisp.org>
89289         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
89290         MacOS X 10.4/PowerPC.
89291         Reported by Simon Josefsson.
89293 2008-12-08  Jim Meyering  <meyering@redhat.com>
89295         work around mingw's lack of some S_IF definitions
89296         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
89297         Reported by Simon Josefsson.
89299 2008-12-08  Bruno Haible  <bruno@clisp.org>
89301         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
89302         applied to variables. Needed on MacOS X 10.4/PowerPC.
89303         Reported by Simon Josefsson.
89305 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
89306         and Eric Blake  <ebb9@byu.net>
89308         assert: honor --enable-assert
89309         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
89310         order to honor --enable-assert, rather than treating it as a
89311         synonym for --disable-assert.
89313 2008-12-08  Jim Meyering  <meyering@redhat.com>
89315         * lib/posixtm.c: Remove now-useless declaration of mktime.
89317         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
89319 2008-12-07  Bruno Haible  <bruno@clisp.org>
89321         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
89322         test_once): Mark functions as static.
89323         * tests/test-tls.c (test_tls): Likewise.
89325 2008-12-07  Bruno Haible  <bruno@clisp.org>
89327         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
89328         iconv_register_autodetect.
89330 2008-12-07  Jim Meyering  <meyering@redhat.com>
89332         posixtm.c: avoid a warning
89333         * lib/posixtm.c (posixtime): Don't initialize tm0.
89334         It's no longer needed to placate gcc4's -Wuninitialized,
89335         and the attempt to placate would elicit a new warning.
89337         unicodeio.c: mark unused parameters
89338         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89339         (fallback_failure_callback): Likewise.
89341 2008-12-07  Bruno Haible  <bruno@clisp.org>
89343         * gnulib-tool (func_create_testdir): When building the tests
89344         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
89345         Reported by Simon Josefsson.
89347 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89349         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
89351 2008-12-06  Bruno Haible  <bruno@clisp.org>
89353         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
89354         Suggested by Eric Blake.
89356 2008-12-06  Bruno Haible  <bruno@clisp.org>
89358         Fix a c-stack test failure on MacOS X.
89359         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
89360         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
89361         handler for SIGBUS as well.
89362         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
89363         install a signal handler for SIGBUS as well.
89364         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
89366 2008-12-06  Bruno Haible  <bruno@clisp.org>
89368         Advocacy documentation.
89369         * doc/gnulib-intro.texi (Benefits): New section.
89370         * doc/gnulib.texi: Update.
89372 2008-12-06  Bruno Haible  <bruno@clisp.org>
89374         Document the 'manywarnings' module.
89375         * doc/manywarnings.texi: New file.
89376         * doc/gnulib.texi: Include it.
89378 2008-12-05  Eric Blake  <ebb9@byu.net>
89380         tests: silence some gcc warnings
89381         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
89382         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
89383         type mismatches.
89385 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
89386             Bruno Haible  <bruno@clisp.org>
89388         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
89390 2008-11-29  Jim Meyering  <meyering@redhat.com>
89392         unicodeio.c: mark unused parameters
89393         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
89394         (fallback_failure_callback): Likewise.
89396         fts: fix a thinko
89397         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
89398         (set_stat_type): Return S_IF*-valued "type" directly.
89399         Prompted by James Youngman's spotting a related bug.
89400         Confirmed by further testing through find.
89402         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
89403         * lib/fts.c (D_TYPE): Define.
89404         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
89405         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
89406         (s_ifmt_shift_bits): New function.
89407         (set_stat_type): New function.
89408         (fts_build): When not calling fts_stat, call set_stat_type
89409         to propagate dirent.d_type info to fts_read caller.
89410         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
89411         fts_statp->st_mode type information may be valid.
89413 2008-11-28  Simon Josefsson  <simon@josefsson.org>
89415         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
89416         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
89417         <sds@gnu.org>.
89419 2008-11-20  Bruno Haible  <bruno@clisp.org>
89421         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
89422         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
89423         INCLUDE_NEXT.
89424         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
89425         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
89426         * modules/math (Makefile.am): Substitute
89427         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
89428         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
89430 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
89431             Bruno Haible  <bruno@clisp.org>
89433         * lib/stdint.in.h: Define all type macros so that their expansion is
89434         a single typedef'ed token. Fixes a compilation failure in Boost which
89435         does "using ::int8_t;".
89437 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89439         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
89440         gl_MANYWARN_ALL_GCC.
89441         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
89442         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89443         * modules/manywarnings: New file.
89444         * MODULES.html.sh: Mention manywarnings module.
89446 2008-11-18  Bruno Haible  <bruno@clisp.org>
89448         * doc/gnulib-tool.texi (Unit tests): New section.
89450 2008-11-18  Simon Josefsson  <simon@josefsson.org>
89452         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
89453         paths like 'lib/po/foo.po'.
89455 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89457         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
89458         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
89460 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89462         * m4/warnings.m4: Use CPPFLAGS to really check whether the
89463         parameter works.
89465 2008-11-17  Simon Josefsson  <simon@josefsson.org>
89467         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
89469 2008-11-17  Bruce Korb  <bkorb@gnu.org>
89471         * modules/parse-duration-tests: New file.
89472         * tests/test-parse-duration.sh: New file.
89473         * tests/test-parse-duration.c: New file.
89475         New module 'parse-duration'.
89476         * lib/parse-duration.h: New file.
89477         * lib/parse-duration.c: New file.
89478         * modules/parse-duration: New file.
89480 2008-11-17  Bruno Haible  <bruno@clisp.org>
89482         * tests/test-select-out.sh: Comment out the first pipe test.
89483         Reported by Simon Josefsson.
89485 2008-11-17  Bruno Haible  <bruno@clisp.org>
89487         * modules/getaddrinfo (Depends-on): Add servent, hostent.
89488         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
89489         gl_HOSTENT.
89491 2008-11-17  Bruno Haible  <bruno@clisp.org>
89493         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
89494         -lnetwork and -lnet. Needed for Haiku and BeOS.
89496 2008-11-16  Bruno Haible  <bruno@clisp.org>
89498         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
89500 2008-11-16  Bruno Haible  <bruno@clisp.org>
89502         Avoid test failure on Haiku.
89503         * tests/test-fsync.c: Include <errno.h>.
89504         (main): Don't require that fsync (0) fails.
89506 2008-11-15  Bruno Haible  <bruno@clisp.org>
89508         New module 'hostent'.
89509         * modules/hostent: New file.
89510         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
89512 2008-11-15  Bruno Haible  <bruno@clisp.org>
89514         New module 'servent'.
89515         * modules/servent: New file.
89516         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
89518 2008-11-15  Bruno Haible  <bruno@clisp.org>
89520         Avoid generating same test program with two different rules.
89521         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
89522         test-frexp to test-frexp-nolibm.
89523         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
89524         test-frexpl to test-frexpl-nolibm.
89526 2008-11-15  Bruno Haible  <bruno@clisp.org>
89528         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
89529         $(FREXPL_LIBM).
89531 2008-11-15  Bruno Haible  <bruno@clisp.org>
89533         * lib/netdb.in.h: Activate the definitions also when the system's
89534         <netdb.h> has 'struct addrinfo'.
89535         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
89536         EAI_OVERFLOW or AI_NUMERICSERV.
89537         * doc/posix-headers/netdb.texi: Document the problem.
89539 2008-11-15  Bruno Haible  <bruno@clisp.org>
89541         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
89543         Make the 'sched' module work on platforms where <sched.h> exists but
89544         is incomplete (such as Haiku).
89545         * lib/sched.in.h; Include the system's <sched.h> if it exists.
89546         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
89547         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
89548         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
89549         HAVE_STRUCT_SCHED_PARAM.
89550         * modules/sched (Depends-on): Add include_next.
89551         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
89552         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
89553         * doc/posix-headers/sched.texi: Document the issue.
89555 2008-11-13  Jim Meyering  <meyering@redhat.com>
89557         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
89558         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
89559         test would fail due to the difference in the Report bugs to ...
89560         line.  The expected address is empty, "<>", while the actual
89561         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
89563 2008-11-12  Bruno Haible  <bruno@clisp.org>
89565         lstat: don't compile lstat.c on systems lacking lstat
89566         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
89567         which don't have lstat; this is handled by lib/sys_stat.in.h already.
89568         Reported by Daniel P. Berrange via Jim Meyering.
89570 2008-11-12  Jim Meyering  <meyering@redhat.com>
89572         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
89574 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89576         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
89577         instead.
89579 2008-11-12  Bruno Haible  <bruno@clisp.org>
89581         * lib/unicodeio.c: Include unistr.h.
89582         (utf8_wctomb): Remove function.
89583         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
89585 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89587         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
89588         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
89589         <bruno@clisp.org>.
89590         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
89592 2008-11-12  Simon Josefsson  <simon@josefsson.org>
89594         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
89595         * doc/gnulib.texi: Add section for warnings.
89597 2008-11-11  Bruno Haible  <bruno@clisp.org>
89599         * lib/sockets.h: Add a comment.
89601 2008-11-11  Karl Berry  <karl@gnu.org>
89603         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
89605 2008-11-11  Eric Blake  <ebb9@byu.net>
89607         fdl.texi: avoid git symlinks
89608         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
89610 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89612         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
89614 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89616         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
89617         (gl_WARN_ADD): Substitute $2 if literal.
89619 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89621         * m4/warning.m4: Remove.
89623 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
89625         * m4/warnings.m4: Almost complete rewrite. :-)
89627 2008-11-10  Simon Josefsson  <simon@josefsson.org>
89629         * modules/warnings: New module.
89630         * m4/warnings.m4: New file.
89631         * MODULES.html.sh: Mention warnings module.
89632         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
89633         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
89635 2008-11-10  Eric Blake  <ebb9@byu.net>
89637         fdl.texi: make a symlink to the latest version
89638         * doc/standards.texi: Revert today's earlier change.
89639         * doc/fdl-1.2.texi: Rename from old fdl.texi...
89640         * doc/fdl.texi: ...and replace this with a symlink to the newer
89641         fdl-1.3.texi.
89643 2008-11-10  Bruno Haible  <bruno@clisp.org>
89645         * tests/test-select-fd.c (main): Accept the result file name as fourth
89646         argument.
89647         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
89648         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
89650 2008-11-10  Bruno Haible  <bruno@clisp.org>
89652         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
89653         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
89654         as autoconf-substituted macros.
89655         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
89656         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
89657         gl_NETDB_H_DEFAULTS. Set these variables.
89658         * modules/netdb (Makefile.am): Substitute these variables.
89660 2008-11-10  Eric Blake  <ebb9@byu.net>
89662         standards.texi: include correct file for FDL 1.3
89663         * doc/standards.texi (GNU Free Documentation License): Change
89664         include file to pull in FDL 1.3, not 1.2.
89666         fdl.texi: revert accidental change to license
89667         * doc/fdl.texi: This is FDL 1.2, not 1.3.
89669 2008-11-10  Bruno Haible  <bruno@clisp.org>
89671         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
89672         cross-compiling guesses also when the native compile gives no result.
89674 2008-11-10  Bruno Haible  <bruno@clisp.org>
89676         * lib/spawni.c (__spawni): Force variable into the stack.
89678 2008-11-10  Bruno Haible  <bruno@clisp.org>
89680         Add support for Haiku.
89681         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
89682         glibc and BeOS, but also on Haiku.
89683         * lib/fpurge.c (fpurge): Likewise.
89684         * lib/freadable.c (freadable): Likewise.
89685         * lib/freadahead.c (freadahead): Likewise.
89686         * lib/freading.c (freading): Likewise.
89687         * lib/freadptr.c (freadptr): Likewise.
89688         * lib/freadseek.c (freadptrinc): Likewise.
89689         * lib/fseeko.c (rpl_fseeko): Likewise.
89690         * lib/fseterr.c (fseterr): Likewise.
89691         * lib/fwritable.c (fwritable): Likewise.
89692         * lib/fwriting.c (fwriting): Likewise.
89693         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
89695 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89697         * lib/config.charset: Treat Haiku like BeOS.
89699 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
89701         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
89702         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
89704 2008-11-08  Bruno Haible  <bruno@clisp.org>
89706         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
89707         AC_CACHE_CHECK.
89709 2008-11-08  Bruno Haible  <bruno@clisp.org>
89711         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
89713 2008-11-08  Bruno Haible  <bruno@clisp.org>
89715         * tests/test-select-fd.c: New file.
89716         * tests/test-select-in.sh: New file.
89717         * tests/test-select-out.sh: New file.
89718         * tests/test-select-stdin.c: New file.
89719         * modules/select-tests (Files): Add the new files.
89720         (Depends-on): Add gettimeofday.
89721         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
89722         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
89723         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
89725 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
89726             Bruno Haible  <bruno@clisp.org>
89728         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
89730 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
89732         * build-aux/pmccabe2html: Added support for C++ source files.
89734 2008-11-05  Ben Pfaff  <blp@gnu.org>
89736         Fix lib/close.c build on Windows.
89737         * modules/close (Files): Add lib/w32sock.h.
89739 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
89741         Accept Bison's NEWS format.
89742         * build-aux/announce-gen (print_news_deltas): Tweak
89743         $re_prefix.
89745 2008-11-04  Bruno Haible  <bruno@clisp.org>
89747         * modules/random_r (Maintainer): Add glibc.
89749 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89751         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
89752         by karl@freefriends.org (Karl Berry).
89753         * doc/alloca.texi: Likewise.
89754         * doc/c-ctype.texi: Likewise.
89755         * doc/c-strcase.texi: Likewise.
89756         * doc/c-strcaseeq.texi: Likewise.
89757         * doc/c-strcasestr.texi: Likewise.
89758         * doc/c-strstr.texi: Likewise.
89759         * doc/c-strtod.texi: Likewise.
89760         * doc/c-strtold.texi: Likewise.
89761         * doc/ctime.texi: Likewise.
89762         * doc/error.texi: Likewise.
89763         * doc/fdl.texi: Likewise.
89764         * doc/gcd.texi: Likewise.
89765         * doc/getdate.texi: Likewise.
89766         * doc/gnulib-intro.texi: Likewise.
89767         * doc/gnulib-tool.texi: Likewise.
89768         * doc/gnulib.texi: Likewise.
89769         * doc/inet_ntoa.texi: Likewise.
89770         * doc/maintain.texi: Likewise.
89771         * doc/make-stds.texi: Likewise.
89772         * doc/quote.texi: Likewise.
89773         * doc/regexprops-generic.texi: Likewise.
89774         * doc/standards.texi: Likewise.
89775         * doc/verify.texi: Likewise.
89776         * doc/visibility.texi: Likewise.
89777         * doc/gnulib.texi (GNU Free Documentation License): Include
89778         fdl-1.3.texi instead of fdl.texi.
89780 2008-11-04  Simon Josefsson  <simon@josefsson.org>
89782         * doc/fdl-1.3.texi: New file, from
89783         <http://www.gnu.org/licenses/fdl-1.3.texi>.
89784         * modules/fdl-1.3: Add.
89785         * MODULES.html.sh: Add fdl-1.3.
89787 2008-11-03  Bruno Haible  <bruno@clisp.org>
89789         Make determination of absolute name of header file work with AIX xlc.
89790         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
89791         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
89792         preprocessing.
89793         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
89794         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
89796 2008-11-03  Simon Josefsson  <simon@josefsson.org>
89798         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
89799         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
89800         <ludo@gnu.org>.
89802 2008-11-02  Bruno Haible  <bruno@clisp.org>
89804         Mark 'strpbrk' obsolete.
89805         * modules/strpbrk (Status, Notice): New sections.
89806         * modules/strtok_r (Depends-on): Add strpbrk.
89808 2008-11-02  Bruno Haible  <bruno@clisp.org>
89810         Mark 'strdup' obsolete.
89811         * modules/strdup (Status, Notice): New sections.
89812         * modules/findprog (Depends-on): Add strdup.
89813         * modules/getaddrinfo (Depends-on): Likewise.
89814         * modules/localename (Depends-on): Likewise.
89815         * modules/relocatable-lib (Depends-on): Likewise.
89816         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
89817         * modules/relocatable-prog (Depends-on): Likewise.
89818         * modules/trim (Depends-on): Likewise.
89819         * modules/unictype/gen-ctype (Depends-on): Likewise.
89820         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89822 2008-11-02  Bruno Haible  <bruno@clisp.org>
89824         Mark 'strcspn' obsolete.
89825         * modules/strcspn (Status, Notice): New sections.
89827 2008-11-02  Bruno Haible  <bruno@clisp.org>
89829         Mark 'rmdir' obsolete.
89830         * modules/rmdir (Status, Notice): New sections.
89831         * modules/clean-temp (Depends-on): Add rmdir.
89832         * modules/openat (Depends-on): Likewise.
89834 2008-11-02  Bruno Haible  <bruno@clisp.org>
89836         Mark 'raise' obsolete.
89837         * modules/raise (Status, Notice): New sections.
89838         (Include): Specify <signal.h>.
89839         * modules/stdio (Depends-on): Add raise.
89840         * modules/write (Depends-on): Likewise.
89842 2008-11-02  Bruno Haible  <bruno@clisp.org>
89844         Mark 'memset' obsolete.
89845         * modules/memset (Status, Notice): New sections.
89847 2008-11-02  Bruno Haible  <bruno@clisp.org>
89849         Mark 'memmove' obsolete.
89850         * modules/memmove (Status, Notice): New sections.
89851         * modules/argp (Depends-on): Add memmove.
89852         * modules/argz (Depends-on): Likewise.
89853         * modules/canonicalize (Depends-on): Likewise.
89854         * modules/canonicalize-lgpl (Depends-on): Likewise.
89855         * modules/fts (Depends-on): Likewise.
89856         * modules/getcwd (Depends-on): Likewise.
89857         * modules/human (Depends-on): Likewise.
89858         * modules/regex (Depends-on): Likewise.
89859         * modules/striconveh (Depends-on): Likewise.
89860         * modules/trim (Depends-on): Likewise.
89861         * modules/unistr/u8-move (Depends-on): Likewise.
89862         * modules/unistr/u16-move (Depends-on): Likewise.
89863         * modules/unistr/u32-move (Depends-on): Likewise.
89865 2008-11-02  Bruno Haible  <bruno@clisp.org>
89867         Mark 'memcpy' obsolete.
89868         * modules/memcpy (Status, Notice): New sections.
89870 2008-11-02  Bruno Haible  <bruno@clisp.org>
89872         Mark 'memcmp' obsolete.
89873         * modules/memcmp (Status, Notice): New sections.
89874         * modules/argmatch (Depends-on): Add memchr.
89875         * modules/backupfile (Depends-on): Likewise.
89876         * modules/c-strcasestr (Depends-on): Likewise.
89877         * modules/crypto/des (Depends-on): Likewise.
89878         * modules/csharpcomp (Depends-on): Likewise.
89879         * modules/fnmatch (Depends-on): Likewise.
89880         * modules/git-merge-changelog (Depends-on): Likewise.
89881         * modules/isnand (Depends-on): Likewise.
89882         * modules/isnand-nolibm (Depends-on): Likewise.
89883         * modules/isnanf (Depends-on): Likewise.
89884         * modules/isnanf-nolibm (Depends-on): Likewise.
89885         * modules/isnanl (Depends-on): Likewise.
89886         * modules/isnanl-nolibm (Depends-on): Likewise.
89887         * modules/mbchar (Depends-on): Likewise.
89888         * modules/memcoll (Depends-on): Likewise.
89889         * modules/quotearg (Depends-on): Likewise.
89890         * modules/regex (Depends-on): Likewise.
89891         * modules/relocatable-prog (Depends-on): Likewise.
89892         * modules/same (Depends-on): Likewise.
89893         * modules/signbit (Depends-on): Likewise.
89894         * modules/strcasestr-simple (Depends-on): Likewise.
89895         * modules/unictype/gen-ctype (Depends-on): Likewise.
89896         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
89897         * modules/uniname/uniname (Depends-on): Likewise.
89898         * modules/unistr/u8-cmp (Depends-on): Likewise.
89900 2008-11-02  Bruno Haible  <bruno@clisp.org>
89902         Mark 'memchr' obsolete.
89903         * modules/memchr (Status, Notice): New sections.
89904         * modules/argp (Depends-on): Add memchr.
89905         * modules/base64 (Depends-on): Likewise.
89906         * modules/c-strcasestr (Depends-on): Likewise.
89907         * modules/chdir-long (Depends-on): Likewise.
89908         * modules/fnmatch (Depends-on): Likewise.
89909         * modules/getsubopt (Depends-on): Likewise.
89910         * modules/git-merge-changelog (Depends-on): Likewise.
89911         * modules/glob (Depends-on): Likewise.
89912         * modules/strcasestr-simple (Depends-on): Likewise.
89913         * modules/strnlen (Depends-on): Likewise.
89915 2008-11-02  Bruno Haible  <bruno@clisp.org>
89917         Mark 'atexit' obsolete.
89918         * modules/atexit (Status, Notice): New sections.
89919         * modules/chdir-long (Depends-on): Add atexit.
89920         * modules/wait-process (Depends-on): Likewise.
89922 2008-11-02  Bruno Haible  <bruno@clisp.org>
89924         * gnulib-tool: New option --with-obsolete.
89925         (func_usage): Document it.
89926         (func_modules_transitive_closure): Drop obsolete dependencies if
89927         incobsolete is not true.
89928         (func_import): Read and save the incobsolete variable to the cache.
89930 2008-11-02  Bruno Haible  <bruno@clisp.org>
89932         * modules/TEMPLATE-EXTENDED: New field 'Status'.
89933         * gnulib-tool: New option --extract-status.
89934         (func_usage): Document it.
89935         (sed_extract_prog): Recognize it.
89936         (func_get_status): New function.
89938 2008-10-30  Simon Josefsson  <simon@josefsson.org>
89940         * modules/sockets (License): Change from LGPL to LGPLv2+.
89942 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89944         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
89946 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89948         * MODULES.html.sh (Support for systems lacking POSIX:2001):
89949         Mention times and sys_times.
89950         * modules/sys_times, modules/sys_times-tests: New modules.
89951         * modules/times, modules/times-tests: Likewise
89952         * m4/sys_times_h.m4: New file.
89953         * lib/sys_times.in.h: Likewise
89954         * lib/times.c: Likewise.
89955         * tests/test-sys_times.c: Likewise.
89956         * tests/test-times.c: Likewise.
89957         * doc/posix-headers/sys_times.texi: Update.
89958         * doc/posix-functions/times.texi: Update.
89960 2008-10-28  Jim Meyering  <meyering@redhat.com>
89962         * modules/tempname (Depends-on): Add lstat.
89964         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
89966 2008-10-28  Simon Josefsson  <simon@josefsson.org>
89968         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
89969         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
89970         using idiom used elsewhere in gnulib.
89972 2008-10-27  Jim Meyering  <meyering@redhat.com>
89974         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
89976 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89978         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
89979         TESTS_ENVIRONMENT, for shell scripts that needs to call built
89980         programs.
89981         * tests/test-argp-2.sh: Use $EXEEXT when needed.
89983 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89985         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
89987 2008-10-27  Bruno Haible  <bruno@clisp.org>
89989         * tests/test-lstat.c: Include <stdio.h>.
89991 2008-10-27  Simon Josefsson  <simon@josefsson.org>
89993         * modules/lstat-tests: New module.
89994         * tests/test-lstat.c: New file.
89996 2008-10-26  Jim Meyering  <meyering@redhat.com>
89998         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
90000 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90001             Bruno Haible  <bruno@clisp.org>
90003         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
90004         * modules/configmake (Include): Add a note that the include must come
90005         after all system headers.
90006         * lib/javaversion.c: Include configmake.h after all other includes.
90008 2008-10-26  Bruno Haible  <bruno@clisp.org>
90010         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
90011         HAVE_STRUCT_RANDOM_DATA to 1.
90012         (gl_STDLIB_H): Simplify.
90014 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90016         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
90017         substitute HAVE_STRUCT_RANDOM_DATA.
90018         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
90019         random_data.
90020         * modules/stdlib (Makefile.am): Substitute
90021         HAVE_STRUCT_RANDOM_DATA.
90023 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90025         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
90026         * doc/gnulib-intro.texi (Copyright): Likewise.
90028 2008-10-26  Simon Josefsson  <simon@josefsson.org>
90030         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
90031         findings.
90033 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
90034             Bruno Haible  <bruno@clisp.org>
90036         * lib/unistd.in.h: Include <winsock2.h>.
90037         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
90038         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
90039         Provide dummy declarations.
90040         (gethostname): Override.
90041         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
90042         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
90043         gl_PREREQ_SYS_H_WINSOCK2.
90044         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
90045         * doc/posix-functions/gethostname.texi: More details.
90047 2008-10-25  Bruno Haible  <bruno@clisp.org>
90049         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90050         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
90051         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
90053         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
90054         here ...
90055         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
90056         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
90057         gl_UNISTD_H_DEFAULTS.
90059 2008-10-25  Eric Blake  <ebb9@byu.net>
90061         signbit: avoid spurious compiler failure
90062         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
90063         declarations inside function.
90065 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90066             Bruno Haible  <bruno@clisp.org>
90068         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
90069         * modules/random_r (Depends-on): Add stdint.
90071 2008-10-24  Bruno Haible  <bruno@clisp.org>
90073         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
90074         Eggert.
90075         * modules/strerror (License): Likewise.
90077 2008-10-24  Jim Meyering  <meyering@redhat.com>
90079         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
90080         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
90082 2008-10-24  Eric Blake  <ebb9@byu.net>
90084         getgroups: fix compilation when getgroups is available
90085         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
90086         but with <config.h> override of getgroups disabled.
90088 2008-10-24  Simon Josefsson  <simon@josefsson.org>
90090         * doc/gnulib.texi (Header files): Add note about C++ problems.
90091         Explained by Bruno Haible <bruno@clisp.org>.
90093 2008-10-23  Bruno Haible  <bruno@clisp.org>
90095         Define a dummy SA_NODEFER macro on Interix.
90096         * lib/signal.in.h (SA_NODEFER): Define fallback.
90097         Reported by Aleksey Cheusov <cheusov@tut.by> via
90098         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
90100 2008-10-23  Bruno Haible  <bruno@clisp.org>
90102         * modules/freadahead (License): Change to LGPLv2+.
90103         Suggested by Simon Josefsson.
90105 2008-10-23  Jim Meyering  <meyering@redhat.com>
90107         random_r: new module
90108         * modules/random_r: New file.
90109         * m4/random_r.m4: New file.
90110         * lib/random_r.c: New file, from glibc.
90111         * modules/random_r-tests: New file.
90112         * tests/test-random_r.c: New file.
90113         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
90114          Declare.
90115         (RAND_MAX): Define.
90116         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
90117         * modules/stdlib: Substitute them, too.
90118         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
90119         * doc/glibc-functions/initstate_r.texi: Mention the new module.
90120         * doc/glibc-functions/random_r.texi: Likewise.
90121         * doc/glibc-functions/setstate_r.texi: Likewise.
90122         * doc/glibc-functions/srandom_r.texi: Likewise.
90123         * config/srclist.txt: Mention it.
90125 2008-10-23  David Lutterkort  <lutter@redhat.com>
90127         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
90128         link requirement
90130 2008-10-23  Jim Meyering  <meyering@redhat.com>
90132         selinux-h: mark parameters of stub functions as intentionally unused
90133         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
90134         * lib/se-context.in.h: Likewise.
90136 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90138         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
90140 2008-10-22  Simon Josefsson  <simon@josefsson.org>
90142         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
90144 2008-10-22  Eric Blake  <ebb9@byu.net>
90146         glthread/thread: avoid compiler warning
90147         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
90148         Add unreachable abort to silence compiler.
90150 2008-10-22  Eric Blake  <ebb9@byu.net>
90152         netdb: also supply struct addrinfo for cygwin 1.5.x
90153         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
90154         older cygwin.
90155         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
90156         cygwin.
90157         * doc/posix-headers/netdb.texi (netdb.h): Document this.
90159 2008-10-22  Bruno Haible  <bruno@clisp.org>
90161         * users.txt: Update entry about pspp.
90163 2008-10-21  Bruno Haible  <bruno@clisp.org>
90165         Simplification.
90166         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
90167         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
90169         Simplification.
90170         * lib/ioctl.c (ioctl): Don't undefine.
90171         * lib/socket.c (socket): Don't undefine.
90173         Remove unused module indicator macros.
90174         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
90175         GNULIB_$1 as a C macro.
90177         * doc/posix-functions/close.texi: Undo last change.
90178         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
90179         Windows platforms.
90181 2008-10-21  Bruno Haible  <bruno@clisp.org>
90183         Add gethostname() declaration to <unistd.h>.
90184         * lib/unistd.in.h (gethostname): New declaration.
90185         * lib/gethostname.c: Include <unistd.h>.
90186         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
90187         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
90188         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
90189         and HAVE_GETHOSTNAME.
90190         * modules/gethostname (Depends-on): Add unistd.
90191         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90192         (Include): Specify <unistd.h>.
90193         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
90194         HAVE_GETHOSTNAME.
90195         * tests/test-gethostname.c: Include <unistd.h> first.
90197 2008-10-21  Bruno Haible  <bruno@clisp.org>
90199         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
90200         * modules/select-tests (Depends-on): Likewise.
90201         Reported by Simon Josefsson.
90203 2008-10-21  Simon Josefsson  <simon@josefsson.org>
90205         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
90206         * lib/accept.c: New file, based on winsock.c.
90207         * lib/bind.c: New file, based on winsock.c.
90208         * lib/connect.c: New file, based on winsock.c.
90209         * lib/getpeername.c: New file, based on winsock.c.
90210         * lib/getsockname.c: New file, based on winsock.c.
90211         * lib/getsockopt.c: New file, based on winsock.c.
90212         * lib/ioctl.c: New file, based on winsock.c.
90213         * lib/listen.c: New file, based on winsock.c.
90214         * lib/recv.c: New file, based on winsock.c.
90215         * lib/recvfrom.c: New file, based on winsock.c.
90216         * lib/send.c: New file, based on winsock.c.
90217         * lib/sendto.c: New file, based on winsock.c.
90218         * lib/setsockopt.c: New file, based on winsock.c.
90219         * lib/shutdown.c: New file, based on winsock.c.
90220         * lib/socket.c: New file, based on winsock.c.
90221         * lib/w32sock.h: New file, based on winsock.c.
90222         * lib/winsock.c: Remove file.
90223         * modules/accept: Likewise.
90224         * modules/bind: Likewise.
90225         * modules/connect: Likewise.
90226         * modules/getpeername: Likewise.
90227         * modules/getsockname: Likewise.
90228         * modules/getsockopt: Likewise.
90229         * modules/ioctl: Likewise.
90230         * modules/listen: Likewise.
90231         * modules/recv: Likewise.
90232         * modules/recvfrom: Likewise.
90233         * modules/send: Likewise.
90234         * modules/sendto: Likewise.
90235         * modules/setsockopt: Likewise.
90236         * modules/shutdown: Likewise.
90237         * modules/socket: Use socket.c instead of winsock.c.
90238         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
90239         * doc/posix-functions/accept.texi: Doc fix.
90240         * doc/posix-functions/bind.texi: Doc fix.
90241         * doc/posix-functions/close.texi: Doc fix.
90242         * doc/posix-functions/connect.texi: Doc fix.
90243         * doc/posix-functions/getpeername.texi: Doc fix.
90244         * doc/posix-functions/getsockname.texi: Doc fix.
90245         * doc/posix-functions/getsockopt.texi: Doc fix.
90246         * doc/posix-functions/ioctl.texi: Doc fix.
90247         * doc/posix-functions/listen.texi: Doc fix.
90248         * doc/posix-functions/recv.texi: Doc fix.
90249         * doc/posix-functions/recvfrom.texi: Doc fix.
90250         * doc/posix-functions/send.texi: Doc fix.
90251         * doc/posix-functions/sendto.texi: Doc fix.
90252         * doc/posix-functions/setsockopt.texi: Doc fix.
90253         * doc/posix-functions/shutdown.texi: Doc fix.
90254         * doc/posix-functions/socket.texi: Doc fix.
90256 2008-10-20  Bruno Haible  <bruno@clisp.org>
90258         Take into account the role of SIGABRT_COMPAT on Windows 2008.
90259         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
90260         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
90261         as an alias for SIGABRT.
90262         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
90263         (sigaction): Map it to SIGABRT.
90264         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
90266 2008-10-20  Bruno Haible  <bruno@clisp.org>
90268         * lib/fts.c: Don't include lstat.h.
90269         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
90271         Move the lstat() declaration to <sys/stat.h>.
90272         * lib/lstat.h: Remove file.
90273         * lib/sys_stat.in.h: Add special invocation convention.
90274         (lstat): New declaration.
90275         * lib/lstat.c (orig_lstat): New function.
90276         (rpl_lstat): Use orig_lstat instead of lstat.
90277         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
90278         AC_C_INLINE. Set REPLACE_LSTAT.
90279         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
90280         and REPLACE_LSTAT.
90281         * modules/lstat (Files): Remove lib/lstat.h.
90282         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90283         (Include): Specify <sys/stat.h> instead of lstat.h.
90284         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
90285         REPLACE_LSTAT.
90286         * NEWS: Mention the change.
90288 2008-10-20  Bruno Haible  <bruno@clisp.org>
90290         * modules/posix_spawn-tests: New file.
90291         * tests/test-posix_spawn3.c: New file.
90293 2008-10-20  Bruno Haible  <bruno@clisp.org>
90295         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
90296         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90297         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
90298         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
90299         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
90301 2008-10-20  Bruno Haible  <bruno@clisp.org>
90303         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
90304         of posix_spawn on AIX 5.3.
90306 2008-10-20  Bruno Haible  <bruno@clisp.org>
90308         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
90310 2008-10-20  Bruno Haible  <bruno@clisp.org>
90312         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
90313         of AC_LANG_PROGRAM.
90315 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90317         * lib/netdb.in.h: Don't define GNU specific constants until they
90318         are supported or needed.  Reported by Bruno Haible
90319         <bruno@clisp.org>.
90321 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90323         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
90325 2008-10-20  Simon Josefsson  <simon@josefsson.org>
90327         * lib/getaddrinfo.h: Remove file.
90328         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
90329         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
90330         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
90331         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
90332         * modules/netdb: Substitute GNULIB_GETADDRINFO.
90333         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
90334         * tests/test-getaddrinfo.c: Likewise.
90335         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
90336         * NEWS: Mention change.
90338 2008-10-19  Bruno Haible  <bruno@clisp.org>
90340         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
90342 2008-10-19  Bruno Haible  <bruno@clisp.org>
90344         * lib/wait-process.c: Include simply <sys/wait.h>.
90345         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
90346         WIFSTOPPED): Remove fallback definitions.
90347         * modules/wait-process (Depends-on): Add sys_wait.
90349         New module 'sys_wait'.
90350         * modules/sys_wait: New file.
90351         * lib/sys_wait.in.h: New file, partially copied from
90352         lib/wait-process.c.
90353         * m4/sys_wait_h.m4: New file.
90354         * doc/posix-headers/sys_wait.texi: Mention the new module.
90356 2008-10-19  Bruno Haible  <bruno@clisp.org>
90358         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
90360 2008-10-19  Bruno Haible  <bruno@clisp.org>
90362         Assume that waitpid() fills an 'int' status, not a 'union wait'.
90363         * lib/wait-process.c (WAIT_T): Remove type.
90364         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
90365         (wait_subprocess): Update.
90367 2008-10-19  Bruno Haible  <bruno@clisp.org>
90369         New module 'atoll'.
90370         * modules/atoll: New file.
90371         * lib/stdlib.in.h (atoll): New declaration.
90372         * lib/atoll.c: New file, from glibc with modifications.
90373         * m4/atoll.m4: New file.
90374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
90375         HAVE_ATOLL.
90376         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
90377         * doc/posix-functions/atoll.texi: Mention the new module.
90379 2008-10-19  Bruno Haible  <bruno@clisp.org>
90381         Add strtoull() declaration to <stdlib.h>.
90382         * lib/stdlib.in.h (strtoull): New declaration.
90383         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90384         Set HAVE_STRTOULL.
90385         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
90386         HAVE_STRTOULL.
90387         * modules/strtoull (Depends-on): Add stdlib.
90388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90389         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
90390         HAVE_STRTOULL.
90392 2008-10-19  Bruno Haible  <bruno@clisp.org>
90394         Add strtoll() declaration to <stdlib.h>.
90395         * lib/stdlib.in.h (strtoll): New declaration.
90396         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
90397         Set HAVE_STRTOLL.
90398         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
90399         HAVE_STRTOLL.
90400         * modules/strtoll (Depends-on): Add stdlib.
90401         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90402         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
90404 2008-10-19  Bruno Haible  <bruno@clisp.org>
90406         * modules/bcopy (Depends-on): Add strings.
90407         (Include): Specify <strings.h>.
90409 2008-10-19  Bruno Haible  <bruno@clisp.org>
90411         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
90413 2008-10-19  Bruno Haible  <bruno@clisp.org>
90415         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
90416         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
90417         mingw.
90419 2008-10-19  Bruno Haible  <bruno@clisp.org>
90421         * lib/atanl.c: Don't include isnanl.h.
90422         * lib/cosl.c: Likewise.
90423         * lib/ldexpl.c: Likewise.
90424         * lib/logl.c: Likewise.
90425         * lib/sinl.c: Likewise.
90426         * lib/sqrtl.c: Likewise.
90427         * lib/tanl.c: Likewise.
90429         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
90430         * lib/isnanf.h: Remove file.
90431         * lib/isnand.h: Remove file.
90432         * lib/isnanl.h: Remove file.
90433         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
90434         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
90435         macros.
90436         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
90437         HAVE_ISNANF, don't define it as a C macro.
90438         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
90439         HAVE_ISNAND, don't define it as a C macro.
90440         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
90441         HAVE_ISNANL, don't define it as a C macro.
90442         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
90443         HAVE_ISNAN[FDL].
90444         * modules/isnanf (Files): Remove lib/isnanf.h.
90445         (Depends-on): Add math.
90446         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90447         (Include): Specify <math.h> instead of isnanf.h.
90448         * modules/isnand (Files): Remove lib/isnand.h.
90449         (Depends-on): Add math.
90450         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90451         (Include): Specify <math.h> instead of isnand.h.
90452         * modules/isnanl (Files): Remove lib/isnanl.h.
90453         (Depends-on): Add math.
90454         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
90455         (Include): Specify <math.h> instead of isnanl.h.
90456         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
90457         HAVE_ISNAN[FDL].
90458         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
90459         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
90460         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
90461         * NEWS: Mention the change.
90463 2008-10-18  Bruno Haible  <bruno@clisp.org>
90465         Add getusershell(), setusershell(), endusershell() declarations to
90466         <unistd.h>.
90467         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
90468         declarations.
90469         * lib/getusershell.c: Include unistd.h.
90470         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
90471         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90472         HAVE_GETUSERSHELL.
90473         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
90474         and HAVE_GETUSERSHELL.
90475         * modules/getusershell (Depends-on): Add unistd, extensions.
90476         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90477         (Include): Specify <unistd.h>.
90478         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
90479         HAVE_GETUSERSHELL.
90481 2008-10-18  Bruno Haible  <bruno@clisp.org>
90483         Add a getloadavg() declaration to <stdlib.h>.
90484         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
90485         getloadavg declaration.
90486         (getloadavg): New declaration.
90487         * lib/getloadavg.c: Include <stdlib.h> first.
90488         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
90489         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
90490         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
90491         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
90492         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90493         * modules/getloadavg (Depends-on): Add stdlib, extensions.
90494         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
90495         (Include): Specify <stdlib.h>.
90496         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
90497         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
90499 2008-10-18  Bruno Haible  <bruno@clisp.org>
90501         * lib/dirchownmod.c: Don't include lchmod.h.
90503         Move the lchmod() declaration to <sys/stat.h>.
90504         * lib/lchmod.h: Remove file.
90505         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
90506         (lchmod): New declaration, moved here from lib/lchown.h.
90507         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
90508         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
90509         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
90510         and HAVE_LCHMOD.
90511         * modules/lchmod (Files): Remove lib/lchmod.h.
90512         (Depends-on): Add sys_stat, extensions.
90513         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
90514         (Include): Specify <sys/stat.h> instead of lchmod.h.
90515         * modules/sys_stat (Depends-on): Add link-warning.
90516         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
90517         definition of GL_LINK_WARNING.
90518         * NEWS: Mention the change.
90520 2008-10-18  Bruno Haible  <bruno@clisp.org>
90522         * lib/fchdir.c: Don't include dirfd.h.
90523         * lib/fts.c: Likewise.
90524         * lib/getcwd.c: Likewise.
90525         * lib/glob.c: Likewise.
90527         Move the dirfd() declaration to <dirent.h>.
90528         * lib/dirfd.h: Remove file.
90529         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
90530         (dirfd): New declaration.
90531         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
90532         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
90533         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
90534         HAVE_DECL_DIRFD.
90535         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
90536         HAVE_DECL_DIRFD.
90537         * modules/dirfd (Files): Remove lib/dirfd.h.
90538         (Depends-on): Add dirent, extensions.
90539         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
90540         (Include): Specify <dirent.h> instead of dirfd.h.
90541         * modules/dirent (Depends-on): Add link-warning.
90542         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
90543         definition of GL_LINK_WARNING.
90544         * NEWS: Mention the change.
90546 2008-10-18  Bruno Haible  <bruno@clisp.org>
90548         Move the euidaccess() declaration to <unistd.h>.
90549         * lib/euidaccess.h: Remove file.
90550         * lib/unistd.in.h (euidaccess): New declaration.
90551         * lib/euidaccess.c: Don't include euidaccess.h.
90552         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
90553         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
90554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
90555         and HAVE_EUIDACCESS.
90556         * modules/euidaccess (Files): Remove lib/euidaccess.h.
90557         (Depends-on): Add unistd.
90558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90559         (Include): Specify <unistd.h> instead of euidaccess.h.
90560         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
90561         HAVE_EUIDACCESS.
90562         * NEWS: Mention the change.
90564 2008-10-18  Bruno Haible  <bruno@clisp.org>
90566         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
90568         Move the getdomainname() declaration to <unistd.h>.
90569         * lib/getdomainname.h: Remove file.
90570         * lib/unistd.in.h (getdomainname): New declaration.
90571         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
90572         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
90573         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
90574         HAVE_GETDOMAINNAME.
90575         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90576         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
90577         * modules/getdomainname (Files): Remove lib/getdomainname.h.
90578         (Depends-on): Add unistd, extensions.
90579         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
90580         (Includes): Specify <unistd.h> instead of getdomainname.h.
90581         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
90582         HAVE_GETDOMAINNAME.
90583         * NEWS: Mention the change.
90585 2008-10-18  Bruno Haible  <bruno@clisp.org>
90587         * modules/dirent: New file.
90588         * m4/dirent_h.m4: New file.
90589         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
90590         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
90591         * modules/fchdir (Files): Remove lib/dirent.in.h.
90592         (Depends-on): Add dirent.
90593         (Makefile.am): Move rules to modules/dirent.
90594         * doc/posix-headers/dirent.texi: Mention the new module.
90596 2008-10-18  Bruno Haible  <bruno@clisp.org>
90598         Avoid -Wunused-parameter warnings in public gnulib header files.
90599         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
90600         macro.
90601         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
90603 2008-10-18  Bruno Haible  <bruno@clisp.org>
90605         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
90606         * doc/glibc-functions/error.texi: Mention the module 'error'.
90607         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
90608         * doc/glibc-functions/getdomainname.texi: Mention the module
90609         'getdomainname'.
90610         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
90611         * doc/glibc-functions/getpagesize.texi: Mention the module
90612         'getpagesize'.
90613         * doc/glibc-functions/getusershell.texi: Mention the module
90614         'getusershell'.
90615         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
90616         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
90617         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
90618         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
90619         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
90620         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
90621         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
90622         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
90623         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
90624         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
90625         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
90626         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
90627         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
90628         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
90630 2008-10-17  Bruno Haible  <bruno@clisp.org>
90632         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
90633         HP-UX and IRIX, use -0.0L.
90634         * tests/test-ceill.c (minus_zero): Likewise.
90635         * tests/test-floorl.c (minus_zero): Likewise.
90636         * tests/test-frexpl.c (minus_zero): Likewise.
90637         * tests/test-isnan.c (minus_zerol): Likewise.
90638         * tests/test-isnanl.h (minus_zero): Likewise.
90639         * tests/test-ldexpl.c (minus_zero): Likewise.
90640         * tests/test-roundl.c (minus_zero): Likewise.
90641         * tests/test-signbit.c (minus_zerol): Likewise.
90642         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
90643         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
90644         * tests/test-truncl.c (minus_zero): Likewise.
90645         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
90646         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
90647         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
90648         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
90650 2008-10-17  Bruno Haible  <bruno@clisp.org>
90652         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
90653         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
90654         that it gets activated only for gcc >= 3.0.
90655         * lib/dirent.in.h: Likewise.
90656         * lib/errno.in.h: Likewise.
90657         * lib/fcntl.in.h: Likewise.
90658         * lib/float.in.h: Likewise.
90659         * lib/iconv.in.h: Likewise.
90660         * lib/inttypes.in.h: Likewise.
90661         * lib/locale.in.h: Likewise.
90662         * lib/math.in.h: Likewise.
90663         * lib/netdb.in.h: Likewise.
90664         * lib/netinet_in.in.h: Likewise.
90665         * lib/search.in.h: Likewise.
90666         * lib/signal.in.h: Likewise.
90667         * lib/spawn.in.h: Likewise.
90668         * lib/stdarg.in.h: Likewise.
90669         * lib/stdint.in.h: Likewise.
90670         * lib/stdio.in.h: Likewise.
90671         * lib/stdlib.in.h: Likewise.
90672         * lib/string.in.h: Likewise.
90673         * lib/strings.in.h: Likewise.
90674         * lib/sys_file.in.h: Likewise.
90675         * lib/sys_ioctl.in.h: Likewise.
90676         * lib/sys_select.in.h: Likewise.
90677         * lib/sys_socket.in.h: Likewise.
90678         * lib/sys_stat.in.h: Likewise.
90679         * lib/sys_time.in.h: Likewise.
90680         * lib/sysexits.in.h: Likewise.
90681         * lib/time.in.h: Likewise.
90682         * lib/unistd.in.h: Likewise.
90683         * lib/wchar.in.h: Likewise.
90684         * lib/wctype.in.h: Likewise.
90685         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
90687 2008-10-17  Jim Meyering  <meyering@redhat.com>
90689         ignore-value: don't depend on inline module
90690         * modules/ignore-value (Depends-on): Remove 'inline'.
90691         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
90692         Suggestion from Bruno Haible.
90694 2008-10-17  Bruno Haible  <bruno@clisp.org>
90696         New implementation of condition variables for Win32.
90697         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
90698         (gl_linked_waitqueue_t): New type.
90699         (gl_cond_t): Use it.
90700         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
90701         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
90702         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
90703         (glthread_cond_init_func, glthread_cond_wait_func,
90704         glthread_cond_timedwait_func, glthread_cond_signal_func,
90705         glthread_cond_broadcast_func, glthread_cond_destroy_func):
90706         Reimplemented on the basis of gl_linked_waitqueue_t.
90707         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
90708         gl_waitqueue_t.
90709         (gl_rwlock_t): Update.
90710         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
90712 2008-10-17  Simon Josefsson  <simon@josefsson.org>
90714         * modules/recvfrom (Depends-on): Add dependency on getpeername.
90715         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90717 2008-10-17  Jim Meyering  <meyering@redhat.com>
90719         ignore-value: new module
90720         * modules/ignore-value: New file.
90721         * lib/ignore-value.h: New file.
90722         * MODULES.html.sh (Compiler warning management): New section,
90723         just for this module.  More to come.
90725 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
90727         open-safer.c: avoid 'signed and unsigned in conditional...' warning
90728         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
90729         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
90731 2008-10-16  Jim Meyering  <meyering@redhat.com>
90733         openat-die.c: avoid 'no previous prototype' warning
90734         * lib/openat-die.c: Include "openat.h".
90735         Reported by Reuben Thomas <rrt@sc3d.org>.
90737 2008-10-16  Simon Josefsson  <simon@josefsson.org>
90739         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
90740         * lib/netdb.in.h: Fix typo.
90741         Reported by Bruno Haible  <bruno@clisp.org>
90743         * lib/netdb.in.h: Include sys/socket.h for platforms without
90744         netdb.h, to get structures like hostent on MinGW.
90745         * modules/netdb (Depends-on): Add sys_socket.
90747 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90749         * modules/netdb, modules/netdb-tests: New file.
90750         * m4/netdb_h.m4: New file.
90751         * lib/netdb.in.h: Add, currently just an empty file pending
90752         definitions.
90753         * tests/test-netdb.c: New file.
90754         * doc/posix-headers/netdb.texi: Mention that we replace it if
90755         needed.
90756         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
90757         netdb.
90759 2008-10-15  Simon Josefsson  <simon@josefsson.org>
90761         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
90762         with code.
90764 2008-10-13  Bruno Haible  <bruno@clisp.org>
90766         * lib/glthread/cond.c (glthread_cond_wait_func,
90767         glthread_cond_timedwait_func): Add a comment.
90769 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90771         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
90772         * tests/test-select.c: Likewise,
90774 2008-10-13  Bruno Haible  <bruno@clisp.org>
90776         * lib/glthread/cond.c (glthread_cond_wait_func,
90777         glthread_cond_timedwait_func): Fix variable name.
90778         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
90780 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
90782         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
90783         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
90784         struct sockaddr.sa_len.
90785         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
90787 2008-10-13  Simon Josefsson  <simon@josefsson.org>
90789         * build-aux/pmccabe2html: Add css and css_url parameters.
90791 2008-10-12  Bruno Haible  <bruno@clisp.org>
90793         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
90794         calling aclx_get.
90795         Reported by Rainer Tammer <tammer@tammer.net>.
90797 2008-10-12  Bruno Haible  <bruno@clisp.org>
90799         Use msvcrt aware primitives for creation/termination of Win32 threads.
90800         * lib/glthread/thread.c: Include <process.h>.
90801         (glthread_create_func): Use _beginthreadex instead of CreateThread.
90802         (wrapper_func): Update signature.
90803         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
90805 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
90806             Bruno Haible  <bruno@clisp.org>
90808         Provide a Win32 implementation of the 'cond' module.
90809         * lib/glthread/cond.h [USE_WIN32]: New implementation.
90810         * lib/glthread/cond.c (glthread_cond_init_func,
90811         glthread_cond_wait_func, glthread_cond_timedwait_func,
90812         glthread_cond_signal_func, glthread_cond_broadcast_func,
90813         glthread_cond_destroy_func) [USE_WIN32]: New functions.
90814         * modules/cond (Dependencies): Add gettimeofday.
90816 2008-10-11  Bruno Haible  <bruno@clisp.org>
90818         Make sleep work on older versions of mingw.
90819         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
90820         only whether it exists.
90821         * doc/posix-functions/sleep.texi: Mention the problem with older
90822         versions of mingw.
90824 2008-10-11  Bruno Haible  <bruno@clisp.org>
90826         New module 'shutdown'.
90827         * modules/shutdown: New file.
90828         * lib/sys_socket.in.h (shutdown): New declaration.
90829         * lib/winsock.c (shutdown): New function.
90830         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
90831         GNULIB_SHUTDOWN.
90832         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
90833         * doc/posix-functions/shutdown.texi: Document the new module.
90835 2008-10-11  Jim Meyering  <meyering@redhat.com>
90837         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
90839 2008-10-11  Bruno Haible  <bruno@clisp.org>
90841         New module 'fclose'.
90842         * modules/fclose: New file.
90843         * lib/stdio.in.h (fclose): New declaration.
90844         * lib/fclose.c: New file.
90845         * m4/fclose.m4: New file.
90846         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
90847         REPLACE_FCLOSE.
90848         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
90849         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
90850         REPLACE_FCLOSE.
90851         * modules/close (Depends-on): fclose.
90852         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
90854 2008-10-11  Bruno Haible  <bruno@clisp.org>
90856         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
90857         set errno and don't call _close.
90859 2008-10-10  Bruno Haible  <bruno@clisp.org>
90861         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
90862         ACL, not afterwards. Fixes test failure on Cygwin.
90864 2008-10-09  Ben Pfaff  <blp@gnu.org>
90866         * build-aux/announce-gen: Fix gnulib version related part of usage
90867         message.  Die with a useful error message if no tarballs are
90868         found.
90870 2008-10-10  Jim Meyering  <meyering@redhat.com>
90872         bootstrap: use git's --depth=N option only if it's supported
90873         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
90874         recognize the --depth option.  Reported by Pádraig Brady.
90876 2008-10-09  Bruno Haible  <bruno@clisp.org>
90878         New module 'ioctl'.
90879         * modules/ioctl: New file.
90880         * lib/sys_socket.in.h (ioctl): Remove declaration.
90881         * lib/winsock.c: Include <sys/ioctl.h>.
90882         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
90883         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
90884         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
90885         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
90886         * doc/posix-functions/ioctl.texi: Mention the new module.
90888 2008-10-09  Bruno Haible  <bruno@clisp.org>
90890         New module 'sys_ioctl'.
90891         * lib/sys_ioctl.in.h: New file.
90892         * m4/sys_ioctl_h.m4: New file.
90893         * modules/sys_ioctl: New file.
90894         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
90896 2008-10-09  Bruno Haible  <bruno@clisp.org>
90898         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
90899         * lib/winsock.c: Include <stdarg.h>.
90900         (rpl_ioctl): Change to second argument 'int' and then varargs.
90902 2008-10-09  Bruno Haible  <bruno@clisp.org>
90904         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
90905         when the sys_socket module is present and the system has <winsock2.h>.
90907 2008-10-09  Bruno Haible  <bruno@clisp.org>
90909         * doc/posix-functions/close.texi: Mention module 'close' instead of
90910         module 'sys_socket'.
90912 2008-10-09  Bruno Haible  <bruno@clisp.org>
90914         * doc/glibc-headers/sys_ioctl.texi: New file.
90915         * doc/gnulib.texi: Include it.
90917 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90918             Bruno Haible  <bruno@clisp.org>
90920         Combine the two replacements of 'close'.
90921         * lib/sys_socket.in.h (close): Define to a reminder to include
90922         <unistd.h>.
90923         (_gl_close_fd_maybe_socket): New declaration.
90924         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
90925         * lib/winsock.c (close): Remove undefinition.
90926         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
90927         needed for the gnulib module 'close'.
90928         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
90929         define to an error symbol or to a warning, if suitable.
90930         * lib/close.c: Include <sys/socket.h>.
90931         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
90932         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
90933         UNISTD_H_HAVE_WINSOCK2_H.
90934         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
90935         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
90936         UNISTD_H_HAVE_WINSOCK2_H.
90937         * modules/sys_socket (Files): Add m4/unistd_h.m4.
90938         (configure.ac): Set a module indicator.
90939         (Makefile.am): Substitute GNULIB_CLOSE.
90940         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
90941         * modules/poll-tests (Depends-on): Add close.
90942         * modules/select-tests (Depends-on): Likewise.
90944 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90945             Bruno Haible  <bruno@clisp.org>
90947         New module 'close'.
90948         * modules/close: New file.
90949         * lib/unistd.in.h (close): Move declaration out of the
90950         FCHDIR_REPLACEMENT scope.
90951         (_gl_unregister_fd): New declaration.
90952         * lib/close.c: New file.
90953         * lib/fchdir.c (rpl_close): Remove function.
90954         * m4/close.m4: New file.
90955         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90956         close.
90957         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
90958         REPLACE_CLOSE.
90959         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
90960         REPLACE_CLOSE.
90961         * modules/fchdir (Depends-on): Add close.
90963 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90964             Bruno Haible  <bruno@clisp.org>
90966         * lib/fcntl.in.h (open): Simplify conditionals.
90967         (_gl_register_fd): New declaration.
90968         * lib/fchdir.c (rpl_open): Remove function.
90969         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
90970         also.
90971         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
90972         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
90973         open.
90975 2008-10-09  Jim Meyering  <meyering@redhat.com>
90977         GNUmakefile: use the more name-space-friendly "_version"
90978         * top/GNUmakefile (_dummy): Update.
90979         (_version): Rename from "version".
90981 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90982             Bruno Haible  <bruno@clisp.org>
90984         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
90985         rpl_close.
90986         (_gl_register_fd): New function, extracted from rpl_open.
90987         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
90988         (rpl_open, rpl_opendir): Use _gl_register_fd.
90990 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
90992         Fix organization of 'open' replacement.
90993         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
90994         (gl_FUNC_OPEN): Use it.
90995         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
90997 2008-10-08  Bruno Haible  <bruno@clisp.org>
90999         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
91001 2008-10-08  Simon Josefsson  <simon@josefsson.org>
91003         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
91004         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
91005         listen).
91007 2008-10-08  Eric Blake  <ebb9@byu.net>
91009         GNUmakefile: add 'make version' target
91010         * top/GNUmakefile (_curr-ver): Split version update rules...
91011         (version): ...into a target.
91013 2008-10-07  Bruno Haible  <bruno@clisp.org>
91015         Use a more portable replacement expression for -0.0L.
91016         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
91017         instead of -0.0L. Fix m4 quotation.
91019         * tests/test-signbit.c: Include <float.h>.
91020         (minus_zero): New variable.
91021         (test_signbitl): Use minus_zero instead of -zero.
91022         * modules/signbit-tests (Depends-on): Add float.
91024         * tests/test-ceill.c: Include <float.h>.
91025         (zero): Remove variable.
91026         (minus_zero): New variable.
91027         (main): Use minus_zero instead of -zero.
91028         * modules/ceill-tests (Depends-on): Add float.
91030         * tests/test-floorl.c: Include <float.h>.
91031         (zero): Remove variable.
91032         (minus_zero): New variable.
91033         (main): Use minus_zero instead of -zero.
91034         * modules/floorl-tests (Depends-on): Add float.
91036         * tests/test-roundl.c: Include <float.h>.
91037         (zero): Remove variable.
91038         (minus_zero): New variable.
91039         (main): Use minus_zero instead of -zero.
91040         * modules/roundl-tests (Depends-on): Add float.
91042         * tests/test-truncl.c: Include <float.h>.
91043         (zero): Remove variable.
91044         (minus_zero): New variable.
91045         (main): Use minus_zero instead of -zero.
91046         * modules/truncl-tests (Depends-on): Add float.
91048         * tests/test-frexpl.c (zero): Remove variable.
91049         (minus_zero): New variable.
91050         (main): Use minus_zero instead of -zero.
91051         * modules/frexpl-tests (Depends-on): Add float.
91053         * tests/test-isnan.c (zerol): Remove variable.
91054         (minus_zerol): New variable.
91055         (test_long_double): Use minus_zerol instead of -zerol.
91056         * modules/isnan-tests (Depends-on): Add float.
91058         * tests/test-isnanl.h (zero): Remove variable.
91059         (minus_zero): New variable.
91060         (main): Use minus_zero instead of -zero.
91061         * modules/isnanl-nolibm-tests (Depends-on): Add float.
91062         * modules/isnanl-tests (Depends-on): Add float.
91064         * tests/test-ldexpl.c (zero): Remove variable.
91065         (minus_zero): New variable.
91066         (main): Use minus_zero instead of -zero.
91067         * modules/ldexpl-tests (Depends-on): Add float.
91069         * tests/test-snprintf-posix.h (zerol): Remove variable.
91070         (minus_zerol): New variable.
91071         (test_function): Use minus_zerol instead of -zerol.
91072         * modules/snprintf-posix-tests (Depends-on): Add float.
91073         * modules/vsnprintf-posix-tests (Depends-on): Add float.
91075         * tests/test-sprintf-posix.h (zerol): Remove variable.
91076         (minus_zerol): New variable.
91077         (test_function): Use minus_zerol instead of -zerol.
91078         * modules/sprintf-posix-tests (Depends-on): Add float.
91079         * modules/vsprintf-posix-tests (Depends-on): Add float.
91081         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
91082         (minus_zerol): New variable.
91083         (test_function): Use minus_zerol instead of -zerol.
91084         * modules/vasnprintf-posix-tests (Depends-on): Add float.
91086         * tests/test-vasprintf-posix.c (zerol): Remove variable.
91087         (minus_zerol): New variable.
91088         (test_function): Use minus_zerol instead of -zerol.
91089         * modules/vasprintf-posix-tests (Depends-on): Add float.
91091 2008-10-07  Simon Josefsson  <simon@josefsson.org>
91093         * MODULES.html.sh (Support for building documentation): Mention
91094         pmccabe2html.  Sort entries.
91096         Add pmccabe2html module, from gnupdf.
91097         * build-aux/pmccabe.css: New file.
91098         * build-aux/pmccabe2html: New file.
91099         * m4/pmccabe2html.m4: New file.
91100         * modules/pmccabe2html: New file.
91102 2008-10-07  Richard W.M. Jones  <rjones@redhat.com>
91104         flock: new module
91105         * MODULES.html.sh: Add to list of modules.
91106         * lib/flock.c: flock implementation for Windows and Unix systems
91107         which have fcntl.
91108         * doc/glibc-functions/flock.texi: Update documentation.
91109         * lib/sys_file.in.h: <sys/file.h> header file.
91110         * m4/flock.m4: M4 macros.
91111         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
91112         * modules/flock: flock module.
91113         * modules/flock-tests: flock tests module.
91114         * modules/sys_file: sys/file.h module.
91115         * tests/test-flock.c: test suite for flock.
91117 2008-10-06  Jim Meyering  <meyering@redhat.com>
91119         bootstrap: check for LT_INIT more portably still ;-)
91120         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
91121         Spotted by Bruno Haible.
91123 2008-10-06  Eric Blake  <ebb9@byu.net>
91125         test-signbit: avoid tripping Irix cc bug on -0.0L
91126         * tests/test-signbit.c (minus_zerol): Delete, and replace with
91127         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
91128         entire testsuite consistent and avoids an Irix 6.2 bug.
91130 2008-10-05  Bruno Haible  <bruno@clisp.org>
91131             Jim Meyering  <jim@meyering.net>
91133         Add an option for ignoring EPIPE during close_stdout.
91134         * lib/closeout.h: Include <stdbool.h>.
91135         (close_stdout_set_ignore_EPIPE): New declaration.
91136         * lib/closeout.c: Include <stdbool.h>.
91137         (ignore_EPIPE): New variable.
91138         (close_stdout_set_ignore_EPIPE): New function.
91139         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
91140         * lib/close-stream.c (close_stream): Mention the possible EPIPE
91141         failure.
91142         * modules/closeout (Depends-on): Add stdbool.
91144 2008-10-05  Bruno Haible  <bruno@clisp.org>
91146         * modules/accept: New file.
91147         * modules/bind: New file.
91148         * modules/connect: New file.
91149         * modules/getpeername: New file.
91150         * modules/getsockname: New file.
91151         * modules/getsockopt: New file.
91152         * modules/listen: New file.
91153         * modules/recv: New file.
91154         * modules/recvfrom: New file.
91155         * modules/send: New file.
91156         * modules/sendto: New file.
91157         * modules/setsockopt: New file.
91158         * modules/socket: New file.
91159         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
91160         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
91161         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
91162         the particular module is requested. Add a link warning when the
91163         particular module is not requested.
91164         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
91165         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
91166         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
91167         the particular module is requested.
91168         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
91169         gl_SYS_SOCKET_H_DEFAULTS): New macros.
91170         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
91171         * modules/sys_socket (Depends-on): Add link-warning.
91172         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
91173         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
91174         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
91175         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
91176         GL_LINK_WARNING.
91177         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
91178         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
91179         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
91180         * doc/posix-functions/getpeername.texi: Mention the new module
91181         'getpeername'.
91182         * doc/posix-functions/getsockname.texi: Mention the new module
91183         'getsockname'.
91184         * doc/posix-functions/getsockopt.texi: Mention the new module
91185         'getsockopt'.
91186         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
91187         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
91188         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
91189         * doc/posix-functions/send.texi: Mention the new module 'send'.
91190         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
91191         * doc/posix-functions/setsockopt.texi: Mention the new module
91192         'setsockopt'.
91193         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
91194         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
91195         listen, connect, accept.
91196         * modules/select-tests (Depends-on): Likewise.
91198 2008-10-05  Bruno Haible  <bruno@clisp.org>
91200         * lib/winsock.c (strerror): Remove unused #undef.
91201         (rpl_close): Remove unused local variable.
91203         * modules/sys_socket (Depends-on); Add errno.
91205 2008-10-05  Bruno Haible  <bruno@clisp.org>
91207         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
91208         (select): Add a link warning when the 'select' module is not used.
91209         * modules/sys_select (Depends-on): Add link-warning.
91210         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
91211         Suggested by Paolo Bonzini.
91213 2008-10-05  Jim Meyering  <meyering@redhat.com>
91215         bootstrap: check for LT_INIT more portably
91216         * build-aux/bootstrap: Avoid using grep -E, since it's not
91217         portable enough.  Suggestion from Bruno Haible.
91219 2008-10-05  Bruno Haible  <bruno@clisp.org>
91221         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
91222         as being fixed by gnulib.
91224 2008-10-05  Bruno Haible  <bruno@clisp.org>
91226         * modules/select-tests: New file, mostly copied from
91227         modules/sys_select-tests.
91228         * tests/test-select.c: New file, mostly copied from
91229         tests/test-sys_select.c.
91230         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
91231         * modules/sys_select-tests (Depends-on): Remove all dependencies.
91232         (Makefile.am): Remove test_sys_select_LDADD.
91234         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
91235         to an undefined symbol, for an error message.
91236         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
91237         (gl_SYS_SELECT_H_DEFAULTS): New macro.
91238         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
91239         winsock-select.c here.
91240         * modules/sys_select (Files): Remove lib/winsock-select.c.
91241         (Depends-on): Remove alloca.
91242         (Makefile.am): Substitute GNULIB_SELECT.
91243         * modules/select: New file.
91244         * doc/posix-functions/select.texi: Update.
91246 2008-10-05  Bruno Haible  <bruno@clisp.org>
91248         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
91249         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
91250         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
91251         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
91252         getdtablesize.
91253         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
91254         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
91256 2008-10-05  Bruno Haible  <bruno@clisp.org>
91258         * modules/getdtablesize-tests: New file.
91259         * tests/test-getdtablesize.c: New file.
91261         New module 'getdtablesize'.
91262         * lib/unistd.in.h (getdtablesize): New declaration.
91263         * lib/getdtablesize.c: New file.
91264         * m4/getdtablesize.m4: New file.
91265         * modules/getdtablesize: New file.
91266         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91267         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
91268         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
91269         HAVE_GETDTABLESIZE.
91270         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
91272 2008-10-05  Bruno Haible  <bruno@clisp.org>
91274         * modules/sched (Makefile.am): Fix typo.
91275         Reported by Simon Josefsson.
91277 2008-10-05  Jim Meyering  <meyering@redhat.com>
91279         bootstrap: check for LT_INIT, too
91280         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
91281         are deprecated.  Suggestion from Ralf Wildenhues.
91283 2008-10-05  Bruno Haible  <bruno@clisp.org>
91285         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
91286         overriding them by ours.
91287         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
91289 2008-10-05  Jim Meyering  <meyering@redhat.com>
91291         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
91292         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
91293         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
91295 2008-10-04  Bruno Haible  <bruno@clisp.org>
91297         * modules/dup2 (License): Change to LGPLv2+.
91298         * modules/sleep (License): Likewise.
91299         * modules/perror (License): Likewise.
91300         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
91301         Blake.
91302         * modules/signal (License): Likewise.
91303         * modules/sigprocmask (License): Likewise.
91304         * modules/raise (License): Change to LGPLv2+, with approval by Jim
91305         Meyering.
91307 2008-10-04  Bruno Haible  <bruno@clisp.org>
91309         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
91310         Reported by Rainer Tammer <tammer@tammer.net>.
91312 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
91313             Bruno Haible  <bruno@clisp.org>
91315         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
91316         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
91317         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
91319 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
91321         filevercmp: new module
91322         * lib/filevercmp.h: New function filevercmp comparing version strings.
91323         * lib/filevercmp.c: Implementation of filevercmp function.
91324         * modules/filevercmp: Module metadata.
91325         * tests/test-filevercmp.c: Unit test for new module.
91326         * modules/filevercmp-tests: Unit test metadata.
91327         * MODULES.html.sh: Add filevercmp module.
91329 2008-10-03  Bruno Haible  <bruno@clisp.org>
91331         * lib/c-ctype.h: Add comment.
91332         Reported by Jim Meyering.
91334 2008-10-02  Bruno Haible  <bruno@clisp.org>
91336         * modules/posix_spawn-internal (Depends-on): Add 'open'.
91338 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91340         * build-aux/bootstrap: Allow renaming bootstrap, and change the
91341         name of bootstrap.conf accordingly.
91343 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91345         * build-aux/bootstrap: Install git-merge-changelog configuration
91346         items into .gitconfig if needed.
91348 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
91350         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
91351         git repository, and initialize/update it accordingly.
91353 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
91355         * modules/fsync-tests: New file.
91356         * tests/test-fsync.c: New file.
91358         New module 'fsync'.
91359         * lib/fsync.c: New file.
91360         * m4/fsync.m4: New file.
91361         * modules/fsync: New file.
91362         * lib/unistd.in.h (fsync): New declaration.
91363         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
91364         GNULIB_FSYNC and HAVE_FSYNC.
91365         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
91366         * MODULES.html.sh (posix_functions): Add fsync.
91367         * doc/posix-functions/fsync.texi: Mention the new module.
91369 2008-10-02  Jim Meyering  <meyering@redhat.com>
91371         fts.c: sync with similar code from coreutils' remove.c
91372         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
91373         Guard also with "#if defined __linux__", since for now at least,
91374         this code is Linux-kernel-specific.
91376 2008-10-02  Jim Meyering  <meyering@redhat.com>
91378         fts: bug fixes
91379         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
91380         Include <sys/vfs.h>, not <sys/statfs.h>.
91382         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
91383         Include <sys/vfs.h>, not <sys/statfs.h>.
91385 2008-10-01  Bruno Haible  <bruno@clisp.org>
91387         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
91388         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
91389         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
91390         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
91391         * doc/posix-functions/posix_spawnp.texi: Likewise.
91392         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
91393         whether posix_spawn actually works.
91394         * m4/pipe.m4 (gl_PIPE): Likewise.
91395         * modules/execute (Files): Add m4/posix_spawn.m4.
91396         * modules/pipe (Files): Add m4/posix_spawn.m4.
91397         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
91399 2008-10-01  Jim Meyering  <meyering@redhat.com>
91401         remove trailing spaces
91402         * NEWS: Likewise.
91403         * lib/poll.c (poll): Likewise.
91404         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
91405         * lib/winsock.c (rpl_close): Likewise.
91406         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
91407         * modules/yield: Likewise.
91408         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
91409         * tests/test-sys_select.c (connect_to_socket): Likewise.
91411         fts.c: adjust a new interface to be more generally useful
91412         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
91413         (fts_build): Adjust caller.
91415 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91417         * modules/cond-tests: New file.
91418         * tests/test-cond.c: New file.
91420 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91421             Bruno Haible  <bruno@clisp.org>
91423         * modules/cond (Dependencies): Add errno, time.
91424         * lib/glthread/cond.h: Include <time.h>.
91425         (gl_cond_define, gl_cond_define_initialized): Use the same definition
91426         across platforms.
91428 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91429             Bruno Haible  <bruno@clisp.org>
91431         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
91433 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91434             Bruno Haible  <bruno@clisp.org>
91436         * modules/tls-tests (Depends-on): Add thread, yield.
91437         (configure.ac): Remove all checks.
91438         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
91439         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91440         gl_thread_self): Remove definitions. Include glthread/thread.h and
91441         glthread/yield.h instead.
91442         (test_tls): Pass an additional NULL argument to gl_thread_join.
91444 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
91445             Bruno Haible  <bruno@clisp.org>
91447         * modules/lock-tests (Depends-on): Add thread, yield.
91448         (configure.ac): Remove all checks.
91449         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
91450         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
91451         gl_thread_self): Remove definitions. Include glthread/thread.h and
91452         glthread/yield.h instead.
91453         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
91454         additional NULL argument to gl_thread_join.
91456 2008-09-30  Bruno Haible  <bruno@clisp.org>
91458         Fix the Win32 implementation of the 'thread' module.
91459         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
91460         pointer type.
91461         (gl_thread_self): Invoke gl_thread_self_func.
91462         (gl_thread_self_func): New declaration.
91463         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
91464         (do_init_self_key, init_self_key): New functions.
91465         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
91466         Remove some fields.
91467         (running_threads, running_lock): Remove variables.
91468         (get_current_thread_handle): New function.
91469         (gl_thread_self_func, wrapper_func, glthread_create_func,
91470         glthread_join_func, gl_thread_exit_func): Largely rewritten and
91471         simplified.
91473 2008-09-30  Bruno Haible  <bruno@clisp.org>
91475         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
91476         files.
91478 2008-09-30  Jim Meyering  <meyering@redhat.com>
91480         fts.m4: correct the test for statfs.f_type
91481         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
91482         when checking for statfs.f_type.
91484 2008-09-15  Simon Josefsson  <simon@josefsson.org>
91486         tests: avoid some compiler warnings
91487         * tests/test-memchr.c (main): Pass NULL indirectly.
91488         * tests/test-getdate.c (main): Remove unused variable 'ret'.
91490 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
91492         getdate.y: disallow countable dayshifts like "4 yesterday ago"
91493         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
91494         exactly specified dayshifts.
91495         (dayshift): New rule.
91496         (rel): Add dayshift.
91497         (relative_time_table) [tomorrow, yesterday, today, now]:
91498         Use tDAY_SHIFT in place of tDAY_UNIT.
91499         * tests/test-getdate.c: Add tests for now-disallowed countable
91500         dayshifts, e.g., "4 yesterday ago".
91502 2008-09-29  Bruno Haible  <bruno@clisp.org>
91504         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
91505         * tests/test-posix_spawn1.in.sh: Renamed from
91506         tests/test-posix_spawn.in.sh.
91507         * tests/test-posix_spawn2.c: New file.
91508         * tests/test-posix_spawn2.in.sh: New file.
91509         * modules/posix_spawnp-tests (Files): Update.
91510         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
91512 2008-09-29  Bruno Haible  <bruno@clisp.org>
91514         Propagate effects of putenv/setenv/unsetenv to child processes.
91515         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
91516         * lib/pipe.c (create_pipe): Likewise.
91518 2008-09-29  Bruno Haible  <bruno@clisp.org>
91520         Enable use of shell scripts as executables in mingw.
91521         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
91522         run the program as a shell script.
91523         * lib/pipe.c (create_pipe): Likewise.
91524         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
91525         resulting array.
91527 2008-09-29  Eric Blake  <ebb9@byu.net>
91529         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
91531 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
91533         * doc/posix-functions/accept.texi: Update mingw problems.
91534         * doc/posix-functions/bind.texi: Update mingw problems.
91535         * doc/posix-functions/close.texi: Update mingw problems.
91536         * doc/posix-functions/connect.texi: Update mingw problems.
91537         * doc/posix-functions/getpeername.texi: Update mingw problems.
91538         * doc/posix-functions/getsockname.texi: Update mingw problems.
91539         * doc/posix-functions/getsockopt.texi: Update mingw problems.
91540         * doc/posix-functions/ioctl.texi: Update mingw problems.
91541         * doc/posix-functions/listen.texi: Update mingw problems.
91542         * doc/posix-functions/recv.texi: Update mingw problems.
91543         * doc/posix-functions/recvfrom.texi: Update mingw problems.
91544         * doc/posix-functions/select.texi: Update mingw problems.
91545         * doc/posix-functions/send.texi: Update mingw problems.
91546         * doc/posix-functions/sendto.texi: Update mingw problems.
91547         * doc/posix-functions/setsockopt.texi: Update mingw problems.
91548         * doc/posix-functions/socket.texi: Update mingw problems.
91550 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
91551             Bruno Haible  <bruno@clisp.org>
91553         * lib/sys_select.in.h: Include sys/time.h.
91554         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
91555         * modules/sys_select: Depend on sys_time.
91556         * tests/test-sys_select.c: Test that sys/select.h defines struct
91557         timeval fully.
91559 2008-09-29  Bruno Haible  <bruno@clisp.org>
91561         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
91562         * lib/sys_select.in.h: Likewise.
91564 2008-09-29  Bruno Haible  <bruno@clisp.org>
91566         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
91568 2008-09-29  Bruno Haible  <bruno@clisp.org>
91570         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
91571         Set LIBSOCKET instead of augmenting LIBS.
91572         * modules/sockets (Link): New section.
91573         * modules/sockets-tests (test_sockets_LDADD): New variable.
91574         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
91575         * modules/poll-tests (test_poll_LDADD): New variable.
91576         * NEWS: Document the change.
91578 2008-09-29  Bruno Haible  <bruno@clisp.org>
91580         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
91581         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
91582         ARPA_INET_H directly.
91583         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
91585 2008-09-28  Bruno Haible  <bruno@clisp.org>
91587         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
91588         from gl_HEADER_SYS_SOCKET.
91589         (gl_HEADER_SYS_SOCKET): Invoke it.
91590         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
91592 2008-09-28  Bruno Haible  <bruno@clisp.org>
91594         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
91595         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
91596         Needed on OSF/1 4.0.
91598 2008-09-28  Bruno Haible  <bruno@clisp.org>
91600         Override open more carefully.
91601         * lib/open.c (orig_open): New function.
91602         (rpl_open): Use orig_open instead of open.
91603         * lib/fcntl.in.h: Add special invocation convention.
91604         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
91605         (gl_FUNC_OPEN): Invoke it.
91607         Override freopen more carefully.
91608         * lib/freopen.c (orig_freopen): New function.
91609         (rpl_freopen): Use orig_freopen instead of freopen.
91610         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
91611         (gl_FUNC_FREOPEN): Invoke it.
91613         Override fopen more carefully.
91614         * lib/fopen.c (orig_fopen): New function.
91615         (rpl_fopen): Use orig_fopen instead of fopen.
91616         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
91617         (gl_FUNC_FOPEN): Invoke it.
91618         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
91620 2008-09-28  Bruno Haible  <bruno@clisp.org>
91622         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
91623         SIGPIPE.
91625 2008-09-28  Bruno Haible  <bruno@clisp.org>
91627         * tests/test-sigaction.c (handler, main): Disable the check whether
91628         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
91629         glibc systems with LinuxThreads.
91631 2008-09-28  Bruno Haible  <bruno@clisp.org>
91633         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
91635         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
91636         with AIX xlc.
91637         * lib/fcntl.in.h (open): Likewise.
91638         Reported by Rainer Tammer <tammer@tammer.net>.
91640 2008-09-28  Bruno Haible  <bruno@clisp.org>
91642         * modules/posix_spawnp-tests: New file.
91643         * tests/test-posix_spawn.c: New file.
91644         * tests/test-posix_spawn.in.sh: New file.
91646         New module 'posix_spawnp'.
91647         * modules/posix_spawnp: New file.
91648         * lib/spawnp.c: New file, from GNU libc with modifications.
91649         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
91651         New module 'posix_spawn'.
91652         * modules/posix_spawn: New file.
91653         * lib/spawn.c: New file, from GNU libc with modifications.
91654         * doc/posix-functions/posix_spawn.texi: Mention the new module.
91656         New module 'posix_spawnattr_destroy'.
91657         * modules/posix_spawnattr_destroy: New file.
91658         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
91659         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
91660         module.
91662         New module 'posix_spawnattr_setsigmask'.
91663         * modules/posix_spawnattr_setsigmask: New file.
91664         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
91665         modifications.
91666         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
91667         new module.
91669         New module 'posix_spawnattr_getsigmask'.
91670         * modules/posix_spawnattr_getsigmask: New file.
91671         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
91672         modifications.
91673         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
91674         new module.
91676         New module 'posix_spawnattr_setsigdefault'.
91677         * modules/posix_spawnattr_setsigdefault: New file.
91678         * lib/spawnattr_setdefault.c: New file, from GNU libc with
91679         modifications.
91680         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
91681         new module.
91683         New module 'posix_spawnattr_getsigdefault'.
91684         * modules/posix_spawnattr_getsigdefault: New file.
91685         * lib/spawnattr_getdefault.c: New file, from GNU libc with
91686         modifications.
91687         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
91688         new module.
91690         New module 'posix_spawnattr_setschedpolicy'.
91691         * modules/posix_spawnattr_setschedpolicy: New file.
91692         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
91693         modifications.
91694         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
91695         new module.
91697         New module 'posix_spawnattr_getschedpolicy'.
91698         * modules/posix_spawnattr_getschedpolicy: New file.
91699         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
91700         modifications.
91701         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
91702         new module.
91704         New module 'posix_spawnattr_setschedparam'.
91705         * modules/posix_spawnattr_setschedparam: New file.
91706         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
91707         modifications.
91708         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
91709         new module.
91711         New module 'posix_spawnattr_getschedparam'.
91712         * modules/posix_spawnattr_getschedparam: New file.
91713         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
91714         modifications.
91715         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
91716         new module.
91718         New module 'posix_spawnattr_setpgroup'.
91719         * modules/posix_spawnattr_setpgroup: New file.
91720         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
91721         modifications.
91722         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
91723         module.
91725         New module 'posix_spawnattr_getpgroup'.
91726         * modules/posix_spawnattr_getpgroup: New file.
91727         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
91728         modifications.
91729         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
91730         module.
91732         New module 'posix_spawnattr_setflags'.
91733         * modules/posix_spawnattr_setflags: New file.
91734         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
91735         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
91736         module.
91738         New module 'posix_spawnattr_getflags'.
91739         * modules/posix_spawnattr_getflags: New file.
91740         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
91741         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
91742         module.
91744         New module 'posix_spawnattr_init'.
91745         * modules/posix_spawnattr_init: New file.
91746         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
91747         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
91748         module.
91750         New module 'posix_spawn_file_actions_destroy'.
91751         * modules/posix_spawn_file_actions_destroy: New file.
91752         * lib/spawn_faction_destroy.c: New file, from GNU libc with
91753         modifications.
91754         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
91755         the new module.
91757         New module 'posix_spawn_file_actions_addopen'.
91758         * modules/posix_spawn_file_actions_addopen: New file.
91759         * lib/spawn_faction_addopen.c: New file, from GNU libc with
91760         modifications.
91761         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
91762         the new module.
91764         New module 'posix_spawn_file_actions_adddup2'.
91765         * modules/posix_spawn_file_actions_adddup2: New file.
91766         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
91767         modifications.
91768         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
91769         the new module.
91771         New module 'posix_spawn_file_actions_addclose'.
91772         * modules/posix_spawn_file_actions_addclose: New file.
91773         * lib/spawn_faction_addclose.c: New file, from GNU libc with
91774         modifications.
91775         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
91776         the new module.
91778         New module 'posix_spawn_file_actions_init'.
91779         * modules/posix_spawn_file_actions_init: New file.
91780         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
91781         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
91782         new module.
91784         New module 'posix_spawn-internal'.
91785         * modules/posix_spawn-internal: New file.
91786         * lib/spawn_int.h: New file, from GNU libc with modifications.
91787         * lib/spawni.c: New file, from GNU libc with modifications.
91788         * m4/posix_spawn.m4: New file.
91790         New module 'spawn'.
91791         * modules/spawn: New file.
91792         * lib/spawn.in.h: New file, from GNU libc with modifications.
91793         * m4/spawn_h.m4: New file.
91794         * doc/posix-headers/spawn.texi: Mention the new module.
91796 2008-09-28  Bruno Haible  <bruno@clisp.org>
91798         * modules/sched-tests: New file.
91799         * tests/test-sched.c: New file.
91801         New module 'sched'.
91802         * modules/sched: New file.
91803         * lib/sched.in.h: New file.
91804         * m4/sched_h.m4: New file.
91805         * doc/posix-headers/sched.texi: Mention the new module.
91807 2008-09-27  Eric Blake  <ebb9@byu.net>
91809         Fix previous patch, and tweak references to $0.
91810         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
91811         (func_version, func_gnulib_dir): Don't call this program
91812         gnulib-tool.
91813         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
91814         with using $0 in function.
91815         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
91816         (func_fatal_error): Reuse the name the user invoked us with.
91818 2008-09-27  Bruno Haible  <bruno@clisp.org>
91820         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
91821         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
91822         (gl_ICONV_H): Not here.
91823         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
91824         instead of assigning ICONV_H directly.
91826         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
91827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
91828         WCHAR_H directly.
91830 2008-09-27  Bruno Haible  <bruno@clisp.org>
91832         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
91833         * modules/arpa_inet (Depends-on): Add link-warning.
91834         (Makefile.am): Insert the definition of GL_LINK-WARNING.
91835         * modules/unistd (Makefile.am): Likewise.
91837 2008-09-26  Bruno Haible  <bruno@clisp.org>
91839         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
91840         variables.
91841         (func_version): Essentially copied from gnulib-tool.
91842         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
91843         func_readlink): Copied from gnulib-tool.
91845 2008-09-26  Bruno Haible  <bruno@clisp.org>
91847         * gnulib-tool (func_version): Change directory to $gnulib_dir before
91848         invoking git-version-gen.
91850 2008-09-26  Bruno Haible  <bruno@clisp.org>
91852         * posix-modules: Update to directory names changed on 2008-01-19.
91853         Remove commas in output before splitting into words. No more need to
91854         avoid 'ftruncate' since 2007-02-19.
91856 2008-09-26  Bruno Haible  <bruno@clisp.org>
91858         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
91860 2008-09-26  Bruno Haible  <bruno@clisp.org>
91862         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
91863         * modules/fwriteerror (Depends-on): Add errno.
91865 2008-09-26  Bruno Haible  <bruno@clisp.org>
91867         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
91868         * tests/test-vc-list-files-cvs.sh: Likewise.
91870 2008-09-26  Bruno Haible  <bruno@clisp.org>
91872         * doc/posix-headers/sys_resource.texi: Reorder items.
91874 2008-09-26  Jim Meyering  <meyering@redhat.com>
91876         fts: tweak inode comparison function
91877         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
91878         inode numbers, as documented.
91880         fts: sort dirent entries on inode number before traversing
91881         This avoids a quadratic, seek-related performance penalty when
91882         operating on a directory containing many entries (measurable at 10k;
91883         3.5 hours at 2 million entries with a cold cache) on certain types
91884         of file systems, including ext3 and ext4, but not tmpfs.
91885         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
91886         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
91887         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
91888         (fs_handles_readdir_ordered_dirents_efficiently): New function.
91889         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
91890         (fts_build): Set the stat.st_ino member from D_INO.
91891         If it is likely to be useful, sort dirent entries on inode number.
91893         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
91894         and the struct statfs.f_type member.
91895         * modules/fts (Depends-on): Add d-ino.
91897 2008-09-26  Bruno Haible  <bruno@clisp.org>
91899         * modules/sigpipe-die (Depends-on): Add sigpipe.
91901         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
91902         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
91903         and GNULIB_STDIO_H_SIGPIPE are set.
91904         * lib/stdio-write.c: New file.
91905         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
91906         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91907         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91908         REPLACE_STDIO_WRITE_FUNCS.
91909         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
91910         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91911         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91912         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91913         * modules/stdio (Files): Add lib/stdio-write.c.
91914         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
91915         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
91916         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
91917         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
91918         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
91919         REPLACE_FPRINTF_POSIX.
91920         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
91921         REPLACE_PRINTF_POSIX.
91922         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
91923         REPLACE_VFPRINTF_POSIX.
91924         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
91925         REPLACE_VPRINTF_POSIX.
91926         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
91927         SIGPIPE issue.
91928         * doc/posix-functions/fputc.texi: Likewise.
91929         * doc/posix-functions/fputs.texi: Likewise.
91930         * doc/posix-functions/fwrite.texi: Likewise.
91931         * doc/posix-functions/printf.texi: Likewise.
91932         * doc/posix-functions/putc.texi: Likewise.
91933         * doc/posix-functions/putchar.texi: Likewise.
91934         * doc/posix-functions/puts.texi: Likewise.
91935         * doc/posix-functions/vfprintf.texi: Likewise.
91936         * doc/posix-functions/vprintf.texi: Likewise.
91938         * modules/safe-write (Depends-on): Add write.
91940         * modules/sigpipe-tests: New file.
91941         * tests/test-sigpipe.c: New file.
91942         * tests/test-sigpipe.sh: New file.
91944         * modules/write: New file.
91945         * lib/unistd.in.h: Include <sys/types.h>.
91946         (write): New declaration.
91947         * lib/write.c: New file.
91948         * m4/write.m4: New file.
91949         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
91950         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
91951         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
91952         GNULIB_WRITE, REPLACE_WRITE.
91953         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
91954         and the SIGPIPE issue.
91956         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
91957         (raise): New declaration.
91958         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
91959         (ext_signal): New function.
91960         (rpl_raise): New function.
91961         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
91962         GNULIB_SIGNAL_H_SIGPIPE.
91963         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
91964         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
91966         * modules/sigpipe: New file.
91967         * m4/sigpipe.m4: New file.
91969 2008-09-25  Derek Price  <derek@ximbiot.com>
91970             Bruno Haible  <bruno@clisp.org>
91972         * gnulib-tool (func_import): Report all license incompatibilities, not
91973         just the first one.
91975 2008-09-25  Bruno Haible  <bruno@clisp.org>
91977         * gnulib-tool (func_import): When computing the edits, consider not
91978         only the Makefile.ams that exist but also those that will be generated.
91980 2008-09-25  Simon Josefsson  <simon@josefsson.org>
91982         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
91983         fixes gnulib-tool --test warning about duplicate dependency.
91985 2008-09-25  Bruno Haible  <bruno@clisp.org>
91987         * gnulib-tool: Don't ask the user to perform edits in the generated
91988         Makefile.ams.
91989         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
91990         apply to the Makefile.am being generated.
91991         (func_emit_tests_Makefile_am): Execute edits that apply to the
91992         Makefile.am being generated.
91993         (func_import): Setup list of Makefile.am edits before emitting the
91994         Makefile.ams, not at the end.
91995         (func_create_testdir): Update.
91996         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
91998 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92000         * gnulib-tool (func_import): Store the --tests-base option in the
92001         comment in gnulib-cache.m4.
92003 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
92005         * NEWS: Document increased portability that sys_select now provides.
92007         * lib/sys_select.in.h: Install select wrapper.
92008         * lib/sys_socket.in.h: Use more descriptive name when there is no
92009         select wrapper.
92010         * lib/winsock-select.c: New.
92011         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
92012         Require gl_HEADER_SYS_SOCKET.
92013         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
92014         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
92015         * tests/test-sys_select.c: Add functional tests.
92017 2008-09-24  Eric Blake  <ebb9@byu.net>
92019         open, fopen: close fd leak in last patch
92020         * lib/open.c (rpl_open): Close fd before returning error.
92021         * lib/fopen.c (rpl_fopen): Close fd before returning error.
92022         * doc/posix-functions/open.texi (open): Document that Irix also
92023         has the bug.
92024         * doc/posix-functions/fopen.texi (fopen): Likewise.
92025         Reported by Paolo Bonzini.
92027 2008-09-24  Bruno Haible  <bruno@clisp.org>
92029         Ensure that a filename ending in a slash cannot be used to access a
92030         non-directory.
92031         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
92032         to check whether it's really a directory.
92033         * lib/fopen.c: Include fcntl.h, unistd.h.
92034         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
92035         and fdopen().
92036         * modules/fopen (Depends-on): Add unistd.
92037         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
92038         * tests/test-fopen.c (main): Likewise.
92039         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
92040         * doc/posix-functions/fopen.texi: Likewise.
92041         Reported by Eric Blake.
92043 2008-09-23  Eric Blake  <ebb9@byu.net>
92045         c-stack: avoid compiler optimizations when provoking overflow
92046         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
92047         recursion harder to optimize, to ensure a stack overflow occurs.
92048         * tests/test-c-stack.c (recurse): Likewise.
92049         Borrowed from libsigsegv.
92051         c-stack: work around Irix sigaltstack bug
92052         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
92053         whether sigaltstack uses wrong end of stack_t (copied in part from
92054         libsigsegv).
92055         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
92056         Irix bug, without requiring an over-allocation.
92057         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
92058         bug.
92060         fopen: document mingw bug on directories
92061         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
92062         not allowing a stream visiting a directory, even though reading
92063         from such a stream is not portable.
92065 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92067         * lib/poll.c: Rewrite.
92068         * modules/poll: Depend on alloca.
92070 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92072         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
92073         instead define prototypes for a full set of wrappers.  Ensure
92074         that Cygwin does not use the compatibility code, which is only
92075         for MinGW.
92076         * lib/winsock.c: New.
92077         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
92078         * modules/sys_socket: Add lib/winsock.c.
92080         * modules/poll-tests: Add errno and perror.
92081         * tests/test-poll.c: Use ioctl, not ioctlsocket.
92083 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
92085         * tests/test-poll.c: Downgrade minimum needed Winsock version.
92087 2008-09-23  Bruno Haible  <bruno@clisp.org>
92089         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
92090         * doc/glibc-functions/*: Likewise.
92092 2008-09-23  Simon Josefsson  <simon@josefsson.org>
92094         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
92095         success.
92097 2008-09-22  Eric Blake  <ebb9@byu.net>
92098             Bruno Haible  <bruno@clisp.org>
92100         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
92101         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
92102         supply %A but mishandle pseudo-NaN.
92103         Reported by Simon Josefsson.
92105 2008-09-21  Bruno Haible  <bruno@clisp.org>
92107         * tests/test-lock.c (main): Tweak skip message.
92108         * tests/test-tls.c (main): Likewise.
92110 2008-09-21  Bruno Haible  <bruno@clisp.org>
92112         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
92113         whether 'struct sigaction' has sa_sigaction here...
92114         (gl_PREREQ_SIG_HANDLER_H): ... not here.
92115         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
92117 2008-09-21  Bruno Haible  <bruno@clisp.org>
92119         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
92120         section.
92121         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
92122         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
92123         the new section.
92124         (Support for obsolete systems lacking POSIX:2001): New section.
92125         (String handling <string.h>): Move strdup to the new section.
92126         Suggested by Simon Josefsson and Paolo Bonzini.
92128 2008-09-21  Bruno Haible  <bruno@clisp.org>
92130         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
92131         exponents in %e and %g results on 'long double'. Needed for mingw's
92132         improved *printf functions.
92133         * tests/test-vasprintf-posix.c (test_function): Likewise.
92134         * tests/test-snprintf-posix.h (test_function): Likewise.
92135         * tests/test-sprintf-posix.h (test_function): Likewise.
92136         Reported by Eric Blake.
92138 2008-09-21  Bruno Haible  <bruno@clisp.org>
92140         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
92141         * tests/test-sprintf-posix.h (test_function): Likewise.
92143 2008-09-21  Bruno Haible  <bruno@clisp.org>
92145         * modules/getpass (Depends-on): Add strdup-posix.
92147         New module 'strdup-posix'.
92148         * modules/strdup-posix: New file.
92149         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
92150         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
92151         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
92152         REPLACE_STRDUP.
92153         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
92154         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
92155         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
92156         strdup-posix.
92158         * modules/strdup (Depends-on): Remove malloc-posix.
92160 2008-09-20  Bruno Haible  <bruno@clisp.org>
92162         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
92163         Wildenhues.
92165 2008-09-20  Bruno Haible  <bruno@clisp.org>
92167         Ensure that wint_t gets defined on IRIX 5.3.
92168         * lib/wchar.in.h (wint_t): Define if not defined by the system.
92169         * lib/wctype.in.h (wint_t): Likewise.
92170         (__wctype_wint_t): Remove type.
92171         (isw*): Use wint_t instead of __wctype_wint_t.
92172         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
92173         * modules/wchar (Files): Add m4/wint_t.m4.
92174         (Makefile.am): Substitute HAVE_WINT_T.
92175         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
92176         * tests/test-wctype.c: Check that wint_t is defined.
92177         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
92178         * doc/posix-headers/wctype.texi: Likewise.
92179         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
92181 2008-09-18  Bruno Haible  <bruno@clisp.org>
92183         * gnulib-tool (func_exit): Update comment.
92185 2008-09-18  Simon Josefsson  <simon@josefsson.org>
92187         * modules/getaddrinfo (Depends-on): Remove strdup, this module
92188         assumes strdup exists and does not depend on strdup to return
92189         ENOMEM on out of memory conditions.
92191 2008-09-18  Bruno Haible  <bruno@clisp.org>
92193         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
92194         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
92195         digits for the exponent.
92197 2008-09-18  Jim Meyering  <meyering@redhat.com>
92198             Bruno Haible  <bruno@clisp.org>
92200         * lib/vasnprintf.c (decimal_point_char): Define also if
92201         NEED_PRINTF_INFINITE_LONG_DOUBLE.
92203 2008-09-16  Bruno Haible  <bruno@clisp.org>
92204         and Eric Blake  <ebb9@byu.net>
92206         vasnprintf: support Irix 5.3
92207         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
92208         that mishandle long double infinity.
92209         Reported by Tom G. Christensen.
92211 2008-09-16  Bruno Haible  <bruno@clisp.org>
92213         * doc/glibc-functions/scandir.texi: Mention the function is missing on
92214         Solaris 9.
92215         * doc/glibc-functions/alphasort.texi: Likewise.
92216         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
92218 2008-09-16  Jim Meyering  <meyering@redhat.com>
92220         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
92221         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
92222         a umask modification leak out of a subshell.  Otherwise, the
92223         opensolaris /bin/sh would be accepted and thus cause unwarranted
92224         failures in the coreutils test suite.
92226 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
92228         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
92229         to succeed.
92231 2008-09-16  Jim Meyering  <meyering@redhat.com>
92233         avoid spurious test failure when library is built without ACL support
92234         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
92235         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
92236         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
92237         * tests/test-copy-acl.sh: Likewise.
92239 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92241         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
92242         based on character occurrence counts.
92244 2008-09-15  Eric Blake  <ebb9@byu.net>
92246         tests: avoid some compiler warnings
92247         * tests/test-memchr.c (main): Pass NULL indirectly.
92248         * tests/test-closein.c (main): Avoid unused variable.
92250 2008-09-15  Bruno Haible  <bruno@clisp.org>
92252         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
92253         are missing on OpenBSD 4.0 individually.
92254         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
92256 2008-09-15  Bruno Haible  <bruno@clisp.org>
92258         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
92259         * doc/posix-functions/strerror.texi: Mention also Cygwin.
92260         * doc/posix-functions/perror.texi: Likewise.
92261         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
92262         is missing.
92263         Reported by Eric Blake.
92265         * lib/errno.in.h: Use replacement values >= 2000.
92266         Reported by Eric Blake.
92268 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92270         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
92271         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
92272         limit.
92273         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
92274         compareseq was aborted.
92276 2008-09-14  Bruno Haible  <bruno@clisp.org>
92278         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
92279         yvec_edit_count.
92280         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
92281         (fstrcmp_bounded): Simplify result computation accordingly.
92283 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92285         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
92286         (fstrcmp): Define in terms of fstrcmp_bounded.
92287         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
92288         lower_bound argument.
92289         Return quickly if the result is certainly < lower_bound.
92290         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
92292 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92294         * lib/diffseq.h (EARLY_ABORT): New macro.
92295         (compareseq): Change return type to bool. Return true when EARLY_ABORT
92296         evaluates to true.
92298 2008-09-14  Bruno Haible  <bruno@clisp.org>
92300         * modules/perror-tests: New file.
92301         * tests/test-perror.sh: New file.
92302         * tests/test-perror.c: New file.
92304         New module 'perror'.
92305         * lib/stdio.in.h (perror): New declaration.
92306         * lib/perror.c: New file.
92307         * m4/perror.m4: New file.
92308         * modules/perror: New file.
92309         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
92310         * doc/posix-functions/perror.texi: Mention the perror module.
92311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
92312         REPLACE_PERROR.
92313         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
92314         REPLACE_PERROR.
92316 2008-09-14  Bruno Haible  <bruno@clisp.org>
92318         * modules/stdio (Makefile.am): Reorder to match the order in
92319         lib/stdio.in.h.
92320         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
92322 2008-09-13  Bruno Haible  <bruno@clisp.org>
92324         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
92326 2008-09-13  Bruno Haible  <bruno@clisp.org>
92328         Extend strerror to cover the added errno values.
92329         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
92330         (rpl_strerror): Provide error messages for the added errno values and
92331         for the WSA* values.
92332         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
92333         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
92334         strerror.
92335         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
92336         * modules/strerror (Depends-on): Add errno.
92337         * doc/posix-functions/strerror.texi: Document the change.
92338         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
92339         and EOVERFLOW.
92341 2008-09-13  Bruno Haible  <bruno@clisp.org>
92343         * modules/EOVERFLOW: Remove file.
92344         * m4/eoverflow.m4: Remove file.
92345         * modules/EOVERFLOW-tests: Remove file.
92346         * tests/test-EOVERFLOW.c: Remove file.
92347         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
92348         * modules/ftell (Depends-on): Likewise.
92349         * modules/getdelim (Depends-on): Likewise.
92350         * modules/getugroups (Depends-on): Likewise.
92351         * modules/poll (Depends-on): Likewise.
92352         * modules/snprintf (Depends-on): Likewise.
92353         * modules/sprintf-posix (Depends-on): Likewise.
92354         * modules/vasnprintf (Depends-on): Likewise.
92355         * modules/vasprintf (Depends-on): Likewise.
92356         * modules/vfprintf-posix (Depends-on): Likewise.
92357         * modules/vsnprintf (Depends-on): Likewise.
92358         * modules/vsprintf-posix (Depends-on): Likewise.
92359         * modules/xvasprintf (Depends-on): Likewise.
92360         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
92361         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
92362         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
92363         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
92364         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
92365         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
92366         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
92367         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
92368         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
92369         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
92370         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
92371         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
92372         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
92373         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
92374         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
92375         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
92376         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
92377         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
92378         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
92379         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
92380         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
92381         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
92382         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
92383         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
92384         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
92385         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
92386         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
92387         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
92388         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
92389         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
92390         * MODULES.html.sh: Remove EOVERFLOW.
92391         * NEWS: Mention the change.
92393 2008-09-13  Bruno Haible  <bruno@clisp.org>
92395         * modules/errno-tests: New file.
92396         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
92398         * lib/errno.in.h: New file.
92399         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
92400         * modules/errno: New file.
92401         * doc/posix-headers/errno.texi: Update documentation.
92402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
92404 2008-09-13  Bruno Haible  <bruno@clisp.org>
92406         * tests/test-poll.c: Use #if for native Windows, rather than testing
92407         __MSVCRT__.
92409 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92410             Bruno Haible  <bruno@clisp.org>
92412         * lib/glob.c: Don't include <pwd.h> on native Windows.
92413         (WINDOWS32): New macro.
92414         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
92416 2008-09-13  Bruno Haible  <bruno@clisp.org>
92418         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
92419         (ETIMEDOUT): Remove macro.
92420         (glthread_cond_timedwait_multithreaded): New declaration.
92421         (glthread_cond_timedwait): Use it.
92422         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
92423         (glthread_cond_timedwait_multithreaded): New function.
92425 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92427         * modules/poll-tests: Do not check for io.h.
92428         * tests/test-poll.c: Check for __MSVCRT__ instead.
92430 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92432         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
92433         * modules/poll-tests: Add inet_pton, stdbool, sockets.
92434         * tests/test-poll.c: Use them.  Use _pipe on Windows.
92436 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
92438         * modules/poll-tests: New.
92439         * tests/test-poll.c: New.
92441 2008-09-12  Eric Blake  <ebb9@byu.net>
92443         frexp: test for NetBSD failure on -0.0
92444         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
92445         not all, bugs from NetBSD 3.0 have been fixed.
92446         * doc/posix-functions/frexp.texi (frexp): Document bug.
92447         Reported by Thomas Klausner.
92449         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
92450         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
92451         literal -0.0.
92452         Reported by Jonathan C. Patschke <jp@centtech.com>.
92454 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92456         * lib/glthread/cond.h: Use dummy implementation also if
92457         USE_WIN32_THREADS.
92459 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92461         * modules/fnmatch-posix (License): Change to LGPLv2+.
92462         * modules/fnmatch-gnu (License): Likewise.
92464 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92466         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
92468 2008-09-11  Jim Meyering  <meyering@redhat.com>
92470         * users.txt: Add gtk-vnc.
92472 2008-09-08  Simon Josefsson  <simon@josefsson.org>
92474         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
92475         rotate amounts.
92477         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
92478         required for 16-bit and 8-bit rotates.
92479         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
92480         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
92481         UINT8_MAX instead of hard-coded constants.
92482         Suggested by Paul Eggert.
92484 2008-09-07  Bruno Haible  <bruno@clisp.org>
92486         * tests/test-striconveh.c (main): Check behaviour when converting from
92487         UTF-7.
92489         Make striconveh work better with stateful encodings.
92490         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
92491         that iconv does not increment the inptr when returning -1/EINVAL.
92493 2008-09-07  Bruno Haible  <bruno@clisp.org>
92495         * build-aux/config.rpath: Update according to libtool-2.2.6.
92496         * build-aux/config.libpath: Likewise.
92498 2008-09-06  Bruno Haible  <bruno@clisp.org>
92500         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
92501         * lib/freadptr.c (freadptr): Likewise.
92502         * lib/freadseek.c (freadptrinc): Likewise.
92503         Reported by Simon Josefsson.
92505 2008-09-06  Bruno Haible  <bruno@clisp.org>
92507         * modules/freadptr (License): Change to LGPLv2+.
92508         * modules/freadseek (License): Likewise.
92509         Suggested by Eric Blake.
92511         * modules/memchr2 (License): Change to LGPLv2+.
92512         Approved by Eric Blake.
92514 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
92515             Bruno Haible  <bruno@clisp.org>
92517         Make gnulib-tool work with native 'sed' on AIX.
92518         * gnulib-tool (sed_noop): New variable.
92519         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
92520         func_add_or_update, func_create_testdir): Use it to initialize sed
92521         script variables.
92522         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
92524 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
92525             Bruno Haible  <bruno@clisp.org>
92527         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
92528         also works after #include directives.
92530 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
92532         getdate.y: reject an out-of-range timezone value
92533         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
92534         the range [-24...+24].  When specified with only one or two digits,
92535         * tests/test-getdate.c: Tests for the fix.
92536         * doc/getdate.texi: Document this change.
92538 2008-09-03  Bruno Haible  <bruno@clisp.org>
92540         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
92542 2008-09-02  Simon Josefsson  <simon@josefsson.org>
92544         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
92545         <bruce.korb@gmail.com> with ideas from Ben Pfaff
92546         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
92547         Blake <ebb9@byu.net>.
92549         * tests/test-bitrotate.c: Add more test vectors.
92551 2008-09-02  Eric Blake  <ebb9@byu.net>
92553         vasnprintf-posix: handle large precision via %.*d
92554         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
92555         when handling it ourselves.
92556         * tests/test-vasnprintf-posix.c (test_function): Add test.
92557         * tests/test-snprintf-posix.h (test_function): Likewise.
92558         * tests/test-sprintf-posix.h (test_function): Likewise.
92559         * tests/test-vasprintf-posix.c (test_function): Likewise.
92560         Reported by Alain Guibert.
92562 2008-09-01  Eric Blake  <ebb9@byu.net>
92564         c-stack: make configure-time check more robust
92565         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
92566         successful sigaction call.
92567         Reported by Tom G. Christensen.
92569 2008-09-01  Bruno Haible  <bruno@clisp.org>
92571         New module 'findprog-lgpl'.
92572         * modules/findprog-lgpl: New file.
92573         * lib/findprog-lgpl.c: New file.
92574         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
92575         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
92576         to decide whether to use strdup or xstrdup, concatenated_filename or
92577         xconcatenated_filename.
92579 2008-09-01  Bruno Haible  <bruno@clisp.org>
92581         Split module 'concat-filename' into 'concat-filename' (LGPL) and
92582         'xconcat-filename' (GPL).
92583         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
92584         (License): Change to LGPLv2+.
92585         * modules/xconcat-filename: New file.
92586         * lib/concat-filename.h (concatenated_filename): Change specification.
92587         (xconcatenated_filename): New declaration.
92588         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
92589         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
92590         memory situations.
92591         * lib/xconcat-filename.c: New file.
92592         * NEWS: Mention the change.
92593         * lib/findprog.c: Include concat-filename.h, not filename.h.
92594         (find_in_path): Use xconcatenated_filename instead of
92595         concatenated_filename.
92596         * lib/javacomp.c: Include concat-filename.h, not filename.h.
92597         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
92598         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
92599         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
92600         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
92601         instead of concatenated_filename.
92602         * lib/javaexec.c: Include concat-filename.h, not filename.h.
92603         (execute_java_class): Use xconcatenated_filename instead of
92604         concatenated_filename.
92605         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
92606         * modules/javacomp (Depends-on): Likewise.
92607         * modules/javaexec (Depends-on): Likewise.
92609 2008-09-01  Bruno Haible  <bruno@clisp.org>
92611         Split module 'filename' into 'filename' and 'concat-filename'.
92612         * modules/filename: Keep only lib/filename.h.
92613         (License): Change to LGPLv2+.
92614         * modules/concat-filename: New file, extracted from modules/filename.
92615         * lib/filename.h (concatenated_filename): Remove declaration.
92616         * lib/concat-filename.h: New file, extracted from lib/filename.h.
92617         * lib/concat-filename.c: Include concat-filename.h.
92618         * NEWS: Mention the change.
92620 2008-09-01  Simon Josefsson  <simon@josefsson.org>
92622         * lib/bitrotate.h (rotl8, rotr8): Add.
92624         * modules/bitrotate (configure.ac): Need
92625         AC_REQUIRE([AC_C_INLINE]).
92626         (Description): Mention stdint.h.  Reported by Bruno Haible
92627         <bruno@clisp.org>.
92629         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
92630         Paolo Bonzini <bonzini@gnu.org>.
92632 2008-08-31  Bruno Haible  <bruno@clisp.org>
92634         Assume Solaris specific bi-arch conventions on Solaris systems.
92635         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
92636         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
92637         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
92638         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
92639         like acl_libdirstem.
92640         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
92641         acl_libdirstem.
92642         * NEWS: Mention the change.
92643         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
92645 2008-08-31  Jim Meyering  <meyering@redhat.com>
92647         * lib/strftime.h: Add comments describing the two added arguments.
92649         remove duplicate #include directives
92650         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
92651         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
92653 2008-08-31  Bruno Haible  <bruno@clisp.org>
92655         New module 'sigpipe-die'.
92656         * modules/sigpipe-die: New file.
92657         * lib/sigpipe-die.h: New file.
92658         * lib/sigpipe-die.c: New file.
92659         * MODULES.html.sh (Signal handling): Add sigpipe-die.
92661 2008-08-31  Bruno Haible  <bruno@clisp.org>
92663         Don't override previously installed signal handlers.
92664         * lib/fatal-signal.c (saved_sigactions): New variable.
92665         (uninstall_handlers): Reset the signal to the saved handler, not
92666         to SIG_DFL (except when ignored).
92667         (install_handlers): Save the previous handlers.
92669 2008-08-30  Bruno Haible  <bruno@clisp.org>
92671         * gnulib-tool (func_reset_sigpipe): New function.
92672         (func_get_automake_snippet, func_modules_transitive_closure,
92673         func_import): Invoke it before a join command that reads from stdin,
92674         to avoid "echo: write error: Broken pipe" error messages on stderr.
92675         Reported by Sam Steingold <sds@gnu.org>.
92677 2008-08-30  Bruno Haible  <bruno@clisp.org>
92679         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
92680         Code copied from m4/open.m4.
92681         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
92682         access and the filename ends in a slash. Code copied from lib/open.c.
92683         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
92684         * tests/test-fopen.c (main): Check against bug with trailing slash.
92686 2008-08-29  Bruno Haible  <bruno@clisp.org>
92688         Avoid some "gcc -pedantic" warnings.
92689         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
92690         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
92691         * lib/dirent.in.h: Likewise.
92692         * lib/fcntl.in.h: Likewise.
92693         * lib/float.in.h: Likewise.
92694         * lib/iconv.in.h: Likewise.
92695         * lib/inttypes.in.h: Likewise.
92696         * lib/locale.in.h: Likewise.
92697         * lib/math.in.h: Likewise.
92698         * lib/netinet_in.in.h: Likewise.
92699         * lib/search.in.h: Likewise.
92700         * lib/signal.in.h: Likewise.
92701         * lib/stdarg.in.h: Likewise.
92702         * lib/stdint.in.h: Likewise.
92703         * lib/stdio.in.h: Likewise.
92704         * lib/stdlib.in.h: Likewise.
92705         * lib/string.in.h: Likewise.
92706         * lib/strings.in.h: Likewise.
92707         * lib/sys_select.in.h: Likewise.
92708         * lib/sys_socket.in.h: Likewise.
92709         * lib/sys_stat.in.h: Likewise.
92710         * lib/sys_time.in.h: Likewise.
92711         * lib/sysexits.in.h: Likewise.
92712         * lib/time.in.h: Likewise.
92713         * lib/unistd.in.h: Likewise.
92714         * lib/wchar.in.h: Likewise.
92715         * lib/wctype.in.h: Likewise.
92716         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
92717         * modules/fchdir (Makefile.am): Likewise.
92718         * modules/fcntl (Makefile.am): Likewise.
92719         * modules/float (Makefile.am): Likewise.
92720         * modules/iconv_open (Makefile.am): Likewise.
92721         * modules/inttypes (Makefile.am): Likewise.
92722         * modules/locale (Makefile.am): Likewise.
92723         * modules/math (Makefile.am): Likewise.
92724         * modules/netinet_in (Makefile.am): Likewise.
92725         * modules/search (Makefile.am): Likewise.
92726         * modules/signal (Makefile.am): Likewise.
92727         * modules/stdarg (Makefile.am): Likewise.
92728         * modules/stdint (Makefile.am): Likewise.
92729         * modules/stdio (Makefile.am): Likewise.
92730         * modules/stdlib (Makefile.am): Likewise.
92731         * modules/string (Makefile.am): Likewise.
92732         * modules/strings (Makefile.am): Likewise.
92733         * modules/sys_select (Makefile.am): Likewise.
92734         * modules/sys_socket (Makefile.am): Likewise.
92735         * modules/sys_stat (Makefile.am): Likewise.
92736         * modules/sys_time (Makefile.am): Likewise.
92737         * modules/sysexits (Makefile.am): Likewise.
92738         * modules/time (Makefile.am): Likewise.
92739         * modules/unistd (Makefile.am): Likewise.
92740         * modules/wchar (Makefile.am): Likewise.
92741         * modules/wctype (Makefile.am): Likewise.
92742         Reported by Reuben Thomas <rrt@sc3d.org>.
92744 2008-08-29  Bruno Haible  <bruno@clisp.org>
92746         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
92747         any more.
92749 2008-08-29  Simon Josefsson  <simon@josefsson.org>
92751         * MODULES.html.sh (Misc): Add bitrotate.
92753         * modules/bitrotate: New file.
92755         * lib/bitrotate.h: New file.
92757         * modules/bitrotate-tests: New file.
92759         * tests/test-bitrotate.c: New file.
92761         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
92762         on the bitrotate module.
92764         * lib/arctwo.c: Use new bitrotate module.
92766 2008-08-29  Jim Meyering  <meyering@redhat.com>
92768         bootstrap: merge changes from coreutils
92769         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
92770         of copied files.  Remove a kludge, now that this is fixed.
92771         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
92772         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
92773         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
92775 2008-08-29  Bruno Haible  <bruno@clisp.org>
92777         * MODULES.html.sh: Remove --cvs-urls option.
92779 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
92781         maint.mk: adjust to file name change
92782         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
92784 2008-08-28  Jim Meyering  <meyering@redhat.com>
92786         * modules/getndelim2 (License): Relicense to LGPLv2+.
92787         Approved by Richard Stallman for the version of 1995, and by
92788         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
92790 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
92792         * lib/getdelim.c (flockfile, funlockfile): Make all of them
92793         dummy if one is not available.  Do not touch them if
92794         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
92795         (getc_maybe_unlocked): New.
92796         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
92798 2008-08-26  Eric Blake  <ebb9@byu.net>
92800         doc/INSTALL: resync from autoconf
92801         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
92802         (INSTALL_PRELUDE): Delete; this is done more efficiently by
92803         moving...
92804         * install.texi [!autoconf]: ...here.  Resync from autoconf.
92805         * INSTALL: Regenerate.
92806         * INSTALL.ISO: New file.
92807         * INSTALL.UTF-8: Likewise.
92809 2008-08-26  Jim Meyering  <meyering@redhat.com>
92811         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
92812         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
92813         these definitions conditional, so that they may be overridden, too.
92815 2008-08-26  Bruno Haible  <bruno@clisp.org>
92817         Generate INSTALL file variants with prettier quotes.
92818         * doc/Makefile (INSTALL_PRELUDE): New macro.
92819         (INSTALL): Use it.
92820         (INSTALL.ISO, INSTALL.UTF-8): New rules.
92822 2008-08-26  Bruno Haible  <bruno@clisp.org>
92824         Run makeinfo in an English locale.
92825         * doc/Makefile (MAKEINFO): New variable.
92827 2008-08-26  Bruno Haible  <bruno@clisp.org>
92829         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
92830         Suggested by Eric Blake.
92832 2008-08-25  Bruno Haible  <bruno@clisp.org>
92834         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
92836 2008-08-25  Eric Blake  <ebb9@byu.net>
92838         c-stack: test that stack overflow can be caught
92839         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
92840         that platform allows handling stack overflow; at least OS/2 EMX
92841         has sigaltstack, but crashes before transferring control to
92842         handler on stack overflow.
92843         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
92844         check for HAVE_STACK_OVERFLOW_HANDLING.
92845         Reported by Elbert Pol.
92847 2008-08-25  Bruno Haible  <bruno@clisp.org>
92849         * doc/posix-functions/strftime.texi: Fix description of strftime
92850         module.
92852 2008-08-24  Bruno Haible  <bruno@clisp.org>
92854         * tests/uniwidth/test-uc_width2.c: New file.
92855         * tests/uniwidth/test-uc_width2.sh: New file.
92856         * modules/uniwidth/width-tests (Files): Add the new files.
92857         (TESTS): Add uniwidth/test-uc_width2.sh.
92858         (TESTS_ENVIRONMENT): New variable.
92859         (check_PROGRAMS): Add test-uc_width2.
92860         (test_uc_width2_SOURCES): New variable.
92862         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
92863         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
92864         not 0x00AB.
92865         Reported by Alexander V. Lukyanov <lav@netis.ru>.
92867 2008-08-22  Eric Blake  <ebb9@byu.net>
92869         test-lock, test-tls: mention why a test is skipped
92870         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
92871         skipped.
92872         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
92874         count-one-bits: relax license
92875         * modules/count-one-bits (License): Relicense to LGPLv2+.
92876         Suggested by Ludovic Courtès, approved by Ben Pfaff.
92878 2008-08-22  Andreas Schwab  <schwab@suse.de>
92880         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
92881         Remove spurious space in assignment.
92883 2008-08-21  Simon Josefsson  <simon@josefsson.org>
92885         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
92886         Paul Eggert <eggert@CS.UCLA.EDU>.
92888 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
92890         * modules/gettext: Add m4/threadlib.m4.
92892 2008-08-19  Eric Blake  <ebb9@byu.net>
92894         test-c-stack: fix compilation failure on FreeBSD 5.0
92895         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
92896         headers before <sys/resource.h>.
92897         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
92898         the bug.
92899         Reported by Nelson H. F. Beebe.
92901         strverscmp: migrate from "strverscmp.h" to <string.h>
92902         * modules/string (Makefile.am): Add new hooks.
92903         * modules/strverscmp (Files): Remove strverscmp.h.
92904         (Depends-on): Add string.
92905         (configure.ac): Add indicator.
92906         (Include): Mention new header.
92907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
92908         defaults.
92909         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
92910         results.
92911         * lib/strverscmp.h: Delete.
92912         * lib/string.in.h (strverscmp): Provide declaration, when needed.
92913         * tests/test-strverscmp.c (includes): Adjust client.
92914         * lib/check-version.c (includes): Likewise.
92915         * NEWS: Document the change.
92917         strverscmp: add unit test
92918         * modules/strverscmp-tests: New file.
92919         * tests/test-strverscmp.c: Likewise.
92921 2008-08-19  Simon Josefsson  <simon@josefsson.org>
92923         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
92924         regarding Windows crypto stuff, from Mono.
92926 2008-08-19  Adam Strzelecki  <ono@java.pl>  (tiny change)
92928         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
92929         if present, for intel RND.  Return error on failures.
92931 2008-08-18  Ben Pfaff  <blp@gnu.org>
92933         gitlog-to-changelog: give better diagnostic for failed pipe-open
92934         * build-aux/gitlog-to-changelog: Improve error message: suggest
92935         that the version of Git may be too old.
92937 2008-08-18  Simon Josefsson  <simon@josefsson.org>
92939         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
92940         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
92942 2008-08-18  Bruno Haible  <bruno@clisp.org>
92944         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
92945         pthread_in_use().
92947 2008-08-18  Bruno Haible  <bruno@clisp.org>
92949         * lib/glthread/threadlib.c: Include <pthread.h>.
92951 2008-08-18  Bruno Haible  <bruno@clisp.org>
92953         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
92954         glthread_recursive_lock_* macros.
92955         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
92956         Fix syntax error.
92958 2008-08-18  Bruno Haible  <bruno@clisp.org>
92960         * lib/glthread/thread.c: Avoid forcing a context switch right after
92961         thread creation.
92963 2008-08-17  Bruno Haible  <bruno@clisp.org>
92965         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
92966         * lib/glthread/thread.h: Provide Win32 specific implementation.
92967         * modules/thread (Files): Add lib/glthread/thread.c.
92968         (Depends-on): Add lock.
92969         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
92971 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92973         New module 'yield'.
92974         * modules/yield: New file.
92975         * lib/glthread/yield.h: New file.
92976         * m4/yield.m4: New file.
92977         * MODULES.html.sh (Multithreading): Add yield.
92979 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92981         New module 'thread'.
92982         * modules/thread: New file.
92983         * lib/glthread/thread.h: New file.
92984         * m4/thread.m4: New file.
92985         * MODULES.html.sh (Multithreading): Add thread.
92987 2008-08-17  Bruno Haible  <bruno@clisp.org>
92989         * lib/glthread/lock.h: Include <stdlib.h> always.
92990         * lib/glthread/tls.h: Likewise.
92991         * lib/glthread/cond.h: Likewise.
92993 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
92995         New module 'cond'.
92996         * modules/cond: New file.
92997         * lib/glthread/cond.h: New file.
92998         * lib/glthread/cond.c: New file.
92999         * m4/cond.m4: New file.
93000         * MODULES.html.sh (Multithreading): Add cond.
93002 2008-08-16  Eric Blake  <ebb9@byu.net>
93004         c-stack: fix regression on Irix 5.3 from 2008-06-21
93005         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
93006         sa_sigaction...
93007         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
93008         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
93009         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
93010         * modules/signal (Makefile.am): Use the value.
93011         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
93012         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
93013         * doc/posix-headers/signal.texi (signal.h): Document this
93014         portability issue.
93015         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
93016         Reported by Tom G. Christensen.
93018 2008-08-17  Bruno Haible  <bruno@clisp.org>
93020         New module 'threadlib'.
93021         * modules/threadlib: New file.
93022         * lib/glthread/threadlib.c: New file, extracted from
93023         lib/glthread/lock.c.
93024         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
93025         functions.
93026         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
93027         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
93028         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
93029         macros.
93030         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
93031         (gl_DISABLE_THREADS): Remove macro.
93032         * modules/lock (Files): Remove build-aux/config.rpath.
93033         (Depends-on): Remove havelib. Add threadlib.
93034         (configure.ac-early): Remove section.
93035         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
93036         * modules/tls (Depends-on): Remove lock. Add threadlib.
93037         (Link): New section, copied from threadlib.
93038         * MODULES.html.sh (Multithreading): Add threadlib.
93040 2008-08-14  Bruno Haible  <bruno@clisp.org>
93042         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
93043         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
93044         glthread_rwlock_unlock, glthread_rwlock_destroy,
93045         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
93046         glthread_recursive_lock_destroy): Define as macros always.
93047         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
93048         glthread_lock_lock.
93049         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
93050         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
93051         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
93052         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
93053         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
93054         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
93055         (glthread_recursive_lock_lock_func): Renamed from
93056         glthread_recursive_lock_lock.
93057         (glthread_recursive_lock_unlock_func): Renamed from
93058         glthread_recursive_lock_unlock.
93059         (glthread_recursive_lock_destroy_func): Renamed from
93060         glthread_recursive_lock_destroy.
93062 2008-08-14  Bruno Haible  <bruno@clisp.org>
93064         * lib/glthread/lock.h: Renamed from lib/lock.h.
93065         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
93066         * lib/glthread/tls.h: Renamed from lib/tls.h.
93067         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
93068         * lib/fstrcmp.c: Update includes.
93069         * lib/strsignal.c: Update includes.
93070         * modules/lock (Files, Makefile.am): Update.
93071         (Include): Change to "glthread/lock.h".
93072         * modules/tls (Files, Makefile.am): Update.
93073         (Include): Change to "glthread/tls.h".
93074         * tests/test-lock.c: Update includes.
93075         * tests/test-tls.c: Update includes.
93076         * NEWS: Mention the renamed header files.
93078 2008-08-11  Jim Meyering  <meyering@redhat.com>
93080         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
93082 2008-08-11  Eric Blake  <ebb9@byu.net>
93084         test-c-stack: avoid C99-ism
93085         * tests/test-c-stack.c (main): Fix whitespace, move declaration
93086         before statement.
93087         Reported by Alain Guibert.
93089 2008-08-10  Jim Meyering  <meyering@redhat.com>
93091         ensure that return value of uinttostr et al are not ignored
93092         * lib/inttostr.h (__GNUC_PREREQ): Define.
93093         (__attribute_warn_unused_result__): Define.
93094         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
93096 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
93098         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
93099         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
93101 2008-08-07  Jim Meyering  <meyering@redhat.com>
93103         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
93105         * modules/mkstemp (License): Relicense under LGPLv2+.
93106         * modules/tempname (License): Likewise.
93108 2008-08-06  Bruno Haible  <bruno@clisp.org>
93110         * lib/poll.c (poll): Further micro-optimization.
93112 2008-08-06  Jim Meyering  <meyering@redhat.com>
93114         inet_pton.c: use locale-independent tolower
93115         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
93116         (inet_pton6): Use c_tolower rather than tolower.
93117         * modules/inet_pton (Depends-on): Add c-ctype.
93119 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
93121         * lib/poll.c (poll): Avoid division when timeout is 0, cache
93122         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
93124 2008-08-06  Jim Meyering  <meyering@redhat.com>
93126         * modules/inet_pton (License): Relicense under LGPLv2+.
93128 2008-08-03  Bruno Haible  <bruno@clisp.org>
93130         Additional non-aborting API for lock and tls.
93131         * lib/lock.h: Include <errno.h>.
93132         (glthread_lock_init): New macro/function.
93133         (gl_lock_init): Define as wrapper around glthread_lock_init.
93134         (glthread_lock_lock): New macro/function.
93135         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
93136         (glthread_lock_unlock): New macro/function.
93137         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
93138         (glthread_lock_destroy): New macro/function.
93139         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
93140         (glthread_rwlock_init): New macro/function.
93141         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
93142         (glthread_rwlock_rdlock): New macro/function.
93143         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
93144         (glthread_rwlock_wrlock): New macro/function.
93145         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
93146         (glthread_rwlock_unlock): New macro/function.
93147         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
93148         (glthread_rwlock_destroy): New macro/function.
93149         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
93150         (glthread_recursive_lock_init): New macro/function.
93151         (gl_recursive_lock_init): Define as wrapper around
93152         glthread_recursive_lock_init.
93153         (glthread_recursive_lock_lock): New macro/function.
93154         (gl_recursive_lock_lock): Define as wrapper around
93155         glthread_recursive_lock_lock.
93156         (glthread_recursive_lock_unlock): New macro/function.
93157         (gl_recursive_lock_unlock): Define as wrapper around
93158         glthread_recursive_lock_unlock.
93159         (glthread_recursive_lock_destroy): New macro/function.
93160         (gl_recursive_lock_destroy): Define as wrapper around
93161         glthread_recursive_lock_destroy.
93162         (glthread_once): New macro/function.
93163         (gl_once): Define as wrapper around glthread_once.
93164         Update function declarations.
93165         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
93166         glthread_rwlock_init. Return error code.
93167         (glthread_rwlock_rdlock_multithreaded): Renamed from
93168         glthread_rwlock_rdlock. Return error code.
93169         (glthread_rwlock_wrlock_multithreaded): Renamed from
93170         glthread_rwlock_wrlock. Return error code.
93171         (glthread_rwlock_unlock_multithreaded): Renamed from
93172         glthread_rwlock_unlock. Return error code.
93173         (glthread_rwlock_destroy_multithreaded): Renamed from
93174         glthread_rwlock_destroy. Return error code.
93175         (glthread_recursive_lock_init_multithreaded): Renamed from
93176         glthread_recursive_lock_init. Return error code.
93177         (glthread_recursive_lock_lock_multithreaded): Renamed from
93178         glthread_recursive_lock_lock. Return error code.
93179         (glthread_recursive_lock_unlock_multithreaded): Renamed from
93180         glthread_recursive_lock_unlock. Return error code.
93181         (glthread_recursive_lock_destroy_multithreaded): Renamed from
93182         glthread_recursive_lock_destroy. Return error code.
93183         (glthread_once_call): Make static.
93184         (glthread_once_multithreaded): Renamed from glthread_once.
93185         * lib/tls.h: Include <errno.h>.
93186         (glthread_tls_key_init): New macro/function.
93187         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
93188         (glthread_tls_set): New macro/function.
93189         (gl_tls_set): Define as wrapper around glthread_tls_set.
93190         (glthread_tls_key_destroy): New macro/function.
93191         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
93192         Update function declarations.
93193         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
93194         glthread_tls_get.
93195         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
93197 2008-08-04  Eric Blake  <ebb9@byu.net>
93199         gnumakefile: use space, not TAB, outside of targets
93200         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
93202 2008-08-02  Jim Meyering  <meyering@redhat.com>
93204         getdate.y: avoid locale-dependent date parsing failure
93205         In Turkish locales, getdate would fail to recognize keywords
93206         containing a lowercase "i".  The solution is not to rely on
93207         locale-sensitive case-conversion.
93208         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
93209         (lookup_word): Use c_toupper in place of toupper.
93210         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
93211         Reported by Vefa Bicakci <bicave@superonline.com> in
93212         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
93213         * modules/getdate (Depends-on): Add c-ctype.
93215 2008-08-02  Bruno Haible  <bruno@clisp.org>
93217         * gnulib-tool (func_import): When updating or creating a .gitignore
93218         file, prepend each added line with a slash, and ignore leading slashes
93219         from the existing lines.
93220         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
93222 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93224         Portability fix for GNU make 3.79.1.
93225         * top/GNUmakefile: Avoid 'else COND', which older GNU make
93226         versions do not understand.
93228 2008-08-01  Bruno Haible  <bruno@clisp.org>
93230         Work around bug of HP-UX 10.20 cc with -0.0 literal.
93231         * tests/test-isnanf.h (zero): New variable.
93232         (main): Avoid literal -0.0f.
93233         * tests/test-isnand.h (zero): New variable.
93234         (main): Avoid literal -0.0.
93235         * tests/test-isnanl.h (zero): New variable.
93236         (main): Avoid literal -0.0L.
93237         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
93238         (test_float, test_double, test_long_double): Avoid literals -0.0f,
93239         -0.0, -0.0L.
93240         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
93241         (test_signbitd): Avoid literal -0.0.
93242         (test_signbitl): Avoid literal -0.0L.
93243         * tests/test-ceilf1.c (zero): New variable.
93244         (main): Avoid literal -0.0f.
93245         * tests/test-ceill.c (zero): New variable.
93246         (main): Avoid literal -0.0L.
93247         * tests/test-floorf1.c (zero): New variable.
93248         (main): Avoid literal -0.0f.
93249         * tests/test-floorl.c (zero): New variable.
93250         (main): Avoid literal -0.0L.
93251         * tests/test-roundf1.c (zero): New variable.
93252         (main): Avoid literal -0.0f.
93253         * tests/test-round1.c (zero): New variable.
93254         (main): Avoid literal -0.0.
93255         * tests/test-roundl.c (zero): New variable.
93256         (main): Avoid literal -0.0L.
93257         * tests/test-truncf1.c (zero): New variable.
93258         (main): Avoid literal -0.0f.
93259         * tests/test-trunc1.c (zero): New variable.
93260         (main): Avoid literal -0.0.
93261         * tests/test-truncl.c (zero): New variable.
93262         (main): Avoid literal -0.0L.
93263         * tests/test-frexp.c (zero): New variable.
93264         (main): Avoid literal -0.0.
93265         * tests/test-frexpl.c (zero): New variable.
93266         (main): Avoid literal -0.0L.
93267         * tests/test-ldexpl.c (zero): New variable.
93268         (main): Avoid literal -0.0L.
93269         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93270         (zerod, zerol): New variables.
93271         (test_function): Avoid literals -0.0, -0.0L.
93272         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
93273         (zerod, zerol): New variables.
93274         (test_function): Avoid literals -0.0, -0.0L.
93275         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93276         (zerod, zerol): New variables.
93277         (test_function): Avoid literals -0.0, -0.0L.
93278         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
93279         (zerod, zerol): New variables.
93280         (test_function): Avoid literals -0.0, -0.0L.
93281         * tests/test-strtod.c (zero): New variable.
93282         (main): Avoid literal -0.0.
93283         Reported by Jonathan C. Patschke <jp@centtech.com>.
93285 2008-07-31  Jim Meyering  <meyering@redhat.com>
93287         sha256.h: correct definition of SHA224_DIGEST_SIZE
93288         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
93289         Reported by Paulie Pena IV <paulie4@gmail.com>.
93290         Define as 224 / 8, rather than as a literal.
93291         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
93292         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
93293         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
93295 2008-07-31  Bruno Haible  <bruno@clisp.org>
93297         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
93298         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
93299         Reported by Jonathan Patschke <jp@centtech.com>.
93301 2008-07-31  Bruno Haible  <bruno@clisp.org>
93303         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
93304         Reported by Paolo Bonzini <bonzini@gnu.org>.
93306 2008-07-30  Eric Blake  <ebb9@byu.net>
93308         test-strtod: allow compilation without -lm
93309         * tests/test-strtod.c (main): Avoid link dependence on fabs.
93310         Reported by Dennis Clarke <blastwave@gmail.com>.
93312 2008-07-28  Jim Meyering  <meyering@redhat.com>
93314         bootstrap: work also when there are no .po files in po/
93315         * build-aux/bootstrap (update_po_files): Complete the change
93316         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
93318 2008-07-27  Jim Meyering  <meyering@redhat.com>
93320         * users.txt: Add zile.
93322 2008-07-26  Ben Pfaff  <blp@gnu.org>
93324         Add missing dependencies on new m4/exponent[fdl].m4 files.
93325         * modules/isnanf-nolibm: Add m4/exponentf.m4.
93326         * modules/isnand-nolibm: Add m4/exponentd.m4.
93327         * modules/isnanl-nolibm: Add m4/exponentl.m4.
93328         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
93329         m4/isnan[fdl].m4, because the macros actually used moved.
93330         Reported by Jim Meyering.
93332 2008-07-14  Ben Pfaff  <blp@gnu.org>
93334         Add isinf module.
93335         * lib/isinf.c: New file.
93336         * lib/math.in.h: Define isinf macro if we have decided to replace
93337         it.
93338         * m4/isinf.m4: New file.
93339         * m4/math_h.m4: Initialize and substitute variables for isinf
93340         module.
93341         * modules/isinf: New file.
93342         * modules/isinf-tests: New file.
93343         * modules/math: Add substitutions for new module.
93344         * tests/test-isinf.c: New file.
93345         * doc/posix-functions/isinf.texi: Mention new module.
93346         * MODULES.html.sh: Mention new module.
93348 2008-07-14  Ben Pfaff  <blp@gnu.org>
93350         Factor out some macros for use by additional modules.
93351         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
93352         exponentf.m4.
93353         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
93354         exponentd.m4.
93355         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
93356         file exponentl.m4.
93357         * m4/exponentf.m4: New file.
93358         * m4/exponentd.m4: New file.
93359         * m4/exponentl.m4: New file.
93360         * modules/isnanf: Use new file m4/exponentf.m4.
93361         * modules/isnand: Use new file m4/exponentd.m4.
93362         * modules/isnanl: Use new file m4/exponentl.m4.
93364 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
93366         mktime.c: normalize tp->tm_isdst value to -1/0/1.
93367         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
93368         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
93369         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
93371         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
93372         readlink on platforms without PATH_MAX.
93374 2008-07-21  Eric Blake  <ebb9@byu.net>
93376         Warn, not fail, on stale version.
93377         * top/GNUmakefile (_curr-ver): Tone down previous patch.
93379         Don't allow installation with stale devel version number.
93380         * top/GNUmakefile (_is-install-target): New macro.
93381         (_curr-ver): Forbid installation with stale version number.
93383 2008-07-20  Bruno Haible  <bruno@clisp.org>
93385         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
93386         TESTS_ENVIRONMENT.
93387         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
93389 2008-07-20  Bruno Haible  <bruno@clisp.org>
93391         * lib/c-stack.h (c_stack_action): Add documentation.
93392         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
93394 2008-07-20  Bruno Haible  <bruno@clisp.org>
93396         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
93397         * modules/readlink (License): Likewise.
93399 2008-07-17  Eric Blake  <ebb9@byu.net>
93401         * modules/c-stack (Link): Fix typo.
93403         Make c-stack use libsigsegv, when available.
93404         * modules/c-stack (Depends-on): Add libsigsegv.
93405         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
93406         needed.
93407         * lib/c-stack.c (SIGSTKSZ): Define fallback.
93408         (segv_handler, overflow_handler, c_stack_action)
93409         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
93410         implementation when libsigsegv is available, but only when using
93411         the library is necessary.
93412         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
93413         comment, explaining why XSI check fails on Linux.
93414         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
93415         * tests/test-c-stack2.sh: Tweak skip message.
93416         * NEWS: Document new link-time requirements.
93418 2008-07-16  Eric Blake  <ebb9@byu.net>
93420         c-stack: Expose false positives when not using libsigsegv.
93421         * modules/c-stack-tests (Files): Expand test.
93422         * tests/test-c-stack.c (main): Add means to conditionally trigger
93423         non-overflow SIGSEGV.
93424         * tests/test-c-stack2.sh: New file.
93426 2008-07-14  Bruno Haible  <bruno@clisp.org>
93428         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
93429         Reported by Eric Blake.
93431 2008-07-14  Sam Steingold  <sds@gnu.org>
93432             Bruno Haible  <bruno@clisp.org>
93434         New module libsigsegv.
93435         * modules/libsigsegv: New file.
93436         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
93437         modifications.
93438         * MODULES.html.sh (Signal handling): New section.
93440 2008-07-14  Bruno Haible  <bruno@clisp.org>
93442         * modules/unictype/ctype-* (Description): Add the word "function".
93443         Improves the resulting doc in MODULES.html.
93445 2008-07-12  Ben Pfaff  <blp@gnu.org>
93447         Add longlong module.
93448         * modules/longlong: New file.
93450 2008-07-12  Bruno Haible  <bruno@clisp.org>
93452         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
93453         to empty.
93455 2008-07-10  Ben Pfaff  <blp@gnu.org>
93457         Add isnan module.
93458         * doc/posix-functions/isnan.texi: Mention new module.
93459         * lib/math.in.h: Define isnan macro if we have decided to replace
93460         it.
93461         * m4/isnan.m4: New file.
93462         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
93463         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
93464         also.
93465         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
93466         redundancy.
93467         * m4/math_h.m4: Initialize and substitute variables for isnan
93468         module.
93469         * modules/isnan: New file.
93470         * modules/isnan-tests: New file.
93471         * modules/math: Add substitutions for new module.
93472         * tests/test-isnan.c: New file.
93473         * MODULES.html.sh: Mention new module.
93475 2008-07-10  Ben Pfaff  <blp@gnu.org>
93477         Add isnanf module.
93478         * lib/isnanf.m4: New file.
93479         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
93480         (gl_HAVE_ISNANF_IN_LIBM): New macro.
93481         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
93482         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
93483         * modules/isnanf: New file.
93484         * modules/isnanf-tests: New file.
93485         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
93486         files.
93487         * tests/test-isnanf-nolibm.c: factored most of its contents into
93488         new file tests/test-isnanf.h.
93489         * tests/test-isnanf.h: New file.
93490         * tests/test-isnanf.c: New file.
93491         * MODULES.html.sh: Mention new module.
93492         * doc/glibc-functions/isnanf.texi: Mention new module.
93494 2008-07-10  Ben Pfaff  <blp@gnu.org>
93496         Add isnand module.
93497         * lib/isnand.h: New file.
93498         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
93499         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
93500         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
93501         functionality also.
93502         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
93503         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
93504         (gl_HAVE_ISNAND_IN_LIBM): New macro.
93505         * modules/isnand: New file.
93506         * modules/isnand-tests: New file.
93507         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
93508         files.
93509         * tests/test-isnand-nolibm.c: factored most of its contents into
93510         new file tests/test-isnand.h.
93511         * tests/test-isnand.h: New file.
93512         * tests/test-isnand.c: New file.
93513         * MODULES.html.sh: Mention new module.
93515 2008-07-10  Ben Pfaff  <blp@gnu.org>
93517         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
93518         * lib/isnand.h: Rename lib/isnand-nolibm.h.
93519         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
93520         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
93521         * modules/isnanf-nolibm: Update references to renamed files.
93522         * modules/isnand-nolibm: Likewise.
93523         * modules/isnanf-nolibm-tests: Likewise.
93524         * modules/isnand-nolibm-tests: Likewise.
93525         * lib/frexp.c: Likewise.
93526         * lib/isfinite.c: Likewise.
93527         * lib/signbitd.c: Likewise.
93528         * lib/signbitf.c: Likewise.
93529         * lib/vasnprintf.c: Likewise.
93530         * tests/test-ceilf1.c: Likewise.
93531         * tests/test-ceilf2.c: Likewise.
93532         * tests/test-floorf1.c: Likewise.
93533         * tests/test-floorf2.c: Likewise.
93534         * tests/test-frexp.c: Likewise.
93535         * tests/test-round1.c: Likewise.
93536         * tests/test-round2.c: Likewise.
93537         * tests/test-roundf1.c: Likewise.
93538         * tests/test-strtod.c: Likewise.
93539         * tests/test-trunc1.c: Likewise.
93540         * tests/test-trunc2.c: Likewise.
93541         * tests/test-truncf1.c: Likewise.
93542         * tests/test-truncf2.c: Likewise.
93543         * NEWS: Mention the renamed header files.
93545 2008-07-11  Jim Meyering  <meyering@redhat.com>
93547         vc-list-files: make the last-resort awk code more portable
93548         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
93549         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
93550         does not support it.
93552 2008-07-10  Eric Blake  <ebb9@byu.net>
93554         Work with tar's bootstrap.
93555         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
93556         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
93557         an m4 comment.
93559 2008-07-09  Jim Meyering  <meyering@redhat.com>
93561         posix-shell.m4: fix typo that made this test malfunction
93562         * m4/posix-shell.m4: Remove capitalization in variable name.
93564 2008-07-08  Bruno Haible  <bruno@clisp.org>
93566         * m4/onceonly.m4: Update comments.
93567         Reported by Ben Pfaff <blp@cs.stanford.edu>.
93569 2008-07-04  Jim Meyering  <meyering@redhat.com>
93571         * users.txt: Add vc-dwim.
93572         (bison, coreutils): Use the gitweb URL.
93574 2008-07-03  Jim Meyering  <meyering@redhat.com>
93576         * users.txt: Add libffcall.  From Sam Steingold.
93578 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
93580         getdate.y: do not ignore TZ with relative day, month or year offset
93581         * lib/getdate.y (get_date): Move the tz-handling block to follow the
93582         relative-date-handling, since otherwise, the latter would clobber the
93583         sole output (an updated Start value) of the tz-handling block.
93584         * tests/test-getdate.c: Tests for the fix
93586 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
93588         Recognize 'foo_LIBRARIES += libgnu.a'.
93589         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
93590         makefile snippet has already specified an installation location,
93591         also using '+='.
93593 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
93595         getdate.y: factor out common actions
93596         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
93597         Use them in place of open-coded actions.
93599 2008-07-01  Simon Josefsson  <simon@josefsson.org>
93601         Add self-test for getdate module.
93602         * modules/getdate-tests: New file.
93603         * tests/test-getdate.c: New file.
93605 2008-06-29  Bruno Haible  <bruno@clisp.org>
93607         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
93608         .gitignore.
93609         Reported by Sylvain Beucler <beuc@beuc.net>.
93611 2008-06-29  Bruno Haible  <bruno@clisp.org>
93613         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
93614         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
93616 2008-06-29  Bruno Haible  <bruno@clisp.org>
93618         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
93619         EXTRA_DIST.
93620         Reported by Sylvain Beucler <beuc@beuc.net>.
93622 2008-06-26  Jim Meyering  <meyering@redhat.com>
93624         make several modules depend on the "open" module
93625         This provides slightly increased consistency when opening-for-write
93626         the name of a non-directory spelled with a trailing slash.
93627         * modules/chdir-safer: Likewise.
93628         * modules/chown: Likewise.
93629         * modules/clean-temp: Likewise.
93630         * modules/copy-file: Likewise.
93631         * modules/fchdir: Likewise.
93632         * modules/fcntl-safer: Likewise.
93633         * modules/pipe: Likewise.
93634         * modules/utime: Likewise.
93635         Prompted by Eric Blake and Bruno Haible.
93637 2008-06-24  Andreas Schwab  <schwab@suse.de>
93639         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
93640         literals can be used as initializers for global variables.
93642 2008-06-23  Eric Blake  <ebb9@byu.net>
93644         Make gnulib-cache.m4 easier to diff.
93645         * gnulib-tool (func_import): Allow newlines when reading cached
93646         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
93648 2008-06-23  Bruno Haible  <bruno@clisp.org>
93650         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
93651         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
93652         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
93653         m4/signalblocking.m4.
93654         (gl_PREREQ_SIGACTION): Don't invoke it.
93655         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
93656         gl_PREREQ_SIG_HANDLER_H.
93657         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93658         Don't check for sigaction here.
93660 2008-06-23  Bruno Haible  <bruno@clisp.org>
93662         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
93663         (install_handlers): Don't set the SA_RESETHAND flag.
93665 2008-06-23  Bruno Haible  <bruno@clisp.org>
93667         * m4/sigaction.m4: Comment fixes.
93668         * lib/signal.in.h: Likewise.
93670 2008-06-23  Eric Blake  <ebb9@byu.net>
93672         Fix typo.
93673         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
93675         Avoid SA_ namespace.
93676         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
93677         Reported by Ralf Wildenhues.
93679         Avoid test failure due to SA_RESTORER.
93680         * tests/test-sigaction.c (SA_MASK): New macro.
93681         (main): Avoid failing due to extension flags being set.
93682         Reported by Jim Meyering.
93684         Revert use of sig-handler.h in sigprocmask.c.
93685         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
93686         it requires the existence of struct sigaction.
93687         * lib/sigprocmask.c (handler_t): Restore typedef.
93688         (rpl_signal, old_handlers): Use local type.
93690 2008-06-22  Bruno Haible  <bruno@clisp.org>
93692         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
93693         conditionally.
93694         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
93696 2008-06-22  Bruno Haible  <bruno@clisp.org>
93698         * doc/posix-functions/siginterrupt.texi: Move note.
93700         * lib/signal.in.h (SA_RESTART): New macro.
93701         * lib/sigaction.c: Update comment.
93703         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
93705         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
93706         (gl_PREREQ_SIGPROCMASK): Invoke it.
93707         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
93709         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
93711         * lib/sigprocmask.c: Update a comment.
93713 2008-06-21  Eric Blake  <ebb9@byu.net>
93715         Use sigaction module rather than signal().
93716         * modules/c-stack (Depends-on): Add sigaction.
93717         * modules/fatal-signal (Depends-on): Likewise.
93718         * modules/nanosleep (Depends-on): Likewise.
93719         * modules/sigprocmask (Files): Add sig-handler.h.
93720         * modules/sigaction (Files): Likewise.
93721         * lib/sig-handler.h (get_handler): New file, suggested by Paul
93722         Eggert.
93723         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
93724         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
93725         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
93726         (init_fatal_signals): Likewise.
93727         * lib/nanosleep.c (rpl_nanosleep): Likewise.
93728         (siginterrupt): Delete fallback.
93729         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
93730         instead.
93731         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
93732         siginterrupt.
93734         New module sigaction, for mingw.
93735         * modules/sigaction: New module...
93736         * modules/sigaction-tests: ...and its test.
93737         * m4/sigaction.m4: New file.
93738         * lib/sigaction.c: Likewise.
93739         * tests/test-sigaction.c: Likewise.
93740         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
93741         * modules/signal (Makefile.am): Likewise.
93742         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
93743         needed.
93744         * doc/posix-headers/signal.texi (signal.h): Mention provided
93745         types.
93746         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
93747         that sigaction is preferable.
93748         * doc/posix-functions/sigaction.texi (sigaction): Mention new
93749         module.
93750         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
93751         sigaction.
93753         Improve robustness of sigprocmask by overriding signal.
93754         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
93755         is in use.
93756         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
93757         (SIGKILL, SIGSTOP): Provide fallbacks.
93758         (rpl_signal): Implement.
93759         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
93760         signal can be called inside handlers.
93762         Fix nanosleep module on mingw.
93763         * modules/nanosleep (Depends-on): Add sys_select.
93764         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
93766         Fix licensing of sigprocmask.
93767         * modules/raise (License): Relicense as LGPL.
93769 2008-06-21  Bruno Haible  <bruno@clisp.org>
93771         * lib/propername.c (proper_name_utf8): Don't use the transliterated
93772         result if it contains question marks.
93773         Reported by Michael Geng <linux@michaelgeng.de>.
93775 2008-06-19  Bruno Haible  <bruno@clisp.org>
93777         Fix CVS-ism.
93778         * doc/gnulib.texi: Include updated-stamp.texi.
93779         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
93780         (updated-stamp.texi): New rule.
93781         (gnulib.info): Depend on it.
93782         * doc/.gitignore: Add updated-stamp.texi.
93783         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
93785 2008-06-19  Bruno Haible  <bruno@clisp.org>
93787         * doc/Makefile (gnulib.info): Update and simplify dependencies.
93788         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
93790 2008-06-19  Eric Blake  <ebb9@byu.net>
93792         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
93793         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
93794         Reported by Stepan Kasal.
93796 2008-06-18  Bruno Haible  <bruno@clisp.org>
93798         * lib/fatal-signal.c (init_fatal_signals): Add comment.
93799         Reported by Eric Blake.
93801 2008-06-18  Eric Blake  <ebb9@byu.net>
93803         Work around cygwin 1.5.25 strsignal bug.
93804         * tests/test-strsignal.c: Allow for const char *.
93805         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
93807 2008-06-18  Simon Josefsson  <simon@josefsson.org>
93809         * users.txt: Update URL to article and add author/date
93810         information.
93812 2008-06-17  Bruno Haible  <bruno@clisp.org>
93814         New macro gl_DISABLE_THREADS.
93815         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
93816         if the user did not pass --enable-threads or --disable-threads option.
93817         (gl_DISABLE_THREADS): New macro.
93818         Reported by Eric Blake <ebb9@byu.net>.
93820 2008-06-17  Bruno Haible  <bruno@clisp.org>
93822         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
93823         when the macro ignores it.
93824         Based on a patch by Eric Blake <ebb9@byu.net>.
93826 2008-06-17  Bruno Haible  <bruno@clisp.org>
93828         * modules/tls (License): Change to LGPLv2+.
93829         Reported by Eric Blake.
93831 2008-06-17  Eric Blake  <ebb9@byu.net>
93833         Simplify c-stack prerequisites.
93834         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
93835         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
93836         no longer requires <ucontext.h> to exist.  Optimize setrlimit
93837         check.
93838         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
93839         <sys/resource.h>.
93841         Move c-stack test into testsuite.
93842         * modules/c-stack-tests: New file.
93843         * lib/c-stack.c [DEBUG]: Move test program...
93844         * tests/test-c-stack.c: ...into this new file.  Skip rather than
93845         fail test if sigaltstack is lacking.
93846         * tests/test-c-stack.sh: New driver file.
93848 2008-06-16  Eric Blake  <ebb9@byu.net>
93850         Use raise module consistently.
93851         * modules/fatal-signal (Depends-on): Add raise.
93852         * modules/sigprocmask (Depends-on): Likewise.
93853         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
93854         * lib/sigprocmask.c (sigprocmask): Likewise.
93855         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
93856         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
93858         Fix compliance bug in sigpending.
93859         * lib/sigprocmask.c (sigpending): Return pending array via
93860         parameter, not return value.
93862 2008-06-14  Eric Blake  <ebb9@byu.net>
93864         Improve obstack-printf test code.
93865         * tests/test-obstack-printf.c (test_function): Fix comment, and
93866         simplify usage of obstack_* in macros.  Add a test for coverage.
93867         Reported by Bruno Haible.
93869 2008-06-14  Bruno Haible  <bruno@clisp.org>
93871         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
93872         array size as a constant, not as a const variable.
93873         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
93874         AC_USE_SYSTEM_EXTENSIONS.
93875         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
93876         Test whether the obstack_printf function actually exists.
93877         * modules/obstack-printf (Depends-on): Add extensions.
93878         (Include): Remove obstack.h.
93879         * modules/obstack-printf-posix (Depends-on): Add extensions.
93880         (Include): Remove obstack.h.
93882 2008-06-13  Eric Blake  <ebb9@byu.net>
93884         Add obstack-printf and obstack-printf-posix modules.
93885         * modules/obstack-printf: New file.
93886         * modules/obstack-printf-posix: Likewise.
93887         * MODULES.html.sh (Misc): Mention them.
93888         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
93889         Likewise.
93890         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
93891         Likewise.
93892         * modules/stdio (Makefile.am): Accomodate new modules.
93893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
93894         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
93895         Declare.
93896         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
93897         functions.
93898         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
93899         (gl_REPLACE_OBSTACK_PRINTF): New macros
93900         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
93901         * tests/test-obstack-printf.c: New file.
93902         * modules/obstack-printf-tests: Likewise.
93903         * modules/obstack-printf-posix-tests: Likewise.
93905 2008-06-11  Bruno Haible  <bruno@clisp.org>
93907         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
93908         * lib/open.c: Include errno.h.
93909         (open): Fail when attempting to write to a file that has a trailing
93910         slash.
93911         * tests/test-open.c (main): Test against trailing slash bug.
93912         * doc/posix-functions/open.texi: Mention the trailing slash bug.
93914 2008-06-10  Bruno Haible  <bruno@clisp.org>
93916         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
93917         for $? to work inside the trap command, with various /bin/sh-s.
93918         * tests/test-vc-list-files-cvs.sh: Likewise.
93920 2008-06-10  Bruno Haible  <bruno@clisp.org>
93922         * lib/acl-internal.h: Don't include gettext.h here.
93923         * lib/set-mode-acl.c: Include gettext.h here.
93924         * lib/copy-acl.c: Likewise.
93926 2008-06-10  Bruno Haible  <bruno@clisp.org>
93928         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
93929         * lib/wait-process.c (wait_subprocess): Likewise.
93930         * lib/execute.h (execute): Add termsigp argument.
93931         * lib/execute.c (execute): Likewise.
93932         * lib/csharpcomp.c (compile_csharp_using_pnet,
93933         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
93934         * lib/csharpexec.c (execute_csharp_using_pnet,
93935         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
93936         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
93937         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
93938         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
93939         is_jikes_present): Update.
93940         * lib/javaexec.c (execute_java_class): Update.
93941         * lib/javaversion.c (execute_and_read_line): Update.
93942         * NEWS: Document the changes.
93943         Reported by Eric Blake.
93945 2008-06-10  Eric Blake  <ebb9@byu.net>
93947         Add missing include.
93948         * tests/test-strstr.c (includes): Add <signal.h>.
93949         * tests/test-strcasestr.c (includes): Likewise.
93950         * tests/test-memmem.c (includes): Likewise.
93952 2008-06-10  Bruno Haible  <bruno@clisp.org>
93954         * lib/wait-process.c (wait_subprocess): Add an assertion.
93956 2008-06-10  Bruno Haible  <bruno@clisp.org>
93958         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
93960 2008-06-10  Bruno Haible  <bruno@clisp.org>
93962         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
93963         using alarm().
93964         * tests/test-strcasestr.c (main): Likewise.
93965         * tests/test-strstr.c (main): Likewise.
93967 2008-06-09  Bruno Haible  <bruno@clisp.org>
93969         Work around the Solaris 10 ACE ACLs ABI change.
93970         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
93971         declare if ACL_NO_TRIVIAL is present.
93972         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
93973         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
93974         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
93975         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
93976         define if ACL_NO_TRIVIAL is present.
93977         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
93978         and use the current ABI.
93979         (file_has_acl): Use same #if condition as elsewhere.
93980         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
93981         in use, and use the current ABI.
93982         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
93983         Reported by Jim Meyering.
93985 2008-06-09  Eric Blake  <ebb9@byu.net>
93987         Work around environments that (stupidly) ignore SIGALRM.
93988         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
93989         before using alarm().
93990         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
93991         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
93992         Reported by Ian Beckwith <ianb@erislabs.net>.
93994         Produce autobuild blurb earlier in log.
93995         * modules/autobuild (configure.ac-early): Move AB_INIT here.
93997 2008-06-09  Jim Meyering  <meyering@redhat.com>
93998         and Ondřej Vašík  <ovasik@redhat.com>
94000         utimens.c: correct kernel bug work-around
94001         Ondřej Vašík found that the invalid return value of 280 indicates
94002         failure, not success, and the kernel bug we're trying to work
94003         around affects not just the utimensat call, but also the fallback
94004         futimens call.
94005         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
94006         not success.
94007         [HAVE_FUTIMENS]: Use the same work-around, here.
94009 2008-06-09  Jim Meyering  <meyering@redhat.com>
94011         add more guards around definition of ACE_-related code
94012         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
94013         ALLOW and ACE_OWNER are also defined.
94015 2008-06-08  Bruno Haible  <bruno@clisp.org>
94017         * lib/acl-internal.h: Add me as co-author.
94018         * lib/file-has-acl.c: Likewise.
94019         * lib/set-mode-acl.c: Likewise.
94020         * lib/copy-acl.c: Likewise.
94022 2008-06-08  Bruno Haible  <bruno@clisp.org>
94024         Add support for AIX ACLs.
94025         * lib/acl-internal.h (acl_nontrivial): New declaration.
94026         * lib/file-has-acl.c (acl_nontrivial): New function.
94027         (file_has_acl): Add implementation using AIX 4 ACL API.
94028         * lib/set-mode-acl.c (qset_acl): Likewise.
94029         * lib/copy-acl.c (qcopy_acl): Likewise.
94031 2008-06-08  Bruno Haible  <bruno@clisp.org>
94033         Add support for HP-UX ACLs.
94034         * lib/acl-internal.h (acl_nontrivial): New declaration.
94035         * lib/file-has-acl.c (acl_nontrivial): New function.
94036         (file_has_acl): Add implementation using HP-UX 11 ACL API.
94037         * lib/set-mode-acl.c (qset_acl): Likewise.
94038         * lib/copy-acl.c (qcopy_acl): Likewise.
94040 2008-06-08  Bruno Haible  <bruno@clisp.org>
94042         Add support for Cygwin ACLs.
94043         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
94044         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
94045         the chmod_or_fchmod call.
94046         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
94048 2008-06-08  Bruno Haible  <bruno@clisp.org>
94050         Fix bug with setuid modes in Solaris 10+ code.
94051         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
94052         succeeded, when the mode contains some special bits.
94054 2008-06-08  Bruno Haible  <bruno@clisp.org>
94056         Add support for Solaris 7..10 ACLs.
94057         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
94058         declarations.
94059         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
94060         functions.
94061         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
94062         * lib/set-mode-acl.c (qset_acl): Likewise.
94063         * lib/copy-acl.c (qcopy_acl): Likewise.
94065 2008-06-08  Bruno Haible  <bruno@clisp.org>
94067         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
94068         declaration.
94069         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
94070         (acl_access_nontrivial): Remove MacOS X case.
94071         (file_has_acl): Use acl_extended_nontrivial.
94072         * lib/copy-acl.c (qcopy_acl): Likewise.
94074 2008-06-08  Bruno Haible  <bruno@clisp.org>
94076         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
94078 2008-06-08  Jim Meyering  <meyering@redhat.com>
94080         * modules/acl (Maintainer): Add Bruno Haible.
94082 2008-06-07  Bruno Haible  <bruno@clisp.org>
94084         Improve support for Tru64 ACLs.
94085         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
94086         ACL on OSF/1.
94088 2008-06-07  Bruno Haible  <bruno@clisp.org>
94090         Add support for MacOS X ACLs.
94091         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
94092         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
94093         * lib/set-mode-acl.c (qset_acl): Likewise.
94094         * lib/copy-acl.c (qcopy_acl): Likewise.
94096 2008-06-07  Bruno Haible  <bruno@clisp.org>
94098         Fix memory leak introduced on 2008-05-22.
94099         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
94100         use.
94102 2008-06-07  Bruno Haible  <bruno@clisp.org>
94104         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
94105         to construct an empty ACL.
94107 2008-06-07  Bruno Haible  <bruno@clisp.org>
94109         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
94110         precisely.
94111         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
94113 2008-06-07  Bruno Haible  <bruno@clisp.org>
94115         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
94116         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
94118 2008-06-07  Bruno Haible  <bruno@clisp.org>
94120         * doc/posix-functions/_setjmp.texi: Explain the use of this function
94121         regardless of POSIX.
94122         * doc/posix-functions/_longjmp.texi: Likewise.
94123         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
94124         SystemV platform in this case.
94126 2008-06-06  Eric Blake  <ebb9@byu.net>
94128         Document abort() bugs.
94129         * doc/posix-functions/abort.texi (abort): Mention anomalies.
94131         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
94132         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
94133         sigsetjmp.
94134         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
94135         siglongjmp, but only as a macro.
94136         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
94137         is obsolete.
94138         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
94140         Tweak documentation to cover cygwin argz bugs.
94141         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
94142         argz bug fix; no code change needed since no cygwin releases
94143         occurred between the last fix and the bug being tested.
94144         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
94145         module and recently fixed cygwin bugs.
94146         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
94147         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
94148         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
94149         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
94150         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
94151         Likewise.
94152         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
94153         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
94154         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
94155         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
94156         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
94157         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
94158         Likewise.
94160         Avoid gcc warning on cygwin.
94161         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
94162         !ACL_NO_TRIVIAL]: Avoid unused variable.
94164 2008-06-05  Eric Blake  <ebb9@byu.net>
94166         Be tolerant of UNKNOWN version in gnulib-tool test dir.
94167         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
94168         git-version-gen fails to come up with a version.
94169         Reported by Simon Josefsson.
94171 2008-06-05  Jim Meyering  <meyering@redhat.com>
94172             Paul Eggert  <eggert@cs.ucla.edu>
94174         utimens.c: work around a probable Linux kernel bug
94175         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
94176         appears to be a kernel bug that causes utimensat to return 280
94177         instead of 0, indicating success.
94179 2008-06-04  Bruno Haible  <bruno@clisp.org>
94181         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
94182         2008-06-01 commit.
94184 2008-06-04  Bruno Haible  <bruno@clisp.org>
94186         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
94187         * lib/file-has-acl.c (acl_access_nontrivial): New function.
94188         (file_has_acl): Use it. Save errno afterwards.
94189         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
94191 2008-06-03  Bruno Haible  <bruno@clisp.org>
94193         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
94194         draft code. Simplify #ifs.
94195         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
94196         Put Solaris code after POSIX-draft code. Fix comments regarding
94197         Solaris 10, HP-UX. Mention Cygwin.
94198         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
94200 2008-06-03  Eric Blake  <ebb9@byu.net>
94202         Provide fallback for older kernels.
94203         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
94204         Provide runtime fallback if kernel lacks support.
94205         Reported by Mike Frysinger.
94207 2008-06-02  Bruno Haible  <bruno@clisp.org>
94209         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
94210         it exists.
94212 2008-06-02  Bruno Haible  <bruno@clisp.org>
94214         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
94215         * lib/copy-acl.c (qcopy_acl): Update comment.
94217 2008-06-02  Bruno Haible  <bruno@clisp.org>
94219         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
94220         like ACL APIs.
94222 2008-06-02  Bruno Haible  <bruno@clisp.org>
94224         * tests/test-file-has-acl.sh: Use different code for Cygwin.
94225         * tests/test-set-mode-acl.sh: Likewise.
94226         * tests/test-copy-acl.sh: Likewise.
94227         * tests/test-copy-file.sh: Likewise.
94229 2008-06-02  Bruno Haible  <bruno@clisp.org>
94231         * tests/test-file-has-acl.sh: Remove unused code.
94233 2008-06-01  Bruno Haible  <bruno@clisp.org>
94235         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
94236         (copy_acl): Just a wrapper around qcopy_acl that emits the error
94237         messages.
94238         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
94240 2008-06-01  Bruno Haible  <bruno@clisp.org>
94242         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
94243         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
94244         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
94245         APIs.
94246         * modules/acl-tests (configure.ac): Remove tests now contained in
94247         m4/acl.m4.
94249 2008-06-02  Jim Meyering  <meyering@redhat.com>
94251         announce-gen: use a better key-server host name
94252         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
94253         it may be more consistently reliable.  Suggested by Werner Koch
94254         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
94256 2008-06-01  Bruno Haible  <bruno@clisp.org>
94258         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
94259         Reported by Voroskoi Andras <voroskoi@gmail.com>.
94261 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
94263         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
94265 2008-06-01  Bruno Haible  <bruno@clisp.org>
94267         New ACL tests.
94268         * tests/test-file-has-acl.sh: New file.
94269         * tests/test-file-has-acl.c: New file.
94270         * tests/test-set-mode-acl.sh: New file.
94271         * tests/test-set-mode-acl.c: New file.
94272         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
94273         * tests/test-copy-acl.c: New file.
94274         * modules/acl-tests: New file, based on modules/copy-file-tests.
94275         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
94276         (Depends-on): Add acl-tests.
94277         (configure.ac): Remove checks.
94278         (Makefile.am): Don't create test-sameacls program here any more.
94280 2008-06-01  Bruno Haible  <bruno@clisp.org>
94282         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
94283         * tests/test-sameacls.c: Include progname.h.
94284         (main): Invoke set_program_name. Portability fixes for MacOS X,
94285         Solaris, HP-UX.
94287 2008-06-01  Bruno Haible  <bruno@clisp.org>
94289         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
94290         function.
94291         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
94293 2008-06-01  Bruno Haible  <bruno@clisp.org>
94295         * modules/rpmatch (Depends-on): Add strdup.
94297 2008-06-01  Bruno Haible  <bruno@clisp.org>
94299         * lib/pipe.c: Include unistd-safer.h.
94300         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
94301         * modules/pipe (Depends-on): Add unistd-safer.
94303 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94305         * modules/autobuild (configure.ac): Call AB_INIT.
94307 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94309         * tests/test-getaddrinfo.c: Don't print debug messages by default.
94310         Suggested by Bruno Haible <bruno@clisp.org>.
94312 2008-05-30  Simon Josefsson  <simon@josefsson.org>
94314         * tests/test-base64.c: Cast size_t to unsigned long when invoking
94315         printf.  Use %lu instead of %d.  Reported by Bruno Haible
94316         <bruno@clisp.org>.
94318 2008-05-29  Eric Blake  <ebb9@byu.net>
94320         Prefer new POSIX 200x interfaces over futimesat.
94321         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
94322         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
94323         when available.
94324         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
94326 2008-05-28  Bruno Haible  <bruno@clisp.org>
94328         * modules/stpcpy (License): Change to LGPLv2+.
94329         Requested by David Lutterkort <dlutter@redhat.com>.
94331 2008-05-27  Bruno Haible  <bruno@clisp.org>
94333         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
94334         current mingw.
94335         Reported by Jose E. Marchesi <jemarch@gnu.org>.
94337 2008-05-27  Bruno Haible  <bruno@clisp.org>
94339         * modules/iconv_open (Link): New section, from module 'iconv'.
94340         * modules/striconv (Link): Likewise.
94341         * modules/striconveh (Link): Likewise.
94342         * modules/xstriconv (Link): Likewise.
94343         * modules/unicodeio (Link): Likewise.
94344         * modules/propername (Link): Likewise.
94345         Reported by Jim Meyering.
94347 2008-05-26  Jim Meyering  <meyering@redhat.com>
94349         sha256: do not artificially restrict buffer length to be < 2^32
94350         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
94351         uint32_t to size_t.
94352         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
94353         to match.
94355         avoid unaligned access errors, e.g., on sparc
94356         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
94357         direct access through a possibly-unaligned uint64* pointer.
94358         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
94359         direct access through a possibly-unaligned uint32* pointer.
94360         Prompted by this patch from Tom "spot" Callaway:
94361         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
94363         sha512.c: fix typo in comment
94364         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
94366 2008-05-25  Bruno Haible  <bruno@clisp.org>
94368         * lib/set-mode-acl.c: Renamed from lib/acl.c.
94369         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
94370         (Makefile.am): Update lib_SOURCES.
94372 2008-05-25  Bruno Haible  <bruno@clisp.org>
94374         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
94376 2008-05-25  Jim Meyering  <meyering@redhat.com>
94378         useless-if-before-free: freed expr may have white-space differences
94379         * build-aux/useless-if-before-free: Recognize cases in which the
94380         freed expression differs from the tested one in embedded white
94381         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
94382         $1 was used, so we can't make any regexp shy.  Improved tests now
94383         detect this.
94385         useless-if-before-free: accept white space in the expression.
94386         * build-aux/useless-if-before-free: For now, any white space
94387         in the expression must be identical in the free argument.
94389         useless-if-before-free: efficiency tweak
94390         * build-aux/useless-if-before-free: Make the expression-matching
94391         regexp "shy".
94392         Make the *outer* regexp shy, not the expr-matching one.
94394         update code-in-comment to accept cast of free arg
94395         * build-aux/useless-if-before-free: Update regexp.
94397 2008-05-25  Bruno Haible  <bruno@clisp.org>
94399         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
94400         * modules/copy-file-tests (Files, Makefile.am): Update.
94401         * tests/test-copy-file.c (func_test_copy): Update.
94403 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
94405         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
94407 2008-05-23  Bruno Haible  <bruno@clisp.org>
94409         Improve support for ACLs on OSF/1.
94410         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
94411         Remove fallback for unknown flavors of ACLs.
94413 2008-05-22  Bruno Haible  <bruno@clisp.org>
94415         Add support for ACLs on OSF/1.
94416         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
94417         replacements.
94418         (acl_free_text): New macro fallback.
94419         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
94420         acl_free.
94421         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
94422         acl_free_text function. Require AC_C_INLINE.
94424 2008-05-22  Bruno Haible  <bruno@clisp.org>
94426         Make copy_acl work on MacOS X 10.5.
94427         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
94428         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
94429         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
94430         If MODE_INSIDE_ACL, don't assume that every system has the same text
94431         representation for ACLs as FreeBSD.
94432         * lib/copy-acl.c (copy_acl): Add support for platforms with
94433         !MODE_INSIDE_ACL.
94434         * lib/file-has-acl.c (file_has_acl): Likewise.
94435         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
94436         FreeBSD, MacOS X, or IRIX, respectively.
94438 2008-05-22  Bruno Haible  <bruno@clisp.org>
94440         * lib/acl.h: Don't include <sys/acl.h>.
94441         (GETACLCNT): Move fallback to lib/acl-internal.h.
94442         * lib/acl-internal.h: Include <sys/acl.h> here.
94443         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
94445 2008-05-22  Bruno Haible  <bruno@clisp.org>
94447         Split off copy_acl function to separate file.
94448         * lib/copy-acl.c: New file, extracted from lib/acl.c.
94449         * lib/acl.c (copy_acl): Moved function to separate file.
94450         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
94451         * modules/acl (Files): Add lib/copy-acl.c.
94452         (Makefiles.am): Augment lib_SOURCES.
94454 2008-05-22  Bruno Haible  <bruno@clisp.org>
94456         * modules/copy-file-tests: New file.
94457         * tests/test-copy-file.sh: New file.
94458         * tests/test-copy-file.c: New file.
94459         * tests/test-copy-file-sameacls.c: New file.
94461 2008-05-22  Eric Blake  <ebb9@byu.net>
94463         Avoid gcc warning.
94464         * tests/test-memcmp.c (main): Pass NULL indirectly.
94466 2008-05-21  Bruno Haible  <bruno@clisp.org>
94468         Add reference doc about ACLs.
94469         * doc/acl-resources.txt: New file.
94470         * doc/acl-cygwin.txt: New file.
94472 2008-05-21  Bruno Haible  <bruno@clisp.org>
94474         Avoid one more warning from gcc.
94475         * lib/vasnprintf.c (IF_LINT): Update comments.
94476         (VASNPRINTF): Use it also for the 'prefix' array initializer.
94478 2008-05-21  Jim Meyering  <meyering@redhat.com>
94480         avoid a warning from gcc
94481         * lib/vasnprintf.c (IF_LINT): Define.
94482         (scale10_round_decimal_long_double):
94483         Use it to avoid a "may be used uninitialized" warning.
94484         (scale10_round_decimal_double): Likewise.
94486 2008-05-21  Simon Josefsson  <simon@josefsson.org>
94488         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
94489         declared.
94491 2008-05-20  Bruno Haible  <bruno@clisp.org>
94493         * tests/test-memcmp.c (main): Test also the sign of the result. Test
94494         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
94496 2008-05-20  Simon Josefsson  <simon@josefsson.org>
94498         * modules/memcmp-tests: New file.
94499         * tests/test-memcmp.c: New file.
94501 2008-05-19  Bruno Haible  <bruno@clisp.org>
94503         * modules/propername (Notice, configure.ac): Put quoted "..." into
94504         --keyword option.
94505         * lib/propername.h: Update comments accordingly.
94506         Reported by Eric Blake.
94508 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
94510         * modules/getpass-gnu (Depends-on): Add fseeko.
94512 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94514         * modules/base64-tests: New file.
94516 2008-05-19  Bo Borgerson  <gigabo@gmail.com>
94518         * lib/base64.c (base64_decode_ctx): If a decode context structure
94519         was passed in use it to ignore newlines.  If a context structure
94520         was _not_ passed in, continue to treat newlines as garbage (this
94521         is the historical behavior).  Formerly base64_decode.
94522         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94523         takes a decode context structure.
94524         * lib/base64.h (base64_decode): Macro for four-argument calls.
94525         (base64_decode_alloc): Likewise.
94526         * lib/base64.c (base64_decode_ctx): If a decode context structure
94527         was passed in use it to ignore newlines.  If a context structure
94528         was _not_ passed in, continue to treat newlines as garbage (this
94529         is the historical behavior).  Formerly base64_decode.
94530         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
94531         takes a decode context structure.
94532         * lib/base64.h (base64_decode): Macro for four-argument calls.
94533         (base64_decode_alloc): Likewise.
94535 2008-05-19  Jim Meyering  <meyering@redhat.com>
94537         avoid a warning from gcc
94538         * lib/trim.c (IF_LINT): Define.
94539         (trim2): Use it to avoid a "may be used uninitialized" warning.
94541         Fix doc typo.
94542         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
94544 2008-05-19  Bruno Haible  <bruno@clisp.org>
94546         * doc/glibc-functions/getpass.texi: Document limits of other
94547         implementations.
94549 2008-05-19  Simon Josefsson  <simon@josefsson.org>
94550             Bruno Haible <bruno@clisp.org>
94552         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
94554 2008-05-18  Bruno Haible  <bruno@clisp.org>
94556         * modules/propername: New file, from GNU gettext.
94557         * lib/propername.h: New file, from GNU gettext.
94558         * lib/propername.c: New file, from GNU gettext.
94559         * MODULES.html.sh (Internationalization functions): Add propername.
94561 2008-05-16  Jim Meyering  <meyering@redhat.com>
94562             Bruno Haible  <bruno@clisp.org>
94564         Avoid some warnings from "gcc -Wshadow".
94565         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
94567 2008-05-15  Eric Blake  <ebb9@byu.net>
94569         Extend previous patch to cygwin 1.7.0.
94570         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
94571         fast implementation in cygwin >= 1.7.0.
94572         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94573         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94575 2008-05-15  Bruno Haible  <bruno@clisp.org>
94577         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
94578         implementation in glibc >= 2.9.
94579         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
94580         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
94582 2008-05-15  Bruno Haible  <bruno@clisp.org>
94584         * MODULES.html.sh (Internationalization functions): Remove linebreak.
94585         (Unicode string functions): Add unilbrk/*.
94586         Reported by Karl Berry.
94588 2008-05-15  Eric Blake  <ebb9@byu.net>
94590         Fix violation of <stdbool.h> replacement in regex.
94591         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
94592         * lib/regexec.c (re_search_internal): Likewise.
94593         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
94595 2008-05-15  Jim Meyering  <meyering@redhat.com>
94597         avoid distracting test output when git or cvs is not found
94598         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
94599         * tests/test-vc-list-files-git.sh: Likewise.
94601 2008-05-15  Eric Blake  <ebb9@byu.net>
94603         Glibc finally accepted the memmem speedup code, bugzilla #5514.
94604         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
94605         glibc version.
94606         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
94607         * doc/posix-functions/strstr.texi (strstr): Likewise.
94608         * lib/str-two-way.h (MAX): Sychronize with glibc.
94610 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
94612         * lib/regcomp.c (optimize_utf8): Add a note on why we test
94613         opr.ctx_type.
94614         (calc_first): Initialize constraint field.
94615         (duplicate_node_closure): Use it instead of special casing ANCHORS.
94616         Fix grammar.
94617         (duplicate_node): Merge constraint field for all node types.
94618         (calc_eclosure_iter): Look at constraint field for all node types.
94619         * lib/regex_internal.c (create_cd_newstate): Don't look at
94620         opr.ctx_type.
94622 2008-05-14  Bruno Haible  <bruno@clisp.org>
94624         Help GCC to do better code generation.
94625         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
94626         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
94627         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
94628         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
94629         Declare with attribute 'malloc' if supported.
94631 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
94633         use "echo STR|wc -c" rather than unportable "expr length STR"
94634         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
94635         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
94637 2008-05-14  Jim Meyering  <meyering@redhat.com>
94639         use dd ibs=$n count=1 ... rather than less-portable head -c$n
94640         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
94641         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
94642         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
94643         via Collin Lasse.
94645 2008-05-14  Eric Blake  <ebb9@byu.net>
94647         Avoid quadratic growth in gl_LIBSOURCES.
94648         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
94649         Suggested by Bruno Haible.
94651         Test xmemdup0.
94652         * modules/xmemdup0-tests: New file.
94653         * tests/test-xmemdup0.c: Likewise.
94655 2008-05-13  Eric Blake  <ebb9@byu.net>
94657         Split xmemdup0 into its own module.
94658         * modules/xmemdup0: New file.
94659         * lib/xmemdup0.h: Likewise.
94660         * lib/xmemdup0.c: Likewise.
94661         * MODULES.html.sh (Memory management functions): Add xmemdup0.
94662         * lib/xalloc.h (xmemdup0): Remove.
94663         * lib/xmalloc.c (xmemdup0): Likewise.
94665 2008-05-13  Eric Blake  <ebb9@byu.net>
94666             Bruno Haible  <bruno@clisp.org>
94668         Reduce number of forks required during autoconf.
94669         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
94670         and gl_LIBSOURCES_DIR.
94671         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
94672         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
94673         m4_syscmd per file.
94674         <m4_foreach_w>: Move...
94675         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
94677 2008-05-13  Eric Blake  <ebb9@byu.net>
94679         * gnulib-tool: Fix various comment typos.
94681 2008-05-12  Bruno Haible  <bruno@clisp.org>
94683         Tailor the linebreaking algorithm.
94684         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
94686 2008-05-12  Bruno Haible  <bruno@clisp.org>
94688         Update to Unicode 5.0.0.
94689         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94690         LBP_JV, LBP_JT. Redistribute values.
94691         (unilbrk_table): Change size.
94692         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
94693         Unicode TR#14 rev. 22.
94694         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
94695         LBP_JV, LBP_JT. Redistribute values.
94696         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
94697         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
94698         Update.
94699         * lib/unilbrk/lbrkprop1.h: Regenerated.
94700         * lib/unilbrk/lbrkprop2.h: Regenerated.
94701         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
94702         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
94703         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
94704         Likewise.
94705         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
94706         Likewise.
94707         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
94708         result.
94709         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
94710         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
94711         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
94712         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
94713         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
94714         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
94716 2008-05-11  Bruno Haible  <bruno@clisp.org>
94718         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
94720 2008-05-11  Bruno Haible  <bruno@clisp.org>
94722         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
94723         * modules/unilbrk/gen-lbrk: New file.
94725 2008-05-11  Bruno Haible  <bruno@clisp.org>
94727         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
94728         * m4/sha512.m4 (gl_SHA512): Likewise.
94730 2008-05-11  Jim Meyering  <meyering@redhat.com>
94732         New modules: crypto/sha256, crypto/sha512 (from coreutils)
94733         * modules/crypto/sha256: New file.
94734         * modules/crypto/sha512: Likewise.
94735         * lib/sha256.c: Likewise.
94736         * lib/sha256.h: Likewise.
94737         * lib/sha512.c: Likewise.
94738         * lib/sha512.h: Likewise.
94739         * lib/u64.h: Likewise.
94740         * m4/sha256.m4: Likewise.
94741         * m4/sha512.m4: Likewise.
94742         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
94744 2008-05-10  Bruno Haible  <bruno@clisp.org>
94746         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
94747         (Input/Output <stdio.h>): Add xprintf.
94748         (Signal handling <signal.h>): Add strsignal.
94749         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
94750         (Core language properties): Add func.
94751         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
94752         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
94753         strings.
94754         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
94755         (Input/output): New section.
94756         (File system functions): Add openat-die, stat-macros.
94757         (Networking functions): Add sockets.
94758         (Unicode string functions): Add unictype/*.
94759         (Support for building libraries and executables): Add gperf.
94760         (Support for building documentation): Add agpl-3.0.
94761         (Misc): Add nocrash.
94763 2008-05-10  Bruno Haible  <bruno@clisp.org>
94765         * modules/unictype/gen-ctype: New file.
94767 2008-05-10  Jim Meyering  <meyering@redhat.com>
94769         Make chdir-safer.c more efficient on a system with no symlinks.
94770         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
94771         also if ELOOP is zero.  Suggested by Bruno Haible.
94773         Make chdir-safer.c slightly safer.
94774         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
94775         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
94777         Avoid compile failure on systems without ELOOP (like mingw).
94778         * lib/chdir-safer.c (ELOOP): Define if not already defined.
94779         Reported by Bruno Haible.
94781 2008-05-10  Bruno Haible  <bruno@clisp.org>
94783         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
94784         (is_utf8_encoding): Use a case-insensitive comparison.
94785         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
94786         streq.
94788 2008-05-10  Bruno Haible  <bruno@clisp.org>
94790         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
94791         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
94792         * lib/unilbrk/ulc-common.h (iconv_string_length,
94793         iconv_string_keeping_offsets): Remove declarations.
94794         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
94795         Don't include <iconv.h>, streq.h, xsize.h.
94796         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
94797         conversion.
94798         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
94799         <iconv.h>, streq.h, xsize.h.
94800         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
94801         conversion.
94802         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
94803         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
94804         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
94805         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
94807 2008-05-10  Bruno Haible  <bruno@clisp.org>
94809         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
94810         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
94812         * modules/unilbrk/u32-width-linebreaks-tests: New file.
94813         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
94815         * modules/unilbrk/u16-width-linebreaks-tests: New file.
94816         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
94818         * modules/unilbrk/u8-width-linebreaks-tests: New file.
94819         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
94821         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
94822         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
94824         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
94825         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
94827         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
94828         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
94830         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
94831         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
94833 2008-05-10  Bruno Haible  <bruno@clisp.org>
94835         Split up 'linebreak' module.
94836         * lib/unilbrk.h: New file, based on lib/linebreak.h.
94837         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
94838         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
94839         modifications.
94840         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
94841         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
94842         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
94843         lib/linebreak.c.
94844         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
94845         lib/linebreak.c.
94846         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
94847         lib/linebreak.c.
94848         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
94849         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
94850         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
94851         lib/linebreak.c.
94852         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
94853         lib/linebreak.c.
94854         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
94855         lib/linebreak.c.
94856         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
94857         lib/linebreak.c.
94858         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
94859         lib/linebreak.c.
94860         * modules/unilbrk/base: New file.
94861         * modules/unilbrk/tables: New file.
94862         * modules/unilbrk/u8-possible-linebreaks: New file.
94863         * modules/unilbrk/u16-possible-linebreaks: New file.
94864         * modules/unilbrk/u32-possible-linebreaks: New file.
94865         * modules/unilbrk/ulc-common: New file.
94866         * modules/unilbrk/ulc-possible-linebreaks: New file.
94867         * modules/unilbrk/u8-width-linebreaks: New file.
94868         * modules/unilbrk/u16-width-linebreaks: New file.
94869         * modules/unilbrk/u32-width-linebreaks: New file.
94870         * modules/unilbrk/ulc-width-linebreaks: New file.
94871         * lib/linebreak.h: Remove file.
94872         * lib/linebreak.c: Remove file.
94873         * m4/linebreak.m4: Remove file.
94874         * modules/linebreak: Remove file.
94875         * NEWS: Mention the changes.
94877 2008-05-09  Eric Blake  <ebb9@byu.net>
94879         Add xmemdup0.
94880         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
94881         implementation.
94882         * lib/xmalloc.c (xmemdup0): New C implementation.
94884 2008-05-08  Bruno Haible  <bruno@clisp.org>
94886         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
94888 2008-05-07  Eric Blake  <ebb9@byu.net>
94890         Support cross-compilation of <wctype.h>.
94891         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
94892         AC_CACHE_CHECK.
94894 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
94896         * build-aux/vc-list-files: Add support for bzr.
94898 2008-05-03  Jim Meyering  <meyering@redhat.com>
94900         avoid failed assertion with tight malloc
94901         * tests/test-getndelim2.c: Correct an off-by-one assertion.
94903 2008-05-03  Simon Josefsson  <simon@josefsson.org>
94905         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
94906         are needed from arpa/inet.h.
94907         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
94908         Reported by Bruno Haible.
94910 2008-05-02  Jim Meyering  <meyering@redhat.com>
94912         avoid compilation error on FreeBSD 6
94913         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
94915 2008-05-01  Jim Meyering  <meyering@redhat.com>
94917         useless-if-before-free: correct --help's exit status description
94918         * build-aux/useless-if-before-free (usage): Like grep, exit 0
94919         for one or more matches, etc.  Reported by Bruno Haible.
94921         vc-list-files: make the stand-alone gnulib test work
94922         * modules/vc-list-files-tests (configure.ac):
94923         Define and AC_SUBST abs_aux_dir.
94924         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
94925         $(abs_top_srcdir) to each script and having each of them
94926         duplicate the work of setting PATH, set PATH here, using
94927         the new variable, abs_aux_dir instead.
94928         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
94929         * tests/test-vc-list-files-git.sh: Likewise.
94930         Reported by Bruno Haible.
94932 2008-05-01  Bruno Haible  <bruno@clisp.org>
94934         * lib/getndelim2.c (getndelim2): Fix newsize computation during
94935         reallocation. Rename 'done' to 'found_delimiter'.
94937 2008-05-01  Jim Meyering  <meyering@redhat.com>
94939         vc-list-files: accommodate /bin/sh like the one from Solaris 10
94940         * build-aux/vc-list-files: Use `...`, not $(...).
94942 2008-04-30  Jim Meyering  <meyering@redhat.com>
94944         add tests for vc-list-files
94945         * modules/vc-list-files-tests: New module.
94946         * tests/test-vc-list-files-cvs.sh: New file.
94947         * tests/test-vc-list-files-git.sh: New file.
94949         avoid a warning from gcc
94950         * lib/getndelim2.c (IF_LINT): Define.
94951         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
94953         vc-list-files: work properly with build-aux/cvsu, too
94954         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
94955         to all cvs-based clauses.
94957         vc-list-files: work properly in the CVS+awk case, too
94958         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
94960         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
94961         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
94962         take more than one file argument, so .  Add quotes, just in case $dir
94963         ever contains a shell meta-character.  Prompted by Soren Hansen in
94964         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
94966 2008-04-29  Eric Blake  <ebb9@byu.net>
94968         Optimize getndelim2 to use block operations when possible.
94969         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
94970         freadseek, and memchr2.
94971         * lib/getndelim2.c (getndelim2): Use them for block reads.
94973 2008-04-29  Bruno Haible  <bruno@clisp.org>
94975         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
94976         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
94977         * modules/inet_ntop (Depends-on): Add extensions.
94978         * modules/inet_pton (Depends-on): Likewise.
94979         Reported by Simon Josefsson.
94981 2008-04-29  Jim Meyering  <meyering@redhat.com>
94983         When the is more than one match in a block, match all of them.
94984         * build-aux/useless-if-before-free: Iterate through each block
94985         until there are no more matches.
94987         Fix broken useless-if-before-free script.
94988         * build-aux/useless-if-before-free: Fix typo: missing "?" after
94989         the expression to match cast of argument to free-like function.
94991 2008-04-29  Eric Blake  <ebb9@byu.net>
94993         Use new header.
94994         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
94996 2008-04-29  Jim Meyering  <meyering@redhat.com>
94998         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
94999         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
95000         by gnulib to exist and to declare e.g., inet_ntop.
95001         Don't include "inet_ntop.h", now removed.
95003         * m4/arpa_inet_h.m4: Remove trailing blanks.
95005 2008-04-29  Eric Blake  <ebb9@byu.net>
95007         Silence valgrind on safe reads beyond potential array bounds.
95008         * lib/rawmemchr.valgrind: New file.
95009         * lib/strchrnul.valgrind: Likewise.
95010         * modules/rawmemchr (Files): Distribute new file.
95011         * modules/strchrnul (Files): Likewise.
95012         Suggested by Bruno Haible.
95014 2008-04-29  Bruno Haible  <bruno@clisp.org>
95016         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
95017         (inet_ntop, inet_pton): Change portability warning's wording.
95018         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
95019         Invoke gl_CHECK_NEXT_HEADERS.
95020         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
95021         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
95022         set ARPA_INET_H.
95023         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
95024         * modules/arpa_inet (Description): No longer only for systems that
95025         lack it.
95026         (Depends-on): Add include_next.
95027         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
95028         HAVE_ARPA_INET_H.
95030 2008-04-29  Jim Meyering  <meyering@redhat.com>
95032         * modules/mkdir (License): Re-license as LGPLv2+.
95034 2008-04-29  Bruno Haible  <bruno@clisp.org>
95036         * modules/rawmemchr (Maintainer): Set to Eric.
95037         * modules/strchrnul (Maintainer): Likewise.
95039 2008-04-29  Simon Josefsson  <simon@josefsson.org>
95041         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
95042         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
95044         * modules/arpa_inet (arpa/inet.h): Use them.
95046 2008-04-28  Eric Blake  <ebb9@byu.net>
95048         Test getndelim2.
95049         * modules/getndelim2-tests: New file.
95050         * tests/test-getndelim2.c: Likewise.
95051         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
95052         stream.
95053         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
95055         * MODULES.html.sh: Document new module.
95057 2008-04-20  Bruno Haible  <bruno@clisp.org>
95059         * lib/c-stack.c (die): Use raise.
95060         * modules/c-stack (Depends-on): Add raise.
95062 2008-04-28  Bruno Haible  <bruno@clisp.org>
95064         Expect rpmatch to be declared.
95065         * lib/yesno.c (rpmatch): Remove declaration.
95067         Declare rpmatch.
95068         * lib/stdlib.in.h (rpmatch): New declaration.
95069         * lib/rpmatch.c: Include <stdlib.h> first.
95070         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
95071         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
95072         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
95073         HAVE_RPMATCH.
95074         * modules/rpmatch (Depends-on): Add stdlib, extensions.
95075         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
95076         (Include): Set to <stdlib.h>.
95077         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
95078         HAVE_RPMATCH.
95079         * NEWS: Document the change.
95081 2008-04-28  Bruno Haible  <bruno@clisp.org>
95083         Change rpmatch to use nl_langinfo when appropriate.
95084         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
95085         (N_): New macro.
95086         (localized_pattern): New function/macro.
95087         (try): Remove match, nomatch arguments. Copy the pattern into safe
95088         memory before caching it.
95089         (rpmatch): Use localized_pattern. Add translator comments.
95090         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
95091         Suggested by Eric Blake.
95092         * modules/rpmatch (Depends-on): Add stdbool.
95094 2008-04-28  Eric Blake  <ebb9@byu.net>
95096         Add rawmemchr module, matching glibc.
95097         * modules/string (Makefile.am): New indicator.
95098         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
95099         * lib/string.in.h (rawmemchr): Declare when appropriate.
95100         * modules/rawmemchr: New file.
95101         * m4/rawmemchr.m4: Likewise.
95102         * lib/rawmemchr.c: Likewise.
95103         * modules/rawmemchr-tests: Likewise.
95104         * tests/test-rawmemchr.c: Likewise.
95105         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
95106         module.
95107         * modules/strchrnul (Depends-on): Add rawmemchr.
95108         * lib/strchrnul.c (strchrnul): Optimize a corner case.
95110         Whitespace cleanup.
95111         * tests/test-strchrnul.c: Reindent.
95112         * lib/strchrnul.c: Likewise.
95114         Optimize and test strchrnul.
95115         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
95116         * modules/strchrnul-tests: New file.
95117         * tests/test-strchrnul.c: Likewise.
95119         Remove intprops dependency.
95120         * modules/memchr (Depends-on): Remove intprops.
95121         * modules/memrchr (Depends-on): Likewise.
95122         * modules/memchr2 (Depends-on): Likewise.
95123         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
95124         * lib/memrchr.c (__memrchr): Likewise.
95125         * lib/memrchr2.c (memchr2): Likewise.
95126         Reported by Simon Josefsson.
95128 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95130         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
95131         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95133 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95135         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
95137         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
95139         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
95141         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
95142         declarations.
95143         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
95145         * m4/inet_pton.m4: Don't check for header files.
95147         * m4/inet_ntop.m4: Don't check for header files.
95149 2008-04-28  Simon Josefsson  <simon@josefsson.org>
95151         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
95152         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
95153         trigger for cygwin).
95154         Reported by Bruno Haible  <bruno@clisp.org>.
95156 2008-04-28  Bruno Haible  <bruno@clisp.org>
95158         * doc/posix-functions/strdup.texi: Mention mingw problem.
95160 2008-04-27  Bruno Haible  <bruno@clisp.org>
95162         * modules/stat-time-tests (Depends-on): Add sleep.
95163         * tests/test-stat-time.c (force_unlink): New function.
95164         (cleanup): Use it.
95165         (test_mtime): Remove the ctime related tests.
95166         (test_ctime): New function, containing the ctime related tests.
95167         (main): Call test_ctime, except on native Windows platforms.
95169 2008-04-27  Bruno Haible  <bruno@clisp.org>
95171         * lib/rpmatch.c (rpmatch): Add some comments.
95172         Reported by James Youngman <jay@gnu.org>.
95174 2008-04-27  Bruno Haible  <bruno@clisp.org>
95176         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
95177         quiet NaNs.
95179 2008-04-27  Bruno Haible  <bruno@clisp.org>
95181         Make test-yesno.sh work on mingw.
95182         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
95183         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
95184         (main): Set stdin to binary mode.
95185         * modules/yesno-tests (Depends-on): Add binary-io.
95187 2008-04-27  Bruno Haible  <bruno@clisp.org>
95189         Fix 'isfinite' on x86, x86_64, ia64 platforms.
95190         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
95191         argument that lie outside the IEEE 854 domain.
95192         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
95193         (gl_ISFINITE): Use it.
95194         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
95196 2008-04-27  Bruno Haible  <bruno@clisp.org>
95198         Allow local renaming in config.h.
95199         * lib/memrchr.c (memrchr): Don't undefine outside libc.
95201 2008-04-27  Bruno Haible  <bruno@clisp.org>
95203         * lib/memchr.c (__memchr): Change type of 'i'.
95204         * lib/memchr2.c (memchr2): Likewise.
95206 2008-04-26  Eric Blake  <ebb9@byu.net>
95207         and Bruno Haible  <bruno@clisp.org>
95209         Optimize and test memrchr.
95210         * modules/memrchr (Depends-on): Add intprops.
95211         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
95212         * modules/memrchr-tests: New file.
95213         * tests/test-memrchr.c: New file.
95215 2008-04-26  Bruno Haible  <bruno@clisp.org>
95217         Add tentative support for DragonFly BSD.
95218         * lib/stdio-impl.h: Add macros for DragonFly BSD.
95219         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
95220         fp.
95221         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95222         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
95223         * lib/fpurge.c (fpurge): Likewise.
95224         * lib/freadable.c (freaadable): Likewise.
95225         * lib/freadahead.c (freadahead): Likewise.
95226         * lib/freading.c (freading): Likewise.
95227         * lib/freadptr.c (freadptr): Likewise.
95228         * lib/freadseek.c (freadptrinc): Likewise.
95229         * lib/fseeko.c (fseeko): Likewise.
95230         * lib/fseterr.c (fseterr): Likewise.
95231         * lib/fwritable.c (fwritable): Likewise.
95232         * lib/fwriting.c (fwriting): Likewise.
95234 2008-04-26  Bruno Haible  <bruno@clisp.org>
95236         * lib/stdio-impl.h: New file.
95237         * lib/fbufmode.c: Include stdio-impl.h.
95238         (fbufmode): Use fp_, remove redundant #defines.
95239         * lib/fflush.c: Include stdio-impl.h.
95240         (clear_ungetc_buffer): Remove redundant #defines.
95241         * lib/fpurge.c: Include stdio-impl.h.
95242         (fpurge): Remove redundant #defines.
95243         * lib/freadable.c: Include stdio-impl.h.
95244         (freadable): Remove redundant #defines.
95245         * lib/freadahead.c: Include stdio-impl.h.
95246         (freadahead): Remove redundant #defines.
95247         * lib/freading.c: Include stdio-impl.h.
95248         (freading): Remove redundant #defines.
95249         * lib/freadptr.c: Include stdio-impl.h.
95250         (freadptr): Remove redundant #defines.
95251         * lib/freadseek.c: Include stdio-impl.h.
95252         (freadptrinc): Remove redundant #defines.
95253         * lib/fseeko.c: Include stdio-impl.h.
95254         (rpl_fseeko): Remove redundant #defines.
95255         * lib/fseterr.c: Include stdio-impl.h.
95256         (fseterr): Remove redundant #defines.
95257         * lib/fwritable.c: Include stdio-impl.h.
95258         (fwritable: Remove redundant #defines.
95259         * lib/fwriting.c: Include stdio-impl.h.
95260         (fwriting): Remove redundant #defines.
95261         * modules/fbufmode (Files): Add lib/stdio-impl.h.
95262         * modules/fflush (Files): Likewise.
95263         * modules/fpurge (Files): Likewise.
95264         * modules/freadable (Files): Likewise.
95265         * modules/freadahead (Files): Likewise.
95266         * modules/freading (Files): Likewise.
95267         * modules/freadptr (Files): Likewise.
95268         * modules/freadseek (Files): Likewise.
95269         * modules/fseeko (Files): Likewise.
95270         * modules/fseterr (Files): Likewise.
95271         * modules/fwritable (Files): Likewise.
95272         * modules/fwriting (Files): Likewise.
95274 2008-04-26  Bruno Haible  <bruno@clisp.org>
95276         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
95277         restore_seek_optimization, update_fpos_cache): New functions, extracted
95278         from rpl_fflush.
95279         (rpl_fflush): Use them.
95280         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
95281         (gl_REPLACE_FFLUSH): Use it.
95283 2008-04-26  Bruno Haible  <bruno@clisp.org>
95285         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
95286         on Solaris.
95287         * tests/test-xstrtoimax.sh: Likewise.
95288         * tests/test-xstrtoumax.sh: Likewise.
95289         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
95291 2008-04-26  Bruno Haible  <bruno@clisp.org>
95293         * modules/memchr-tests: New file.
95294         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
95296 2008-04-26  Eric Blake  <ebb9@byu.net>
95297             Bruno Haible  <bruno@clisp.org>
95299         * lib/memchr.c: Include intprops.h.
95300         (__memchr): Optimize parallel detection of matching bytes. Rename local
95301         variables. Add explanatory comments.
95303 2008-04-26  Bruno Haible  <bruno@clisp.org>
95305         Fix module 'memchr', broken since 2000-10-28.
95306         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
95308 2008-04-26  Bruno Haible  <bruno@clisp.org>
95310         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
95311         comments.
95313 2008-04-25  Eric Blake  <ebb9@byu.net>
95315         Use native fstatat on cygwin 1.7.0.
95316         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
95317         first.
95319 2008-04-23  Eric Blake  <ebb9@byu.net>
95321         Improve memchr2 performance.
95322         * lib/memchr2.c (memchr2): Further optimize parallel detection of
95323         NUL bytes.
95324         * modules/memchr2 (Depends-on): Use intprops.h.
95326 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95328         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
95329         an inline function instead of a CPP macro.  Patch by Ben Pfaff
95330         <blp@cs.stanford.edu>.
95332 2008-04-23  Simon Josefsson  <simon@josefsson.org>
95334         * lib/arpa_inet.in.h: New file.
95336         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
95337         (Makefile.am): Sed in substitute header file.
95339         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
95340         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
95342         * modules/inet_ntop (configure.ac): Use
95343         gl_ARPA_INET_MODULE_INDICATOR.
95345         * modules/inet_pton (configure.ac): Use
95346         gl_ARPA_INET_MODULE_INDICATOR.
95348 2008-04-22  Jim Meyering  <meyering@redhat.com>
95350         * modules/verify (License): Re-license as LGPLv2+.
95352 2008-04-22  Simon Josefsson  <simon@josefsson.org>
95354         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
95355         parameter to void* as per POSIX standard (MinGW uses char*).
95357 2008-04-21  Bruno Haible  <bruno@clisp.org>
95359         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
95360         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
95361         Define to replacements if REPLACE_ISWCNTRL is 1.
95362         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
95363         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
95364         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
95365         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
95366         what it fixes.
95367         * doc/posix-functions/iswalpha.texi: Likewise.
95368         * doc/posix-functions/iswblank.texi: Likewise.
95369         * doc/posix-functions/iswcntrl.texi: Likewise.
95370         * doc/posix-functions/iswdigit.texi: Likewise.
95371         * doc/posix-functions/iswgraph.texi: Likewise.
95372         * doc/posix-functions/iswlower.texi: Likewise.
95373         * doc/posix-functions/iswprint.texi: Likewise.
95374         * doc/posix-functions/iswpunct.texi: Likewise.
95375         * doc/posix-functions/iswspace.texi: Likewise.
95376         * doc/posix-functions/iswupper.texi: Likewise.
95377         * doc/posix-functions/iswxdigit.texi: Likewise.
95378         Reported by Alain Guibert.
95380 2008-04-21  Bruno Haible  <bruno@clisp.org>
95382         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
95383         Patch by Alain Guibert.
95385 2008-04-21  Bruno Haible  <bruno@clisp.org>
95387         Fix test failures on mingw.
95388         * tests/test-xstrtol.c (print_no_progname): New function.
95389         (main): Install it in error_print_progname hook.
95390         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
95391         * tests/test-xstrtoimax.sh: Likewise.
95392         * tests/test-xstrtoumax.sh: Likewise.
95394 2008-04-21  Bruno Haible  <bruno@clisp.org>
95396         Fix test failure on mingw.
95397         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
95399 2008-04-21  Bruno Haible  <bruno@clisp.org>
95401         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
95402         Actually assign a value.
95404 2008-04-20  Bruno Haible  <bruno@clisp.org>
95406         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
95407         take 2.
95408         * lib/canonicalize.c (canonicalize_file_name): Elide if the
95409         'canonicalize-lgpl' module is also used.
95410         * lib/canonicalize-lgpl.c: Undo last change.
95411         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
95413 2008-04-20  Bruno Haible  <bruno@clisp.org>
95415         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
95416         config.h. Provide _mkdir based fallback for mingw.
95417         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
95418         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
95419         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
95420         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
95421         rather than defining mkdir in config.h.
95422         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
95423         (gl_SYS_STAT_H_DEFAULTS): New macro.
95424         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
95425         HAVE_IO_H any more.
95426         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
95427         HAVE_DECL_MKDIR and HAVE_IO_H.
95429 2008-04-20  Bruno Haible  <bruno@clisp.org>
95431         * lib/isapipe.c: Port to native Windows platforms.
95433 2008-04-20  Bruno Haible  <bruno@clisp.org>
95435         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
95437 2008-04-21  Eric Blake  <ebb9@byu.net>
95439         Work around preprocessors that don't handle UINTMAX_MAX.
95440         * lib/memchr2.c (memchr2): Avoid embedded #if.
95441         Reported by Alain Guibert, fix suggested by Bruno Haible.
95443 2008-04-21  Simon Josefsson  <simon@josefsson.org>
95445         * doc/posix-functions/strftime.texi (strftime): Explain better
95446         Windows incompatibility.  Suggested by Micah Cowan
95447         <micah@cowan.name>.
95449 2008-04-20  Bruno Haible  <bruno@clisp.org>
95451         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
95452         unistr/u8-mblen.
95454 2008-04-20  Bruno Haible  <bruno@clisp.org>
95456         Fix test failure on platforms with non-GNU iconv.
95457         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
95458         (U_TO_U8): Use it, rather than u16_to_u8.
95459         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
95460         units at the end of the input string.
95461         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
95463 2008-04-20  Bruno Haible  <bruno@clisp.org>
95465         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
95466         when the resulting length is 0.
95467         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
95469 2008-04-20  Bruno Haible  <bruno@clisp.org>
95471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
95472         works.
95473         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
95475 2008-04-20  Bruno Haible  <bruno@clisp.org>
95477         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
95478         * modules/tsearch-tests (configure.ac): Test for initstate function.
95480 2008-04-20  Bruno Haible  <bruno@clisp.org>
95482         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
95483         for nlink_t if missing.
95484         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
95486 2008-04-19  Bruno Haible  <bruno@clisp.org>
95488         Work around snprintf bug on Linux libc5.
95489         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
95490         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
95491         gl_SNPRINTF_SIZE1.
95492         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
95493         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
95494         that test failed.
95495         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
95496         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
95497         * modules/snprintf (Files): Add m4/printf.m4.
95498         * modules/vsnprintf (Files): Likewise.
95499         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
95500         * doc/posix-functions/vsnprintf.texi: Likewise.
95502 2008-04-19  Bruno Haible  <bruno@clisp.org>
95504         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
95505         from 0.0058 to less than 10^-7.
95507 2008-04-19  Bruno Haible  <bruno@clisp.org>
95509         Fix rounding when a precision is given.
95510         * lib/vasnprintf.c (is_borderline): New function.
95511         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
95512         9...9x.
95513         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
95514         %e, %g.
95515         * tests/test-vasprintf-posix.c (test_function): Likewise.
95516         * tests/test-snprintf-posix.h (test_function): Likewise.
95517         * tests/test-sprintf-posix.h (test_function): Likewise.
95518         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
95519         * tests/test-printf-posix.h (test_function): Likewise.
95520         * tests/test-printf-posix.output: Update.
95521         Reported by John Darrington <john@darrington.wattle.id.au> via
95522         Ben Pfaff <blp@cs.stanford.edu>.
95524 2008-04-18  Simon Josefsson  <simon@josefsson.org>
95526         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
95527         Suggested by Bruno Haible <bruno@clisp.org>.
95529 2008-04-17  Bruno Haible  <bruno@clisp.org>
95531         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
95532         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
95533         implementation.
95534         Patch by Bruce Merry <bmerry@gmail.com>.
95536 2008-04-17  Simon Josefsson  <simon@josefsson.org>
95538         * doc/posix-functions/strftime.texi (strftime): Mention that %e
95539         doesn't work under Windows.
95541 2008-04-16  Bruno Haible  <bruno@clisp.org>
95543         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
95544         New macros.
95545         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
95546         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
95547         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
95548         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
95549         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
95550         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
95551         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
95552         macros.
95553         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
95554         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
95555         Northern Sotho, Uighur.
95557 2008-04-16  Bruno Haible  <bruno@clisp.org>
95559         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
95560         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
95561         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
95562         Reported by Daniel Bergström <daniel@octocode.com>.
95564 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
95565             Bruno Haible  <bruno@clisp.org>
95567         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
95568         function.
95569         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
95570         New functions, mostly extracted from gl_locale_name_default.
95571         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
95573 2008-04-16  Eric Blake  <ebb9@byu.net>
95575         Adjust strtod detection to catch glibc 2.7 bug.
95576         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
95577         Reported by John Gatewood Ham.
95579 2008-04-16  Bruno Haible  <bruno@clisp.org>
95581         Add tentative support for Linux libc5.
95582         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
95583         * lib/fpurge.c (fpurge): Likewise.
95584         * lib/freadable.c (freadable): Likewise.
95585         * lib/freadahead.c (freadahead): Likewise.
95586         * lib/freading.c (freading): Likewise.
95587         * lib/freadptr.c (freadptr): Likewise.
95588         * lib/freadseek.c (freadptrinc): Likewise.
95589         * lib/fseeko.c (rpl_fseeko): Likewise.
95590         * lib/fseterr.c (fseterr): Likewise.
95591         * lib/fwritable.c (fwritable): Likewise.
95592         * lib/fwriting.c (fwriting): Likewise.
95593         Reported by Alain Guibert <alguibert+bts@free.fr>.
95595 2008-04-15  Bruno Haible  <bruno@clisp.org>
95597         * modules/mathl (configure.ac): Define module indicator.
95599 2008-04-15  Bruno Haible  <bruno@clisp.org>
95601         * lib/logl.c (logl): Remove unused variables.
95603 2008-04-15  Bruno Haible  <bruno@clisp.org>
95605         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
95606         fails.
95608 2008-04-15  Bruno Haible  <bruno@clisp.org>
95610         * lib/trim.c (trim2): Fix argument of isspace() macro.
95612 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
95614         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
95615         to 0.
95616         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
95618 2008-04-14  Bruno Haible  <bruno@clisp.org>
95620         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
95621         AC_LANG_PROGRAM argument.
95622         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
95623         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
95624         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
95625         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
95626         * m4/math_h.m4 (gl_MATH_H): Likewise.
95627         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
95628         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
95629         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
95630         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
95631         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
95632         * m4/regex.m4 (gl_REGEX): Likewise.
95633         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
95634         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
95635         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
95636         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
95637         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
95638         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
95639         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
95640         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
95642 2008-04-14  Jim Meyering  <meyering@redhat.com>
95644         test-strtod: fix typos: s/abs/fabs/
95645         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
95647 2008-04-13  Bruno Haible  <bruno@clisp.org>
95649         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
95650         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
95651         module is also used and while not building the reloc-wrapper.
95653 2008-04-13  Bruno Haible  <bruno@clisp.org>
95655         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
95657 2008-04-13  Bruno Haible  <bruno@clisp.org>
95659         Fix AIX compilation failure introduced on 2008-04-02.
95660         * tests/test-frexp.c (exp): Undefine before redefining.
95661         * tests/test-frexpl.c (exp): Likewise.
95663 2008-04-13  Bruno Haible  <bruno@clisp.org>
95665         Work around a HP-UX stdio bug.
95666         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
95667         * tests/test-ftello.c (main): Likewise.
95668         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
95669         * doc/posix-functions/ftello.texi: Likewise.
95671 2008-04-13  Bruno Haible  <bruno@clisp.org>
95673         Make test-signbit pass on HP-UX/hppa.
95674         * tests/test-signbit.c (minus_zerol): New variable.
95675         (test_signbitl): Use it.
95677 2008-04-13  Bruno Haible  <bruno@clisp.org>
95679         Make truncl work on OSF/1 4.0.
95680         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
95681         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95682         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
95683         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
95684         HAVE_DECL_TRUNCL.
95685         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
95686         HAVE_DECL_TRUNCL.
95687         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
95689 2008-04-13  Bruno Haible  <bruno@clisp.org>
95691         * lib/unictype.h: Remove trailing comma from enumeration definitions.
95693 2008-04-13  Bruno Haible  <bruno@clisp.org>
95695         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
95696         expression, so as to avoid HP-UX 11 cc compiler bug.
95698 2008-04-13  Bruno Haible  <bruno@clisp.org>
95700         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
95702 2008-04-13  Bruno Haible  <bruno@clisp.org>
95704         * lib/git-merge-changelog.c: Remove empty declaration outside of
95705         functions.
95707 2008-04-13  Bruno Haible  <bruno@clisp.org>
95709         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
95711 2008-04-13  Bruno Haible  <bruno@clisp.org>
95713         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
95714         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
95715         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
95716         also if it exists but lacks definitions of the SHUT_* macros.
95717         * modules/sys_socket (Description): Update.
95718         Reported by Elbert Pol <e.pol@chello.nl>.
95720 2008-04-13  Bruno Haible  <bruno@clisp.org>
95722         * lib/localcharset.c (OS2): Don't redefine if already defined.
95723         Reported by Elbert Pol <e.pol@chello.nl>.
95725 2008-04-13  Bruno Haible  <bruno@clisp.org>
95727         * lib/binary-io.h [__EMX__]: Include <io.h>.
95728         Reported by Elbert Pol <e.pol@chello.nl>.
95730 2008-04-12  Bruno Haible  <bruno@clisp.org>
95732         * lib/fpucw.h: Enable the definitions also for x86_64.
95733         Needed for NetBSD/x86_64.
95734         Reported by Thomas Klausner <tk@giga.or.at>.
95736 2008-04-12  Bruno Haible  <bruno@clisp.org>
95738         * tests/test-strtod.c: Include isnand.h.
95739         (main): Use isnand instead of isnan.
95740         Reported by Jim Meyering.
95742 2008-04-12  Bruno Haible  <bruno@clisp.org>
95744         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
95745         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
95747 2008-04-12  Jim Meyering  <meyering@redhat.com>
95749         * m4/math_h.m4 (gl_MATH_H): Fix typos.
95751 2008-04-12  Bruno Haible  <bruno@clisp.org>
95753         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
95754         Reported by Elbert Pol <e.pol@chello.nl>.
95756 2008-04-12  Eric Blake  <ebb9@byu.net>
95758         Work around Solaris 10 math.h bug.
95759         * m4/math_h.m4 (gl_MATH_H): Check for bug.
95760         (gl_MATH_H_DEFAULTS): Set up default.
95761         * modules/math (Makefile.am): Replace new indicators.
95762         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
95763         * tests/test-math.c (main): Test this.
95764         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
95765         * doc/posix-headers/math.texi (math.h): Mention bug.
95766         Reported by Nelson H. F. Beebe and Jim Meyering.
95768 2008-04-11  Bruno Haible  <bruno@clisp.org>
95770         Adapt to future versions of Apple GCC.
95771         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
95772         Reported by Peter O'Gorman <peter@pogma.com>.
95774 2008-04-11  Bruno Haible  <bruno@clisp.org>
95776         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
95778 2008-04-11  Bruno Haible  <bruno@clisp.org>
95780         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
95782         * modules/getaddrinfo-tests (Makefile.am): Define
95783         test_getaddrinfo_LDADD.
95785 2008-04-11  Bruno Haible  <bruno@clisp.org>
95787         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
95788         (init): Fix syntax error.
95789         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
95790         is declared.
95792 2008-04-11  Bruno Haible  <bruno@clisp.org>
95794         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
95795         * modules/glob (Depends-on): Add stdbool.
95797 2008-04-11  Bruno Haible  <bruno@clisp.org>
95799         * lib/trim.c: Include <string.h>.
95801 2008-04-11  Eric Blake  <ebb9@byu.net>
95803         Avoid compile failure on OS/2.
95804         * lib/regex_internal.h (internal_function): Disable optimization
95805         on OS/2 (__EMX__), where it caused compiler error.
95806         Reported by Elbert Pol.
95808 2008-04-11  Bruno Haible  <bruno@clisp.org>
95810         Flush the standard error stream before aborting. Needed on mingw.
95811         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
95812         * tests/test-array_list.c (ASSERT): Likewise.
95813         * tests/test-array_oset.c (ASSERT): Likewise.
95814         * tests/test-avltree_list.c (ASSERT): Likewise.
95815         * tests/test-avltree_oset.c (ASSERT): Likewise.
95816         * tests/test-avltreehash_list.c (ASSERT): Likewise.
95817         * tests/test-binary-io.c (ASSERT): Likewise.
95818         * tests/test-byteswap.c (ASSERT): Likewise.
95819         * tests/test-c-ctype.c (ASSERT): Likewise.
95820         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
95821         * tests/test-c-strcasestr.c (ASSERT): Likewise.
95822         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
95823         * tests/test-c-strstr.c (ASSERT): Likewise.
95824         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
95825         * tests/test-canonicalize.c (ASSERT): Likewise.
95826         * tests/test-carray_list.c (ASSERT): Likewise.
95827         * tests/test-ceilf1.c (ASSERT): Likewise.
95828         * tests/test-ceilf2.c (ASSERT): Likewise.
95829         * tests/test-ceill.c (ASSERT): Likewise.
95830         * tests/test-count-one-bits.c (ASSERT): Likewise.
95831         * tests/test-fbufmode.c (ASSERT): Likewise.
95832         * tests/test-fflush2.c (ASSERT): Likewise.
95833         * tests/test-floorf1.c (ASSERT): Likewise.
95834         * tests/test-floorf2.c (ASSERT): Likewise.
95835         * tests/test-floorl.c (ASSERT): Likewise.
95836         * tests/test-fopen.c (ASSERT): Likewise.
95837         * tests/test-fpending.c (ASSERT): Likewise.
95838         * tests/test-fprintf-posix.c (ASSERT): Likewise.
95839         * tests/test-fpurge.c (ASSERT): Likewise.
95840         * tests/test-freadable.c (ASSERT): Likewise.
95841         * tests/test-freadahead.c (ASSERT): Likewise.
95842         * tests/test-freading.c (ASSERT): Likewise.
95843         * tests/test-freadptr.c (ASSERT): Likewise.
95844         * tests/test-freadptr2.c (ASSERT): Likewise.
95845         * tests/test-freadseek.c (ASSERT): Likewise.
95846         * tests/test-freopen.c (ASSERT): Likewise.
95847         * tests/test-frexp.c (ASSERT): Likewise.
95848         * tests/test-frexpl.c (ASSERT): Likewise.
95849         * tests/test-fseek.c (ASSERT): Likewise.
95850         * tests/test-fseeko.c (ASSERT): Likewise.
95851         * tests/test-fstrcmp.c (ASSERT): Likewise.
95852         * tests/test-ftell.c (ASSERT): Likewise.
95853         * tests/test-ftello.c (ASSERT): Likewise.
95854         * tests/test-func.c (ASSERT): Likewise.
95855         * tests/test-fwritable.c (ASSERT): Likewise.
95856         * tests/test-fwriting.c (ASSERT): Likewise.
95857         * tests/test-getdelim.c (ASSERT): Likewise.
95858         * tests/test-getline.c (ASSERT): Likewise.
95859         * tests/test-i-ring.c (ASSERT): Likewise.
95860         * tests/test-iconv-utf.c (ASSERT): Likewise.
95861         * tests/test-iconv.c (ASSERT): Likewise.
95862         * tests/test-isfinite.c (ASSERT): Likewise.
95863         * tests/test-isnand.c (ASSERT): Likewise.
95864         * tests/test-isnanf.c (ASSERT): Likewise.
95865         * tests/test-isnanl.h (ASSERT): Likewise.
95866         * tests/test-ldexpl.c (ASSERT): Likewise.
95867         * tests/test-linked_list.c (ASSERT): Likewise.
95868         * tests/test-linkedhash_list.c (ASSERT): Likewise.
95869         * tests/test-localename.c (ASSERT): Likewise.
95870         * tests/test-lseek.c (ASSERT): Likewise.
95871         * tests/test-mbscasecmp.c (ASSERT): Likewise.
95872         * tests/test-mbscasestr1.c (ASSERT): Likewise.
95873         * tests/test-mbscasestr2.c (ASSERT): Likewise.
95874         * tests/test-mbscasestr3.c (ASSERT): Likewise.
95875         * tests/test-mbscasestr4.c (ASSERT): Likewise.
95876         * tests/test-mbschr.c (ASSERT): Likewise.
95877         * tests/test-mbscspn.c (ASSERT): Likewise.
95878         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
95879         * tests/test-mbspbrk.c (ASSERT): Likewise.
95880         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
95881         * tests/test-mbsrchr.c (ASSERT): Likewise.
95882         * tests/test-mbsspn.c (ASSERT): Likewise.
95883         * tests/test-mbsstr1.c (ASSERT): Likewise.
95884         * tests/test-mbsstr2.c (ASSERT): Likewise.
95885         * tests/test-mbsstr3.c (ASSERT): Likewise.
95886         * tests/test-memchr2.c (ASSERT): Likewise.
95887         * tests/test-memmem.c (ASSERT): Likewise.
95888         * tests/test-open.c (ASSERT): Likewise.
95889         * tests/test-printf-frexp.c (ASSERT): Likewise.
95890         * tests/test-printf-frexpl.c (ASSERT): Likewise.
95891         * tests/test-printf-posix.c (ASSERT): Likewise.
95892         * tests/test-quotearg.c (ASSERT): Likewise.
95893         * tests/test-rbtree_list.c (ASSERT): Likewise.
95894         * tests/test-rbtree_oset.c (ASSERT): Likewise.
95895         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
95896         * tests/test-round1.c (ASSERT): Likewise.
95897         * tests/test-roundf1.c (ASSERT): Likewise.
95898         * tests/test-roundl.c (ASSERT): Likewise.
95899         * tests/test-signbit.c (ASSERT): Likewise.
95900         * tests/test-sleep.c (ASSERT): Likewise.
95901         * tests/test-snprintf-posix.c (ASSERT): Likewise.
95902         * tests/test-snprintf.c (ASSERT): Likewise.
95903         * tests/test-sprintf-posix.c (ASSERT): Likewise.
95904         * tests/test-stat-time.c (ASSERT): Likewise.
95905         * tests/test-strcasestr.c (ASSERT): Likewise.
95906         * tests/test-strerror.c (ASSERT): Likewise.
95907         * tests/test-striconv.c (ASSERT): Likewise.
95908         * tests/test-striconveh.c (ASSERT): Likewise.
95909         * tests/test-striconveha.c (ASSERT): Likewise.
95910         * tests/test-strsignal.c (ASSERT): Likewise.
95911         * tests/test-strstr.c (ASSERT): Likewise.
95912         * tests/test-strtod.c (ASSERT): Likewise.
95913         * tests/test-trunc1.c (ASSERT): Likewise.
95914         * tests/test-trunc2.c (ASSERT): Likewise.
95915         * tests/test-truncf1.c (ASSERT): Likewise.
95916         * tests/test-truncf2.c (ASSERT): Likewise.
95917         * tests/test-truncl.c (ASSERT): Likewise.
95918         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
95919         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
95920         * tests/test-vasnprintf.c (ASSERT): Likewise.
95921         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
95922         * tests/test-vasprintf.c (ASSERT): Likewise.
95923         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
95924         * tests/test-vprintf-posix.c (ASSERT): Likewise.
95925         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
95926         * tests/test-vsnprintf.c (ASSERT): Likewise.
95927         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
95928         * tests/test-wcwidth.c (ASSERT): Likewise.
95929         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
95930         * tests/test-xprintf-posix.c (ASSERT): Likewise.
95931         * tests/test-xvasprintf.c (ASSERT): Likewise.
95932         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
95933         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
95934         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
95935         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
95936         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
95937         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
95938         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
95939         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
95940         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
95941         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
95942         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
95943         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
95944         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
95945         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
95946         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
95947         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
95948         * tests/unictype/test-block_list.c (ASSERT): Likewise.
95949         * tests/unictype/test-block_of.c (ASSERT): Likewise.
95950         * tests/unictype/test-block_test.c (ASSERT): Likewise.
95951         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
95952         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
95953         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
95954         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
95955         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
95956         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
95957         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
95958         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
95959         * tests/unictype/test-combining.c (ASSERT): Likewise.
95960         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
95961         * tests/unictype/test-digit.c (ASSERT): Likewise.
95962         * tests/unictype/test-mirror.c (ASSERT): Likewise.
95963         * tests/unictype/test-numeric.c (ASSERT): Likewise.
95964         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
95965         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
95966         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
95967         * tests/unictype/test-scripts.c (ASSERT): Likewise.
95968         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
95969         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
95970         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
95971         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
95972         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
95973         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
95974         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
95975         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
95976         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
95977         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
95978         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
95979         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
95980         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
95981         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
95982         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
95983         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
95984         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
95985         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
95986         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
95987         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
95988         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
95989         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
95990         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
95991         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
95992         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
95993         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
95994         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
95995         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
95996         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
95997         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
95998         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
95999         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
96000         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
96001         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
96002         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
96003         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
96004         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
96005         Reported by Eric Blake.
96007 2008-04-11  Bruno Haible  <bruno@clisp.org>
96009         * lib/wchar.in.h: Tweak comment.
96011 2008-04-11  Bruno Haible  <bruno@clisp.org>
96013         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
96014         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
96015         gl_COMMON.
96016         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
96018 2008-04-11  Bruno Haible  <bruno@clisp.org>
96020         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
96022 2008-04-11  Simon Josefsson  <simon@josefsson.org>
96024         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
96025         of attempting to use non-existing /dev/*random.  Based on patch
96026         from Adam Strzelecki <ono@java.pl> in
96027         <http://lists.gnu.org/r/help-gsasl/2008-02/msg00000.html>.
96029 2008-04-08  Bruno Haible  <bruno@clisp.org>
96031         Add tentative support for emx+gcc.
96032         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
96033         * lib/fpurge.c (fpurge): Likewise.
96034         * lib/freadable.c (freadable): Likewise.
96035         * lib/freadahead.c (freadahead): Likewise.
96036         * lib/freading.c (freading): Likewise.
96037         * lib/freadptr.c (freadptr): Likewise.
96038         * lib/freadseek.c (freadptrinc): Likewise.
96039         * lib/fseeko.c (rpl_fseeko): Likewise.
96040         * lib/fseterr.c (fseterr): Likewise.
96041         * lib/fwritable.c (fwritable): Likewise.
96042         * lib/fwriting.c (fwriting): Likewise.
96043         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
96045 2008-04-09  Eric Blake  <ebb9@byu.net>
96047         Avoid some autoconf warnings.
96048         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
96049         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
96050         * m4/afs.m4 (gl_AFS): Likewise.
96051         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
96052         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
96053         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96054         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
96055         (gl_INTEGER_TYPE_SUFFIX): Likewise.
96056         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
96057         (AC_CHECK_DECLS_ONCE): Likewise.
96058         Rename file...
96059         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
96060         gnulib-tool requires autoconf 2.59 or better.
96061         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
96063 2008-04-08  Eric Blake  <ebb9@byu.net>
96065         Use 'git describe --match' if present (added in git 1.5.5).
96066         * build-aux/git-version-gen: Limit result to tags that match 'v*'
96067         if possible.
96069 2008-04-08  Bruno Haible  <bruno@clisp.org>
96071         Add tentative support for OpenServer.
96072         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
96073         _ptr, _cnt.
96074         * lib/fpurge.c (fpurge): Likewise.
96075         * lib/freadable.c (freadable): Likewise.
96076         * lib/freadahead.c (freadahead): Likewise.
96077         * lib/freading.c (freading): Likewise.
96078         * lib/freadptr.c (freadptr): Likewise.
96079         * lib/freadseek.c (freadptrinc): Likewise.
96080         * lib/fseeko.c (rpl_fseeko): Likewise.
96081         * lib/fseterr.c (fseterr): Likewise.
96082         * lib/fwritable.c (fwritable): Likewise.
96083         * lib/fwriting.c (fwriting): Likewise.
96084         Reported by Roger Cornelius <rac@tenzing.org> and
96085         Brian K. White <brian@aljex.com>.
96087 2008-04-06  Jim Meyering  <meyering@redhat.com>
96089         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
96091 2008-04-06  Bruno Haible  <bruno@clisp.org>
96093         Avoid possible error with non-ASCII bytes in UTF-8 locales.
96094         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
96095         * tests/test-printf-posix.sh: Likewise.
96096         * tests/test-vfprintf-posix.sh: Likewise.
96097         * tests/test-vprintf-posix.sh: Likewise.
96098         * tests/test-xprintf-posix.sh: Likewise.
96100 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
96102         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
96103         hide error from 'ls', needed on OS/2.
96104         Report by Elbert Pol <elbert.pol@gmail.com>.
96106 2008-04-04  Eric Blake  <ebb9@byu.net>
96108         Make test-fseeko.c failures meaningful.
96109         * tests/test-fseeko.c: Print line number on failure.
96110         * tests/test-fseek.c: Likewise.
96111         Reported by Nelson H. F. Beebe.
96113         Improve strtod bug detection check.
96114         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
96115         required for Solaris 10.
96116         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
96118 2008-04-04  Bruno Haible  <bruno@clisp.org>
96120         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
96121         by m4/setenv.m4.
96123 2008-04-03  Eric Blake  <ebb9@byu.net>
96125         Ensure sane .version contents.
96126         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
96127         version string.
96128         * build-aux/git-version-gen: Improve documentation.
96130         Make GNU make output nicer.
96131         * top/GNUmakefile [!_have-Makefile]: Add dependency on
96132         MAKECMDGOALS to enforce message for all command line targets.  Set
96133         srcdir for use in maint.mk.
96135         Another maintainer tweak.
96136         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
96137         a target that regenerates version.
96139 2008-04-03  Jim Meyering  <meyering@redhat.com>
96141         vc-list-files: don't cause coreutils "make po-check" failure
96142         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
96144 2008-04-03  Eric Blake  <ebb9@byu.net>
96146         Allow VPATH usage of vc-list-files.
96147         * build-aux/vc-list-files (scriptversion): Add timestamp.
96148         (options): Add --help, --version, -C.
96149         (CVS): Support installed cvsu.
96151 2008-04-02  Bruno Haible  <bruno@clisp.org>
96153         Avoid some "statement with no effect" warnings from gcc.
96154         * tests/test-wctype.c (main): Explicitly ignore unused values.
96155         Reported by Jim Meyering.
96157 2008-04-02  Jim Meyering  <meyering@redhat.com>
96159         Avoid some warnings from "gcc -Wshadow".
96160         * tests/test-frexp.c (exp): Define to a different identifier.
96161         * tests/test-frexpl.c (exp): Likewise.
96163 2008-04-03  Jim Meyering  <meyering@redhat.com>
96165         bootstrap: remove dangling *.[ch] symlinks from lib
96166         * build-aux/bootstrap [dangling symlink removal]: Move find's
96167         -depth option to precede all others, to avoid a warning.
96168         Remove *.[ch] files too, and from "$source_base" (usually lib/).
96170 2008-04-02  Bruno Haible  <bruno@clisp.org>
96172         Avoid some warnings from "gcc -Wshadow".
96173         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
96174         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
96175         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
96176         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
96177         Reported by Jim Meyering.
96179 2008-04-01  Bruno Haible  <bruno@clisp.org>
96181         Fix test to work on IRIX 6.5 with cc.
96182         * tests/test-math.c (numeric_equal): New function.
96183         (main): Use it.
96185 2008-04-01  Bruno Haible  <bruno@clisp.org>
96187         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
96189 2008-04-01  Bruno Haible  <bruno@clisp.org>
96191         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
96192         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96193         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
96194         (Depends-on): Remove math.
96196         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
96197         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96198         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
96199         (Depends-on): Remove math.
96201         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
96202         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96203         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
96204         (Depends-on): Remove math.
96205         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
96206         (Depends-on): Remove math.
96208         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
96209         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
96210         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
96211         (Depends-on): Remove math.
96212         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
96213         (Depends-on): Remove math.
96215         * tests/test-round1.c: Include nan.h.
96216         (main): Use NaNd instead of NAN.
96217         * modules/round-tests (Files): Add tests/nan.h.
96219         * tests/test-trunc1.c: Include nan.h.
96220         (main): Use NaNd instead of NAN.
96221         * modules/trunc-tests (Files): Add tests/nan.h.
96223         * tests/test-roundf1.c: Include nan.h.
96224         (main): Use NaNf instead of NAN.
96225         * modules/roundf-tests (Files): Add tests/nan.h.
96227         * tests/test-truncf1.c: Include nan.h.
96228         (main): Use NaNf instead of NAN.
96229         * modules/truncf-tests (Files): Add tests/nan.h.
96231         * tests/test-ceilf1.c: Include nan.h.
96232         (main): Use NaNf instead of NAN.
96233         * modules/ceilf-tests (Files): Add tests/nan.h.
96235         * tests/test-floorf1.c: Include nan.h.
96236         (main): Use NaNf instead of NAN.
96237         * modules/floorf-tests (Files): Add tests/nan.h.
96239         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
96240         (main): Use NaNf instead of NAN.
96241         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
96243         * tests/test-isnand.c: Include nan.h instead of <math.h>.
96244         (main): Use NaNd instead of NAN.
96245         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
96247         * tests/test-frexp.c: Include nan.h.
96248         (main): Use NaNd instead of NAN.
96249         * modules/frexp-tests (Files): Add tests/nan.h.
96251         * lib/isnan.c: Don't include <math.h>.
96252         (FUNC): Don't use NAN macro.
96253         * modules/isnand-nolibm (Depends-on): Remove math.
96254         * modules/isnanf-nolibm (Depends-on): Remove math.
96255         * modules/isnanl (Depends-on): Remove math.
96256         * modules/isnanl-nolibm (Depends-on): Remove math.
96258         * tests/nan.h: New file.
96260 2008-04-01  Eric Blake  <ebb9@byu.net>
96262         Fix typos.
96263         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
96264         values to be the right type.
96266         For now, cater to gnulib strtod inaccuracies.
96267         * tests/test-strtod.c (main): Allow 1-ulp error on expected
96268         fractional results.  While not as nice from a QoI perspective, it
96269         is a quicker patch than correctly implementing decimal to binary
96270         rounding.
96272 2008-03-31  Eric Blake  <ebb9@byu.net>
96274         Guarantee a definition of NAN.
96275         * lib/math.in.h (NAN): Define if missing.
96276         * tests/test-math.c (main): Test it.
96277         * doc/posix-headers/math.texi (math.h): Document this.
96278         * lib/isnan.c (rpl_isnand): Use it.
96279         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
96280         * tests/test-floorf1.c (NaN): Likewise.
96281         * tests/test-frexp.c (NaN): Likewise.
96282         * tests/test-isnand.c (NaN): Likewise.
96283         * tests/test-isnanf.c (NaN): Likewise.
96284         * tests/test-round1.c (NaN): Likewise.
96285         * tests/test-roundf1.c (NaN): Likewise.
96286         * tests/test-snprintf-posix.h (NaN): Likewise.
96287         * tests/test-sprintf-posix.h (NaN): Likewise.
96288         * tests/test-trunc1.c (NaN): Likewise.
96289         * tests/test-truncf1.c (NaN): Likewise.
96290         * tests/test-vasnprintf-posix.c (NaN): Likewise.
96291         * tests/test-vasprintf-posix.c (NaN): Likewise.
96292         * modules/isnand-nolibm (Depends-on): Add math.
96293         * modules/isnanf-nolibm (Depends-on): Likewise.
96294         * modules/isnanl (Depends-on): Likewise.
96295         * modules/isnanl-nolibm (Depends-on): Likewise.
96296         * modules/snprintf-posix-tests (Depends-on): Likewise.
96297         * modules/sprintf-posix-tests (Depends-on): Likewise.
96298         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
96299         * modules/vsprintf-posix-tests (Depends-on): Likewise.
96300         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
96301         * modules/vasprintf-posix-tests (Depends-on): Likewise.
96303 2008-03-31  Bruno Haible  <bruno@clisp.org>
96305         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
96306         * doc/posix-functions/strtod.texi: Likewise.
96308 2008-03-31  Bruno Haible  <bruno@clisp.org>
96310         * tests/test-strtod.c (main): Don't use C99 syntax.
96312 2008-03-31  Bruno Haible  <bruno@clisp.org>
96314         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
96315         Reported by Eric Blake.
96317 2008-03-31  Jim Meyering  <meyering@redhat.com>
96319         Don't compare actual signbit return values.
96320         * tests/test-strtod.c (main): Rather, compare only their
96321         zero/non-zero nature.
96323 2008-03-31  Eric Blake  <ebb9@byu.net>
96325         More strtod documentation.
96326         * doc/posix-functions/strtod.texi (strtod): Interpret more test
96327         failures as distinct bugs.
96329 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
96331         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
96332         Problem reported by Erik Benada in
96333         <http://lists.gnu.org/r/bug-gnulib/2008-03/msg00249.html>.
96335 2008-03-30  Bruno Haible  <bruno@clisp.org>
96337         * tests/test-strtod.c: Add comments about which assertion fails on which
96338         platform.
96339         * doc/posix-functions/strtod.texi: Add info about many more platforms.
96341 2008-03-30  Eric Blake  <ebb9@byu.net>
96343         Test signbit behavior on zeros.
96344         * tests/test-signbit.c (test_signbitf): Add tests for zero.
96345         (test_signbitd, test_signbitl): Likewise.
96347         More strtod touchups.
96348         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
96349         sign of negative underflow, for now.  Use .5, not .1.
96350         * doc/posix-functions/strtod.texi (strtod): Mention these
96351         limitations.
96352         Reported by Jim Meyering.
96354 2008-03-30  Bruno Haible  <bruno@clisp.org>
96356         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
96357         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
96359 2008-03-30  Bruno Haible  <bruno@clisp.org>
96361         Avoid failure when attempting to return empty iconv results on some
96362         platforms.
96363         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
96364         allocation, don't report ENOMEM when the resulting string is empty.
96366 2008-03-30  Bruno Haible  <bruno@clisp.org>
96368         Fix buffer overrun.
96369         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
96370         Don't consider the width for tmp_length. Check count against tmp_length
96371         before doing the padding. Ensure enough allocation during padding.
96373 2008-03-30  Eric Blake  <ebb9@byu.net>
96375         strtod touchups.
96376         * lib/strtod.c (strtod): Avoid compiler warnings.
96377         Reported by Jim Meyering.
96379 2008-03-30  Bruno Haible  <bruno@clisp.org>
96381         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
96382         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
96383         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
96384         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
96385         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
96386         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
96387         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
96388         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
96390         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
96391         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
96392         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
96393         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
96394         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
96395         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
96396         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
96397         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
96399         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
96400         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
96401         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
96402         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
96403         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
96404         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
96405         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
96406         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
96408         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
96409         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
96411         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
96412         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
96414         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
96415         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
96417         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
96418         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
96419         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
96421         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
96422         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
96423         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
96425         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
96426         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
96427         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
96429         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
96430         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
96431         * modules/vasprintf (Depends-on): Add EOVERFLOW.
96433         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
96434         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
96435         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
96436         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
96437         (Depends-on): Add EOVERFLOW.
96438         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
96439         (Depends-on): Add EOVERFLOW.
96440         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96441         (Depends-on): Add EOVERFLOW.
96442         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
96443         (Depends-on): Add EOVERFLOW.
96444         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96445         (Depends-on): Add EOVERFLOW.
96446         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
96447         (Depends-on): Add EOVERFLOW.
96448         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96449         (Depends-on): Add EOVERFLOW.
96450         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
96451         (Depends-on): Add EOVERFLOW.
96453         * lib/sprintf.c (EOVERFLOW): Remove fallback.
96454         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
96455         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
96457         * lib/snprintf.c (EOVERFLOW): Remove fallback.
96458         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
96459         * modules/snprintf (Depends-on): Add EOVERFLOW.
96461         * lib/poll.c (EOVERFLOW): Remove fallback.
96462         * modules/poll (Depends-on): Add EOVERFLOW.
96464         * lib/getugroups.c (EOVERFLOW): Remove fallback.
96465         * modules/getugroups (Depends-on): Add EOVERFLOW.
96467         * lib/getdelim.c (EOVERFLOW): Remove fallback.
96468         * modules/getdelim (Depends-on): Add EOVERFLOW.
96470         * lib/ftell.c (EOVERFLOW): Remove fallback.
96471         * modules/ftell (Depends-on): Add EOVERFLOW.
96473         * lib/fprintf.c (EOVERFLOW): Remove fallback.
96474         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
96475         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
96477         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
96479         * modules/EOVERFLOW-tests: New file.
96480         * tests/test-EOVERFLOW.c: New file.
96482         * modules/EOVERFLOW: New file.
96483         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
96485 2008-03-30  Bruno Haible  <bruno@clisp.org>
96487         Fix bug introduced on 2007-06-10.
96488         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
96489         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
96491 2008-03-30  Bruno Haible  <bruno@clisp.org>
96493         Improve freadseek's efficiency after ungetc.
96494         * lib/freadseek.c: Include freadahead.h.
96495         (freadptrinc): New function, extracted from freadseek.
96496         (freadseek): Use it in a loop. Use freadahead to determine the number
96497         of loop iterations.
96498         * modules/freadseek (Depends-on): Add freadahead.
96499         (configure.ac): Require AC_C_INLINE.
96501 2008-03-30  Bruno Haible  <bruno@clisp.org>
96503         * lib/freadseek.c (freadseek): Don't ignore the return value of
96504         freadptr.
96506 2008-03-29  Eric Blake  <ebb9@byu.net>
96508         Add hex float support.
96509         * modules/strtod (Depends-on): Add c-ctype.
96510         (Link): Mention POW_LIB.
96511         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
96512         whitespace between 'e' and exponent.
96513         * tests/test-strtod.c (main): Enable hex float tests.
96514         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
96515         now provides.
96517         Document various strtod bugs, with some fixes.
96518         * doc/posix-functions/strtod.texi (strtod): Document bugs with
96519         "-0x", "inf", "nan", and hex constants.
96520         * doc/posix-functions/atof.texi (atof): Likewise.
96521         * modules/stdlib (Makefile.am): Support strtod.
96522         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
96523         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
96524         detect additional strtod bugs.
96525         * lib/stdlib.in.h (rpl_strtod): Add declarations.
96526         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
96527         bool where appropriate.  Parse 'inf' and 'nan'.
96528         * tests/test-strtod.c: New file.
96529         * modules/strtod (Depends-on): Add stdbool, stdlib.
96530         (configure.ac): Turn on module indicator.
96531         * modules/strtod-tests: New module.
96533 2008-03-29  Eric Blake  <ebb9@byu.net>
96535         Fix ftell on mingw.
96536         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
96537         * modules/ftell-tests (Depends-on): Add binary-io.
96538         * modules/ftello-tests (Depends-on): Likewise.
96539         * tests/test-ftell.c (main): Enhance test to cover behavior after
96540         ungetc.  Enforce binary mode.
96541         * tests/test-ftello.c (main): Likewise.
96543         Pass test-freadseek on cygwin.
96544         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
96545         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
96546         ungetc buffer.
96548         * tests/test-fflush2.c (main): Fix typo.
96550 2008-03-29  Bruno Haible  <bruno@clisp.org>
96552         * tests/test-fflush2.c (main): Temporarily disable the contents of
96553         this test.
96554         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
96555         Reported by Eric Blake.
96557 2008-03-28  Simon Josefsson  <simon@josefsson.org>
96559         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
96560         (GC_SHA224_DIGEST_SIZE): Add.
96562         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
96563         (gc_hash_digest_length): Likewise.
96564         (gc_hash_buffer): Likewise.
96566 2008-03-25  Bruno Haible  <bruno@clisp.org>
96568         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
96569         detail which gettext release to use.
96570         Reported by Simon Josefsson.
96572 2008-03-26  Jim Meyering  <meyering@redhat.com>
96574         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
96575         * modules/gnumakefile (clean-GNUmakefile): Also, use
96576         test ... && ... || : syntax rather than if-then ... fi.
96578         gnumakefile: Don't double-quote-expand $(VPATH) value.
96579         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
96581 2008-03-24  Eric Blake  <ebb9@byu.net>
96583         Alter GNUmakefile to install into top directory.
96584         * modules/maintainer-makefile: Split, and add dependency...
96585         * modules/gnumakefile: to this new module.
96586         * build-aux/GNUmakefile: Move...
96587         * top/GNUmakefile: ...here.
96588         * build-aux/maint.mk: Move...
96589         * top/maint.mk: ...here.
96590         * MODULES.html.sh (Support for maintaining...): Document new
96591         module.
96593 2008-03-23  Bruno Haible  <bruno@clisp.org>
96595         * gnulib-tool: New options --vc-files, --no-vc-files.
96596         (func_usage): Document them.
96597         (vc_files): New variable.
96598         (func_import): Consider vc_files.
96599         (func_create_testdir): Set vc_files to empty.
96600         Suggested by Jim Meyering and Karl Berry.
96602 2008-03-23  Bruno Haible  <bruno@clisp.org>
96604         Fix regex compilation error on HP-UX 11.
96605         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
96606         * modules/regex (Files): Add m4/mbstate_t.m4.
96607         Reported by Ton Voon <ton.voon@altinity.com>.
96609 2008-03-23  Bruno Haible  <bruno@clisp.org>
96611         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
96613 2008-03-23  Eric Blake  <ebb9@byu.net>
96614             Bruno Haible  <bruno@clisp.org>
96616         Install files from top/ in the destination directory.
96617         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
96618         augmentation also for the files from top/.
96619         (func_import, func_create_testdir): Rewrite file names:
96620         top/filename -> filename.
96622 2008-03-23  Bruno Haible  <bruno@clisp.org>
96624         Tweak "gnulib --version" output.
96625         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
96627 2008-03-23  Bruno Haible  <bruno@clisp.org>
96629         Tweak "gnulib --version" output.
96630         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
96631         rather than contents of ChangeLog, when possible.
96633 2008-03-21  Eric Blake  <ebb9@byu.net>
96635         More --version tweaks.
96636         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
96637         date of last ChangeLog entry.
96639 2008-03-21  Jim Meyering  <meyering@redhat.com>
96641         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
96643 2008-03-20  Eric Blake  <ebb9@byu.net>
96645         VPATH fix.
96646         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
96648 2008-03-20  Simon Josefsson  <simon@josefsson.org>
96650         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
96651         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
96653 2008-03-20  Eric Blake  <ebb9@byu.net>
96655         Sync GNUmakefile with coreutils.
96656         * build-aux/GNUmakefile (have-Makefile): Rename...
96657         (_have-Makefile): ...to this, for namespace consideration.
96658         (GNUmakefile.cfg): Include, if present.
96659         (_autoreconf): Define a default.
96660         (_is-dist-target): New rule for rebuilds to pick up intra-release
96661         version.
96662         (maint-cfg.mk): Rename...
96663         (cfg.mk): ...to this.
96665 2008-03-18  Jim Meyering  <meyering@redhat.com>
96667         New script and module: mktempd
96668         * MODULES.html.sh (maint+release support): Add mktempd.
96669         * build-aux/mktempd: New file.
96670         * modules/mktempd: New file.
96672 2008-03-15  Jim Meyering  <meyering@redhat.com>
96674         Undo last change.
96675         * lib/sha1.c, lib/md5.c: 63 != ~63.
96676         Reported by Andreas Schwab.
96678         sha1.c, md5.c: Hoist a redundant expression.
96679         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
96680         "ctx->buflen" only once, before calling *_process_block.
96681         * lib/md5.c (md5_process_bytes): Likewise.
96683 2008-03-14  Eric Blake  <ebb9@byu.net>
96685         Bump copyright year in files generated by gnulib-tool.
96686         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
96687         gnulib-tool, rather than hard-coding it.
96689         Fix 'gnulib-tool --version' output to work with git.
96690         * gnulib-tool (func_gnulib_dir): New function, extracted from...
96691         (startup): ...here.
96692         (func_version): Use it to invoke git-version-gen, rather than
96693         relying on CVS keyword expansion.  Modernize wording.
96694         (cvsdatestamp, last_checkin_date, version): Kill unused
96695         variables.
96697 2008-03-12  Jim Meyering  <meyering@redhat.com>
96699         Recognize optional cast of the argument to free.
96700         * build-aux/useless-if-before-free: Update regexps.
96702         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
96704 2008-03-11  Bruno Haible  <bruno@clisp.org>
96706         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
96707         by a single package.
96708         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
96709         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
96710         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
96711         Reported by Sam Steingold <sds@gnu.org>.
96713 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
96715         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
96716         repositories.
96718 2008-03-11  Bruno Haible  <bruno@clisp.org>
96720         Avoid conflicts between local macro definitions.
96721         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
96722         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
96724 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
96725             Bruno Haible  <bruno@clisp.org>
96727         Make va_copy work with some version of xlc on AIX 5.1.
96728         * lib/stdarg.in.h: New file.
96729         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
96730         On AIX, use a <stdarg.h> file substitute.
96731         * modules/stdarg (Files): Add lib/stdarg.in.h.
96732         (Depends-on): Add include_next.
96733         (Makefile.am): Build a stdarg.h substitute if requested.
96734         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
96736 2008-03-10  Bruno Haible  <bruno@clisp.org>
96738         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
96739         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
96740         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
96742 2008-03-10  Bruno Haible  <bruno@clisp.org>
96744         * modules/stdlib (Depends-on): Add include_next, remove
96745         absolute-header.
96747 2008-03-09  Bruno Haible  <bruno@clisp.org>
96749         * lib/freadahead.h (freadahead): Document more precisely.
96750         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
96751         the sum of both buffer sizes.
96752         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
96753         * NEWS: Document the change.
96755 2008-03-09  Bruno Haible  <bruno@clisp.org>
96757         Extend freadptr to return also the buffer size.
96758         * lib/freadptr.h (freadptr): Add sizep argument.
96759         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
96760         (freadptr): Add sizep argument. Determine buffer size like freadahead
96761         does.
96762         * tests/test-freadptr.c: Don't include freadahead.h.
96763         (main): Adapt for new calling convention of freadptr.
96764         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
96765         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
96766         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
96767         tests/test-freadptr2.sh.
96768         (Depends): Remove freadahead.
96769         (TESTS): Add test-freadptr2.sh.
96770         (check_PROGRAMS): Add test-freadptr2.
96772 2008-03-09  Bruno Haible  <bruno@clisp.org>
96774         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
96775         Report and solution by Simon Josefsson.
96777 2008-03-06  Bruno Haible  <bruno@clisp.org>
96779         Make fflush after ungetc work on BSD platforms.
96780         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
96781         * tests/test-fflush2.c: New file.
96782         * tests/test-fflush2.sh: New file.
96783         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
96784         tests/test-fflush2.c.
96785         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
96786         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
96788 2008-03-06  Eric Blake  <ebb9@byu.net>
96790         Likewise for ftello.
96791         * modules/ftello (Dependencies): Add extensions.
96792         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
96794 2008-03-06  Bruno Haible  <bruno@clisp.org>
96796         * modules/fseeko (Dependencies): Add extensions.
96797         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
96798         Needed on glibc systems.
96800 2008-03-06  Bruno Haible  <bruno@clisp.org>
96802         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
96803         email address.
96804         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96806 2008-03-06  Bruno Haible  <bruno@clisp.org>
96808         * users.txt: Add libgnupdf.
96810 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
96812         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
96813         (Header File Substitutes, Function Substitutes,
96814         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
96815         (Build robot for gnulib): Fix typo.
96817 2008-03-06  Bruno Haible  <bruno@clisp.org>
96819         * doc/gnulib-tool.texi (VCS Issues): Small updates.
96820         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
96822 2008-03-06  Bruno Haible  <bruno@clisp.org>
96824         * doc/func.texi: New file, extracted from doc/gnulib.texi.
96825         * doc/gnulib.texi: Include it.
96827 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96829         * modules/func (License): Change license to unlimited; there was
96830         no LGPL parts in the module anyway.
96832 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96834         * modules/__func__: Renamed to modules/func.
96835         * modules/__func__-tests: Renamed to modules/func-tests.
96836         * tests/test-__func__.c: Renamed to tests/test-func.c.
96837         * m4/__func__.m4: Renamed to m4/func.m4.
96838         * doc/gnulib.texi (__func__): Section renamed to func.
96839         Suggested by Eric Blake <ebb9@byu.net>.
96841 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96843         * doc/gnulib.texi (__func__): Use C99 terminology when talking
96844         about __func__.  Make example self-contained.  Suggested by Eric
96845         Blake <ebb9@byu.net>.
96847         * tests/test-__func__.c (main): Avoid extraneous () around __func.
96848         Suggested by Eric Blake <ebb9@byu.net>.
96850 2008-03-06  Simon Josefsson  <simon@josefsson.org>
96852         * modules/__func__: New file.
96853         * modules/__func__-tests: New file.
96854         * tests/test-__func__.c: New file.
96855         * m4/__func__.m4: New file.
96856         * doc/gnulib.texi (__func__): Document __func__ module.
96858 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96860         * modules/byteswap (License): Re-license as LGPLv2+.
96862 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96864         * doc/Makefile: Add pdf target.
96866 2008-03-05  Simon Josefsson  <simon@josefsson.org>
96868         * modules/inline (License): Use 'unlimited', since there are only
96869         *.m4 files in this module.
96871 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96872             Bruno Haible  <bruno@clisp.org>
96874         Add support for HP C 7.1 on OpenVMS 8.3.
96875         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
96877 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
96879         Update VMS specifics.
96880         * lib/getopt.c [VMS]: Remove include of unixlib.h.
96882 2008-03-02  Jim Meyering  <meyering@redhat.com>
96884         Remove the last dependency on the "free" module.
96885         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
96886         Reported by Bob Proulx.
96888         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
96890         Remove useless "if" tests before free.  Deprecate "free" module.
96891         * doc/posix-functions/free.texi: Mention that this
96892         module is no longer useful.
96893         * modules/free (Notice): Say this module is obsolete.
96894         * modules/readutmp (Depends-on): Remove free.
96895         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
96896         * lib/putenv.c (putenv): Likewise.
96897         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
96898         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
96899         * tests/test-c-strcasestr.c (main): Likewise.
96900         * tests/test-c-strstr.c (main): Likewise.
96901         * tests/test-mbscasestr1.c (main): Likewise.
96902         * tests/test-mbscasestr2.c (main): Likewise.
96903         * tests/test-mbsstr1.c (main): Likewise.
96904         * tests/test-mbsstr2.c (main): Likewise.
96905         * tests/test-memmem.c (main): Likewise.
96906         * tests/test-strcasestr.c (main): Likewise.
96907         * tests/test-striconv.c (main): Likewise.
96908         * tests/test-striconveh.c (main): Likewise.
96909         * tests/test-striconveha.c (main): Likewise.
96910         * tests/test-strstr.c (main): Likewise.
96912         * build-aux/git-version-gen: Adjust a comment and the Usage string.
96914         bootstrap: sync from coreutils again
96915         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
96917 2008-03-01  Jim Meyering  <meyering@redhat.com>
96919         bootstrap: sync from coreutils
96920         * build-aux/bootstrap (update_po_files): Copy a .po file into place
96921         also when the target doesn't exist.
96923 2008-03-01  Eric Blake  <ebb9@byu.net>
96925         Fix bugs in last patch.
96926         * lib/memchr2.c (memchr2): Fix typo.
96927         * tests/test-memchr2.c: Test previous bug, and don't use GNU
96928         extension.
96929         Reported by Bruce Korb.
96931         New module 'memchr2'.
96932         * modules/memchr2: New file.
96933         * modules/memchr2-tests: Likewise.
96934         * lib/memchr2.h: Likewise.
96935         * lib/memchr2.c: Likewise, based on memchr.c.
96936         * tests/test-memchr2.c: New test.
96937         * MODULES.html.sh (String handling): Add memchr2.
96939 2008-02-29  Bruno Haible  <bruno@clisp.org>
96941         * modules/freadseek-tests: New file.
96942         * tests/test-freadseek.sh: New file.
96943         * tests/test-freadseek.c: New file.
96945         New module 'freadseek'.
96946         * modules/freadseek: New file.
96947         * lib/freadseek.h: New file.
96948         * lib/freadseek.c: New file.
96949         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
96951 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
96953         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
96954         wydawca.
96956         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
96957         program_invocation_name and program_invocation_short_name are
96958         present.
96960 2008-02-28  Bruno Haible  <bruno@clisp.org>
96962         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
96963         * tests/test-freadptr.sh: Also test non-seekable stdin.
96965 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
96967         * build-aux/bootstrap (source_base, m4_base)
96968         (doc_base, tests_base): New variables.
96969         (gnulib_tool_options): Do not hardcode base directories, use
96970         the above variables instead.
96972 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
96974         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
96976 2008-02-28  Bruno Haible  <bruno@clisp.org>
96978         * modules/freadptr-tests: New file.
96979         * tests/test-freadptr.sh: New file.
96980         * tests/test-freadptr.c: New file.
96982         New module 'freadptr'.
96983         * modules/freadptr: New file.
96984         * lib/freadptr.h: New file.
96985         * lib/freadptr.c: New file.
96986         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
96988 2008-02-26  Karl Berry  <karl@freefriends.org>
96990         Sync from Libtool:
96991         * libltdl/argz.c (argz_add, argz_count): New functions.
96992         * libltdl/argz.in.h: Declare them.
96993         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
96995 2008-02-22  Bruno Haible  <bruno@clisp.org>
96997         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
96998         is a pointer type.  Needed for HP-UX 10.
96999         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
97000         * doc/posix-functions/gmtime_r.texi: Likewise.
97001         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
97003 2008-02-24  Bruno Haible  <bruno@clisp.org>
97005         * modules/environ-tests: New file.
97006         * tests/test-environ.c: New file.
97008         New module 'environ'.
97009         * modules/environ: New file.
97010         * lib/unistd.in.h (environ): New declaration.
97011         * m4/environ.m4: New file.
97012         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
97013         after use.
97014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
97015         HAVE_DECL_ENVIRON.
97016         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
97017         HAVE_DECL_ENVIRON.
97018         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
97019         wrong claim that 'environ' is missing on some systems.
97020         * modules/execute (Depends-on): Add environ.
97021         * lib/execute.c (environ): Remove fallback declaration.
97022         * modules/pipe (Depends-on): Add environ.
97023         * lib/pipe.c (environ): Remove fallback declaration.
97024         * modules/setenv (Depends-on): Add environ.
97025         * lib/setenv.c (environ): Remove fallback declaration.
97026         * modules/unsetenv (Depends-on): Add environ.
97027         * lib/unsetenv.c (environ): Remove fallback declaration.
97028         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
97029         m4/environ.m4.
97030         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
97031         (gl_PREREQ_UNSETENV): Likewise.
97033 2008-02-24  Bruno Haible  <bruno@clisp.org>
97035         * doc/posix-functions/environ.texi: Document the MacOS X problem.
97037 2008-02-20  Bob Proulx  <bob@proulx.com>
97039         Enable use of older two part flavor 'git describe'.
97040         * build-aux/git-version-gen: If using the older two part flavor of
97041         git version then recreate the third part now present in the
97042         newer three part flavor of git describe.
97044 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
97046         * lib/fts.c (fts_build): Typo correction to comment.
97048 2008-02-17  Bruno Haible  <bruno@clisp.org>
97050         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
97051         generating no-op conflicts.
97053 2008-02-17  Bruno Haible  <bruno@clisp.org>
97055         Speed up by 10%.
97056         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
97057         result_entries, rather than an index-based loop.
97059 2008-02-17  Bruno Haible  <bruno@clisp.org>
97061         Speed up by 25%.
97062         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
97063         'hashcode_cached'.
97064         (entry_create): New function.
97065         (entry_hashcode): Use the cached hashcode if possible.
97066         (read_changelog_file, try_split_merged_entry): Use entry_create.
97068 2008-02-17  Bruno Haible  <bruno@clisp.org>
97070         Speed up from O(n^2) to O(n) for long ChangeLog files.
97071         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
97072         (read_changelog_file): Change implementation of entries_reversed list
97073         to rbtreehash.
97074         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
97076 2008-02-17  Bruno Haible  <bruno@clisp.org>
97078         New option --split-merged-entry.
97079         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
97080         (find_paragraph_end, try_split_merged_entry): New functions.
97081         (long_options): Add option --split-merged-entry.
97082         (usage): Document option --split-merged-entry.
97083         (main): Implement option --split-merged-entry.
97084         Reported by Eric Blake.
97086 2008-02-17  Bruno Haible  <bruno@clisp.org>
97088         * lib/git-merge-changelog.c: Include c-strstr.h.
97089         (main): Support the "git pull --rebase" situation.
97090         * modules/git-merge-changelog (Depends-on): Add c-strstr.
97091         Reported by Eric Blake.
97093 2008-02-16  Eric Blake  <ebb9@byu.net>
97095         Avoid doubling \ in common case of "c-maybe" quoting style.
97096         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
97097         eliding outer quotes.
97098         * lib/quotearg.h: Document this.
97099         * tests/test-quotearg.c (result_strings, inputs, results_g)
97100         (flag_results, locale_results): Test it by adding a new string to
97101         each test group.
97102         (compare_strings): Test new string.
97104 2008-02-13  Eric Blake  <ebb9@byu.net>
97106         Avoid trigraph quoting in default output.
97107         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
97108         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
97109         unless explicitly requested.
97110         * tests/test-quotearg.c (flag_results, main): Add additional tests.
97112 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
97114         Don't rely on signed integer overflowing to negative value.
97115         * lib/getugroups.c (getugroups): Include <limits.h>.
97116         Instead, compare against INT_MAX, and increment only if the test passes.
97118 2008-02-13  Jim Meyering  <meyering@redhat.com>
97119         and Eric Blake  <ebb9@byu.net>
97121         Avoid shadowing warning and compile errors on Linux.
97122         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
97123         forwarding macros on Linux.
97124         (dcgettext): Define a stub, for Linux.
97125         (results_g, main): Avoid warnings.
97127 2008-02-12  Eric Blake  <ebb9@byu.net>
97129         Silence warning in last patch.
97130         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
97132         Quotearg part 4: add tests, fix c-maybe colon quoting.
97133         * lib/quotearg.h: Improve documentation.
97134         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
97135         escapes when adding outer quotes.  When quoting trigraphs, use
97136         valid C notation.  When quoting NUL, omit extra characters if next
97137         character is not digit.  Alter prototype.
97138         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
97139         callers.
97140         * modules/quotearg-tests: New module.
97141         * tests/test-quotearg.c: New test.
97143 2008-02-07  Eric Blake  <ebb9@byu.net>
97145         Quotearg part 3: add flag to control outer quote elision.
97146         * lib/quotearg.h (c_maybe_quoting_style): New style.
97147         (enum quoting_flags): Better documentation of flags.
97148         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
97149         c-maybe style.
97150         (quotearg_buffer_restyled): Handle new flag to elide outer
97151         quotes.
97153         Quotearg part 2: add flag that can control NUL elision.
97154         * lib/quotearg.h (set_quoting_flags): New prototype.
97155         * lib/quotearg.c (struct quoting_options): Add flag field.
97156         (set_quoting_flags): New function.
97157         (quotearg_buffer_restyled): Add flags parameter.
97158         (quotearg_alloc_mem): Set the flag if length cannot be returned.
97159         (quotearg_n_options): Set the flag, since length cannot be
97160         returned.
97161         (quoting_options_from_style): Default flags correctly.
97163         Quotearg part 1: more wrappers, restore quotearg_char state.
97164         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
97165         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
97166         (quotearg_colon_mem): New wrappers.
97167         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
97168         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
97169         functions.
97170         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
97171         (quotearg_colon_mem): New functions.
97173 2008-02-11  Bruno Haible  <bruno@clisp.org>
97175         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
97176         library in the current directory: it does not work with parallel make.
97177         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
97179 2008-02-11  Bruno Haible  <bruno@clisp.org>
97181         * .gitattributes: New file.
97183 2008-02-11  Jim Meyering  <meyering@redhat.com>
97185         useless-if-before-free: Fix reversed exit values.
97186         * build-aux/useless-if-before-free: Use correct values
97187         for EXIT_MATCH and EXIT_NO_MATCH.
97189         * build-aux/useless-if-before-free: Close stdout carefully.
97191 2008-02-10  Bruno Haible  <bruno@clisp.org>
97193         New module 'git-merge-changelog'.
97194         * modules/git-merge-changelog: New file.
97195         * lib/git-merge-changelog.c: New file.
97197 2008-02-10  Jim Meyering  <meyering@redhat.com>
97199         useless-if-before-free: New option: --list (-l).
97201         useless-if-before-free: Don't exit immediately upon open failure.
97202         * build-aux/useless-if-before-free: Exit 2 for errors.
97203         Upon failure to open a file, don't exit immediately.
97204         Rather, just warn and continue with any remaining files.
97206 2008-02-10  Bruno Haible  <bruno@clisp.org>
97208         New abstract list operation 'node_set_value'.
97209         * lib/gl_list.h (gl_list_node_set_value): New function.
97210         (struct gl_list_implementation): New field node_set_value.
97211         * lib/gl_list.c (gl_list_node_set_value): New function.
97212         * lib/gl_array_list.c (gl_array_node_set_value): New function.
97213         (gl_array_list_implementation): Update.
97214         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
97215         (gl_carray_list_implementation): Update.
97216         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
97217         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
97218         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
97219         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
97220         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
97221         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
97222         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
97223         Update.
97224         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
97225         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
97226         (gl_sublist_list_implementation): Update.
97228 2008-02-10  Bruno Haible  <bruno@clisp.org>
97230         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
97231         Needed when ELEMENT is #defined to 'some_type *'.
97233 2008-02-10  Jim Meyering  <meyering@redhat.com>
97235         New script and module: useless-if-before-free
97236         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
97237         * build-aux/useless-if-before-free: New file.
97238         * modules/useless-if-before-free: New file.
97240         * build-aux/gitlog-to-changelog: Use committer date, not author date.
97242         xstrtol_error: Fix typo.
97243         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
97244         s/exit_failure/exit_status/.
97246 2008-02-09  Jim Meyering  <meyering@redhat.com>
97248         New script and module: gitlog-to-changelog
97249         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
97250         * modules/gitlog-to-changelog: New file.
97251         * build-aux/gitlog-to-changelog: New file.
97253 2008-02-08  Jim Meyering  <meyering@redhat.com>
97255         Avoid two "parameter unused" warnings.
97256         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
97257         Mark "st" as used.
97259         Use "git COMMAND", not "git-COMMAND".
97260         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
97261         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
97262         * build-aux/git-version-gen: Use "git status", not "git-status".
97264 2008-02-07  Bruno Haible  <bruno@clisp.org>
97266         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
97267         Avoids a crash on Windows Vista.
97268         Reported by Adam Strzelecki <ono@java.pl> via
97269         Simon Josefsson <simon@josefsson.org>.
97271 2008-02-06  Bruno Haible  <bruno@clisp.org>
97273         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
97274         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
97275         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
97276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
97277         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
97278         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
97279         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
97280         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
97281         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
97282         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
97283         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
97284         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
97285         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
97286         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97287         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
97288         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
97289         left-adjust flag.
97290         * tests/test-snprintf-posix.h (test_function): Likewise.
97291         * tests/test-sprintf-posix.h (test_function): Likewise.
97292         * tests/test-vasprintf-posix.c (test_function): Likewise.
97293         * doc/posix-functions/fprintf.texi: Update.
97294         * doc/posix-functions/printf.texi: Update.
97295         * doc/posix-functions/snprintf.texi: Update.
97296         * doc/posix-functions/sprintf.texi: Update.
97297         * doc/posix-functions/vfprintf.texi: Update.
97298         * doc/posix-functions/vprintf.texi: Update.
97299         * doc/posix-functions/vsnprintf.texi: Update.
97300         * doc/posix-functions/vsprintf.texi: Update.
97301         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97303 2008-02-06  Bruno Haible  <bruno@clisp.org>
97305         Fix bug introduced on 2008-01-26.
97306         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
97308 2008-02-06  Bruno Haible  <bruno@clisp.org>
97310         Fix bug introduced on 2007-06-10.
97311         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
97312         !NEED_PRINTF_FLAG_ZERO.
97314 2008-02-05  Peter O'Gorman  <pogma@thewrittenword.com>
97316         getloadavg: use libperfstat on AIX5
97317         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
97319 2008-02-03  Bruno Haible  <bruno@clisp.org>
97321         * lib/diffseq.h: Add comments about required #includes.
97322         Reported by Michael Biggs <gnulib@doubleplum.net>.
97324 2008-02-01  Bruno Haible  <bruno@clisp.org>
97326         * users.txt: Add gnuit.
97328 2008-01-31  Bruno Haible  <bruno@clisp.org>
97330         * lib/md4.c (set_uint32): Mark as inline.
97331         * lib/md5.c (set_uint32): Likewise.
97332         * lib/sha1.c (set_uint32): Likewise.
97333         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
97334         * m4/md5.m4 (gl_MD5): Likewise.
97335         * m4/sha1.m4 (gl_SHA1): Likewise.
97337 2008-01-31  Jim Meyering  <meyering@redhat.com>
97339         Use "sizeof VAR", rather than a literal "4".
97340         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
97341         * lib/md4.c (md4_read_ctx): Likewise.
97342         * lib/sha1.c (sha1_read_ctx): Likewise.
97344 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97346         * tests/test-sha1.c: New file, based on test-md5.c.
97348         * modules/crypto/sha1-tests: New file.
97350 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97352         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
97354 2008-01-31  Jim Meyering  <meyering@redhat.com>
97356         Prefer "sizeof v" over the equivalent "4".
97357         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
97358         * lib/md5.c (set_uint32): Likewise.
97359         * lib/sha1.c (set_uint32): Likewise.
97361 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97363         * lib/sha1.c (set_uint32): Mark function as static.
97365 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97367         md2: clarify comments to say that alignment is not required.
97368         * lib/md2.h: Remove warning about alignment in comment.
97369         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
97370         never been required.
97372 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97374         md4: adapt alignment constraint fix from sha1.
97375         * lib/md4.c (set_uint32): New function, from sha1.c
97376         (md4_read_ctx): Use it.
97377         (md4_finish_ctx): Doc fix.
97378         * lib/md4.h: Doc fix.
97380 2008-01-31  Simon Josefsson  <simon@josefsson.org>
97382         md5: adapt alignment constraint fix from sha1.
97383         * lib/md5.c (set_uint32): New function, from sha1.c
97384         (md5_read_ctx): Use it.
97385         (md5_finish_ctx): Doc fix.
97386         * lib/md5.h: Doc fix.
97388 2008-01-30  Peter Palfrader  <weasel@debian.org>
97390         sha1: remove the result buffer alignment constraint
97391         * lib/sha1.c (set_uint32): New function.
97392         (sha1_read_ctx): Rewrite to remove the result buffer alignment
97393         constraint.
97394         (sha1_finish_ctx): Remove comment warning about alignment constraint.
97395         * lib/sha1.h: Likewise.
97397 2008-01-30  Andreas Schwab  <schwab@suse.de>
97398             Bruno Haible  <bruno@clisp.org>
97400         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
97401         correct definition of LDBL_MIN_EXP.
97403 2008-01-30  Karl Berry  <karl@gnu.org>
97405         * config/srclist-update: try to preserve x bit on updates.
97406         * config/srclistvars.sh: update for karl.
97408 2008-01-29  Jim Meyering  <meyering@redhat.com>
97410         vasnprintf.c: Avoid warning about unused label
97411         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
97412         "overflow" label definition and associated code with the
97413         same cpp condition that guards the sole use of that label.
97415 2008-01-26  Bruno Haible  <bruno@clisp.org>
97417         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
97418         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
97419         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
97420         * lib/isnanl-nolibm.h (isnanl): Likewise.
97421         Reported by Paul Eggert <eggert@cs.ucla.edu>.
97423 2008-01-26  Bruno Haible  <bruno@clisp.org>
97425         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
97426         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
97428 2008-01-26  Bruno Haible  <bruno@clisp.org>
97430         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
97431         GCC >= 4.0 built-in.
97432         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
97434 2008-01-26  Bruno Haible  <bruno@clisp.org>
97436         Rename isnan, applicable to 'double' only, to isnand.
97437         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
97438         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
97439         (configure.ac): Update.
97440         (Include): Replace "isnan.h" with "isnand.h".
97441         * m4/isnand.m4: Renamed from m4/isnan.m4.
97442         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
97443         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
97444         instead of isnan.c.
97445         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
97446         instead of HAVE_ISNAN_IN_LIBC.
97447         (isnand): Renamed from isnan.
97448         * lib/isnand.c: New file.
97449         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
97450         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
97451         (Makefile.am): Update.
97452         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
97453         Include isnand.h instead of isnan.h.
97454         (main): Test isnand instead of isnan.
97455         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
97456         isnan-nolibm.
97457         * modules/frexp (Depends-on): Likewise.
97458         * modules/frexp-tests (Depends-on): Likewise.
97459         * modules/frexp-nolibm (Depends-on): Likewise.
97460         * modules/frexp-nolibm-tests (Depends-on): Likewise.
97461         * modules/isfinite (Depends-on): Likewise.
97462         * modules/round-tests (Depends-on): Likewise.
97463         * modules/signbit (Depends-on): Likewise.
97464         * modules/signbit-tests (Depends-on): Likewise.
97465         * modules/snprintf-posix (Depends-on): Likewise.
97466         * modules/sprintf-posix (Depends-on): Likewise.
97467         * modules/trunc-tests (Depends-on): Likewise.
97468         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
97469         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
97470         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
97471         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
97472         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
97473         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
97474         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
97475         * modules/vasnprintf-posix (Depends-on): Likewise.
97476         * modules/vasprintf-posix (Depends-on): Likewise.
97477         * modules/vfprintf-posix (Depends-on): Likewise.
97478         * modules/vsnprintf-posix (Depends-on): Likewise.
97479         * modules/vsprintf-posix (Depends-on): Likewise.
97480         * lib/frexp.c: Include isnand.h instead of isnan.h.
97481         (ISNAN): Set to isnand instead of isnan.
97482         * lib/isfinite.c: Include isnand.h instead of isnan.h.
97483         (gl_isfinited): Use isnand instead of isnan.
97484         * lib/signbitd.c: Include isnand.h instead of isnan.h.
97485         (gl_signbitd): Use isnand instead of isnan.
97486         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
97487         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
97488         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
97489         (main): Use isnand instead of isnan.
97490         * tests/test-round1.c: Include isnand.h.
97491         (main): Use isnand instead of isnan.
97492         * tests/test-round2.c: Include isnand.h instead of isnan.h.
97493         (ISNAN): Set to isnand instead of isnan.
97494         * tests/test-trunc1.c: Include isnand.h.
97495         (main): Use isnand instead of isnan.
97496         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
97497         (equal): Use isnand instead of isnan.
97498         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
97499         isnand-nolibm.
97500         * NEWS: Mention the change.
97502 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
97503             Bruno Haible  <bruno@clisp.org>
97505         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
97506         the GCC builtins for signbits are present and set
97507         REPLACE_SIGNBIT_USING_GCC if so.
97508         * lib/math.in.h (signbit): Define using GCC builtins if
97509         REPLACE_SIGNBIT_USING_GCC is set.
97510         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
97511         REPLACE_SIGNBIT_USING_GCC.
97512         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
97514 2008-01-25  Jim Meyering  <meyering@redhat.com>
97516         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
97517         * lib/poll.c: Include <config.h>, not "config.h".
97518         * tests/test-getaddrinfo.c: Likewise.
97520 2008-01-25  Simon Josefsson  <simon@josefsson.org>
97522         * modules/sockets-tests: New file.
97524 2008-01-24  Simon Josefsson  <simon@josefsson.org>
97526         * modules/sockets: New module, can be used to call WSA_Startup and
97527         WSA_Cleanup when needed.
97529         * lib/sockets.h, lib/sockets.c: New files.
97531         * m4/sockets.m4: New file.
97533         * tests/test-sockets.c: New file.
97535 2008-01-19  Bruno Haible  <bruno@clisp.org>
97537         * doc/posix-headers: Renamed from doc/headers.
97538         * doc/posix-functions: Renamed from doc/functions.
97539         * doc/gnulib.texi: Update.
97541 2008-01-19  Bruno Haible  <bruno@clisp.org>
97543         * doc/glibc-functions/strcasestr.texi: Include contents of
97544         doc/functions/strcasestr.texi, fixing the list of platforms.
97545         * doc/functions/strcasestr.texi: Remove file.
97547 2008-01-19  Bruno Haible  <bruno@clisp.org>
97549         * doc/glibc-functions/memmem.texi: Include contents of
97550         doc/functions/memmem.texi.
97551         * doc/functions/memmem.texi: Remove file.
97553 2008-01-18  Bruno Haible  <bruno@clisp.org>
97555         * doc/glibc-functions/*.texi: New files.
97556         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
97557         to use the new files.
97559 2008-01-17  Bruno Haible  <bruno@clisp.org>
97561         * tests/test-gethostname.c (main): Fix printf statement.
97563 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97565         * modules/gethostname-tests: New file.
97567         * tests/test-gethostname.c: New file.
97569 2008-01-17  Simon Josefsson  <simon@josefsson.org>
97571         * lib/gethostname.c: Include string.h unconditionally, strncpy is
97572         used by the UNAME case.  Reported by Bruno Haible
97573         <bruno@clisp.org>.
97575 2008-01-17  Eric Blake  <ebb9@byu.net>
97577         Convert c-strcasestr to be more efficient.
97578         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
97579         (Depends-on): Add c-strcase, remove malloca, strnlen.
97580         * tests/test-c-strcasestr.c (main): Enhance test.
97581         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
97583 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
97585         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
97586         Use it in creating po/Makevars.
97588 2008-01-15  Simon Josefsson  <simon@josefsson.org>
97590         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
97591         Applications that requires it should initialize libgcrypt
97592         manually.
97594 2008-01-16  Simon Josefsson  <simon@josefsson.org>
97596         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
97598 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
97600         Fix problem with getdate on mingw32 reported by Simon Josefsson
97601         in <http://lists.gnu.org/r/bug-gnulib/2008-01/msg00192.html>.
97602         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
97603         tzname", when deciding whether to declare tzname.
97604         * lib/strftime.c (tzname): Likewise.
97606 2008-01-15  Bruno Haible  <bruno@clisp.org>
97608         Work around a MacOS X 10.5 bug in frexpl().
97609         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
97610         * doc/functions/frexpl.texi: Document the bug.
97611         Reported by Elias Pipping <pipping@gentoo.org>.
97613 2008-01-14  Eric Blake  <ebb9@byu.net>
97615         Touch up previous patch.
97616         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
97617         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
97619         Convert strcasestr module to use Two-Way algorithm.
97620         * modules/strcasestr-simple: New module, based on the old
97621         strcasestr, but with Two-Way rather than KMP.
97622         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
97623         * lib/string.in.h (rpl_strcasestr): Declare.
97624         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
97625         performance.
97626         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
97627         * modules/string (Makefile.am): Support strcasestr.
97628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
97629         * modules/strcasestr-tests (Depends-on): Check for alarm.
97630         * tests/test-strcasestr.c: Augment test.
97631         * lib/str-two-way.h: Clean up stray macro.
97632         * NEWS: Document new module.
97633         * MODULES.html.sh (string handling): Likewise.
97634         * doc/functions/strcasestr.texi: New file.
97635         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
97636         here, since it is not a POSIX function.
97638 2008-01-14  Colin Watson  <cjwatson@debian.org>
97639             Bruno Haible  <bruno@clisp.org>
97641         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
97642         works fine; if not, set REPLACE_STRSIGNAL.
97643         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
97644         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97645         REPLACE_STRSIGNAL.
97646         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
97647         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
97648         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
97650 2008-01-14  Bruno Haible  <bruno@clisp.org>
97652         * modules/strsignal (Include): Change to <string.h>.
97654 2008-01-14  Colin Watson  <cjwatson@debian.org>
97656         * modules/argp (Notice): Add a notice recommending to change
97657         XGETTEXT_OPTIONS.
97658         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
97660 2008-01-13  Colin Watson  <cjwatson@debian.org>
97662         * modules/strsignal-tests: New file.
97663         * tests/test-strsignal.c: New file.
97665         * lib/strsignal.c: New file, from glibc with modifications.
97666         * lib/siglist.h: New file, from glibc with modifications.
97667         * lib/string.in.h (strsignal): New declaration.
97668         * m4/strsignal.m4: New file.
97669         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
97670         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
97671         * modules/strsignal: New file.
97672         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
97673         HAVE_DECL_STRSIGNAL.
97675 2008-01-13  Bruno Haible  <bruno@clisp.org>
97677         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
97678         locale encoding is not ASCII. Needed for OpenBSD 4.0.
97679         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
97680         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
97682 2008-01-13  Bruno Haible  <bruno@clisp.org>
97684         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
97685         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
97686         * lib/argp.h (__attribute__): Likewise.
97687         * lib/c-stack.c (__attribute__): Likewise.
97688         * lib/error.h (__attribute__): Likewise.
97689         * lib/fts.c (__attribute__): Likewise.
97690         * lib/openat.h (__attribute__): Likewise.
97691         * lib/stdio.in.h (__attribute__): Likewise.
97692         * lib/string.in.h (__attribute__): Likewise.
97693         * lib/utimens.c (__attribute__): Likewise.
97694         * lib/vasnprintf.h (__attribute__): Likewise.
97695         * lib/xalloc.h (__attribute__): Likewise.
97696         * lib/xprintf.h (__attribute__): Likewise.
97697         * lib/xstrtol.h (__attribute__): Likewise.
97698         * lib/xvasprintf.h (__attribute__): Likewise.
97700 2008-01-12  Bruno Haible  <bruno@clisp.org>
97702         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
97703         * doc/glibc-headers/a.out.texi: New file.
97704         * doc/glibc-headers/aliases.texi: New file.
97705         * doc/glibc-headers/alloca.texi: New file.
97706         * doc/glibc-headers/ar.texi: New file.
97707         * doc/glibc-headers/argp.texi: New file.
97708         * doc/glibc-headers/argz.texi: New file.
97709         * doc/glibc-headers/byteswap.texi: New file.
97710         * doc/glibc-headers/crypt.texi: New file.
97711         * doc/glibc-headers/endian.texi: New file.
97712         * doc/glibc-headers/envz.texi: New file.
97713         * doc/glibc-headers/err.texi: New file.
97714         * doc/glibc-headers/error.texi: New file.
97715         * doc/glibc-headers/execinfo.texi: New file.
97716         * doc/glibc-headers/fpu_control.texi: New file.
97717         * doc/glibc-headers/fstab.texi: New file.
97718         * doc/glibc-headers/fts.texi: New file.
97719         * doc/glibc-headers/getopt.texi: New file.
97720         * doc/glibc-headers/ieee754.texi: New file.
97721         * doc/glibc-headers/ifaddrs.texi: New file.
97722         * doc/glibc-headers/libintl.texi: New file.
97723         * doc/glibc-headers/mcheck.texi: New file.
97724         * doc/glibc-headers/mntent.texi: New file.
97725         * doc/glibc-headers/obstack.texi: New file.
97726         * doc/glibc-headers/paths.texi: New file.
97727         * doc/glibc-headers/printf.texi: New file.
97728         * doc/glibc-headers/pty.texi: New file.
97729         * doc/glibc-headers/resolv.texi: New file.
97730         * doc/glibc-headers/shadow.texi: New file.
97731         * doc/glibc-headers/sysexits.texi: New file.
97732         * doc/glibc-headers/ttyent.texi: New file.
97734 2008-01-12  Jim Meyering  <meyering@redhat.com>
97736         announce-gen: emit Gnulib's git-based version string.
97737         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
97738         New option --gnulib-version=V, where V is expected to be
97739         the output of running git describe in the gnulib directory.
97740         (get_tool_versions): Request feedback on xdelta.  I suspect it's
97741         not useful, and plan to stop publishing an xdelta file with each
97742         coreutils release.
97744         * build-aux/announce-gen: Also check for lzma-compressed files.
97746 2008-01-11  Bruno Haible  <bruno@clisp.org>
97748         * tests/test-memmem.c (main): Increase maximum allowed time.
97749         * tests/test-strstr.c (main): Likewise.
97751 2008-01-11  Bruno Haible  <bruno@clisp.org>
97753         * doc/functions/memmem.texi: Add more precisions about platforms.
97754         * doc/functions/strstr.texi: Likewise.
97756 2008-01-10  Eric Blake  <ebb9@byu.net>
97758         * m4/strstr.m4: Delete cruft from copy-n-paste.
97759         Reported by Bruno Haible.
97761 2008-01-10  Bruno Haible  <bruno@clisp.org>
97763         Make c-strstr rely on strstr.
97764         * lib/c-strstr.c: Don't include str-kmp.h.
97765         (c_strstr): Define in terms of strstr.
97766         * modules/c-strstr (Files): Remove lib/str-kmp.h.
97767         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
97769 2008-01-10  Bruno Haible  <bruno@clisp.org>
97771         * doc/gnulib.texi (String Functions in C Locale): New section.
97772         * doc/c-ctype.texi: New file.
97773         * doc/c-strcase.texi: New file.
97774         * doc/c-strcaseeq.texi: New file.
97775         * doc/c-strcasestr.texi: New file.
97776         * doc/c-strstr.texi: New file.
97777         * doc/c-strtod.texi: New file.
97778         * doc/c-strtold.texi: New file.
97780 2008-01-10  Eric Blake  <ebb9@byu.net>
97782         * lib/relocatable.h: Fix a comment.
97784 2008-01-10  Eric Blake  <ebb9@byu.net>
97786         Share two-way algorithm.
97787         * lib/str-two-way.h: New file, merged from...
97788         * lib/memmem.c: ...here...
97789         * lib/strstr.c: ...and here.
97790         * modules/memmem (Files): Use it.
97791         * modules/strstr (Files): Likewise.
97793         Avoid quadratic strstr implementations.
97794         * lib/strstr.c: New file.
97795         * m4/strstr.m4: Likewise.
97796         * modules/strstr: Likewise.
97797         * modules/strstr-tests: Likewise.
97798         * tests/test-strstr.c: Likewise.
97799         * lib/string.in.h (rpl_strstr): Declare.
97800         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
97801         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
97802         * modules/string (Makefile.am): Likewise.
97803         * MODULES.html.sh (string handling): Mention new module.
97804         * doc/functions/strstr.texi (strstr): Document the bug.
97806 2008-01-10  Bruno Haible  <bruno@clisp.org>
97808         * lib/relocatable.h (relocate): State whether result is freshly
97809         allocated or not.
97810         * lib/relocatable.c (relocate): Return a freshly allocated string
97811         instead of a pointer to a privately held string.
97812         Reported by Sylvain Beucler <beuc@gnu.org>.
97814 2008-01-10  Colin Watson  <cjwatson@debian.org>
97816         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
97817         s/S_ISNLK/S_ISLNK/.
97819 2008-01-09  Bruno Haible  <bruno@clisp.org>
97821         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
97822         and other files.
97823         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
97824         if it's only a guess.
97825         * modules/memmem: Simplify by depending on memmem-simple.
97827 2008-01-09  Bruno Haible  <bruno@clisp.org>
97829         Work around OpenBSD 4.0 tdelete() bug.
97830         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
97831         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
97832         macros and don't redefine the enum values.
97833         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
97834         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
97835         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
97837 2008-01-09  Bruno Haible  <bruno@clisp.org>
97839         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
97840         (main): Don't perform the tests if setlocale did not install a UTF-8
97841         locale. Needed on OpenBSD 4.0.
97842         * modules/wcwidth-tests (Depends-on): Add localcharset.
97844 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
97846         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
97847         See <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00149.html>.
97848         * NEWS: announce this.
97849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
97851 2008-01-09  Simon Josefsson  <simon@josefsson.org>
97852         and Eric Blake  <ebb9@byu.net>
97854         Add memmem-simple module.
97855         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
97856         (gl_FUNC_MEMMEM): Separate performance from presence checks.
97857         * modules/memmem-simple: New file.
97858         * modules/memmem (Description): Tweak.
97859         * MODULES.html.sh (string handling): Mention new module.
97860         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
97861         addressed by memmem-simple.
97862         * NEWS: Document the difference.
97864 2008-01-09  Eric Blake  <ebb9@byu.net>
97866         Give gcc some memmem optimization hints.
97867         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
97868         (strcasestr): Declare as pure.
97869         * modules/memmem (Maintainer): Claim my implementation.
97871 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97873         Support AIX 6.1 and higher.
97874         * build-aux/config.libpath: Likewise.
97875         * build-aux/config.rpath: Likewise.
97877 2008-01-08  Jim Meyering  <meyering@redhat.com>
97878             Bruno Haible  <bruno@clisp.org>
97880         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
97881         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
97882         Reported by Peter Fales in
97883         <http://lists.gnu.org/r/bug-coreutils/2007-12/msg00148.html>.
97885 2008-01-08  Bruno Haible  <bruno@clisp.org>
97887         * modules/unictype/category-of (Depends-on): Add
97888         unictype/category-none.
97889         * modules/unictype/category-and-tests (Depends-on): Add
97890         unictype/category-{L,N,Lu,Nd}.
97891         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
97892         * modules/unictype/category-or-tests (Depends-on): Add
97893         unictype/category-{L,N}.
97894         * modules/unictype/category-name-tests (Depends-on): Add
97895         unictype/category-{Z,Nl}.
97896         Reported by Simon Josefsson.
97898 2008-01-08  Bruno Haible  <bruno@clisp.org>
97900         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
97901         convention better.
97902         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
97903         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
97904         Reported by Peter Miller <millerp@canb.auug.org.au>.
97906 2008-01-08  Eric Blake  <ebb9@byu.net>
97908         Rewrite memmem to guarantee linear complexity without malloc.
97909         * lib/memmem.c (memmem): Use Two-Way rather than
97910         Knuth-Morris-Pratt, to allow O(1) space usage.
97911         (critical_factorization, two_way_short_needle)
97912         (two_way_long_needle): New functions.
97913         (knuth_morris_pratt): Delete.
97914         * modules/memmem (Depends-on): No longer need malloca or stdbool.
97915         Add stdint.
97916         * tests/test-memmem.c (main): Add tests for periodic needle and
97917         sublinear performance.
97918         * doc/functions/memmem.texi (memmem): Document other deficiencies
97919         in cygwin and older glibc.
97921 2008-01-08  Bruno Haible  <bruno@clisp.org>
97923         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
97924         augmentation.
97926 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
97928         Add a configure time option: --disable-acl.
97929         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
97930         AC_ARG_ENABLE(acl).
97932 2008-01-06  Simon Josefsson  <simon@josefsson.org>
97934         * tests/test-localename.c: Don't include obsolete "setenv.h".
97936         * modules/localename-tests (Depends-on): Need unsetenv.
97938 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
97940         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
97942 2008-01-06  Colin Watson  <cjwatson@debian.org>
97944         * users.txt: Add man-db.
97946 2008-01-07  Bruno Haible  <bruno@clisp.org>
97948         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
97949         previous section name.
97951 2008-01-07  Bruno Haible  <bruno@clisp.org>
97953         * lib/progname.c (set_program_name): Don't strip off a leading
97954         "lt-" prefix outside a .libs directory.
97955         Suggested by Paul Eggert.
97957 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
97958             Bruno Haible  <bruno@clisp.org>
97960         Improve memory cleanup in 'relocatable' module.
97961         * lib/relocatable.h (compute_curr_prefix): Change return type to
97962         'char *'.
97963         * lib/relocatable.c (compute_curr_prefix): Change return type to
97964         'char *'. Free curr_installdir after use.
97965         (relocate): Free curr_prefix_better after use.
97966         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
97968 2008-01-01  Bruno Haible  <bruno@clisp.org>
97970         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
97971         failure on older glibc systems.
97972         Reported by Peter Fales <psfales@alcatel-lucent.com>.
97974 2008-01-05  Eric Blake  <ebb9@byu.net>
97976         Avoid quadratic system memmem.
97977         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
97978         Reported by Ralf Wildenhues.
97980         Fix memmem test for mingw.
97981         * modules/memmem-tests (configure.ac): Check for alarm.
97982         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
97983         it.
97984         * doc/functions/memmem.texi: New file.
97985         * doc/gnulib.texi (Function Substitutes): Add memmem.
97986         Reported by Bruno Haible.
97988 2008-01-04  Bruno Haible  <bruno@clisp.org>
97990         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
97991         Require gl_HEADER_STRINGS_H_DEFAULTS, not
97992         gl_HEADER_STRING_H_DEFAULTS.
97994 2008-01-04  Eric Blake  <ebb9@byu.net>
97996         Shorten duration of memmem test.
97997         * tests/test-memmem.c (main): Use alarm to declare failure if test
97998         is taking too long.
97999         Reported by Ralf Wildenhues.
98001 2007-12-21  Simon Josefsson  <simon@josefsson.org>
98003         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
98004         string, needed by strerror.
98006 2008-01-03  Colin Watson  <cjwatson@debian.org>
98007             Bruno Haible  <bruno@clisp.org>
98009         * doc/gnulib-tool.texi (Localization): New section.
98011 2008-01-02  Bruno Haible  <bruno@clisp.org>
98013         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
98014         variables to 'unsigned char *' type.
98015         Reported by Paul Eggert.
98017 2008-01-02  Jim Meyering  <jim@meyering.net>
98019         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
98021 2007-12-31  Jim Meyering  <jim@meyering.net>
98023         Avoid use of private FTS type name.
98024         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
98026 2007-12-30  Karl Berry  <karl@gnu.org>
98028         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
98029         work around defect in Texinfo and/or the standalone Info browser.
98031 2007-12-30  Bruno Haible  <bruno@clisp.org>
98033         Unify 5 copies of the KMP code.
98034         * lib/str-kmp.h: New file.
98035         * lib/c-strcasestr.c: Include str-kmp.h.
98036         (knuth_morris_pratt): Remove function.
98037         (c_strcasestr): Update.
98038         * lib/c-strstr.c: Include str-kmp.h.
98039         (knuth_morris_pratt): Remove function.
98040         (c_strcasestr): Update.
98041         * lib/mbscasestr.c: Include str-kmp.h.
98042         (knuth_morris_pratt_unibyte): Remove function.
98043         * lib/mbsstr.c: Include str-kmp.h.
98044         (knuth_morris_pratt_unibyte): Remove function.
98045         * lib/strcasestr.c: Include str-kmp.h.
98046         (knuth_morris_pratt): Remove function.
98047         (strcasestr): Update.
98048         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
98049         * modules/c-strstr (Files): Likewise.
98050         * modules/mbscasestr (Files): Likewise.
98051         * modules/mbsstr (Files): Likewise.
98052         * modules/strcasestr (Files): Likewise.
98053         Suggested by Paul Eggert.
98055 2007-12-30  Bruno Haible  <bruno@clisp.org>
98057         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
98058         defined.
98060 2007-12-30  Bruno Haible  <bruno@clisp.org>
98062         * lib/xmalloca.h: Include xalloc.h.
98063         (xnmalloca): New macro.
98065 2007-12-30  Bruno Haible  <bruno@clisp.org>
98067         * lib/malloca.h (nmalloca): New macro.
98068         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
98069         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
98070         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
98071         knuth_morris_pratt_multibyte): Likewise.
98072         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
98073         knuth_morris_pratt_multibyte): Likewise.
98074         * lib/memmem.c (knuth_morris_pratt): Likewise.
98075         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
98077 2007-12-25  Bruno Haible  <bruno@clisp.org>
98079         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
98080         * lib/glob.c: Don't include openat.h.
98081         (link_exists2_p): Add back the code that deals with the
98082         !GLOB_ALTDIRFUNC case.
98083         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
98084         let it do the filename concatenation.
98085         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
98086         * modules/glob (Depends-on): Remove openat.
98088 2007-12-31  Bruno Haible  <bruno@clisp.org>
98090         * modules/dirfd (License): Change to LGPLv2+.
98091         Approved by Jim Meyering.
98093 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
98095         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
98096         when multiplying M by sizeof (size_t).
98098 2007-12-10  Martin Lambers  <marlam@marlam.de>
98100         Override getpagesize on mingw.
98101         * lib/getpagesize.c: New file.
98102         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
98103         * modules/getpagesize (Files): Add lib/getpagesize.c.
98104         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
98105         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
98106         REPLACE_GETPAGESIZE.
98107         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
98109 2007-12-25  Bruno Haible  <bruno@clisp.org>
98111         * modules/localcharset (Notice): New field.
98112         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
98113         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
98115 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
98116             Bruno Haible  <bruno@clisp.org>
98118         Avoid using the syntax symbol() in formatted documentation.
98119         * MODULES.html.sh (func_module): When replacing symbol() with a
98120         hyperlink, remove the parentheses. Show an error if some remain.
98121         Recognize and render the '...' syntax.
98122         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
98123         Rework. Add paragraph about GCC's inlining.
98124         * doc/alloca.texi: Likewise.
98125         * doc/error.texi: Remove parentheses from symbol reference.
98126         * doc/gnulib-intro.texi: Likewise.
98127         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
98128         * modules/fnmatch (Description): Reword to say "the ... function".
98129         * modules/full-read (Description): Likewise.
98130         * modules/full-write (Description): Likewise.
98131         * modules/safe-read (Description): Likewise.
98132         * modules/safe-write (Description): Likewise.
98133         * modules/strchrnul (Description): Likewise.
98134         * modules/trim (Description): Likewise.
98135         * modules/error (Description): Remove parentheses from symbol
98136         references.
98137         * modules/verror (Description): Likewise.
98138         Reported by Karl Berry.
98140 2007-12-25  Bruno Haible  <bruno@clisp.org>
98142         Fixup after 2007-10-16 commit.
98143         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
98145 2007-12-24  Bruno Haible  <bruno@clisp.org>
98147         Make --enable-relocatable work with DESTDIR.
98148         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
98149         to compute installdir from destprog.
98150         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
98151         also set the RELOC_DESTDIR variable.
98152         Reported by Левашев Иван <octagram@bluebottle.com>.
98154 2007-12-24  Bruno Haible  <bruno@clisp.org>
98156         Fix link error due to xalloc_die().
98157         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
98158         of xreadlink.
98159         * lib/relocwrapper.c: Update comments.
98160         * build-aux/install-reloc: Remove xreadlink.c from file list.
98161         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
98162         xreadlink.c.
98163         Reported by Левашев Иван <octagram@bluebottle.com>.
98165 2007-12-24  Bruno Haible  <bruno@clisp.org>
98167         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
98168         * lib/setenv.h: Remove file.
98169         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
98170         lib/setenv.h.
98171         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
98172         (Depends-on): Add stdlib.
98173         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
98174         gl_FUNC_UNSETENV.
98175         (Include): Replace setenv.h with <stdlib.h>.
98176         * modules/unsetenv: New file.
98177         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
98178         * lib/unsetenv.c: Include <stdlib.h> first.
98179         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
98180         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
98181         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
98182         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
98183         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
98184         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98185         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
98186         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
98187         * doc/functions/unsetenv.texi: Update.
98188         * modules/xsetenv (Depends-on): Add unsetenv.
98189         * modules/getdate (Depends-on): Likewise.
98190         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
98191         * lib/xsetenv.c: Don't include setenv.h.
98192         * lib/getdate.y: Likewise.
98193         * lib/relocwrapper.c: Likewise.
98194         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
98195         (Depends-on): Add stdlib.
98196         * NEWS: Mention the changes.
98197         Reported by Левашев Иван <octagram@bluebottle.com>.
98199 2007-12-23  Bruno Haible  <bruno@clisp.org>
98201         * lib/memmem.c (memmem): Use lowercase variable names. Tab
98202         indentation.
98204 2007-12-23  Bruno Haible  <bruno@clisp.org>
98206         * lib/c-strcasestr.c: Add more comments.
98207         * lib/c-strstr.c: Likewise.
98208         * lib/mbscasestr.c: Likewise.
98209         * lib/mbsstr.c: Likewise.
98210         * lib/strcasestr.c: Likewise.
98211         * lib/memmem.c: Likewise.
98213 2007-12-23  Bruno Haible  <bruno@clisp.org>
98215         * tests/test-memmem.c: Include <string.h> first.
98217 2007-12-22  Bruno Haible  <bruno@clisp.org>
98219         * gnulib-tool (func_create_testdir): Change $auxdir while generating
98220         the contents of $testsbase.
98221         Reported by Ralf Wildenhues.
98223 2007-12-22  Bruno Haible  <bruno@clisp.org>
98225         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
98226         two variables local_ldadd_before, local_ldadd_last.
98228 2007-12-20  Eric Blake  <ebb9@byu.net>
98230         Work around circular library issue when cross-compiling.
98231         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
98232         that progname.o does not need to pull in rpl_memcmp.
98234 2007-12-19  Eric Blake  <ebb9@byu.net>
98236         Fix memmem to avoid O(n^2) worst-case complexity.
98237         * lib/memmem.c (knuth_morris_pratt): New function.
98238         (memmem): Use it if first few naive iterations fail.
98239         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
98240         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
98241         * modules/memchr (License): Likewise.
98242         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
98243         malloca.
98244         * tests/test-memmem.c: Rewrite, borrowing ideas from
98245         test-mbsstr1.c; the old version wouldn't even compile!
98246         * modules/memmem-tests: New file.
98247         * lib/string.in.h (rpl_memmem): Add declaration.
98248         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
98249         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
98250         REPLACE_MEMMEM.
98252 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
98254         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
98255         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
98256         before any system include files, and undef after them all.  This
98257         should fix a problem on VMS reported by John E. Malmberg in
98258         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00118.html>.
98260 2007-12-17  Eric Blake  <ebb9@byu.net>
98262         Revert addition of verify, for BSD/OS.
98263         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
98264         can't handle large files, for the sake of obsolete platforms.
98265         * modules/fseeko (Depends-on): Remove verify.
98266         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
98267         * doc/functions/ftello.texi (ftello): Likewise.
98268         * doc/functions/fgetpos.texi (fgetpos): Likewise.
98269         Reported by Larry Jones.
98271 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
98273         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
98274         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
98276 2007-12-17  Jim Meyering  <meyering@redhat.com>
98278         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
98279         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
98280         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
98281         * modules/getcwd (Depends-on): Add openat.
98282         Reported by Petr Salinger.
98284 2007-12-17  Bruno Haible  <bruno@clisp.org>
98286         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
98287         avoid a segmentation fault of the configure test on x86_64 systems.
98289 2007-12-15  Jim Meyering  <meyering@redhat.com>
98291         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
98293 2007-12-13  Eric Blake  <ebb9@byu.net>
98295         Another fseek test.
98296         * tests/test-fseek.c (main): Also test ungetc handling.
98297         * tests/test-fseeko.c (main): Likewise.
98298         * modules/fseeko (Depends-on): Add verify.
98299         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
98300         large.
98301         Reported by Larry Jones.
98303         Fix fseeko on mingw.
98304         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
98305         seek.
98307         Beef up fseek tests.
98308         * tests/test-fseek.c (main): Also test eof handling.
98309         * tests/test-fseeko.c (main): Likewise.
98310         Reported by Larry Jones.
98312 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
98314         Fix fseeko on BSD-based platforms.
98315         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
98316         successful seek.
98318 2007-12-12  Eric Blake  <ebb9@byu.net>
98320         Allow circular dependency of separate libtests.a
98321         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
98322         when use_libtests.
98324 2007-12-11  Eric Blake  <ebb9@byu.net>
98326         Fix bug with -0.0L in previous patch.
98327         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
98328         * tests/test-isnan.c (main): Also test on zeroes.
98329         * tests/test-isnanf.c (main): Likewise.
98330         * tests/test-isnanl.h (main): Likewise.
98332         Detect pseudo-denormals on x86 even when cross-compiling.
98333         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
98334         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
98335         invalid bit patterns that happen to satisfy ==.
98337         Avoid link failures with separate libtests.a.
98338         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
98339         last, to satisfy circular dependencies.
98341 2007-12-11  Eric Blake  <ebb9@byu.net>
98342         and Bruno Haible  <bruno@clisp.org>
98344         Fix OpenBSD 4.0 <float.h> handling of long double.
98345         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
98346         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
98347         * doc/headers/float.texi (float.h): Document OpenBSD bug.
98349 2007-12-11  Jim Meyering  <meyering@redhat.com>
98351         * users.txt: Add libvirt.
98353         Support versions of autoconf prior to 2.59c.
98354         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
98355         if it is not already defined.
98357 2007-12-09  Bruno Haible  <bruno@clisp.org>
98359         Let 'gnulib-tool --import' collect sources needed for the tests in
98360         tests/ rather than in lib/.
98361         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
98362         argument. If true, add rules to generate libtests.a, and put libtests.a
98363         into $(LDADD). Consider source files in subdirectories and set
98364         uses_subdirs.
98365         (func_emit_initmacro_start, func_emit_initmacro_end,
98366         func_emit_initmacro_done): Pass all arguments explicitly.
98367         (func_import): Determine two module lists main_modules,
98368         testsrelated_modules. Determine use_libtests. Determine two variables
98369         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
98370         instead of just sed_transform_lib_file. Determine two variables
98371         main_files and testsrelated_files. Compute 'files' as the union of
98372         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
98373         func_add_or_update. In the generated gnulib-comp.m4, collect the
98374         object files for tests/ in different variables than those for lib/.
98375         Substitute LIBTESTS_LIBDEPS.
98376         (func_create_testdir): Combine the uses_subdirs results from
98377         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
98379 2007-12-09  Bruno Haible  <bruno@clisp.org>
98381         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
98382         the build-aux directory.
98384 2007-12-09  Bruno Haible  <bruno@clisp.org>
98386         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
98387         introduced on 2006-09-09.
98389 2007-12-07  Jim Meyering  <meyering@redhat.com>
98391         Let these macros work also with autoconf-2.59.
98392         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
98393         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
98394         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
98396 2007-12-06  Jim Meyering  <meyering@redhat.com>
98398         Avoid a configure-time syntax error in gl_FUNC_ACL.
98399         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
98400         function in each branch, before testing the cache variable.
98402 2007-12-04  Eric Blake  <ebb9@byu.net>
98404         Make scripts executable.
98405         * build-aux/config.guess: Add execute permissions.
98406         * build-aux/config.sub: Likewise.
98407         * build-aux/gendocs.sh: Likewise.
98409         Fix frexp on mingw.
98410         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
98411         cross-compiling.
98412         * doc/functions/frexp.texi (frexp): Document the bug.
98414         Make cygwin fseeko check more reliable.
98415         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
98416         version numbers, rather than unrelated feature check.
98417         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
98418         * doc/functions/ftello.texi (ftello): Likewise.
98419         Reported by Bruno Haible.
98421         * m4/strerror.m4: Bump version number.
98423 2007-12-03  Bruno Haible  <bruno@clisp.org>
98425         * doc/functions/mprotect.texi: Mention the mingw problem.
98427 2007-12-03  Eric Blake  <ebb9@byu.net>
98429         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
98430         REPLACE_STRERROR is initialized before this macro.
98432 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
98434         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
98435         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
98436         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
98437         put -lsec in even for programs other than 'ls'.  This fixes a problem
98438         for gettext reported by Bruno Haible in
98439         <http://lists.gnu.org/r/bug-gnulib/2007-12/msg00007.html>.
98440         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
98441         Add support for Solaris 10.  This isn't efficient, but should get the
98442         job done for now.
98444 2007-12-03  James Youngman  <jay@gnu.org>
98446         * doc/regexprops-generic.texi: change "an close-group" to "a
98447         close-group" and "illegal" to "not allowed".
98449 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98451         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
98452         pr_byname.h. Needed for the rare case when the maintainer has done
98453         "make maintainer-clean" in the source directory and then attempts a
98454         build outside the source directory.
98455         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
98456         scripts_byname.h.
98458 2007-12-02  Martin Lambers  <marlam@marlam.de>
98459             Bruno Haible  <bruno@clisp.org>
98461         * lib/getpagesize.h: Remove file.
98462         * lib/unistd.in.h: Include declaration of getpagesize here.
98463         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
98464         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
98465         HAVE_SYS_PARAM_H.
98466         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
98467         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98468         * modules/getpagesize (Files): Remove lib/getpagesize.h.
98469         (Depends-on): Add unistd.
98470         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
98471         (Include): Use <unistd.h> instead of getpagesize.h.
98472         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
98473         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
98474         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
98475         gl_GETPAGESIZE invocation, already handled by module dependency.
98476         * lib/pagealign_alloc.c: Don't include getpagesize.h.
98478 2007-12-02  Bruno Haible  <bruno@clisp.org>
98480         * modules/strings-tests: New file.
98481         * tests/test-strings.c: New file.
98483         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
98484         * lib/strings.in.h: New file.
98485         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
98486         * m4/strings_h.m4: New file.
98487         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
98488         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
98489         * modules/strings: New file.
98490         * modules/string (Makefile.am): Update.
98491         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
98492         Reported by Karl Berry.
98494 2007-12-01  Eric Blake  <ebb9@byu.net>
98496         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
98497         accommodate fix in cygwin 1.5.25.
98499 2007-12-01  Jim Meyering  <meyering@redhat.com>
98501         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
98502         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
98503         that would inhibit utf8-optimization of a regexp containing line-
98504         or buffer-anchors, e.g., `^', `$'.
98506 2007-11-30  Bruno Haible  <bruno@clisp.org>
98508         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
98509         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
98510         glthread_recursive_lock_init.
98511         * lib/lock.c (glthread_recursive_lock_init)
98512         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
98513         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
98515 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
98517         New function qset_acl, like set_acl but with syscall semantics.
98518         * lib/acl.h (qset_acl): New decl.
98519         * lib/acl.c (qset_acl): New function.
98520         (set_acl): Use new function.  Use more-consistent diagnostics.
98522 2007-11-28  Jim Meyering  <meyering@redhat.com>
98524         * modules/physmem (License): Change from GPL to LGPLv2+.
98526 2007-11-26  Bruno Haible  <bruno@clisp.org>
98528         * lib/vasnprintf.c (decode_long_double): Don't abort if the
98529         'long double' type has excess precision.
98530         Reported by Jim Meyering in
98531         <http://lists.gnu.org/r/bug-gnulib/2007-11/msg00120.html>.
98533 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
98535         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
98536         Sync from <http://gnu.org/licenses>.
98537         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
98538         with license text from same location.
98539         * doc/maintain.texi, doc/standards.texi:  Sync from
98540         <http://savannah.gnu.org/projects/gnustandards>.
98542 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
98543         and Jim Meyering  <meyering@redhat.com>
98545         Adjust getdate' grammar to accept a slightly more regular language.
98546         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
98547         Before, the former was rejected.
98548         * lib/getdate.y (digits_to_date_time): New function, factored
98549         out of ...
98550         (number): ...here.  Just call digits_to_date_time.
98551         (hybrid): New non-terminal to handle an <unsigned number,
98552         signed relative offset> sequence consistently.
98554 2007-11-18  Jim Meyering  <meyering@redhat.com>
98556         Pull my changes from coreutils:
98557         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
98558         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
98559         use of $gnulib_tool_option_extras, so that it's separated from the
98560         preceding argument.
98562         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
98563         * build-aux/bootstrap (cp_mark_as_generated): Create any required
98564         parent destination directories before copying a file into place.
98566 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
98568         bootstrap: work also with 4-argument variant of AC_INIT
98569         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
98571 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
98573         Port test-getaddrinfo to Solaris.
98574         Problem reported by Bruno Haible in
98575         <http://lists.gnu.org/r/bug-gnulib/2007-03/msg00171.html>.
98576         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
98577         explanation of setting 'hints'.
98578         Don't reject an implementation merely because it returns EAI_SERVICE.
98579         (EAI_SERVICE): Define to 0 if not defined.
98581 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
98583         The license of gnu-make and posix-shell is now "GPLed build tool".
98584         * modules/gnu-make (License): Likewise.
98585         * modules/posix-shell (License): Likewise.
98587         New module posix-shell, for determining a POSIX shell
98588         or perhaps something that is close enough to a POSIX shell.
98589         * m4/posix-shell.m4: New file.
98590         * modules/posix-shell: New file.
98592         * MODULES.html.sh: Mention new module.
98594         New module gnu-make, for determining whether we're using GNU Make.
98595         * m4/gnu-make.m4: New file.
98596         * modules/gnu-make: New file.
98597         * MODULES.html.sh: Mention new module.
98599 2007-11-14  Jim Meyering  <meyering@redhat.com>
98601         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
98602         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
98603         use this macro to create a function _definition_.
98604         Remove useless "#undef ARGMATCH_DIE".
98606 2007-11-14  Bruno Haible  <bruno@clisp.org>
98608         * lib/config.charset: Update for OpenBSD 4.1.
98609         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
98611 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
98613         Document 64-bit #if problems in stdint.texi.
98614         * doc/headers/stdint.texi (stdint.h): Mention problems with
98615         64-bit-#if, and how to work around them.
98617         Don't insist on 'long long int' support in the preprocessor.  It
98618         breaks too many things.  For example, PRIdMAX still uses a 'long
98619         long int' format with the latest Sun compiler, even though
98620         HAVE_LONG_LONG_INT isn't defined due to that compiler's
98621         preprocessor problem.  This causes the latest coreutils to dump
98622         core on Solaris 10 sparc with the Sun C compiler.
98623         Instead, fix the 2007-10-16 problem in a different way, by evaluating
98624         the troublesome expressions at configure-time, not at #if-time.
98625         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
98626         preprocessor.
98627         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
98628         compile-time C checks, done at 'configure'-time.
98629         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
98630         * modules/inttypes (Makefile): Substitute the new symbols that
98631         gl_INTTYPES_H now generates.
98632         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
98634 2007-11-12  Bruno Haible  <bruno@clisp.org>
98636         Tests for Unicode character classification functions.
98638         * modules/unictype/bidicategory-byname-tests: New file.
98639         * modules/unictype/bidicategory-name-tests: New file.
98640         * modules/unictype/bidicategory-of-tests: New file.
98641         * modules/unictype/bidicategory-test-tests: New file.
98642         * modules/unictype/block-list-tests: New file.
98643         * modules/unictype/block-of-tests: New file.
98644         * modules/unictype/block-test-tests: New file.
98645         * modules/unictype/category-C-tests: New file.
98646         * modules/unictype/category-Cc-tests: New file.
98647         * modules/unictype/category-Cf-tests: New file.
98648         * modules/unictype/category-Cn-tests: New file.
98649         * modules/unictype/category-Co-tests: New file.
98650         * modules/unictype/category-Cs-tests: New file.
98651         * modules/unictype/category-L-tests: New file.
98652         * modules/unictype/category-Ll-tests: New file.
98653         * modules/unictype/category-Lm-tests: New file.
98654         * modules/unictype/category-Lo-tests: New file.
98655         * modules/unictype/category-Lt-tests: New file.
98656         * modules/unictype/category-Lu-tests: New file.
98657         * modules/unictype/category-M-tests: New file.
98658         * modules/unictype/category-Mc-tests: New file.
98659         * modules/unictype/category-Me-tests: New file.
98660         * modules/unictype/category-Mn-tests: New file.
98661         * modules/unictype/category-N-tests: New file.
98662         * modules/unictype/category-Nd-tests: New file.
98663         * modules/unictype/category-Nl-tests: New file.
98664         * modules/unictype/category-No-tests: New file.
98665         * modules/unictype/category-P-tests: New file.
98666         * modules/unictype/category-Pc-tests: New file.
98667         * modules/unictype/category-Pd-tests: New file.
98668         * modules/unictype/category-Pe-tests: New file.
98669         * modules/unictype/category-Pf-tests: New file.
98670         * modules/unictype/category-Pi-tests: New file.
98671         * modules/unictype/category-Po-tests: New file.
98672         * modules/unictype/category-Ps-tests: New file.
98673         * modules/unictype/category-S-tests: New file.
98674         * modules/unictype/category-Sc-tests: New file.
98675         * modules/unictype/category-Sk-tests: New file.
98676         * modules/unictype/category-Sm-tests: New file.
98677         * modules/unictype/category-So-tests: New file.
98678         * modules/unictype/category-Z-tests: New file.
98679         * modules/unictype/category-Zl-tests: New file.
98680         * modules/unictype/category-Zp-tests: New file.
98681         * modules/unictype/category-Zs-tests: New file.
98682         * modules/unictype/category-and-not-tests: New file.
98683         * modules/unictype/category-and-tests: New file.
98684         * modules/unictype/category-byname-tests: New file.
98685         * modules/unictype/category-name-tests: New file.
98686         * modules/unictype/category-none-tests: New file.
98687         * modules/unictype/category-of-tests: New file.
98688         * modules/unictype/category-or-tests: New file.
98689         * modules/unictype/category-test-withtable-tests: New file.
98690         * modules/unictype/combining-class-tests: New file.
98691         * modules/unictype/ctype-alnum-tests: New file.
98692         * modules/unictype/ctype-alpha-tests: New file.
98693         * modules/unictype/ctype-blank-tests: New file.
98694         * modules/unictype/ctype-cntrl-tests: New file.
98695         * modules/unictype/ctype-digit-tests: New file.
98696         * modules/unictype/ctype-graph-tests: New file.
98697         * modules/unictype/ctype-lower-tests: New file.
98698         * modules/unictype/ctype-print-tests: New file.
98699         * modules/unictype/ctype-punct-tests: New file.
98700         * modules/unictype/ctype-space-tests: New file.
98701         * modules/unictype/ctype-upper-tests: New file.
98702         * modules/unictype/ctype-xdigit-tests: New file.
98703         * modules/unictype/decimal-digit-tests: New file.
98704         * modules/unictype/digit-tests: New file.
98705         * modules/unictype/mirror-tests: New file.
98706         * modules/unictype/numeric-tests: New file.
98707         * modules/unictype/property-alphabetic-tests: New file.
98708         * modules/unictype/property-ascii-hex-digit-tests: New file.
98709         * modules/unictype/property-bidi-arabic-digit-tests: New file.
98710         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
98711         * modules/unictype/property-bidi-block-separator-tests: New file.
98712         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
98713         * modules/unictype/property-bidi-common-separator-tests: New file.
98714         * modules/unictype/property-bidi-control-tests: New file.
98715         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
98716         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
98717         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
98718         * modules/unictype/property-bidi-european-digit-tests: New file.
98719         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
98720         * modules/unictype/property-bidi-left-to-right-tests: New file.
98721         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
98722         * modules/unictype/property-bidi-other-neutral-tests: New file.
98723         * modules/unictype/property-bidi-pdf-tests: New file.
98724         * modules/unictype/property-bidi-segment-separator-tests: New file.
98725         * modules/unictype/property-bidi-whitespace-tests: New file.
98726         * modules/unictype/property-byname-tests: New file.
98727         * modules/unictype/property-combining-tests: New file.
98728         * modules/unictype/property-composite-tests: New file.
98729         * modules/unictype/property-currency-symbol-tests: New file.
98730         * modules/unictype/property-dash-tests: New file.
98731         * modules/unictype/property-decimal-digit-tests: New file.
98732         * modules/unictype/property-default-ignorable-code-point-tests: New file.
98733         * modules/unictype/property-deprecated-tests: New file.
98734         * modules/unictype/property-diacritic-tests: New file.
98735         * modules/unictype/property-extender-tests: New file.
98736         * modules/unictype/property-format-control-tests: New file.
98737         * modules/unictype/property-grapheme-base-tests: New file.
98738         * modules/unictype/property-grapheme-extend-tests: New file.
98739         * modules/unictype/property-grapheme-link-tests: New file.
98740         * modules/unictype/property-hex-digit-tests: New file.
98741         * modules/unictype/property-hyphen-tests: New file.
98742         * modules/unictype/property-id-continue-tests: New file.
98743         * modules/unictype/property-id-start-tests: New file.
98744         * modules/unictype/property-ideographic-tests: New file.
98745         * modules/unictype/property-ids-binary-operator-tests: New file.
98746         * modules/unictype/property-ids-trinary-operator-tests: New file.
98747         * modules/unictype/property-ignorable-control-tests: New file.
98748         * modules/unictype/property-iso-control-tests: New file.
98749         * modules/unictype/property-join-control-tests: New file.
98750         * modules/unictype/property-left-of-pair-tests: New file.
98751         * modules/unictype/property-line-separator-tests: New file.
98752         * modules/unictype/property-logical-order-exception-tests: New file.
98753         * modules/unictype/property-lowercase-tests: New file.
98754         * modules/unictype/property-math-tests: New file.
98755         * modules/unictype/property-non-break-tests: New file.
98756         * modules/unictype/property-not-a-character-tests: New file.
98757         * modules/unictype/property-numeric-tests: New file.
98758         * modules/unictype/property-other-alphabetic-tests: New file.
98759         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
98760         * modules/unictype/property-other-grapheme-extend-tests: New file.
98761         * modules/unictype/property-other-id-continue-tests: New file.
98762         * modules/unictype/property-other-id-start-tests: New file.
98763         * modules/unictype/property-other-lowercase-tests: New file.
98764         * modules/unictype/property-other-math-tests: New file.
98765         * modules/unictype/property-other-uppercase-tests: New file.
98766         * modules/unictype/property-paired-punctuation-tests: New file.
98767         * modules/unictype/property-paragraph-separator-tests: New file.
98768         * modules/unictype/property-pattern-syntax-tests: New file.
98769         * modules/unictype/property-pattern-white-space-tests: New file.
98770         * modules/unictype/property-private-use-tests: New file.
98771         * modules/unictype/property-punctuation-tests: New file.
98772         * modules/unictype/property-quotation-mark-tests: New file.
98773         * modules/unictype/property-radical-tests: New file.
98774         * modules/unictype/property-sentence-terminal-tests: New file.
98775         * modules/unictype/property-soft-dotted-tests: New file.
98776         * modules/unictype/property-space-tests: New file.
98777         * modules/unictype/property-terminal-punctuation-tests: New file.
98778         * modules/unictype/property-test-tests: New file.
98779         * modules/unictype/property-titlecase-tests: New file.
98780         * modules/unictype/property-unassigned-code-value-tests: New file.
98781         * modules/unictype/property-unified-ideograph-tests: New file.
98782         * modules/unictype/property-uppercase-tests: New file.
98783         * modules/unictype/property-variation-selector-tests: New file.
98784         * modules/unictype/property-white-space-tests: New file.
98785         * modules/unictype/property-xid-continue-tests: New file.
98786         * modules/unictype/property-xid-start-tests: New file.
98787         * modules/unictype/property-zero-width-tests: New file.
98788         * modules/unictype/scripts-tests: New file.
98789         * modules/unictype/syntax-c-ident-tests: New file.
98790         * modules/unictype/syntax-c-whitespace-tests: New file.
98791         * modules/unictype/syntax-java-ident-tests: New file.
98792         * modules/unictype/syntax-java-whitespace-tests: New file.
98793         * tests/unictype/test-bidi_byname.c: New file.
98794         * tests/unictype/test-bidi_name.c: New file.
98795         * tests/unictype/test-bidi_of.c: New file.
98796         * tests/unictype/test-bidi_test.c: New file.
98797         * tests/unictype/test-block_list.c: New file.
98798         * tests/unictype/test-block_of.c: New file.
98799         * tests/unictype/test-block_test.c: New file.
98800         * tests/unictype/test-categ_and.c: New file.
98801         * tests/unictype/test-categ_and_not.c: New file.
98802         * tests/unictype/test-categ_byname.c: New file.
98803         * tests/unictype/test-categ_name.c: New file.
98804         * tests/unictype/test-categ_none.c: New file.
98805         * tests/unictype/test-categ_of.c: New file.
98806         * tests/unictype/test-categ_or.c: New file.
98807         * tests/unictype/test-categ_test_withtable.c: New file.
98808         * tests/unictype/test-combining.c: New file.
98809         * tests/unictype/test-decdigit.c: New file.
98810         * tests/unictype/test-digit.c: New file.
98811         * tests/unictype/test-mirror.c: New file.
98812         * tests/unictype/test-numeric.c: New file.
98813         * tests/unictype/test-pr_byname.c: New file.
98814         * tests/unictype/test-pr_test.c: New file.
98815         * tests/unictype/test-predicate-part1.h: New file.
98816         * tests/unictype/test-predicate-part2.h: New file.
98817         * tests/unictype/test-scripts.c: New file.
98818         * tests/unictype/test-sy_c_ident.c: New file.
98819         * tests/unictype/test-sy_java_ident.c: New file.
98821         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
98822         for Unicode 5.0.0.
98823         * tests/unictype/test-categ_Cc.c: Likewise.
98824         * tests/unictype/test-categ_Cf.c: Likewise.
98825         * tests/unictype/test-categ_Cn.c: Likewise.
98826         * tests/unictype/test-categ_Co.c: Likewise.
98827         * tests/unictype/test-categ_Cs.c: Likewise.
98828         * tests/unictype/test-categ_L.c: Likewise.
98829         * tests/unictype/test-categ_Ll.c: Likewise.
98830         * tests/unictype/test-categ_Lm.c: Likewise.
98831         * tests/unictype/test-categ_Lo.c: Likewise.
98832         * tests/unictype/test-categ_Lt.c: Likewise.
98833         * tests/unictype/test-categ_Lu.c: Likewise.
98834         * tests/unictype/test-categ_M.c: Likewise.
98835         * tests/unictype/test-categ_Mc.c: Likewise.
98836         * tests/unictype/test-categ_Me.c: Likewise.
98837         * tests/unictype/test-categ_Mn.c: Likewise.
98838         * tests/unictype/test-categ_N.c: Likewise.
98839         * tests/unictype/test-categ_Nd.c: Likewise.
98840         * tests/unictype/test-categ_Nl.c: Likewise.
98841         * tests/unictype/test-categ_No.c: Likewise.
98842         * tests/unictype/test-categ_P.c: Likewise.
98843         * tests/unictype/test-categ_Pc.c: Likewise.
98844         * tests/unictype/test-categ_Pd.c: Likewise.
98845         * tests/unictype/test-categ_Pe.c: Likewise.
98846         * tests/unictype/test-categ_Pf.c: Likewise.
98847         * tests/unictype/test-categ_Pi.c: Likewise.
98848         * tests/unictype/test-categ_Po.c: Likewise.
98849         * tests/unictype/test-categ_Ps.c: Likewise.
98850         * tests/unictype/test-categ_S.c: Likewise.
98851         * tests/unictype/test-categ_Sc.c: Likewise.
98852         * tests/unictype/test-categ_Sk.c: Likewise.
98853         * tests/unictype/test-categ_Sm.c: Likewise.
98854         * tests/unictype/test-categ_So.c: Likewise.
98855         * tests/unictype/test-categ_Z.c: Likewise.
98856         * tests/unictype/test-categ_Zl.c: Likewise.
98857         * tests/unictype/test-categ_Zp.c: Likewise.
98858         * tests/unictype/test-categ_Zs.c: Likewise.
98859         * tests/unictype/test-ctype_alnum.c: Likewise.
98860         * tests/unictype/test-ctype_alpha.c: Likewise.
98861         * tests/unictype/test-ctype_blank.c: Likewise.
98862         * tests/unictype/test-ctype_cntrl.c: Likewise.
98863         * tests/unictype/test-ctype_digit.c: Likewise.
98864         * tests/unictype/test-ctype_graph.c: Likewise.
98865         * tests/unictype/test-ctype_lower.c: Likewise.
98866         * tests/unictype/test-ctype_print.c: Likewise.
98867         * tests/unictype/test-ctype_punct.c: Likewise.
98868         * tests/unictype/test-ctype_space.c: Likewise.
98869         * tests/unictype/test-ctype_upper.c: Likewise.
98870         * tests/unictype/test-ctype_xdigit.c: Likewise.
98871         * tests/unictype/test-decdigit.h: Likewise.
98872         * tests/unictype/test-digit.h: Likewise.
98873         * tests/unictype/test-numeric.h: Likewise.
98874         * tests/unictype/test-pr_alphabetic.c: Likewise.
98875         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
98876         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
98877         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
98878         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
98879         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
98880         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
98881         * tests/unictype/test-pr_bidi_control.c: Likewise.
98882         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
98883         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
98884         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
98885         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
98886         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
98887         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
98888         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
98889         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
98890         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
98891         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
98892         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
98893         * tests/unictype/test-pr_combining.c: Likewise.
98894         * tests/unictype/test-pr_composite.c: Likewise.
98895         * tests/unictype/test-pr_currency_symbol.c: Likewise.
98896         * tests/unictype/test-pr_dash.c: Likewise.
98897         * tests/unictype/test-pr_decimal_digit.c: Likewise.
98898         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
98899         * tests/unictype/test-pr_deprecated.c: Likewise.
98900         * tests/unictype/test-pr_diacritic.c: Likewise.
98901         * tests/unictype/test-pr_extender.c: Likewise.
98902         * tests/unictype/test-pr_format_control.c: Likewise.
98903         * tests/unictype/test-pr_grapheme_base.c: Likewise.
98904         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
98905         * tests/unictype/test-pr_grapheme_link.c: Likewise.
98906         * tests/unictype/test-pr_hex_digit.c: Likewise.
98907         * tests/unictype/test-pr_hyphen.c: Likewise.
98908         * tests/unictype/test-pr_id_continue.c: Likewise.
98909         * tests/unictype/test-pr_id_start.c: Likewise.
98910         * tests/unictype/test-pr_ideographic.c: Likewise.
98911         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
98912         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
98913         * tests/unictype/test-pr_ignorable_control.c: Likewise.
98914         * tests/unictype/test-pr_iso_control.c: Likewise.
98915         * tests/unictype/test-pr_join_control.c: Likewise.
98916         * tests/unictype/test-pr_left_of_pair.c: Likewise.
98917         * tests/unictype/test-pr_line_separator.c: Likewise.
98918         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
98919         * tests/unictype/test-pr_lowercase.c: Likewise.
98920         * tests/unictype/test-pr_math.c: Likewise.
98921         * tests/unictype/test-pr_non_break.c: Likewise.
98922         * tests/unictype/test-pr_not_a_character.c: Likewise.
98923         * tests/unictype/test-pr_numeric.c: Likewise.
98924         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
98925         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
98926         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
98927         * tests/unictype/test-pr_other_id_continue.c: Likewise.
98928         * tests/unictype/test-pr_other_id_start.c: Likewise.
98929         * tests/unictype/test-pr_other_lowercase.c: Likewise.
98930         * tests/unictype/test-pr_other_math.c: Likewise.
98931         * tests/unictype/test-pr_other_uppercase.c: Likewise.
98932         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
98933         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
98934         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
98935         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
98936         * tests/unictype/test-pr_private_use.c: Likewise.
98937         * tests/unictype/test-pr_punctuation.c: Likewise.
98938         * tests/unictype/test-pr_quotation_mark.c: Likewise.
98939         * tests/unictype/test-pr_radical.c: Likewise.
98940         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
98941         * tests/unictype/test-pr_soft_dotted.c: Likewise.
98942         * tests/unictype/test-pr_space.c: Likewise.
98943         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
98944         * tests/unictype/test-pr_titlecase.c: Likewise.
98945         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
98946         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
98947         * tests/unictype/test-pr_uppercase.c: Likewise.
98948         * tests/unictype/test-pr_variation_selector.c: Likewise.
98949         * tests/unictype/test-pr_white_space.c: Likewise.
98950         * tests/unictype/test-pr_xid_continue.c: Likewise.
98951         * tests/unictype/test-pr_xid_start.c: Likewise.
98952         * tests/unictype/test-pr_zero_width.c: Likewise.
98953         * tests/unictype/test-sy_c_whitespace.c: Likewise.
98954         * tests/unictype/test-sy_java_whitespace.c: Likewise.
98956 2007-11-12  Bruno Haible  <bruno@clisp.org>
98958         Unicode character classification functions.
98959         * lib/unictype.h: New file.
98960         * modules/unictype/base: New file.
98961         * modules/unictype/category-L: New file.
98962         * modules/unictype/category-Lu: New file.
98963         * modules/unictype/category-Ll: New file.
98964         * modules/unictype/category-Lt: New file.
98965         * modules/unictype/category-Lm: New file.
98966         * modules/unictype/category-Lo: New file.
98967         * modules/unictype/category-M: New file.
98968         * modules/unictype/category-Mn: New file.
98969         * modules/unictype/category-Mc: New file.
98970         * modules/unictype/category-Me: New file.
98971         * modules/unictype/category-N: New file.
98972         * modules/unictype/category-Nd: New file.
98973         * modules/unictype/category-Nl: New file.
98974         * modules/unictype/category-No: New file.
98975         * modules/unictype/category-P: New file.
98976         * modules/unictype/category-Pc: New file.
98977         * modules/unictype/category-Pd: New file.
98978         * modules/unictype/category-Ps: New file.
98979         * modules/unictype/category-Pe: New file.
98980         * modules/unictype/category-Pi: New file.
98981         * modules/unictype/category-Pf: New file.
98982         * modules/unictype/category-Po: New file.
98983         * modules/unictype/category-S: New file.
98984         * modules/unictype/category-Sm: New file.
98985         * modules/unictype/category-Sc: New file.
98986         * modules/unictype/category-Sk: New file.
98987         * modules/unictype/category-So: New file.
98988         * modules/unictype/category-Z: New file.
98989         * modules/unictype/category-Zs: New file.
98990         * modules/unictype/category-Zl: New file.
98991         * modules/unictype/category-Zp: New file.
98992         * modules/unictype/category-C: New file.
98993         * modules/unictype/category-Cc: New file.
98994         * modules/unictype/category-Cf: New file.
98995         * modules/unictype/category-Cs: New file.
98996         * modules/unictype/category-Co: New file.
98997         * modules/unictype/category-Cn: New file.
98998         * modules/unictype/category-or: New file.
98999         * modules/unictype/category-of: New file.
99000         * modules/unictype/category-test: New file.
99001         * modules/unictype/category-test-withtable: New file.
99002         * modules/unictype/category-byname: New file.
99003         * modules/unictype/category-none: New file.
99004         * modules/unictype/category-and: New file.
99005         * modules/unictype/category-and-not: New file.
99006         * modules/unictype/category-name: New file.
99007         * modules/unictype/combining-class: New file.
99008         * modules/unictype/category-all: New file.
99009         * modules/unictype/bidicategory-all: New file.
99010         * modules/unictype/bidicategory-byname: New file.
99011         * modules/unictype/bidicategory-name: New file.
99012         * modules/unictype/bidicategory-of: New file.
99013         * modules/unictype/bidicategory-test: New file.
99014         * modules/unictype/decimal-digit: New file.
99015         * modules/unictype/digit: New file.
99016         * modules/unictype/numeric: New file.
99017         * modules/unictype/mirror: New file.
99018         * modules/unictype/property-white-space: New file.
99019         * modules/unictype/property-alphabetic: New file.
99020         * modules/unictype/property-other-alphabetic: New file.
99021         * modules/unictype/property-not-a-character: New file.
99022         * modules/unictype/property-default-ignorable-code-point: New file.
99023         * modules/unictype/property-other-default-ignorable-code-point: New
99024         file.
99025         * modules/unictype/property-deprecated: New file.
99026         * modules/unictype/property-logical-order-exception: New file.
99027         * modules/unictype/property-variation-selector: New file.
99028         * modules/unictype/property-private-use: New file.
99029         * modules/unictype/property-unassigned-code-value: New file.
99030         * modules/unictype/property-uppercase: New file.
99031         * modules/unictype/property-other-uppercase: New file.
99032         * modules/unictype/property-lowercase: New file.
99033         * modules/unictype/property-other-lowercase: New file.
99034         * modules/unictype/property-titlecase: New file.
99035         * modules/unictype/property-soft-dotted: New file.
99036         * modules/unictype/property-id-start: New file.
99037         * modules/unictype/property-other-id-start: New file.
99038         * modules/unictype/property-id-continue: New file.
99039         * modules/unictype/property-other-id-continue: New file.
99040         * modules/unictype/property-xid-start: New file.
99041         * modules/unictype/property-xid-continue: New file.
99042         * modules/unictype/property-pattern-white-space: New file.
99043         * modules/unictype/property-pattern-syntax: New file.
99044         * modules/unictype/property-join-control: New file.
99045         * modules/unictype/property-grapheme-base: New file.
99046         * modules/unictype/property-grapheme-extend: New file.
99047         * modules/unictype/property-other-grapheme-extend: New file.
99048         * modules/unictype/property-grapheme-link: New file.
99049         * modules/unictype/property-bidi-control: New file.
99050         * modules/unictype/property-bidi-left-to-right: New file.
99051         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
99052         * modules/unictype/property-bidi-arabic-right-to-left: New file.
99053         * modules/unictype/property-bidi-european-digit: New file.
99054         * modules/unictype/property-bidi-eur-num-separator: New file.
99055         * modules/unictype/property-bidi-eur-num-terminator: New file.
99056         * modules/unictype/property-bidi-arabic-digit: New file.
99057         * modules/unictype/property-bidi-common-separator: New file.
99058         * modules/unictype/property-bidi-block-separator: New file.
99059         * modules/unictype/property-bidi-segment-separator: New file.
99060         * modules/unictype/property-bidi-whitespace: New file.
99061         * modules/unictype/property-bidi-non-spacing-mark: New file.
99062         * modules/unictype/property-bidi-boundary-neutral: New file.
99063         * modules/unictype/property-bidi-pdf: New file.
99064         * modules/unictype/property-bidi-embedding-or-override: New file.
99065         * modules/unictype/property-bidi-other-neutral: New file.
99066         * modules/unictype/property-hex-digit: New file.
99067         * modules/unictype/property-ascii-hex-digit: New file.
99068         * modules/unictype/property-ideographic: New file.
99069         * modules/unictype/property-unified-ideograph: New file.
99070         * modules/unictype/property-radical: New file.
99071         * modules/unictype/property-ids-binary-operator: New file.
99072         * modules/unictype/property-ids-trinary-operator: New file.
99073         * modules/unictype/property-zero-width: New file.
99074         * modules/unictype/property-space: New file.
99075         * modules/unictype/property-non-break: New file.
99076         * modules/unictype/property-iso-control: New file.
99077         * modules/unictype/property-format-control: New file.
99078         * modules/unictype/property-dash: New file.
99079         * modules/unictype/property-hyphen: New file.
99080         * modules/unictype/property-punctuation: New file.
99081         * modules/unictype/property-line-separator: New file.
99082         * modules/unictype/property-paragraph-separator: New file.
99083         * modules/unictype/property-quotation-mark: New file.
99084         * modules/unictype/property-sentence-terminal: New file.
99085         * modules/unictype/property-terminal-punctuation: New file.
99086         * modules/unictype/property-currency-symbol: New file.
99087         * modules/unictype/property-math: New file.
99088         * modules/unictype/property-other-math: New file.
99089         * modules/unictype/property-paired-punctuation: New file.
99090         * modules/unictype/property-left-of-pair: New file.
99091         * modules/unictype/property-combining: New file.
99092         * modules/unictype/property-composite: New file.
99093         * modules/unictype/property-decimal-digit: New file.
99094         * modules/unictype/property-numeric: New file.
99095         * modules/unictype/property-diacritic: New file.
99096         * modules/unictype/property-extender: New file.
99097         * modules/unictype/property-ignorable-control: New file.
99098         * modules/unictype/property-test: New file.
99099         * modules/unictype/property-byname: New file.
99100         * modules/unictype/property-all: New file.
99101         * modules/unictype/scripts: New file.
99102         * modules/unictype/scripts-all: New file.
99103         * modules/unictype/block-of: New file.
99104         * modules/unictype/block-test: New file.
99105         * modules/unictype/block-list: New file.
99106         * modules/unictype/block-all: New file.
99107         * modules/unictype/syntax-c-whitespace: New file.
99108         * modules/unictype/syntax-java-whitespace: New file.
99109         * modules/unictype/syntax-c-ident: New file.
99110         * modules/unictype/syntax-java-ident: New file.
99111         * modules/unictype/ctype-alnum: New file.
99112         * modules/unictype/ctype-alpha: New file.
99113         * modules/unictype/ctype-cntrl: New file.
99114         * modules/unictype/ctype-digit: New file.
99115         * modules/unictype/ctype-graph: New file.
99116         * modules/unictype/ctype-lower: New file.
99117         * modules/unictype/ctype-print: New file.
99118         * modules/unictype/ctype-punct: New file.
99119         * modules/unictype/ctype-space: New file.
99120         * modules/unictype/ctype-upper: New file.
99121         * modules/unictype/ctype-xdigit: New file.
99122         * modules/unictype/ctype-blank: New file.
99123         * lib/unictype/bidi_byname.c: New file.
99124         * lib/unictype/bidi_name.c: New file.
99125         * lib/unictype/bidi_of.c: New file.
99126         * lib/unictype/bidi_test.c: New file.
99127         * lib/unictype/bitmap.h: New file.
99128         * lib/unictype/block_test.c: New file.
99129         * lib/unictype/blocks.c: New file.
99130         * lib/unictype/categ_C.c: New file.
99131         * lib/unictype/categ_Cc.c: New file.
99132         * lib/unictype/categ_Cf.c: New file.
99133         * lib/unictype/categ_Cn.c: New file.
99134         * lib/unictype/categ_Co.c: New file.
99135         * lib/unictype/categ_Cs.c: New file.
99136         * lib/unictype/categ_L.c: New file.
99137         * lib/unictype/categ_Ll.c: New file.
99138         * lib/unictype/categ_Lm.c: New file.
99139         * lib/unictype/categ_Lo.c: New file.
99140         * lib/unictype/categ_Lt.c: New file.
99141         * lib/unictype/categ_Lu.c: New file.
99142         * lib/unictype/categ_M.c: New file.
99143         * lib/unictype/categ_Mc.c: New file.
99144         * lib/unictype/categ_Me.c: New file.
99145         * lib/unictype/categ_Mn.c: New file.
99146         * lib/unictype/categ_N.c: New file.
99147         * lib/unictype/categ_Nd.c: New file.
99148         * lib/unictype/categ_Nl.c: New file.
99149         * lib/unictype/categ_No.c: New file.
99150         * lib/unictype/categ_P.c: New file.
99151         * lib/unictype/categ_Pc.c: New file.
99152         * lib/unictype/categ_Pd.c: New file.
99153         * lib/unictype/categ_Pe.c: New file.
99154         * lib/unictype/categ_Pf.c: New file.
99155         * lib/unictype/categ_Pi.c: New file.
99156         * lib/unictype/categ_Po.c: New file.
99157         * lib/unictype/categ_Ps.c: New file.
99158         * lib/unictype/categ_S.c: New file.
99159         * lib/unictype/categ_Sc.c: New file.
99160         * lib/unictype/categ_Sk.c: New file.
99161         * lib/unictype/categ_Sm.c: New file.
99162         * lib/unictype/categ_So.c: New file.
99163         * lib/unictype/categ_Z.c: New file.
99164         * lib/unictype/categ_Zl.c: New file.
99165         * lib/unictype/categ_Zp.c: New file.
99166         * lib/unictype/categ_Zs.c: New file.
99167         * lib/unictype/categ_and.c: New file.
99168         * lib/unictype/categ_and_not.c: New file.
99169         * lib/unictype/categ_byname.c: New file.
99170         * lib/unictype/categ_name.c: New file.
99171         * lib/unictype/categ_none.c: New file.
99172         * lib/unictype/categ_of.c: New file.
99173         * lib/unictype/categ_or.c: New file.
99174         * lib/unictype/categ_test.c: New file.
99175         * lib/unictype/combining.c: New file.
99176         * lib/unictype/ctype_alnum.c: New file.
99177         * lib/unictype/ctype_alpha.c: New file.
99178         * lib/unictype/ctype_blank.c: New file.
99179         * lib/unictype/ctype_cntrl.c: New file.
99180         * lib/unictype/ctype_digit.c: New file.
99181         * lib/unictype/ctype_graph.c: New file.
99182         * lib/unictype/ctype_lower.c: New file.
99183         * lib/unictype/ctype_print.c: New file.
99184         * lib/unictype/ctype_punct.c: New file.
99185         * lib/unictype/ctype_space.c: New file.
99186         * lib/unictype/ctype_upper.c: New file.
99187         * lib/unictype/ctype_xdigit.c: New file.
99188         * lib/unictype/decdigit.c: New file.
99189         * lib/unictype/digit.c: New file.
99190         * lib/unictype/identsyntaxmap.h: New file.
99191         * lib/unictype/mirror.c: New file.
99192         * lib/unictype/numeric.c: New file.
99193         * lib/unictype/pr_alphabetic.c: New file.
99194         * lib/unictype/pr_ascii_hex_digit.c: New file.
99195         * lib/unictype/pr_bidi_arabic_digit.c: New file.
99196         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
99197         * lib/unictype/pr_bidi_block_separator.c: New file.
99198         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
99199         * lib/unictype/pr_bidi_common_separator.c: New file.
99200         * lib/unictype/pr_bidi_control.c: New file.
99201         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
99202         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
99203         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
99204         * lib/unictype/pr_bidi_european_digit.c: New file.
99205         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
99206         * lib/unictype/pr_bidi_left_to_right.c: New file.
99207         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
99208         * lib/unictype/pr_bidi_other_neutral.c: New file.
99209         * lib/unictype/pr_bidi_pdf.c: New file.
99210         * lib/unictype/pr_bidi_segment_separator.c: New file.
99211         * lib/unictype/pr_bidi_whitespace.c: New file.
99212         * lib/unictype/pr_byname.c: New file.
99213         * lib/unictype/pr_byname.gperf: New file.
99214         * lib/unictype/pr_combining.c: New file.
99215         * lib/unictype/pr_composite.c: New file.
99216         * lib/unictype/pr_currency_symbol.c: New file.
99217         * lib/unictype/pr_dash.c: New file.
99218         * lib/unictype/pr_decimal_digit.c: New file.
99219         * lib/unictype/pr_default_ignorable_code_point.c: New file.
99220         * lib/unictype/pr_deprecated.c: New file.
99221         * lib/unictype/pr_diacritic.c: New file.
99222         * lib/unictype/pr_extender.c: New file.
99223         * lib/unictype/pr_format_control.c: New file.
99224         * lib/unictype/pr_grapheme_base.c: New file.
99225         * lib/unictype/pr_grapheme_extend.c: New file.
99226         * lib/unictype/pr_grapheme_link.c: New file.
99227         * lib/unictype/pr_hex_digit.c: New file.
99228         * lib/unictype/pr_hyphen.c: New file.
99229         * lib/unictype/pr_id_continue.c: New file.
99230         * lib/unictype/pr_id_start.c: New file.
99231         * lib/unictype/pr_ideographic.c: New file.
99232         * lib/unictype/pr_ids_binary_operator.c: New file.
99233         * lib/unictype/pr_ids_trinary_operator.c: New file.
99234         * lib/unictype/pr_ignorable_control.c: New file.
99235         * lib/unictype/pr_iso_control.c: New file.
99236         * lib/unictype/pr_join_control.c: New file.
99237         * lib/unictype/pr_left_of_pair.c: New file.
99238         * lib/unictype/pr_line_separator.c: New file.
99239         * lib/unictype/pr_logical_order_exception.c: New file.
99240         * lib/unictype/pr_lowercase.c: New file.
99241         * lib/unictype/pr_math.c: New file.
99242         * lib/unictype/pr_non_break.c: New file.
99243         * lib/unictype/pr_not_a_character.c: New file.
99244         * lib/unictype/pr_numeric.c: New file.
99245         * lib/unictype/pr_other_alphabetic.c: New file.
99246         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
99247         * lib/unictype/pr_other_grapheme_extend.c: New file.
99248         * lib/unictype/pr_other_id_continue.c: New file.
99249         * lib/unictype/pr_other_id_start.c: New file.
99250         * lib/unictype/pr_other_lowercase.c: New file.
99251         * lib/unictype/pr_other_math.c: New file.
99252         * lib/unictype/pr_other_uppercase.c: New file.
99253         * lib/unictype/pr_paired_punctuation.c: New file.
99254         * lib/unictype/pr_paragraph_separator.c: New file.
99255         * lib/unictype/pr_pattern_syntax.c: New file.
99256         * lib/unictype/pr_pattern_white_space.c: New file.
99257         * lib/unictype/pr_private_use.c: New file.
99258         * lib/unictype/pr_punctuation.c: New file.
99259         * lib/unictype/pr_quotation_mark.c: New file.
99260         * lib/unictype/pr_radical.c: New file.
99261         * lib/unictype/pr_sentence_terminal.c: New file.
99262         * lib/unictype/pr_soft_dotted.c: New file.
99263         * lib/unictype/pr_space.c: New file.
99264         * lib/unictype/pr_terminal_punctuation.c: New file.
99265         * lib/unictype/pr_test.c: New file.
99266         * lib/unictype/pr_titlecase.c: New file.
99267         * lib/unictype/pr_unassigned_code_value.c: New file.
99268         * lib/unictype/pr_unified_ideograph.c: New file.
99269         * lib/unictype/pr_uppercase.c: New file.
99270         * lib/unictype/pr_variation_selector.c: New file.
99271         * lib/unictype/pr_white_space.c: New file.
99272         * lib/unictype/pr_xid_continue.c: New file.
99273         * lib/unictype/pr_xid_start.c: New file.
99274         * lib/unictype/pr_zero_width.c: New file.
99275         * lib/unictype/scripts.c: New file.
99276         * lib/unictype/sy_c_ident.c: New file.
99277         * lib/unictype/sy_c_whitespace.c: New file.
99278         * lib/unictype/sy_java_ident.c: New file.
99279         * lib/unictype/sy_java_whitespace.c: New file.
99281         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
99282         Unicode 5.0.0.
99283         * lib/unictype/blocks.h: Likewise.
99284         * lib/unictype/categ_C.h: Likewise.
99285         * lib/unictype/categ_Cc.h: Likewise.
99286         * lib/unictype/categ_Cf.h: Likewise.
99287         * lib/unictype/categ_Cn.h: Likewise.
99288         * lib/unictype/categ_Co.h: Likewise.
99289         * lib/unictype/categ_Cs.h: Likewise.
99290         * lib/unictype/categ_L.h: Likewise.
99291         * lib/unictype/categ_Ll.h: Likewise.
99292         * lib/unictype/categ_Lm.h: Likewise.
99293         * lib/unictype/categ_Lo.h: Likewise.
99294         * lib/unictype/categ_Lt.h: Likewise.
99295         * lib/unictype/categ_Lu.h: Likewise.
99296         * lib/unictype/categ_M.h: Likewise.
99297         * lib/unictype/categ_Mc.h: Likewise.
99298         * lib/unictype/categ_Me.h: Likewise.
99299         * lib/unictype/categ_Mn.h: Likewise.
99300         * lib/unictype/categ_N.h: Likewise.
99301         * lib/unictype/categ_Nd.h: Likewise.
99302         * lib/unictype/categ_Nl.h: Likewise.
99303         * lib/unictype/categ_No.h: Likewise.
99304         * lib/unictype/categ_P.h: Likewise.
99305         * lib/unictype/categ_Pc.h: Likewise.
99306         * lib/unictype/categ_Pd.h: Likewise.
99307         * lib/unictype/categ_Pe.h: Likewise.
99308         * lib/unictype/categ_Pf.h: Likewise.
99309         * lib/unictype/categ_Pi.h: Likewise.
99310         * lib/unictype/categ_Po.h: Likewise.
99311         * lib/unictype/categ_Ps.h: Likewise.
99312         * lib/unictype/categ_S.h: Likewise.
99313         * lib/unictype/categ_Sc.h: Likewise.
99314         * lib/unictype/categ_Sk.h: Likewise.
99315         * lib/unictype/categ_Sm.h: Likewise.
99316         * lib/unictype/categ_So.h: Likewise.
99317         * lib/unictype/categ_Z.h: Likewise.
99318         * lib/unictype/categ_Zl.h: Likewise.
99319         * lib/unictype/categ_Zp.h: Likewise.
99320         * lib/unictype/categ_Zs.h: Likewise.
99321         * lib/unictype/categ_of.h: Likewise.
99322         * lib/unictype/combining.h: Likewise.
99323         * lib/unictype/ctype_alnum.h: Likewise.
99324         * lib/unictype/ctype_alpha.h: Likewise.
99325         * lib/unictype/ctype_blank.h: Likewise.
99326         * lib/unictype/ctype_cntrl.h: Likewise.
99327         * lib/unictype/ctype_digit.h: Likewise.
99328         * lib/unictype/ctype_graph.h: Likewise.
99329         * lib/unictype/ctype_lower.h: Likewise.
99330         * lib/unictype/ctype_print.h: Likewise.
99331         * lib/unictype/ctype_punct.h: Likewise.
99332         * lib/unictype/ctype_space.h: Likewise.
99333         * lib/unictype/ctype_upper.h: Likewise.
99334         * lib/unictype/ctype_xdigit.h: Likewise.
99335         * lib/unictype/decdigit.h: Likewise.
99336         * lib/unictype/digit.h: Likewise.
99337         * lib/unictype/mirror.h: Likewise.
99338         * lib/unictype/numeric.h: Likewise.
99339         * lib/unictype/pr_alphabetic.h: Likewise.
99340         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
99341         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
99342         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
99343         * lib/unictype/pr_bidi_block_separator.h: Likewise.
99344         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
99345         * lib/unictype/pr_bidi_common_separator.h: Likewise.
99346         * lib/unictype/pr_bidi_control.h: Likewise.
99347         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
99348         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
99349         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
99350         * lib/unictype/pr_bidi_european_digit.h: Likewise.
99351         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
99352         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
99353         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
99354         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
99355         * lib/unictype/pr_bidi_pdf.h: Likewise.
99356         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
99357         * lib/unictype/pr_bidi_whitespace.h: Likewise.
99358         * lib/unictype/pr_combining.h: Likewise.
99359         * lib/unictype/pr_composite.h: Likewise.
99360         * lib/unictype/pr_currency_symbol.h: Likewise.
99361         * lib/unictype/pr_dash.h: Likewise.
99362         * lib/unictype/pr_decimal_digit.h: Likewise.
99363         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
99364         * lib/unictype/pr_deprecated.h: Likewise.
99365         * lib/unictype/pr_diacritic.h: Likewise.
99366         * lib/unictype/pr_extender.h: Likewise.
99367         * lib/unictype/pr_format_control.h: Likewise.
99368         * lib/unictype/pr_grapheme_base.h: Likewise.
99369         * lib/unictype/pr_grapheme_extend.h: Likewise.
99370         * lib/unictype/pr_grapheme_link.h: Likewise.
99371         * lib/unictype/pr_hex_digit.h: Likewise.
99372         * lib/unictype/pr_hyphen.h: Likewise.
99373         * lib/unictype/pr_id_continue.h: Likewise.
99374         * lib/unictype/pr_id_start.h: Likewise.
99375         * lib/unictype/pr_ideographic.h: Likewise.
99376         * lib/unictype/pr_ids_binary_operator.h: Likewise.
99377         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
99378         * lib/unictype/pr_ignorable_control.h: Likewise.
99379         * lib/unictype/pr_iso_control.h: Likewise.
99380         * lib/unictype/pr_join_control.h: Likewise.
99381         * lib/unictype/pr_left_of_pair.h: Likewise.
99382         * lib/unictype/pr_line_separator.h: Likewise.
99383         * lib/unictype/pr_logical_order_exception.h: Likewise.
99384         * lib/unictype/pr_lowercase.h: Likewise.
99385         * lib/unictype/pr_math.h: Likewise.
99386         * lib/unictype/pr_non_break.h: Likewise.
99387         * lib/unictype/pr_not_a_character.h: Likewise.
99388         * lib/unictype/pr_numeric.h: Likewise.
99389         * lib/unictype/pr_other_alphabetic.h: Likewise.
99390         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
99391         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
99392         * lib/unictype/pr_other_id_continue.h: Likewise.
99393         * lib/unictype/pr_other_id_start.h: Likewise.
99394         * lib/unictype/pr_other_lowercase.h: Likewise.
99395         * lib/unictype/pr_other_math.h: Likewise.
99396         * lib/unictype/pr_other_uppercase.h: Likewise.
99397         * lib/unictype/pr_paired_punctuation.h: Likewise.
99398         * lib/unictype/pr_paragraph_separator.h: Likewise.
99399         * lib/unictype/pr_pattern_syntax.h: Likewise.
99400         * lib/unictype/pr_pattern_white_space.h: Likewise.
99401         * lib/unictype/pr_private_use.h: Likewise.
99402         * lib/unictype/pr_punctuation.h: Likewise.
99403         * lib/unictype/pr_quotation_mark.h: Likewise.
99404         * lib/unictype/pr_radical.h: Likewise.
99405         * lib/unictype/pr_sentence_terminal.h: Likewise.
99406         * lib/unictype/pr_soft_dotted.h: Likewise.
99407         * lib/unictype/pr_space.h: Likewise.
99408         * lib/unictype/pr_terminal_punctuation.h: Likewise.
99409         * lib/unictype/pr_titlecase.h: Likewise.
99410         * lib/unictype/pr_unassigned_code_value.h: Likewise.
99411         * lib/unictype/pr_unified_ideograph.h: Likewise.
99412         * lib/unictype/pr_uppercase.h: Likewise.
99413         * lib/unictype/pr_variation_selector.h: Likewise.
99414         * lib/unictype/pr_white_space.h: Likewise.
99415         * lib/unictype/pr_xid_continue.h: Likewise.
99416         * lib/unictype/pr_xid_start.h: Likewise.
99417         * lib/unictype/pr_zero_width.h: Likewise.
99418         * lib/unictype/scripts.h: Likewise.
99419         * lib/unictype/scripts_byname.gperf: Likewise.
99420         * lib/unictype/sy_c_ident.h: Likewise.
99421         * lib/unictype/sy_c_whitespace.h: Likewise.
99422         * lib/unictype/sy_java_ident.h: Likewise.
99423         * lib/unictype/sy_java_whitespace.h: Likewise.
99425         * lib/unictype/Makefile: New file.
99426         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
99427         glibc.
99428         * lib/unictype/3level.h: New file, copied from glibc.
99429         * lib/unictype/3levelbit.h: New file.
99431 2007-11-11  Bruno Haible  <bruno@clisp.org>
99433         * modules/gperf: New file.
99434         * modules/iconv_open (Depends-on): Add it.
99435         (Makefile.am): Remove the GPERF definition.
99437 2007-11-11  Bruno Haible  <bruno@clisp.org>
99439         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
99440         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
99442 2007-11-11  Bruno Haible  <bruno@clisp.org>
99444         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
99445         (usage): Remove function.
99447 2007-11-11  Bruno Haible  <bruno@clisp.org>
99449         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
99450         gl_FUNC_CEILF_LIBS.
99451         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
99452         gl_FUNC_CEIL_LIBS.
99453         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
99454         gl_FUNC_CEILL_LIBS.
99455         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
99456         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
99457         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
99459 2007-11-11  Bruno Haible  <bruno@clisp.org>
99461         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
99462         roundf were declared but do not exist on functions.
99463         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
99464         roundl were declared but do not exist on functions.
99465         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
99466         HAVE_FLOORL_AND_CEILL, respectively.
99467         Needed for Sun C on Solaris 10.
99469 2007-11-11  Bruno Haible  <bruno@clisp.org>
99471         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
99472         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
99473         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
99474         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
99475         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
99476         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
99477         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
99478         HAVE_DECL_ROUNDF.
99479         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
99480         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
99481         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
99482         of HAVE_DECL_ROUND*.
99483         * modules/math (Makefile.am): Update.
99485 2007-11-10  Bruno Haible  <bruno@clisp.org>
99487         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
99488         ptrdiff_t as m4/intl.m4.
99490 2007-11-10  Jim Meyering  <meyering@redhat.com>
99492         Avoid link failure for the argmatch test.
99493         * tests/test-argmatch.c (usage): Define function to avoid a link
99494         failure: argmatch_die requires a usage function.
99496 2007-11-09  Bruno Haible  <bruno@clisp.org>
99498         * doc/functions/snprintf.texi: Mention BeOS deficiency.
99499         * doc/functions/vsnprintf.texi: Likewise.
99500         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
99501         with a size argument < 2.
99503 2007-11-09  Bruno Haible  <bruno@clisp.org>
99505         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
99506         buffer. Fixes an inefficiency introduced on 2007-11-03.
99508 2007-11-09  Bruno Haible  <bruno@clisp.org>
99510         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
99511         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
99513 2007-11-08  Jim Meyering  <meyering@redhat.com>
99515         Change cache variable name prefix "jm_" to "gl_" everywhere.
99516         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
99517         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
99518         * m4/uptime.m4: s/gl_/jm_/
99520 2007-11-07  Bruno Haible  <bruno@clisp.org>
99522         Update to GNU gettext 0.17.
99523         * m4/intl.m4: Update to GNU gettext 0.17.
99524         * m4/po.m4: Likewise.
99525         * modules/gettext (Files): Remove m4/ulonglong.m4.
99526         (configure.ac): Require gettext infrastructure from version 0.17.
99528 2007-11-06  Bruno Haible  <bruno@clisp.org>
99530         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
99531         symbolic values are not defined in a public header.
99532         * lib/freadable.c (freadable) [QNX]: Likewise.
99533         * lib/freadahead.c (freadahead) [QNX]: Likewise.
99534         * lib/freading.c (freading) [QNX]: Likewise.
99535         * lib/fseterr.c (fseterr) [QNX]: Likewise.
99536         * lib/fwritable.c (fwritable) [QNX]: Likewise.
99537         * lib/fwriting.c (fwriting) [QNX]: Likewise.
99538         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
99539         Reported by Alain Magloire.
99541         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
99543 2007-11-05  Bruno Haible  <bruno@clisp.org>
99545         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
99546         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
99547         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
99548         Reported by Eric Blake.
99550 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99551             Bruno Haible  <bruno@clisp.org>
99553         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
99554         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
99555         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
99556         (malloc): Undefine also before including <stdlib.h>.
99557         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
99558         Needed on OSF/1 4.0.
99560 2007-11-05  Jim Meyering  <meyering@redhat.com>
99562         git-version-gen: sync from coreutils.
99563         * build-aux/git-version-gen: Add comments.
99564         Change the first '-' to '.' in the snapshot version string,
99565         e.g., 6.9-377-08144 -> 6.9.377-08144
99566         Remove first parameter.
99567         Don't declare a version "-dirty" merely because a time
99568         stamp has changed.
99570 2007-11-04  Bruno Haible  <bruno@clisp.org>
99572         * lib/lock.h: Protect all macro definitions containing an 'if'
99573         statement through a "do { ... } while (0)".
99574         * lib/tls.h: Likewise.
99576 2007-11-04  Bruno Haible  <bruno@clisp.org>
99578         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
99580 2007-11-04  Bruno Haible  <bruno@clisp.org>
99582         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
99583         * modules/fprintf-posix (Depends-on): Add nocrash.
99584         * modules/snprintf-posix (Depends-on): Likewise.
99585         * modules/sprintf-posix (Depends-on): Likewise.
99586         * modules/vasnprintf-posix (Depends-on): Likewise.
99587         * modules/vasprintf-posix (Depends-on): Likewise.
99588         * modules/vfprintf-posix (Depends-on): Likewise.
99589         * modules/vsnprintf-posix (Depends-on): Likewise.
99590         * modules/vsprintf-posix (Depends-on): Likewise.
99591         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
99592         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
99593         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
99594         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
99595         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
99596         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
99597         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
99599 2007-11-04  Bruno Haible  <bruno@clisp.org>
99601         * modules/nocrash: New file.
99602         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
99603         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
99605 2007-11-04  Bruno Haible  <bruno@clisp.org>
99607         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
99608         precision handling.
99609         * tests/test-vasprintf-posix.c (test_function): Likewise.
99610         * tests/test-snprintf-posix.h (test_function): Likewise.
99611         * tests/test-sprintf-posix.h (test_function): Likewise.
99613         Fix *printf behaviour for large precisions on mingw and BeOS.
99614         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
99615         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
99616         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
99617         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99618         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99619         gl_PRINTF_PRECISION and test its result. Invoke
99620         gl_PREREQ_VASNPRINTF_PRECISION.
99621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99628         * doc/functions/fprintf.texi: Update.
99629         * doc/functions/printf.texi: Update.
99630         * doc/functions/snprintf.texi: Update.
99631         * doc/functions/sprintf.texi: Update.
99632         * doc/functions/vfprintf.texi: Update.
99633         * doc/functions/vprintf.texi: Update.
99634         * doc/functions/vsnprintf.texi: Update.
99635         * doc/functions/vsprintf.texi: Update.
99637 2007-11-04  Bruno Haible  <bruno@clisp.org>
99639         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
99641 2007-11-04  Bruno Haible  <bruno@clisp.org>
99643         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
99644         Reported by Sylvain Beucler <beuc@gnu.org>.
99646 2007-11-03  Bruno Haible  <bruno@clisp.org>
99648         * tests/test-fprintf-posix2.sh: New file.
99649         * tests/test-fprintf-posix2.c: New file.
99650         * modules/fprintf-posix-tests (Files): Add them.
99651         (TESTS): Add test-fprintf-posix2.sh.
99652         (configure.ac): Check for getrlimit and setrlimit.
99653         (check_PROGRAMS): Add test-fprintf-posix2.
99655         * tests/test-printf-posix2.sh: New file.
99656         * tests/test-printf-posix2.c: New file.
99657         * modules/printf-posix-tests (Files): Add them.
99658         (TESTS): Add test-printf-posix2.sh.
99659         (configure.ac): Check for getrlimit and setrlimit.
99660         (check_PROGRAMS): Add test-printf-posix2.
99662         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
99663         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
99664         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
99665         (decode_double): New function, copied from decode_long_double.
99666         (scale10_round_decimal_decoded): New function, extracted from
99667         scale10_round_decimal_long_double.
99668         (scale10_round_decimal_long_double): Use it.
99669         (scale10_round_decimal_double): New function.
99670         (floorlog10): New function.
99671         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
99672         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
99673         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
99674         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
99675         gl_PRINTF_ENOMEM and test its result. Invoke
99676         gl_PREREQ_VASNPRINTF_ENOMEM.
99677         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
99678         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
99679         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
99680         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
99681         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
99682         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
99683         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
99684         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
99685         * modules/snprintf-posix (Depends-on): Likewise.
99686         * modules/sprintf-posix (Depends-on): Likewise.
99687         * modules/vasnprintf-posix (Depends-on): Likewise.
99688         * modules/vasprintf-posix (Depends-on): Likewise.
99689         * modules/vfprintf-posix (Depends-on): Likewise.
99690         * modules/vsnprintf-posix (Depends-on): Likewise.
99691         * modules/vsprintf-posix (Depends-on): Likewise.
99692         * doc/functions/fprintf.texi: Update.
99693         * doc/functions/printf.texi: Update.
99694         * doc/functions/snprintf.texi: Update.
99695         * doc/functions/sprintf.texi: Update.
99696         * doc/functions/vfprintf.texi: Update.
99697         * doc/functions/vprintf.texi: Update.
99698         * doc/functions/vsnprintf.texi: Update.
99699         * doc/functions/vsprintf.texi: Update.
99701 2007-11-03  Bruno Haible  <bruno@clisp.org>
99703         * modules/frexp-nolibm-tests: New file.
99705         * modules/frexp-nolibm: New file.
99706         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
99708 2007-11-03  Bruno Haible  <bruno@clisp.org>
99710         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
99711         value is C99 compliant.
99712         Needed for OSF/1 5.1.
99714 2007-11-03  Bruno Haible  <bruno@clisp.org>
99716         Fix out-of-memory handling of vasnprintf.
99717         * lib/printf-parse.c: Include <errno.h>.
99718         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
99719         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
99720         is already set.
99722 2007-11-02  Eric Blake  <ebb9@byu.net>
99724         Fix tests on cygwin.
99725         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
99727 2007-11-01  Bruno Haible  <bruno@clisp.org>
99729         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
99730         warning.
99731         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
99732         needed for POSIX compatibility.
99734 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
99736         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
99737         for compatibility with GNU.
99739 2007-11-01  Bruno Haible  <bruno@clisp.org>
99741         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
99742         (putenv): Renamed from rpl_putenv. Change argument type from
99743         'const char *' to 'char *'.
99744         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
99745         of defining putenv in config.h, just set REPLACE_PUTENV.
99746         * modules/putenv (Depends-on): Add stdlib.
99747         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
99748         (Include): Use <stdlib.h>.
99749         * lib/stdlib.in.h (putenv): New declaration.
99750         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
99751         REPLACE_PUTENV.
99752         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
99753         REPLACE_PUTENV.
99754         Needed for MacOS X 10.5.0.
99755         Reported by Peter O'Gorman <peter@pogma.com>.
99757 2007-11-01  Jim Meyering  <meyering@redhat.com>
99759         Treat an empty date string exactly like "0".
99760         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
99761         if the remaining date string (to be parsed) is empty, use "0".
99762         Reported by Mischa Molhoek and discussed in this thread:
99763         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
99765 2007-10-31  Bruno Haible  <bruno@clisp.org>
99767         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
99768         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
99769         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
99770         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
99771         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
99772         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
99774 2007-10-31  Bruno Haible  <bruno@clisp.org>
99776         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
99777         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
99778         (AC_TYPE_LONG_LONG_INT): Use it.
99779         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
99780         it as well.
99781         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
99782         to m4/longlong.m4.
99783         * modules/stdint (Files): Remove m4/ulonglong.m4.
99784         * modules/strtoull (Files): Use m4/longlong.m4 instead of
99785         m4/ulonglong.m4.
99786         * modules/strtoumax (Files): Likewise.
99788 2007-10-30  Bruno Haible  <bruno@clisp.org>
99790         * modules/xvasprintf-posix: New file.
99791         Suggested by Eric Blake.
99793 2007-10-30  Bruno Haible  <bruno@clisp.org>
99795         * modules/xprintf-posix-tests: New file.
99796         * tests/test-xprintf-posix.sh: New file.
99797         * tests/test-xprintf-posix.c: New file.
99798         * tests/test-xfprintf-posix.c: New file.
99800         * modules/xprintf-posix: New file.
99802 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99804         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
99805         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
99806         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
99808 2007-10-29  Bruno Haible  <bruno@clisp.org>
99810         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
99811         contain the special marker '_cv_'.
99812         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
99813         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
99814         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
99815         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
99816         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
99817         Reported by Ralf Wildenhues.
99819 2007-10-29  Bruno Haible  <bruno@clisp.org>
99821         * gnulib-tool (func_import): When --lgpl is not specified, set
99822         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
99823         GPLv3.
99824         Reported by Simon Josefsson.
99826 2007-10-28  Bruno Haible  <bruno@clisp.org>
99828         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
99829         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
99830         HAVE_DECL_ISFINITE.
99831         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99832         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
99833         HAVE_DECL_ISFINITE.
99835 2007-10-28  Bruno Haible  <bruno@clisp.org>
99837         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
99838         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
99840 2007-10-28  Bruno Haible  <bruno@clisp.org>
99842         Fix link errors with Sun C 5.0 on Solaris 10.
99843         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
99844         function is declared but not present in the compiler's libm.
99845         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
99846         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
99847         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
99848         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
99849         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
99850         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
99851         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
99852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
99853         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
99854         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
99855         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
99856         HAVE_DECL_FLOORL.
99858 2007-10-28  Bruno Haible  <bruno@clisp.org>
99860         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
99861         gl_FUNC_FLOORL. Cache the result.
99862         (gl_FUNC_FLOORL): Use it.
99863         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
99864         gl_FUNC_CEILL. Cache the result.
99865         (gl_FUNC_CEILL): Use it.
99867         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
99868         gl_FUNC_FLOOR. Cache the result.
99869         (gl_FUNC_FLOOR): Use it.
99870         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
99871         gl_FUNC_CEIL. Cache the result.
99872         (gl_FUNC_CEIL): Use it.
99874         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
99875         gl_FUNC_FLOORF. Cache the result.
99876         (gl_FUNC_FLOORF): Use it.
99877         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
99878         gl_FUNC_CEILF. Cache the result.
99879         (gl_FUNC_CEILF): Use it.
99881 2007-10-28  Bruno Haible  <bruno@clisp.org>
99883         * gnulib-tool: Allow specifying the LGPL version number through
99884         --lgpl=2 or --lgpl=3.
99885         (func_usage): Document --lgpl with argument.
99886         Handle --lgpl=... arguments.
99887         (func_import): Recognize also gl_LGPL calls with an argument. When
99888         --lgpl=2 is used and the module's license is just LGPL, report an
99889         error. Set sed_transform_lib_file according to the lgpl variable. In
99890         the generated files, use --lgpl or gl_LGPL invocations with argument,
99891         if necessary.
99892         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
99893         an LGPv2+ license.
99894         * doc/gnulib-tool.texi (Modified imports): Update explanation of
99895         gl_LGPL macro.
99897 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99898             Bruno Haible  <bruno@clisp.org>
99900         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
99901         (u16_uctomb_aux): Likewise.
99902         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
99903         !HAVE_INLINE.
99904         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
99906 2007-10-28  Bruno Haible  <bruno@clisp.org>
99908         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
99909         Invoke AM_GETTEXT_OPTION if it exists.
99910         * modules/vasprintf: Likewise.
99911         * modules/verror: Likewise.
99912         * modules/xprintf: Likewise.
99913         * modules/xvasprintf: Likewise.
99915 2007-10-27  Ben Pfaff  <blp@gnu.org>
99917         * lib/math.in.h: Define isfinite macro and prototypes for
99918         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
99919         implementations.
99920         * m4/math_h.m4: New substitutions for isfinite module.
99921         * lib/isfinite.c: New file.
99922         * m4/isfinite.m4: New file.
99923         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
99924         * modules/isfinite: New file.
99925         * modules/isfinite-tests: New file.
99926         * tests/tests-isfinite.c: New file.
99927         * doc/functions/isfinite.texi: Mention isfinite module.
99928         * MODULES.html.sh: Mention new module.
99930 2007-10-27  Ben Pfaff  <blp@gnu.org>
99932         Ralf Wildenhues reported that Tru64 4.0D declares the round
99933         functions but does not have definitions.
99934         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
99935         cannot be found in any library, set the output variable to
99936         "missing" instead of "".
99937         * m4/round.m4: Also use our substitute if we cannot find round in
99938         any library, even if it is declared.
99939         * m4/roundf.m4: Likewise for roundf.
99940         * m4/roundl.m4: Likewise for roundl.
99941         * lib/math.in.h: Undefine roundf, round, roundl before defining
99942         their replacements, to allow for hypothetical systems where these
99943         may be defined as macros but not available in libraries.
99945 2007-10-27  Bruno Haible  <bruno@clisp.org>
99947         * doc/gnulib.texi: Invoke @firstparagraphindent.
99948         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
99949         changes in gnulib.
99950         (Source changes): New section.
99952 2007-10-26  Bruno Haible  <bruno@clisp.org>
99954         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
99955         borrowed from autoconf.
99957 2007-10-26  Bruno Haible  <bruno@clisp.org>
99959         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
99960         strerror returned the empty string. Needed on HP-UX 11.00.
99962 2007-10-24  Micah Cowan  <micah@cowan.name>
99964         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
99965         * build-aux/bootstrap: Remove support for now-unnecessary option,
99966         --cvs-user, and envvars CVS_USER, CVS_RSH.
99968 2007-10-24  Jim Meyering  <meyering@redhat.com>
99970         Avoid diagnostics from sha1sum when there is no cached checksum.
99971         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
99972         if the po.s1 file hasn't been created yet.
99974         * build-aux/bootstrap: Sync from coreutils:
99975         2007-10-24  Jim Meyering  <meyering@redhat.com>
99976         Get gnulib from the git repository, not from an obsolete cvs one.
99977         * build-aux/bootstrap: Suggestion from Micah Cowan.
99978         2007-10-04  Jim Meyering  <jim@meyering.net>
99979         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
99980         (update_po_files): Work also when there are no .po files in po/.
99982 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
99984         * README: Append ".git" to git and cg examples.
99985         Problem reported by Benoit Sigoure.
99987 2007-10-23  Micah Cowan  <micah@cowan.name>
99989         * users.txt: Add wget.
99991 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
99993         Fix linking of some unistdio tests on FreeBSD.
99994         * modules/unistdio/u16-vsnprintf-tests
99995         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
99996         * modules/unistdio/u16-vsprintf-tests
99997         (test_u16_vsnprintf1_LDADD): Likewise.
99998         * modules/unistdio/u32-vsnprintf-tests
99999         (test_u32_vsnprintf1_LDADD): Likewise.
100000         * modules/unistdio/u32-vsprintf-tests
100001         (test_u32_vsprintf1_LDADD): Likewise.
100002         * modules/unistdio/u8-vsnprintf-tests
100003         (test_u8_vsnprintf1_LDADD): Likewise.
100004         * modules/unistdio/u8-vsprintf-tests
100005         (test_u8_vsprintf1_LDADD): Likewise.
100006         * modules/unistdio/ulc-vsnprintf-tests
100007         (test_ulc_vsnprintf1_LDADD): Likewise.
100008         * modules/unistdio/ulc-vsprintf-tests
100009         (test_ulc_vsprintf1_LDADD): Likewise.
100011         Fix linking of some uniconv tests on FreeBSD.
100012         * modules/uniconv/u16-conv-from-enc-tests
100013         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
100014         * modules/uniconv/u16-conv-to-enc-tests
100015         (test_u16_conv_to_enc_LDADD): Likewise.
100016         * modules/uniconv/u16-strconv-from-enc-tests
100017         (test_u16_strconv_from_enc_LDADD): Likewise.
100018         * modules/uniconv/u16-strconv-to-enc-tests
100019         (test_u16_strconv_to_enc_LDADD): Likewise.
100020         * modules/uniconv/u32-conv-from-enc-tests
100021         (test_u32_conv_from_enc_LDADD): Likewise.
100022         * modules/uniconv/u32-conv-to-enc-tests
100023         (test_u32_conv_to_enc_LDADD): Likewise.
100024         * modules/uniconv/u32-strconv-from-enc-tests
100025         (test_u32_strconv_from_enc_LDADD): Likewise.
100026         * modules/uniconv/u32-strconv-to-enc-tests
100027         (test_u32_strconv_to_enc_LDADD): Likewise.
100028         * modules/uniconv/u8-conv-from-enc-tests
100029         (test_u8_conv_from_enc_LDADD): Likewise.
100030         * modules/uniconv/u8-conv-to-enc-tests
100031         (test_u8_conv_to_enc_LDADD): Likewise.
100032         * modules/uniconv/u8-strconv-from-enc-tests
100033         (test_u8_strconv_from_enc_LDADD): Likewise.
100034         * modules/uniconv/u8-strconv-to-enc-tests
100035         (test_u8_strconv_to_enc_LDADD): Likewise.
100037 2007-10-22  Bruno Haible  <bruno@clisp.org>
100039         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
100040         size.
100042 2007-10-22  Eric Blake  <ebb9@byu.net>
100044         Tweak x*printf documentation.
100045         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
100046         variable name and comments.
100047         Suggested by Bruno Haible.
100049 2007-10-22  Bruno Haible  <bruno@clisp.org>
100051         * lib/acl.c (copy_acl): Fix file name in comment.
100053 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100055         Fix Tru64 problem with stdbool.h.
100056         * lib/stdbool.in.h (false, true):
100057         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
100058         Don't declare as an enum in this situation; it runs afoul of Tru64.
100059         Problem reported by Steven M. Schweda in
100060         <http://lists.gnu.org/r/bug-autoconf/2007-10/msg00019.html>.
100062 2007-10-22  Eric Blake  <ebb9@byu.net>
100064         Also wrap vf?printf.
100065         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
100066         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
100067         (xvprintf, xvfprintf): New functions.
100069 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100071         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
100072         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
100074         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
100075         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
100077 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
100079         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
100080         by Bruno Haible.
100082 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100084         * lib/getloadavg.c
100085         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
100086         Undef `sys' after including sys/table.h, for Tru64 4.0D.
100088         * tests/test-i-ring.c: Work for C89.
100090 2007-10-22  Bruno Haible  <bruno@clisp.org>
100092         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
100093         -1u, in preprocessor expression, so that we don't test for the bug
100094         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
100095         <http://lists.gnu.org/r/bug-gnulib/2007-10/msg00329.html>.
100097 2007-10-22  Eric Blake  <ebb9@byu.net>
100099         * tests/test-yesno.sh: Silence stderr during test.
100101 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100103         * modules/crypto/gc-camellia: New file.
100105         * m4/gc-camellia.m4: New file.
100107         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
100109         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
100111 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100113         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
100114         --help to stdout.  Reported by sms@antinode.org (Steven
100115         M. Schweda).
100117 2007-10-22  Simon Josefsson  <simon@josefsson.org>
100119         * users.txt: Fix link to libksba.
100121 2007-10-21  Ben Pfaff  <blp@gnu.org>
100123         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
100124         round.c roundf implementation that depends on floorf and ceilf to
100125         be tested unconditionally.
100127 2007-10-21  Ben Pfaff  <blp@gnu.org>
100129         * m4/check-libm-func.m4: Removed.
100130         * m4/check-math-lib.m4: New file.
100131         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
100132         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
100133         definition and lack of AC_LIBOBJ([roundf]).
100134         * m4/roundl.m4: Ditto, and similarly for roundl.
100135         * modules/round: Reference new m4 file.
100136         * modules/roundf: Ditto.
100137         * modules/roundl: Ditto.
100138         * tests/test-round2.c (main): Use ROUND instead of round.
100139         Bug report from Bruno Haible.
100141 2007-10-21  Bruno Haible  <bruno@clisp.org>
100143         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
100144         context.
100146 2007-10-21  Bruno Haible  <bruno@clisp.org>
100148         * tests/test-wcwidth.c (main): Allow negative result for some control
100149         characters.
100151         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
100152         Needed on OSF/1 5.1.
100154 2007-10-21  Bruno Haible  <bruno@clisp.org>
100156         * tests/test-floorf1.c: Include isnanf.h.
100157         (main): Use isnanf() instead of isnan().
100158         * tests/test-ceilf1.c: Include isnanf.h.
100159         (main): Use isnanf() instead of isnan().
100160         * tests/test-truncf1.c: Include isnanf.h.
100161         (main): Use isnanf() instead of isnan().
100162         * tests/test-roundf1.c: Include isnanf.h.
100163         (main): Use isnanf() instead of isnan().
100165 2007-10-21  Eric Blake  <ebb9@byu.net>
100167         * users.txt: Update URL for m4.
100169 2007-10-21  Bruno Haible  <bruno@clisp.org>
100171         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
100173 2007-10-21  Bruno Haible  <bruno@clisp.org>
100175         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
100176         Git's management files if the CVS files are not present.
100178 2007-10-20  Bruno Haible  <bruno@clisp.org>
100180         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
100181         gcc-3.4.x.
100183 2007-10-20  Ben Pfaff  <blp@gnu.org>
100185         * lib/math.in.h: Declare round, roundf, roundl if we are providing
100186         implementations.
100187         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
100188         * lib/round.c: New file.
100189         * lib/roundf.c: New file.
100190         * lib/roundl.c: New file.
100191         * m4/round.m4: New file.
100192         * m4/roundf.m4: New file.
100193         * m4/roundl.m4: New file.
100194         * m4/check-libm-func-m4: New file.
100195         * modules/math: Replace round, roundf, roundl related @VARS@ in
100196         math.in.h.
100197         * modules/round: New file.
100198         * modules/round-tests: New file.
100199         * modules/roundf: New file.
100200         * modules/roundf-tests: New file.
100201         * modules/roundl: New file.
100202         * modules/roundl-tests: New file.
100203         * tests/test-round1.c: New file.
100204         * tests/test-round2.c: New file.
100205         * tests/test-roundf1.c: New file.
100206         * tests/test-roundf2.c: New file.
100207         * tests/test-roundl.c: New file.
100208         * doc/functions/round.texi: Mention round module.
100209         * doc/functions/roundf.texi: Mention roundf module.
100210         * doc/functions/roundl.texi: Mention roundl module.
100211         * MODULES.html.sh: Mention new modules.
100212         Thanks to Bruno Haible for suggestions.
100214 2007-10-20  Jim Meyering  <meyering@redhat.com>
100216         * lib/xprintf.c: Include <config.h> unconditionally.
100218         Change xprintf's license to GPL.
100219         * modules/xprintf (License): s/LGPL/GPL/, since this module
100220         depends on modules (exit and exitfail) which are GPL.
100221         Suggestion from Bruno Haible.
100223         xprintf fixes.
100224         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
100225         Use a clearer diagnostic.
100226         Patch from Bruno Haible.
100228 2007-10-20  Bruno Haible  <bruno@clisp.org>
100230         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
100231         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
100232         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100234 2007-10-20  Bruno Haible  <bruno@clisp.org>
100236         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
100237         precision in the comparison result > x - 1 or similar.
100238         * tests/test-ceilf2.c (correct_result_p): Likewise.
100239         * tests/test-truncf2.c (correct_result_p): Likewise.
100240         * tests/test-trunc2.c (correct_result_p): Likewise.
100241         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
100243 2007-10-20  Bruno Haible  <bruno@clisp.org>
100245         * modules/ceil: New file.
100246         * m4/ceil.m4: New file.
100247         * doc/functions/ceil.texi: Mention the 'ceil' module.
100249 2007-10-20  Bruno Haible  <bruno@clisp.org>
100251         * modules/floor: New file.
100252         * m4/floor.m4: New file.
100253         * doc/functions/floor.texi: Mention the 'floor' module.
100255 2007-10-20  Bruno Haible  <bruno@clisp.org>
100257         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
100258         of %a.
100259         * modules/floorf-tests (Depends-on): Likewise.
100260         * modules/truncf-tests (Depends-on): Likewise.
100261         * modules/trunc-tests (Depends-on): Likewise.
100262         Reported by Ben Pfaff.
100264 2007-10-19  Jim Meyering  <meyering@redhat.com>
100266         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
100267         Don't bother testing specific errno values.  Just test ferror.
100269         New module: xprintf
100270         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
100272 2007-10-19  Bruno Haible  <bruno@clisp.org>
100274         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
100275         syntax.
100276         * modules/javaexec (Makefile.am): Likewise.
100277         * modules/relocatable-prog (Makefile.am): Likewise.
100278         Suggested by Jim Meyering.
100280 2007-10-18  Bruno Haible  <bruno@clisp.org>
100282         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
100283         Reported by Jim Meyering.
100285 2007-10-18  Eric Blake  <ebb9@byu.net>
100287         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
100289 2007-10-18  Bruno Haible  <bruno@clisp.org>
100291         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
100292         the format string into writable memory. Needed in Fortify conditions.
100294 2007-10-18  Colin Watson  <cjwatson@debian.org>  (tiny change)
100295             Bruno Haible  <bruno@clisp.org>
100297         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
100298         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
100299         * modules/trim (Depends-on): Add mbchar.
100300         (configure.ac): Add gl_FUNC_MBRTOWC.
100301         (Makefile.am): Augment lib_SOURCES.
100303 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
100305         Modify glob.c to use fstatat and dirfd, to simplify it.
100306         Suggested by Eric Blake.
100307         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
100308         Don't include <stdbool.h>; not used.
100309         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
100310         (link_exists_p): Simplify implementation, since we can now assume
100311         dirfd and fstatat.
100312         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
100314 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100316         * gnulib-tool (func_get_dependencies): Fix sed script to
100317         match only tests.
100319 2007-10-17  Bruno Haible  <bruno@clisp.org>
100321         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
100322         allow locale names without encoding suffix.
100323         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
100324         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
100326 2007-10-16  Bruno Haible  <bruno@clisp.org>
100328         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
100329         * lib/getgroups.c (getgroups): Likewise.
100330         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
100332 2007-10-16  Bruno Haible  <bruno@clisp.org>
100334         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
100335         * modules/malloc-posix (License): Likewise.
100336         * modules/realloc-posix (License): Likewise.
100337         * modules/calloc-posix (License): Likewise.
100338         * modules/intprops (License): Change from GPL to LGPL, with
100339         Paul Eggert's approval.
100341 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100343         Merge glibc changes into lib/glob.c.
100345         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
100346         2007-10-15 04:59:03 UTC.  Here are the changes:
100348         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
100350         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
100352         * lib/glob.c: Add some branch prediction throughout.
100354         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
100356         [BZ #5103]
100357         * lib/glob.c (glob): Recognize patterns starting \/.
100359         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
100361         [BZ #3996]
100362         * lib/glob.c (attribute_hidden): Define if not defined.
100363         (glob): Unescape dirname, filename or username when needed and not
100364         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
100365         is NULL.  Handle unescaped [ in pattern without closing ].
100366         Don't pass GLOB_CHECK down to recursive glob for directories.
100367         (__glob_pattern_type): New function.
100368         (__glob_pattern_p): Implement using __glob_pattern_type.
100369         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
100370         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
100371         Remove unreachable code.
100373         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
100375         * lib/glob.c (glob_in_dir): Add some comments and asserts to
100376         explain why there are no leaks.
100378         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
100380         [BZ #3253]
100381         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
100382         time, rather allocate increasingly bigger arrays of pointers, if
100383         possible with alloca, if too large with malloc.
100385 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
100387         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
100388         Problem reported by H.Merijn Brand in
100389         <http://lists.gnu.org/r/bug-tar/2007-10/msg00018.html>.
100390         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
100391         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
100393 2007-10-15  Bruno Haible  <bruno@clisp.org>
100395         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
100396         with explicit rpl_ prefix.
100397         * lib/fopen.c (fopen): Likewise.
100398         * lib/freopen.c (freopen): Likewise.
100399         * lib/iconv.c (iconv): Likewise.
100400         * lib/iconv_close.c (iconv_close): Likewise.
100402 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
100404         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
100406 2007-10-15  Bruno Haible  <bruno@clisp.org>
100408         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
100409         <stddef.h> instead of <stdlib.h> since we only need NULL.
100410         Reported by Ben Pfaff <blp@cs.stanford.edu>.
100412 2007-10-15  Bruno Haible  <bruno@clisp.org>
100414         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
100415         Replace paragraph talking about LIBOBJS.
100416         Reported by Colin Watson <cjwatson@debian.org>.
100418 2007-10-15  Bruno Haible  <bruno@clisp.org>
100420         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
100421         <stdlib.h> before using NULL.
100423 2007-10-15  Simon Josefsson  <simon@josefsson.org>
100425         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
100426         Reported by Albert Chin <china@thewrittenword.com>.
100428 2007-10-14  Bruno Haible  <bruno@clisp.org>
100430         * modules/iconv_open-utf-tests: New file.
100431         * tests/test-iconv-utf.c: New file.
100433         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
100434         * modules/iconv_open-utf: New file.
100435         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
100436         (iconv, iconv_close): New declarations.
100437         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
100438         be defined.
100439         (iconv_open): Add special handling of conversion between UTF-8 and
100440         UTF-{16,32}{BE,LE}.
100441         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
100442         * lib/iconv_close.c: New file.
100443         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
100444         gl_FUNC_ICONV_OPEN.
100445         (gl_FUNC_ICONV_OPEN): Use it.
100446         (gl_FUNC_ICONV_OPEN_UTF): New macro.
100447         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
100448         and REPLACE_ICONV_UTF.
100449         * modules/iconv_open (Depends-on): Add c-strcase.
100450         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
100451         ICONV_CONST.
100452         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
100454 2007-10-13  Albert Chin  <china@thewrittenword.com>
100455             Bruno Haible  <bruno@clisp.org>
100457         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
100458         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
100460 2007-10-13  Bruno Haible  <bruno@clisp.org>
100462         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
100463         defined, use the ISO C99 inline semantics.
100464         * lib/argp.h (ARGP_EI): Likewise.
100466 2007-10-13  Bruno Haible  <bruno@clisp.org>
100468         Handle 'inline' change in gcc 4.3.0.
100469         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
100470         argp_fmtstream_write, argp_fmtstream_set_lmargin,
100471         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
100472         argp_fmtstream_point): Disable 'extern' declaration if the function
100473         definition is going to be provided inline.
100474         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
100475         semantics, not the ISO C99 inline semantics.
100476         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
100477         'extern' declaration if the function definition is going to be provided
100478         inline.
100479         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
100480         the GNU C inline semantics, not the ISO C99 inline semantics. With
100481         GCC 4.2, avoid a warning.
100483 2007-10-13  Bruno Haible  <bruno@clisp.org>
100485         * lib/freading.h (freading): Enable the use of __freading for
100486         glibc >= 2.7.
100487         * lib/freading.c (freading): Likewise.
100489 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
100491         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
100492         "warning: C99 inline functions are not supported; using GNU89".
100494 2007-10-12  Bruno Haible  <bruno@clisp.org>
100496         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
100497         of 2.
100498         * tests/test-ceilf2.c: New file.
100499         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
100501         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
100502         * modules/ceilf-tests: Update.
100504 2007-10-12  Bruno Haible  <bruno@clisp.org>
100506         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
100507         of 2.
100508         * tests/test-floorf2.c: New file.
100509         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
100511         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
100512         * modules/floorf-tests: Update.
100514 2007-10-12  Bruno Haible  <bruno@clisp.org>
100516         * tests/test-trunc2.c: New file.
100517         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
100519         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
100520         * modules/trunc-tests: Update.
100522 2007-10-12  Bruno Haible  <bruno@clisp.org>
100524         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
100525         of 2.
100526         * tests/test-truncf2.c: New file.
100527         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
100529         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
100530         * modules/truncf-tests: Update.
100532 2007-10-11  Eric Blake  <ebb9@byu.net>
100534         Don't claim strerror is broken on Interix.
100535         * doc/functions/strerror.texi (strerror): Known broken systems are
100536         now Solaris 8, and not Interix.
100537         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
100538         Interix on cross-compile.
100539         Reported by Martin Koeppe in
100540         http://lists.gnu.org/r/bug-gnulib/2007-10/msg00005.html.
100542 2007-10-11  Bruno Haible  <bruno@clisp.org>
100544         * modules/i-ring-tests: New file.
100545         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
100546         instead of assert.
100548 2007-10-11  Bruno Haible  <bruno@clisp.org>
100550         * modules/filenamecat-tests: New file.
100551         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
100552         * lib/filenamecat.c: Remove test code.
100554 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
100556         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
100558         * lib/strerror.c: Include <string.h> always, to test interface,
100559         and to remove the need for the dummy.
100560         Include intprops.h to compute width instead of doing it ourselves
100561         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
100562         (strerror): Define it to return NULL if there's no system strerror.
100563         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
100564         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
100565         ancient pre-strerror Unix systems well any more.  Saying "unknown
100566         system error" is enough.
100567         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
100568         simpler strerror.c implementation.
100569         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
100570         Simplify the tests to reflect the simpler strerror implementation.
100571         * modules/strerror (Depends-on): Add intprops.
100573 2007-10-09  Eric Blake  <ebb9@byu.net>
100575         Silence test-fpending.
100576         * modules/fpending-tests (Files): Add wrapper script.
100577         * tests/test-fpending.sh: New file.
100579 2007-10-09  Bruno Haible  <bruno@clisp.org>
100581         * MODULES.html.sh (func_module): Don't create a hyperlink for
100582         function names like 'printf_frexp'.
100583         (Misc): Add crc, memxor.
100584         (Characteristics of floating types): New section.
100585         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
100586         isnanf-nolibm, signbit, trunc, truncf, truncl.
100587         (Enhancements for ISO C 99 functions): New subsection Input/output.
100588         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
100589         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
100590         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
100591         (Compatibility checks for POSIX:2001 functions): Add clock-time.
100592         (Enhancements for POSIX:2001 functions): Add chdir-long.
100593         (File system functions): Add areadlink, chdir-safer, read-file.
100594         Remove cycle-check.
100595         (File system as inode set): New section.
100596         (Date and time): Add gethrxtime.
100597         (Multithreading): Add openmp.
100598         (Internationalization functions): Add localename.
100599         (Unicode string functions): Add unistr/u*-mbsnlen.
100600         (Support for maintaining and releasing projects): Add git-version-gen.
100601         (Lone files): Remove directories.
100603 2007-10-08  Ben Pfaff  <blp@gnu.org>
100605         * lib/xmalloca.h: Fix typo in comment.
100607 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
100609         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
100610         when avoiding problems with integer overflow.  Use a portable test
100611         instead.
100613 2007-10-08  Simon Josefsson  <simon@josefsson.org>
100615         * modules/dummy (License): Change to LGPLv2+.
100616         * modules/float (License): Likewise
100617         * modules/realloc (License): Likewise
100618         * modules/stdlib (License): Likewise
100620 2007-10-07  Bruno Haible  <bruno@clisp.org>
100622         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
100623         * floor.c (TWO_MANT_DIG): Likewise.
100624         * ceil.c (TWO_MANT_DIG): Likewise.
100625         Reported by Ben Pfaff.
100627 2007-10-07  Bruno Haible  <bruno@clisp.org>
100629         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
100630         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
100631         * lib/frexp.c (FUNC): Likewise.
100632         * lib/printf-frexp.h (printf_frexp): Likewise.
100633         * lib/printf-frexpl.h (printf_frexpl): Likewise.
100634         * lib/printf-frexp.c (FUNC): Likewise.
100635         Suggested by Jim Meyering.
100637 2007-10-07  Jim Meyering  <meyering@redhat.com>
100639         Make xnanosleep's integer overflow test more robust.
100640         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
100641         so that gcc-4.3.0 doesn't optimize away this test for overflow.
100643 2007-10-07  Bruno Haible  <bruno@clisp.org>
100645         * NEWS: Mention the license change.
100647         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
100648         abbreviations in the modules files.
100650         Change copyright notice from GPLv2+ to GPLv3+.
100651         * README: Change copyright notice.
100652         * MODULES.html.sh: Likewise.
100653         * build-aux/bootstrap.conf: Likewise.
100654         * build-aux/config.libpath: Likewise.
100655         * build-aux/csharpcomp.sh.in: Likewise.
100656         * build-aux/csharpexec.sh.in: Likewise.
100657         * build-aux/install-reloc: Likewise.
100658         * build-aux/javacomp.sh.in: Likewise.
100659         * build-aux/javaexec.sh.in: Likewise.
100660         * build-aux/ldd.sh.in: Likewise.
100661         * build-aux/reloc-ldflags: Likewise.
100662         * build-aux/relocatable.sh.in: Likewise.
100663         * build-aux/x-to-1.in: Likewise.
100664         * check-module: Likewise.
100665         * config/srclistvars.sh: Likewise.
100666         * gnulib-tool: Likewise.
100667         * lib/acl-internal.h: Likewise.
100668         * lib/acl.c: Likewise.
100669         * lib/acl.h: Likewise.
100670         * lib/acl_entries.c: Likewise.
100671         * lib/areadlink-with-size.c: Likewise.
100672         * lib/areadlink.c: Likewise.
100673         * lib/areadlink.h: Likewise.
100674         * lib/argmatch.c: Likewise.
100675         * lib/argmatch.h: Likewise.
100676         * lib/argp-ba.c: Likewise.
100677         * lib/argp-eexst.c: Likewise.
100678         * lib/argp-fmtstream.c: Likewise.
100679         * lib/argp-fmtstream.h: Likewise.
100680         * lib/argp-fs-xinl.c: Likewise.
100681         * lib/argp-help.c: Likewise.
100682         * lib/argp-namefrob.h: Likewise.
100683         * lib/argp-parse.c: Likewise.
100684         * lib/argp-pin.c: Likewise.
100685         * lib/argp-pv.c: Likewise.
100686         * lib/argp-pvh.c: Likewise.
100687         * lib/argp-xinl.c: Likewise.
100688         * lib/argp.h: Likewise.
100689         * lib/at-func.c: Likewise.
100690         * lib/atanl.c: Likewise.
100691         * lib/backupfile.c: Likewise.
100692         * lib/backupfile.h: Likewise.
100693         * lib/basename.c: Likewise.
100694         * lib/binary-io.h: Likewise.
100695         * lib/byteswap.in.h: Likewise.
100696         * lib/c-stack.c: Likewise.
100697         * lib/c-stack.h: Likewise.
100698         * lib/c-strcasestr.c: Likewise.
100699         * lib/c-strcasestr.h: Likewise.
100700         * lib/c-strstr.c: Likewise.
100701         * lib/c-strstr.h: Likewise.
100702         * lib/c-strtod.c: Likewise.
100703         * lib/calloc.c: Likewise.
100704         * lib/canon-host.c: Likewise.
100705         * lib/canon-host.h: Likewise.
100706         * lib/canonicalize-lgpl.c: Likewise.
100707         * lib/canonicalize.c: Likewise.
100708         * lib/canonicalize.h: Likewise.
100709         * lib/ceil.c: Likewise.
100710         * lib/ceilf.c: Likewise.
100711         * lib/ceill.c: Likewise.
100712         * lib/chdir-long.c: Likewise.
100713         * lib/chdir-long.h: Likewise.
100714         * lib/chdir-safer.c: Likewise.
100715         * lib/chdir-safer.h: Likewise.
100716         * lib/chown.c: Likewise.
100717         * lib/classpath.c: Likewise.
100718         * lib/classpath.h: Likewise.
100719         * lib/clean-temp.c: Likewise.
100720         * lib/clean-temp.h: Likewise.
100721         * lib/cloexec.c: Likewise.
100722         * lib/close-stream.c: Likewise.
100723         * lib/closein.c: Likewise.
100724         * lib/closein.h: Likewise.
100725         * lib/closeout.c: Likewise.
100726         * lib/closeout.h: Likewise.
100727         * lib/concat-filename.c: Likewise.
100728         * lib/copy-file.c: Likewise.
100729         * lib/copy-file.h: Likewise.
100730         * lib/count-one-bits.h: Likewise.
100731         * lib/crc.c: Likewise.
100732         * lib/crc.h: Likewise.
100733         * lib/creat-safer.c: Likewise.
100734         * lib/csharpcomp.c: Likewise.
100735         * lib/csharpcomp.h: Likewise.
100736         * lib/csharpexec.c: Likewise.
100737         * lib/csharpexec.h: Likewise.
100738         * lib/cycle-check.c: Likewise.
100739         * lib/cycle-check.h: Likewise.
100740         * lib/diacrit.c: Likewise.
100741         * lib/diacrit.h: Likewise.
100742         * lib/diffseq.h: Likewise.
100743         * lib/dirchownmod.c: Likewise.
100744         * lib/dirent.in.h: Likewise.
100745         * lib/dirfd.c: Likewise.
100746         * lib/dirfd.h: Likewise.
100747         * lib/dirname.c: Likewise.
100748         * lib/dirname.h: Likewise.
100749         * lib/dummy.c: Likewise.
100750         * lib/dup-safer.c: Likewise.
100751         * lib/dup2.c: Likewise.
100752         * lib/eealloc.h: Likewise.
100753         * lib/error.c: Likewise.
100754         * lib/error.h: Likewise.
100755         * lib/euidaccess.c: Likewise.
100756         * lib/exclude.c: Likewise.
100757         * lib/exclude.h: Likewise.
100758         * lib/execute.c: Likewise.
100759         * lib/execute.h: Likewise.
100760         * lib/exitfail.c: Likewise.
100761         * lib/exitfail.h: Likewise.
100762         * lib/expl.c: Likewise.
100763         * lib/fatal-signal.c: Likewise.
100764         * lib/fatal-signal.h: Likewise.
100765         * lib/fbufmode.c: Likewise.
100766         * lib/fbufmode.h: Likewise.
100767         * lib/fchdir.c: Likewise.
100768         * lib/fchmodat.c: Likewise.
100769         * lib/fchownat.c: Likewise.
100770         * lib/fcntl--.h: Likewise.
100771         * lib/fcntl-safer.h: Likewise.
100772         * lib/fcntl.in.h: Likewise.
100773         * lib/fd-safer.c: Likewise.
100774         * lib/fflush.c: Likewise.
100775         * lib/file-has-acl.c: Likewise.
100776         * lib/file-set.c: Likewise.
100777         * lib/file-type.c: Likewise.
100778         * lib/file-type.h: Likewise.
100779         * lib/fileblocks.c: Likewise.
100780         * lib/filemode.c: Likewise.
100781         * lib/filemode.h: Likewise.
100782         * lib/filename.h: Likewise.
100783         * lib/filenamecat.c: Likewise.
100784         * lib/filenamecat.h: Likewise.
100785         * lib/findprog.c: Likewise.
100786         * lib/findprog.h: Likewise.
100787         * lib/float.in.h: Likewise.
100788         * lib/floor.c: Likewise.
100789         * lib/floorf.c: Likewise.
100790         * lib/floorl.c: Likewise.
100791         * lib/fopen-safer.c: Likewise.
100792         * lib/fopen.c: Likewise.
100793         * lib/fpending.c: Likewise.
100794         * lib/fpending.h: Likewise.
100795         * lib/fprintf.c: Likewise.
100796         * lib/fprintftime.h: Likewise.
100797         * lib/fpucw.h: Likewise.
100798         * lib/fpurge.c: Likewise.
100799         * lib/fpurge.h: Likewise.
100800         * lib/freadable.c: Likewise.
100801         * lib/freadable.h: Likewise.
100802         * lib/freadahead.c: Likewise.
100803         * lib/freadahead.h: Likewise.
100804         * lib/freading.c: Likewise.
100805         * lib/freading.h: Likewise.
100806         * lib/free.c: Likewise.
100807         * lib/freopen.c: Likewise.
100808         * lib/frexp.c: Likewise.
100809         * lib/frexpl.c: Likewise.
100810         * lib/fseek.c: Likewise.
100811         * lib/fseterr.c: Likewise.
100812         * lib/fseterr.h: Likewise.
100813         * lib/fstatat.c: Likewise.
100814         * lib/fstrcmp.c: Likewise.
100815         * lib/fstrcmp.h: Likewise.
100816         * lib/fsusage.c: Likewise.
100817         * lib/fsusage.h: Likewise.
100818         * lib/ftell.c: Likewise.
100819         * lib/ftello.c: Likewise.
100820         * lib/fts-cycle.c: Likewise.
100821         * lib/fts.c: Likewise.
100822         * lib/fts_.h: Likewise.
100823         * lib/full-read.c: Likewise.
100824         * lib/full-read.h: Likewise.
100825         * lib/full-write.c: Likewise.
100826         * lib/full-write.h: Likewise.
100827         * lib/fwritable.c: Likewise.
100828         * lib/fwritable.h: Likewise.
100829         * lib/fwriteerror.c: Likewise.
100830         * lib/fwriteerror.h: Likewise.
100831         * lib/fwriting.c: Likewise.
100832         * lib/fwriting.h: Likewise.
100833         * lib/gcd.c: Likewise.
100834         * lib/gcd.h: Likewise.
100835         * lib/getcwd.c: Likewise.
100836         * lib/getdate.h: Likewise.
100837         * lib/getdate.y: Likewise.
100838         * lib/getdomainname.c: Likewise.
100839         * lib/getdomainname.h: Likewise.
100840         * lib/getgroups.c: Likewise.
100841         * lib/gethostname.c: Likewise.
100842         * lib/gethrxtime.c: Likewise.
100843         * lib/gethrxtime.h: Likewise.
100844         * lib/getloadavg.c: Likewise.
100845         * lib/getndelim2.c: Likewise.
100846         * lib/getndelim2.h: Likewise.
100847         * lib/getnline.c: Likewise.
100848         * lib/getnline.h: Likewise.
100849         * lib/getopt.c: Likewise.
100850         * lib/getopt.in.h: Likewise.
100851         * lib/getopt1.c: Likewise.
100852         * lib/getopt_int.h: Likewise.
100853         * lib/getpagesize.h: Likewise.
100854         * lib/getsubopt.c: Likewise.
100855         * lib/gettime.c: Likewise.
100856         * lib/getugroups.c: Likewise.
100857         * lib/getugroups.h: Likewise.
100858         * lib/getusershell.c: Likewise.
100859         * lib/gl_anyavltree_list1.h: Likewise.
100860         * lib/gl_anyavltree_list2.h: Likewise.
100861         * lib/gl_anyhash_list1.h: Likewise.
100862         * lib/gl_anyhash_list2.h: Likewise.
100863         * lib/gl_anylinked_list1.h: Likewise.
100864         * lib/gl_anylinked_list2.h: Likewise.
100865         * lib/gl_anyrbtree_list1.h: Likewise.
100866         * lib/gl_anyrbtree_list2.h: Likewise.
100867         * lib/gl_anytree_list1.h: Likewise.
100868         * lib/gl_anytree_list2.h: Likewise.
100869         * lib/gl_anytree_oset.h: Likewise.
100870         * lib/gl_anytreehash_list1.h: Likewise.
100871         * lib/gl_anytreehash_list2.h: Likewise.
100872         * lib/gl_array_list.c: Likewise.
100873         * lib/gl_array_list.h: Likewise.
100874         * lib/gl_array_oset.c: Likewise.
100875         * lib/gl_array_oset.h: Likewise.
100876         * lib/gl_avltree_list.c: Likewise.
100877         * lib/gl_avltree_list.h: Likewise.
100878         * lib/gl_avltree_oset.c: Likewise.
100879         * lib/gl_avltree_oset.h: Likewise.
100880         * lib/gl_avltreehash_list.c: Likewise.
100881         * lib/gl_avltreehash_list.h: Likewise.
100882         * lib/gl_carray_list.c: Likewise.
100883         * lib/gl_carray_list.h: Likewise.
100884         * lib/gl_linked_list.c: Likewise.
100885         * lib/gl_linked_list.h: Likewise.
100886         * lib/gl_linkedhash_list.c: Likewise.
100887         * lib/gl_linkedhash_list.h: Likewise.
100888         * lib/gl_list.c: Likewise.
100889         * lib/gl_list.h: Likewise.
100890         * lib/gl_oset.c: Likewise.
100891         * lib/gl_oset.h: Likewise.
100892         * lib/gl_rbtree_list.c: Likewise.
100893         * lib/gl_rbtree_list.h: Likewise.
100894         * lib/gl_rbtree_oset.c: Likewise.
100895         * lib/gl_rbtree_oset.h: Likewise.
100896         * lib/gl_rbtreehash_list.c: Likewise.
100897         * lib/gl_rbtreehash_list.h: Likewise.
100898         * lib/gl_sublist.c: Likewise.
100899         * lib/gl_sublist.h: Likewise.
100900         * lib/group-member.c: Likewise.
100901         * lib/group-member.h: Likewise.
100902         * lib/hard-locale.c: Likewise.
100903         * lib/hard-locale.h: Likewise.
100904         * lib/hash-pjw.c: Likewise.
100905         * lib/hash-pjw.h: Likewise.
100906         * lib/hash-triple.c: Likewise.
100907         * lib/hash.c: Likewise.
100908         * lib/hash.h: Likewise.
100909         * lib/human.c: Likewise.
100910         * lib/human.h: Likewise.
100911         * lib/i-ring.c: Likewise.
100912         * lib/i-ring.h: Likewise.
100913         * lib/idcache.c: Likewise.
100914         * lib/imaxabs.c: Likewise.
100915         * lib/imaxdiv.c: Likewise.
100916         * lib/inet_pton.c: Likewise.
100917         * lib/inet_pton.h: Likewise.
100918         * lib/intprops.h: Likewise.
100919         * lib/inttostr.c: Likewise.
100920         * lib/inttostr.h: Likewise.
100921         * lib/inttypes.in.h: Likewise.
100922         * lib/isapipe.c: Likewise.
100923         * lib/isdir.c: Likewise.
100924         * lib/isnan.c: Likewise.
100925         * lib/isnan.h: Likewise.
100926         * lib/isnanf.c: Likewise.
100927         * lib/isnanf.h: Likewise.
100928         * lib/isnanl-nolibm.h: Likewise.
100929         * lib/isnanl.c: Likewise.
100930         * lib/isnanl.h: Likewise.
100931         * lib/javacomp.c: Likewise.
100932         * lib/javacomp.h: Likewise.
100933         * lib/javaexec.c: Likewise.
100934         * lib/javaexec.h: Likewise.
100935         * lib/javaversion.c: Likewise.
100936         * lib/javaversion.h: Likewise.
100937         * lib/javaversion.java: Likewise.
100938         * lib/lbrkprop.h: Likewise.
100939         * lib/lchmod.h: Likewise.
100940         * lib/lchown.c: Likewise.
100941         * lib/ldexpl.c: Likewise.
100942         * lib/linebreak.c: Likewise.
100943         * lib/linebreak.h: Likewise.
100944         * lib/linebuffer.c: Likewise.
100945         * lib/linebuffer.h: Likewise.
100946         * lib/locale.in.h: Likewise.
100947         * lib/logl.c: Likewise.
100948         * lib/long-options.c: Likewise.
100949         * lib/long-options.h: Likewise.
100950         * lib/lstat.c: Likewise.
100951         * lib/lstat.h: Likewise.
100952         * lib/math.in.h: Likewise.
100953         * lib/mbchar.c: Likewise.
100954         * lib/mbchar.h: Likewise.
100955         * lib/mbfile.h: Likewise.
100956         * lib/mbiter.h: Likewise.
100957         * lib/mbscasecmp.c: Likewise.
100958         * lib/mbscasestr.c: Likewise.
100959         * lib/mbschr.c: Likewise.
100960         * lib/mbscspn.c: Likewise.
100961         * lib/mbslen.c: Likewise.
100962         * lib/mbsncasecmp.c: Likewise.
100963         * lib/mbsnlen.c: Likewise.
100964         * lib/mbspbrk.c: Likewise.
100965         * lib/mbspcasecmp.c: Likewise.
100966         * lib/mbsrchr.c: Likewise.
100967         * lib/mbssep.c: Likewise.
100968         * lib/mbsspn.c: Likewise.
100969         * lib/mbsstr.c: Likewise.
100970         * lib/mbstok_r.c: Likewise.
100971         * lib/mbswidth.c: Likewise.
100972         * lib/mbswidth.h: Likewise.
100973         * lib/mbuiter.h: Likewise.
100974         * lib/memcasecmp.c: Likewise.
100975         * lib/memcasecmp.h: Likewise.
100976         * lib/memchr.c: Likewise.
100977         * lib/memcmp.c: Likewise.
100978         * lib/memcoll.c: Likewise.
100979         * lib/memcoll.h: Likewise.
100980         * lib/memcpy.c: Likewise.
100981         * lib/memrchr.c: Likewise.
100982         * lib/mkancesdirs.c: Likewise.
100983         * lib/mkdir-p.c: Likewise.
100984         * lib/mkdir-p.h: Likewise.
100985         * lib/mkdir.c: Likewise.
100986         * lib/mkdirat.c: Likewise.
100987         * lib/mkdtemp.c: Likewise.
100988         * lib/mkstemp-safer.c: Likewise.
100989         * lib/mkstemp.c: Likewise.
100990         * lib/modechange.c: Likewise.
100991         * lib/modechange.h: Likewise.
100992         * lib/mountlist.c: Likewise.
100993         * lib/mountlist.h: Likewise.
100994         * lib/mpsort.c: Likewise.
100995         * lib/nanosleep.c: Likewise.
100996         * lib/obstack.c: Likewise.
100997         * lib/obstack.h: Likewise.
100998         * lib/open-safer.c: Likewise.
100999         * lib/open.c: Likewise.
101000         * lib/openat-die.c: Likewise.
101001         * lib/openat-priv.h: Likewise.
101002         * lib/openat-proc.c: Likewise.
101003         * lib/openat.c: Likewise.
101004         * lib/openat.h: Likewise.
101005         * lib/pagealign_alloc.c: Likewise.
101006         * lib/pagealign_alloc.h: Likewise.
101007         * lib/physmem.c: Likewise.
101008         * lib/physmem.h: Likewise.
101009         * lib/pipe-safer.c: Likewise.
101010         * lib/pipe.c: Likewise.
101011         * lib/pipe.h: Likewise.
101012         * lib/posixtm.c: Likewise.
101013         * lib/posixtm.h: Likewise.
101014         * lib/posixver.c: Likewise.
101015         * lib/printf-frexp.c: Likewise.
101016         * lib/printf-frexp.h: Likewise.
101017         * lib/printf-frexpl.c: Likewise.
101018         * lib/printf-frexpl.h: Likewise.
101019         * lib/printf.c: Likewise.
101020         * lib/progname.c: Likewise.
101021         * lib/progname.h: Likewise.
101022         * lib/progreloc.c: Likewise.
101023         * lib/putenv.c: Likewise.
101024         * lib/quote.c: Likewise.
101025         * lib/quote.h: Likewise.
101026         * lib/quotearg.c: Likewise.
101027         * lib/quotearg.h: Likewise.
101028         * lib/raise.c: Likewise.
101029         * lib/readline.c: Likewise.
101030         * lib/readline.h: Likewise.
101031         * lib/readlink.c: Likewise.
101032         * lib/readtokens.c: Likewise.
101033         * lib/readtokens.h: Likewise.
101034         * lib/readtokens0.c: Likewise.
101035         * lib/readtokens0.h: Likewise.
101036         * lib/readutmp.c: Likewise.
101037         * lib/readutmp.h: Likewise.
101038         * lib/realloc.c: Likewise.
101039         * lib/relocwrapper.c: Likewise.
101040         * lib/rename-dest-slash.c: Likewise.
101041         * lib/rename.c: Likewise.
101042         * lib/rmdir.c: Likewise.
101043         * lib/rpmatch.c: Likewise.
101044         * lib/safe-read.c: Likewise.
101045         * lib/safe-read.h: Likewise.
101046         * lib/safe-write.c: Likewise.
101047         * lib/safe-write.h: Likewise.
101048         * lib/same-inode.h: Likewise.
101049         * lib/same.c: Likewise.
101050         * lib/same.h: Likewise.
101051         * lib/save-cwd.c: Likewise.
101052         * lib/save-cwd.h: Likewise.
101053         * lib/savedir.c: Likewise.
101054         * lib/savedir.h: Likewise.
101055         * lib/savewd.c: Likewise.
101056         * lib/savewd.h: Likewise.
101057         * lib/search.in.h: Likewise.
101058         * lib/setenv.c: Likewise.
101059         * lib/setenv.h: Likewise.
101060         * lib/settime.c: Likewise.
101061         * lib/sh-quote.c: Likewise.
101062         * lib/sh-quote.h: Likewise.
101063         * lib/sig2str.c: Likewise.
101064         * lib/sig2str.h: Likewise.
101065         * lib/signal.in.h: Likewise.
101066         * lib/signbitd.c: Likewise.
101067         * lib/signbitf.c: Likewise.
101068         * lib/signbitl.c: Likewise.
101069         * lib/sigprocmask.c: Likewise.
101070         * lib/sincosl.c: Likewise.
101071         * lib/sleep.c: Likewise.
101072         * lib/sprintf.c: Likewise.
101073         * lib/sqrtl.c: Likewise.
101074         * lib/stat-time.h: Likewise.
101075         * lib/stdio--.h: Likewise.
101076         * lib/stdio-safer.h: Likewise.
101077         * lib/stdlib--.h: Likewise.
101078         * lib/stdlib-safer.h: Likewise.
101079         * lib/stdlib.in.h: Likewise.
101080         * lib/stpcpy.c: Likewise.
101081         * lib/stpncpy.c: Likewise.
101082         * lib/strchrnul.c: Likewise.
101083         * lib/strcspn.c: Likewise.
101084         * lib/strerror.c: Likewise.
101085         * lib/strftime.c: Likewise.
101086         * lib/strftime.h: Likewise.
101087         * lib/striconveh.c: Likewise.
101088         * lib/striconveh.h: Likewise.
101089         * lib/striconveha.c: Likewise.
101090         * lib/striconveha.h: Likewise.
101091         * lib/stripslash.c: Likewise.
101092         * lib/strnlen1.c: Likewise.
101093         * lib/strnlen1.h: Likewise.
101094         * lib/strtod.c: Likewise.
101095         * lib/strtoimax.c: Likewise.
101096         * lib/strtok_r.c: Likewise.
101097         * lib/strtol.c: Likewise.
101098         * lib/strtoll.c: Likewise.
101099         * lib/strtoul.c: Likewise.
101100         * lib/strtoull.c: Likewise.
101101         * lib/sysexits.in.h: Likewise.
101102         * lib/tempname.c: Likewise.
101103         * lib/tempname.h: Likewise.
101104         * lib/timespec.h: Likewise.
101105         * lib/tls.c: Likewise.
101106         * lib/tls.h: Likewise.
101107         * lib/tmpdir.c: Likewise.
101108         * lib/tmpdir.h: Likewise.
101109         * lib/tmpfile-safer.c: Likewise.
101110         * lib/tmpfile.c: Likewise.
101111         * lib/trigl.c: Likewise.
101112         * lib/trigl.h: Likewise.
101113         * lib/trim.c: Likewise.
101114         * lib/trim.h: Likewise.
101115         * lib/trunc.c: Likewise.
101116         * lib/truncf.c: Likewise.
101117         * lib/truncl.c: Likewise.
101118         * lib/tsearch.c: Likewise.
101119         * lib/unicodeio.c: Likewise.
101120         * lib/unicodeio.h: Likewise.
101121         * lib/unistd--.h: Likewise.
101122         * lib/unistd-safer.h: Likewise.
101123         * lib/unistdio/ulc-fprintf.c: Likewise.
101124         * lib/unistdio/ulc-vfprintf.c: Likewise.
101125         * lib/unlinkdir.c: Likewise.
101126         * lib/unlinkdir.h: Likewise.
101127         * lib/unlocked-io.h: Likewise.
101128         * lib/unsetenv.c: Likewise.
101129         * lib/userspec.c: Likewise.
101130         * lib/utime.c: Likewise.
101131         * lib/utimecmp.c: Likewise.
101132         * lib/utimecmp.h: Likewise.
101133         * lib/utimens.c: Likewise.
101134         * lib/verify.h: Likewise.
101135         * lib/verror.c: Likewise.
101136         * lib/verror.h: Likewise.
101137         * lib/version-etc-fsf.c: Likewise.
101138         * lib/version-etc.c: Likewise.
101139         * lib/version-etc.h: Likewise.
101140         * lib/vfprintf.c: Likewise.
101141         * lib/vprintf.c: Likewise.
101142         * lib/vsprintf.c: Likewise.
101143         * lib/w32spawn.h: Likewise.
101144         * lib/wait-process.c: Likewise.
101145         * lib/wait-process.h: Likewise.
101146         * lib/wcwidth.c: Likewise.
101147         * lib/write-any-file.c: Likewise.
101148         * lib/xalloc-die.c: Likewise.
101149         * lib/xalloc.h: Likewise.
101150         * lib/xasprintf.c: Likewise.
101151         * lib/xgetcwd.c: Likewise.
101152         * lib/xgetcwd.h: Likewise.
101153         * lib/xgetdomainname.c: Likewise.
101154         * lib/xgetdomainname.h: Likewise.
101155         * lib/xgethostname.c: Likewise.
101156         * lib/xmalloc.c: Likewise.
101157         * lib/xmalloca.c: Likewise.
101158         * lib/xmalloca.h: Likewise.
101159         * lib/xmemcoll.c: Likewise.
101160         * lib/xnanosleep.c: Likewise.
101161         * lib/xreadlink.c: Likewise.
101162         * lib/xreadlink.h: Likewise.
101163         * lib/xsetenv.c: Likewise.
101164         * lib/xsetenv.h: Likewise.
101165         * lib/xstriconv.c: Likewise.
101166         * lib/xstriconv.h: Likewise.
101167         * lib/xstrndup.c: Likewise.
101168         * lib/xstrndup.h: Likewise.
101169         * lib/xstrtod.c: Likewise.
101170         * lib/xstrtod.h: Likewise.
101171         * lib/xstrtol-error.c: Likewise.
101172         * lib/xstrtol.c: Likewise.
101173         * lib/xstrtol.h: Likewise.
101174         * lib/xtime.h: Likewise.
101175         * lib/xvasprintf.c: Likewise.
101176         * lib/xvasprintf.h: Likewise.
101177         * lib/yesno.c: Likewise.
101178         * lib/yesno.h: Likewise.
101179         * posix-modules: Likewise.
101180         * tests/test-alloca-opt.c: Likewise.
101181         * tests/test-arcfour.c: Likewise.
101182         * tests/test-arctwo.c: Likewise.
101183         * tests/test-argmatch.c: Likewise.
101184         * tests/test-argp-2.sh: Likewise.
101185         * tests/test-argp.c: Likewise.
101186         * tests/test-arpa_inet.c: Likewise.
101187         * tests/test-array_list.c: Likewise.
101188         * tests/test-array_oset.c: Likewise.
101189         * tests/test-atexit.c: Likewise.
101190         * tests/test-avltree_list.c: Likewise.
101191         * tests/test-avltree_oset.c: Likewise.
101192         * tests/test-avltreehash_list.c: Likewise.
101193         * tests/test-base64.c: Likewise.
101194         * tests/test-binary-io.c: Likewise.
101195         * tests/test-byteswap.c: Likewise.
101196         * tests/test-c-ctype.c: Likewise.
101197         * tests/test-c-strcasecmp.c: Likewise.
101198         * tests/test-c-strcasestr.c: Likewise.
101199         * tests/test-c-strncasecmp.c: Likewise.
101200         * tests/test-c-strstr.c: Likewise.
101201         * tests/test-canonicalize-lgpl.c: Likewise.
101202         * tests/test-canonicalize.c: Likewise.
101203         * tests/test-carray_list.c: Likewise.
101204         * tests/test-ceilf.c: Likewise.
101205         * tests/test-ceill.c: Likewise.
101206         * tests/test-count-one-bits.c: Likewise.
101207         * tests/test-crc.c: Likewise.
101208         * tests/test-dirname.c: Likewise.
101209         * tests/test-fbufmode.c: Likewise.
101210         * tests/test-fcntl.c: Likewise.
101211         * tests/test-fflush.c: Likewise.
101212         * tests/test-floorf.c: Likewise.
101213         * tests/test-floorl.c: Likewise.
101214         * tests/test-fopen.c: Likewise.
101215         * tests/test-fprintf-posix.c: Likewise.
101216         * tests/test-fprintf-posix.h: Likewise.
101217         * tests/test-fpurge.c: Likewise.
101218         * tests/test-freadable.c: Likewise.
101219         * tests/test-freadahead.c: Likewise.
101220         * tests/test-freading.c: Likewise.
101221         * tests/test-freopen.c: Likewise.
101222         * tests/test-frexp.c: Likewise.
101223         * tests/test-frexpl.c: Likewise.
101224         * tests/test-fseek.c: Likewise.
101225         * tests/test-fseeko.c: Likewise.
101226         * tests/test-fseterr.c: Likewise.
101227         * tests/test-fstrcmp.c: Likewise.
101228         * tests/test-ftell.c: Likewise.
101229         * tests/test-ftello.c: Likewise.
101230         * tests/test-fwritable.c: Likewise.
101231         * tests/test-fwriting.c: Likewise.
101232         * tests/test-getaddrinfo.c: Likewise.
101233         * tests/test-getpass.c: Likewise.
101234         * tests/test-gettimeofday.c: Likewise.
101235         * tests/test-hmac-md5.c: Likewise.
101236         * tests/test-hmac-sha1.c: Likewise.
101237         * tests/test-iconv.c: Likewise.
101238         * tests/test-iconvme.c: Likewise.
101239         * tests/test-inttypes.c: Likewise.
101240         * tests/test-isnan.c: Likewise.
101241         * tests/test-isnanf.c: Likewise.
101242         * tests/test-isnanl-nolibm.c: Likewise.
101243         * tests/test-isnanl.c: Likewise.
101244         * tests/test-isnanl.h: Likewise.
101245         * tests/test-ldexpl.c: Likewise.
101246         * tests/test-linked_list.c: Likewise.
101247         * tests/test-linkedhash_list.c: Likewise.
101248         * tests/test-locale.c: Likewise.
101249         * tests/test-localename.c: Likewise.
101250         * tests/test-lock.c: Likewise.
101251         * tests/test-lseek.c: Likewise.
101252         * tests/test-malloca.c: Likewise.
101253         * tests/test-math.c: Likewise.
101254         * tests/test-mbscasecmp.c: Likewise.
101255         * tests/test-mbscasestr1.c: Likewise.
101256         * tests/test-mbscasestr2.c: Likewise.
101257         * tests/test-mbscasestr3.c: Likewise.
101258         * tests/test-mbscasestr4.c: Likewise.
101259         * tests/test-mbschr.c: Likewise.
101260         * tests/test-mbscspn.c: Likewise.
101261         * tests/test-mbsncasecmp.c: Likewise.
101262         * tests/test-mbspbrk.c: Likewise.
101263         * tests/test-mbspcasecmp.c: Likewise.
101264         * tests/test-mbsrchr.c: Likewise.
101265         * tests/test-mbsspn.c: Likewise.
101266         * tests/test-mbsstr1.c: Likewise.
101267         * tests/test-mbsstr2.c: Likewise.
101268         * tests/test-mbsstr3.c: Likewise.
101269         * tests/test-md5.c: Likewise.
101270         * tests/test-memmem.c: Likewise.
101271         * tests/test-netinet_in.c: Likewise.
101272         * tests/test-open.c: Likewise.
101273         * tests/test-printf-frexp.c: Likewise.
101274         * tests/test-printf-frexpl.c: Likewise.
101275         * tests/test-printf-posix.c: Likewise.
101276         * tests/test-printf-posix.h: Likewise.
101277         * tests/test-rbtree_list.c: Likewise.
101278         * tests/test-rbtree_oset.c: Likewise.
101279         * tests/test-rbtreehash_list.c: Likewise.
101280         * tests/test-read-file.c: Likewise.
101281         * tests/test-rijndael.c: Likewise.
101282         * tests/test-search.c: Likewise.
101283         * tests/test-signbit.c: Likewise.
101284         * tests/test-sleep.c: Likewise.
101285         * tests/test-snprintf-posix.c: Likewise.
101286         * tests/test-snprintf-posix.h: Likewise.
101287         * tests/test-snprintf.c: Likewise.
101288         * tests/test-sprintf-posix.c: Likewise.
101289         * tests/test-sprintf-posix.h: Likewise.
101290         * tests/test-stat-time.c: Likewise.
101291         * tests/test-stdbool.c: Likewise.
101292         * tests/test-stdint.c: Likewise.
101293         * tests/test-stdio.c: Likewise.
101294         * tests/test-stdlib.c: Likewise.
101295         * tests/test-stpncpy.c: Likewise.
101296         * tests/test-strcasestr.c: Likewise.
101297         * tests/test-striconv.c: Likewise.
101298         * tests/test-striconveh.c: Likewise.
101299         * tests/test-striconveha.c: Likewise.
101300         * tests/test-string.c: Likewise.
101301         * tests/test-sys_select.c: Likewise.
101302         * tests/test-sys_socket.c: Likewise.
101303         * tests/test-sys_stat.c: Likewise.
101304         * tests/test-sys_time.c: Likewise.
101305         * tests/test-sysexits.c: Likewise.
101306         * tests/test-time.c: Likewise.
101307         * tests/test-tls.c: Likewise.
101308         * tests/test-trunc.c: Likewise.
101309         * tests/test-truncf.c: Likewise.
101310         * tests/test-truncl.c: Likewise.
101311         * tests/test-unistd.c: Likewise.
101312         * tests/test-vasnprintf-posix.c: Likewise.
101313         * tests/test-vasnprintf-posix2.c: Likewise.
101314         * tests/test-vasnprintf.c: Likewise.
101315         * tests/test-vasprintf-posix.c: Likewise.
101316         * tests/test-vasprintf.c: Likewise.
101317         * tests/test-verify.c: Likewise.
101318         * tests/test-vfprintf-posix.c: Likewise.
101319         * tests/test-vprintf-posix.c: Likewise.
101320         * tests/test-vsnprintf-posix.c: Likewise.
101321         * tests/test-vsnprintf.c: Likewise.
101322         * tests/test-vsprintf-posix.c: Likewise.
101323         * tests/test-wchar.c: Likewise.
101324         * tests/test-wctype.c: Likewise.
101325         * tests/test-wcwidth.c: Likewise.
101326         * tests/test-xstrtol.c: Likewise.
101327         * tests/test-xvasprintf.c: Likewise.
101328         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
101329         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
101330         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
101331         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
101332         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
101333         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
101334         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
101335         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
101336         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
101337         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
101338         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
101339         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
101340         * tests/uniname/test-uninames.c: Likewise.
101341         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
101342         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
101343         * tests/unistdio/test-u16-printf1.h: Likewise.
101344         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
101345         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
101346         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
101347         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
101348         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
101349         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
101350         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
101351         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
101352         * tests/unistdio/test-u32-printf1.h: Likewise.
101353         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
101354         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
101355         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
101356         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
101357         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
101358         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
101359         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
101360         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
101361         * tests/unistdio/test-u8-printf1.h: Likewise.
101362         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
101363         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
101364         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
101365         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
101366         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
101367         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
101368         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
101369         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
101370         * tests/unistdio/test-ulc-printf1.h: Likewise.
101371         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
101372         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
101373         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
101374         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
101375         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
101376         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
101377         * tests/uniwidth/test-u16-strwidth.c: Likewise.
101378         * tests/uniwidth/test-u16-width.c: Likewise.
101379         * tests/uniwidth/test-u32-strwidth.c: Likewise.
101380         * tests/uniwidth/test-u32-width.c: Likewise.
101381         * tests/uniwidth/test-u8-strwidth.c: Likewise.
101382         * tests/uniwidth/test-u8-width.c: Likewise.
101383         * tests/uniwidth/test-uc_width.c: Likewise.
101384         * config/srclist-update: Likewise.
101385         (fixlicense): Update to GPLv3+.
101387         Change copyright notice from LGPLv2.1+ to LGPLv3+.
101388         * tests/test-tsearch.c: Change copyright notice.
101390         Change copyright notice from LGPLv2.0+ to LGPLv3+.
101391         * lib/c-strcaseeq.h: Change copyright notice.
101392         * lib/streq.h: Likewise.
101393         * lib/uniconv.h: Likewise.
101394         * lib/uniconv/u-conv-from-enc.h: Likewise.
101395         * lib/uniconv/u-conv-to-enc.h: Likewise.
101396         * lib/uniconv/u-strconv-from-enc.h: Likewise.
101397         * lib/uniconv/u-strconv-to-enc.h: Likewise.
101398         * lib/uniconv/u16-conv-from-enc.c: Likewise.
101399         * lib/uniconv/u16-conv-to-enc.c: Likewise.
101400         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
101401         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
101402         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
101403         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
101404         * lib/uniconv/u32-conv-from-enc.c: Likewise.
101405         * lib/uniconv/u32-conv-to-enc.c: Likewise.
101406         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
101407         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
101408         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
101409         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
101410         * lib/uniconv/u8-conv-from-enc.c: Likewise.
101411         * lib/uniconv/u8-conv-to-enc.c: Likewise.
101412         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
101413         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
101414         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
101415         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
101416         * lib/uniname.h: Likewise.
101417         * lib/uniname/uniname.c: Likewise.
101418         * lib/unistdio.h: Likewise.
101419         * lib/unistdio/u-asnprintf.h: Likewise.
101420         * lib/unistdio/u-asprintf.h: Likewise.
101421         * lib/unistdio/u-printf-args.c: Likewise.
101422         * lib/unistdio/u-printf-args.h: Likewise.
101423         * lib/unistdio/u-printf-parse.h: Likewise.
101424         * lib/unistdio/u-snprintf.h: Likewise.
101425         * lib/unistdio/u-sprintf.h: Likewise.
101426         * lib/unistdio/u-vasprintf.h: Likewise.
101427         * lib/unistdio/u-vsnprintf.h: Likewise.
101428         * lib/unistdio/u-vsprintf.h: Likewise.
101429         * lib/unistdio/u16-asnprintf.c: Likewise.
101430         * lib/unistdio/u16-asprintf.c: Likewise.
101431         * lib/unistdio/u16-printf-parse.c: Likewise.
101432         * lib/unistdio/u16-snprintf.c: Likewise.
101433         * lib/unistdio/u16-sprintf.c: Likewise.
101434         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
101435         * lib/unistdio/u16-u16-asprintf.c: Likewise.
101436         * lib/unistdio/u16-u16-snprintf.c: Likewise.
101437         * lib/unistdio/u16-u16-sprintf.c: Likewise.
101438         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
101439         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
101440         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
101441         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
101442         * lib/unistdio/u16-vasnprintf.c: Likewise.
101443         * lib/unistdio/u16-vasprintf.c: Likewise.
101444         * lib/unistdio/u16-vsnprintf.c: Likewise.
101445         * lib/unistdio/u16-vsprintf.c: Likewise.
101446         * lib/unistdio/u32-asnprintf.c: Likewise.
101447         * lib/unistdio/u32-asprintf.c: Likewise.
101448         * lib/unistdio/u32-printf-parse.c: Likewise.
101449         * lib/unistdio/u32-snprintf.c: Likewise.
101450         * lib/unistdio/u32-sprintf.c: Likewise.
101451         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
101452         * lib/unistdio/u32-u32-asprintf.c: Likewise.
101453         * lib/unistdio/u32-u32-snprintf.c: Likewise.
101454         * lib/unistdio/u32-u32-sprintf.c: Likewise.
101455         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
101456         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
101457         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
101458         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
101459         * lib/unistdio/u32-vasnprintf.c: Likewise.
101460         * lib/unistdio/u32-vasprintf.c: Likewise.
101461         * lib/unistdio/u32-vsnprintf.c: Likewise.
101462         * lib/unistdio/u32-vsprintf.c: Likewise.
101463         * lib/unistdio/u8-asnprintf.c: Likewise.
101464         * lib/unistdio/u8-asprintf.c: Likewise.
101465         * lib/unistdio/u8-printf-parse.c: Likewise.
101466         * lib/unistdio/u8-snprintf.c: Likewise.
101467         * lib/unistdio/u8-sprintf.c: Likewise.
101468         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
101469         * lib/unistdio/u8-u8-asprintf.c: Likewise.
101470         * lib/unistdio/u8-u8-snprintf.c: Likewise.
101471         * lib/unistdio/u8-u8-sprintf.c: Likewise.
101472         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
101473         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
101474         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
101475         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
101476         * lib/unistdio/u8-vasnprintf.c: Likewise.
101477         * lib/unistdio/u8-vasprintf.c: Likewise.
101478         * lib/unistdio/u8-vsnprintf.c: Likewise.
101479         * lib/unistdio/u8-vsprintf.c: Likewise.
101480         * lib/unistdio/ulc-asnprintf.c: Likewise.
101481         * lib/unistdio/ulc-asprintf.c: Likewise.
101482         * lib/unistdio/ulc-printf-parse.c: Likewise.
101483         * lib/unistdio/ulc-snprintf.c: Likewise.
101484         * lib/unistdio/ulc-sprintf.c: Likewise.
101485         * lib/unistdio/ulc-vasnprintf.c: Likewise.
101486         * lib/unistdio/ulc-vasprintf.c: Likewise.
101487         * lib/unistdio/ulc-vsnprintf.c: Likewise.
101488         * lib/unistdio/ulc-vsprintf.c: Likewise.
101489         * lib/unistr.h: Likewise.
101490         * lib/unistr/u-cpy-alloc.h: Likewise.
101491         * lib/unistr/u-cpy.h: Likewise.
101492         * lib/unistr/u-endswith.h: Likewise.
101493         * lib/unistr/u-move.h: Likewise.
101494         * lib/unistr/u-set.h: Likewise.
101495         * lib/unistr/u-startswith.h: Likewise.
101496         * lib/unistr/u-stpcpy.h: Likewise.
101497         * lib/unistr/u-stpncpy.h: Likewise.
101498         * lib/unistr/u-strcat.h: Likewise.
101499         * lib/unistr/u-strcpy.h: Likewise.
101500         * lib/unistr/u-strcspn.h: Likewise.
101501         * lib/unistr/u-strdup.h: Likewise.
101502         * lib/unistr/u-strlen.h: Likewise.
101503         * lib/unistr/u-strncat.h: Likewise.
101504         * lib/unistr/u-strncpy.h: Likewise.
101505         * lib/unistr/u-strnlen.h: Likewise.
101506         * lib/unistr/u-strpbrk.h: Likewise.
101507         * lib/unistr/u-strspn.h: Likewise.
101508         * lib/unistr/u-strstr.h: Likewise.
101509         * lib/unistr/u-strtok.h: Likewise.
101510         * lib/unistr/u16-check.c: Likewise.
101511         * lib/unistr/u16-chr.c: Likewise.
101512         * lib/unistr/u16-cmp.c: Likewise.
101513         * lib/unistr/u16-cpy-alloc.c: Likewise.
101514         * lib/unistr/u16-cpy.c: Likewise.
101515         * lib/unistr/u16-endswith.c: Likewise.
101516         * lib/unistr/u16-mblen.c: Likewise.
101517         * lib/unistr/u16-mbsnlen.c: Likewise.
101518         * lib/unistr/u16-mbtouc-aux.c: Likewise.
101519         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
101520         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
101521         * lib/unistr/u16-mbtouc.c: Likewise.
101522         * lib/unistr/u16-mbtoucr.c: Likewise.
101523         * lib/unistr/u16-move.c: Likewise.
101524         * lib/unistr/u16-next.c: Likewise.
101525         * lib/unistr/u16-prev.c: Likewise.
101526         * lib/unistr/u16-set.c: Likewise.
101527         * lib/unistr/u16-startswith.c: Likewise.
101528         * lib/unistr/u16-stpcpy.c: Likewise.
101529         * lib/unistr/u16-stpncpy.c: Likewise.
101530         * lib/unistr/u16-strcat.c: Likewise.
101531         * lib/unistr/u16-strchr.c: Likewise.
101532         * lib/unistr/u16-strcmp.c: Likewise.
101533         * lib/unistr/u16-strcpy.c: Likewise.
101534         * lib/unistr/u16-strcspn.c: Likewise.
101535         * lib/unistr/u16-strdup.c: Likewise.
101536         * lib/unistr/u16-strlen.c: Likewise.
101537         * lib/unistr/u16-strmblen.c: Likewise.
101538         * lib/unistr/u16-strmbtouc.c: Likewise.
101539         * lib/unistr/u16-strncat.c: Likewise.
101540         * lib/unistr/u16-strncmp.c: Likewise.
101541         * lib/unistr/u16-strncpy.c: Likewise.
101542         * lib/unistr/u16-strnlen.c: Likewise.
101543         * lib/unistr/u16-strpbrk.c: Likewise.
101544         * lib/unistr/u16-strrchr.c: Likewise.
101545         * lib/unistr/u16-strspn.c: Likewise.
101546         * lib/unistr/u16-strstr.c: Likewise.
101547         * lib/unistr/u16-strtok.c: Likewise.
101548         * lib/unistr/u16-to-u32.c: Likewise.
101549         * lib/unistr/u16-to-u8.c: Likewise.
101550         * lib/unistr/u16-uctomb-aux.c: Likewise.
101551         * lib/unistr/u16-uctomb.c: Likewise.
101552         * lib/unistr/u32-check.c: Likewise.
101553         * lib/unistr/u32-chr.c: Likewise.
101554         * lib/unistr/u32-cmp.c: Likewise.
101555         * lib/unistr/u32-cpy-alloc.c: Likewise.
101556         * lib/unistr/u32-cpy.c: Likewise.
101557         * lib/unistr/u32-endswith.c: Likewise.
101558         * lib/unistr/u32-mblen.c: Likewise.
101559         * lib/unistr/u32-mbsnlen.c: Likewise.
101560         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
101561         * lib/unistr/u32-mbtouc.c: Likewise.
101562         * lib/unistr/u32-mbtoucr.c: Likewise.
101563         * lib/unistr/u32-move.c: Likewise.
101564         * lib/unistr/u32-next.c: Likewise.
101565         * lib/unistr/u32-prev.c: Likewise.
101566         * lib/unistr/u32-set.c: Likewise.
101567         * lib/unistr/u32-startswith.c: Likewise.
101568         * lib/unistr/u32-stpcpy.c: Likewise.
101569         * lib/unistr/u32-stpncpy.c: Likewise.
101570         * lib/unistr/u32-strcat.c: Likewise.
101571         * lib/unistr/u32-strchr.c: Likewise.
101572         * lib/unistr/u32-strcmp.c: Likewise.
101573         * lib/unistr/u32-strcpy.c: Likewise.
101574         * lib/unistr/u32-strcspn.c: Likewise.
101575         * lib/unistr/u32-strdup.c: Likewise.
101576         * lib/unistr/u32-strlen.c: Likewise.
101577         * lib/unistr/u32-strmblen.c: Likewise.
101578         * lib/unistr/u32-strmbtouc.c: Likewise.
101579         * lib/unistr/u32-strncat.c: Likewise.
101580         * lib/unistr/u32-strncmp.c: Likewise.
101581         * lib/unistr/u32-strncpy.c: Likewise.
101582         * lib/unistr/u32-strnlen.c: Likewise.
101583         * lib/unistr/u32-strpbrk.c: Likewise.
101584         * lib/unistr/u32-strrchr.c: Likewise.
101585         * lib/unistr/u32-strspn.c: Likewise.
101586         * lib/unistr/u32-strstr.c: Likewise.
101587         * lib/unistr/u32-strtok.c: Likewise.
101588         * lib/unistr/u32-to-u16.c: Likewise.
101589         * lib/unistr/u32-to-u8.c: Likewise.
101590         * lib/unistr/u32-uctomb.c: Likewise.
101591         * lib/unistr/u8-check.c: Likewise.
101592         * lib/unistr/u8-chr.c: Likewise.
101593         * lib/unistr/u8-cmp.c: Likewise.
101594         * lib/unistr/u8-cpy-alloc.c: Likewise.
101595         * lib/unistr/u8-cpy.c: Likewise.
101596         * lib/unistr/u8-endswith.c: Likewise.
101597         * lib/unistr/u8-mblen.c: Likewise.
101598         * lib/unistr/u8-mbsnlen.c: Likewise.
101599         * lib/unistr/u8-mbtouc-aux.c: Likewise.
101600         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
101601         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
101602         * lib/unistr/u8-mbtouc.c: Likewise.
101603         * lib/unistr/u8-mbtoucr.c: Likewise.
101604         * lib/unistr/u8-move.c: Likewise.
101605         * lib/unistr/u8-next.c: Likewise.
101606         * lib/unistr/u8-prev.c: Likewise.
101607         * lib/unistr/u8-set.c: Likewise.
101608         * lib/unistr/u8-startswith.c: Likewise.
101609         * lib/unistr/u8-stpcpy.c: Likewise.
101610         * lib/unistr/u8-stpncpy.c: Likewise.
101611         * lib/unistr/u8-strcat.c: Likewise.
101612         * lib/unistr/u8-strchr.c: Likewise.
101613         * lib/unistr/u8-strcmp.c: Likewise.
101614         * lib/unistr/u8-strcpy.c: Likewise.
101615         * lib/unistr/u8-strcspn.c: Likewise.
101616         * lib/unistr/u8-strdup.c: Likewise.
101617         * lib/unistr/u8-strlen.c: Likewise.
101618         * lib/unistr/u8-strmblen.c: Likewise.
101619         * lib/unistr/u8-strmbtouc.c: Likewise.
101620         * lib/unistr/u8-strncat.c: Likewise.
101621         * lib/unistr/u8-strncmp.c: Likewise.
101622         * lib/unistr/u8-strncpy.c: Likewise.
101623         * lib/unistr/u8-strnlen.c: Likewise.
101624         * lib/unistr/u8-strpbrk.c: Likewise.
101625         * lib/unistr/u8-strrchr.c: Likewise.
101626         * lib/unistr/u8-strspn.c: Likewise.
101627         * lib/unistr/u8-strstr.c: Likewise.
101628         * lib/unistr/u8-strtok.c: Likewise.
101629         * lib/unistr/u8-to-u16.c: Likewise.
101630         * lib/unistr/u8-to-u32.c: Likewise.
101631         * lib/unistr/u8-uctomb-aux.c: Likewise.
101632         * lib/unistr/u8-uctomb.c: Likewise.
101633         * lib/unitypes.h: Likewise.
101634         * lib/uniwidth.h: Likewise.
101635         * lib/uniwidth/cjk.h: Likewise.
101636         * lib/uniwidth/u16-strwidth.c: Likewise.
101637         * lib/uniwidth/u16-width.c: Likewise.
101638         * lib/uniwidth/u32-strwidth.c: Likewise.
101639         * lib/uniwidth/u32-width.c: Likewise.
101640         * lib/uniwidth/u8-strwidth.c: Likewise.
101641         * lib/uniwidth/u8-width.c: Likewise.
101642         * lib/uniwidth/width.c: Likewise.
101644 2007-10-07  Bruno Haible  <bruno@clisp.org>
101646         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
101647         The file is still under LGPL (see modules/inttypes).
101649 2007-10-06  Bruno Haible  <bruno@clisp.org>
101651         * modules/trunc (Dependencies): Add 'extensions'.
101652         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
101653         Reported by Ben Pfaff <blp@gnu.org>.
101655 2007-10-06  Bruno Haible  <bruno@clisp.org>
101657         * modules/freopen-tests: New file.
101658         * tests/test-freopen.c: New file.
101660         * modules/fopen-tests: New file.
101661         * tests/test-fopen.c: New file.
101663         * modules/fopen: New file.
101664         * lib/fopen.c: New file.
101665         * m4/fopen.m4: New file.
101666         * modules/freopen: New file.
101667         * lib/freopen.c: New file.
101668         * m4/freopen.m4: New file.
101669         * lib/stdio.in.h (fopen, freopen): New declarations.
101670         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
101671         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101672         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
101673         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
101674         * doc/functions/fopen.texi: Mention the 'fopen' module.
101675         * doc/functions/freopen.texi: Mention the 'freopen' module.
101677 2007-10-06  Bruno Haible  <bruno@clisp.org>
101679         * modules/open-tests: New file.
101680         * tests/test-open.c: New file.
101682         * modules/open: New file.
101683         * lib/open.c: New file.
101684         * m4/open.m4: New file.
101685         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
101686         lib/open.c does.
101687         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
101688         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
101689         macros.
101690         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
101691         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
101692         REPLACE_OPEN.
101693         * doc/functions/open.texi: Mention the 'open' module.
101695 2007-10-04  Bruno Haible  <bruno@clisp.org>
101697         * modules/ceill-tests: New file.
101698         * tests/test-ceill.c: New file.
101700         * modules/ceill: New file.
101701         * lib/ceill.c: Replace entire file.
101702         * m4/ceill.m4: New file.
101703         * lib/math.in.h (ceill): Replace declaration.
101704         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
101705         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
101706         * doc/functions/ceill.texi: Mention the 'ceill' module.
101707         * modules/mathl (Files): Remove lib/ceill.c.
101708         (Depends-on): Add ceill.
101710 2007-10-04  Bruno Haible  <bruno@clisp.org>
101712         * modules/ceilf-tests: New file.
101713         * tests/test-ceilf.c: New file.
101715         * modules/ceilf: New file.
101716         * lib/ceil.c: New file.
101717         * lib/ceilf.c: New file.
101718         * m4/ceilf.m4: New file.
101719         * lib/math.in.h (ceilf): New declaration.
101720         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
101721         HAVE_DECL_CEILF.
101722         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
101723         HAVE_DECL_CEILF.
101724         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
101726 2007-10-04  Bruno Haible  <bruno@clisp.org>
101728         * modules/floorl-tests: New file.
101729         * tests/test-floorl.c: New file.
101731         * modules/floorl: New file.
101732         * lib/floorl.c: Replace entire file.
101733         * m4/floorl.m4: New file.
101734         * lib/math.in.h (floorl): Replace declaration.
101735         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
101736         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
101737         * doc/functions/floorl.texi: Mention the 'floorl' module.
101738         * modules/mathl (Files): Remove lib/floorl.c.
101739         (Depends-on): Add floorl.
101741 2007-10-04  Bruno Haible  <bruno@clisp.org>
101743         * modules/floorf-tests: New file.
101744         * tests/test-floorf.c: New file.
101746         * modules/floorf: New file.
101747         * lib/floor.c: New file.
101748         * lib/floorf.c: New file.
101749         * m4/floorf.m4: New file.
101750         * lib/math.in.h (floorf): New declaration.
101751         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
101752         HAVE_DECL_FLOORF.
101753         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
101754         HAVE_DECL_FLOORF.
101755         * doc/functions/floorf.texi: Mention the 'floorf' module.
101757 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
101758             Bruno Haible  <bruno@clisp.org>
101760         Advertise for the Git server instead of the CVS server.
101761         * doc/gnulib-intro.texi (Steady Development): Mention the Git
101762         repository instead of the CVS one.
101763         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
101764         about all VCS systems generically.
101765         * doc/gnulib.texi (Introduction): Capitalize `Git'.
101767 2007-10-04  Bruno Haible  <bruno@clisp.org>
101769         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
101770         means.
101771         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
101773 2007-10-04  Bruno Haible  <bruno@clisp.org>
101775         * modules/truncl-tests: New file.
101776         * tests/test-truncl.c: New file.
101778         * modules/truncl: New file.
101779         * lib/truncl.c: New file.
101780         * m4/truncl.m4: New file.
101781         * lib/math.in.h (truncl): New declaration.
101782         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
101783         HAVE_DECL_TRUNCL.
101784         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
101785         HAVE_DECL_TRUNCL.
101786         * doc/functions/truncl.texi: Mention the 'truncl' module.
101788 2007-10-04  Bruno Haible  <bruno@clisp.org>
101790         * modules/truncf-tests: New file.
101791         * tests/test-truncf.c: New file.
101793         * modules/truncf: New file.
101794         * lib/trunc.c: Make paramerizable through USE_* macros.
101795         * lib/truncf.c: New file.
101796         * m4/truncf.m4: New file.
101797         * lib/math.in.h (truncf): New declaration.
101798         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
101799         HAVE_DECL_TRUNCF.
101800         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
101801         HAVE_DECL_TRUNCF.
101802         * doc/functions/truncf.texi: Mention the 'truncf' module.
101804 2007-10-03  Bruno Haible  <bruno@clisp.org>
101806         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
101807         augmentation also for tests modules.
101808         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
101809         * modules/atexit-tests (Makefile.am): Likewise.
101810         * modules/binary-io-tests (Makefile.am): Likewise.
101811         * modules/c-strcase-tests (Makefile.am): Likewise.
101812         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
101813         * modules/canonicalize-tests (Makefile.am): Likewise.
101814         * modules/closein-tests (Makefile.am): Likewise.
101815         * modules/fprintf-posix-tests (Makefile.am): Likewise.
101816         * modules/freadahead-tests (Makefile.am): Likewise.
101817         * modules/fseek-tests (Makefile.am): Likewise.
101818         * modules/fseeko-tests (Makefile.am): Likewise.
101819         * modules/ftell-tests (Makefile.am): Likewise.
101820         * modules/ftello-tests (Makefile.am): Likewise.
101821         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
101822         * modules/isnanl-tests (Makefile.am): Likewise.
101823         * modules/lseek-tests (Makefile.am): Likewise.
101824         * modules/mbscasecmp-tests (Makefile.am): Likewise.
101825         * modules/mbscasestr-tests (Makefile.am): Likewise.
101826         * modules/mbschr-tests (Makefile.am): Likewise.
101827         * modules/mbscspn-tests (Makefile.am): Likewise.
101828         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
101829         * modules/mbspbrk-tests (Makefile.am): Likewise.
101830         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
101831         * modules/mbsrchr-tests (Makefile.am): Likewise.
101832         * modules/mbsspn-tests (Makefile.am): Likewise.
101833         * modules/mbsstr-tests (Makefile.am): Likewise.
101834         * modules/printf-posix-tests (Makefile.am): Likewise.
101835         * modules/snprintf-posix-tests (Makefile.am): Likewise.
101836         * modules/sprintf-posix-tests (Makefile.am): Likewise.
101837         * modules/tsearch-tests (Makefile.am): Likewise.
101838         * modules/uniname/uniname-tests (Makefile.am): Likewise.
101839         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
101840         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
101841         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
101842         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
101843         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
101844         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
101845         * modules/vprintf-posix-tests (Makefile.am): Likewise.
101846         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
101847         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
101848         * modules/xstrtoimax-tests (Makefile.am): Likewise.
101849         * modules/xstrtol-tests (Makefile.am): Likewise.
101850         * modules/xstrtoumax-tests (Makefile.am): Likewise.
101851         * modules/yesno-tests (Makefile.am): Likewise.
101853 2007-10-03  Bruno Haible  <bruno@clisp.org>
101855         * modules/trunc-tests: New file.
101856         * tests/test-trunc.c: New file.
101858         * modules/trunc: New file.
101859         * lib/trunc.c: New file.
101860         * m4/trunc.m4: New file.
101861         * lib/math.in.h (trunc): New declaration.
101862         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
101863         HAVE_DECL_TRUNC.
101864         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
101865         HAVE_DECL_TRUNC.
101866         * doc/functions/trunc.texi: Mention the 'trunc' module.
101868 2007-10-03  Bruno Haible  <bruno@clisp.org>
101870         * tests/test-fpending.c: New file, mostly copied
101871         from coreutils/lib/t-fpending.c.
101872         * modules/fpending-tests: New file.
101874 2007-10-03  Bruno Haible  <bruno@clisp.org>
101876         Port the stdio extensions to QNX (untested).
101877         * lib/fseterr.c (fseterr): Add support for QNX.
101878         * lib/fbufmode.c (fbufmode): Likewise.
101879         * lib/freadable.c (freadable): Likewise.
101880         * lib/fwritable.c (fwritable): Likewise.
101881         * lib/freading.c (freading): Likewise.
101882         * lib/fwriting.c (fwriting): Likewise.
101883         * lib/freadahead.c (freadahed): Likewise.
101884         * lib/fpurge.c (fpurge): Likewise.
101885         * lib/fseeko.c (rpl_fseeko): Likewise.
101887 2007-10-03  Bruno Haible  <bruno@clisp.org>
101888             Jim Meyering  <jim@meyering.net>
101889             Eric Blake  <ebb9@byu.net>
101891         * doc/relocatable.texi: Use @command instead of @program.
101893 2007-10-02  Jim Meyering  <jim@meyering.net>
101895         Perform one more "_.h" -> ".in.h" substitution.
101896         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
101897         instead of unistd_.h here, too.
101899 2007-10-01  Bruno Haible  <bruno@clisp.org>
101901         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
101902         Needed for the alloca-opt module.
101904 2007-09-30  Bruno Haible  <bruno@clisp.org>
101906         * lib/alloca.in.h: Renamed from lib/alloca_.h.
101907         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
101908         alloca_.h.
101909         * lib/argz.in.h: Renamed from lib/argz_.h.
101910         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
101911         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
101912         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
101913         byteswap_.h.
101914         * lib/dirent.in.h: Renamed from lib/dirent_.h.
101915         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
101916         dirent_.h.
101917         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
101918         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
101919         fcntl_.h.
101920         * lib/float.in.h: Renamed from lib/float_.h.
101921         * modules/float (Files, Makefile.am): Use float.in.h instead of
101922         float_.h.
101923         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
101924         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
101925         fnmatch_.h.
101926         * lib/getopt.in.h: Renamed from lib/getopt_.h.
101927         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
101928         getopt_.h.
101929         * lib/glob.in.h: Renamed from lib/glob_.h.
101930         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
101931         * lib/iconv.in.h: Renamed from lib/iconv_.h.
101932         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
101933         iconv_.h.
101934         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
101935         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
101936         inttypes_.h.
101937         * lib/locale.in.h: Renamed from lib/locale_.h.
101938         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
101939         locale_.h.
101940         * lib/math.in.h: Renamed from lib/math_.h.
101941         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
101942         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
101943         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
101944         of netinet_in_.h. Add dependency.
101945         * lib/poll.in.h: Renamed from lib/poll_.h.
101946         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
101947         * lib/search.in.h: Renamed from lib/search_.h.
101948         * modules/search (Files, Makefile.am): Use search.in.h instead of
101949         search_.h.
101950         * lib/signal.in.h: Renamed from lib/signal_.h.
101951         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
101952         _signal.h.
101953         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
101954         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
101955         stdbool_.h.
101956         * lib/stdint.in.h: Renamed from lib/stdint_.h.
101957         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
101958         stdint_.h.
101959         * lib/stdio.in.h: Renamed from lib/stdio_.h.
101960         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
101961         stdio_.h.
101962         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
101963         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
101964         stdlib_.h.
101965         * lib/string.in.h: Renamed from lib/string_.h.
101966         * modules/string (Files, Makefile.am): Use string.in.h instead of
101967         string_.h.
101968         * doc/gnulib-tool.texi (Initial import): Update.
101969         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
101970         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
101971         of sys_select_.h. Add dependency.
101972         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
101973         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
101974         of sys_socket_.h.
101975         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
101976         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
101977         sys_stat_.h.
101978         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
101979         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
101980         sys_time_.h.
101981         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
101982         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
101983         sysexits_.h.
101984         * lib/time.in.h: Renamed from lib/time_.h.
101985         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
101986         * lib/unistd.in.h: Renamed from lib/unistd_.h.
101987         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
101988         unistd_.h.
101989         * lib/wchar.in.h: Renamed from lib/wchar_.h.
101990         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
101991         wchar_.h.
101992         * lib/wctype.in.h: Renamed from lib/wctype_.h.
101993         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
101994         wctype_.h.
101995         * build-aux/bootstrap (slurp): Update.
101996         * lib/.cppi-disable: Update.
101998 2007-09-30  Bruno Haible  <bruno@clisp.org>
102000         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
102001         Needed on BeOS.
102003 2007-09-30  Bruno Haible  <bruno@clisp.org>
102005         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
102007 2007-09-29  Bruno Haible  <bruno@clisp.org>
102009         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
102011 2007-09-29  Bruno Haible  <bruno@clisp.org>
102013         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
102014         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
102015         * build-aux/install-reloc: Compile also areadlink.c.
102016         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
102018 2007-09-29  Bruno Haible  <bruno@clisp.org>
102020         * gnulib-tool (func_emit_initmacro_done): Indentation.
102022 2007-09-29  Bruno Haible  <bruno@clisp.org>
102024         * README: Add CVS checkout update instructions.
102025         Info from Bob Proulx <bob@proulx.com>.
102027 2007-09-28  Eric Blake  <ebb9@byu.net>
102029         Provide move-if-change.
102030         * build-aux/move-if-change: New file, based on best practice
102031         rather than any canonical upstream location.
102033 2007-09-28  Jim Meyering  <jim@meyering.net>
102035         Fix canonicalize loop-detection corner case.
102036         Do not attempt to stat the symlink values stored via seen_triple.
102037         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
102038         on linux-2.6.18, (but not 2.6.22).
102039         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
102040         triple_compare.  The former compares dev,ino,filename, while the latter
102041         would actually stat dirname(filename) when dev and ino were equal.
102042         * lib/hash-triple.c: Install <string.h>.
102043         (STREQ): Define.
102044         (triple_compare_ino_str): New function.
102045         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
102047 2007-09-28  Eric Blake  <ebb9@byu.net>
102049         Enforce that AC_REPLACE_FUNCS files exist.
102050         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
102051         override check for typos.
102053         Fix test-closein on Solaris 10.
102054         * tests/test-closein.c (main): Don't assume stdin can be inherited
102055         closed on all systems.
102056         * tests/test-closein.sh: Likewise.
102057         Reported by Piotr Tarnowski.
102059 2007-09-28  Jim Meyering  <jim@meyering.net>
102061         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
102063 2007-09-27  Jim Meyering  <jim@meyering.net>
102065         canonicalize: Avoid a false-positive cycle failure.
102066         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
102067         Sort.  Remove cycle-check.
102068         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
102069         not cycle-check.h.
102070         (seen_triple): New function.
102071         (canonicalize_filename_mode): Use it instead of cycle-check.
102072         * tests/test-canonicalize.c: Add a test for this bug.
102073         * tests/test-canonicalize.sh: Set up and run the test.
102075         New module, file-set, from coreutils.
102076         * modules/file-set: Define it.
102077         * lib/file-set.c, lib/file-set.h: Implement.
102079         New module, hash-triple, from coreutils.
102080         * modules/hash-triple: Define it.
102081         * lib/hash-triple.c, lib/hash-triple.h: Implement.
102083 2007-09-25  Eric Blake  <ebb9@byu.net>
102085         Fix strerror on Interix.
102086         * lib/string_.h (strerror): Declare replacement.
102087         * doc/functions/strerror.texi (strerror): Document the Interix
102088         shortcoming.
102089         * modules/string (Makefile.am): Support new hooks.
102090         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
102091         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
102092         gl_FUNC_STRERROR_SEPARATE.
102093         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
102094         * lib/strerror.c (rpl_strerror): Provide replacement.
102095         * modules/strerror (Depends-on): Add string.
102096         (configure.ac): Detect use of module.
102097         * tests/test-strerror.c: New file.
102098         * modules/strerror-tests: New test module.
102099         * modules/argp (Depends-on): Add strerror.
102100         * modules/error (Depends-on): Likewise.
102101         Reported by Martin Koeppe.
102103 2007-09-24  Bruno Haible  <bruno@clisp.org>
102105         * README: Update git instructions.
102107 2007-09-24  Eric Blake  <ebb9@byu.net>
102109         Revert fpending breakage from 2007-09-08.
102110         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
102111         __fpending.c.
102113 2007-09-24  Jim Meyering  <jim@meyering.net>
102115         filenamecat.c: Add a test.
102116         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
102117         showing how the function works when DIR is the empty string.
102119 2007-09-21  Simon Josefsson  <simon@josefsson.org>
102121         * tests/test-canonicalize.sh: Turn on executable bit.
102123 2007-09-19  Eric Blake  <ebb9@byu.net>
102125         * README: Update CVS instructions.
102127 2007-09-18  Bruno Haible  <bruno@clisp.org>
102129         * modules/areadlink: New file.
102130         * lib/areadlink.h (areadlink): New declaration.
102131         * lib/areadlink.c: New file, based on lib/xreadlink.c.
102133 2007-09-17  Jim Meyering  <jim@meyering.net>
102135         * lib/savewd.c (ESTALE) [!defined]: Define.
102136         Reported to be required on Interix by Martin Koeppe.
102138 2007-09-17  Bruno Haible  <bruno@clisp.org>
102140         * gnulib-tool (func_version): Use $version.
102142 2007-09-16  Bruno Haible  <bruno@clisp.org>
102144         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
102145         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
102146         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
102147         Reported by Greg Schafer <gschafer@zip.com.au>.
102149 2007-09-15  Bruno Haible  <bruno@clisp.org>
102151         * gnulib-tool (sed): Try a little harder to make bash understand the
102152         alias.
102153         Reported by Bruce Korb <bruce.korb@gmail.com>.
102155 2007-09-13  Eric Blake  <ebb9@byu.net>
102157         * ChangeLog: Remove conflict markers.
102159 2007-09-13  Simon Josefsson  <simon@josefsson.org>
102161         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
102162         Reported by Bruno Haible <bruno@clisp.org>.
102164 2007-09-12  Bruno Haible  <bruno@clisp.org>
102166         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
102167         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
102168         is not defined.
102170 2007-09-12  Eric Blake  <ebb9@byu.net>
102172         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
102173         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
102174         Autoconf definition.
102175         * modules/euidaccess (Depends-on): Add extensions, for
102176         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
102177         * modules/fnmatch (Depends-on): Likewise.
102178         * modules/getaddrinfo (Depends-on): Likewise.
102179         * modules/getdelim (Depends-on): Likewise.
102180         * modules/getline (Depends-on): Likewise.
102181         * modules/getsubopt (Depends-on): Likewise.
102182         * modules/gettext (Depends-on): Likewise.
102183         * modules/group-member (Depends-on): Likewise.
102184         * modules/mbchar (Depends-on): Likewise.
102185         * modules/memmem (Depends-on): Likewise.
102186         * modules/mempcpy (Depends-on): Likewise.
102187         * modules/memrchr (Depends-on): Likewise.
102188         * modules/pagealign_alloc (Depends-on): Likewise.
102189         * modules/readutmp (Depends-on): Likewise.
102190         * modules/stpcpy (Depends-on): Likewise.
102191         * modules/stpncpy (Depends-on): Likewise.
102192         * modules/strchrnul (Depends-on): Likewise.
102193         * modules/strndup (Depends-on): Likewise.
102194         * modules/strsep (Depends-on): Likewise.
102195         * modules/strverscmp (Depends-on): Likewise.
102196         * modules/vasprintf (Depends-on): Likewise.
102197         * modules/wcwidth (Depends-on): Likewise.
102198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
102199         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
102200         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
102201         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
102202         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
102203         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102204         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
102205         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
102206         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
102207         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
102208         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
102209         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
102210         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
102211         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
102212         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
102213         * m4/readutmp.m4 (gl_READUTMP): Likewise.
102214         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
102215         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
102216         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
102217         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
102218         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
102219         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
102220         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
102221         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
102222         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
102223         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
102224         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
102225         so that lock.m4 can be used in gettext without extensions module.
102227 2007-09-11  Bruno Haible  <bruno@clisp.org>
102229         * m4/isc-posix.m4: Remove file.
102230         Suggested by Eric Blake.
102232 2007-09-11  Eric Blake  <ebb9@byu.net>
102234         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
102236 2007-09-10  Bruno Haible  <bruno@clisp.org>
102238         * posix-modules: Fix typo in error message.
102239         Reported by Matt <mkraai@beckman.com>.
102241 2007-09-09  Bruno Haible  <bruno@clisp.org>
102243         * doc/functions/getdelim.texi: Update list of platforms lacking the
102244         function.
102245         * doc/functions/getline.texi: Likewise.
102247 2007-09-09  Jim Meyering  <jim@meyering.net>
102249         * lib/hash.c (hash_initialize): Detect calloc failure.
102250         Reported by Bruno Haible.
102252 2007-09-09  Bruno Haible  <bruno@clisp.org>
102254         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
102255         malloc or realloc fails.
102257 2007-09-09  Bruno Haible  <bruno@clisp.org>
102259         * modules/getcwd (Depends-on): Add malloc-posix.
102260         * modules/glob (Depends-on): Likewise.
102261         * modules/putenv (Depends-on): Likewise.
102262         * modules/strdup (Depends-on): Likewise.
102263         * modules/getdelim (Depends-on): Add realloc-posix.
102264         * modules/read-file (Depends-on): Likewise.
102266 2007-09-09  Bruno Haible  <bruno@clisp.org>
102268         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
102269         (gl_FUNC_MALLOC_POSIX): Require it.
102270         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
102271         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
102272         * modules/realloc (Files): Add m4/malloc.m4.
102273         * modules/calloc (Files): Likewise.
102275 2007-09-09  Bruno Haible  <bruno@clisp.org>
102277         * modules/malloc-posix: New file.
102278         * modules/malloc (Depends-on): Add malloc-posix.
102279         * lib/malloc.c: Include errno.h.
102280         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
102281         and a POSIX-compatible malloc into a single function. Set ENOMEM
102282         when returning NULL.
102283         * m4/malloc.m4: New file.
102284         * doc/functions/malloc.texi: Mention the malloc-posix module.
102285         * lib/stdlib_.h (malloc): New declaration.
102286         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102287         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
102288         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
102289         and HAVE_MALLOC_POSIX.
102291 2007-09-09  Bruno Haible  <bruno@clisp.org>
102293         * modules/realloc-posix: New file.
102294         * modules/realloc (Depends-on): Add realloc-posix.
102295         * lib/realloc.c: Include errno.h.
102296         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
102297         and a POSIX-compatible realloc into a single function. Set ENOMEM
102298         when returning NULL.
102299         * m4/realloc.m4: New file.
102300         * doc/functions/realloc.texi: Mention the realloc-posix module.
102301         * lib/stdlib_.h (realloc): New declaration.
102302         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102303         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
102304         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
102305         and HAVE_REALLOC_POSIX.
102307 2007-09-09  Bruno Haible  <bruno@clisp.org>
102309         * modules/calloc-posix: New file.
102310         * modules/calloc (Depends-on): Add calloc-posix.
102311         * lib/calloc.c: Include errno.h.
102312         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
102313         and a POSIX-compatible calloc into a single function. Set ENOMEM
102314         when returning NULL.
102315         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
102316         * doc/functions/calloc.texi: Mention the calloc-posix module.
102317         * lib/stdlib_.h (calloc): New declaration.
102318         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
102319         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
102320         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
102321         and HAVE_CALLOC_POSIX.
102323 2007-09-09  Bruno Haible  <bruno@clisp.org>
102325         Allow for modules to show an arbitrary notice.
102326         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
102327         * gnulib-tool: New option --extract-notice.
102328         (func_usage): Document it.
102329         (sed_extract_prog): Update.
102330         (func_get_notice): New function.
102331         (func_modules_notice): New function.
102332         (func_import, func_create_testdir): Invoke it.
102333         Suggested by Jim Meyering.
102335 2007-09-09  Bruno Haible  <bruno@clisp.org>
102337         * gnulib-tool: New options --verbose, --quiet.
102338         (func_usage): Document them.
102339         (verbose): New variable.
102340         (func_execute_command): New function.
102341         (func_import): Don't show the module list and the file list if
102342         $verbose < 0.
102343         (func_create_testdir): Likewise. Use func_execute_command.
102344         (func_create_megatestdir): Use func_execute_command.
102346 2007-09-08  Bruno Haible  <bruno@clisp.org>
102348         * gnulib-tool (func_import): Prefer rsync over wget when available,
102349         for fetching the PO files.
102351 2007-09-08  Bruno Haible  <bruno@clisp.org>
102353         * posix-modules: New file. Portions copied from gnulib-tool.
102354         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
102356 2007-09-08  Jim Meyering  <jim@meyering.net>
102358         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
102359         * lib/fpending.h: Rename from __fpending.h.
102360         * lib/fpending.c: Rename from __fpending.c.
102361         Include "fpending.h", not "__fpending.h".
102362         * lib/__fpending.h, lib/__fpending.c: Remove files.
102363         * modules/fpending (Files): Reflect new file names.
102364         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
102366 2007-09-08  Bruno Haible  <bruno@clisp.org>
102368         * m4/inttypes-h.m4: Remove stub file.
102370 2007-09-07  Simon Josefsson  <simon@josefsson.org>
102372         * doc/headers/stdint.texi: Discuss #include_next issue.
102374 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
102376         * build-aux/bootstrap: Remove obsolete comment about wget --help.
102378 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102380         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
102381         in variable name.
102383 2007-09-03  Jim Meyering  <jim@meyering.net>
102385         New module: git-version-gen.
102386         * modules/git-version-gen: New file.
102388         Import changes from coreutils for bootstrap script.
102390         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
102392         bootstrap: uses rsync to download the .po files
102393         * build-aux/bootstrap (po_download_command_format): New global.
102394         (download_po_files): Use rsync.
102395         (update_po_files): Don't remove .po files after download,
102396         so future rsync runs can take advantage of the copies.
102398         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
102400         Solve the unnecessary-.po-file-regeneration problem once and for all.
102401         * build-aux/bootstrap (download_po_files): New function, renamed from
102402         get_translations.  Now, downloads, but doesn't update LINGUAS.
102403         (update_po_files): New function.
102405         bootstrap: Ignore more.
102406         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
102407         uniwidth to e.g., lib/.gitignore.
102408         (slurp): Handle the sys_stat_.h -> sys mapping, too.
102410         * build-aux/bootstrap: New setting: vc_ignore.
102411         (insert_sorted_if_absent): Create $file if absent.
102412         Adapt to new, possibly empty, list: $vc_ignore.
102414         bootstrap: generate more ignorable names
102415         * build-aux/bootstrap (slurp): When generating ignorable names,
102416         also map .sin to .sed, .gperf to .c, and .y to .c.
102418 2007-09-03  Jim Meyering  <jim@meyering.net>
102420         * build-aux/git-version-gen: New file, from coreutils.  For details, see
102421         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
102423 2007-09-02  Bruno Haible  <bruno@clisp.org>
102425         Fix mis-recognition of 'mcs' on QNX 6.
102426         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
102427         output contains the string "Mono".
102428         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
102429         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
102431 2007-09-01  Bruno Haible  <bruno@clisp.org>
102433         Fix collision between uniwidth/* and linebreak modules.
102434         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
102435         u32_width): Remove declarations.
102436         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
102437         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
102438         streq3, streq2, streq1, streq0): Remove functions.
102439         (STREQ): Remove macro.
102440         (is_cjk_encoding): Remove function.
102441         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
102442         (uc_width, u8_width, u16_width, u32_width): Remove functions.
102443         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
102444         * NEWS: Document the change.
102446 2007-09-01  Bruno Haible  <bruno@clisp.org>
102448         * lib/streq.h: Add double-inclusion guard.
102450 2007-09-01  Karl Berry  <karl@gnu.org>
102452         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
102454 2007-08-28  Jim Meyering  <jim@meyering.net>
102456         Rename mreadlink_with_size to areadlink_with_size.
102457         * NEWS: Document the change.
102458         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
102459         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
102460         * lib/mreadlink.h: Rename this to...
102461         * lib/areadlink.h: ...this.
102462         * modules/mreadlink-with-size: Rename this to...
102463         * modules/areadlink-with-size: ...this.
102464         * lib/canonicalize.c: Reflect the renaming.
102465         * modules/canonicalize: Likewise.
102467 2007-08-26  Bruno Haible  <bruno@clisp.org>
102469         * gnulib-tool (func_import): When deciding which files to remove,
102470         consider also dangling symbolic links.
102471         Reported by Eric Blake.
102473 2007-08-26  Bruno Haible  <bruno@clisp.org>
102475         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
102477 2007-08-23  Simon Josefsson  <simon@josefsson.org>
102479         * lib/readline.c: Don't include getline.h, the prototype is now
102480         found in stdio.h.
102482 2007-08-23  Jim Meyering  <jim@meyering.net>
102484         Getdelim touchup.
102485         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
102486         around the funlockfile call, since funlockfile never sets errno.
102487         Don't set errno upon failed realloc.
102489 2007-08-22  Eric Blake  <ebb9@byu.net>
102491         Getline touchups.
102492         * lib/getdelim.c (getdelim): Revert regression that required *n to
102493         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
102494         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
102495         getdelim, rather than whether implementation is missing.
102496         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
102497         * lib/stdio_.h (getline): Also declare if replacement is
102498         required.
102499         * doc/functions/getdelim.texi: New file.
102500         * doc/functions/getline.texi: Likewise.
102501         * doc/gnulib.texi (Function Substitutes): Add new files.
102502         Reported by Bruno Haible.
102504 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
102506         * users.txt: Add Guile.
102508 2007-08-22  Eric Blake  <ebb9@byu.net>
102510         * tests/test-getdelim.c (main): Use remove, not unlink.
102511         * tests/test-getline.c (main): Likewise.
102513         Move getline and getdelim into stdio.h, per POSIX 200x.
102514         * modules/getline (Files): Remove getline.h.
102515         (Depends-on): Add stdio.
102516         (configure.ac): Add module indicator.
102517         * modules/getdelim (Files): Remove getdelim.h.
102518         (Depends-on): Add stdio.
102519         (configure.ac): Add module indicator.
102520         * modules/stdio (Makefile.am): Work with new indicators.
102521         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
102522         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
102523         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
102524         * lib/getdelim.h: Delete.
102525         * lib/getline.h: Delete.
102526         * lib/stdio_.h (getdelim, getline): Declare.
102527         * modules/getdelim-tests: New module.
102528         * modules/getline-tests: Likewise.
102529         * tests/test-getdelim.c: New file.
102530         * tests/test-getline.c: Likewise.
102531         * NEWS: Document the change.
102532         * lib/getline.c: Update choice of header.
102533         * lib/csharpcomp.c: Likewise.
102534         * lib/getpass.c: Likewise.
102535         * lib/javacomp.c: Likewise.
102536         * lib/javaversion.c: Likewise.
102537         * lib/yesno.c: Likewise.
102538         * lib/getdelim.c: Likewise.
102539         (getdelim): Set errno on failure, and avoid memory leak.
102541 2007-08-19  Bruno Haible  <bruno@clisp.org>
102543         * modules/closein (Depends-on): Add freadahead.
102544         * lib/closein.c: Include freadahead.h.
102545         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
102546         is zero.
102548 2007-08-19  Bruno Haible  <bruno@clisp.org>
102550         * modules/freadahead-tests: New file.
102551         * tests/test-freadahead.sh: New file.
102552         * tests/test-freadahead.c: New file.
102554         * modules/freadahead: New file.
102555         * lib/freadahead.h: New file.
102556         * lib/freadahead.c: New file.
102557         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
102558         fbufmode, fpurge, freadable, fwritable.
102560 2007-08-19  Eric Blake  <ebb9@byu.net>
102562         Test yesno in combination with closein.
102563         * lib/yesno.c (yesno): Document use of stdin.
102564         * modules/yesno-tests (Files): New module.
102565         * tests/test-yesno.c (main): New file.
102566         * tests/test-yesno.sh: Likewise.
102568 2007-08-19  Bruno Haible  <bruno@clisp.org>
102570         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
102571         * lib/fseeko.c (rpl_fseeko): Likewise.
102572         * lib/fseterr.c (fseterr): Likewise.
102574 2007-08-19  Bruno Haible  <bruno@clisp.org>
102576         * tests/test-lseek.c (main): Disable a test for BeOS.
102577         * doc/functions/lseek.texi: Document the BeOS bug.
102579 2007-08-19  Bruno Haible  <bruno@clisp.org>
102580             Eric Blake  <ebb9@byu.net>
102582         * lib/lseek.c: Include <sys/stat.h>.
102583         (rpl_lseek): Add workaround code also for Unix platforms.
102584         Needed for BeOS.
102585         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
102586         * doc/functions/lseek.texi: Document BeOS definiency.
102588 2007-08-18  Bruno Haible  <bruno@clisp.org>
102590         * modules/fstrcmp-tests: New file.
102591         * tests/test-fstrcmp.c: New file.
102593 2007-08-18  Bruno Haible  <bruno@clisp.org>
102595         * modules/fstrcmp: New file, from GNU gettext with modifications.
102596         * lib/fstrcmp.h: New file, from GNU gettext.
102597         * lib/fstrcmp.c: New file, from GNU gettext.
102598         * MODULES.html.sh (String handling): Add fstrcmp.
102600 2007-08-18  Bruno Haible  <bruno@clisp.org>
102602         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
102603         'bool'.
102604         (diag, compareseq): Remove const from the ctxt argument.
102605         (USE_HEURISTIC): Undefine at the end.
102607 2007-08-18  Jim Meyering  <jim@meyering.net>
102609         New file: lib/idcache.h
102610         * NEWS: Mention the addition.
102611         * modules/idcache (Files): Add lib/idcache.h
102612         * lib/idcache.c: Include "idcache.h".
102613         Don't include <sys/types.h>.
102614         Add a FIXME comment.
102615         Move file-scoped "static" declarations to the top.
102616         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
102618 2007-08-17  Bruno Haible  <bruno@clisp.org>
102619         and Paul Eggert  <eggert@cs.ucla.edu>
102621         * MODULES.html.sh: Add diffseq.
102622         * modules/diffseq: New file.
102623         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
102624         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
102626 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
102628         Import changes from coreutils for bootstrap script.
102630         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
102632         * build-aux/bootstrap (slurp): Work even in environments where
102633         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
102634         current code does not slurp files whose names start with ".", and
102635         this looks like it might be a troublesome area.
102637         2007-07-11  Jim Meyering  <jim@meyering.net>
102639         If there's a GPL vN copyright comment, require that N == 3.
102641         2007-07-08  Jim Meyering  <jim@meyering.net>
102643         Run the coreutils-specific code only if tests/Makefile.am.in exists.
102644         * build-aux/bootstrap (mam_template): Move definition out of loop.
102646         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
102648         * build-aux/bootstrap (symlink_to_dir): Rename function from
102649         symlink_to_gnulib.  Add a directory parameter.  Update all
102650         callers.
102651         (cp_mark_as_generated): Also check for -- and link to -- files in
102652         gl/.
102654         2007-07-08  Jim Meyering  <jim@meyering.net>
102656         Adapt to deeper hierarchy in gnulib.
102657         * build-aux/bootstrap (symlink_to_dir): If the destination
102658         directory doesn't exist, create it. This is required at least for
102659         "lib/uniwidth/cjk.h".
102661         2007-05-15  Jim Meyering  <jim@meyering.net>
102663         * build-aux/bootstrap: Now that generated Makefile.am files
102664         are no longer under version control, they must be created at
102665         bootstrap time.
102667 2007-08-14  Ben Pfaff  <blp@gnu.org>
102669         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
102671 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
102673         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
102674         given the changes below.
102675         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
102676         even on hosts that have padding bits beyond the supported 64.
102678 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
102680         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
102681         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
102682         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
102683         depends on it.
102684         (xstrtol_error): Remove.
102685         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
102686         but with a different signature.
102687         (ATTRIBUTE_NORETURN, __attribute__): New macros.
102688         * lib/xstrtol-error.c: Include exitfail.h.
102689         (xstrtol_fatal): New function, with a different signature from the
102690         old xstrtol_error, so that the caller need not worry about passing
102691         in an exit status, or about storage management of the option argument.
102692         (xstrtol_error): Now a static function.  Redo signature to
102693         implement xstrtol_fatal.  Output the correct number of hyphens in
102694         front of the option so that the caller need not worry about
102695         storage management.
102696         (N_): New macro.
102697         (_): Remove; not used now.
102698         * modules/xstrtol: Depend on getopt.
102699         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
102700         of old STRTOL_FATAL_ERROR macro.
102701         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
102702         of test program.
102703         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
102704         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
102706 2007-08-08  Eric Blake  <ebb9@byu.net>
102708         * lib/xstrtol-error.c: Add missing include.
102710         Move xstrtol messages into gnulib domain, when --pobase is used.
102711         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
102712         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
102713         * modules/xstrtol (Files): Distribute new file.
102714         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
102715         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
102716         * tests/test-xstrtol.c: ...into new file.
102717         * tests/test-xstrtoul.c: Also test xstrtoul.
102718         * tests/test-xstrtoimax.c: Also test xstrtoimax.
102719         * tests/test-xstrtoumax.c: Also test xstrtoumax.
102720         * tests/test-xstrtol.sh: Drive the tests.
102721         * tests/test-xstrtoimax.sh: Likewise.
102722         * tests/test-xstrtoumax.sh: Likewise.
102723         * modules/xstrtol-tests: New module.
102724         * modules/xstrtoimax-tests: Likewise.
102725         * modules/xstrtoumax-tests: Likewise.
102727 2007-08-08  Jim Meyering  <jim@meyering.net>
102729         New function: mfile_name_concat.
102730         * lib/filenamecat.c (mfile_name_concat): New function, just like
102731         file_name_concat, but return NULL upon failure rather than exiting
102732         with a diagnostic.
102733         * lib/filenamecat.h: Declare it.
102735 2007-08-07  Bruno Haible  <bruno@clisp.org>
102737         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
102738         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
102739         warning from gcc.
102740         Reported by Eric Blake.
102742 2007-08-07  Simon Josefsson  <simon@josefsson.org>
102744         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
102745         * modules/crypto/arcfour (License): Likewise.
102746         * modules/crypto/des-tests (License): Likewise.
102747         * modules/crypto/gc-arctwo-tests (License): Likewise.
102748         * modules/crypto/gc-des-tests (License): Likewise.
102749         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
102750         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
102751         * modules/crypto/gc-md2-tests (License): Likewise.
102752         * modules/crypto/gc-md4-tests (License): Likewise.
102753         * modules/crypto/gc-md5-tests (License): Likewise.
102754         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
102755         * modules/crypto/gc-rijndael-tests (License): Likewise.
102756         * modules/crypto/gc-sha1-tests (License): Likewise.
102757         * modules/crypto/gc-tests (License): Likewise.
102758         * modules/crypto/hmac-md5 (License): Likewise.
102759         * modules/crypto/hmac-sha1 (License): Likewise.
102760         * modules/crypto/md2-tests (License): Likewise.
102761         * modules/crypto/md4-tests (License): Likewise.
102762         * modules/crypto/md5 (License): Likewise.
102763         * modules/crypto/rijndael (License): Likewise.
102764         * modules/crypto/sha1 (License): Likewise.
102765         * modules/memxor (License): Likewise.
102767 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
102768         and Bruno Haible  <bruno@clisp.org>
102770         * NEWS: Describe interface changes to human, xstrtol.
102771         * lib/human.h: Include <xstrtol.h>.
102772         (human_options): Return enum strtol_error, not int.  Remove
102773         bool arg; take int * instead.
102774         * lib/human.c: Don't include "gettext.h".
102775         (_): Remove; no longer used.
102776         Don't include <xstrtol.h>, since human.h does it.
102777         (human_options): Adjust to abovementioned interface changes.
102778         Do not report error to stderr; that's now the caller's
102779         responsibility.
102780         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
102781         interface change.
102782         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
102783         Str, Argument_type_string.  All uses changed.  Put " argument"
102784         in diagnostics to make them clearer.  Change wording of suffix
102785         message for clarity.
102786         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
102787         Argument_type_string.
102788         (STRTOL_FATAL_WARN): Remove; no longer used.
102789         * modules/human (Depends-on): Remove gettext-h.
102791 2007-08-06  Simon Josefsson  <simon@josefsson.org>
102793         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
102795 2007-07-31  Bruno Haible  <bruno@clisp.org>
102797         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
102798         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
102799         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
102801 2007-07-31  Bruno Haible  <bruno@clisp.org>
102803         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
102804         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
102806 2007-07-30  Bruno Haible  <bruno@clisp.org>
102808         * modules/base64 (License): Use the synonymous term "LGPLv2+".
102809         * modules/c-ctype (License): Likewise.
102810         * modules/c-strcase (License): Likewise.
102811         * modules/check-version (License): Likewise.
102812         * modules/iconv (License): Likewise.
102813         * modules/iconv_open (License): Likewise.
102814         * modules/read-file (License): Likewise.
102815         * modules/striconv (License): Likewise.
102816         * modules/strverscmp (License): Likewise.
102817         * modules/vasprintf (License): Likewise.
102818         * modules/crypto/des (License): Likewise.
102819         * modules/crypto/gc (License): Likewise.
102820         * modules/crypto/gc-arcfour (License): Likewise.
102821         * modules/crypto/gc-arctwo (License): Likewise.
102822         * modules/crypto/gc-des (License): Likewise.
102823         * modules/crypto/gc-hmac-md5 (License): Likewise.
102824         * modules/crypto/gc-hmac-sha1 (License): Likewise.
102825         * modules/crypto/gc-md2 (License): Likewise.
102826         * modules/crypto/gc-md4 (License): Likewise.
102827         * modules/crypto/gc-md5 (License): Likewise.
102828         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
102829         * modules/crypto/gc-random (License): Likewise.
102830         * modules/crypto/gc-rijndael (License): Likewise.
102831         * modules/crypto/gc-sha1 (License): Likewise.
102832         * modules/crypto/md2 (License): Likewise.
102833         * modules/crypto/md4 (License): Likewise.
102835 2007-07-30  Jim Meyering  <jim@meyering.net>
102837         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
102838         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
102839         it has valid stat data.  This bug would cause du not to count the
102840         sizes of inaccessible directories.
102841         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
102842         in <http://bugzilla.redhat.com/250077>.
102844 2007-07-25  Peter O'Gorman  <peter@pogma.com>
102845             Bruno Haible  <bruno@clisp.org>
102847         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
102848         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
102849         #include_next, gives a diagnostic about it, but reports no error in
102850         the exit code.
102851         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
102853 2007-07-24  Ben Pfaff  <blp@gnu.org>
102855         Improve name: "count-one-bits" is better than "popcount".
102856         * MODULES.html.sh: Update name.
102857         * lib/popcount.h: Renamed lib/count-one-bits.h.
102858         (popcount): Renamed count_one_bits.
102859         (popcountl): Renamed count_one_bits_l.
102860         (popcountll): Renamed count_one_bits_ll.
102861         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
102862         * modules/popcount: Renamed module/count-one-bits.
102863         * modules/popcount-tests: Renamed module/count-one-bits-tests.
102864         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
102866 2007-07-23  Ben Pfaff  <blp@gnu.org>
102868         * lib/popcount.h (popcount32): Reduce size of constants, to allow
102869         better code generation, and add U to large constants to avoid
102870         warnings, in non-GCC case.
102871         Suggested by Bruno Haible.
102873 2007-07-23  Ben Pfaff  <blp@gnu.org>
102875         * lib/popcount.h: Use verify_true instead of if...abort.
102876         * modules/popcount: Depend on verify module.
102877         Suggested by Jim Meyering.
102879 2007-07-23  Bruno Haible  <bruno@clisp.org>
102881         * gnulib-tool (func_import): Create a .cvsignore file also when the
102882         directory is not yet in CVS but the toplevel directory is. When
102883         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
102884         Reported by Karl Berry.
102886 2007-07-22  Ben Pfaff  <blp@gnu.org>
102888         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
102889         case.
102890         Suggested by Eric Blake.
102892 2007-07-22  Ben Pfaff  <blp@gnu.org>
102894         New module: popcount.
102895         * MODULES.html.sh: Add popcount.
102896         * modules/popcount: New file.
102897         * modules/popcount-tests: New file.
102898         * tests/test-popcount.c: New file.
102899         * lib/popcount.h: New file.
102900         * m4/popcount.m4: New file.
102902 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
102904         * build-aux/announce-gen: Update to GPLv3.
102906         * build-aux/config.guess: Update from config.
102908 2007-07-21  Bruno Haible  <bruno@clisp.org>
102910         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
102911         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
102913 2007-07-20  Jim Meyering  <jim@meyering.net>
102915         * check-module: Diagnose a self-dependency.
102917 2007-07-19  Bruno Haible  <bruno@clisp.org>
102919         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
102920         empty.
102921         Reported by Eric Blake.
102923 2007-07-18  Bruno Haible  <bruno@clisp.org>
102925         * gnulib-tool: New options --po-base, --po-domain.
102926         (func_usage): Document them.
102927         (pobase, po_domain): New variables.
102928         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
102929         DEFAULT_TEXT_DOMAIN.
102930         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
102931         (func_import): Consider pobase and po_domain. Create a po/ directory.
102932         (func_create_testdir): Set pobase and po_domain to empty.
102933         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
102934         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
102936 2007-07-18  Bruno Haible  <bruno@clisp.org>
102938         * gnulib-tool (func_get_automake_snippet): Synthesize also an
102939         EXTRA_DIST augmentation for files in build-aux/.
102941 2007-07-16  Bruno Haible  <bruno@clisp.org>
102943         * modules/lseek (License): Use the synonymous term "LGPLv2+".
102944         * modules/getdelim (License): Likewise.
102946 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
102948         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
102949         * modules/d-type (License): Likewise.
102950         * modules/extensions (License): Likewise.
102951         * modules/fnmatch (License): Likewise.
102952         * modules/fseeko (License): Likewise.
102953         * modules/getaddrinfo (License): Likewise.
102954         * modules/getline (License): Likewise.
102955         * modules/getlogin_r (License): Likewise.
102956         * modules/getpass (License): Likewise.
102957         * modules/gettimeofday (License): Likewise.
102958         * modules/glob (License): Likewise.
102959         * modules/inet_ntop (License): Likewise.
102960         * modules/malloc (License): Likewise.
102961         * modules/malloca (License): Likewise.
102962         * modules/memmem (License): Likewise.
102963         * modules/mempcpy (License): Likewise.
102964         * modules/memset (License): Likewise.
102965         * modules/minmax (License): Likewise.
102966         * modules/mktime (License): Likewise.
102967         * modules/netinet_in (License): Likewise.
102968         * modules/pathmax (License): Likewise.
102969         * modules/poll (License): Likewise.
102970         * modules/regex (License): Likewise.
102971         * modules/snprintf (License): Likewise.
102972         * modules/stdbool (License): Likewise.
102973         * modules/stdint (License): Likewise.
102974         * modules/stdio (License): Likewise.
102975         * modules/strcase (License): Likewise.
102976         * modules/strcasestr (License): Likewise.
102977         * modules/strdup (License): Likewise.
102978         * modules/string (License): Likewise.
102979         * modules/strndup (License): Likewise.
102980         * modules/strnlen (License): Likewise.
102981         * modules/strpbrk (License): Likewise.
102982         * modules/strptime (License): Likewise.
102983         * modules/strsep (License): Likewise.
102984         * modules/sys_select (License): Likewise.
102985         * modules/sys_socket (License): Likewise.
102986         * modules/sys_stat (License): Likewise.
102987         * modules/sys_time (License): Likewise.
102988         * modules/time (License): Likewise.
102989         * modules/time_r (License): Likewise.
102990         * modules/timegm (License): Likewise.
102991         * modules/unistd (License): Likewise.
102992         * modules/vsnprintf (License): Likewise.
102993         * modules/wctype (License): Likewise.
102995 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
102997         * modules/argz (License): LGPLv2+.
102999 2007-07-15  Karl Berry  <karl@gnu.org>
103001         * doc/gnulib.texi: revise node structure per new fdl.texi.
103003 2007-07-14  Bruno Haible  <bruno@clisp.org>
103005         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
103006         the output file.
103007         * lib/uniname/uninames.h: Regenerated.
103009 2007-07-14  Karl Berry  <karl@gnu.org>
103011         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
103012         omitting sectioning and index commands.
103014 2007-07-13  Bruno Haible  <bruno@clisp.org>
103016         New gnulib-tool option --more-symlinks.
103017         * gnulib-tool (func_usage): Document --more-symlinks.
103018         (do_copyrights): New variable.
103019         Recognize option --more-symlinks.
103020         (func_import): Don't add a copyright notice transform to
103021         sed_transform_lib_file if do_copyrights is empty.
103023 2007-07-13  Bruno Haible  <bruno@clisp.org>
103025         * lib/vasnprintf.c (decimal_point_char): Define also if
103026         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
103027         && !NEED_PRINTF_DIRECTIVE_A.
103028         Reported by Clemens Koller <clemens.koller@anagramm.de> via
103029         Gary V. Vaughan <gary@gnu.org>.
103031 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
103033         * lib/inttypes_.h: Undo previous change, since it was fixed
103034         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
103036 2007-07-13  Bruno Haible  <bruno@clisp.org>
103038         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
103039         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
103041 2007-07-13  Jim Meyering  <jim@meyering.net>
103043         df: Don't fail for Tru64's "file-on-file mount".
103044         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
103045         so we fall through and use statfs instead.  Details here:
103046         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
103047         Reported by Albert Chin.
103049 2007-07-13  Bruno Haible  <bruno@clisp.org>
103051         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
103052         * modules/configmake (License): Likewise.
103053         * modules/gettext (License): Likewise.
103054         * modules/gettext-h (License): Likewise.
103055         * modules/include_next (License): Likewise.
103056         * modules/link-warning (License): Likewise.
103057         * modules/localcharset (License): Likewise.
103058         * modules/localename (License): Likewise.
103059         * modules/lock (License): Likewise.
103060         * modules/relocatable-lib-lgpl (License): Likewise.
103061         * modules/size_max (License): Likewise.
103062         * modules/vasnprintf (License): Likewise.
103063         * modules/wchar (License): Likewise.
103064         * modules/xsize (License): Likewise.
103066 2007-07-13  Bruno Haible  <bruno@clisp.org>
103068         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
103069         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
103071 2007-07-12  Bruno Haible  <bruno@clisp.org>
103073         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
103074         in the modules files.
103076 2007-07-11  Karl Berry  <karl@gnu.org>
103078         * MODULES.html.sh (func_module): use
103079          sed -e '\|^'"${includefile}"'$|d'
103080          instead of /.../d, to avoid errors on $includefile's containing /.
103082 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
103084         * gnulib-tool (func_import): Avoid duplication of --avoid
103085         statements
103086         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
103087         names to `_' in variable names.
103089 2007-07-10  Eric Blake  <ebb9@byu.net>
103091         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
103092         * NEWS: Document this change.
103094 2007-07-08  Bruno Haible  <bruno@clisp.org>
103096         Update to Unicode 5.0.
103097         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
103098         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
103099         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
103100         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
103101         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
103102         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
103103         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
103104         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
103105         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
103106         U+10A3F, U+1D242..U+1D244.
103107         (nonspacing_table_ind): Update.
103108         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
103109         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
103111 2007-07-08  Bruno Haible  <bruno@clisp.org>
103113         Update to Unicode 5.0.
103114         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
103115         code transform. Extend the name index field of unicode_name_to_code and
103116         unicode_code_to_name from 16 to 24 bits.
103117         * lib/uniname/uniname.c (unicode_character_name,
103118         unicode_name_character): Add the range 0x12xxx to the code transform.
103119         * lib/uniname/uninames.h: Regenerated.
103120         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
103122 2007-07-07  Bruno Haible  <bruno@clisp.org>
103124         * modules/wcwidth-tests: New file.
103125         * tests/test-wcwidth.c: New file.
103127         Work around MacOS X wcwidth() bug.
103128         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
103129         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
103130         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
103131         original wcwidth in non-UTF-8 locales.
103132         * modules/wcwidth (Depends-on): Add localcharset, streq,
103133         uniwidth/width.
103134         * doc/functions/wcwidth.texi: Update.
103136 2007-07-07  Bruno Haible  <bruno@clisp.org>
103138         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
103139         (wcwidth): New declaration.
103140         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
103141         macros.
103142         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
103143         here. Prepare for creating <wchar.h> unconditionally.
103144         * modules/wchar (Depends-on): Add link-warning.
103145         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
103146         REPLACE_WCWIDTH, and GL_LINK_WARNING.
103147         * lib/wcwidth.h: Remove file.
103148         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
103149         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
103150         * modules/wcwidth (Files): Remove lib/wcwidth.h.
103151         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
103152         (Include): Replace wcwidth.h with <wchar.h>.
103153         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
103154         * lib/mbchar.h: Don't include wcwidth.h.
103155         * lib/mbswidth.c: Likewise.
103156         * NEWS: Mention the change.
103158 2007-07-07  Bruno Haible  <bruno@clisp.org>
103160         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
103161         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
103162         definition with an external declaration.
103163         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
103164         defined as a function. Remove AC_C_INLINE requirement.
103165         * modules/wcwidth (Files): Add lib/wcwidth.c.
103166         (Makefile.am): Remove redundant statement.
103168 2007-07-07  Bruno Haible  <bruno@clisp.org>
103170         * MODULES.html.sh (Unicode string functions): Add the new modules.
103172         * tests/uniwidth/test-u32-strwidth.c: New file.
103173         * modules/uniwidth/u32-strwidth-tests: New file.
103175         * lib/uniwidth/u32-strwidth.c: New file.
103176         * modules/uniwidth/u32-strwidth: New file.
103178         * tests/uniwidth/test-u16-strwidth.c: New file.
103179         * modules/uniwidth/u16-strwidth-tests: New file.
103181         * lib/uniwidth/u16-strwidth.c: New file.
103182         * modules/uniwidth/u16-strwidth: New file.
103184         * tests/uniwidth/test-u8-strwidth.c: New file.
103185         * modules/uniwidth/u8-strwidth-tests: New file.
103187         * lib/uniwidth/u8-strwidth.c: New file.
103188         * modules/uniwidth/u8-strwidth: New file.
103190         * tests/uniwidth/test-u32-width.c: New file.
103191         * modules/uniwidth/u32-width-tests: New file.
103193         * lib/uniwidth/u32-width.c: New file.
103194         * modules/uniwidth/u32-width: New file.
103196         * tests/uniwidth/test-u16-width.c: New file.
103197         * modules/uniwidth/u16-width-tests: New file.
103199         * lib/uniwidth/u16-width.c: New file.
103200         * modules/uniwidth/u16-width: New file.
103202         * tests/uniwidth/test-u8-width.c: New file.
103203         * modules/uniwidth/u8-width-tests: New file.
103205         * lib/uniwidth/u8-width.c: New file.
103206         * modules/uniwidth/u8-width: New file.
103208         * tests/uniwidth/test-uc_width.c: New file.
103209         * modules/uniwidth/width-tests: New file.
103211         * lib/uniwidth/width.c: New file, from GNU libiconv.
103212         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
103213         * modules/uniwidth/width: New file.
103215         * lib/uniwidth.h: New file, from GNU libiconv.
103216         * modules/uniwidth/base: New file.
103218 2007-07-07  Bruno Haible  <bruno@clisp.org>
103220         * lib/uniname.h: New file, from GNU gettext.
103221         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
103222         * lib/uniname/uninames.h: New file, from GNU gettext.
103223         * lib/uniname/uniname.c: New file, from GNU gettext.
103224         * tests/uniname/test-uninames.sh: New file.
103225         * tests/uniname/test-uninames.c: New file, from GNU gettext.
103226         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
103227         * modules/uniname/base: New file.
103228         * modules/uniname/uniname: New file.
103229         * modules/uniname/uniname-tests: New file.
103230         * MODULES.html.sh (Unicode string functions): Add the new modules.
103232 2007-07-06  Bruno Haible  <bruno@clisp.org>
103234         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
103236 2007-07-06  Bruno Haible  <bruno@clisp.org>
103238         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
103239         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
103240         includes <cygwin/sys_time.h> which includes <sys/select.h> which
103241         include <sys/time.h>.
103242         Reported by Eric Blake.
103244 2007-07-06  Eric Blake  <ebb9@byu.net>
103246         Fix testing canonicalize on cygwin.
103247         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103248         Revert patch from 2007-06-19.
103249         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
103250         canonicalize module is also in use.
103251         * tests/test-canonicalize.c: New file.
103252         * tests/test-canonicalize.sh: Likewise.
103253         * modules/canonicalize-tests: Likewise.
103255 2007-07-06  Jim Meyering  <jim@meyering.net>
103257         * lib/getugroups.c (getugroups): Detect getgrent failure.
103258         Adjust comment to reflect reality: this function may return -1.
103260 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
103262         * build-aux/bootstrap (TP_URL,get_translations): Update to use
103263         the new TP address.
103264         (usage): Fix typo
103265         (gnulib_mk): New variable.
103267 2007-07-05  Jim Meyering  <jim@meyering.net>
103269         Don't let endgrent clobber errno, no matter how improbable.
103270         * lib/getugroups.c (getugroups): Save and restore errno around
103271         endgrent call.
103273         Close the group DB even when failing with 2^31 or more members.
103274         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
103276 2007-07-04  Jim Meyering  <jim@meyering.net>
103278         * lib/getugroups.h: New file.
103279         * lib/getugroups.c: Include "getugroups.h".
103280         Remove uses of "register" keyword.
103281         Move local variable, "cp", down into scope where used.
103282         Give "username" parameter the "const" attribute.
103283         * modules/getugroups (Files): Add lib/getugroups.h
103285 2007-07-04  Karl Berry  <karl@gnu.org>
103287         * MODULES.html.sh (func_all_modules): Complete rename of
103288         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
103290 2007-07-02  Bruno Haible  <bruno@clisp.org>
103292         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
103293         mode, when inttypes.h comes from gnulib.
103294         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
103296 2007-07-02  Simon Josefsson  <simon@josefsson.org>
103298         * NEWS: Mention lgpl module name change.
103300         * modules/lgpl-2.1: Renamed from lgpl.
103302         * NEWS: Mention gpl module name change.
103304         * modules/gpl-3.0: New file, based on gpl-2.0.
103306         * modules/gpl-2.0: Renamed from gpl.
103308         * modules/gpl: Fix filename, doc/gpl.texi is now found at
103309         doc/gpl-2.0.texi.
103311 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
103313         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
103314         #define __STDC_LIMIT_MACROS temporarily while including
103315         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
103316         Problem reported by Joel E. Denny in
103317         <http://lists.gnu.org/r/bug-gnulib/2007-07/msg00008.html>.
103319 2007-07-01  Bruno Haible  <bruno@clisp.org>
103321         * lib/unistdio.h: New file.
103322         * lib/unistdio/u-asnprintf.h: New file.
103323         * lib/unistdio/u-asprintf.h: New file.
103324         * lib/unistdio/u-printf-args.c: New file.
103325         * lib/unistdio/u-printf-args.h: New file.
103326         * lib/unistdio/u-printf-parse.h: New file.
103327         * lib/unistdio/u-snprintf.h: New file.
103328         * lib/unistdio/u-sprintf.h: New file.
103329         * lib/unistdio/u-vasprintf.h: New file.
103330         * lib/unistdio/u-vsnprintf.h: New file.
103331         * lib/unistdio/u-vsprintf.h: New file.
103332         * lib/unistdio/ulc-asnprintf.c: New file.
103333         * lib/unistdio/ulc-asprintf.c: New file.
103334         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
103335         * lib/unistdio/ulc-printf-parse.c: New file.
103336         * lib/unistdio/ulc-snprintf.c: New file.
103337         * lib/unistdio/ulc-sprintf.c: New file.
103338         * lib/unistdio/ulc-vasnprintf.c: New file.
103339         * lib/unistdio/ulc-vasprintf.c: New file.
103340         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
103341         * lib/unistdio/ulc-vsnprintf.c: New file.
103342         * lib/unistdio/ulc-vsprintf.c: New file.
103343         * lib/unistdio/u8-asnprintf.c: New file.
103344         * lib/unistdio/u8-asprintf.c: New file.
103345         * lib/unistdio/u8-printf-parse.c: New file.
103346         * lib/unistdio/u8-snprintf.c: New file.
103347         * lib/unistdio/u8-sprintf.c: New file.
103348         * lib/unistdio/u8-vasnprintf.c: New file.
103349         * lib/unistdio/u8-vasprintf.c: New file.
103350         * lib/unistdio/u8-vsnprintf.c: New file.
103351         * lib/unistdio/u8-vsprintf.c: New file.
103352         * lib/unistdio/u8-u8-asnprintf.c: New file.
103353         * lib/unistdio/u8-u8-asprintf.c: New file.
103354         * lib/unistdio/u8-u8-snprintf.c: New file.
103355         * lib/unistdio/u8-u8-sprintf.c: New file.
103356         * lib/unistdio/u8-u8-vasnprintf.c: New file.
103357         * lib/unistdio/u8-u8-vasprintf.c: New file.
103358         * lib/unistdio/u8-u8-vsnprintf.c: New file.
103359         * lib/unistdio/u8-u8-vsprintf.c: New file.
103360         * lib/unistdio/u16-asnprintf.c: New file.
103361         * lib/unistdio/u16-asprintf.c: New file.
103362         * lib/unistdio/u16-printf-parse.c: New file.
103363         * lib/unistdio/u16-snprintf.c: New file.
103364         * lib/unistdio/u16-sprintf.c: New file.
103365         * lib/unistdio/u16-vasnprintf.c: New file.
103366         * lib/unistdio/u16-vasprintf.c: New file.
103367         * lib/unistdio/u16-vsnprintf.c: New file.
103368         * lib/unistdio/u16-vsprintf.c: New file.
103369         * lib/unistdio/u16-u16-asnprintf.c: New file.
103370         * lib/unistdio/u16-u16-asprintf.c: New file.
103371         * lib/unistdio/u16-u16-snprintf.c: New file.
103372         * lib/unistdio/u16-u16-sprintf.c: New file.
103373         * lib/unistdio/u16-u16-vasnprintf.c: New file.
103374         * lib/unistdio/u16-u16-vasprintf.c: New file.
103375         * lib/unistdio/u16-u16-vsnprintf.c: New file.
103376         * lib/unistdio/u16-u16-vsprintf.c: New file.
103377         * lib/unistdio/u32-asnprintf.c: New file.
103378         * lib/unistdio/u32-asprintf.c: New file.
103379         * lib/unistdio/u32-printf-parse.c: New file.
103380         * lib/unistdio/u32-snprintf.c: New file.
103381         * lib/unistdio/u32-sprintf.c: New file.
103382         * lib/unistdio/u32-vasnprintf.c: New file.
103383         * lib/unistdio/u32-vasprintf.c: New file.
103384         * lib/unistdio/u32-vsnprintf.c: New file.
103385         * lib/unistdio/u32-vsprintf.c: New file.
103386         * lib/unistdio/u32-u32-asnprintf.c: New file.
103387         * lib/unistdio/u32-u32-asprintf.c: New file.
103388         * lib/unistdio/u32-u32-snprintf.c: New file.
103389         * lib/unistdio/u32-u32-sprintf.c: New file.
103390         * lib/unistdio/u32-u32-vasnprintf.c: New file.
103391         * lib/unistdio/u32-u32-vasprintf.c: New file.
103392         * lib/unistdio/u32-u32-vsnprintf.c: New file.
103393         * lib/unistdio/u32-u32-vsprintf.c: New file.
103394         * tests/unistdio/test-ulc-asnprintf1.c: New file.
103395         * tests/unistdio/test-ulc-asnprintf1.h: New file.
103396         * tests/unistdio/test-ulc-printf1.h: New file.
103397         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
103398         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
103399         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
103400         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
103401         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
103402         * tests/unistdio/test-ulc-vasprintf1.c: New file.
103403         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
103404         * tests/unistdio/test-ulc-vsprintf1.c: New file.
103405         * tests/unistdio/test-u8-asnprintf1.c: New file.
103406         * tests/unistdio/test-u8-asnprintf1.h: New file.
103407         * tests/unistdio/test-u8-printf1.h: New file.
103408         * tests/unistdio/test-u8-vasnprintf1.c: New file.
103409         * tests/unistdio/test-u8-vasnprintf2.c: New file.
103410         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
103411         * tests/unistdio/test-u8-vasnprintf3.c: New file.
103412         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
103413         * tests/unistdio/test-u8-vasprintf1.c: New file.
103414         * tests/unistdio/test-u8-vsnprintf1.c: New file.
103415         * tests/unistdio/test-u8-vsprintf1.c: New file.
103416         * tests/unistdio/test-u16-asnprintf1.c: New file.
103417         * tests/unistdio/test-u16-asnprintf1.h: New file.
103418         * tests/unistdio/test-u16-printf1.h: New file.
103419         * tests/unistdio/test-u16-vasnprintf1.c: New file.
103420         * tests/unistdio/test-u16-vasnprintf2.c: New file.
103421         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
103422         * tests/unistdio/test-u16-vasnprintf3.c: New file.
103423         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
103424         * tests/unistdio/test-u16-vasprintf1.c: New file.
103425         * tests/unistdio/test-u16-vsnprintf1.c: New file.
103426         * tests/unistdio/test-u16-vsprintf1.c: New file.
103427         * tests/unistdio/test-u32-asnprintf1.c: New file.
103428         * tests/unistdio/test-u32-asnprintf1.h: New file.
103429         * tests/unistdio/test-u32-printf1.h: New file.
103430         * tests/unistdio/test-u32-vasnprintf1.c: New file.
103431         * tests/unistdio/test-u32-vasnprintf2.c: New file.
103432         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
103433         * tests/unistdio/test-u32-vasnprintf3.c: New file.
103434         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
103435         * tests/unistdio/test-u32-vasprintf1.c: New file.
103436         * tests/unistdio/test-u32-vsnprintf1.c: New file.
103437         * tests/unistdio/test-u32-vsprintf1.c: New file.
103438         * modules/unistdio/base: New file.
103439         * modules/unistdio/u-printf-args: New file.
103440         * modules/unistdio/ulc-asnprintf: New file.
103441         * modules/unistdio/ulc-asprintf: New file.
103442         * modules/unistdio/ulc-fprintf: New file.
103443         * modules/unistdio/ulc-printf-parse: New file.
103444         * modules/unistdio/ulc-snprintf: New file.
103445         * modules/unistdio/ulc-sprintf: New file.
103446         * modules/unistdio/ulc-vasnprintf: New file.
103447         * modules/unistdio/ulc-vasprintf: New file.
103448         * modules/unistdio/ulc-vfprintf: New file.
103449         * modules/unistdio/ulc-vsnprintf: New file.
103450         * modules/unistdio/ulc-vsprintf: New file.
103451         * modules/unistdio/u8-asnprintf: New file.
103452         * modules/unistdio/u8-asprintf: New file.
103453         * modules/unistdio/u8-printf-parse: New file.
103454         * modules/unistdio/u8-snprintf: New file.
103455         * modules/unistdio/u8-sprintf: New file.
103456         * modules/unistdio/u8-vasnprintf: New file.
103457         * modules/unistdio/u8-vasprintf: New file.
103458         * modules/unistdio/u8-vsnprintf: New file.
103459         * modules/unistdio/u8-vsprintf: New file.
103460         * modules/unistdio/u8-u8-asnprintf: New file.
103461         * modules/unistdio/u8-u8-asprintf: New file.
103462         * modules/unistdio/u8-u8-snprintf: New file.
103463         * modules/unistdio/u8-u8-sprintf: New file.
103464         * modules/unistdio/u8-u8-vasnprintf: New file.
103465         * modules/unistdio/u8-u8-vasprintf: New file.
103466         * modules/unistdio/u8-u8-vsnprintf: New file.
103467         * modules/unistdio/u8-u8-vsprintf: New file.
103468         * modules/unistdio/u16-asnprintf: New file.
103469         * modules/unistdio/u16-asprintf: New file.
103470         * modules/unistdio/u16-printf-parse: New file.
103471         * modules/unistdio/u16-snprintf: New file.
103472         * modules/unistdio/u16-sprintf: New file.
103473         * modules/unistdio/u16-vasnprintf: New file.
103474         * modules/unistdio/u16-vasprintf: New file.
103475         * modules/unistdio/u16-vsnprintf: New file.
103476         * modules/unistdio/u16-vsprintf: New file.
103477         * modules/unistdio/u16-u16-asnprintf: New file.
103478         * modules/unistdio/u16-u16-asprintf: New file.
103479         * modules/unistdio/u16-u16-snprintf: New file.
103480         * modules/unistdio/u16-u16-sprintf: New file.
103481         * modules/unistdio/u16-u16-vasnprintf: New file.
103482         * modules/unistdio/u16-u16-vasprintf: New file.
103483         * modules/unistdio/u16-u16-vsnprintf: New file.
103484         * modules/unistdio/u16-u16-vsprintf: New file.
103485         * modules/unistdio/u32-asnprintf: New file.
103486         * modules/unistdio/u32-asprintf: New file.
103487         * modules/unistdio/u32-printf-parse: New file.
103488         * modules/unistdio/u32-snprintf: New file.
103489         * modules/unistdio/u32-sprintf: New file.
103490         * modules/unistdio/u32-vasnprintf: New file.
103491         * modules/unistdio/u32-vasprintf: New file.
103492         * modules/unistdio/u32-vsnprintf: New file.
103493         * modules/unistdio/u32-vsprintf: New file.
103494         * modules/unistdio/u32-u32-asnprintf: New file.
103495         * modules/unistdio/u32-u32-asprintf: New file.
103496         * modules/unistdio/u32-u32-snprintf: New file.
103497         * modules/unistdio/u32-u32-sprintf: New file.
103498         * modules/unistdio/u32-u32-vasnprintf: New file.
103499         * modules/unistdio/u32-u32-vasprintf: New file.
103500         * modules/unistdio/u32-u32-vsnprintf: New file.
103501         * modules/unistdio/u32-u32-vsprintf: New file.
103502         * modules/unistdio/ulc-asnprintf-tests: New file.
103503         * modules/unistdio/ulc-vasnprintf-tests: New file.
103504         * modules/unistdio/ulc-vasprintf-tests: New file.
103505         * modules/unistdio/ulc-vsnprintf-tests: New file.
103506         * modules/unistdio/ulc-vsprintf-tests: New file.
103507         * modules/unistdio/u8-asnprintf-tests: New file.
103508         * modules/unistdio/u8-vasnprintf-tests: New file.
103509         * modules/unistdio/u8-vasprintf-tests: New file.
103510         * modules/unistdio/u8-vsnprintf-tests: New file.
103511         * modules/unistdio/u8-vsprintf-tests: New file.
103512         * modules/unistdio/u16-asnprintf-tests: New file.
103513         * modules/unistdio/u16-vasnprintf-tests: New file.
103514         * modules/unistdio/u16-vasprintf-tests: New file.
103515         * modules/unistdio/u16-vsnprintf-tests: New file.
103516         * modules/unistdio/u16-vsprintf-tests: New file.
103517         * modules/unistdio/u32-asnprintf-tests: New file.
103518         * modules/unistdio/u32-vasnprintf-tests: New file.
103519         * modules/unistdio/u32-vasprintf-tests: New file.
103520         * modules/unistdio/u32-vsnprintf-tests: New file.
103521         * modules/unistdio/u32-vsprintf-tests: New file.
103522         * MODULES.html.sh (Unicode string functions): Add the new modules.
103524 2007-07-01  Bruno Haible  <bruno@clisp.org>
103526         * lib/sprintf.c (sprintf): Limit the available length estimation,
103527         to avoid address wraparound.
103528         * lib/vsprintf.c (vsprintf): Likewise.
103529         * modules/sprintf-posix (Dependencies): Add stdint.
103530         * modules/vsprintf-posix (Dependencies): Likewise.
103532 2007-07-01  Bruno Haible  <bruno@clisp.org>
103534         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
103535         Windows PATH as well. Conservative double-quoting. Comments.
103537 2007-07-01  Bruno Haible  <bruno@clisp.org>
103538             Eric Blake  <ebb9@byu.net>
103539             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103541         * gnulib-tool (self_abspathname): Fix algorithm to cope with
103542         empty components in $PATH, denoting '.'.
103544 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103546         * gnulib-tool: Fix indentation.
103547         (func_create_megatestdir): Likewise.
103548         Report by Bruno Haible.
103550 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103552         Sync from Automake.
103553         * build-aux/gnupload: Fix shell portability issues with for loops.
103554         Report by Karl Berry.
103556 2007-06-29  Simon Josefsson  <simon@josefsson.org>
103558         * build-aux/maint.mk (POURL): Use translationproject.org.
103560 2007-06-27  Simon Josefsson  <simon@josefsson.org>
103561             Bruno Haible  <bruno@clisp.org>
103563         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
103564         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
103565         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
103566         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
103567         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
103569 2007-06-27  Bruno Haible  <bruno@clisp.org>
103571         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
103572         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
103574 2007-06-26  Karl Berry  <karl@gnu.org>
103576         * MODULES.html.sh: remove xreadlink-with-size.
103578 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103580         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
103581         method that I hope also handles the double-include problem noted
103582         by Bruno Haible in
103583         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00186.html>.
103585 2007-06-23  Bruno Haible  <bruno@clisp.org>
103587         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
103588         Don't let the 'mostlyclean' target fail if the last subdirectory could
103589         not be removed.
103590         Reported by Karl Berry.
103592 2007-06-23  Bruno Haible  <bruno@clisp.org>
103594         * gnulib-tool (echo): Add a speedier workaround for ksh.
103595         * tests/test-echo.sh: Likewise.
103597 2007-06-23  Bruno Haible  <bruno@clisp.org>
103599         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
103600         * tests/test-echo.sh: Likewise.
103602 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103604         * gnulib-tool (IFS): Initialize early, so we don't set it to
103605         empty later.
103606         (self_abspathname): Rewrite algorithm to set it, reindent.
103607         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
103608         (func_create_megatestdir): Merge some sed scripts.
103610 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
103612         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
103613         exposed by Sun Studio 11 cc on Solaris 8.
103615 2007-06-22  Bruno Haible  <bruno@clisp.org>
103617         * gnulib-tool (echo): Ensure the echo primitive does not interpret
103618         backslashes.
103619         * tests/test-echo.sh: New file.
103621 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
103623         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
103624         simplify `sed_replace_build_aux' scripts, they are portable but
103625         echoing them with `echo' is not.
103626         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
103628 2007-06-21  Karl Berry  <karl@gnu.org>
103630         * config/srclist.txt: guess we can't handle the licenses via
103631         srclist at the moment.
103633 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
103635         * MODULES.html.sh: Add include_next.
103636         * modules/include_next: New file.
103638 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
103640         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
103641         INCLUDE_NEXT.
103642         (gl_CHECK_NEXT_HEADERS): New macro.
103643         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
103644         the obsolescent gl_ABSOLUTE_HEADER.
103645         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
103646         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
103647         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
103648         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
103649         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
103650         * m4/math_h.m4 (gl_MATH_H): Likewise.
103651         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
103652         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
103653         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
103654         * m4/stdint.m4 (gl_STDINT_H): Likewise.
103655         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
103656         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
103657         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
103658         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
103659         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
103660         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
103661         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
103662         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
103663         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
103664         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
103665         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
103666         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
103667         * m4/inttypes.m4 (gl_INTTYPES_H): Define
103668         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
103669         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
103670         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
103671         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
103672         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
103673         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
103674         * lib/float_.h: Likewise.
103675         * lib/inttypes_.h: Likewise.
103676         * lib/math_.h: Likewise.
103677         * lib/search_.h: Likewise.
103678         * lib/signal_.h: Likewise.
103679         * lib/stdint_.h: Likewise.
103680         * lib/stdio_.h: Likewise.
103681         * lib/stdlib_.h: Likewise.
103682         * lib/string_.h: Likewise.
103683         * lib/sys_stat_.h: Likewise.
103684         * lib/sys_time_.h: Likewise.
103685         * lib/time_.h: Likewise.
103686         * lib/unistd_.h: Likewise.
103687         * lib/wchar_.h: Likewise.
103688         * lib/wctype_.h: Likewise.
103689         * lib/dirent_.h: Likewise.
103690         * lib/iconv_.h: Likewise.
103691         * lib/locale_.h: Likewise.
103692         * lib/netinet_in_.h: Likewise.
103693         * lib/sys_select_.h: Likewise.
103694         * lib/sys_socket_.h: Likewise.
103695         * lib/sysexits_.h: Likewise.
103696         * modules/fcntl (Depends-on): Depend on include_next, not
103697         absolute_header.
103698         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
103699         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
103700         * modules/fchdir: Likewise.
103701         * modules/float: Likewise.
103702         * modules/iconv_open: Likewise.
103703         * modules/inttypes: Likewise.
103704         * modules/locale: Likewise.
103705         * modules/math: Likewise.
103706         * modules/netinet_in: Likewise.
103707         * modules/search: Likewise.
103708         * modules/signal: Likewise.
103709         * modules/stdint: Likewise.
103710         * modules/stdio: Likewise.
103711         * modules/stdlib: Likewise.
103712         * modules/string: Likewise.
103713         * modules/sys_select: Likewise.
103714         * modules/sys_socket: Likewise.
103715         * modules/sys_stat: Likewise.
103716         * modules/sys_time: Likewise.
103717         * modules/sysexits: Likewise.
103718         * modules/time: Likewise.
103719         * modules/unistd: Likewise.
103720         * modules/wchar: Likewise.
103721         * modules/wctype: Likewise.
103722         * modules/sys_stat: Change maintainer to "all".
103723         * modules/unistd: Likewise.
103725 2007-06-20  Karl Berry  <karl@gnu.org>
103727         * config/srclist.txt: track www changes in license files.
103729 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
103731         * build-aux/bootstrap: Remove stray dot.
103732         Make sure build_aux settings are honored when linking
103733         gnulib_extra_files.
103735 2007-06-19  Eric Blake  <ebb9@byu.net>
103737         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
103738         Allow compilation on cygwin.
103740 2007-06-19  Jim Meyering  <jim@meyering.net>
103742         xreadlink-with-size: Remove module.  No longer used.
103743         Ex-callers now use xreadlink or mreadlink-with-size.
103744         * modules/xreadlink-with-size: Remove module.
103745         * lib/xreadlink-with-size.c: Remove file.
103746         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
103747         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
103748         just before the function definition *is* accurate.
103750         Eliminate one way canonicalize_filename_mode could exit.
103751         * lib/canonicalize.c (canonicalize_filename_mode):
103752         Use mreadlink_with_size, not xreadlink_with_size.
103754 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
103756         Detect porting problems to FreeBSD/arm, which has time_t wider than
103757         long int.  Original problem reported for GNU diff by Xin Li in
103758         <http://lists.gnu.org/r/bug-gnu-utils/2007-06/msg00091.html>.
103759         * modules/getdate (Depends-on): Add intprops, verify.
103760         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
103761         is an integer type no wider than long int.
103763 2007-06-18  Jim Meyering  <jim@meyering.net>
103765         New module: mreadlink-with-size.
103766         * MODULES.html.sh: Add mreadlink-with-size.
103767         * modules/mreadlink-with-size: New module
103768         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
103769         not xreadlink-with-size.
103770         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
103772 2007-06-16  Bruno Haible  <bruno@clisp.org>
103774         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
103775         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
103776         Reported by Gary V. Vaughan <gary@gnu.org>.
103778 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
103780         Revamp lchown so that it lives in unistd.h where it belongs.
103781         * lib/lchown.h: Remove.
103782         * lib/dirchownmod.c: Don't include lib/lchown.h.
103783         * lib/fchownat.c: Likewise.
103784         * lib/openat.c: Likewise.
103785         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
103786         does not follow symlinks.
103787         (EOPNOTSUPP): Define if not defined.
103788         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
103789         is defined to 0.
103790         (lchown): New decl.
103791         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
103792         Do not check for lchown decl.
103793         Set REPLACE_LCHOWN.
103794         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
103795         REPLACE_LCHOWN.
103796         * modules/chown: Make it clear it follows symlinks.
103797         * modules/lchown: Make it clear it doesn't follow symlinks.
103798         (Files): Remove lib/lchown.h
103799         (Depends-on): Add unistd.
103800         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
103801         (Include): Include <unistd.h>, not "lchown.h".
103802         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
103803         REPLACE_LCHOWN.
103805 2007-06-15  Jim Meyering  <jim@meyering.net>
103807         Change license (GPL to LGPL) of fsusage and dependents.
103808         * modules/fsusage (License): Change to LGPL.
103809         * modules/full-read (License): Likewise.
103810         * modules/full-write (License): Likewise.
103811         * modules/safe-read (License): Likewise.
103812         * modules/safe-write (License): Likewise.
103814 2007-06-14  Ben Pfaff  <blp@gnu.org>
103816         Missing part of allocsa -> malloca transition.
103817         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
103818         gl_MALLOCA.
103820 2007-06-12  Bruno Haible  <bruno@clisp.org>
103822         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
103823         to ia64, x86_64, i386.
103824         Reported by Eric Blake.
103826 2007-06-12  Bruno Haible  <bruno@clisp.org>
103828         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
103829         cross-compiling to x86_64.
103831 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
103833         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
103834         glitch reported by Ralf Wildenhues in
103835         <http://lists.gnu.org/r/bug-gnulib/2007-06/msg00114.html>.
103837         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
103838         Vin Shelton.
103840 2007-06-11  Bruno Haible  <bruno@clisp.org>
103842         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
103843         replacement string.
103844         Reported by Eric Blake.
103846 2007-06-10  Bruno Haible  <bruno@clisp.org>
103848         Prepare vasnprintf code for use with Unicode strings.
103849         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
103850         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
103851         TYPE_U32_STRING.
103852         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
103853         a_u32_string variants.
103854         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103855         * lib/printf-args.c: Don't include config.h and the specification
103856         header if PRINTF_FETCHARGS is already defined.
103857         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
103858         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
103859         TYPE_U16_STRING, TYPE_U32_STRING.
103860         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
103861         u16_directive, u16_directives, u32_directive, u32_directives): New
103862         types.
103863         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
103864         New declarations.
103865         * lib/printf-parse.c: Don't include config.h and the specification
103866         header if PRINTF_PARSE is already defined. Eliminate the set of
103867         parameters for WIDE_CHAR_VERSION; the user of this file must provide
103868         them now. Include c-ctype.h.
103869         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
103870         directive and CHAR_T_ONLY_ASCII.
103871         * lib/vasnprintf.c: Don't include config.h and the specification header
103872         if VASNPRINTF is already defined.
103873         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
103874         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
103875         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
103876         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
103877         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
103878         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
103879         code accordingly.
103880         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
103881         pad_ourselves also in this case, with the 'c' and 's' directives, and
103882         with a different notion of "width".
103883         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
103885 2007-06-10  Bruno Haible  <bruno@clisp.org>
103887         * modules/unistr/u32-mbsnlen: New file.
103888         * lib/unistr/u32-mbsnlen.c: New file.
103890         * modules/unistr/u16-mbsnlen: New file.
103891         * lib/unistr/u16-mbsnlen.c: New file.
103893         * modules/unistr/u8-mbsnlen: New file.
103894         * lib/unistr/u8-mbsnlen.c: New file.
103896         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
103897         declarations.
103899 2007-06-10  Bruno Haible  <bruno@clisp.org>
103901         * lib/string_.h (mbsnlen): New declaration.
103902         * lib/mbsnlen.c: New file.
103903         * m4/mbsnlen.m4: New file.
103904         * modules/mbsnlen: New file.
103905         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
103906         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
103907         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
103909 2007-06-10  Bruno Haible  <bruno@clisp.org>
103911         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
103913 2007-06-10  Bruno Haible  <bruno@clisp.org>
103915         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
103916         * lib/mbuiter.h: Likewise.
103918 2007-06-10  Bruno Haible  <bruno@clisp.org>
103920         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
103921         declaration.
103923 2007-06-10  Karl Berry  <karl@gnu.org>
103925         * config/srclist.txt: remove gettext entries, Bruno prefers
103926         to update individually.
103928 2007-06-10  Bruno Haible  <bruno@clisp.org>
103930         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
103931         'maxlen'. Ensure only length + width bytes are allocated, not
103932         length + 1 + width.
103934 2007-06-09  Bruno Haible  <bruno@clisp.org>
103936         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
103937         (CHAR_T): Remove macro.
103938         (VASNPRINTF): Update.
103940 2007-06-09  Bruno Haible  <bruno@clisp.org>
103942         * MODULES.html.sh (Unicode string functions): Add the new modules.
103944         * modules/uniconv/u32-conv-to-enc: New file.
103945         * lib/uniconv/u32-conv-to-enc.c: New file.
103946         * modules/uniconv/u32-conv-to-enc-tests: New file.
103947         * tests/uniconv/test-u32-conv-to-enc.c: New file.
103949         * modules/uniconv/u16-conv-to-enc: New file.
103950         * lib/uniconv/u16-conv-to-enc.c: New file.
103951         * lib/uniconv/u-conv-to-enc.h: New file.
103952         * modules/uniconv/u16-conv-to-enc-tests: New file.
103953         * tests/uniconv/test-u16-conv-to-enc.c: New file.
103955         * modules/uniconv/u8-conv-to-enc: New file.
103956         * lib/uniconv/u8-conv-to-enc.c: New file.
103957         * modules/uniconv/u8-conv-to-enc-tests: New file.
103958         * tests/uniconv/test-u8-conv-to-enc.c: New file.
103960         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
103961         u32_conv_to_encoding): New declarations.
103963 2007-06-09  Bruno Haible  <bruno@clisp.org>
103965         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
103967 2007-06-09  Bruno Haible  <bruno@clisp.org>
103969         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
103970         * modules/malloca: Renamed from modules/allocsa, updated.
103971         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
103972         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
103973         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
103974         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
103975         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
103976         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
103977         * modules/xmalloca: Renamed from modules/xallocsa, updated.
103978         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
103979         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
103980         * modules/c-strcasestr (Depends-on): Update.
103981         * lib/c-strcasestr.c: Update.
103982         * modules/c-strstr (Depends-on): Update.
103983         * lib/c-strstr.c: Update.
103984         * modules/canonicalize-lgpl (Depends-on): Update.
103985         * lib/canonicalize-lgpl.c: Update.
103986         * modules/clean-temp (Depends-on): Update.
103987         * lib/clean-temp.c: Update.
103988         * modules/csharpcomp (Depends-on): Update.
103989         * lib/csharpcomp.c: Update.
103990         * modules/csharpexec (Depends-on): Update.
103991         * lib/csharpexec.c: Update.
103992         * modules/javacomp (Depends-on): Update.
103993         * lib/javacomp.c: Update.
103994         * modules/javaexec (Depends-on): Update.
103995         * lib/javaexec.c: Update.
103996         * modules/mbscasestr (Depends-on): Update.
103997         * lib/mbscasestr.c: Update.
103998         * modules/mbsstr (Depends-on): Update.
103999         * lib/mbsstr.c: Update.
104000         * modules/setenv (Depends-on): Update.
104001         * lib/setenv.c: Update.
104002         * modules/strcasestr (Depends-on): Update.
104003         * lib/strcasestr.c: Update.
104004         * modules/striconveha (Depends-on): Update.
104005         * lib/striconveha.c: Update.
104006         * modules/relocatable-prog-wrapper (Files): Update.
104007         * lib/relocwrapper.c: Update.
104008         * build-aux/install-reloc: Update.
104009         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
104011 2007-06-08  Bruno Haible  <bruno@clisp.org>
104013         Port to uClibc.
104014         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
104015         * lib/fpurge.c (fpurge): Likewise.
104016         * lib/freading.c (freading): Likewise.
104017         * lib/fseeko.c (rpl_fseeko): Likewise.
104018         * lib/fseterr.c (fseterr): Likewise.
104019         * lib/fwriting.c (fwriting): Likewise.
104020         * tests/test-fflush.c (main): Avoid a failure on uClibc.
104022 2007-06-08  Bruno Haible  <bruno@clisp.org>
104024         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
104025         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
104026         * modules/gettext (Files): Add m4/intlmacosx.m4.
104028 2007-06-07  Bruno Haible  <bruno@clisp.org>
104030         * modules/localename-tests: New file.
104031         * tests/test-localename.c: New file.
104033         New module 'localename'.
104034         * lib/localename.h: New file.
104035         * lib/localename.c: New file, from GNU gettext.
104036         * m4/localename.m4: New file.
104037         * modules/localename: New file.
104039 2007-06-07  Bruno Haible  <bruno@clisp.org>
104041         Work around the lack of <wchar.h> on some builds of uClibc.
104042         * doc/headers/wchar.texi: Update.
104043         * lib/wchar_.h: Include <wchar.h> only if it exists.
104044         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
104045         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
104046         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
104047         doesn't exist.
104048         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
104049         * modules/mbfile (Depends-on): Add wchar.
104050         * modules/mbiter (Depends-on): Likewise.
104051         * modules/mbuiter (Depends-on): Likewise.
104052         Reported by Simon Josefsson.
104054 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
104056         Work around problem reported by Steven M. Schweda in
104057         <http://lists.gnu.org/r/bug-tar/2007-06/msg00002.html>:
104058         Tru64 5.1B with the Compaq compiler environment installed declares
104059         an 'isblank' function but does not define it in the C library.
104060         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
104061         * lib/regex_internal.h (isblank): Likewise.
104062         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
104063         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
104065 2007-06-05  Bruno Haible  <bruno@clisp.org>
104067         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
104068         ia64.
104069         * modules/printf-safe: New file.
104070         * modules/fprintf-posix (Depends-on): Add printf-safe.
104071         * modules/printf-posix (Depends-on): Likewise.
104072         * modules/snprintf-posix (Depends-on): Likewise.
104073         * modules/sprintf-posix (Depends-on): Likewise.
104074         * modules/vasnprintf-posix (Depends-on): Likewise.
104075         * modules/vasprintf-posix (Depends-on): Likewise.
104076         * modules/vfprintf-posix (Depends-on): Likewise.
104077         * modules/vprintf-posix (Depends-on): Likewise.
104078         * modules/vsnprintf-posix (Depends-on): Likewise.
104079         * modules/vsprintf-posix (Depends-on): Likewise.
104080         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
104081         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
104082         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
104083         "no" on i386, x86_64, ia64.
104084         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
104085         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104086         on i386, x86_64, ia64.
104087         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
104088         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104089         on i386, x86_64, ia64.
104090         * tests/test-vasnprintf-posix.c: Include float.h.
104091         (LDBL80_WORDS): New macro.
104092         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104093         on i386, x86_64, ia64.
104094         * tests/test-vasprintf-posix.c: Include float.h.
104095         (LDBL80_WORDS): New macro.
104096         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
104097         on i386, x86_64, ia64.
104098         * tests/test-snprintf-posix.c: Include float.h.
104099         * tests/test-sprintf-posix.c: Likewise.
104100         * tests/test-vsnprintf-posix.c: Likewise.
104101         * tests/test-vsprintf-posix.c: Likewise.
104103 2007-06-05  Bruno Haible  <bruno@clisp.org>
104105         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
104106         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
104107         non-IEEE numbers on i386, x86_64, ia64.
104108         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
104109         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
104110         * tests/test-isnanl.h: Include float.h.
104111         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
104113 2007-06-05  Bruno Haible  <bruno@clisp.org>
104115         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
104116         also the %a / %A. Handle the %a / %A code before this extra handling.
104118 2007-06-05  Bruno Haible  <bruno@clisp.org>
104120         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
104121         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
104123 2007-06-05  Bruno Haible  <bruno@clisp.org>
104125         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
104126         typo in variable name.
104128 2007-06-05  Eric Blake  <ebb9@byu.net>
104130         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
104131         Reported by Simon Josefsson.
104133 2007-06-04  Bruno Haible  <bruno@clisp.org>
104135         Avoid test failures on some PowerPC platforms.
104136         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
104137         Define differently for PowerPC.
104138         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
104139         Reported by Gary V. Vaughan <gary@gnu.org>.
104141 2007-06-02  Bruno Haible  <bruno@clisp.org>
104143         Fix test-stdint failure on FreeBSD/ia64.
104144         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
104145         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
104146         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
104147         * doc/headers/stdint.texi: Update.
104149 2007-06-01  Bruno Haible  <bruno@clisp.org>
104151         * tests/test-binary-io.c (main): Pass a third argument to open().
104152         Reported by Gary V. Vaughan <gary@gnu.org>.
104154 2007-06-01  Bruno Haible  <bruno@clisp.org>
104156         * doc/functions/frexpl.texi: Update for mingw.
104158 2007-06-01  Bruno Haible  <bruno@clisp.org>
104160         * tests/test-lseek.c (main): Disable test of errno for invalid third
104161         argument.
104162         * doc/functions/lseek.texi: Update.
104163         Reported by Gary V. Vaughan <gary@gnu.org>.
104165 2007-05-28  Bruno Haible  <bruno@clisp.org>
104167         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
104169 2007-05-31  Eric Blake  <ebb9@byu.net>
104171         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
104172         cross compiling.
104174 2007-05-30  Eric Blake  <ebb9@byu.net>
104175         and Bruno Haible  <bruno@clisp.org>
104177         Work around mingw test failures exposed by m4-1.4.9b.
104178         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
104179         * tests/test-unistd.c: Disable uid_t and git_t tests for the
104180         moment.
104182 2007-05-30  Bruno Haible  <bruno@clisp.org>
104184         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
104185         assuming that they are closed. Needed on HP-UX 11.
104187 2007-05-29  Bruno Haible  <bruno@clisp.org>
104189         Fix a problem with #include_next.
104190         * lib/dirent_.h: Split the double-inclusion guard.
104191         * lib/fcntl_.h: Likewise.
104192         * lib/float_.h: Likewise.
104193         * lib/iconv_.h: Likewise.
104194         * lib/inttypes_.h: Likewise.
104195         * lib/locale_.h: Likewise.
104196         * lib/math_.h: Likewise.
104197         * lib/netinet_in_.h: Likewise.
104198         * lib/search_.h: Likewise.
104199         * lib/signal_.h: Likewise.
104200         * lib/stdint_.h: Likewise.
104201         * lib/stdio_.h: Likewise.
104202         * lib/stdlib_.h: Likewise.
104203         * lib/string_.h: Likewise.
104204         * lib/sys_select_.h: Likewise.
104205         * lib/sys_socket_.h: Likewise.
104206         * lib/sys_stat_.h: Likewise.
104207         * lib/sys_time_.h: Likewise.
104208         * lib/sysexits_.h: Likewise.
104209         * lib/time_.h: Likewise.
104210         * lib/unistd_.h: Likewise.
104211         * lib/wchar_.h: Likewise.
104212         * lib/wctype_.h: Likewise.
104214 2007-05-29  Bruno Haible  <bruno@clisp.org>
104216         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
104217         for the moment.
104219 2007-05-29  Bruno Haible  <bruno@clisp.org>
104221         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
104222         invocation.
104223         Reported by Eric Blake.
104225 2007-05-29  Bruno Haible  <bruno@clisp.org>
104227         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
104228         compiling case.
104230 2007-05-29  Eric Blake  <ebb9@byu.net>
104231             Bruno Haible  <bruno@clisp.org>
104233         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
104234         cross compiles.
104236 2007-05-28  Eric Blake  <ebb9@byu.net>
104238         * modules/closein-tests (test_closein_LDADD): Support test on
104239         cygwin with libtool.
104241 2007-05-28  Bruno Haible  <bruno@clisp.org>
104243         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
104244         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
104245         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
104246         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
104247         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
104248         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
104249         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
104250         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
104251         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
104253 2007-05-28  Eric Blake  <ebb9@byu.net>
104255         Unconditionally include <config.h> in unit tests.
104256         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
104257         * tests/test-allocsa.c, tests/test-arcfour.c,
104258         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
104259         tests/test-array_list.c, tests/test-array_oset.c,
104260         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
104261         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
104262         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
104263         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
104264         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
104265         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
104266         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
104267         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
104268         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
104269         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
104270         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
104271         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
104272         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
104273         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
104274         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
104275         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
104276         test-md5.c, test-memmem.c, test-printf-posix.c,
104277         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
104278         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
104279         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
104280         test-strcasestr.c, test-striconv.c, test-striconveh.c,
104281         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
104282         test-vasnprintf-posix2.c, test-vasnprintf.c,
104283         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
104284         test-vfprintf-posix.c, test-vprintf-posix.c,
104285         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
104286         test-xvasprintf.c: Likewise.
104288 2007-05-28  Bruno Haible  <bruno@clisp.org>
104290         * gnulib-tool (func_import): Remember the --with-tests command-line
104291         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
104292         Reported by Eric Blake.
104294 2007-05-28  Bruno Haible  <bruno@clisp.org>
104296         * modules/ftell-tests: New file.
104297         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
104298         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
104300         * lib/ftell.c: New file.
104301         * modules/ftell: New file.
104302         * m4/ftell.m4: New file.
104303         * doc/functions/ftell.texi: Update.
104304         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
104305         REPLACE_FTELL.
104306         * lib/stdio_.h (rpl_ftell): New declaration.
104307         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
104308         REPLACE_FTELL.
104310 2007-05-28  Eric Blake  <ebb9@byu.net>
104312         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
104314 2007-05-28  Bruno Haible  <bruno@clisp.org>
104316         * modules/fseek-tests: New file.
104317         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
104318         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
104320         * lib/fseek.c: New file.
104321         * modules/fseek: New file.
104322         * m4/fseek.m4: New file.
104323         * doc/functions/fseek.texi: Update.
104324         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
104325         REPLACE_FSEEK.
104326         * lib/stdio_.h (rpl_fseek): New declaration.
104327         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
104328         REPLACE_FSEEK.
104330 2007-05-28  Bruno Haible  <bruno@clisp.org>
104332         * lib/stdio_.h (fflush): More comments.
104334 2007-05-28  Bruno Haible  <bruno@clisp.org>
104336         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
104337         runtime test.
104339 2007-05-28  Eric Blake  <ebb9@byu.net>
104341         Improve lseek module.
104342         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
104343         * lib/unistd_.h (lseek): Scale back link warning message.
104344         * tests/test-lseek.c: Beef up test.
104345         * tests/test-lseek.sh: Exercise more facets of lseek.
104346         Reported by Bruno Haible.
104348 2007-05-28  Bruno Haible  <bruno@clisp.org>
104350         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
104351         to define.
104353 2007-05-27  Bruno Haible  <bruno@clisp.org>
104355         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
104357 2007-05-27  Bruno Haible  <bruno@clisp.org>
104359         * modules/openmp: New file.
104360         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
104361         Noah Misch.
104363 2007-05-26  Bruno Haible  <bruno@clisp.org>
104365         * modules/chdir-long (Depends-on): Add fchdir.
104366         * modules/chdir-safer (Depends-on): Likewise.
104367         * modules/fts (Depends-on): Likewise.
104368         * modules/fts-lgpl (Depends-on): Likewise.
104369         * modules/openat (Depends-on): Likewise.
104370         * modules/savewd (Depends-on): Likewise.
104372 2007-05-24  Eric Blake  <ebb9@byu.net>
104374         Fix lseek on mingw.
104375         * modules/lseek: New module.
104376         * m4/lseek.m4: New file.
104377         * lib/lseek.c: New file.
104378         * modules/lseek-tests: New file.
104379         * tests/test-lseek.c: New file.
104380         * tests/test-lseek.sh: New file.
104381         * MODULES.html.sh: Document lseek module.
104382         * modules/fflush (Depends-on): Add lseek, fseeko.
104383         * modules/fseeko (Depends-on): Likewise.
104384         * modules/ftello (Depends-on): Likewise.
104385         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
104386         broken.
104387         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
104388         broken.
104389         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
104390         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
104391         * lib/ftello.c (rpl_ftello): Likewise.
104392         * tests/test-fseeko.c (main): Test this.
104393         * tests/test-fseeko.sh: Likewise.
104394         * tests/test-ftello.c (main): Likewise.
104395         * tests/test-ftello.sh: Likewise.
104396         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
104397         implies replacing fseek.
104398         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
104399         HAVE_FTELLO.
104400         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
104401         * modules/unistd (Makefile.am): Likewise.
104402         * lib/unistd_.h (lseek): Declare a replacement.
104403         * doc/functions/lseek.texi (lseek): Document this fix.
104404         * doc/functions/fseek.texi (fseek): Likewise.
104405         * doc/functions/ftell.texi (ftell): Likewise.
104407 2007-05-24  Bruno Haible  <bruno@clisp.org>
104409         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
104410         in the printed representation of a NaN.
104411         * tests/test-vasprintf-posix.c (test_function): Likewise.
104412         * tests/test-snprintf-posix.h (test_function): Likewise.
104413         * tests/test-sprintf-posix.h (test_function): Likewise.
104414         Reported by Eric Blake.
104416 2007-05-23  Eric Blake  <ebb9@byu.net>
104418         Fix fseeko/ftello on cygwin 1.5.24.
104419         * doc/functions/fseeko.texi (fseeko): Document the fix.
104420         * doc/functions/ftello.texi (ftello): Document the fix.
104421         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
104422         * doc/functions/stdout.text (stdout): New file.
104423         * doc/functions/stderr.text (stderr): New file.
104424         * doc/gnulib.texi (Function Substitutes): Use new files.
104425         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
104426         prior to 1.7.0.
104427         * tests/test-ftello.c (main): Likewise for ftello.
104428         * tests/test-fseeko.sh: New file.
104429         * tests/test-ftello.sh: New file.
104430         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
104431         with seekable stdin.
104432         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
104433         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
104434         (gl_REPLACE_FSEEKO): New macro.
104435         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
104436         * modules/fseeko (Files): Distribute fseeko.c.
104437         * modules/ftello (Files): Distribute ftello.c.
104438         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
104439         mode.
104440         * lib/ftello.c (rpl_ftello): New file.
104441         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
104442         fseeko, ftello.
104443         (gl_STDIN_LARGE_OFFSET): New macro.
104444         * modules/stdio (Makefile.am): Perform the replacement.
104445         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
104447 2007-05-23  Bruno Haible  <bruno@clisp.org>
104449         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
104450         GNULIB_POSIXCHECK is defined.
104452 2007-05-21  Bruno Haible  <bruno@clisp.org>
104454         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
104455         Check also the output for NaN arguments. When cross-compiling, guess
104456         no on IRIX.
104457         * lib/vasnprintf.c: Update comments.
104458         * tests/test-vasnprintf-posix.c (strisnan): New function.
104459         (test_function): Use it.
104460         * tests/test-vasprintf-posix.c (strisnan): New function.
104461         (test_function): Use it.
104462         * tests/test-snprintf-posix.h (strisnan): New function.
104463         (test_function): Use it.
104464         * tests/test-sprintf-posix.h (strisnan): New function.
104465         (test_function): Use it.
104466         Reported by Eric Blake.
104468 2007-05-20  Bruno Haible  <bruno@clisp.org>
104470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
104471         numbers that fails on BeOS.
104472         * doc/functions/frexpl.texi: Update.
104474 2007-05-20  Jim Meyering  <jim@meyering.net>
104476         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
104477         forced upon us by glibc-2.6.
104479 2007-05-20  Bruno Haible  <bruno@clisp.org>
104481         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
104482         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
104483         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
104484         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
104485         NEED_PRINTF_INFINITE.
104486         (is_infinitel): New function.
104487         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
104488         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
104489         gl_PREREQ_VASNPRINTF_INFINITE.
104490         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
104491         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104492         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
104493         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
104494         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
104495         gl_PREREQ_VASNPRINTF_INFINITE.
104496         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104497         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104498         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104499         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104500         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104501         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104502         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104503         * doc/functions/fprintf.texi: Update.
104504         * doc/functions/printf.texi: Update.
104505         * doc/functions/snprintf.texi: Update.
104506         * doc/functions/sprintf.texi: Update.
104507         * doc/functions/vfprintf.texi: Update.
104508         * doc/functions/vprintf.texi: Update.
104509         * doc/functions/vsnprintf.texi: Update.
104510         * doc/functions/vsprintf.texi: Update.
104512 2007-05-20  Bruno Haible  <bruno@clisp.org>
104514         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
104515         was not found in libc.
104516         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
104518 2007-05-20  Bruno Haible  <bruno@clisp.org>
104520         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104521         printed as "-nan" instead of "nan".
104522         * tests/test-vasprintf-posix.c (test_function): Likewise.
104523         * tests/test-snprintf-posix.h (test_function): Likewise.
104524         * tests/test-sprintf-posix.h (test_function): Likewise.
104525         Needed for HP-UX 11.
104527 2007-05-20  Jim Meyering  <jim@meyering.net>
104529         Fix buggy test for the fchownat-deref bug.
104530         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
104531         symlink required for the run-test.  Without it, this test would
104532         always declare that fchownat doesn't work, and client code would
104533         unnecessarily use the replacement function with fixed libc.
104534         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
104535         Reported by Greg Schafer.
104537 2007-05-19  Bruno Haible  <bruno@clisp.org>
104539         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
104540         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
104541         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
104542         Needed for IRIX 6.5 and Solaris 2.5.1.
104544 2007-05-19  Bruno Haible  <bruno@clisp.org>
104546         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
104547         (test_function): Skip tests involving -0.0 on platforms where
104548         -0.0 = 0.0.
104549         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
104550         (test_function): Skip tests involving -0.0 on platforms where
104551         -0.0 = 0.0.
104552         * tests/test-snprintf-posix.h (have_minus_zero): New function.
104553         (test_function): Skip tests involving -0.0 on platforms where
104554         -0.0 = 0.0.
104555         * tests/test-sprintf-posix.h (have_minus_zero): New function.
104556         (test_function): Skip tests involving -0.0 on platforms where
104557         -0.0 = 0.0.
104558         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
104559         tests.
104560         * tests/test-printf-posix.h (test_function): Likewise.
104561         * tests/test-printf-posix.output: Remove all -0.0 related results.
104562         Needed for IRIX 6.5.
104564 2007-05-19  Bruno Haible  <bruno@clisp.org>
104566         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
104567         printed as "nan0x7fffffff" instead of "nan".
104568         * tests/test-vasprintf-posix.c (test_function): Likewise.
104569         * tests/test-snprintf-posix.h (test_function): Likewise.
104570         * tests/test-sprintf-posix.h (test_function): Likewise.
104571         * tests/test-fprintf-posix.h (NaN): Remove macro.
104572         (test_function): Remove all NaN related tests.
104573         * tests/test-printf-posix.h (NaN): Remove macro.
104574         (test_function): Remove all NaN related tests.
104575         * tests/test-printf-posix.output: Remove all NaN related results.
104576         Needed for IRIX 6.5.
104578 2007-05-19  Bruno Haible  <bruno@clisp.org>
104580         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
104581         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
104583 2007-05-19  Bruno Haible  <bruno@clisp.org>
104585         * lib/float_.h: New file.
104586         * m4/float_h.m4: New file.
104587         * modules/float: New file.
104588         * modules/isnanl (Dependencies): Add float.
104589         * modules/isnanl-nolibm (Dependencies): Likewise.
104590         * modules/mathl (Dependencies): Likewise.
104591         * modules/printf-frexpl (Dependencies): Likewise.
104592         * modules/signbit (Dependencies): Likewise.
104593         * modules/vasnprintf (Dependencies): Likewise.
104594         * doc/headers/float.texi: Update.
104596 2007-05-19  Jim Meyering  <jim@meyering.net>
104598         * lib/utimens.c (gl_futimens): Rename from futimens,
104599         now that glibc-2.6 declares futimens.
104600         * lib/utimens.h: Likewise.
104602 2007-05-19  Bruno Haible  <bruno@clisp.org>
104604         Avoid test failures on mingw.
104605         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
104606         * tests/test-printf-posix.sh: Likewise.
104607         * tests/test-vfprintf-posix.sh: Likewise.
104608         * tests/test-vprintf-posix.sh: Likewise.
104610 2007-05-19  Bruno Haible  <bruno@clisp.org>
104612         Fix *printf result for NaN, Inf, -0.0 on mingw.
104613         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
104614         * lib/vasnprintf.c: Include math.h and isnan.h.
104615         (is_infinite_or_zero): New function.
104616         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
104617         values in the %f, %F, %e, %E, %g, %G directives.
104618         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
104619         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104620         gl_PRINTF_INFINITE and test its result. Invoke
104621         gl_PREREQ_VASNPRINTF_INFINITE.
104622         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104623         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104624         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104625         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104626         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104627         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104628         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104629         * doc/functions/fprintf.texi: Update.
104630         * doc/functions/printf.texi: Update.
104631         * doc/functions/snprintf.texi: Update.
104632         * doc/functions/sprintf.texi: Update.
104633         * doc/functions/vfprintf.texi: Update.
104634         * doc/functions/vprintf.texi: Update.
104635         * doc/functions/vsnprintf.texi: Update.
104636         * doc/functions/vsprintf.texi: Update.
104638 2007-05-19  Bruno Haible  <bruno@clisp.org>
104640         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
104641         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
104642         Instead of multiplying with 10^k, set extra_zeroes to k.
104643         (scale10_round_long_double): Remove function.
104645 2007-05-18  Bruno Haible  <bruno@clisp.org>
104647         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
104648         introduced on 2007-05-06.
104650 2007-05-18  Bruno Haible  <bruno@clisp.org>
104652         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
104653         %g directives.
104654         * tests/test-vasprintf-posix.c (test_function): Likewise.
104655         * tests/test-snprintf-posix.h (test_function): Likewise.
104656         * tests/test-sprintf-posix.h (test_function): Likewise.
104658 2007-05-18  Bruno Haible  <bruno@clisp.org>
104660         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
104661         (strmatch): New function.
104662         (test_function): Test the %f directive on numbers of various exponents.
104663         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
104664         (strmatch): New function.
104665         (test_function): Test the %f directive on numbers of various exponents.
104666         * tests/test-snprintf-posix.h (strmatch): New function.
104667         (test_function): Test the %f directive on numbers of various exponents.
104668         * tests/test-sprintf-posix.h (strmatch): New function.
104669         (test_function): Test the %f directive on numbers of various exponents.
104670         * tests/test-snprintf-posix.c (SIZEOF): New macro.
104671         * tests/test-sprintf-posix.c (SIZEOF): New macro.
104672         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
104673         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
104675 2007-05-18  Bruno Haible  <bruno@clisp.org>
104677         Add support for 'long double' number output.
104678         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
104679         * lib/vasnprintf.c: Include math.h and float+.h.
104680         (mp_limb_t): New type.
104681         (GMP_LIMB_BITS): New macro.
104682         (mp_twolimb_t): New type.
104683         (GMP_TWOLIMB_BITS): New macro.
104684         (mpn_t): New type.
104685         (multiply, divide, convert_to_decimal, decode_long_double,
104686         scale10_round_long_double, scale10_round_decimal_long_double,
104687         floorlog10l): New functions.
104688         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
104689         for the %f, %F, %e, %E, %g, %G directives.
104690         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
104691         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
104692         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
104693         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
104694         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
104695         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104696         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104697         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104698         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104699         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104700         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104701         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
104702         * modules/snprintf-posix (Depends-on): Likewise.
104703         * modules/sprintf-posix (Depends-on): Likewise.
104704         * modules/vasnprintf-posix (Depends-on): Likewise.
104705         * modules/vasprintf-posix (Depends-on): Likewise.
104706         * modules/vfprintf-posix (Depends-on): Likewise.
104707         * modules/vsnprintf-posix (Depends-on): Likewise.
104708         * modules/vsprintf-posix (Depends-on): Likewise.
104709         * modules/vasnprintf (Files): Add lib/float+.h.
104710         * doc/functions/fprintf.texi: Update.
104711         * doc/functions/printf.texi: Update.
104712         * doc/functions/snprintf.texi: Update.
104713         * doc/functions/sprintf.texi: Update.
104714         * doc/functions/vfprintf.texi: Update.
104715         * doc/functions/vprintf.texi: Update.
104716         * doc/functions/vsnprintf.texi: Update.
104717         * doc/functions/vsprintf.texi: Update.
104719 2007-05-18  Bruno Haible  <bruno@clisp.org>
104721         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
104723 2007-05-18  Bruno Haible  <bruno@clisp.org>
104725         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
104726         for printing 64-bit integers. Needed for mingw.
104728 2007-05-18  Bruno Haible  <bruno@clisp.org>
104730         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
104731         gl_FUNC_FREXPL_WORKS.
104732         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
104734 2007-05-18  Bruno Haible  <bruno@clisp.org>
104736         * modules/frexpl-nolibm-tests: New file.
104738         * modules/frexpl-nolibm: New file.
104739         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
104741 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
104743         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
104744         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104745         GCC 4.2, which otherwise issues a lot of warnings.
104746         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
104747         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
104748         Likewise.
104749         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
104750         * modules/iconv_open (iconv.h): Likewise.
104751         * modules/locale (locale.h): Likewise.
104752         * modules/netinet_in (netinet/in.h): Likewise.
104753         * modules/sys_select (sys_select.h): Likewise.
104754         * modules/sys_socket (sys/socket.h): Likewise.
104755         * modules/sys_stat (sys/stat.h): Likewise.
104756         * modules/sysexits (sysexits.h): Likewise.
104757         * modules/unistd (unistd.h): Likewise.
104759 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
104761         * modules/closein-tests (Makefile.am): Distribute
104762         `test-closein.sh'.
104764 2007-05-17  Bruno Haible  <bruno@clisp.org>
104766         * tests/test-printf-posix.output: Renamed from
104767         tests/test-fprintf-posix.out.
104768         * modules/fprintf-posix-tests: Update.
104769         * modules/printf-posix-tests: Update.
104770         * modules/vfprintf-posix-tests: Update.
104771         * modules/vprintf-posix-tests: Update.
104772         * tests/test-fprintf-posix.sh: Update.
104773         * tests/test-printf-posix.sh: Update.
104774         * tests/test-vfprintf-posix.sh: Update.
104775         * tests/test-vprintf-posix.sh: Update.
104776         Reported by Ralf Wildenhues.
104778 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
104780         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
104781         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
104782         GCC 4.2, which otherwise issues a lot of warnings.
104783         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
104784         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
104785         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
104786         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
104787         it should no longer be needed.
104788         * lib/string_.h: Likewise.
104789         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
104790         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
104791         * modules/inttypes (inttypes.h): Likewise.
104792         * modules/math (math.h): Likewise.
104793         * modules/search (search.h): Likewise.
104794         * modules/signal (signal.h): Likewise.
104795         * modules/stdint (stdint.h): Likewise.
104796         * modules/stdio (stdio.h): Likewise.
104797         * modules/stdlib (stdlib.h): Likewise.
104798         * modules/string (string.h): Likewise.
104799         * modules/sys_time (sys/time.h): Likewise.
104800         * modules/time (time.h): Likewise.
104801         * modules/wchar (wchar.h): Likewise.
104802         * modules/wctype (wtype.h): Likewise.
104804 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
104806         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
104808 2007-05-13  Bruno Haible  <bruno@clisp.org>
104810         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
104811         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
104812         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
104813         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
104814         (gl_PREREQ_STRTOK_R): Don't require it here.
104816 2007-05-13  Bruno Haible  <bruno@clisp.org>
104818         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
104819         when used in C++ mode.
104821 2007-05-12  Bruno Haible  <bruno@clisp.org>
104823         * lib/linebuffer.h: Tweak doc.
104824         * lib/linebuffer.c: Likewise.
104826 2007-05-12  James Youngman  <jay@gnu.org>
104828         * lib/linebuffer.c (readlinebuffer_delim): New function,
104829         like readlinebuffer, but use a caller-specified delimiter.
104830         (readlinebuffer): Just call readlinebuffer_delim with '\n'
104831         as the delimiter.
104832         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
104834 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
104836         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
104837         * modules/openat (Files): Remove openat-die.c.
104838         (Depends-on): Add openat-die.
104839         * modules/openat-die: New module.
104841 2007-05-06  Bruno Haible  <bruno@clisp.org>
104843         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
104844         Update with info about Cygwin.
104845         * doc/functions/fprintf.texi: Update.
104846         * doc/functions/printf.texi: Update.
104847         * doc/functions/snprintf.texi: Update.
104848         * doc/functions/sprintf.texi: Update.
104849         * doc/functions/vfprintf.texi: Update.
104850         * doc/functions/vprintf.texi: Update.
104851         * doc/functions/vsnprintf.texi: Update.
104852         * doc/functions/vsprintf.texi: Update.
104853         Reported by Eric Blake.
104855 2007-05-06  Bruno Haible  <bruno@clisp.org>
104857         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
104858         padding ourselves for the floating-point directives.
104859         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
104860         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
104861         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104862         gl_PRINTF_FLAG_ZERO and test its result. Invoke
104863         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
104864         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104865         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104866         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104867         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104868         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104869         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104870         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104871         * tests/test-snprintf-posix.h (test_function): Also check the width
104872         and some flags in the %f directive.
104873         * tests/test-sprintf-posix.h (test_function): Likewise.
104874         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104875         * tests/test-vasprintf-posix.c (test_function): Likewise.
104876         * doc/functions/fprintf.texi: Update.
104877         * doc/functions/printf.texi: Update.
104878         * doc/functions/snprintf.texi: Update.
104879         * doc/functions/sprintf.texi: Update.
104880         * doc/functions/vfprintf.texi: Update.
104881         * doc/functions/vprintf.texi: Update.
104882         * doc/functions/vsnprintf.texi: Update.
104883         * doc/functions/vsprintf.texi: Update.
104885 2007-05-06  Bruno Haible  <bruno@clisp.org>
104887         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
104888         pass the ' flag character to sprintf or snprintf.
104889         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
104890         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
104891         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
104892         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
104893         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
104894         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
104895         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
104896         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
104897         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
104898         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
104899         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
104900         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
104901         * tests/test-snprintf-posix.h (test_function): Also check the grouping
104902         flag.
104903         * tests/test-sprintf-posix.h (test_function): Likewise.
104904         * tests/test-vasnprintf-posix.c (test_function): Likewise.
104905         * tests/test-vasprintf-posix.c (test_function): Likewise.
104906         * doc/functions/fprintf.texi: Update.
104907         * doc/functions/printf.texi: Update.
104908         * doc/functions/snprintf.texi: Update.
104909         * doc/functions/sprintf.texi: Update.
104910         * doc/functions/vfprintf.texi: Update.
104911         * doc/functions/vprintf.texi: Update.
104912         * doc/functions/vsnprintf.texi: Update.
104913         * doc/functions/vsprintf.texi: Update.
104915 2007-05-01  Bruno Haible  <bruno@clisp.org>
104917         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
104919 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
104921         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
104922         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
104924 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
104926         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
104927         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
104928         <http://lists.gnu.org/r/bug-gnulib/2007-05/msg00021.html>.
104930 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
104932         * lib/argp-help.c (struct hol_entry): New member `ord'.
104933         (HOL_ENTRY_PTRCMP): Use ord for comparison
104934         (hol_sort): Initialize ord.
104936 2007-05-01  Bruno Haible  <bruno@clisp.org>
104938         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
104939         Reported by Eric Blake.
104940         * doc/gnulib.texi (Function Substitutes): Update.
104942 2007-05-01  Bruno Haible  <bruno@clisp.org>
104944         * doc/functions.texi: Remove file, now redundant through
104945         doc/functions/*.texi.
104947 2007-05-01  Bruno Haible  <bruno@clisp.org>
104949         * modules/argp (Depends-on): Add sleep.
104951 2007-05-01  Bruno Haible  <bruno@clisp.org>
104953         * modules/sleep-tests: New file.
104954         * tests/test-sleep.c: New file.
104956         * modules/sleep: New file.
104957         * lib/sleep.c: New file.
104958         * m4/sleep.m4: New file.
104959         * lib/unistd_.h (sleep): New declaration.
104960         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
104961         HAVE_SLEEP.
104962         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
104963         * doc/functions/sleep.texi: Document the sleep module.
104965 2007-05-01  Bruno Haible  <bruno@clisp.org>
104967         * lib/sigprocmask.h: Remove file.
104968         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
104969         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
104970         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
104971         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
104972         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
104973         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
104974         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
104975         HAVE_SIGSET_T as a shell variable.
104976         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
104977         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
104978         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
104979         (Depends-on): Add signal. Remove verify.
104980         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
104981         (Include): Mention <signal.h> instead of sigprocmask.h.
104982         * NEWS: Mention the change.
104983         * lib/fatal-signal.c: Don't include sigprocmask.h.
104985 2007-05-01  Bruno Haible  <bruno@clisp.org>
104987         * modules/signal: New file.
104988         * lib/signal_.h: New file.
104989         * m4/signal_h.m4: New file.
104991 2007-05-01  Bruno Haible  <bruno@clisp.org>
104993         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
104994         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
104995         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
104996         HAVE_WCTYPE_CTMP_BUG into wctype.h.
104998 2007-05-01  Bruno Haible  <bruno@clisp.org>
105000         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
105001         configure time.
105002         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
105003         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
105004         * modules/sys_stat (Makefile.am): Substitute their values into
105005         sys/stat.h.
105007 2007-05-01  Bruno Haible  <bruno@clisp.org>
105009         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
105010         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
105011         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
105013 2007-05-01  Bruno Haible  <bruno@clisp.org>
105015         * doc/header/assert.texi: Undo last change: don't mention the gnulib
105016         'assert' module here.
105018 2007-05-01  Bruno Haible  <bruno@clisp.org>
105020         * doc/functions/*.texi: New files.
105021         * doc/functions/google-ranking.txt: New file.
105022         * doc/gnulib.texi (Function Substitutes): New chapter.
105023         (ctime, inet_ntoa): Remove sections.
105024         * doc/ctime.texi: Remove file.
105025         * doc/inet_ntoa.texi: Remove file.
105026         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
105027         dependencies.
105028         (%.info): New rule, specifying a --reference-limit.
105030 2007-05-01  Bruno Haible  <bruno@clisp.org>
105032         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
105034 2007-05-01  Bruno Haible  <bruno@clisp.org>
105036         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
105037         the portability of 'mkdir' to mingw systems.
105039 2007-05-01  Bruno Haible  <bruno@clisp.org>
105041         * doc/headers/google-ranking.txt: New file.
105043 2007-04-30  Eric Blake  <ebb9@byu.net>
105045         Prefer fseeko to fseek.
105046         * modules/getpass (Depends-on): Add fseeko.
105047         * lib/getpass.c (getpass): Use fseeko, not fseek.
105049 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
105051         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
105052         assumes the sorting is stable, while most qsort implementations
105053         are not.  Use argument addresses to ensure they never compare as
105054         equal.
105056         * tests/test-argp-2.sh (usage-indent test): Fix output
105057         (func_compare): Restore diff options
105058         * tests/test-argp.c: Restore #include "progname.h"
105060 2007-04-29  Bruno Haible  <bruno@clisp.org>
105062         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
105063         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105064         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
105065         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
105066         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
105067         (configure.ac): Define CHECK_SNPRINTF_POSIX.
105068         (TESTS, check_PROGRAMS): Add test-snprintf.
105069         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
105070         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
105071         (TESTS, check_PROGRAMS): Add test-vsnprintf.
105072         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
105073         assertions that fail on HP-UX, OSF/1, or IRIX.
105074         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
105076 2007-04-29  Bruno Haible  <bruno@clisp.org>
105078         * MODULES.html.sh (posix_functions): Remove 'contents'.
105080 2007-04-29  Karl Berry  <karl@gnu.org>
105082         * config/srclist.txt (gendocs_template_min): new entry.
105084 2007-04-29  Bruno Haible  <bruno@clisp.org>
105086         Work around fpurge bug on BSD systems.
105087         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
105088         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
105089         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
105090         fpurge to rpl_fpurge if the system already has this function.
105091         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
105092         the case where the system already has this function. Correct invariants
105093         on BSD systems.
105094         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
105095         BSD systems.
105097 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
105099         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
105100         proposed by Sven Verdoolaege.
105102         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
105103         options.
105104         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
105105         (usage and help tests): Update
105107 2007-04-29  Bruno Haible  <bruno@clisp.org>
105109         * tests/test-fflush.c (main): Use a file of size 17, not 10.
105110         Print more information in case of failure. Disable a test on BeOS.
105112 2007-04-29  Bruno Haible  <bruno@clisp.org>
105114         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
105115         This helps debugging on systems on which no gdb is available.
105117 2007-04-29  Bruno Haible  <bruno@clisp.org>
105119         * lib/freading.h: Improve comments.
105120         * lib/fwriting.h: Likewise.
105121         * tests/test-freading.c (main): Don't check freading immediately after
105122         repositioning. Needed for glibc.
105124 2007-04-29  Bruno Haible  <bruno@clisp.org>
105126         * lib/freading.c (freading): Trivial simplification.
105128 2007-04-28  Bruno Haible  <bruno@clisp.org>
105130         * tests/test-fwriting.c (main): Also test the interaction between
105131         fflush and fwriting.
105132         * modules/fwriting-tests (Depends-on): Add fflush.
105134         * tests/test-freading.c (main): Also test the interaction between
105135         fflush and freading.
105136         * modules/freading-tests (Depends-on): Add fflush.
105138 2007-04-28  Bruno Haible  <bruno@clisp.org>
105140         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
105141         fseeko and ftello.
105142         Suggested by Eric Blake.
105144 2007-04-28  Jim Meyering  <jim@meyering.net>
105146         Avoid false-negative in gl_STDINT_H's C99 conformance test.
105147         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
105148         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
105150 2007-04-27  Eric Blake  <ebb9@byu.net>
105152         * doc/headers/assert.texi (assert.h): Document assert module use.
105154 2007-04-27  Bruno Haible  <bruno@clisp.org>
105156         * doc/headers/*.texi: New files.
105157         * doc/gnulib.texi (Header File Substitutes): New chapter.
105158         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
105159         dependencies.
105160         (standards.info ,standards.html, standards.dvi): Update dependencies.
105161         (mostlyclean, clean): New targets.
105163 2007-04-27  Bruno Haible  <bruno@clisp.org>
105165         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
105166         * modules/sysexits (Files, Makefile.am): Update.
105168         * lib/sys_socket_.h: Renamed from lib/socket_.h.
105169         * modules/sys_socket (Files, Makefile.am): Update.
105171         * lib/sys_stat_.h: Renamed from lib/stat_.h.
105172         * modules/sys_stat (Files, Makefile.am): Update.
105174 2007-04-27  Eric Blake  <ebb9@byu.net>
105176         * lib/freading.h: Improve comments.
105177         * lib/fwriting.h: Likewise.
105178         * lib/fflush.c: Likewise.
105180         Fix closein for mingw.
105181         * modules/closein-tests: Add tests for closein.
105182         * tests/test-closein.c: New file.
105183         * tests/test-closein.sh: Likewise.
105184         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
105185         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
105187 2007-04-27  Bruno Haible  <bruno@clisp.org>
105189         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
105190         version is < 6.
105191         * lib/math_.h [__DECC]: Likewise.
105192         * lib/stdio_.h [__DECC]: Likewise.
105193         * lib/stdlib_.h [__DECC]: Likewise.
105194         * lib/string_.h [__DECC]: Likewise.
105195         * lib/time_.h [__DECC]: Likewise.
105196         * lib/wchar_.h [__DECC]: Likewise.
105197         * lib/wctype_.h [__DECC]: Likewise.
105199 2007-04-27  Bruno Haible  <bruno@clisp.org>
105201         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
105203 2007-04-27  Bruno Haible  <bruno@clisp.org>
105205         * lib/fflush.c: Add comments.
105206         * modules/fpurge-tests (Depends-on): Add fflush.
105207         * modules/freadable-tests (Depends-on): Likewise.
105208         * modules/fwritable-tests (Depends-on): Likewise.
105210 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
105212         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
105213         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
105214         Report by Bruno Haible <bruno@clisp.org>.
105216 2007-04-26  Eric Blake  <ebb9@byu.net>
105218         Fix fflush on mingw.
105219         * modules/fflush (Depends-on): Add freading.
105220         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
105221         but unread data.
105223 2007-04-26  Eric Blake  <ebb9@byu.net>
105224         and Bruno Haible  <bruno@clisp.org>
105226         Implement freading and fwriting.
105227         * lib/freading.c: New file.
105228         * lib/freading.h: Likewise.
105229         * m4/freading.m4: Likewise.
105230         * modules/freading: Likewise.
105231         * modules/freading-tests: Likewise.
105232         * tests/test-freading.c: Likewise.
105233         * lib/fwriting.c: New file.
105234         * lib/fwriting.h: Likewise.
105235         * m4/fwriting.m4: Likewise.
105236         * modules/fwriting: Likewise.
105237         * modules/fwriting-tests: Likewise.
105238         * tests/test-fwriting.c: Likewise.
105239         * MODULES.html.sh (File stream based Input/Output): Mention them.
105241 2007-04-26  Bruno Haible  <bruno@clisp.org>
105243         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
105244         'long' when we assume it.
105245         Suggested by Eric Blake.
105247 2007-04-26  Bruno Haible  <bruno@clisp.org>
105249         Ensure fseeko, ftello are declared on glibc systems.
105250         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
105251         * modules/fseeko (configure.ac-early): Likewise.
105252         * modules/ftello (configure.ac-early): Likewise.
105253         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
105254         AC_FUNC_FSEEKO for this.
105255         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
105256         (gl_CHECK_FSEEKO): Remove macro.
105258 2007-04-26  Bruno Haible  <bruno@clisp.org>
105260         * tests/test-fflush.c (main): Also check the ftell result after
105261         fflush and fseek/fseeko.
105262         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
105263         file descriptor position cache in the stream.
105264         * lib/fseeko.c (rpl_fseeko): Likewise.
105266 2007-04-26  Bruno Haible  <bruno@clisp.org>
105268         * modules/fflush-tests (Depends-on): Add fseeko.
105270 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
105271             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
105273         * lib/argz_.h: ensure error_t definition is obtained in same
105274         mechanism system argz.h would have.
105275         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
105276         argz facilities are known bad.  Err on the side of caution if
105277         cross-compiling.
105279 2007-04-25  Eric Blake  <ebb9@byu.net>
105281         * lib/fpurge.c (includes): Use stdlib.h for free.
105282         * tests/test-fflush.c (main): Also test fflush-fseeko.
105284 2007-04-25  Bruno Haible  <bruno@clisp.org>
105286         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
105287         * lib/fseeko.c: New file.
105288         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
105289         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
105290         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
105291         gl_FUNC_FSEEKO.
105292         (gl_FUNC_FSEEKO): Invoke it.
105293         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
105294         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
105295         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
105297 2007-04-25  Bruno Haible  <bruno@clisp.org>
105299         * modules/fflush (Depends-on): Add ftello.
105301 2007-04-25  Bruno Haible  <bruno@clisp.org>
105303         * modules/ftello-tests: New file.
105304         * tests/test-ftello.c: New file.
105306         * modules/ftello: New file.
105307         * m4/ftello.m4: New file.
105308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
105309         HAVE_FTELLO.
105310         * lib/stdio_.h (ftello): New declaration.
105311         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
105312         HAVE_FTELLO.
105314 2007-04-25  Bruno Haible  <bruno@clisp.org>
105316         * modules/fseeko-tests: New file.
105317         * tests/test-fseeko.c: New file.
105319         * modules/fseeko: New file.
105320         * m4/fseeko.m4: New file.
105321         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
105322         HAVE_FSEEKO.
105323         * lib/stdio_.h (fseeko): New declaration.
105324         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
105325         HAVE_FSEEKO.
105327 2007-04-25  Bruno Haible  <bruno@clisp.org>
105329         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
105331 2007-04-25  Bruno Haible  <bruno@clisp.org>
105333         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
105334         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
105335         * tests/test-unistd.c: Likewise.
105336         * tests/test-fcntl.c: Likewise.
105338 2007-04-23  Eric Blake  <ebb9@byu.net>
105340         * lib/fflush.c: Fix missing include.
105341         Reported by Bruno Haible.
105343 2007-04-23  Bruno Haible  <bruno@clisp.org>
105345         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
105346         Reported by Eric Blake.
105348 2007-04-23  Bruno Haible  <bruno@clisp.org>
105350         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
105352 2007-04-23  Bruno Haible  <bruno@clisp.org>
105354         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
105356 2007-04-23  Bruno Haible  <bruno@clisp.org>
105358         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
105359         Needed on HP-UX 11.
105361 2007-04-16  Eric Blake  <ebb9@byu.net>
105363         Make fflush rely on fpurge.
105364         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
105365         open coding all variants.
105366         * modules/fflush (Depends-on): Add fpurge and unistd.
105367         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
105368         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
105370         Fix --with-tests compilation on cygwin.
105371         * modules/argmatch-tests (Makefile.am): List gnulib library first
105372         in LDADD.
105373         * modules/argp-tests (Makefile.am): Likewise.
105374         * modules/array-list-tests (Makefile.am): Likewise.
105375         * modules/array-oset-tests (Makefile.am): Likewise.
105376         * modules/avltree-list-tests (Makefile.am): Likewise.
105377         * modules/avltree-oset-tests (Makefile.am): Likewise.
105378         * modules/avltreehash-list-tests (Makefile.am): Likewise.
105379         * modules/carray-list-tests (Makefile.am): Likewise.
105380         * modules/dirname-tests (Makefile.am): Likewise.
105381         * modules/frexp-tests (Makefile.am): Likewise.
105382         * modules/isnanl-tests (Makefile.am): Likewise.
105383         * modules/linked-list-tests (Makefile.am): Likewise.
105384         * modules/linkedhash-list-tests (Makefile.am): Likewise.
105385         * modules/lock-tests (Makefile.am): Likewise.
105386         * modules/rbtree-list-tests (Makefile.am): Likewise.
105387         * modules/rbtree-oset-tests (Makefile.am): Likewise.
105388         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
105389         * modules/tls-tests (Makefile.am): Likewise.
105390         * modules/tsearch-tests (Makefile.am): Likewise.
105391         * modules/xvasprintf-tests (Makefile.am): Likewise.
105393         Fix fpurge for cygwin.
105394         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
105395         value.
105396         * modules/fpurge-tests (Depends-on): Clean up trash.
105398 2007-04-16  Simon Josefsson  <simon@josefsson.org>
105400         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
105402         * m4/autobuild.m4: Re-indent.
105404 2007-04-13  Bruno Haible  <bruno@clisp.org>
105406         * modules/fpurge-tests: New file.
105407         * tests/test-fpurge.c: New file.
105409         * modules/fpurge: New file.
105410         * lib/fpurge.h: New file.
105411         * lib/fpurge.c: New file.
105412         * m4/fpurge.m4: New file.
105414 2007-04-13  Bruno Haible  <bruno@clisp.org>
105416         * modules/fbufmode-tests: New file.
105417         * tests/test-fbufmode.c: New file.
105419         * modules/fbufmode: New file.
105420         * lib/fbufmode.h: New file.
105421         * lib/fbufmode.c: New file.
105422         * m4/fbufmode.m4: New file.
105424 2007-04-13  Bruno Haible  <bruno@clisp.org>
105426         * modules/fwritable-tests: New file.
105427         * tests/test-fwritable.c: New file.
105429         * modules/fwritable: New file.
105430         * lib/fwritable.h: New file.
105431         * lib/fwritable.c: New file.
105432         * m4/fwritable.m4: New file.
105434 2007-04-13  Bruno Haible  <bruno@clisp.org>
105436         * modules/freadable-tests: New file.
105437         * tests/test-freadable.c: New file.
105439         * modules/freadable: New file.
105440         * lib/freadable.h: New file.
105441         * lib/freadable.c: New file.
105442         * m4/freadable.m4: New file.
105444 2007-04-13  Bruno Haible  <bruno@clisp.org>
105446         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
105447         MOSTLYCLEANFILES.
105449 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
105451         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
105452         gzip bootstrap.conf to avoid dragging in i18n machinery.
105453         (gnulib_tool_option): Use it.
105455 2007-04-13  Bruno Haible  <bruno@clisp.org>
105457         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
105458         %F directives.
105459         * tests/test-vasprintf-posix.c (test_function): Likewise.
105460         * tests/test-snprintf-posix.h (test_function): Likewise.
105461         * tests/test-sprintf-posix.h (test_function): Likewise.
105462         * tests/test-fprintf-posix.h (test_function): Likewise.
105463         * tests/test-printf-posix.h (test_function): Likewise.
105464         * tests/test-fprintf-posix.out: Likewise.
105466 2007-04-13  Bruno Haible  <bruno@clisp.org>
105468         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
105469         * modules/tls-tests (configure.ac): Likewise.
105470         Reported by Arto C. Nirkko <anirkko@insel.ch>.
105472 2007-04-13  Bruno Haible  <bruno@clisp.org>
105474         * lib/tls.c (glthread_tls_get): Fix return type.
105475         Patch by Arto C. Nirkko <anirkko@insel.ch>.
105477 2007-04-12  Eric Blake  <ebb9@byu.net>
105479         * modules/gettime (Depends-on): Remove gettime.
105480         Reported by Dmitry V. Levin.
105482 2007-04-12  Bruno Haible  <bruno@clisp.org>
105484         * modules/fflush (Include): Mention <stdio.h>.
105485         * modules/strtoimax (Include): Mention <inttypes.h>.
105486         * modules/strtoumax (Include): Likewise.
105488 2007-04-12  Eric Blake  <ebb9@byu.net>
105490         * .cvsignore: New file.
105491         * .gitignore: Likewise.
105493 2007-04-12  Bruno Haible  <bruno@clisp.org>
105495         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
105496         not before, since $(LDADD) often contains libgnu.a.
105497         * modules/striconv-tests (test_striconv_LDADD): Likewise.
105498         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
105499         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
105500         Needed on Cygwin.
105502 2007-04-12  Eric Blake  <ebb9@byu.net>
105504         Work around glibc's failure to flush stdin on fclose.
105505         * lib/closein.c (close_stdin): Flush stdin before closing.
105507         Work around glibc's failure to reset seekable stdin on exit.
105508         * modules/closein: New module.
105509         * lib/closein.c: New file.
105510         * lib/closein.h: Likewise.
105511         * m4/closein.m4: Likewise.
105512         * MODULES.html.sh (File stream based Input/Output): Document it.
105514 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105516         * gnulib-tool: Rename generated 'autobuild' script to
105517         'do-autobuild' in --create-megatestdir output.
105519         * doc/gnulib.texi (Build robot for gnulib): Fix.
105521 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105523         * modules/sysexits (Depends-on): Add absolute-header.
105525 2007-04-12  Eric Blake  <ebb9@byu.net>
105527         No need to preserve errno on success.
105528         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
105529         Reported by Bruno Haible.
105531 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105533         * MODULES.html.sh (Support for maintaining and releasing
105534         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
105536 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105538         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
105540 2007-04-12  Simon Josefsson  <simon@josefsson.org>
105542         * modules/autobuild: New module.
105544         * m4/autobuild.m4: New file.
105546 2007-04-11  Bruno Haible  <bruno@clisp.org>
105548         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
105549         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
105550         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
105551         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
105552         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
105553         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105554         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105555         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
105556         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105557         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105558         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
105559         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105560         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105561         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
105562         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105563         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105564         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
105565         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105566         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105567         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
105568         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105569         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105570         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
105571         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105572         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105573         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
105574         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
105575         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
105576         Reported by Eric Blake.
105578 2007-04-11  Bruno Haible  <bruno@clisp.org>
105580         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
105582 2007-04-10  Bruno Haible  <bruno@clisp.org>
105584         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
105585         for NaN and Infinity. Needed on FreeBSD 6.1.
105586         * tests/test-vasnprintf-posix.c (test_function): Undo last change
105587         regarding results for "%010a" of Infinity and NaN.
105588         * tests/test-vasprintf-posix.c (test_function): Likewise.
105589         * tests/test-snprintf-posix.h (test_function): Likewise.
105590         * tests/test-sprintf-posix.h (test_function): Likewise.
105591         * tests/test-fprintf-posix.h (test_function): Likewise.
105592         * tests/test-printf-posix.h (test_function): Likewise.
105593         * tests/test-fprintf-posix.out: Likewise.
105595 2007-04-10  Bruno Haible  <bruno@clisp.org>
105597         * modules/locale-tests: New file.
105598         * tests/test-locale.c: New file.
105600         * modules/locale: New file.
105601         * lib/locale_.h: New file.
105602         * m4/locale_h.m4: New file.
105604 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
105605             Bruno Haible  <bruno@clisp.org>
105607         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
105608         be determined, test for availability of the copysignf, copysign,
105609         copysignl functions.
105610         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
105611         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
105612         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
105614 2007-04-09  Eric Blake  <ebb9@byu.net>
105616         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
105617         * modules/stdio (Makefile.am): Support fflush.
105618         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
105619         * modules/fflush: New file.
105620         * lib/fflush.c: Likewise.
105621         * m4/fflush.m4: Likewise.
105622         * modules/fflush-tests: New test.
105623         * tests/test-fflush.c: Likewise.
105624         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
105626 2007-04-06  Bruno Haible  <bruno@clisp.org>
105628         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
105629         (VASNPRINTF): Use signbit for faster determination whether to print a
105630         minus sign.
105631         * modules/vasnprintf (Files): Remove lib/float+.h.
105632         * modules/fprintf-posix (Depends-on): Add signbit.
105633         * modules/snprintf-posix (Depends-on): Likewise.
105634         * modules/sprintf-posix (Depends-on): Likewise.
105635         * modules/vasnprintf-posix (Depends-on): Likewise.
105636         * modules/vasprintf-posix (Depends-on): Likewise.
105637         * modules/vfprintf-posix (Depends-on): Likewise.
105638         * modules/vsnprintf-posix (Depends-on): Likewise.
105639         * modules/vsprintf-posix (Depends-on): Likewise.
105641 2007-04-06  Bruno Haible  <bruno@clisp.org>
105643         * tests/test-frexp.c (main): Test also the sign bit of zero results.
105644         * tests/test-frexpl.c (main): Likewise.
105645         * tests/test-ldexpl.c (main): Likewise.
105646         * modules/frexp-tests (Depends-on): Add signbit.
105647         * modules/frexpl-tests (Depdends-on): Likewise.
105648         * modules/ldexpl-tests (Depdends-on): Likewise.
105650 2007-04-06  Bruno Haible  <bruno@clisp.org>
105652         * modules/signbit-tests: New file.
105653         * tests/test-signbit.c: New file.
105655         * modules/signbit: New file.
105656         * lib/signbitf.c: New file.
105657         * lib/signbitd.c: New file.
105658         * lib/signbitl.c: New file.
105659         * m4/signbit.m4: New file.
105660         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
105661         (signbit): New macro.
105662         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
105663         REPLACE_SIGNBIT.
105664         * modules/math (Makefile.am): Substitute also GNULIB_SIGNBIT and
105665         REPLACE_FREXPL into math.h.
105667 2007-04-06  Bruno Haible  <bruno@clisp.org>
105669         * modules/isnanf-nolibm-tests: New file.
105670         * tests/test-isnanf.c: New file.
105672         * modules/isnanf-nolibm: New file.
105673         * lib/isnanf.h: New file.
105674         * lib/isnanf.c: New file.
105675         * lib/isnan.c: Consider the USE_FLOAT macro.
105676         * m4/isnanf.m4: New file.
105678 2007-04-06  Bruno Haible  <bruno@clisp.org>
105680         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
105681         (Link): New section.
105683         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
105685 2007-04-06  Bruno Haible  <bruno@clisp.org>
105687         Assume the 'long double' type.
105688         * m4/longdouble.m4: Remove file.
105689         * config/srclist.txt: Don't mention longdouble.m4.
105690         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
105691         * lib/float+.h: Likewise.
105692         * lib/frexp.c: Likewise.
105693         * lib/printf-args.h: Likewise.
105694         * lib/printf-args.c: Likewise.
105695         * lib/printf-frexp.c: Likewise.
105696         * lib/printf-parse.c: Likewise.
105697         * lib/vasnprintf.c: Likewise.
105698         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
105699         * m4/intl.m4: Likewise.
105700         * m4/isnanl.m4: Likewise.
105701         * m4/printf.m4: Likewise.
105702         * m4/printf-frexpl.m4: Likewise.
105703         * m4/vasnprintf.m4: Likewise.
105704         * modules/allocsa (Files): Remove m4/longdouble.m4.
105705         * modules/gettext (Files): Likewise.
105706         * modules/relocatable-prog-wrapper (Files): Likewise.
105707         * modules/vasnprintf (Files): Likewise.
105708         * modules/isnanl (Files): Likewise.
105709         (Include): Simplify.
105710         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
105711         (Include): Simplify.
105712         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
105713         (Include): Simplify.
105714         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
105715         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105716         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
105717         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105718         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105719         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105720         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
105721         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105722         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
105723         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105724         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
105725         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
105726         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
105727         * tests/test-isnanl.c: Likewise.
105728         * tests/test-snprintf-posix.h: Likewise.
105729         * tests/test-sprintf-posix.h: Likewise.
105730         * tests/test-vasnprintf-posix.c: Likewise.
105731         * tests/test-vasnprintf-posix2.c: Likewise.
105732         * tests/test-vasprintf-posix.c: Likewise.
105734 2007-04-06  Bruno Haible  <bruno@clisp.org>
105736         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
105737         * lib/math_.h [__DECC]: Include the overridden include file through
105738         #include_next, outside the double-inclusion guard.
105739         * lib/stdio_.h [__DECC]: Likewise.
105740         * lib/stdlib_.h [__DECC]: Likewise.
105741         * lib/string_.h [__DECC]: Likewise.
105742         * lib/time_.h [__DECC]: Likewise.
105743         * lib/wchar_.h [__DECC]: Likewise.
105744         * lib/wctype_.h [__DECC]: Likewise.
105745         * lib/inttypes_.h [__DECC]: Likewise.
105746         Reported by Albert Chin <china@thewrittenword.com> in
105747         <http://lists.gnu.org/r/bug-gnulib/2007-04/msg00088.html>.
105749 2007-04-04  Eric Blake  <ebb9@byu.net>
105751         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
105752         1.5.x.
105754 2007-04-04  Bruno Haible  <bruno@clisp.org>
105756         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
105757         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
105759 2007-04-04  Bruno Haible  <bruno@clisp.org>
105761         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
105762         results for "%010a" of Infinity and NaN.
105763         * tests/test-vasprintf-posix.c (test_function): Likewise.
105764         * tests/test-snprintf-posix.h (test_function): Likewise.
105765         * tests/test-sprintf-posix.h (test_function): Likewise.
105766         * tests/test-fprintf-posix.h (test_function): Remove these tests.
105767         * tests/test-printf-posix.h (test_function): Likewise.
105768         * tests/test-fprintf-posix.out: Update.
105769         Needed for FreeBSD 6.1.
105771 2007-04-04  Bruno Haible  <bruno@clisp.org>
105773         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
105774         directly used by the gnulib modules nor by gnulib-tool.
105776 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
105778         * DEPENDENCIES: Give overall description of version dependency
105779         desirability.  Use more-typical names for apps.
105780         Add shell, coreutils, diffutils, grep, tar, gzip.
105782 2007-04-04  Simon Josefsson  <simon@josefsson.org>
105784         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
105786 2007-04-04  Karl Berry  <karl@gnu.org>
105788         * MODULES.html.sh (func_module): missing '.
105790 2007-04-03  Bruno Haible  <bruno@clisp.org>
105792         * modules/argmatch-tests (Makefile.am): New variable
105793         test_argmatch_LDADD.
105794         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
105795         * modules/array-list-tests (Makefile.am): New variable
105796         test_array_list_LDADD.
105797         * modules/array-oset-tests (Makefile.am): New variable
105798         test_array_oset_LDADD.
105799         * modules/avltree-list-tests (Makefile.am): New variable
105800         test_avltree_list_LDADD.
105801         * modules/avltree-oset-tests (Makefile.am): New variable
105802         test_avltree_oset_LDADD.
105803         * modules/avltreehash-list-tests (Makefile.am): New variable
105804         test_avltreehash_list_LDADD.
105805         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
105806         test_canonicalize_lgpl_LDADD.
105807         * modules/carray-list-tests (Makefile.am): New variable
105808         test_carray_list_LDADD.
105809         * modules/dirname-tests (Makefile.am): New variable
105810         test_dirname_LDADD.
105811         * modules/linked-list-tests (Makefile.am): New variable
105812         test_linked_list_LDADD.
105813         * modules/linkedhash-list-tests (Makefile.am): New variable
105814         test_linkedhash_list_LDADD.
105815         * modules/rbtree-list-tests (Makefile.am): New variable
105816         test_rbtree_list_LDADD.
105817         * modules/rbtree-oset-tests (Makefile.am): New variable
105818         test_rbtree_oset_LDADD.
105819         * modules/rbtreehash-list-tests (Makefile.am): New variable
105820         test_rbtreehash_list_LDADD.
105821         * modules/xvasprintf-tests (Makefile.am): New variable
105822         test_xvasprintf_LDADD.
105823         Reported by Eric Blake.
105825 2007-04-03  Eric Blake  <ebb9@byu.net>
105827         * DEPENDENCIES: Weaken m4 requirements.
105829 2007-04-03  Bruno Haible  <bruno@clisp.org>
105831         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
105832         * modules/isnanl-tests (configure.ac): Likewise.
105834 2007-04-03  Ben Pfaff  <blp@gnu.org>
105836         * modules/iconv_open: Add $(srcdir)/ to source directory
105837         references in Makefile fragments that call gperf, to fix VPATH
105838         builds.
105840 2007-04-03  Bruno Haible  <bruno@clisp.org>
105842         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
105843         * lib/ldexpl.c: Undo last change.
105845 2007-04-03  Bruno Haible  <bruno@clisp.org>
105847         * modules/printf-frexpl (Depends-on): Undo last change.
105848         (Files): Add m4/ldexpl.m4.
105850 2007-04-03  Bruno Haible  <bruno@clisp.org>
105852         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
105853         * modules/isnanl (Link): New section.
105855         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
105856         * modules/frexp (Link): New section.
105858         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
105859         * modules/frexpl (Link): New section.
105861         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
105862         * modules/ldexpl (Link): New section.
105864 2007-04-03  Bruno Haible  <bruno@clisp.org>
105866         * modules/TEMPLATE-EXTENDED: New file.
105867         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
105869 2007-04-03  Bruno Haible  <bruno@clisp.org>
105871         * DEPENDENCIES: New file.
105872         Suggested by Simon Josefsson.
105874 2007-04-03  Bruno Haible  <bruno@clisp.org>
105876         * doc/gnulib.texi: Escape @.
105878 2007-04-03  James Youngman  <jay@gnu.org>
105879         and Paul Eggert  <eggert@cs.ucla.edu>
105881         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
105882         birthtime on all systems that have birthtime, not just those which
105883         use st_birthtimensec rather than st_birthtim.  Putting zero in
105884         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
105885         that the birth time is not available for files on an NFS mount.
105887 2007-04-03  Simon Josefsson  <simon@josefsson.org>
105889         * modules/memxor: Move back from crypto/, suggested by Bruno.
105890         * modules/crypto/hmac-sha1: Fix memxor dependency.
105892         * modules/crypto/gc: Moved from ../.
105894 2007-04-02  Eric Blake  <ebb9@byu.net>
105896         * lib/ldexpl.c (includes): Avoid libm.
105898         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
105900 2007-04-02  Bruno Haible  <bruno@clisp.org>
105902         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
105903         on IRIX.
105905 2007-04-02  Bruno Haible  <bruno@clisp.org>
105907         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
105908         x86 or x86_64 platforms running MacOS X.
105909         Reported by Ryan Schmidt <@ryandesign.com>.
105911 2007-04-02  Bruno Haible  <bruno@clisp.org>
105913         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
105914         i386.
105916 2007-04-01  Simon Josefsson  <simon@josefsson.org>
105918         * modules/crypto/arcfour: Moved from ../.
105919         * modules/crypto/arcfour-tests: Moved from ../.
105920         * modules/crypto/arctwo: Moved from ../.
105921         * modules/crypto/arctwo-tests: Moved from ../.
105922         * modules/crypto/des: Moved from ../.
105923         * modules/crypto/des-tests: Moved from ../.
105924         * modules/crypto/gc-arcfour: Moved from ../.
105925         * modules/crypto/gc-arcfour-tests: Moved from ../.
105926         * modules/crypto/gc-arctwo: Moved from ../.
105927         * modules/crypto/gc-arctwo-tests: Moved from ../.
105928         * modules/crypto/gc-des: Moved from ../.
105929         * modules/crypto/gc-des-tests: Moved from ../.
105930         * modules/crypto/gc-hmac-md5: Moved from ../.
105931         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
105932         * modules/crypto/gc-hmac-sha1: Moved from ../.
105933         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
105934         * modules/crypto/gc-md2: Moved from ../.
105935         * modules/crypto/gc-md2-tests: Moved from ../.
105936         * modules/crypto/gc-md4: Moved from ../.
105937         * modules/crypto/gc-md4-tests: Moved from ../.
105938         * modules/crypto/gc-md5: Moved from ../.
105939         * modules/crypto/gc-md5-tests: Moved from ../.
105940         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
105941         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
105942         * modules/crypto/gc-random: Moved from ../.
105943         * modules/crypto/gc-rijndael: Moved from ../.
105944         * modules/crypto/gc-rijndael-tests: Moved from ../.
105945         * modules/crypto/gc-sha1: Moved from ../.
105946         * modules/crypto/gc-sha1-tests: Moved from ../.
105947         * modules/crypto/gc-tests: Moved from ../.
105948         * modules/crypto/hmac-md5: Moved from ../.
105949         * modules/crypto/hmac-md5-tests: Moved from ../.
105950         * modules/crypto/hmac-sha1: Moved from ../.
105951         * modules/crypto/hmac-sha1-tests: Moved from ../.
105952         * modules/crypto/md2: Moved from ../.
105953         * modules/crypto/md2-tests: Moved from ../.
105954         * modules/crypto/md4: Moved from ../.
105955         * modules/crypto/md4-tests: Moved from ../.
105956         * modules/crypto/md5: Moved from ../.
105957         * modules/crypto/md5-tests: Moved from ../.
105958         * modules/crypto/memxor: Moved from ../.
105959         * modules/crypto/rijndael: Moved from ../.
105960         * modules/crypto/rijndael-tests: Moved from ../.
105961         * modules/crypto/sha1: Moved from ../.
105963 2007-03-30  James Youngman  <jay@gnu.org>
105965         * tests/test-stat-time.c (prepare_test): use chmod() rather than
105966         rename() to change the ctime of a file (because ctime is unaffected
105967         by rename on jfs2 on AIX 5.1).
105968         (main): Start by doing cleanup, in case a previous run failed leaving
105969         test files behind.
105971 2007-03-31  Bruno Haible  <bruno@clisp.org>
105973         Support old proprietary implementations of iconv.
105974         * modules/iconv_open: New file.
105975         * lib/iconv_.h: New file.
105976         * m4/iconv_h.m4: New file.
105977         * lib/iconv_open.c: New file.
105978         * lib/iconv_open-aix.gperf: New file.
105979         * lib/iconv_open-hpux.gperf: New file.
105980         * lib/iconv_open-irix.gperf: New file.
105981         * lib/iconv_open-osf.gperf: New file.
105982         * m4/iconv_open.m4: New file.
105983         * modules/linebreak (Depends-on): Add iconv_open.
105984         * modules/striconv (Depends-on): Likewise.
105985         * modules/striconveh (Depends-on): Likewise.
105986         * modules/unicodeio (Depends-on): Likewise.
105987         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
105988         (iconv_t)(-1).
105989         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
105990         conversion if cd is (iconv_t)(-1).
105991         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
105992         is not possible.
105994 2007-03-31  Bruno Haible  <bruno@clisp.org>
105996         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
105997         work on Solaris either. Protect also second use of "autodetect_jp".
105999 2007-03-31  Bruno Haible  <bruno@clisp.org>
106001         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
106002         the function is not present.
106004 2007-03-31  Bruno Haible  <bruno@clisp.org>
106006         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
106007         the function is not present.
106009 2007-03-31  Bruno Haible  <bruno@clisp.org>
106011         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
106012         a bug in HP-UX iconv_open().
106014 2007-03-31  Bruno Haible  <bruno@clisp.org>
106016         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
106017         (Mathematics <math.h>): New section, add fpieee.
106018         (Input/output <stdio.h>): Add fseterr.
106019         (Mathematics <math.h>): New section, add printf-frexp.
106020         (Container data structures): Add sublist.
106021         (Core language properties): Add fpucw, inline.
106022         (Functions for greatest-width integer types <inttypes.h>): Add
106023         imaxabs, imaxdiv, inttypes.
106024         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
106025         isnanl-nolibm, ldexp.
106026         (Mathematics <math.h>): New section, add printf-frexpl.
106027         (Support for systems lacking POSIX:2001): Add fprintf-posix,
106028         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
106029         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
106030         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
106031         (Unicode string functions): Add unistr/u*-mbtoucr.
106032         (Java): Add javacomp-script, javaexec-script.
106033         (C#): Add csharpcomp-script, csharpexec-script.
106034         (Support for building libraries and executables): Add havelib,
106035         relocatable-*.
106036         (Support for maintaining and releasing projects): Renamed from
106037         'Support for maintaining and release projects'. Add announce-gen.
106039 2007-03-31  Bruno Haible  <bruno@clisp.org>
106041         * README: Talk primarily about git.
106042         (git and CVS): Renamed from CVS.
106043         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
106044         gnulib is available through git.
106045         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
106047 2007-03-30  Bruno Haible  <bruno@clisp.org>
106049         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
106050         * lib/poll_.h: Likewise.
106051         * lib/stat_.h: Likewise.
106052         * lib/sys_time_.h: Likewise.
106053         * lib/sysexit_.h: Likewise.
106054         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
106055         * lib/stdbool_.h: Likewise.
106056         * lib/byteswap_.h: Add double-inclusion guard.
106058 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
106060         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
106062 2007-03-30  Karl Berry  <karl@gnu.org>
106064         * config/srclist-update: double space after USA in the license
106065         substitution, since that's how it's usually (?) written.
106067 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
106069         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
106070         reported by Bruno Haible.
106072 2007-03-29  Bruno Haible  <bruno@clisp.org>
106074         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
106075         a bug in AIX iconv().
106077 2007-03-29  Bruno Haible  <bruno@clisp.org>
106079         * modules/ldexpl-tests: New file.
106080         * tests/test-ldexpl.c: New file.
106082 2007-03-29  Bruno Haible  <bruno@clisp.org>
106084         * lib/ldexpl.c: Include fpucw.h.
106085         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
106086         multiplication.
106087         * modules/ldexpl (Depends-on): Add fpucw.
106089 2007-03-29  Bruno Haible  <bruno@clisp.org>
106091         * modules/ldexpl: New file.
106092         * m4/ldexpl.m4: New file.
106093         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
106094         set.
106095         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
106096         REPLACE_LDEXPL.
106097         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
106098         REPLACE_LDEXPL.
106099         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
106100         gl_FUNC_LDEXPL_WORKS.
106101         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
106102         * modules/mathl (Files): Remove lib/ldexpl.c.
106103         (Depends-on): Add ldexpl.
106105 2007-03-29  Bruno Haible  <bruno@clisp.org>
106107         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
106109 2007-03-29  Bruno Haible  <bruno@clisp.org>
106111         * tests/test-striconveh.c (main): Don't assume that a direct conversion
106112         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
106113         and possibly also HP-UX.
106114         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
106115         work on AIX, IRIX, HP-UX, OSF/1.
106116         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
106117         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
106118         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
106119         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
106120         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
106121         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
106123 2007-03-29  Bruno Haible  <bruno@clisp.org>
106125         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
106127 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106129         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
106130         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
106132 2007-03-29  Eric Blake  <ebb9@byu.net>
106134         * lib/acl-internal.h: Remove redundant include.
106135         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
106136         Cygwin when a file is locked.
106138 2007-03-29  Bruno Haible  <bruno@clisp.org>
106140         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
106141         file.
106142         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
106144 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
106146         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
106147         try to remove a parent directory if the child couldn't be removed
106148         (except for the first rmdir, which could fail because the child
106149         doesn't exist).  Problem reported by Jeff Blaine in
106150         <http://lists.gnu.org/r/bug-tar/2007-03/msg00014.html>.
106152 2007-03-28  Bruno Haible  <bruno@clisp.org>
106154         * lib/striconveh.c (utf8conv_carefully): New function.
106155         (mem_cd_iconveh_internal): Invoke it.
106157 2007-03-28  Bruno Haible  <bruno@clisp.org>
106159         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
106160         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
106161         input.
106162         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
106163         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
106164         unistr/u8-uctomb.
106166 2007-03-28  Bruno Haible  <bruno@clisp.org>
106168         * modules/unistr/u8-mbtoucr: New file.
106169         * lib/unistr/u8-mbtoucr.c: New file.
106170         * modules/unistr/u16-mbtoucr: New file.
106171         * lib/unistr/u16-mbtoucr.c: New file.
106172         * modules/unistr/u16-mbtoucr: New file.
106173         * lib/unistr/u16-mbtoucr.c: New file.
106174         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
106176 2007-03-27  Simon Josefsson  <simon@josefsson.org>
106177             Bruno Haible  <bruno@clisp.org>
106179         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
106180         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
106181         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
106183         * m4/stdio_h.m4: Add stubs for vasprintf too.
106185         * modules/stdio: Support vasprintf in sed command.
106187         * modules/vasprintf: Depend on stdio for prototypes.  Remove
106188         vasprintf.h.  Add stdio module indicator.
106190         * lib/stdio_.h: Declare asprintf and vasprintf, based on
106191         vasprintf.h.
106193         * lib/vasprintf.h: File removed.
106195         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
106196         * lib/vasprintf.c: Ditto.
106197         * lib/xvasprintf.c: Ditto.
106198         * tests/test-vasprintf-posix.c: Ditto.
106199         * tests/test-vasprintf.c: Ditto.
106201 2007-03-27  Bruno Haible  <bruno@clisp.org>
106203         Make vasnprintf multithread-safe.
106204         * lib/vasnprintf.c (decimal_point_char): New function.
106205         (VASNPRINTF): Use it.
106206         Suggested by Simon Josefsson.
106208 2007-03-27  Eric Blake  <ebb9@byu.net>
106210         Support sub-second birthtime on cygwin.
106211         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
106212         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
106213         (get_stat_birthtime): Also work with st_birthtim.
106215 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
106217         * lib/stat-time.h (USE_BIRTHTIME): Remove.
106218         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
106219         (get_stat_birthtime_ns): Do not try to use "spare" fields.
106220         (get_stat_birthtime_ns): Simplify compile-time tests.
106221         (get_stat_birthtime): Change the API to look like
106222         get_stat_mtime etc., except return a negative tv_nsec on error.
106223         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
106224         Don't check for "spare" fields.
106225         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
106226         or for struct stat.st_birthtime, as these tests aren't used.
106227         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
106229 2007-03-27  Bruno Haible  <bruno@clisp.org>
106231         * lib/stat-time.h: Include <sys/stat.h>.
106233 2007-03-27  James Youngman  <jay@gnu.org>
106235         * lib/stat-time.h (get_stat_birthtime): New function for
106236           retrieving st_birthtime as provided by UFS2 (hence *BSD).
106237         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
106238           and its variants.
106239         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
106240         * modules/stat-time-test: New file.
106241         * tests/test-stat-time.c: New test, devised by Bruno Haible.
106243 2007-03-26  Bruno Haible  <bruno@clisp.org>
106245         Better support of signalling NaNs.
106246         * lib/atanl.c: Include isnanl.h.
106247         (atanl): Perform test for NaN at the beginning of the function and
106248         through a call to isnanl.
106249         * lib/cosl.c: Include isnanl.h.
106250         (cosl): Perform test for NaN at the beginning of the function and
106251         through a call to isnanl.
106252         * lib/ldexpl.c: Include isnanl.h.
106253         (ldexpl): Perform test for NaN through a call to isnanl.
106254         * lib/logl.c: Include isnanl.h.
106255         (logl): Perform test for NaN at the beginning of the function and
106256         through a call to isnanl.
106257         * lib/sinl.c: Include isnanl.h.
106258         (sinl): Perform test for NaN at the beginning of the function and
106259         through a call to isnanl.
106260         * lib/sqrtl.c: Include isnanl.h.
106261         (sqrtl): Perform test for NaN at the beginning of the function and
106262         through a call to isnanl.
106263         * lib/tanl.c: Include isnanl.h.
106264         (tanl): Perform test for NaN at the beginning of the function and
106265         through a call to isnanl.
106266         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
106267         * modules/mathl (Depends-on): Add isnanl.
106269 2007-03-26  Eric Blake  <ebb9@byu.net>
106271         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
106272         regression in logic sense of previous patch.
106274 2007-03-26  Bruno Haible  <bruno@clisp.org>
106276         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
106277         unportable shell command "if ! ...".
106278         Reported by Ralf Wildenhues.
106280 2007-03-25  Bruno Haible  <bruno@clisp.org>
106282         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
106283         <sysexits.h> file, and only add EX_CONFIG.
106284         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
106285         absolute file name and whether it is sufficient. Substitute also
106286         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
106287         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
106288         ABSOLUTE_SYSEXITS_H into sysexits.h.
106290 2007-03-25  Bruno Haible  <bruno@clisp.org>
106292         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
106293         hints is NULL.
106295 2007-03-25  Bruno Haible  <bruno@clisp.org>
106297         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
106298         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
106300 2007-03-25  Bruno Haible  <bruno@clisp.org>
106302         * lib/vasnprintf.c: Include langinfo.h.
106303         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
106304         multithread-safe.
106305         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
106306         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
106307         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
106308         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
106309         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
106310         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
106311         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
106312         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
106313         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
106314         Reported by Simon Josefsson.
106316 2007-03-25  Bruno Haible  <bruno@clisp.org>
106318         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
106319         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
106320         * modules/vasnprintf (Depends-on): Add stdint.
106322 2007-03-25  Bruno Haible  <bruno@clisp.org>
106324         * modules/fpieee: New file.
106325         * m4/fpieee.m4: New file.
106326         * modules/isnan-nolibm (Depends-on): Add fpieee.
106327         * modules/isnanl-nolibm (Depends-on): Add fpieee.
106328         * modules/isnanl (Depends-on): Add fpieee.
106330 2007-03-25  Bruno Haible  <bruno@clisp.org>
106332         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
106334 2007-03-25  Bruno Haible  <bruno@clisp.org>
106336         Avoid test failures on IRIX 6.5.
106337         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
106338         (main): Use it.
106339         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
106340         macros.
106341         (main): Use them.
106343 2007-03-25  Bruno Haible  <bruno@clisp.org>
106345         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
106346         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
106347         exists but doesn't work.
106348         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
106349         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
106350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
106351         * modules/math (Makefile.am): Substitute also REPLACE_FREXPL into
106352         math.h.
106354 2007-03-25  Bruno Haible  <bruno@clisp.org>
106356         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
106357         returns inf. Needed on IRIX 6.5.
106359 2007-03-25  Bruno Haible  <bruno@clisp.org>
106361         * tests/test-frexpl.c: Include isnanl-nolibm.h.
106362         (main): Use isnanl instead of x != x idiom.
106363         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
106365         * tests/test-frexp.c: Include isnan.h.
106366         (main): Use isnan instead of x != x idiom.
106367         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
106369 2007-03-25  Bruno Haible  <bruno@clisp.org>
106371         * tests/test-frexp.c (NaN): New function/macro.
106372         (main): Use it instead of 0.0 / 0.0.
106373         * tests/test-isnan.c (NaN): New function/macro.
106374         (main): Use it instead of 0.0 / 0.0.
106375         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
106376         (test_function): Use it instead of 0.0 / 0.0.
106377         * tests/test-vasprintf-posix.c (NaN): New function/macro.
106378         (test_function): Use it instead of 0.0 / 0.0.
106379         * tests/test-snprintf-posix.h (NaN): New function/macro.
106380         (test_function): Use it instead of 0.0 / 0.0.
106381         * tests/test-sprintf-posix.h (NaN): New function/macro.
106382         (test_function): Use it instead of 0.0 / 0.0.
106383         * tests/test-fprintf-posix.h (NaN): New function/macro.
106384         (test_function): Use it instead of 0.0 / 0.0.
106385         * tests/test-printf-posix.h (NaN): New function/macro.
106386         (test_function): Use it instead of 0.0 / 0.0.
106388         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
106390 2007-03-25  Bruno Haible  <bruno@clisp.org>
106392         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
106394 2007-03-25  Bruno Haible  <bruno@clisp.org>
106396         * lib/regexec.c (merge_state_with_log): Make static.
106398 2007-03-25  Bruno Haible  <bruno@clisp.org>
106400         * lib/trigl.c (kernel_rem_pio2): Make static.
106402 2007-03-25  Bruno Haible  <bruno@clisp.org>
106404         * lib/sincosl.c (sincosl_table): Make static.
106406 2007-03-25  Bruno Haible  <bruno@clisp.org>
106408         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
106409         if the compiler does not support C99.
106411 2007-03-25  Bruno Haible  <bruno@clisp.org>
106413         * modules/time (Makefile.am): Ensure all rule action lines start with a
106414         tab.
106416 2007-03-24  Bruno Haible  <bruno@clisp.org>
106418         * modules/tsearch-tests: New file.
106419         * tests/test-tsearch.sh: New file.
106420         * tests/test-tsearch.c: New file, mostly copied from glibc.
106422         * modules/search-tests: New file.
106423         * tests/test-search.c: New file.
106425         * modules/search: New file.
106426         * lib/search_.h: New file, incorporating lib/tsearch.h.
106427         * m4/search_h.m4: New file.
106428         * lib/tsearch.h: Remove file.
106429         * lib/tsearch.c: Include search.h instead of tsearch.h.
106430         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
106431         HAVE_TSEARCH.
106432         * modules/tsearch (Files): Remove lib/tsearch.h.
106433         (Depends-on): Add search.
106434         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
106435         (Include): Change tsearch.h into search.h.
106437 2007-03-24  Bruno Haible  <bruno@clisp.org>
106439         * modules/fpucw: New file.
106440         * lib/fpucw.h: New file.
106441         * lib/frexp.c: Include fpucw.h.
106442         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106443         (FUNC): Use them.
106444         * lib/printf-frexp.c: Include fpucw.h.
106445         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
106446         (FUNC): Use them.
106447         * lib/vasnprintf.c: Include fpucw.h.
106448         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
106449         'long double' calculations.
106450         * tests/test-frexpl.c: Include fpucw.h.
106451         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106452         * tests/test-printf-frexpl.c: Include fpucw.h.
106453         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
106454         * modules/frexpl (Depends-on): Add fpucw.
106455         * modules/printf-frexpl (Depends-on): Likewise.
106456         * modules/fprintf-posix (Depends-on): Likewise.
106457         * modules/snprintf-posix (Depends-on): Likewise.
106458         * modules/sprintf-posix (Depends-on): Likewise.
106459         * modules/vasnprintf-posix (Depends-on): Likewise.
106460         * modules/vasprintf-posix (Depends-on): Likewise.
106461         * modules/vfprintf-posix (Depends-on): Likewise.
106462         * modules/vsnprintf-posix (Depends-on): Likewise.
106463         * modules/vsprintf-posix (Depends-on): Likewise.
106464         * modules/frexpl-tests (Depends-on): Likewise.
106465         * modules/printf-frexpl-tests (Depends-on): Likewise.
106467 2007-03-24  Bruno Haible  <bruno@clisp.org>
106469         * lib/float+.h: New file.
106470         * lib/isnan.c: Include float+.h.
106471         (SIZE): New macro.
106472         (FUNC): Compare only SIZE bytes of the value.
106473         * lib/vasnprintf.c: Include float+.h.
106474         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
106475         SIZEOF_LDBL or SIZEOF_DBL bytes.
106476         * modules/isnan-nolibm (Files): Add lib/float+.h.
106477         * modules/isnanl-nolibm (Files): Add lib/float+.h.
106478         * modules/isnanl (Files): Add lib/float+.h.
106479         * modules/vasnprintf (Files): Add lib/float+.h.
106481 2007-03-24  Bruno Haible  <bruno@clisp.org>
106483         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
106484         include isnanl-nolibm.h.
106486 2007-03-24  Bruno Haible  <bruno@clisp.org>
106488         * tests/test-read-file.c (main): Don't produce spurious output for
106489         expected situations. Make the test fail if it encountered unexpected
106490         results.
106492 2007-03-24  Bruno Haible  <bruno@clisp.org>
106494         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
106495         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
106497 2007-03-24  Bruno Haible  <bruno@clisp.org>
106499         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
106501 2007-03-24  Bruno Haible  <bruno@clisp.org>
106503         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
106504         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
106506         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
106507         * modules/utf8-ucs4: Turn into a symbolic link to module
106508         unistr/u8-mbtouc.
106510         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
106511         utf8-ucs4-unsafe.
106512         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
106513         unistr/u8-mbtouc-unsafe.
106515         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
106516         * modules/utf16-ucs4: Turn into a symbolic link to module
106517         unistr/u16-mbtouc.
106519         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
106520         utf16-ucs4-unsafe.
106521         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
106522         unistr/u16-mbtouc-unsafe.
106524         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
106525         * modules/ucs4-utf8: Turn into a symbolic link to module
106526         unistr/u8-ubtomb.
106528         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
106529         * modules/ucs4-utf16: Turn into a symbolic link to module
106530         unistr/u16-ubtomb.
106532 2007-03-24  Bruno Haible  <bruno@clisp.org>
106534         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
106535         Enable the function only if HAVE_INLINE.
106536         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
106537         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106538         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
106539         Enable the function only if HAVE_INLINE.
106540         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
106541         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
106542         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
106543         Enable the function only if HAVE_INLINE.
106544         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
106545         Enable the function only if HAVE_INLINE.
106546         * modules/utf8-ucs4: Update.
106547         * modules/utf8-ucs4-unsafe: Update.
106548         * modules/utf16-ucs4: Update.
106549         * modules/utf16-ucs4-unsafe: Update.
106550         * modules/ucs4-utf8: Update.
106551         * modules/ucs4-utf16: Update.
106553 2007-03-24  Bruno Haible  <bruno@clisp.org>
106555         * lib/utf8-ucs4.h: Remove file.
106556         * lib/utf8-ucs4-unsafe.h: Remove file.
106557         * lib/utf16-ucs4.h: Remove file.
106558         * lib/utf16-ucs4-unsafe.h: Remove file.
106559         * lib/ucs4-utf8.h: Remove file.
106560         * lib/ucs4-utf16.h: Remove file.
106561         * lib/unistr.h: Include their previous contents.
106562         * m4/utf-ucs4.m4: Remove file.
106563         * m4/ucs4-utf.m4: Remove file.
106564         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
106565         (Depends-on): Add unistr/base.
106566         (configure.ac): Remove gl_UTF_UCS4.
106567         (Makefile.am): Update.
106568         (Include): Change to unistr.h.
106569         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
106570         (Depends-on): Add unistr/base.
106571         (configure.ac): Remove gl_UTF_UCS4.
106572         (Makefile.am): Update.
106573         (Include): Change to unistr.h.
106574         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
106575         (Depends-on): Add unistr/base.
106576         (configure.ac): Remove gl_UTF_UCS4.
106577         (Makefile.am): Update.
106578         (Include): Change to unistr.h.
106579         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
106580         (Depends-on): Add unistr/base.
106581         (configure.ac): Remove gl_UTF_UCS4.
106582         (Makefile.am): Update.
106583         (Include): Change to unistr.h.
106584         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
106585         (Depends-on): Add unistr/base.
106586         (configure.ac): Remove gl_UCS4_UTF.
106587         (Makefile.am): Update.
106588         (Include): Change to unistr.h.
106589         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
106590         (Depends-on): Add unistr/base.
106591         (configure.ac): Remove gl_UCS4_UTF.
106592         (Makefile.am): Update.
106593         (Include): Change to unistr.h.
106594         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
106595         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
106596         utf8-ucs4-unsafe.h.
106597         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
106598         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
106599         utf16-ucs4-unsafe.h.
106600         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
106601         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
106602         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
106603         * lib/unistr/u8-strchr.c: Likewise.
106604         * lib/unistr/u8-strrchr.c: Likewise.
106605         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
106606         * lib/unistr/u16-strchr.c: Likewise.
106607         * lib/unistr/u16-strrchr.c: Likewise.
106608         * lib/striconveh.c: Update.
106609         * lib/linebreak.c: Update.
106611 2007-03-24  Bruno Haible  <bruno@clisp.org>
106613         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
106614         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
106616 2007-03-22  Bruno Haible  <bruno@clisp.org>
106618         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
106620 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
106622         * MODULES.html.sh (File system functions): New module write-any-file.
106623         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
106624         * m4/write-any-file.m4: New files.
106626 2007-03-23  Eric Blake  <ebb9@byu.net>
106628         * gnulib-tool: Rearrange space-tab sequences, since some editors
106629         like to eat them.
106631 2007-03-23  Eric Blake  <ebb9@byu.net>
106633         * lib/version-etc.c (version_etc_va): Update license wording to
106634         be more concise.  Recommended by Richard Stallman.
106636 2007-03-22  Bruno Haible  <bruno@clisp.org>
106638         * lib/poll.c (MSG_PEEK): New fallback definition.
106640 2007-03-22  Bruno Haible  <bruno@clisp.org>
106642         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
106643         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
106644         (main): Update.
106645         Fixes a compilation error on BeOS.
106647 2007-03-22  Bruno Haible  <bruno@clisp.org>
106649         * modules/frexpl-tests: New file.
106650         * tests/test-frexpl.c: New file.
106652         * modules/frexpl: New file.
106653         * m4/frexpl.m4: New file.
106654         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
106655         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
106656         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
106657         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
106658         (Depends-on): Add frexpl. Remove isnanl-nolibm.
106659         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
106661 2007-03-22  Bruno Haible  <bruno@clisp.org>
106663         * lib/frexpl.c: Share code with lib/frexp.c.
106664         * modules/mathl (Files): Add lib/frexp.c.
106665         (Depends-on): Add isnanl-nolibm.
106667 2007-03-22  Bruno Haible  <bruno@clisp.org>
106669         * modules/printf-frexp (Files): Add m4/frexp.m4.
106670         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
106671         only if the found frexp function actually works.
106673 2007-03-22  Bruno Haible  <bruno@clisp.org>
106675         * lib/frexp.c: Remove older implementation that uses divisions.
106677 2007-03-21  Bruno Haible  <bruno@clisp.org>
106679         * modules/frexp-tests: New file.
106680         * tests/test-frexp.c: New file.
106682         * modules/frexp: New file.
106683         * lib/frexp.c: New file.
106684         * m4/frexp.m4: New file.
106685         * lib/math_.h (frexp): New declaration.
106686         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
106687         REPLACE_FREXP.
106688         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
106690 2007-03-21  Bruno Haible  <bruno@clisp.org>
106692         * modules/isnanl-tests: New file.
106693         * tests/test-isnanl.c: New file.
106695         * modules/isnanl: New file.
106696         * lib/isnanl.h: New file.
106697         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
106698         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
106699         gl_FUNC_ISNANL_WORKS.
106700         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
106701         New macros.
106703 2007-03-21  Bruno Haible  <bruno@clisp.org>
106705         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
106706         lib/isnanl.h.
106707         (Include): Update.
106708         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
106709         * lib/vasnprintf.c: Update.
106710         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
106711         tests/test-isnanl.h, remove tests/test-isnanl.c.
106712         (Makefile.am): Update.
106713         * tests/test-isnanl-nolibm.c: New file.
106714         * tests/test-isnanl.h: New file.
106715         * tests/test-isnanl.c: Remove file.
106717 2007-03-21  Jim Meyering  <jim@meyering.net>
106719         When trying to open ".", treat ESTALE like EACCES.
106720         * lib/savewd.c (savewd_save): Resort to forking not just upon
106721         failure with EACCES, but also when errno is ESTALE.
106723 2007-03-20  Bruno Haible  <bruno@clisp.org>
106725         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
106726         Needed on AIX 5.1. Reported by Matthew Woehlke.
106728 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106730         Suggestions by Bruno Haible:
106731         * lib/acl-internal.h: Include "gettext.h" rather than rolling
106732         our own.
106733         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
106734         * modules/acl (Depends-on): Add gettext.
106736 2007-03-19  Bruno Haible  <bruno@clisp.org>
106738         * modules/iconvme: Remove file.
106739         * lib/iconvme.h: Remove file.
106740         * lib/iconvme.c: Remove file.
106741         * m4/iconvme.m4: Remove file.
106743 2007-03-19  Bruno Haible  <bruno@clisp.org>
106745         * doc/relocatable-maint.texi: Break long shell script line.
106746         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106748 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106750         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
106751         handle file_has_acl.
106752         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
106753         * lib/acl.c: Move header inclusions and related macro defns into
106754         lib/acl-internal.h.
106755         (S_ISLNK): Remove defn, since that's now done for us.
106756         (file_has_acl): Move to lib/file-has-acl.c.
106757         Call acl_trivial if available.  This is the crucial part of the fix.
106758         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
106759         shared within the library.  Rewrite a bit, partly to make it compatible
106760         with the GNU coding style.
106761         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
106762         Remove unnecessary double-quotes.
106763         Don't test for acl_to_text; the build will catch that.
106764         Replace acl_entries if it doesn't exist and it is needed.
106765         Check for -lsec and acl_trivial (as used on Solaris 10).
106766         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
106767         lib/file-has-acl.c.
106768         (Depends-on): Add sys_stat, for S_ISLNK.
106770 2007-03-19  Ben Pfaff  <blp@gnu.org>
106772         * doc/gnulib.texi: Fix typos.
106773         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
106775 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
106777         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
106778         If size is zero here, buf must be zero.
106780 2007-03-19  Simon Josefsson  <simon@josefsson.org>
106782         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
106783         <bruno@clisp.org>.
106785 2007-03-18  Bruno Haible  <bruno@clisp.org>
106787         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
106788         Suggested by Eric Blake.
106790 2007-03-18  Ben Pfaff  <blp@gnu.org>
106792         * doc/relocatable.texi: Recommend using as prefix a directory
106793         that does not exist and will never be created.  Based on
106794         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
106795         and others.
106797 2007-03-17  Bruno Haible  <bruno@clisp.org>
106799         * lib/fchownat.c: Include lchown.h.
106801 2007-03-17  Bruno Haible  <bruno@clisp.org>
106803         Fix endless loop when the given allocated size was > INT_MAX.
106804         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
106805         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
106806         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
106807         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
106808         * lib/sprintf.c (sprintf): Likewise.
106810 2007-03-17  Bruno Haible  <bruno@clisp.org>
106812         * tests/test-argp-2.sh (func_compare): Output a context diff.
106814 2007-03-17  Bruno Haible  <bruno@clisp.org>
106816         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
106817         locale's decimal-point character.
106819 2007-03-17  Bruno Haible  <bruno@clisp.org>
106821         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
106822         before comparing it. Needed because on some platforms (e.g. x86) a
106823         'long double' occupies less bytes than sizeof (long double).
106825 2007-03-17  Bruno Haible  <bruno@clisp.org>
106827         * tests/test-crc.c (main): Make printf statements 64-bit clean.
106828         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
106829         * tests/test-getaddrinfo.c (simple): Likewise.
106830         * tests/test-read-file.c (main): Likewise.
106832 2007-03-17  Bruno Haible  <bruno@clisp.org>
106834         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
106836 2007-03-17  Bruno Haible  <bruno@clisp.org>
106838         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
106839         unused variable.
106841 2007-03-17  Bruno Haible  <bruno@clisp.org>
106843         * tests/test-c-strcasecmp.c: Include c-strcase.h.
106844         * tests/test-c-strncasecmp.c: Likewise.
106846 2007-03-17  Bruno Haible  <bruno@clisp.org>
106848         * modules/stdlib (Depends-on): Add unistd.
106849         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
106850         Needed for MacOS X 10.3.
106852 2007-03-17  Bruno Haible  <bruno@clisp.org>
106854         * lib/unistr/u-strdup.h: Include <stdlib.h>.
106856 2007-03-17  Bruno Haible  <bruno@clisp.org>
106858         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
106860 2007-03-17  Bruno Haible  <bruno@clisp.org>
106862         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
106863         to reflect files copied from gnulib (with or without modifications).
106864         Suggested by Jim Meyering.
106866 2007-03-17  Eric Blake  <ebb9@byu.net>
106868         * NEWS: Document stdlib change from 2007-02-18.
106870 2007-03-17  Jim Meyering  <jim@meyering.net>
106872         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
106873         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
106874         someone uses a name containing shell meta-characters.
106875         Reported by Alfred M. Szmidt.
106877         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
106879 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106881         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
106882         and copy gettext configuration files only if configure.ac contains
106883         a use of AM_GNU_GETTEXT_VERSION.
106885 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
106887         * build-aux/bootstrap (gnulib_name): New variable.
106888         (gnulib_tool_options): Use it.
106890 2007-03-13  Simon Josefsson  <simon@josefsson.org>
106892         * tests/test-des.c: Use new namespace.
106894 2007-03-15  Bruno Haible  <bruno@clisp.org>
106896         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
106897         Reported by James Youngman <jay@gnu.org>.
106899 2007-03-15  Bruno Haible  <bruno@clisp.org>
106901         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
106902         declared prototype. Needed with cc on OSF/1 5.1.
106904 2007-03-15  Bruno Haible  <bruno@clisp.org>
106906         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
106907         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
106908         (struct gl_list_implementation): Add dispose_fn argument to the
106909         'create_empty', 'create' methods.
106910         (struct gl_list_impl_base): Add field 'dispose_fn'.
106911         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
106912         argument.
106913         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
106914         dispose_fn argument.
106915         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
106916         dispose_fn on the dropped values.
106917         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
106918         dispose_fn argument.
106919         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
106920         dropped values.
106921         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
106922         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106923         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
106924         (gl_tree_remove_node): Call dispose_fn on the dropped value.
106925         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
106926         argument.
106927         (gl_tree_list_free): Call dispose_fn on the dropped values.
106928         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
106929         the dropped values.
106930         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
106931         Add dispose_fn argument.
106932         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
106933         Call dispose_fn on the dropped values.
106934         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
106935         Add dispose_fn argument.
106936         (gl_sublist_create): Initialize the 'dispose_fn' field.
106937         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
106938         * tests/test-array_list.c (main): Update.
106939         * tests/test-carray_list.c (main): Update.
106940         * tests/test-avltree_list.c (main): Update.
106941         * tests/test-rbtree_list.c (main): Update.
106942         * tests/test-avltreehash_list.c (main): Update.
106943         * tests/test-rbtreehash_list.c (main): Update.
106944         * tests/test-linked_list.c (main): Update.
106945         * tests/test-linkedhash_list.c (main): Update.
106946         * tests/test-array_oset.c (main): Update.
106948 2007-03-15  Bruno Haible  <bruno@clisp.org>
106950         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
106951         (gl_oset_create_empty): Add dispose_fn argument.
106952         (struct gl_oset_implementation): Add dispose_fn argument to
106953         'create_empty' method.
106954         (struct gl_oset_impl_base): Add dispose_fn field.
106955         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
106956         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
106957         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
106958         values.
106959         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
106960         (gl_tree_oset_free): Call dispose_fn on the dropped values.
106961         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106962         dropped value.
106963         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
106964         dropped value.
106965         * tests/test-array_oset.c (main): Update.
106966         * tests/test-avltree_oset.c (main): Update.
106967         * tests/test-rbtree_oset.c (main): Update.
106968         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
106970 2007-03-13  Bruno Haible  <bruno@clisp.org>
106972         * tests/test-stdbool.c (i): Update after last patch.
106974 2007-03-12  Bruno Haible  <bruno@clisp.org>
106976         * lib/quotearg.c: Include <wctype.h> early, before the definition of
106977         the iswprint macro. Needed on Solaris 2.5.1.
106979 2007-03-12  Bruno Haible  <bruno@clisp.org>
106981         * tests/test-printf-frexp.c (main): Declare x as volatile.
106983 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106985         * doc/gnulib.texi (Build robot for gnulib): New section.
106987 2007-03-12  Jim Meyering  <jim@meyering.net>
106989         * build-aux/bootstrap: New file.
106990         * build-aux/bootstrap.conf: New file, from coreutils.
106992 2007-03-11  Bruno Haible  <bruno@clisp.org>
106994         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
106996 2007-03-12  Simon Josefsson  <simon@josefsson.org>
106998         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
106999         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
107000         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
107002 2007-03-11  Bruno Haible  <bruno@clisp.org>
107004         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
107005         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
107007 2007-03-11  Bruno Haible  <bruno@clisp.org>
107009         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
107010         formula. Needed for SunPRO C 5.0.
107012 2007-03-11  Bruno Haible  <bruno@clisp.org>
107014         * modules/long-options (Depends-on): Add getopt.
107016 2007-03-11  Bruno Haible  <bruno@clisp.org>
107018         * modules/modechange (Depends-on): Add stdbool.
107020 2007-03-11  Bruno Haible  <bruno@clisp.org>
107022         * modules/i-ring (Depends-on): Add stdbool.
107024 2007-03-11  Bruno Haible  <bruno@clisp.org>
107026         * modules/gc-des (Depends-on): Add stdbool.
107028 2007-03-11  Bruno Haible  <bruno@clisp.org>
107030         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
107032 2007-03-11  Bruno Haible  <bruno@clisp.org>
107034         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
107036 2007-03-11  Bruno Haible  <bruno@clisp.org>
107038         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
107040 2007-03-11  Bruno Haible  <bruno@clisp.org>
107042         * lib/vasnprintf.c (sprintf): Undefine.
107044 2007-03-11  Bruno Haible  <bruno@clisp.org>
107046         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
107047         initializers in SunPRO C and Compaq C compilers.
107049 2007-03-11  Bruno Haible  <bruno@clisp.org>
107051         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
107052         decrementing code ANSI C compliant.
107054 2007-03-11  Bruno Haible  <bruno@clisp.org>
107056         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
107057         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
107059 2007-03-11  Bruno Haible  <bruno@clisp.org>
107061         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
107062         <stdbool.h> substitute doesn't pass.
107064 2007-03-11  Bruno Haible  <bruno@clisp.org>
107066         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
107068 2007-03-11  Bruno Haible  <bruno@clisp.org>
107070         * gnulib-tool (func_create_megatestdir): Create also an autobuild
107071         script, for submission to autobuild.josefsson.org.
107073 2007-03-10  Bruno Haible  <bruno@clisp.org>
107075         * modules/canonicalize-lgpl-tests: New file.
107076         * tests/test-canonicalize-lgpl.sh: New file.
107077         * tests/test-canonicalize-lgpl.c: New file.
107079         * modules/c-strcase-tests: New file.
107080         * tests/test-c-strcase.sh: New file.
107081         * tests/test-c-strcasecmp.c: New file.
107082         * tests/test-c-strncasecmp.c: New file.
107084         * modules/atexit-tests: New file.
107085         * tests/test-atexit.sh: New file.
107086         * tests/test-atexit.c: New file.
107088 2007-03-10  Bruno Haible  <bruno@clisp.org>
107090         * tests/test-binary-io.sh: Use temporary filenames that are not so
107091         likely to clash with those of other tests (in a parallel make).
107092         * tests/test-binary-io.c: Likewise.
107094 2007-03-10  Bruno Haible  <bruno@clisp.org>
107096         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
107097         fallback; use #error instead.
107098         Suggested by Simon Josefsson.
107100 2007-03-10  Bruno Haible  <bruno@clisp.org>
107102         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
107103         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
107104         first and the last.
107106 2007-03-10  Bruno Haible  <bruno@clisp.org>
107108         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
107110 2007-03-10  Bruno Haible  <bruno@clisp.org>
107112         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
107113         "make distcheck".
107114         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
107115         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
107116         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
107118 2007-03-10  Bruno Haible  <bruno@clisp.org>
107120         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
107121         variable.
107122         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
107123         variable.
107125 2007-03-09  Eric Blake  <ebb9@byu.net>
107126         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
107128         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
107129         types are not being provided by gnulib.
107130         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
107131         types are supported.
107133 2007-03-10  Bruno Haible  <bruno@clisp.org>
107135         * lib/stdio_.h (__attribute__): New macro.
107136         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
107137         vsprintf): Specify __attribute__ __format__ for GCC.
107138         Suggested by Eric Blake.
107140 2007-03-09  Bruno Haible  <bruno@clisp.org>
107142         * modules/printf-posix-tests: New file.
107143         * tests/test-printf-posix.sh: New file.
107144         * tests/test-printf-posix.c: New file.
107146         * modules/printf-posix: New file.
107147         * lib/printf.c: New file.
107148         * m4/printf-posix-rpl.m4: New file.
107149         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
107150         REPLACE_PRINTF.
107151         * lib/stdio_.h (printf): New declaration.
107152         (format, __format__, ____printf____, ____scanf____, ____strftime____,
107153         ____strfmon____): New macros.
107154         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
107155         REPLACE_PRINTF.
107157 2007-03-09  Bruno Haible  <bruno@clisp.org>
107159         * tests/test-vasnprintf-posix2.sh: New file.
107160         * tests/test-vasnprintf-posix2.c: New file.
107161         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
107162         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
107163         (Makefile.am): Activate test-vasnprintf-posix2.sh.
107165         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
107166         a locale dependent decimal point, rather than always '.'.
107168 2007-03-09  Eric Blake  <ebb9@byu.net>
107170         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
107171         spite of platforms like Tandem/NSK that define it to -1.
107173 2007-03-08  Bruno Haible  <bruno@clisp.org>
107175         * modules/vprintf-posix-tests: New file.
107176         * tests/test-vprintf-posix.sh: New file.
107177         * tests/test-vprintf-posix.c: New file.
107178         * tests/test-printf-posix.h: New file.
107180         * modules/vprintf-posix: New file.
107181         * lib/vprintf.c: New file.
107182         * m4/vprintf-posix.m4: New file.
107183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
107184         REPLACE_VPRINTF.
107185         * lib/stdio_.h (vprintf): New declaration.
107186         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
107187         REPLACE_VPRINTF.
107189 2007-03-08  Bruno Haible  <bruno@clisp.org>
107191         * modules/fprintf-posix-tests: New file.
107192         * tests/test-fprintf-posix.sh: New file.
107193         * tests/test-fprintf-posix.c: New file.
107195         * modules/fprintf-posix: New file.
107196         * lib/fprintf.c: New file.
107197         * m4/fprintf-posix.m4: New file.
107198         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
107199         REPLACE_FPRINTF.
107200         * lib/stdio_.h (fprintf): New declaration.
107201         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
107202         REPLACE_FPRINTF.
107204 2007-03-08  Bruno Haible  <bruno@clisp.org>
107206         * modules/vfprintf-posix-tests: New file.
107207         * tests/test-vfprintf-posix.sh: New file.
107208         * tests/test-vfprintf-posix.c: New file.
107209         * tests/test-fprintf-posix.h: New file.
107210         * tests/test-fprintf-posix.out: New file.
107212         * modules/vfprintf-posix: New file.
107213         * lib/vfprintf.c: New file.
107214         * m4/vfprintf-posix.m4: New file.
107215         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
107216         REPLACE_VFPRINTF.
107217         * lib/stdio_.h (vfprintf): New declaration.
107218         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
107219         REPLACE_VFPRINTF.
107221 2007-03-08  Bruno Haible  <bruno@clisp.org>
107223         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
107225 2007-03-08  Bruno Haible  <bruno@clisp.org>
107227         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
107228         instead of 'expr' invocations.
107229         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
107230         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
107231         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
107232         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
107233         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
107234         Suggested by Paul Eggert.
107236 2007-03-08  Bruno Haible  <bruno@clisp.org>
107238         * modules/fseterr-tests: New file.
107239         * tests/test-fseterr.c: New file.
107241         * modules/fseterr: New file.
107242         * lib/fseterr.h: New file.
107243         * lib/fseterr.c: New file.
107245 2007-03-08  Bruno Haible  <bruno@clisp.org>
107247         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
107248         * lib/getopt_.h: Likewise.
107249         * lib/mbswidth.h: Likewise.
107250         * lib/setenv.h: Likewise.
107251         * lib/vasnprintf.h: Likewise.
107252         * lib/vasprintf.h: Likewise.
107253         * lib/verror.h: Likewise.
107254         * lib/xsetenv.h: Likewise.
107255         * lib/xvasprintf.h: Likewise.
107257 2007-03-08  Jim Meyering  <jim@meyering.net>
107259         * users.txt: Add parted.
107261         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
107263 2007-03-07  Bruno Haible  <bruno@clisp.org>
107265         * m4/printf.m4: Make the shell script snippets copy&pastable.
107267 2007-03-02  Bruno Haible  <bruno@clisp.org>
107269         * lib/netinet_in_.h: New file.
107270         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
107271         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
107272         * modules/netinet_in (Files): Add lib/netinet_in_.h.
107273         (Depends-on): Add absolute-header.
107274         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
107275         into netinet/in.h.
107277 2007-03-03  Bruno Haible  <bruno@clisp.org>
107279         * lib/sys_select_.h: New file.
107280         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
107281         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
107282         * modules/sys_select (Files): Add lib/sys_select_.h.
107283         (Depends-on): Add absolute-header.
107284         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
107285         into sys/select.h.
107287 2007-03-02  Bruno Haible  <bruno@clisp.org>
107289         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
107290         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
107291         values.
107292         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
107293         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
107294         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
107295         * modules/sys_socket (Depends-on): Add absolute-header.
107296         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
107297         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
107298         (Include): Remove requirement of inclusion of <sys/types.h>.
107300 2007-03-02  Bruno Haible  <bruno@clisp.org>
107302         * lib/byteswap_.h (bswap_32): Fix formula.
107304 2007-03-06  Bruno Haible  <bruno@clisp.org>
107306         * modules/sprintf-posix-tests: New file.
107307         * tests/test-sprintf-posix.c: New file.
107309         * modules/sprintf-posix: New file.
107310         * lib/sprintf.c: New file.
107311         * m4/sprintf-posix.m4: New file.
107312         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
107313         REPLACE_SPRINTF.
107314         * lib/stdio_.h (sprintf): New declaration.
107315         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
107316         REPLACE_SPRINTF.
107318 2007-03-06  Bruno Haible  <bruno@clisp.org>
107320         * modules/vsprintf-posix-tests: New file.
107321         * tests/test-vsprintf-posix.c: New file.
107322         * tests/test-sprintf-posix.h: New file.
107324         * modules/vsprintf-posix: New file.
107325         * lib/vsprintf.c: New file.
107326         * m4/vsprintf-posix.m4: New file.
107327         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
107328         REPLACE_VSPRINTF.
107329         * lib/stdio_.h (vsprintf): New declaration.
107330         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
107331         REPLACE_VSPRINTF.
107333 2007-03-06  Bruno Haible  <bruno@clisp.org>
107335         * modules/vsnprintf (Depend-on): Remove minmax.
107337 2007-03-06  Bruno Haible  <bruno@clisp.org>
107339         * modules/snprintf-posix-tests: New file.
107340         * tests/test-snprintf-posix.c: New file.
107342         * modules/snprintf-posix: New file.
107343         * m4/snprintf-posix.m4: New file.
107344         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
107345         gl_FUNC_SNPRINTF.
107346         (gl_FUNC_SNPRINTF): Invoke it.
107347         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
107348         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
107349         is set.
107350         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
107352 2007-03-06  Bruno Haible  <bruno@clisp.org>
107354         * modules/vsnprintf-posix-tests: New file.
107355         * tests/test-vsnprintf-posix.c: New file.
107356         * tests/test-snprintf-posix.h: New file.
107358         * modules/vsnprintf-posix: New file.
107359         * m4/vsnprintf-posix.m4: New file.
107360         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
107361         gl_FUNC_VSNPRINTF.
107362         (gl_FUNC_VSNPRINTF): Invoke it.
107363         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
107364         * lib/stdio_.h (vsnprintf): Define as a replacement if
107365         REPLACE_VSNPRINTF is set.
107366         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
107368 2007-03-06  Bruno Haible  <bruno@clisp.org>
107370         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
107371         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
107373 2007-03-06  Bruno Haible  <bruno@clisp.org>
107375         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
107376         (asinl): Declare also if HAVE_DECL_ASINL is set.
107377         (atanl): Declare also if HAVE_DECL_ATANL is set.
107378         (ceill): Declare also if HAVE_DECL_CEILL is set.
107379         (cosl): Declare also if HAVE_DECL_COSL is set.
107380         (expl): Declare also if HAVE_DECL_EXPL is set.
107381         (floorl): Declare also if HAVE_DECL_FLOORL is set.
107382         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
107383         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
107384         (logl): Declare also if HAVE_DECL_LOGL is set.
107385         (sinl): Declare also if HAVE_DECL_SINL is set.
107386         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
107387         (tanl): Declare also if HAVE_DECL_TANL is set.
107388         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
107389         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
107390         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
107391         declaration of frexpl, ldexpl.
107392         * modules/printf-frexpl (Depends-on): Add math.
107393         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
107395 2007-03-05  Bruno Haible  <bruno@clisp.org>
107397         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
107398         frexpl and ldexpl are declared.
107399         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
107401 2007-03-05  Bruno Haible  <bruno@clisp.org>
107403         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
107404         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
107406 2007-03-05  Bruno Haible  <bruno@clisp.org>
107408         * lib/stdio_.h: Include <stddef.h>.
107410 2007-03-05  Bruno Haible  <bruno@clisp.org>
107412         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
107414 2007-03-05  Bruno Haible  <bruno@clisp.org>
107416         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
107417         NetBSD 4, from Ralf Wildenhues.
107419 2007-03-04  Bruno Haible  <bruno@clisp.org>
107421         * lib/vasprintf.h: Update #if logic for the case when the functions
107422         exist but are overridden.
107424 2007-03-04  Bruno Haible  <bruno@clisp.org>
107426         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
107427         implementations: glibc-2.4 and MacOS X 10.3.
107428         * tests/test-vasnprintf-posix.c (test_function): Test also the case
107429         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
107430         * tests/test-vasprintf-posix.c (test_function): Likewise.
107432 2007-03-04  Bruno Haible  <bruno@clisp.org>
107434         * modules/vasprintf-posix-tests: New file.
107435         * tests/test-vasprintf-posix.c: New file.
107437         * modules/vasprintf-posix: New file.
107438         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
107439         defined.
107440         * m4/vasprintf-posix.m4: New file.
107441         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
107442         gl_FUNC_VASPRINTF.
107443         (gl_FUNC_VASPRINTF): Invoke it.
107444         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
107445         here.
107446         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
107448 2007-03-04  Bruno Haible  <bruno@clisp.org>
107450         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
107451         REPLACE_GETTIMEOFDAY.
107452         * modules/sys_time (Makefile.am): Likewise.
107453         * m4/sys_time_h.m4: Likewise.
107454         * m4/gettimeofday.m4: Likewise.
107456 2007-03-04  Bruno Haible  <bruno@clisp.org>
107458         * modules/vasnprintf-posix-tests: New file.
107459         * tests/test-vasnprintf-posix.c: New file.
107461         * modules/vasnprintf-posix: New file.
107462         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
107463         printf-frexpl.h.
107464         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
107465         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
107466         REPLACE_VASNPRINTF is defined.
107467         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
107468         gl_FUNC_VASNPRINTF.
107469         (gl_FUNC_VASNPRINTF): Invoke it.
107470         * m4/vasnprintf-posix.m4: New file.
107471         * m4/printf.m4: New file.
107473 2007-03-04  Bruno Haible  <bruno@clisp.org>
107475         Compile progreloc.c only if --enable-relocatable is specified.
107476         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
107477         if --enable-relocatable was specified.
107478         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
107479         lib_SOURCES.
107481 2007-03-04  Jim Meyering  <jim@meyering.net>
107483         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
107484         Use it consistently, rather than enumerating errno constants.
107486 2007-03-04  Bruno Haible  <bruno@clisp.org>
107488         * modules/xvasprintf-tests: New file.
107489         * tests/test-xvasprintf.c: New file.
107491         * modules/vasprintf-tests: New file.
107492         * tests/test-vasprintf.c: New file.
107494         * modules/vasnprintf-tests: New file.
107495         * tests/test-vasnprintf.c: New file.
107497         * modules/vsnprintf-tests: New file.
107498         * tests/test-vsnprintf.c: New file.
107500         * modules/snprintf-tests: New file.
107501         * tests/test-snprintf.c: New file.
107503 2007-03-04  Bruno Haible  <bruno@clisp.org>
107505         Compile relocatable.c only if --enable-relocatable is specified.
107506         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
107507         gl_RELOCATABLE_LIBRARY.
107508         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
107509         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
107510         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
107511         gl_RELOCATABLE_LIBRARY.
107512         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
107513         (Makefile.am): Remove lib_SOURCES.
107514         * modules/relocatable-lib-lgpl (configure.ac): Invoke
107515         gl_RELOCATABLE_LIBRARY.
107516         (Makefile.am): Remove lib_SOURCES.
107517         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
107518         always.
107519         * modules/relocatable-prog-wrapper (configure.ac): Invoke
107520         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
107522 2007-03-04  Bruno Haible  <bruno@clisp.org>
107524         * modules/argmatch-tests: New file.
107525         * tests/test-argmatch.c: New file.
107527         * tests/test-allocsa.c (main): Halve the number of loop runs.
107529         * modules/alloca-opt-tests: New file.
107530         * tests/test-alloca-opt.c: New file.
107532 2007-03-04  Jim Meyering  <jim@meyering.net>
107534         Work around difference between Linux ACLs and Solaris 10 ZFS.
107535         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
107536         for EINVAL.
107538 2007-03-03  Bruno Haible  <bruno@clisp.org>
107540         * modules/relocatable-prog (Depends-on): Add back progreloc's
107541         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
107543 2007-03-03  Bruno Haible  <bruno@clisp.org>
107545         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
107546         * modules/relocatable-lib: New file.
107548 2007-03-03  Bruno Haible  <bruno@clisp.org>
107550         * modules/relocatable-prog: Renamed from modules/relocatable.
107551         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
107553 2007-03-03  Bruno Haible  <bruno@clisp.org>
107555         * modules/relocatable-script (Files): Add doc/relocatable.texi,
107556         m4/relocatable-lib.m4.
107557         (Depends-on): Remove 'relocatable'.
107558         (configure.ac): Add gl_RELOCATABLE_NOP.
107560 2007-03-03  Bruno Haible  <bruno@clisp.org>
107562         * modules/relocatable-prog-wrapper: New file.
107563         * modules/relocatable (Depends-on): Add it. Remove all other
107564         dependencies except progname.
107565         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
107567         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
107568         (gl_FUNC_STRERROR): Nop.
107569         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
107571         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
107572         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
107574         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
107575         (gl_FUNC_READLINK): Update.
107577         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
107579 2007-03-03  Bruno Haible  <bruno@clisp.org>
107581         * lib/xreadlink.c: Include <unistd.h> unconditionally.
107582         * modules/xreadlink (Depends-on): Add unistd.
107583         * modules/xreadlink-with-size (Depends-on): Likewise.
107585 2007-03-03  Bruno Haible  <bruno@clisp.org>
107587         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
107588         extracted from gt_FUNC_SETENV.
107589         (gt_FUNC_SETENV): Remove macro.
107590         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
107591         remove gt_FUNC_SETENV.
107593 2007-03-03  Bruno Haible  <bruno@clisp.org>
107595         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
107596         ENABLE_RELOCATABLE here.
107597         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
107599 2007-03-03  Bruno Haible  <bruno@clisp.org>
107601         * modules/rbtreehash-list-tests (Depends-on): Add progname.
107602         * tests/test-rbtreehash_list.c: Include progname.h.
107603         (main): Call set_program_name.
107605         * modules/rbtree-oset-tests (Depends-on): Add progname.
107606         * tests/test-rbtree_oset.c: Include progname.h.
107607         (main): Call set_program_name.
107609         * modules/rbtree-list-tests (Depends-on): Add progname.
107610         * tests/test-rbtree_list.c: Include progname.h.
107611         (main): Call set_program_name.
107613         * modules/linked-list-tests (Depends-on): Add progname.
107614         * tests/test-linked_list.c: Include progname.h.
107615         (main): Call set_program_name.
107617 2007-03-03  Bruno Haible  <bruno@clisp.org>
107619         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
107620         All uses of __restrict changed to _Restrict_.
107621         * lib/glob_.h (__restrict): Remove macro.
107623 2007-03-02  Bruno Haible  <bruno@clisp.org>
107625         * modules/gettext (configure.ac): Require gettext infrastructure
107626         from version 0.16.1.
107628 2007-03-02  Bruno Haible  <bruno@clisp.org>
107630         * modules/linkedhash-list-tests (Depends-on): Add progname.
107631         * tests/test-linkedhash_list.c: Include progname.h.
107632         (main): Call set_program_name.
107634         * modules/carray-list-tests (Depends-on): Add progname.
107635         * tests/test-carray_list.c: Include progname.h.
107636         (main): Call set_program_name.
107638         * modules/avltreehash-list-tests (Depends-on): Add progname.
107639         * tests/test-avltreehash_list.c: Include progname.h.
107640         (main): Call set_program_name.
107642         * modules/avltree-oset-tests (Depends-on): Add progname.
107643         * tests/test-avltree_oset.c: Include progname.h.
107644         (main): Call set_program_name.
107646         * modules/avltree-list-tests (Depends-on): Add progname.
107647         * tests/test-avltree_list.c: Include progname.h.
107648         (main): Call set_program_name.
107650         * modules/array-oset-tests (Depends-on): Add progname.
107651         * tests/test-array_oset.c: Include progname.h.
107652         (main): Call set_program_name.
107654         * modules/array-list-tests (Depends-on): Add progname.
107655         * tests/test-array_list.c: Include progname.h.
107656         (main): Call set_program_name.
107658         * modules/argp-tests (Depends-on): Add progname.
107659         * tests/test-argp.c: Include argp.h first. Include progname.h.
107660         (main): Call set_program_name.
107662 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
107664         * doc/gnulib-tool.texi (Initial import): Reword description of
107665         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
107666         limited effect even if defined after the first system include.
107668 2007-03-01  Bruno Haible  <bruno@clisp.org>
107670         * build-aux/config.libpath: Update to libtool-1.5.22.
107671         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
107673 2007-03-01  Bruno Haible  <bruno@clisp.org>
107675         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
107676         foo_CFLAGS.
107677         Reported by Ralf Wildenhues.
107679 2007-03-01  Bruno Haible  <bruno@clisp.org>
107681         * build-aux/install-reloc: Remove object files left over by some
107682         compilers.
107683         Reported by Ralf Wildenhues.
107685 2007-03-01  Bruno Haible  <bruno@clisp.org>
107687         * build-aux/install-reloc: Break long lines.
107689 2007-03-01  Bruno Haible  <bruno@clisp.org>
107691         * doc/relocatable.texi: Document that it may not work on OpenBSD.
107692         Reported by Ralf Wildenhues.
107694 2007-03-01  Bruno Haible  <bruno@clisp.org>
107696         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
107697         include ordering constraints.
107699 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
107701         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
107702         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00136.html>.
107703         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
107704         as another example.
107705         * lib/time_.h: Fix misspelling.
107706         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
107707         Require gl_HEADER_TIME_H_DEFAULTS.
107708         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
107709         * m4/time_r.m4 (gl_TIME_R): Likewise.
107710         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
107712 2007-03-01  Bruno Haible  <bruno@clisp.org>
107714         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
107715         * m4/utimens.m4 (gl_UTIMENS): Likewise.
107717 2007-03-01  Jim Meyering  <jim@meyering.net>
107719         * modules/xreadlink (Maintainer): Add my name.
107720         * modules/xreadlink-with-size (Depends-on): Alphabetize.
107722 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
107723             Bruno Haible  <bruno@clisp.org>
107725         * build-aux/install-reloc: Compile also c-ctype.c.
107726         * build-aux/relocatable.sh.in: New file.
107727         * doc/relocatable.texi: New file.
107728         * doc/relocatable-maint.texi: New file.
107729         * doc/gnulib.texi: Include relocatable-maint.texi.
107730         * lib/progreloc.c: Include unistd.h unconditionally.
107731         * lib/relocwrapper.c: Include unistd.h unconditionally.
107732         Include c-ctype.h.
107733         (add_dotbin): Use c_tolower.
107734         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
107735         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
107736         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
107737         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
107738         to m4/relocatable-lib.m4.
107739         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
107740         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
107741         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
107742         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
107743         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
107744         * modules/relocatable: New file.
107745         * modules/relocatable-lib: New file.
107746         * modules/relocatable-script: New file.
107748 2007-02-28  Bruno Haible  <bruno@clisp.org>
107750         Import --enable-relocatable infrastructure.
107751         * build-aux/config.libpath: New file, from GNU gettext.
107752         * build-aux/install-reloc: New file, from GNU gettext.
107753         * build-aux/reloc-ldflags: New file, from GNU gettext.
107754         * lib/relocatable.h: New file, from GNU gettext.
107755         * lib/relocatable.c: New file, from GNU gettext.
107756         * lib/relocwrapper.c: New file, from GNU gettext.
107757         * m4/relocatable.m4: New file, from GNU gettext.
107759 2007-02-28  Bruno Haible  <bruno@clisp.org>
107761         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
107763         * modules/xreadlink: New file, from GNU gettext with modifications.
107764         * lib/xreadlink.c: New file, from GNU gettext.
107765         * lib/xreadlink.h: Add comments.
107766         (xreadlink): New declaration.
107768         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
107769         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
107770         lib/xreadlink-with-size.c.
107771         (configure.ac): Remove gl_XREADLINK invocation.
107772         (Makefile.am): Augment lib_SOURCES.
107773         * m4/xreadlink.m4: Remove file.
107774         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
107775         (xreadlink_with_size): Renamed from xreadink.
107776         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
107777         * modules/canonicalize (Depends-on): Replace xreadlink with
107778         xreadlink-with-size.
107779         * lib/canonicalize.c (canonicalize_filename_mode): Update.
107781 2007-02-25  Jim Meyering  <jim@meyering.net>
107783         * build-aux/announce-gen: When complaining about excess arguments,
107784         list them.
107786 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
107788         * README: Document signed integer overflow situation more
107789         accurately.
107791 2007-02-25  Bruno Haible  <bruno@clisp.org>
107793         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
107794         'a' or 'A' conversion.
107796 2007-02-25  Bruno Haible  <bruno@clisp.org>
107798         * modules/filename: Renamed from modules/pathname.
107799         (Files): Replace lib/pathname.h with lib/filename.h. Replace
107800         lib/concatpath.c with lib/concat-filename.c.
107801         (Makefile.am): Update.
107802         (Include): Replace pathname.h with filename.h.
107803         * lib/filename.h: Renamed from lib/pathname.h.
107804         (concatenated_filename): Renamed from concatenated_pathname.
107805         * lib/concat-filename.c: Renamed from lib/concatpath.c.
107806         (concatenated_filename): Renamed from concatenated_pathname.
107807         * lib/findprog.c: Include filename.h instead of pathname.h.
107808         (find_in_path): Update.
107809         * lib/javacomp.c: Include filename.h instead of pathname.h.
107810         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
107811         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
107812         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
107813         is_oldgcj_14_13_usable, is_javac_usable): Update.
107814         * lib/javaexec.c: Include filename.h instead of pathname.h.
107815         (execute_java_class): Update.
107816         * modules/findprog: Update.
107817         * modules/javacomp: Update.
107818         * modules/javaexec: Update.
107819         * MODULES.html.sh (File system functions): Add 'filename', remove
107820         'pathname'.
107822 2007-02-25  Bruno Haible  <bruno@clisp.org>
107824         * modules/printf-frexpl-tests: New file.
107825         * tests/test-printf-frexpl.c: New file.
107827         * modules/printf-frexpl: New file.
107828         * lib/printf-frexpl.h: New file.
107829         * lib/printf-frexpl.c: New file.
107830         * m4/printf-frexpl.m4: New file.
107832 2007-02-25  Bruno Haible  <bruno@clisp.org>
107834         * modules/printf-frexp-tests: New file.
107835         * tests/test-printf-frexp.c: New file.
107837         * modules/printf-frexp: New file.
107838         * lib/printf-frexp.h: New file.
107839         * lib/printf-frexp.c: New file.
107840         * m4/printf-frexp.m4: New file.
107842 2007-02-25  Bruno Haible  <bruno@clisp.org>
107844         Assume automake >= 1.10 for the tests.
107845         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
107846         * modules/arctwo-tests: Likewise.
107847         * modules/argp-tests: Likewise.
107848         * modules/avltree-list-tests: Likewise.
107849         * modules/avltree-oset-tests: Likewise.
107850         * modules/avltreehash-list-tests: Likewise.
107851         * modules/carray-list-tests: Likewise.
107852         * modules/crc-tests: Likewise.
107853         * modules/des-tests: Likewise.
107854         * modules/gc-arcfour-tests: Likewise.
107855         * modules/gc-arctwo-tests: Likewise.
107856         * modules/gc-des-tests: Likewise.
107857         * modules/gc-hmac-md5-tests: Likewise.
107858         * modules/gc-hmac-sha1-tests: Likewise.
107859         * modules/gc-md2-tests: Likewise.
107860         * modules/gc-md4-tests: Likewise.
107861         * modules/gc-md5-tests: Likewise.
107862         * modules/gc-pbkdf2-sha1-tests: Likewise.
107863         * modules/gc-rijndael-tests: Likewise.
107864         * modules/gc-sha1-tests: Likewise.
107865         * modules/gc-tests: Likewise.
107866         * modules/getaddrinfo-tests: Likewise.
107867         * modules/hmac-md5-tests: Likewise.
107868         * modules/hmac-sha1-tests: Likewise.
107869         * modules/linked-list-tests: Likewise.
107870         * modules/linkedhash-list-tests: Likewise.
107871         * modules/lock-tests: Likewise.
107872         * modules/md2-tests: Likewise.
107873         * modules/md4-tests: Likewise.
107874         * modules/md5-tests: Likewise.
107875         * modules/rbtree-list-tests: Likewise.
107876         * modules/rbtree-oset-tests: Likewise.
107877         * modules/rbtreehash-list-tests: Likewise.
107878         * modules/read-file-tests: Likewise.
107879         * modules/rijndael-tests: Likewise.
107880         * modules/stdint-tests: Likewise.
107881         * modules/tls-tests: Likewise.
107883 2007-02-24  Bruno Haible  <bruno@clisp.org>
107885         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
107886         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
107887         function; instead check whether isnan with a double argument links.
107888         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
107889         function; instead check whether isnan with a 'long double' argument
107890         links.
107891         Reported by Eric Blake <ebb9@byu.net>.
107893 2007-02-24  Bruno Haible  <bruno@clisp.org>
107895         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
107896         defined.
107897         * lib/isnanl.c: Remove all code. Just include isnan.c.
107898         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
107900 2007-02-25  Jim Meyering  <jim@meyering.net>
107902         Avoid conflicting types for 'unsetenv' on FreeBSD.
107903         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
107904         conflicting with FreeBSD's (5.0 and 6.1) function declaration
107905         in stdlib.h.
107907 2007-02-24  Bruno Haible  <bruno@clisp.org>
107909         * modules/isnanl-nolibm-tests: New file.
107910         * tests/test-isnanl.c: New file.
107912         * modules/isnanl-nolibm: New file.
107913         * lib/isnanl.h: New file.
107914         * lib/isnanl.c: New file.
107915         * m4/isnanl.m4: New file.
107917 2007-02-24  Bruno Haible  <bruno@clisp.org>
107919         * modules/isnan-nolibm-tests: New file.
107920         * tests/test-isnan.c: New file.
107922         * modules/isnan-nolibm: New file.
107923         * lib/isnan.h: New file.
107924         * lib/isnan.c: New file.
107925         * m4/isnan.m4: New file.
107927 2007-02-24  Bruno Haible  <bruno@clisp.org>
107929         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
107930         assume that an exponent fits in 20 bits.
107932 2007-02-24  Jim Meyering  <jim@meyering.net>
107934         * m4/regex.m4: Update the description of the configure-time option,
107935         --without-included-regex, to state accurately what the defaults are,
107936         and perhaps to give people an idea why using this option is risky.
107938 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
107940         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
107941         loops on small arguments.  This attempts to avoid the problem
107942         Bruno Haible reported for AIX 4.3.2 in
107943         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00309.html>.
107945 2007-02-23  Bruno Haible  <bruno@clisp.org>
107947         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
107948         Needed for help2man.
107950 2007-02-23  Karl Berry  <karl@gnu.org>
107952         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
107953         exists, foo.h should be cvs-ignored, not committed.
107955 2007-02-23  Eric Blake  <ebb9@byu.net>
107957         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
107958         * lib/stat-time.h (includes): Likewise.
107959         * lib/utimecmp.c (includes): Likewise.
107960         * lib/utimens.h (includes): Likewise.
107961         * lib/getdate.y (includes): Also include "timespec.h" for use
107962         internal to the module.
107963         * modules/utimens (Depends-on): Revert yesterday's patch.
107964         * modules/nanosleep (Depends-on): Add missing dependency.
107966 2007-02-22  Bruno Haible  <bruno@clisp.org>
107968         * lib/glob.c: Don't include getlogin_r.h.
107970 2007-02-22  Jim Meyering  <jim@meyering.net>
107972         * modules/utimens (Depends-on): Add timespec, required for
107973         utimens.h's inclusion of timespec.h.
107975 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
107977         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
107978         long unreadable paths in GNU/Linux.  Problem reported by Andreas
107979         Schwab in
107980         <http://lists.gnu.org/r/bug-gnulib/2007-02/msg00261.html>.
107981         I'll try to think of a better way to fix the Solaris problem.
107983         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
107984         like glibc; on Solaris 10, it fails with errno == EINVAL.
107985         POSIX says the behavior is unspecified if the first argument is NULL,
107986         so play it safe and never pass NULL to the system getcwd.
107988 2007-02-21  Jim Meyering  <jim@meyering.net>
107990         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
107991         of gettimeofday.  It would conflict with the one now always
107992         provided via sys_time_.h.  Reported by Matthew Woehlke, as
107993         an IRIX 6.5 build failure.
107995 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
107997         Minor fixups to port to Solaris 10 with Sun C 5.8.
107998         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
107999         * modules/getcwd (Depends-on): Add dirfd.
108000         * lib/putenv.c (putenv): #undef it.
108001         (rpl_putenv): New decl.
108002         (malloc, free): Include <stdlib.h> rather than prototyping separately.
108004 2007-02-20  Bruno Haible  <bruno@clisp.org>
108006         * modules/stdio-tests: New file.
108007         * tests/test-stdio.c: New file.
108009         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
108010         (Depends-on): Add stdio.
108011         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108012         (Include): Use <stdio.h> instead of vsnprintf.h.
108013         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108014         HAVE_DECL_VSNPRINTF.
108015         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
108017         * modules/snprintf (Files): Remove lib/snprintf.h.
108018         (Depends-on): Add stdio.
108019         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
108020         (Include): Use <stdio.h> instead of snprintf.h.
108021         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
108022         HAVE_DECL_SNPRINTF.
108023         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
108024         * lib/getaddrinfo.c: Likewise.
108026         * modules/stdio: New file.
108027         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
108028         * lib/snprintf.h: Remove file.
108029         * lib/vsnprintf.h: Remove file.
108030         * lib/.cppi-disable: Remove snprintf.h.
108031         * m4/stdio_h.m4: New file.
108032         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
108034 2007-02-20  Jim Meyering  <jim@meyering.net>
108036         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
108037         used by e.g., mingw.  From Bruno Haible.
108039 2007-02-19  Bruno Haible  <bruno@clisp.org>
108041         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
108042         warnings.
108043         Reported by Ben Pfaff <blp@cs.stanford.edu>.
108045 2007-02-19  Bruno Haible  <bruno@clisp.org>
108047         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
108048         from mingw users.
108050 2007-02-19  Bruno Haible  <bruno@clisp.org>
108052         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
108053         warnings.
108054         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
108056 2007-02-19  Jim Meyering  <jim@meyering.net>
108058         Don't use FD after a successful "fdopendir (fd)".
108059         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
108060         Reset it by calling dirfd on the just-obtained DIR*.
108062         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
108063         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
108065 2007-02-18  Bruno Haible  <bruno@clisp.org>
108067         * lib/readlink.c: Include <unistd.h>.
108068         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
108069         HAVE_READLINK.
108070         * modules/readlink (Depends-on): Add unistd.
108071         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108072         (Include): Add <unistd.h>.
108074         * lib/getlogin_r.h: Remove file.
108075         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
108076         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
108077         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
108078         HAVE_DECL_GETLOGIN_R.
108079         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
108080         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108081         (Include): Use <unistd.h> instead of getlogin_r.h.
108083         * lib/getcwd.h: Remove file.
108084         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
108085         * lib/xgetcwd.c: Likewise.
108086         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
108087         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
108088         * modules/getcwd (Files): Remove lib/getcwd.h.
108089         (Depends-on): Add unistd.
108090         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108091         (Include): Use <unistd.h> instad of getcwd.h.
108093         * lib/ftruncate.c: Include <unistd.h> first.
108094         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
108095         Set HAVE_FTRUNCATE.
108096         * modules/ftruncate (Depends-on): Add unistd.
108097         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108099         * lib/fchdir.c: Include <unistd.h> first.
108100         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
108101         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
108102         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
108103         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108104         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
108106         * lib/dup2.c: Include <unistd.h> first.
108107         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
108108         HAVE_DUP2.
108109         * modules/dup2 (Depends-on): Add unistd.
108110         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108112         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
108113         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
108114         REPLACE_CHOWN. Don't define chown as a macro here.
108115         * modules/chown (Depends-on): Add unistd.
108116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
108118         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
108119         Add definition for GL_LINK_WARNING.
108120         (chown, dup2): New declarations.
108121         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
108122         link warning.
108123         (ftruncate): New declaration.
108124         (getcwd): New declaration, taken from old getcwd.h.
108125         (getlogin_r): New declaration, taken from old getlogin_r.h.
108126         (readlink): New declaration.
108127         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
108128         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
108129         (gl_PREREQ_UNISTD): Remove macro.
108130         (gl_UNISTD_MODULE_INDICATOR): New macro.
108131         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
108132         many new variables. Don't set UNISTD_H.
108133         * modules/unistd (Description): Change.
108134         (Depends-on): Add link-warning.
108135         (configure.ac): Update.
108136         (Makefile.am): Create unistd.h always. Substitute many new variables
108137         into it.
108139 2007-02-18  Bruno Haible  <bruno@clisp.org>
108141         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
108142         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
108143         HAVE_GETSUBOPT.
108144         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
108145         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
108146         * lib/getsubopt.h: Remove file.
108147         * modules/getsubopt (Files): Remove lib/getsubopt.h.
108148         (Depends-on): Add stdlib.
108149         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108150         (Includes): Use <stdlib.h> instead of getsubopt.h.
108151         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
108152         Set HAVE_GETSUBOPT.
108153         * lib/getsubopt.c: Don't include getsubopt.h.
108155 2007-02-18  Bruno Haible  <bruno@clisp.org>
108157         * modules/fchdir (Depends-on): Add dup2.
108159 2007-02-18  Bruno Haible  <bruno@clisp.org>
108161         * lib/stdlib_.h: Handle glibc's special invocation convention
108162         specially.
108164 2007-02-18  Bruno Haible  <bruno@clisp.org>
108166         * modules/stdlib-tests: New file.
108167         * tests/test-stdlib.c: New file.
108169         * modules/mkstemp (Files): Remove lib/mkstemp.h.
108170         (Depends-on): Add stdlib.
108171         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108172         (Includes): Use <stdlib.h> instead of mkstemp.h.
108173         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108174         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
108175         * lib/mkstemp.c: Don't include mkstemp.h.
108176         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
108177         * lib/stdlib--.h: Don't include mkstemp.h.
108179         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
108180         (Depends-on): Add stdlib.
108181         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
108182         (Includes): Use <stdlib.h> instead of mkdtemp.h.
108183         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
108184         HAVE_MKDTEMP.
108185         * lib/mkdtemp.c: Don't include mkdtemp.h.
108186         * lib/clean-temp.c: Don't include mkdtemp.h.
108188         * modules/exit (Files): Remove lib/exit.h.
108189         (Depends-on): Add stdlib.
108190         (Makefile.am): Remove lib_SOURCES.
108191         (Include): Use <stdlib.h> instead of exit.h.
108192         * lib/argmatch.c: Don't include exit.h.
108193         * lib/execute.c: Likewise.
108194         * lib/pagealign_alloc.c: Likewise.
108195         * lib/pipe.c: Likewise.
108196         * lib/wait-process.c: Likewise.
108197         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
108198         * lib/exitfail.c: Likewise.
108199         * lib/savewd.c: Likewise.
108200         * lib/xsetenv.c: Likewise.
108202         * modules/stdlib: New file.
108203         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
108204         and extra comments about mkstemp().
108205         * lib/exit.h: Remove file.
108206         * lib/mkdtemp.h: Remove file.
108207         * lib/mkstemp.h: Remove file.
108208         * m4/stdlib_h.m4: New file.
108209         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
108211 2007-02-18  Bruno Haible  <bruno@clisp.org>
108213         * modules/math-tests: New file.
108214         * tests/test-math.c: New file.
108216         * modules/math: New file.
108217         * modules/mathl (Files): Remove lib/mathl.h.
108218         (Depends-on): Add math.
108219         (Makefile.am): Don't mention mathl.h.
108220         (Include): Use <math.h> instead of mathl.h.
108221         * lib/math_.h: New file.
108222         * lib/mathl.h: Remove file.
108223         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
108224         mathl.h.
108225         * lib/asinl.c: Likewise.
108226         * lib/atanl.c: Likewise.
108227         * lib/ceill.c: Likewise.
108228         * lib/cosl.c: Likewise.
108229         * lib/expl.c: Likewise.
108230         * lib/floorl.c: Likewise.
108231         * lib/frexpl.c: Likewise.
108232         * lib/ldexpl.c: Likewise.
108233         * lib/logl.c: Likewise.
108234         * lib/sincosl.c: Likewise.
108235         * lib/sinl.c: Likewise.
108236         * lib/sqrtl.c: Likewise.
108237         * lib/tanl.c: Likewise.
108238         * lib/trigl.c: Likewise.
108239         * m4/math_h.m4: New file.
108240         * MODULES.html.sh (Mathematics): Add math.
108242 2007-02-17  Bruno Haible  <bruno@clisp.org>
108244         * modules/wctype-tests: New file.
108245         * tests/test-wctype.c: New file.
108247         * modules/wchar-tests: New file.
108248         * tests/test-wchar.c: New file.
108250         * modules/unistd-tests: New file.
108251         * tests/test-unistd.c: New file.
108253         * modules/time-tests: New file.
108254         * tests/test-time.c: New file.
108256         * modules/sysexits-tests: New file.
108257         * tests/test-sysexits.c: New file.
108259         * modules/sys_time-tests: New file.
108260         * tests/test-sys_time.c: New file.
108262         * modules/sys_stat-tests: New file.
108263         * tests/test-sys_stat.c: New file.
108265         * modules/sys_socket-tests: New file.
108266         * tests/test-sys_socket.c: New file.
108268         * modules/sys_select-tests: New file.
108269         * tests/test-sys_select.c: New file.
108271         * modules/string-tests: New file.
108272         * tests/test-string.c: New file.
108274         * modules/stdbool-tests: New file.
108275         * tests/test-stdbool.c: New file.
108277         * modules/netinet_in-tests: New file.
108278         * tests/test-netinet_in.c: New file.
108280         * modules/inttypes-tests: New file.
108281         * tests/test-inttypes.c: New file.
108283         * modules/fcntl-tests: New file.
108284         * tests/test-fcntl.c: New file.
108286         * modules/byteswap-tests: New file.
108287         * tests/test-byteswap.c: New file.
108289         * modules/arpa_inet-tests: New file.
108290         * tests/test-arpa_inet.c: New file.
108292 2007-02-17  Bruno Haible  <bruno@clisp.org>
108294         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
108295         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
108296         if the corresponding module is not enabled. Emit link warnings if
108297         the function is used nevertheless.
108298         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
108299         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
108300         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
108301         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
108302         * modules/inttypes (Depends-on): Add link-warning.
108303         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108304         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
108305         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
108306         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
108307         * modules/imaxdiv (configure.ac): Likewise.
108308         * modules/strtoimax (configure.ac): Likewise.
108309         * modules/strtoumax (configure.ac): Likewise.
108311 2007-02-17  Bruno Haible  <bruno@clisp.org>
108313         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
108314         gl_STRING_MODULE_INDICATOR_DEFAULTS.
108315         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
108316         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
108318 2007-02-17  Bruno Haible  <bruno@clisp.org>
108320         * modules/link-warning: New file.
108321         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
108322         * lib/string_.h (GL_LINK_WARNING): Remove definition.
108323         * modules/string (Depends-on): Add link-warning.
108324         (Makefile.am): Copy the contents of build-aux/link-warning.h into
108325         string.h.
108326         * MODULES.html.sh (Support for building libraries and executables): Add
108327         link-warning.
108329 2007-02-17  Bruno Haible  <bruno@clisp.org>
108331         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
108332         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
108333         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
108334         long lines.
108336 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
108337             Bruno Haible  <bruno@clisp.org>
108339         * modules/tmpfile: New file.
108340         * lib/tmpfile.c: New file.
108341         * m4/tmpfile.m4: New file.
108342         * MODULES.html.sh (func_all_modules): New section "Input/output".
108344 2007-02-15  Bruno Haible  <bruno@clisp.org>
108346         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
108347         (supports_delete_on_close): New function.
108348         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
108350 2007-02-14  Bruno Haible  <bruno@clisp.org>
108352         * modules/mbspcasecmp-tests: New file.
108353         * tests/test-mbspcasecmp.sh: New file.
108354         * tests/test-mbspcasecmp.c: New file.
108356         New module mbspcasecmp.
108357         * modules/mbspcasecmp: New file.
108358         * lib/mbspcasecmp.c: New file.
108359         * lib/string_.h (strncasecmp): Change warning message.
108360         (mbspcasecmp): New declaration.
108361         * m4/mbspcasecmp.m4: New file.
108362         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108363         GNULIB_MBSPCASECMP.
108364         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
108365         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
108367 2007-02-14  Bruno Haible  <bruno@clisp.org>
108369         * modules/mbsncasecmp-tests: New file.
108370         * tests/test-mbsncasecmp.sh: New file.
108371         * tests/test-mbsncasecmp.c: New file.
108373         New module mbsncasecmp.
108374         * modules/mbsncasecmp: New file.
108375         * lib/mbsncasecmp.c: New file.
108376         * lib/string_.h (mbsncasecmp): New declaration.
108377         * m4/mbsncasecmp.m4: New file.
108378         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108379         GNULIB_MBSNCASECMP.
108380         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
108381         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
108383 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
108385         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
108386         Verify that it doesn't overlap with our flags.
108387         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
108388         do not have the desired effect in multibyte locales; instead, use
108389         mbscasecmp.
108390         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
108391         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
108392         we don't require GNU fnmatch ourselves (if our users require it, they
108393         should do so explicitly).
108395         Fix regex code so it doesn't rely on strcasecmp.
108396         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
108397         Otherwise, include gnulib's langinfo.h.
108398         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
108399         undesirable behavior in non-C locales.  Instead, rely on localecharset.
108400         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
108401         * modules/regex (FILES): Remove m4/codeset.m4.
108402         (Depends-on): Add localcharset.  Remove strcase.
108404 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
108406         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
108407         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
108409 2007-02-13  Bruno Haible  <bruno@clisp.org>
108411         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
108412         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108414 2007-02-12  Bruno Haible  <bruno@clisp.org>
108416         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108417         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
108418         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
108419         time warning rather than a link error.
108421 2007-02-12  Bruno Haible  <bruno@clisp.org>
108423         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
108424         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
108425         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
108427 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108429         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
108430         args, not 2.
108432 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
108434         New module 'time', so that apps can include <time.h> as per
108435         POSIX and GNU instead of separate include files like time_r.h
108436         and timegm.h.  This implementation tries out a simpler approach
108437         for replacing decls in standard include files (as compared to
108438         the string module), somewhat as an experiment.
108440         * config/srclist.txt: Comment out mktime.c for now.
108441         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
108442         since it doesn't apply any more.  Use generic wording instead.
108443         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
108444         'time'.
108445         * lib/time_.h, m4/time_h.m4, modules/time: New files.
108446         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
108447         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
108448         Don't include <sys/types.h>; no longer needed since we assume C89.
108449         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
108450         * lib/strftime.c: Likewise.
108451         * lib/time_r.c: Likewise.
108452         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
108453         * lib/nanosleep.c: Include <time.h> first, to check interface.
108454         * lib/strptime.c: Likewise.
108455         * lib/time_r.c: Likewise.
108456         * lib/timegm.c: Likewise.
108457         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
108458         needed.
108459         * lib/timegm.c: Don't include timegm.h; no longer needed.
108460         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
108461         time.h now handles any problems in that area.
108462         (struct timespec, nanosleep): Remove; time.h now arranges for these.
108463         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
108464         that time.h defines struct timespec.
108465         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
108466         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
108467         handles that.
108468         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
108469         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
108470         needed.  Set REPLACE_LOCALTIME.
108471         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
108472         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
108473         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
108474         nanosleep; time_h.m4 now does that.  Don't require
108475         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
108476         module handles this now.
108477         * modules/getdate (Depends-on): Remove timespec.  Add time.
108478         * modules/nanosleep (Depends-on): Likewise.
108479         * modules/stat-time (Depends-on): Likewise.
108480         * modules/nanosleep (Include): Include time.h, not timespec.h.
108481         * modules/strptime (Files): Remove lib/strptime.h.
108482         (Depends-on): Add extensions, time.
108483         (Include): Include time.h, not strptime.h.
108484         * modules/time_r (Files): Remove lib/time_r.h.
108485         (Depends-on): Add time.
108486         (Include): Include time.h, not time_r.h.
108487         * modules/timegm: Likewise.
108488         * modules/timespec (Description): Now does timespec-related decls
108489         of our own, instead of struct timespec itself.
108490         (Depends-on): Add time; remove extensions.
108491         (Maintainer): Add self.
108492         * modules/utimecmp (Depends-on): Add time; remove timespec.
108493         * modules/utimens (Depends-on): Likewise.
108494         * modules/xnanosleep (Depends-on): Likewise.
108496 2007-02-11  Bruno Haible  <bruno@clisp.org>
108498         * lib/c-strstr.c: Include allocsa.h.
108499         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108500         * lib/c-strcasestr.c: Include allocsa.h.
108501         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108502         * lib/strcasestr.c: Include allocsa.h.
108503         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
108504         * lib/mbsstr.c: Include allocsa.h.
108505         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108506         allocsa/freesa instead of malloc/free.
108507         * lib/mbscasestr.c: Include allocsa.h.
108508         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
108509         allocsa/freesa instead of malloc/free.
108510         * modules/c-strstr (Depends-on): Add allocsa.
108511         * modules/c-strcasestr (Depends-on): Likewise.
108512         * modules/strcasestr (Depends-on): Likewise.
108513         * modules/mbsstr (Depends-on): Likewise.
108514         * modules/mbscasestr (Depends-on): Likewise.
108516 2007-02-11  Bruno Haible  <bruno@clisp.org>
108518         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
108520         * modules/mbsspn-tests: New file.
108521         * tests/test-mbsspn.sh: New file.
108522         * tests/test-mbsspn.c: New file.
108524 2007-02-11  Bruno Haible  <bruno@clisp.org>
108526         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
108528         * modules/mbspbrk-tests: New file.
108529         * tests/test-mbspbrk.sh: New file.
108530         * tests/test-mbspbrk.c: New file.
108532 2007-02-11  Bruno Haible  <bruno@clisp.org>
108534         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
108535         unneeded cast.
108537         * modules/mbscspn-tests: New file.
108538         * tests/test-mbscspn.sh: New file.
108539         * tests/test-mbscspn.c: New file.
108541 2007-02-11  Bruno Haible  <bruno@clisp.org>
108543         * modules/mbscasecmp-tests: New file.
108544         * tests/test-mbscasecmp.sh: New file.
108545         * tests/test-mbscasecmp.c: New file.
108547 2007-02-11  Bruno Haible  <bruno@clisp.org>
108549         Ensure O(n) worst-case complexity of mbscasestr.
108550         * lib/mbscasestr.c: Include stdbool.h.
108551         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108552         functions.
108553         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
108554         the bookkeeping indicates that it's worth it.
108555         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
108557         * modules/mbscasestr-tests: New file.
108558         * tests/test-mbscasestr1.c: New file.
108559         * tests/test-mbscasestr2.sh: New file.
108560         * tests/test-mbscasestr2.c: New file.
108561         * tests/test-mbscasestr3.sh: New file.
108562         * tests/test-mbscasestr3.c: New file.
108563         * tests/test-mbscasestr4.sh: New file.
108564         * tests/test-mbscasestr4.c: New file.
108565         * m4/locale-tr.m4: New file.
108567 2007-02-11  Bruno Haible  <bruno@clisp.org>
108569         Ensure O(n) worst-case complexity of mbsstr.
108570         * lib/mbsstr.c: Include stdbool.h.
108571         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
108572         functions.
108573         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
108574         bookkeeping indicates that it's worth it.
108575         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
108577         * modules/mbsstr-tests: New file.
108578         * tests/test-mbsstr1.c: New file.
108579         * tests/test-mbsstr2.sh: New file.
108580         * tests/test-mbsstr2.c: New file.
108581         * tests/test-mbsstr3.sh: New file.
108582         * tests/test-mbsstr3.c: New file.
108583         * m4/locale-fr.m4: New file.
108585 2007-02-11  Bruno Haible  <bruno@clisp.org>
108587         * lib/mbsrchr.c (mbsrchr): Fix bug.
108589         * modules/mbsrchr-tests: New file.
108590         * tests/test-mbsrchr.sh: New file.
108591         * tests/test-mbsrchr.c: New file.
108593 2007-02-11  Bruno Haible  <bruno@clisp.org>
108595         * lib/mbschr.c (mbschr): Fix bug.
108597         * modules/mbschr-tests: New file.
108598         * tests/test-mbschr.sh: New file.
108599         * tests/test-mbschr.c: New file.
108600         * m4/locale-zh.m4: New file.
108602 2007-02-11  Bruno Haible  <bruno@clisp.org>
108604         Support for copying multibyte string iterators.
108605         * lib/mbiter.h: Include <string.h>.
108606         (mbiter_multi_copy): New function.
108607         (mbi_copy): New macro.
108608         * lib/mbuiter.h: Include <string.h>.
108609         (mbuiter_multi_copy): New function.
108610         (mbui_copy): New macro.
108612 2007-02-11  Bruno Haible  <bruno@clisp.org>
108614         New module mbslen.
108615         * modules/mbslen: New file.
108616         * lib/mbslen.c: New file.
108617         * lib/string_.h (mbslen): New declaration.
108618         * m4/mbslen.m4: New file.
108619         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108620         GNULIB_MBSLEN.
108621         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
108622         * MODULES.html.sh (Internationalization functions): Add mbslen.
108624 2007-02-11  Bruno Haible  <bruno@clisp.org>
108626         Ensure O(n) worst-case complexity of strcasestr substitute.
108627         * lib/strcasestr.c: Include stdbool.h.
108628         (knuth_morris_pratt): New function.
108629         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108630         bookkeeping indicates that it's worth it.
108631         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
108633         * modules/strcasestr-tests: New file.
108634         * tests/test-strcasestr.c: New file.
108636 2007-02-11  Bruno Haible  <bruno@clisp.org>
108638         Ensure O(n) worst-case complexity of c_strcasestr.
108639         * lib/c-strcasestr.c: Include stdbool.h, string.h.
108640         (knuth_morris_pratt): New function.
108641         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
108642         the bookkeeping indicates that it's worth it.
108643         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
108645         * modules/c-strcasestr-tests: New file.
108646         * tests/test-c-strcasestr.c: New file.
108648 2007-02-11  Bruno Haible  <bruno@clisp.org>
108650         Ensure O(n) worst-case complexity of c_strstr.
108651         * lib/c-strstr.c: Include stdbool.h, string.h.
108652         (knuth_morris_pratt): New function.
108653         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
108654         bookkeeping indicates that it's worth it.
108655         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
108657         * lib/c-strstr.c: Complete rewrite for maintainability.
108659         * modules/c-strstr-tests: New file.
108660         * tests/test-c-strstr.c: New file.
108662 2007-02-11  Bruno Haible  <bruno@clisp.org>
108664         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
108665         5.2.1 and earlier, whereby \055 was treated just like the range
108666         delimiter '-'.
108667         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
108669 2007-02-08  Bruno Haible  <bruno@clisp.org>
108671         * modules/regex (Depends-on): Add stdbool.
108672         Reported by Dalibor Topic <robilad@kaffe.org>.
108674 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
108676         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
108677         Prefer returning from main to exiting from it.
108678         Remove unnecessary parens after sizeof.
108680 2007-02-05  Bruno Haible  <bruno@clisp.org>
108682         New module mbssep.
108683         * modules/mbssep: New file.
108684         * lib/mbssep.c: New file.
108685         * lib/string_.h (strsep): Add a conditional link warning.
108686         (mbssep): New declaration.
108687         * m4/mbssep.m4: New file.
108688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108689         GNULIB_MBSSEP.
108690         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
108691         * MODULES.html.sh (Internationalization functions): Add mbssep.
108693 2007-02-05  Bruno Haible  <bruno@clisp.org>
108695         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
108696         Optimize search in case of 1 delimiter.
108698 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108700         * lib/acl.h: Include sys/types.h before sys/acl.h.
108702 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
108704         Merge upstream fix for glibc bugzilla #3957:
108706         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
108708         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
108709         bit for RE_HAT_LISTS_NOT_NEWLINE.
108710         (build_charclass_op): Remove bogus comment.
108712 2007-02-05  Simon Josefsson  <simon@josefsson.org>
108714         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
108716 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108718         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
108719         * lib/memmem.c [!defined _LIBC]: Include config.h.
108721 2007-02-04  Bruno Haible  <bruno@clisp.org>
108723         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
108724         warning message.
108726 2007-02-04  Bruno Haible  <bruno@clisp.org>
108728         New module mbstok_r.
108729         * modules/mbstok_r: New file.
108730         * lib/mbstok_r.c: New file.
108731         * lib/string_.h (strtok_r): Change argument names to match the
108732         comments. Add a conditional link warning.
108733         (mbstok_r): New declaration.
108734         * m4/mbstok_r.m4: New file.
108735         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108736         GNULIB_MBSTOK_R.
108737         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
108738         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
108740 2007-02-04  Bruno Haible  <bruno@clisp.org>
108742         New module mbsspn.
108743         * modules/mbsspn: New file.
108744         * lib/mbsspn.c: New file.
108745         * lib/string_.h (strspn): Add a conditional link warning.
108746         (mbsspn): New declaration.
108747         * m4/mbsspn.m4: New file.
108748         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108749         GNULIB_MBSSPN.
108750         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
108751         * MODULES.html.sh (Internationalization functions): Add mbsspn.
108753 2007-02-04  Bruno Haible  <bruno@clisp.org>
108755         New module mbspbrk.
108756         * modules/mbspbrk: New file.
108757         * lib/mbspbrk.c: New file.
108758         * lib/string_.h (strpbrk): Add a conditional link warning.
108759         (mbspbrk): New declaration.
108760         * m4/mbspbrk.m4: New file.
108761         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108762         GNULIB_MBSPBRK.
108763         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
108764         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
108766 2007-02-04  Bruno Haible  <bruno@clisp.org>
108768         New module mbscspn.
108769         * modules/mbscspn: New file.
108770         * lib/mbscspn.c: New file.
108771         * lib/string_.h (strcspn): Add a conditional link warning.
108772         (mbscspn): New declaration.
108773         * m4/mbscspn.m4: New file.
108774         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108775         GNULIB_MBSCSPN.
108776         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
108777         * MODULES.html.sh (Internationalization functions): Add mbscspn.
108779 2007-02-04  Bruno Haible  <bruno@clisp.org>
108781         New module mbscasestr, reduced goal of strcasestr.
108782         * modules/mbscasestr: New file.
108783         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
108784         (mbscasestr): Renamed from strcasestr.
108785         * lib/strcasestr.c: Don't include mbuiter.h.
108786         (strcasestr): Remove support for multibyte locales.
108787         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
108788         Change the conditional link warning.
108789         (mbscasestr): New declaration.
108790         * m4/mbscasestr.m4: New file.
108791         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
108792         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
108793         REPLACE_STRCASESTR.
108794         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
108795         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108796         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108797         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
108798         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
108799         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
108800         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
108801         (Depends-on): Remove mbuiter.
108802         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
108804 2007-02-04  Bruno Haible  <bruno@clisp.org>
108806         Simplify handling of strncasecmp.
108807         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
108808         the conditional link warning.
108809         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
108810         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
108811         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
108812         * modules/strcase (configure.ac): Don't invoke
108813         gl_STRING_MODULE_INDICATOR.
108814         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
108816 2007-02-04  Bruno Haible  <bruno@clisp.org>
108818         New module mbscasecmp, reduced goal of strcasecmp.
108819         * modules/mbscasecmp: New file.
108820         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
108821         (mbscasecmp): Renamed from strcasecmp.
108822         * lib/strcasecmp.c: Don't include mbuiter.h.
108823         (strcasecmp): Remove support for multibyte locales.
108824         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
108825         Change the conditional link warning.
108826         (mbscasecmp): New declaration.
108827         * m4/mbscasecmp.m4: New file.
108828         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
108829         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
108830         REPLACE_STRCASECMP.
108831         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
108832         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108833         GNULIB_MBSCASECMP.
108834         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
108835         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
108836         * modules/strcase (Files): Remove m4/mbrtowc.m4.
108837         (Depends-on): Remove mbuiter.
108838         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
108840 2007-02-04  Bruno Haible  <bruno@clisp.org>
108842         New module mbsstr. Remove module strstr.
108843         * modules/mbsstr: New file.
108844         * modules/strstr: Remove file.
108845         * lib/mbsstr.c: Renamed from lib/strstr.c.
108846         (mbsstr): Renamed from strstr.
108847         * lib/string_.h (strstr): Remove declaration. Change the conditional
108848         link warning.
108849         (mbsstr): New declaration.
108850         * m4/mbsstr.m4: New file.
108851         * m4/strstr.m4: Remove file.
108852         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
108853         REPLACE_STRSTR.
108854         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
108855         Don't initialize GNULIB_STRSTR.
108856         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
108857         substitute GNULIB_STRSTR and REPLACE_STRSTR.
108858         * MODULES.html.sh (Internationalization functions): Add mbsstr.
108859         (Support for systems lacking ANSI C 89): Remove strstr.
108861 2007-02-04  Bruno Haible  <bruno@clisp.org>
108863         New module mbsrchr.
108864         * modules/mbsrchr: New file.
108865         * lib/mbsrchr.c: New file.
108866         * lib/string_.h (strrchr): Add a conditional link warning.
108867         (mbsrchr): New declaration.
108868         * m4/mbsrchr.m4: New file.
108869         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108870         GNULIB_MBSRCHR.
108871         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
108872         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
108874 2007-02-04  Bruno Haible  <bruno@clisp.org>
108876         New module mbschr.
108877         * modules/mbschr: New file.
108878         * lib/mbschr.c: New file.
108879         * lib/string_.h (strchr): Add a conditional link warning.
108880         (mbschr): New declaration.
108881         * m4/mbschr.m4: New file.
108882         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
108883         GNULIB_MBSCHR.
108884         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
108885         * MODULES.html.sh (Internationalization functions): Add mbschr.
108887 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
108889         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
108891         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
108893 2007-02-04  Bruno Haible  <bruno@clisp.org>
108895         New module description section 'configure.ac-early'.
108896         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
108897         (func_get_autoconf_early_snippet): New function.
108898         (func_import, func_create_testdir): Use it. Remove special cases for
108899         modules 'extensions' and 'lock'.
108900         * modules/extensions (configure.ac-early): Require
108901         gl_USE_SYSTEM_EXTENSIONS.
108902         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
108904 2007-02-04  Bruno Haible  <bruno@clisp.org>
108906         Make use of gcj-4.3's -fsource and -ftarget option.
108907         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
108908         and if so try the options -fsource and -ftarget.
108909         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
108910         source_version, ftarget_option, target_version arguments.
108911         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
108912         (is_envjavac_oldgcj_14_14_usable): Renamed from
108913         is_envjavac_gcj_14_14_usable.
108914         (is_envjavac_oldgcj_14_13_usable): Renamed from
108915         is_envjavac_gcj_14_13_usable.
108916         (is_gcj_present): Update.
108917         (is_gcj_43, is_gcj43_usable): New functions.
108918         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
108919         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
108920         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
108921         try the options -fsource and -ftarget.
108923 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
108925         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
108926         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
108927         larger value.
108929 2007-02-03  Jim Meyering  <jim@meyering.net>
108931         Give tools a better chance to allocate space for very large buffers.
108932         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
108934         Make pwd and readlink work also when run with an unreadable parent dir
108935         on systems with openat support.
108936         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
108937         provided getcwd function, even when we have openat support.
108938         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
108940 2007-02-02  Bruno Haible  <bruno@clisp.org>
108942         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
108943         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
108944         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
108945         portability problems if one of these functions is only used on specific
108946         platforms.
108947         Reported by Paul Eggert.
108949 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
108951         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
108952         is causing more trouble than it's curing.
108953         * lib/regex_internal.h (__mempcpy): Remove.
108954         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
108955         (and make the code a tad smaller to boot).
108956         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
108958 2007-02-02  Jim Meyering  <jim@meyering.net>
108960         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
108961         section, not in the Makefile.am: one.
108963 2007-02-02  Eric Blake  <ebb9@byu.net>
108965         * lib/strchrnul.c: Always include config.h first.
108967         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
108968         gnulib strstr is not necessary here.
108970 2007-02-02  Simon Josefsson  <simon@josefsson.org>
108972         * m4/socklen.m4: Fix typo.
108974 2007-02-02  Eric Blake  <ebb9@byu.net>
108976         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
108977         * modules/netinet_in (Makefile.am): Likewise.
108979 2007-02-01  Bruno Haible  <bruno@clisp.org>
108981         * lib/string_.h (GL_LINK_WARNING): New macro.
108982         (strcasecmp, strstr, strcasestr): If provided by the system,
108983         conditionally define as a macro that leads to a warning instead of to
108984         an error.
108985         (strncasecmp): Conditionally define as a macro that leads to a warning.
108987 2007-02-01  Karl Berry  <karl@gnu.org>
108989         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
108991 2007-02-01  Bruno Haible  <bruno@clisp.org>
108993         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
108994         renamings.
108996 2007-02-01  Eric Blake  <ebb9@byu.net>
108998         * modules/regex (Depends-on): Revert dependence on mempcpy.
108999         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
109000         module's definition of mempcpy.
109001         Reported by Paul Eggert.
109003 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
109005         * lib/string_.h: If the gnulib module XYZ is not present, undefine
109006         the symbol XYZ before redefining it.  This fixes a problem with
109007         programs that don't use XYZ, when compiled on systems that define
109008         XYZ to something else.
109010 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
109012         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
109013         occurs when "mkdir -m foo" creates a setgid directory that is (1)
109014         writeable to group or other and (2) is intended to have a special
109015         mode bit that is set or cleared.  In such a case, the directory
109016         should be neither group- nor other-writeable until the special
109017         mode bits are right.
109019 2007-01-31  Eric Blake  <ebb9@byu.net>
109021         * modules/mountlist (Depends-on): Add strstr.
109023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
109024         bug.
109025         * modules/string (Makefile.am): Remove redundant replacement.
109026         * modules/regex (Depends-on): Add mempcpy.
109028 2007-01-31  Bruno Haible  <bruno@clisp.org>
109030         New module description field 'Link'.
109031         * gnulib-tool (func_usage): Document --extract-link-directive.
109032         (sed_extract_prog): Recognize 'Link' directive.
109033         (func_get_link_directive): New function.
109034         (func_import): Show summary of link directives.
109035         Handle --extract-link-directive option.
109036         * modules/acl (Link): New section.
109037         * modules/clock-time (Link): New section.
109038         * modules/euidaccess (Link): New section.
109039         * modules/gettext (Link): New section.
109040         * modules/iconv (Link): New section.
109041         * modules/lock (Link): New section.
109042         * modules/nanosleep (Link): New section.
109043         * modules/readline (Link): New section.
109045 2007-01-27  Bruno Haible  <bruno@clisp.org>
109047         Enforce the use of gnulib modules for unportable <string.h> functions.
109048         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
109049         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
109050         (gl_HEADER_STRING_H_BODY): Require it.
109051         * lib/string_.h: If the gnulib module XYZ is not present, redefine
109052         the symbol XYZ to one that gives a link error.
109053         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
109054         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
109055         * modules/mempcpy (configure.ac): Likewise.
109056         * modules/memrchr (configure.ac): Likewise.
109057         * modules/stpcpy (configure.ac): Likewise.
109058         * modules/stpncpy (configure.ac): Likewise.
109059         * modules/strcase (configure.ac): Likewise.
109060         * modules/strcasestr (configure.ac): Likewise.
109061         * modules/strchrnul (configure.ac): Likewise.
109062         * modules/strdup (configure.ac): Likewise.
109063         * modules/strndup (configure.ac): Likewise.
109064         * modules/strnlen (configure.ac): Likewise.
109065         * modules/strpbrk (configure.ac): Likewise.
109066         * modules/strsep (configure.ac): Likewise.
109067         * modules/strstr (configure.ac): Likewise.
109068         * modules/strtok_r (configure.ac): Likewise.
109070 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
109072         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
109074 2007-01-30  Jim Meyering  <jim@meyering.net>
109076         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
109078 2007-01-29  Bruno Haible  <bruno@clisp.org>
109080         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
109081         * lib/execute.c: Likewise.
109082         * lib/pipe.c: Likewise.
109083         * lib/printf-args.h: Likewise.
109084         * lib/printf-args.c: Likewise.
109085         * lib/printf-parse.c: Likewise.
109086         * lib/vasnprintf.c: Likewise.
109088 2007-01-29  Eric Blake  <ebb9@byu.net>
109090         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
109091         declaration.
109093 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
109095         * lib/strptime.h (strptime): Use 'restrict' for args where
109096         POSIX requires this.
109097         * lib/strptime.c (strptime): Likewise.
109098         Change license notice from LGPL to GPL, since gnulib-tool will
109099         change this as needed.
109100         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
109101         defined.
109102         Include "strptime.h" first, to check interface.
109103         Do not #undef _LIBC and _NL_CURRENT.
109104         Do not include <stdlib.h>; no longer needed.
109105         Include "time_r.h" and declare ptime_locale_status
109106         only if _LIBC is not defined.
109107         (__P): Remove unused macro.
109108         (match_string): Bring back glibc version, but use it only if _LIBC
109109         is defined.
109110         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
109111         Remove unnecessary assertion and abort() call.
109112         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
109113         * m4/strptime.m4: Fix serial number comment.
109114         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
109115         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
109116         (Depends-on): Add time_r.
109118 2007-01-29  Bruno Haible  <bruno@clisp.org>
109120         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
109121         strptime.
109122         * modules/strptime (Depends-on): Add stdbool.
109123         * lib/strptime.h: Include <time.h> always. Add comments.
109125 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
109127         * modules/strptime: New file.
109128         * lib/strptime.h: New file.
109129         * lib/strptime.c: New file.
109130         * m4/strptime.m4: New file.
109132 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
109134         * MODULES.html.sh: New module mpsort.
109135         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
109137         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
109138         a circularity problem with HP-UX ia64 reported by Bob Proulx in
109139         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00394.html>.
109140         All uses changed.
109141         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
109142         All uses changed.
109143         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
109144         to _Restrict_.
109145         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
109146         the parameter matches the prototype.
109148 2007-01-28  Jim Meyering  <jim@meyering.net>
109150         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
109151         sys/time.h here, reverting that part of the previous patch:
109152         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
109154 2007-01-28  Bruno Haible  <bruno@clisp.org>
109156         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
109157         value of $(SYS_TIME_H).
109158         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
109159         remove it conditionally, too. [added by Jim Meyering]
109160         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
109161         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109162         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
109163         GETTIMEOFDAY_REPLACEMENT to 1.
109165 2007-01-28  Bruno Haible  <bruno@clisp.org>
109167         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
109168         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
109169         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
109170         Set UNISTD_H instead of UNISTD_H2.
109171         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
109173 2007-01-28  Bruno Haible  <bruno@clisp.org>
109175         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
109176         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
109178 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109180         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
109181         (func_create_testdir): Ensure C locale for `grep' and `tr'
109182         character ranges.
109183         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
109184         ACLOCAL_AMFLAGS parsing state machine.
109186 2007-01-27  Bruno Haible  <bruno@clisp.org>
109188         * modules/unistr/base: Update.
109190 2007-01-27  Bruno Haible  <bruno@clisp.org>
109192         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
109193         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
109194         * modules/unistr/u32-mbtouc-unsafe: Renamed from
109195         modules/unistr/u32-mbtouc.
109196         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
109197         * lib/unistr.h: Update.
109198         * lib/linebreak.c: Update.
109199         * modules/unistr/u32-mbtouc: Renamed from
109200         modules/unistr/u32-mbtouc-safe.
109201         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
109202         * lib/unistr.h: Update.
109203         * lib/unistr/u32-to-u8.c: Update.
109204         * lib/unistr/u32-to-u16.c: Update.
109206 2007-01-27  Bruno Haible  <bruno@clisp.org>
109208         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
109209         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
109210         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
109211         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
109212         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
109213         * modules/unistr/u16-mbtouc-unsafe: Renamed from
109214         modules/unistr/u16-mbtouc.
109215         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
109216         * lib/unistr.h: Update.
109217         * lib/linebreak.c: Update.
109218         * modules/linebreak: Update.
109219         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
109220         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
109221         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
109222         * modules/unistr/u16-mbtouc: Renamed from
109223         modules/unistr/u16-mbtouc-safe.
109224         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
109225         * lib/unistr.h: Update.
109226         * lib/unistr/u16-to-u8.c: Update.
109227         * modules/unistr/u16-to-u8: Update.
109228         * lib/unistr/u16-to-u32.c: Update.
109229         * modules/unistr/u16-to-u32: Update.
109231 2007-01-27  Bruno Haible  <bruno@clisp.org>
109233         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
109234         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
109235         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
109236         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
109237         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
109238         * modules/unistr/u8-mbtouc-unsafe: Renamed from
109239         modules/unistr/u8-mbtouc.
109240         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
109241         * lib/unistr.h: Update.
109242         * lib/striconveh.c: Update.
109243         * modules/striconveh: Update.
109244         * lib/linebreak.c: Update.
109245         * modules/linebreak: Update.
109246         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
109247         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
109248         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
109249         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
109250         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
109251         * lib/unistr.h: Update.
109252         * lib/striconveh.c: Update.
109253         * modules/striconveh: Update.
109254         * lib/unistr/u8-to-u16.c: Update.
109255         * modules/unistr/u8-to-u16: Update.
109256         * lib/unistr/u8-to-u32.c: Update.
109257         * modules/unistr/u8-to-u32: Update.
109259 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
109261         Sync from Libtool.
109262         * lib/argz.c: Do not include strings.h nor memory.h, include
109263         string.h unconditionally.  Patch by Simon Josefsson.
109265 2007-01-27  Bruno Haible  <bruno@clisp.org>
109267         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
109268         from gl_HEADER_STRING_H_BODY.
109269         (gl_HEADER_STRING_H_BODY): Require it.
109270         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
109271         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
109272         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
109273         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
109274         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
109275         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
109276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
109277         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
109278         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
109279         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
109280         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
109281         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
109282         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
109283         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
109284         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
109286 2007-01-27  Bruno Haible  <bruno@clisp.org>
109288         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
109289         check_PROGRAMS into noinst_PROGRAMS.
109290         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
109291         check_PROGRAMS in this case.
109292         (func_import): Set for_test to false.
109293         (func_create_testdir): Set for_test to true.
109295 2007-01-27  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109296             Bruno Haible  <bruno@clisp.org>
109298         * modules/strcasestr (Files): Remove lib/strcasestr.h.
109299         (Depends-on): Add string.
109300         (Includes): Use <string.h> instead of strcasestr.h.
109301         * modules/string (Makefile.am): Also substitute the value of
109302         REPLACE_STRCASESTR.
109303         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
109304         assume strcasestr is declared in <string.h> not <strings.h>. Also
109305         set REPLACE_STRCASESTR.
109306         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
109307         REPLACE_STRCASESTR.
109308         * lib/strcasestr.h: Remove file.
109309         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
109310         * lib/string_.h (strcasestr): New declaration.
109312 2007-01-27  Bruno Haible  <bruno@clisp.org>
109314         * lib/string_.h: Use 'extern'.
109316 2007-01-27  Jim Meyering  <jim@meyering.net>
109318         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
109319         of set-but-not-used local, "q".
109321         * lib/mempcpy.c: Include <config.h> before <string.h>.
109322         This fixes a compilation error on HP-UX, due to the system's
109323         "restrict"-using mempcpy prototype.
109325 2007-01-26  Bruno Haible  <bruno@clisp.org>
109327         Small optimization.
109328         * lib/javacomp.c: Include c-strstr.h.
109329          (is_envjavac_gcj): Use c_strstr instead of strstr.
109330         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
109332 2007-01-26  Bruno Haible  <bruno@clisp.org>
109334         * MODULES.html.sh (Unicode string functions): Add the new modules.
109336         * modules/uniconv/u32-strconv-to-locale: New file.
109337         * lib/uniconv/u32-strconv-to-locale.c: New file.
109339         * modules/uniconv/u16-strconv-to-locale: New file.
109340         * lib/uniconv/u16-strconv-to-locale.c: New file.
109342         * modules/uniconv/u8-strconv-to-locale: New file.
109343         * lib/uniconv/u8-strconv-to-locale.c: New file.
109345         * modules/uniconv/u32-strconv-from-locale: New file.
109346         * lib/uniconv/u32-strconv-from-locale.c: New file.
109348         * modules/uniconv/u16-strconv-from-locale: New file.
109349         * lib/uniconv/u16-strconv-from-locale.c: New file.
109351         * modules/uniconv/u8-strconv-from-locale: New file.
109352         * lib/uniconv/u8-strconv-from-locale.c: New file.
109354         * modules/uniconv/u32-strconv-to-enc: New file.
109355         * lib/uniconv/u32-strconv-to-enc.c: New file.
109356         * modules/uniconv/u32-strconv-to-enc-tests: New file.
109357         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
109359         * modules/uniconv/u16-strconv-to-enc: New file.
109360         * lib/uniconv/u16-strconv-to-enc.c: New file.
109361         * lib/uniconv/u-strconv-to-enc.h: New file.
109362         * modules/uniconv/u16-strconv-to-enc-tests: New file.
109363         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
109365         * modules/uniconv/u8-strconv-to-enc: New file.
109366         * lib/uniconv/u8-strconv-to-enc.c: New file.
109367         * modules/uniconv/u8-strconv-to-enc-tests: New file.
109368         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
109370         * modules/uniconv/u32-strconv-from-enc: New file.
109371         * lib/uniconv/u32-strconv-from-enc.c: New file.
109372         * modules/uniconv/u32-strconv-from-enc-tests: New file.
109373         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
109375         * modules/uniconv/u16-strconv-from-enc: New file.
109376         * lib/uniconv/u16-strconv-from-enc.c: New file.
109377         * modules/uniconv/u16-strconv-from-enc-tests: New file.
109378         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
109380         * modules/uniconv/u8-strconv-from-enc: New file.
109381         * lib/uniconv/u8-strconv-from-enc.c: New file.
109382         * lib/uniconv/u-strconv-from-enc.h: New file.
109383         * modules/uniconv/u8-strconv-from-enc-tests: New file.
109384         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
109386         * modules/uniconv/u32-conv-from-enc: New file.
109387         * lib/uniconv/u32-conv-from-enc.c: New file.
109388         * modules/uniconv/u32-conv-from-enc-tests: New file.
109389         * tests/uniconv/test-u32-conv-from-enc.c: New file.
109391         * modules/uniconv/u16-conv-from-enc: New file.
109392         * lib/uniconv/u16-conv-from-enc.c: New file.
109393         * lib/uniconv/u-conv-from-enc.h: New file.
109394         * modules/uniconv/u16-conv-from-enc-tests: New file.
109395         * tests/uniconv/test-u16-conv-from-enc.c: New file.
109397         * modules/uniconv/u8-conv-from-enc: New file.
109398         * lib/uniconv/u8-conv-from-enc.c: New file.
109399         * modules/uniconv/u8-conv-from-enc-tests: New file.
109400         * tests/uniconv/test-u8-conv-from-enc.c: New file.
109402         * modules/uniconv/base: New file.
109403         * lib/uniconv.h: New file.
109405 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
109407         * doc/gnulib-tool.texi (Initial import): Update to match current
109408         behavior with strdup module.
109409         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
109410         * lib/memmem.h: Remove; all uses removed.  This is now done
109411         by <string.h>.
109412         * lib/mempcpy.h: Likewise.
109413         * lib/memrchr.h: Likewise.
109414         * lib/stpcpy.h: Likewise.
109415         * lib/stpncpy.h: Likewise.
109416         * lib/strcase.h: Likewise.
109417         * lib/strchrnul.h: Likewise.
109418         * lib/strdup.h: Likewise.
109419         * lib/strndup.h: Likewise.
109420         * lib/strnlen.h: Likewise.
109421         * lib/strpbrk.h: Likewise.
109422         * lib/strsep.h: Likewise.
109423         * lib/strstr.h: Likewise.
109424         * lib/strtok_r.h: Likewise.
109425         * lib/string_.h: New file.
109426         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
109427         Rely on <string.h> instead.
109428         * lib/canon-host.c: Likewise.
109429         * lib/chdir-long.c: Likewise.
109430         * lib/concatpath.c: Likewise.
109431         * lib/exclude.c: Likewise.
109432         * lib/fchdir.c: Likewise.
109433         * lib/getaddrinfo.c: Likewise.
109434         * lib/getcwd.c: Likewise.
109435         * lib/getsubopt.c: Likewise.
109436         * lib/glob.c: Likewise.
109437         * lib/hard-locale.c: Likewise.
109438         * lib/iconvme.c: Likewise.
109439         * lib/javacomp.c: Likewise.
109440         * lib/mempcpy.c: Likewise.
109441         * lib/memrchr.c: Likewise.
109442         * lib/regex_internal.h: Likewise.
109443         * lib/stpncpy.c: Likewise.
109444         * lib/strcasecmp.c: Likewise.
109445         * lib/strchrnul.c: Likewise.
109446         * lib/strdup.c: Likewise.
109447         * lib/striconv.c: Likewise.
109448         * lib/striconveh.c: Likewise.
109449         * lib/striconveha.c: Likewise.
109450         * lib/strncasecmp.c: Likewise.
109451         * lib/strndup.c: Likewise.
109452         * lib/strnlen.c: Likewise.
109453         * lib/strsep.c: Likewise.
109454         * lib/strstr.c: Likewise.
109455         * lib/strtok_r.c: Likewise.
109456         * lib/userspec.c: Likewise.
109457         * lib/w32spawn.h: Likewise.
109458         * lib/xstrndup.c: Likewise.
109459         * lib/mountlist.c (strstr): Remove decl.
109460         * m4/string_h.m4: New file.
109461         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
109462         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
109463         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
109464         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
109465         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
109466         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
109467         Set REPLACE_STRCASECMP if necessary.
109468         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
109469         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
109470         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
109471         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
109472         HAVE_DECL_STRDUP if necessary.
109473         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
109474         since gl_FUNC_STRNDUP does that now.
109475         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
109476         Check for decl here...
109477         (gl_PREREQ_STRNLEN): ... not here.
109478         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
109479         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
109480         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
109481         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
109482         necessary.
109483         * modules/string: New file.
109484         * modules/memmem (Files): Remove special-purpose include file.
109485         (Depends-on): Add string.
109486         (Include): Include <string.h>, not the removed file.
109487         * modules/mempcpy: Likewise.
109488         * modules/memrchr: Likewise.
109489         * modules/stpcpy: Likewise.
109490         * modules/stpncpy: Likewise.
109491         * modules/strcase: Likewise.
109492         * modules/strchrnul: Likewise.
109493         * modules/strdup: Likewise.
109494         * modules/strndup: Likewise.
109495         * modules/strnlen: Likewise.
109496         * modules/strpbrk: Likewise.
109497         * modules/strsep: Likewise.
109498         * modules/strstr: Likewise.
109499         * modules/strtok_r: Likewise.
109500         * tests/test-dirname.c: Don't include "strdup.h", since
109501         <string.h> now suffices.
109502         * tests/test-memmem.c: Don't include "memmem.h", since
109503         <string.h> now suffices.
109505 2007-01-25  Bruno Haible  <bruno@clisp.org>
109507         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
109508         *resultp is 0.
109510         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
109511         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
109512         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
109513         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
109515         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
109516         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
109517         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
109518         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
109519         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
109520         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
109522 2007-01-24  Bruno Haible  <bruno@clisp.org>
109524         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
109525         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00279.html>.
109526         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
109527         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
109528         gl_FUNC_FTS_CORE.
109529         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
109530         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
109531         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
109532         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
109533         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
109534         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
109535         gl_FUNC_FCHOWNAT.
109536         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
109537         gl_FUNC_STRFTIME.
109538         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
109539         Reported by Ralf Wildenhues.
109541 2007-01-24  Bruno Haible  <bruno@clisp.org>
109543         Drop AC_REQUIRE calls that are redundant with the module dependencies.
109544         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
109545         gl_GETADDRINFO.
109546         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
109547         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
109548         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
109550 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
109552         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
109553         Don't use 'exit'; just return from 'main'.
109554         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
109556         * lib/fnmatch_.h: Readjust white space and comments to match
109557         glibc, to avoid spurious diffs.
109559 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109561         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
109562         2004-12-01 change by Jakub Jelinek, since this code won't compile
109563         if !LIBC.  Problem reported by Bob Proulx.
109565 2007-01-23  Bruno Haible  <bruno@clisp.org>
109567         * lib/striconveh.c: Include c-strcaseeq.h.
109568         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
109569         * modules/striconveh (Depends-on): Add c-strcaseeq.
109571 2007-01-23  Bruno Haible  <bruno@clisp.org>
109573         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
109575         * modules/c-strcaseeq: New file.
109576         * lib/c-strcaseeq.h: New file.
109578         * modules/streq: New file.
109579         * lib/streq.h: New file.
109581 2007-01-23  Bruno Haible  <bruno@clisp.org>
109583         * modules/striconveha-tests: New file.
109584         * tests/test-striconveha.c: New file.
109586         * lib/striconveha.h: Include <stdbool.h>.
109587         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
109588         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
109589         (mem_iconveha_notranslit): Renamed from mem_iconveha.
109590         (mem_iconveha): New function.
109591         (str_iconveha_notranslit): Renamed from str_iconveha.
109592         (str_iconveha): New function.
109593         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
109594         c-strcase.
109596 2007-01-23  Bruno Haible  <bruno@clisp.org>
109598         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
109599         encodings without forgiving before trying any encoding with handler.
109600         (str_iconveha): Try all encodings without forgiving before trying any
109601         encoding with handler.
109603 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
109605         Import the following changes from libc.
109607         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
109609         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
109611         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
109613         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
109614         normal_bracket label.
109616         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
109618         [BZ #361]
109619         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
109620         to normal_bracket after fetching the next character.
109622 2007-01-22  Bruno Haible  <bruno@clisp.org>
109624         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
109625         argument.
109626         * lib/striconveh.c (iconv_carefully_1): New function.
109627         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
109628         argument.
109629         (str_cd_iconveh): Update.
109630         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
109631         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
109632         * tests/test-striconveh.c (MAGIC): New macro.
109633         (new_offsets): New function.
109634         (main): Test call with and without offsets.
109636 2007-01-22  Bruno Haible  <bruno@clisp.org>
109638         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
109639         * modules/sys_select (Makefile.am): Likewise.
109640         * modules/sys_socket (Makefile.am): Likewise.
109641         * modules/sys_time (Makefile.am): Likewise.
109643 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
109645         * modules/gettimeofday (License): Change from GPL to LGPL, since
109646         gettimeofday is a library function.
109648 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109650         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
109652 2007-01-21  Bruno Haible  <bruno@clisp.org>
109654         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
109656 2007-01-21  Bruno Haible  <bruno@clisp.org>
109658         * modules/striconveha: New file.
109659         * lib/striconveha.h: New file.
109660         * lib/striconveha.c: New file.
109661         * MODULES.html.sh (Internationalization functions): Add striconveha.
109662         * lib/striconv.c (str_iconv): Optimize the case of an empty input
109663         string.
109664         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
109666 2007-01-21  Bruno Haible  <bruno@clisp.org>
109668         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
109669         * lib/striconveh.c (str_iconveh): Likewise.
109671 2007-01-21  Bruno Haible  <bruno@clisp.org>
109673         * lib/striconveh.h (mem_iconveh): New declaration.
109674         * lib/striconveh.c (mem_iconveh): New function.
109675         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
109677 2007-01-21  Bruno Haible  <bruno@clisp.org>
109679         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
109681         * lib/striconveh.h (mem_cd_iconveh): Change specification.
109682         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
109683         original result buffer.
109684         (str_cd_iconveh): Update.
109685         * tests/test-striconveh.c (main): Update.
109687         * lib/striconv.h (mem_cd_iconv): Change specification.
109688         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
109689         result buffer.
109690         (str_cd_iconv): Update.
109691         * tests/test-striconv.c (main): Update.
109693 2007-01-21  Bruno Haible  <bruno@clisp.org>
109695         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
109697 2007-01-20  Jim Meyering  <jim@meyering.net>
109699         * lib/userspec.c (parse_with_separator): If a user or group string
109700         starts with "+", skip the corresponding name-to-ID look-up, since
109701         such a look-up must fail: user and group names may not include "+".
109703 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
109705         * lib/poll.c: Include sys/time.h and time.h unconditionally,
109706         since we now assume the sys_time module.
109707         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
109708         check for sys/time.h; no longer needed.
109709         * modules/poll (Depends-on): Depend on sys_time.
109711 2007-01-18  Bruno Haible  <bruno@clisp.org>
109713         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
109714         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109716         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
109717         gettimeofday.
109719         * tests/test-gettimeofday.c: Include <time.h>.
109720         (dummy): Remove variable.
109722         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
109723         gl_HEADER_SYS_TIME_H.
109724         (gl_HEADER_SYS_TIME_H): New macro.
109726         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
109727         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109728         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
109729         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
109730         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109731         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
109732         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
109733         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109734         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
109735         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
109736         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109738         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
109739         last change; it caused a compilation error when cross-compiling to
109740         Cygwin.
109742 2007-01-18  Jim Meyering  <jim@meyering.net>
109744         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
109745         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
109746         than the race-prone "test -d sys || mkdir sys".
109747         (configure.ac): Use AC_PROG_MKDIR_P.
109748         * modules/sys_select: Likewise.
109749         * modules/sys_socket: Likewise.
109750         * modules/sys_time: Likewise.
109752 2007-01-18  Eric Blake  <ebb9@byu.net>
109754         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
109755         replace gettimeofday.
109756         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
109757         name, to avoid infinite recursion.
109759 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
109761         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
109762         module sys_time.
109763         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
109764         assume timespec.h defines struct timeval.
109765         * lib/settime.c: Likewise.
109766         * lib/utimens.c: Likewise.
109767         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
109768         since we now assume the gettimeofday module.
109769         * lib/tempname.c (__gen_tempname): Likewise.
109770         * lib/gettimeofday.h: Remove.
109771         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
109772         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
109773         Include <time.h>, for 'time()'.
109774         (localtime_buffer_addr): Also use this workaround if
109775         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
109776         to simplify the uses.  All uses changed.
109777         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
109778         that #undef is inside {}, and 'const' follows type name consistently.
109779         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
109780         (gettimeofday): Do not use the maximum possible value for
109781         tv->tv_usec, since that might break usages other than ls.c.
109782         Instead, we'll leave ls.c alone.  This undoes today's patch
109783         by Bruno.  Add a compile-time warning for 1s-clock resolution;
109784         we've never observed the problem but might as well keep the
109785         canary.
109786         * lib/nanosleep.c: Include timespec.h first, for interface check.
109787         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
109788         now assume the sys_time module.
109789         * lib/tempname.c: Likewise.
109790         * lib/timespec.h: Likewise.
109791         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
109792         needed.
109793         * lib/strftime.c: Likewise.
109794         * lib/timespec.h: Likewise.
109795         * lib/posixtm.c: Include posixtm.h first, for interface check.
109796         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
109797         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
109798         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
109799         * lib/sys_time_.h: New file.
109800         * lib/timespec.h (struct timespec): Use long int, not long.
109801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
109802         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
109803         Remove obsolescent call to AC_HEADER_TIME.
109804         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
109805         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
109806         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
109807         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
109808         Likewise.
109809         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
109810         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
109811         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
109812         into the sys_time module.  Check for gettimeofday just once.
109813         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
109814         for gettimeofday signature to just check the signature.  Merely
109815         compile it, since linking doesn't test signature.  Improve test for
109816         whether gettimeofday.o is actually needed.
109817         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
109818         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
109819         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
109820         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109821         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
109822         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
109823         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
109824         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
109825         than worrying about sys/time.h.
109826         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
109827         Don't bother worrying about TIME_WITH_SYS_TIME.
109828         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
109829         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
109830         * m4/sys_time_h.m4: New file.
109831         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
109832         Don't include sys/time.h.  Return from main rather than exiting.
109833         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
109834         all uses changed.
109835         * modules/gethrxtime (Depends-on): Add sys_time.
109836         * modules/gettime (Depends-on): Likewise.
109837         * modules/gettimeofday (Depends-on): Likewise.
109838         * modules/nanosleep (Depends-on): Likewise.
109839         * modules/settime (Depends-on): Likewise.
109840         * modules/tempname (Depends-on): Likewise.
109841         * modules/utimens (Depends-on): Likewise.
109842         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
109843         (Include): Change back to <sys/time.h>.
109844         (Maintainer): Add self.
109845         * modules/sys_time: New file.
109846         * modules/tempname (Depends-on): Add gettimeofday.
109847         * tests/test-gettimeofday.c: Include <sys/time.h>
109848         rather than gettimeofday.h.
109850 2007-01-17  Bruno Haible  <bruno@clisp.org>
109852         * gnulib-tool (func_get_license): Revert last patch. Instead, let
109853         the license default to GPL.
109854         (func_create_testdir): Don't complain if a module is LGPL and its
109855         tests module depends on GPLed modules.
109857 2007-01-17  Bruno Haible  <bruno@clisp.org>
109859         * lib/gettimeofday.c (gettimeofday): Add code for the case
109860         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
109861         maximum possible value for tv->tv_usec, rather than the minimum one.
109863 2005-10-08  Martin Lambers  <marlam@marlam.de>
109864 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
109865 2007-01-16  Bruno Haible  <bruno@clisp.org>
109867         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
109868         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
109869         gl_FUNC_GETTIMEOFDAY.
109870         (Include): Add gettimeofday.h.
109871         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
109872         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
109873         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
109874         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
109875         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
109876         * lib/gettimeofday.h: New file.
109877         * lib/gettimeofday.c: Include <sys/timeb.h>.
109878         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
109879         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
109880         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
109881         fall back on time().
109883         * tests/test-gettimeofday.c: New file.
109884         * modules/gettimeofday-tests: New file.
109886 2007-01-16  Eric Blake  <ebb9@byu.net>
109888         * modules/fnmatch (Depends-on): Depend on wchar.
109889         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
109890         * m4/fnmatch.m4: Likewise.
109891         * modules/mbchar (Makefile.am): Assume <wchar.h>.
109892         * m4/mbchar.m4: Likewise.
109893         * modules/mbswidth (Depends-on): Depend on wchar.
109894         * lib/mbswidth.c: Assume <wchar.h>.
109895         * m4/mbswidth.m4: Likewise.
109896         * modules/quotearg (Depends-on): Depend on wchar.
109897         * lib/quotearg.c: Assume <wchar.h>.
109898         * m4/quotearg.m4: Likewise.
109899         * modules/regex (Depends-on): Depend on wchar.
109900         * lib/regex_internal.h: Assume <wchar.h>.
109901         * m4/regex.m4: Likewise.
109902         * modules/stdint (Depends-on): Depend on wchar.
109903         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
109904         * m4/stdint.m4: Likewise.
109905         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
109906         * modules/strftime (Depends-on): Depend on wchar.
109907         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
109908         * modules/strtol (Depends-on): Depend on wchar.
109909         * lib/strtol.c: Assume <wchar.h>.
109910         * modules/wcwidth (Depends-on): Depend on wchar.
109911         * lib/wcwidth.h: Assume <wchar.h>.
109912         * m4/wcwidth.m4: Likewise.
109914 2007-01-16  Bruno Haible  <bruno@clisp.org>
109916         * modules/csharpexec-script: New, created from...
109917         * modules/csharpexec: ... this.
109919 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
109921         * modules/javaexec-script: New, created from...
109922         * modules/javaexec: ... this.
109924 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
109926         * modules/poll (Dependencies): Add sys_select.
109928 2007-01-15  Jim Meyering  <jim@meyering.net>
109930         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
109931         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
109932         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
109933         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
109935 2007-01-15  Bruno Haible  <bruno@clisp.org>
109937         * modules/striconveh: New file.
109938         * lib/striconveh.h: New file.
109939         * lib/striconveh.c: New file.
109940         * MODULES.html.sh (Internationalization functions): Add striconveh.
109942         * modules/striconveh-tests: New file.
109943         * tests/test-striconveh.c: New file.
109945 2007-01-15  Bruno Haible  <bruno@clisp.org>
109947         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
109948         not from GNU libiconv or GNU libc.
109950 2007-01-15  Bruno Haible  <bruno@clisp.org>
109952         * doc/gnulib-intro.texi (Copyright): Explain the different license
109953         terms for module descriptions, autoconf macros, tests, documentation.
109955 2007-01-14  Bruno Haible  <bruno@clisp.org>
109957         * modules/striconv-tests: New file.
109958         * tests/test-striconv.c: New file.
109960 2007-01-14  Bruno Haible  <bruno@clisp.org>
109962         * modules/iconv-tests: New file.
109963         * tests/test-iconv.c: New file.
109965 2007-01-14  Bruno Haible  <bruno@clisp.org>
109967         * gnulib-tool (func_get_license): For test modules, use the license of
109968         the main module.
109970 2007-01-14  Bruno Haible  <bruno@clisp.org>
109972         * modules/iconv (Include): Clarify that <iconv.h> can only be included
109973         if iconv is found to exist.
109975 2007-01-14  Bruno Haible  <bruno@clisp.org>
109977         * modules/c-ctype-tests: New file.
109978         * tests/test-c-ctype.c: New file.
109980 2007-01-14  Bruno Haible  <bruno@clisp.org>
109982         * modules/binary-io-tests: New file.
109983         * tests/test-binary-io.sh: New file.
109984         * tests/test-binary-io.c: New file.
109986 2007-01-14  Bruno Haible  <bruno@clisp.org>
109988         * modules/array-oset-tests: New file.
109989         * tests/test-array_oset.c: New file.
109991 2007-01-14  Bruno Haible  <bruno@clisp.org>
109993         * modules/array-list-tests: New file.
109994         * tests/test-array_list.c: New file.
109996 2007-01-14  Bruno Haible  <bruno@clisp.org>
109998         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
109999         and make.
110000         Reported by Simon Josefsson in
110001         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00139.html>
110003 2007-01-14  Bruno Haible  <bruno@clisp.org>
110005         * modules/allocsa-tests: New file.
110006         * tests/test-allocsa.c: New file.
110008 2007-01-14  Bruno Haible  <bruno@clisp.org>
110010         * modules/fchdir (Depends-on): Add absolute-header.
110011         * modules/unistd (Depends-on): Likewise.
110013 2006-12-30  Bruno Haible  <bruno@clisp.org>
110015         * modules/fchdir: New file.
110016         * modules/unistd (Files): Add lib/unistd_.h.
110017         (Makefile.am): Generate unistd.h from unistd_.h.
110018         * lib/fchdir.c: New file.
110019         * lib/dirent_.h: New file.
110020         * lib/unistd_.h: New file.
110021         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
110022         * m4/fchdir.m4: New file.
110023         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
110024         (gl_HEADER_UNISTD): Invoke it.
110025         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
110026         function.
110027         * lib/backupfile.c (opendir, closedir): Undefine.
110028         * lib/chown.c (open, close): Undefine.
110029         * lib/clean-temp.c (open, close): Undefine.
110030         * lib/copy-file.c (open, close): Undefine.
110031         * lib/execute.c (open, close): Undefine.
110032         * lib/fsusage.c (open, close): Undefine.
110033         * lib/gc-gnulib.c (open, close): Undefine.
110034         * lib/getcwd.c (opendir, closedir): Undefine.
110035         * lib/glob.c (opendir, closedir): Undefine.
110036         * lib/javacomp.c (open, close): Undefine.
110037         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
110038         * lib/openat-proc.c (open, close): Undefine.
110039         * lib/pagealign_alloc.c (open, close): Undefine.
110040         * lib/pipe.c (open, close): Undefine.
110041         * lib/progreloc.c (open, close): Undefine.
110042         * lib/savedir.c (opendir, closedir): Undefine.
110043         * lib/utime.c (open, close): Undefine.
110044         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
110046 2007-01-10  Bruno Haible  <bruno@clisp.org>
110048         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
110050 2007-01-12  Eric Blake  <ebb9@byu.net>
110052         Provide a robust <wchar.h>.  Further simplifications are now
110053         possible in other modules, but not included here.
110054         * modules/wchar: New module.
110055         * m4/wchar.m4: New file.
110056         * lib/wchar_.h: Likewise.
110057         * modules/mbchar (Depends-on): Depend on wchar, as the first use
110058         of the new module.
110059         * MODULES.html.sh (Extended multibyte and wide character utilities):
110060         New section.
110062 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
110064         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
110065         to a reasonable default for memory allocation.
110066         (xreadlink): Don't allocate a huge buffer, to work around a buggy
110067         file system that reports garbage st_size values for symlinks.
110068         Problem reported by Liyang Hu.
110070 2007-01-11  Simon Josefsson  <simon@josefsson.org>
110072         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
110073         Emacs .#* auto-save files).
110075 2007-01-11  Bruno Haible  <bruno@clisp.org>
110077         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
110078         directory.
110080 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
110082         Use @...@ consistently in lib/wctype_.h.
110083         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
110084         on it being set to 1 or 0.
110085         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
110086         go back to AC_SUBSTing it.
110087         * modules/wctype (Makefile.am): Undo previous change.
110089 2007-01-10  Eric Blake  <ebb9@byu.net>
110091         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
110092         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
110093         * modules/wctype (Makefile.am): Likewise.
110094         Reported by Chris McGuire.
110096 2007-01-10  Jim Meyering  <jim@meyering.net>
110098         fts.c: a small readability/maintainability improvement
110099         * lib/fts.c (fts_read): Make this code slightly more readable and
110100         maintainable by hoisting the "sp->fts_cur = p" assignments to
110101         immediately follow the statements that set P.  Derived from
110102         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
110104 2007-01-10  Eric Blake  <ebb9@byu.net>
110106         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
110107         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
110108         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110109         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
110110         Reported by Chris McGuire.
110112 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110114         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
110115         in sed script.
110117 2007-01-09  Bruno Haible  <bruno@clisp.org>
110119         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
110120         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
110121         variables.
110122         (func_module): Use them.
110124 2007-01-09  Bruno Haible  <bruno@clisp.org>
110126         * modules/unistr/base: New file.
110127         * lib/unistr.h: New file.
110129         * modules/unistr/u8-to-u16: New file.
110130         * lib/unistr/u8-to-u16.c: New file.
110132         * modules/unistr/u8-to-u32: New file.
110133         * lib/unistr/u8-to-u32.c: New file.
110135         * modules/unistr/u16-to-u8: New file.
110136         * lib/unistr/u16-to-u8.c: New file.
110138         * modules/unistr/u16-to-u32: New file.
110139         * lib/unistr/u16-to-u32.c: New file.
110141         * modules/unistr/u32-to-u8: New file.
110142         * lib/unistr/u32-to-u8.c: New file.
110144         * modules/unistr/u32-to-u16: New file.
110145         * lib/unistr/u32-to-u16.c: New file.
110147         * modules/unistr/u8-check: New file.
110148         * modules/unistr/u16-check: New file.
110149         * modules/unistr/u32-check: New file.
110150         * lib/unistr/u8-check.c: New file.
110151         * lib/unistr/u16-check.c: New file.
110152         * lib/unistr/u32-check.c: New file.
110154         * modules/unistr/u8-chr: New file.
110155         * modules/unistr/u16-chr: New file.
110156         * modules/unistr/u32-chr: New file.
110157         * lib/unistr/u8-chr.c: New file.
110158         * lib/unistr/u16-chr.c: New file.
110159         * lib/unistr/u32-chr.c: New file.
110161         * modules/unistr/u8-cmp: New file.
110162         * modules/unistr/u16-cmp: New file.
110163         * modules/unistr/u32-cmp: New file.
110164         * lib/unistr/u8-cmp.c: New file.
110165         * lib/unistr/u16-cmp.c: New file.
110166         * lib/unistr/u32-cmp.c: New file.
110168         * modules/unistr/u8-cpy: New file.
110169         * modules/unistr/u16-cpy: New file.
110170         * modules/unistr/u32-cpy: New file.
110171         * lib/unistr/u8-cpy.c: New file.
110172         * lib/unistr/u16-cpy.c: New file.
110173         * lib/unistr/u32-cpy.c: New file.
110174         * lib/unistr/u-cpy.h: New file.
110176         * modules/unistr/u8-cpy-alloc: New file.
110177         * modules/unistr/u16-cpy-alloc: New file.
110178         * modules/unistr/u32-cpy-alloc: New file.
110179         * lib/unistr/u8-cpy-alloc.c: New file.
110180         * lib/unistr/u16-cpy-alloc.c: New file.
110181         * lib/unistr/u32-cpy-alloc.c: New file.
110182         * lib/unistr/u-cpy-alloc.h: New file.
110184         * modules/unistr/u8-endswith: New file.
110185         * modules/unistr/u16-endswith: New file.
110186         * modules/unistr/u32-endswith: New file.
110187         * lib/unistr/u8-endswith.c: New file.
110188         * lib/unistr/u16-endswith.c: New file.
110189         * lib/unistr/u32-endswith.c: New file.
110190         * lib/unistr/u-endswith.h: New file.
110192         * modules/unistr/u8-mblen: New file.
110193         * modules/unistr/u16-mblen: New file.
110194         * modules/unistr/u32-mblen: New file.
110195         * lib/unistr/u8-mblen.c: New file.
110196         * lib/unistr/u16-mblen.c: New file.
110197         * lib/unistr/u32-mblen.c: New file.
110199         * modules/unistr/u8-mbtouc: New file.
110200         * modules/unistr/u16-mbtouc: New file.
110201         * modules/unistr/u32-mbtouc: New file.
110202         * lib/unistr/u8-mbtouc.c: New file.
110203         * lib/unistr/u16-mbtouc.c: New file.
110204         * lib/unistr/u32-mbtouc.c: New file.
110206         * modules/unistr/u8-mbtouc-safe: New file.
110207         * modules/unistr/u16-mbtouc-safe: New file.
110208         * modules/unistr/u32-mbtouc-safe: New file.
110209         * lib/unistr/u8-mbtouc-safe.c: New file.
110210         * lib/unistr/u16-mbtouc-safe.c: New file.
110211         * lib/unistr/u32-mbtouc-safe.c: New file.
110213         * modules/unistr/u8-move: New file.
110214         * modules/unistr/u16-move: New file.
110215         * modules/unistr/u32-move: New file.
110216         * lib/unistr/u8-move.c: New file.
110217         * lib/unistr/u16-move.c: New file.
110218         * lib/unistr/u32-move.c: New file.
110219         * lib/unistr/u-move.h: New file.
110221         * modules/unistr/u8-next: New file.
110222         * modules/unistr/u16-next: New file.
110223         * modules/unistr/u32-next: New file.
110224         * lib/unistr/u8-next.c: New file.
110225         * lib/unistr/u16-next.c: New file.
110226         * lib/unistr/u32-next.c: New file.
110228         * modules/unistr/u8-prev: New file.
110229         * modules/unistr/u16-prev: New file.
110230         * modules/unistr/u32-prev: New file.
110231         * lib/unistr/u8-prev.c: New file.
110232         * lib/unistr/u16-prev.c: New file.
110233         * lib/unistr/u32-prev.c: New file.
110235         * modules/unistr/u8-set: New file.
110236         * modules/unistr/u16-set: New file.
110237         * modules/unistr/u32-set: New file.
110238         * lib/unistr/u8-set.c: New file.
110239         * lib/unistr/u16-set.c: New file.
110240         * lib/unistr/u32-set.c: New file.
110241         * lib/unistr/u-set.h: New file.
110243         * modules/unistr/u8-startswith: New file.
110244         * modules/unistr/u16-startswith: New file.
110245         * modules/unistr/u32-startswith: New file.
110246         * lib/unistr/u8-startswith.c: New file.
110247         * lib/unistr/u16-startswith.c: New file.
110248         * lib/unistr/u32-startswith.c: New file.
110249         * lib/unistr/u-startswith.h: New file.
110251         * modules/unistr/u8-stpcpy: New file.
110252         * modules/unistr/u16-stpcpy: New file.
110253         * modules/unistr/u32-stpcpy: New file.
110254         * lib/unistr/u8-stpcpy.c: New file.
110255         * lib/unistr/u16-stpcpy.c: New file.
110256         * lib/unistr/u32-stpcpy.c: New file.
110257         * lib/unistr/u-stpcpy.h: New file.
110259         * modules/unistr/u8-stpncpy: New file.
110260         * modules/unistr/u16-stpncpy: New file.
110261         * modules/unistr/u32-stpncpy: New file.
110262         * lib/unistr/u8-stpncpy.c: New file.
110263         * lib/unistr/u16-stpncpy.c: New file.
110264         * lib/unistr/u32-stpncpy.c: New file.
110265         * lib/unistr/u-stpncpy.h: New file.
110267         * modules/unistr/u8-strcat: New file.
110268         * modules/unistr/u16-strcat: New file.
110269         * modules/unistr/u32-strcat: New file.
110270         * lib/unistr/u8-strcat.c: New file.
110271         * lib/unistr/u16-strcat.c: New file.
110272         * lib/unistr/u32-strcat.c: New file.
110273         * lib/unistr/u-strcat.h: New file.
110275         * modules/unistr/u8-strchr: New file.
110276         * modules/unistr/u16-strchr: New file.
110277         * modules/unistr/u32-strchr: New file.
110278         * lib/unistr/u8-strchr.c: New file.
110279         * lib/unistr/u16-strchr.c: New file.
110280         * lib/unistr/u32-strchr.c: New file.
110282         * modules/unistr/u8-strcmp: New file.
110283         * modules/unistr/u16-strcmp: New file.
110284         * modules/unistr/u32-strcmp: New file.
110285         * lib/unistr/u8-strcmp.c: New file.
110286         * lib/unistr/u16-strcmp.c: New file.
110287         * lib/unistr/u32-strcmp.c: New file.
110289         * modules/unistr/u8-strcpy: New file.
110290         * modules/unistr/u16-strcpy: New file.
110291         * modules/unistr/u32-strcpy: New file.
110292         * lib/unistr/u8-strcpy.c: New file.
110293         * lib/unistr/u16-strcpy.c: New file.
110294         * lib/unistr/u32-strcpy.c: New file.
110295         * lib/unistr/u-strcpy.h: New file.
110297         * modules/unistr/u8-strcspn: New file.
110298         * modules/unistr/u16-strcspn: New file.
110299         * modules/unistr/u32-strcspn: New file.
110300         * lib/unistr/u8-strcspn.c: New file.
110301         * lib/unistr/u16-strcspn.c: New file.
110302         * lib/unistr/u32-strcspn.c: New file.
110303         * lib/unistr/u-strcspn.h: New file.
110305         * modules/unistr/u8-strdup: New file.
110306         * modules/unistr/u16-strdup: New file.
110307         * modules/unistr/u32-strdup: New file.
110308         * lib/unistr/u8-strdup.c: New file.
110309         * lib/unistr/u16-strdup.c: New file.
110310         * lib/unistr/u32-strdup.c: New file.
110311         * lib/unistr/u-strdup.h: New file.
110313         * modules/unistr/u8-strlen: New file.
110314         * modules/unistr/u16-strlen: New file.
110315         * modules/unistr/u32-strlen: New file.
110316         * lib/unistr/u8-strlen.c: New file.
110317         * lib/unistr/u16-strlen.c: New file.
110318         * lib/unistr/u32-strlen.c: New file.
110319         * lib/unistr/u-strlen.h: New file.
110321         * modules/unistr/u8-strmblen: New file.
110322         * modules/unistr/u16-strmblen: New file.
110323         * modules/unistr/u32-strmblen: New file.
110324         * lib/unistr/u8-strmblen.c: New file.
110325         * lib/unistr/u16-strmblen.c: New file.
110326         * lib/unistr/u32-strmblen.c: New file.
110328         * modules/unistr/u8-strmbtouc: New file.
110329         * modules/unistr/u16-strmbtouc: New file.
110330         * modules/unistr/u32-strmbtouc: New file.
110331         * lib/unistr/u8-strmbtouc.c: New file.
110332         * lib/unistr/u16-strmbtouc.c: New file.
110333         * lib/unistr/u32-strmbtouc.c: New file.
110335         * modules/unistr/u8-strncat: New file.
110336         * modules/unistr/u16-strncat: New file.
110337         * modules/unistr/u32-strncat: New file.
110338         * lib/unistr/u8-strncat.c: New file.
110339         * lib/unistr/u16-strncat.c: New file.
110340         * lib/unistr/u32-strncat.c: New file.
110341         * lib/unistr/u-strncat.h: New file.
110343         * modules/unistr/u8-strncmp: New file.
110344         * modules/unistr/u16-strncmp: New file.
110345         * modules/unistr/u32-strncmp: New file.
110346         * lib/unistr/u8-strncmp.c: New file.
110347         * lib/unistr/u16-strncmp.c: New file.
110348         * lib/unistr/u32-strncmp.c: New file.
110350         * modules/unistr/u8-strncpy: New file.
110351         * modules/unistr/u16-strncpy: New file.
110352         * modules/unistr/u32-strncpy: New file.
110353         * lib/unistr/u8-strncpy.c: New file.
110354         * lib/unistr/u16-strncpy.c: New file.
110355         * lib/unistr/u32-strncpy.c: New file.
110356         * lib/unistr/u-strncpy.h: New file.
110358         * modules/unistr/u8-strnlen: New file.
110359         * modules/unistr/u16-strnlen: New file.
110360         * modules/unistr/u32-strnlen: New file.
110361         * lib/unistr/u8-strnlen.c: New file.
110362         * lib/unistr/u16-strnlen.c: New file.
110363         * lib/unistr/u32-strnlen.c: New file.
110364         * lib/unistr/u-strnlen.h: New file.
110366         * modules/unistr/u8-strpbrk: New file.
110367         * modules/unistr/u16-strpbrk: New file.
110368         * modules/unistr/u32-strpbrk: New file.
110369         * lib/unistr/u8-strpbrk.c: New file.
110370         * lib/unistr/u16-strpbrk.c: New file.
110371         * lib/unistr/u32-strpbrk.c: New file.
110372         * lib/unistr/u-strpbrk.h: New file.
110374         * modules/unistr/u8-strrchr: New file.
110375         * modules/unistr/u16-strrchr: New file.
110376         * modules/unistr/u32-strrchr: New file.
110377         * lib/unistr/u8-strrchr.c: New file.
110378         * lib/unistr/u16-strrchr.c: New file.
110379         * lib/unistr/u32-strrchr.c: New file.
110381         * modules/unistr/u8-strspn: New file.
110382         * modules/unistr/u16-strspn: New file.
110383         * modules/unistr/u32-strspn: New file.
110384         * lib/unistr/u8-strspn.c: New file.
110385         * lib/unistr/u16-strspn.c: New file.
110386         * lib/unistr/u32-strspn.c: New file.
110387         * lib/unistr/u-strspn.h: New file.
110389         * modules/unistr/u8-strstr: New file.
110390         * modules/unistr/u16-strstr: New file.
110391         * modules/unistr/u32-strstr: New file.
110392         * lib/unistr/u8-strstr.c: New file.
110393         * lib/unistr/u16-strstr.c: New file.
110394         * lib/unistr/u32-strstr.c: New file.
110395         * lib/unistr/u-strstr.h: New file.
110397         * modules/unistr/u8-strtok: New file.
110398         * modules/unistr/u16-strtok: New file.
110399         * modules/unistr/u32-strtok: New file.
110400         * lib/unistr/u8-strtok.c: New file.
110401         * lib/unistr/u16-strtok.c: New file.
110402         * lib/unistr/u32-strtok.c: New file.
110403         * lib/unistr/u-strtok.h: New file.
110405         * modules/unistr/u8-uctomb: New file.
110406         * modules/unistr/u16-uctomb: New file.
110407         * modules/unistr/u32-uctomb: New file.
110408         * lib/unistr/u8-uctomb.c: New file.
110409         * lib/unistr/u16-uctomb.c: New file.
110410         * lib/unistr/u32-uctomb.c: New file.
110412         * MODULES.html.sh (Unicode string functions): Add the new modules.
110414 2007-01-08  Bruno Haible  <bruno@clisp.org>
110416         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
110417         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
110418         subdirectories.
110420 2007-01-08  Karl Berry  <karl@gnu.org>
110422         * doc/error.texi: mention that main() fns must set program_name
110423         when progname is used.
110425 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
110427         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
110428         WCTYPE_H is empty, for the benefit of builds from non-distclean
110429         directories.  Problem reported by Eric Blake in
110430         <http://lists.gnu.org/r/bug-gnulib/2007-01/msg00157.html>.
110432 2007-01-08  Bruno Haible  <bruno@clisp.org>
110434         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
110435         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
110436         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
110437         PROVIDE_CANONICALIZE_FILENAME_MODE.
110438         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
110440 2007-01-08  Bruno Haible  <bruno@clisp.org>
110442         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
110443         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
110444         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
110445         * lib/fts.c: Likewise.
110446         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
110448 2006-12-25  Bruno Haible  <bruno@clisp.org>
110450         * modules/utf8-ucs4-safe: New file.
110451         * lib/utf8-ucs4-safe.h: New file.
110452         * lib/unistr/utf8-ucs4-safe.c: New file.
110454         * modules/utf16-ucs4-safe: New file.
110455         * lib/utf16-ucs4-safe.h: New file.
110456         * lib/unistr/utf16-ucs4-safe.c: New file.
110458         * MODULES.html.sh (Unicode string functions): Add the new modules.
110460 2007-01-08  Bruno Haible  <bruno@clisp.org>
110462         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
110463         (Depends-on): Add unitypes.
110464         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110465         (u8_mbtouc_aux): Move out to separate file.
110466         (u8_mbtouc): Use ucs4_t, uint8_t types.
110467         * lib/unistr/utf8-ucs4.c: New file.
110469         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
110470         (Depends-on): Add unitypes.
110471         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
110472         (u16_mbtouc_aux): Move out to separate file.
110473         (u16_mbtouc): Use ucs4_t, uint16_t types.
110474         * lib/unistr/utf16-ucs4.c: New file.
110476         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
110477         (Depends-on): Add unitypes.
110478         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
110479         (u8_uctomb_aux): Move out to separate file.
110480         (u8_uctomb): Use ucs4_t, uint8_t types.
110481         * lib/unistr/ucs4-utf8.c: New file.
110483         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
110484         (Depends-on): Add unitypes.
110485         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
110486         (u16_uctomb_aux): Move out to separate file.
110487         (u16_uctomb): Use ucs4_t, uint16_t types.
110488         * lib/unistr/ucs4-utf16.c: New file.
110490 2006-12-25  Bruno Haible  <bruno@clisp.org>
110492         * modules/unitypes: New file.
110493         * lib/unitypes.h: New file.
110494         * MODULES.html.sh (func_all_modules): New section "Unicode string
110495         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
110496         this section. Add unitypes.
110498 2007-01-08  Bruno Haible  <bruno@clisp.org>
110500         Avoid variable names that conflict with those from libtool.
110501         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
110502         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
110503         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
110504         library_names_spec to acl_library_names_spec, hardcode_* to
110505         acl_hardcode_*.
110506         Reported by Ralf Wildenhues.
110508 2007-01-08  Bruno Haible  <bruno@clisp.org>
110510         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
110511         definition.
110512         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
110513         definition.
110514         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
110515         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
110516         definition.
110517         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
110518         definition.
110519         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
110520         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
110521         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
110522         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
110523         definition.
110524         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
110525         definition.
110526         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
110527         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
110528         GC_USE_<algorithm>.
110529         * lib/gc-libgcrypt.c: Likewise.
110530         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
110531         * modules/gc-arctwo (configure.ac): Likewise.
110532         * modules/gc-des (configure.ac): Likewise.
110533         * modules/gc-hmac-md5 (configure.ac): Likewise.
110534         * modules/gc-hmac-sha1 (configure.ac): Likewise.
110535         * modules/gc-md2 (configure.ac): Likewise.
110536         * modules/gc-md4 (configure.ac): Likewise.
110537         * modules/gc-md5 (configure.ac): Likewise.
110538         * modules/gc-random (configure.ac): Likewise.
110539         * modules/gc-rijndael (configure.ac): Likewise.
110540         * modules/gc-sha1 (configure.ac): Likewise.
110542 2007-01-08  Bruno Haible  <bruno@clisp.org>
110544         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
110545         macro definition.
110546         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
110547         definition.
110548         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
110549         definition.
110550         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
110551         * modules/fcntl-safer (configure.ac): Likewise.
110552         * modules/fopen-safer (configure.ac): Likewise.
110553         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
110554         GNULIB_FWRITEERROR macro definition.
110556 2007-01-08  Bruno Haible  <bruno@clisp.org>
110558         * m4/gnulib-common.m4: New file.
110559         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
110560         (func_get_filelist): Add m4/gnulib-common.m4.
110562 2007-01-08  Bruno Haible  <bruno@clisp.org>
110564         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
110565         command.
110567 2007-01-08  Jim Meyering  <jim@meyering.net>
110569         Use a more robust test for a "can't happen" condition.
110570         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
110571         narrowed the st_size value.  Presuming the "can't happen" condition
110572         is true, that narrowing could conceivably convert an invalid st_size
110573         value into a valid one.  Instead, use a change based on Matthew
110574         Woehlke's original patch.
110576         Slight readability improvement: use an assert-like macro
110577         in place of literal "abort ()" uses.
110578         * lib/fts.c (fts_assert): Define.
110579         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
110580         Use this macro instead of a bare 'abort'.
110582 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
110584         Don't worry about using IRIX 5.3's wctype.h broken definitions;
110585         simply work around them.
110586         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
110587         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
110588         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
110589         declaring.
110590         Don't bother to define as macros, since the standard doesn't require it.
110591         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
110592         longer worry about IRIX 5.3.
110593         (HAVE_WCTYPE_CTMP_BUG): Remove.
110595 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
110597         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
110598         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
110599         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
110600         Problems reported by Georg Schwarz for IRIX 5.3.
110602         * gnulib-tool (autoconf_minversion): Take the maximum version number
110603         found, not the minimum.  Problem reported by James Youngman.
110605 2007-01-03  Karl Berry  <karl@gnu.org>
110607         * doc/error.texi: new file, explaining interaction with progname.
110608         * doc/gnulib.texi: include it.  Update copyright.
110610 2007-01-03  Simon Josefsson  <simon@josefsson.org>
110612         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
110613         AC_CANONICAL_HOST, to improve autobuild outputs.
110615 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
110616             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
110618         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
110619         sockets, server sockets, and other file descriptors.  Count errors
110620         to compute the return value.  Reorder the code a bit to be easier
110621         to follow.  Don't set event bits that were not requested (except
110622         POLLERR and POLLHUP).
110624 2007-01-01  Bruno Haible  <bruno@clisp.org>
110626         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
110628 2007-01-03  Jim Meyering  <jim@meyering.net>
110630         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
110632 2007-01-02  Bruno Haible  <bruno@clisp.org>
110634         * modules/settime (Include): Require timespec.h.
110635         * modules/nanosleep (Include): Likewise.
110637 2007-01-01  Bruno Haible  <bruno@clisp.org>
110639         * gnulib-tool (func_emit_copyright_notice): Bump year.
110640         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
110642 2007-01-01  Bruno Haible  <bruno@clisp.org>
110644         Improve support for OpenBSD.
110645         * build-aux/config.rpath (libname_spec): Export.
110646         (library_names_spec): New variable. Export.
110647         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
110648         library_names_spec from the config.rpath output. Locate shared library
110649         through the name pattern in library_names_spec.
110651 2007-01-01  Eric Blake  <ebb9@byu.net>
110653         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
110655 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
110657         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
110658         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
110659         assume the C locale, and avoid an "eval" that could cause trouble.
110660         Problem with SORT reported by Bob Proulx.
110662         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
110663         Define.  Trivial patch from Henning Nielsen Lund, originally
110664         sent to bug-grep@gnu.org today.
110666 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
110668         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
110669         struct stat.  Problem reported by Henning Nielsen Lund.
110670         * lib/acl.c: Include acl.h first, to check interface.  Don't
110671         bother to include sys/types.h and sys/stat.h again.
110673 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
110675         Import the following change from libc; problem reported by
110676         Sven Verdoolaege.
110678         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
110680         [BZ #1373]
110681         * lib/argp.h: Remove __NTH for __argp_usage inline function.
110683 2006-12-28  Jim Meyering  <jim@meyering.net>
110685         * build-aux/announce-gen: Do not assume that the package
110686         builds any of tar.gz, tar.bz2, and .xdelta files.
110687         Suggestion from Simon Josefsson.
110689 2006-12-28  Simon Josefsson  <simon@josefsson.org>
110691         * modules/announce-gen: New file.
110693 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
110695         * lib/mbchar.h: Just include <wctype.h>; the wctype module
110696         handles its gotchas now.
110697         * lib/mbswidth.c: Likewise.
110698         * lib/wcwidth.h: Likewise.
110699         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
110700         and iswcntrl; the wctype module does this stuff now.
110701         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
110702         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
110703         * modules/mbchar (Depends-on): Add wctype.
110704         * modules/mbswidth (Depends-on): Likewise.
110705         * modules/wcwidth (Depends-on): Likewise.
110707 2006-12-27  Eric Blake  <ebb9@byu.net>
110709         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
110710         module uses more than what <wctype.h> is required to provide.
110712 2006-12-26  Eric Blake  <ebb9@byu.net>
110714         * gnulib-tool (sed_extract_prog): Avoid space-tab.
110716 2006-12-26  Eric Blake  <ebb9@byu.net>
110718         * modules/absolute-header: New module.
110719         * modules/fcntl (Depends-on): Depend on it.
110720         * modules/inttypes (Depends-on): Likewise.
110721         * modules/stdint (Depends-on): Likewise.
110722         * modules/sys_stat (Depends-on): Likewise.
110723         * modules/wctype (Depends-on): Likewise.
110724         * MODULES.html.sh (Support for building libraries and
110725         executables): Document it.
110727 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
110729         * gnulib-tool (SED): Remove, undoing previous change.
110730         The problem was that it broke coreutils on Solaris, because
110731         "sed --posix" leaked into a makefile.
110732         (sed): New alias, if 'alias' and GNU sed.
110734 2006-12-24  Jim Meyering  <jim@meyering.net>
110736         Work around an fchownat bug in glibc-2.4:
110737         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
110738         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
110739         in spite of the -P option.
110740         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
110741         New macros.
110742         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
110743         * modules/openat (Files): Add lib/fchownat.c.
110744         * lib/openat.c (fchownat): Don't define here.  Move to...
110745         * lib/fchownat.c: ...this new file.
110747 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
110749         Fix bug reported by Bruno Haible in
110750         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00228.html>
110751         where quotearg.c didn't compile on Mac OS X 10.2 because it
110752         lacks <wchar.h> and wint_t.
110753         * lib/wctype_.h (__wctype_wint_t): New type.
110754         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
110755         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
110756         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
110757         Arg is now of type __wctype_wint_t, not wint_t.
110758         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
110759         substitute HAVE_WINT_T.
110760         * modules/wctype (Files): Add m4/wint_t.m4.
110761         (wctype.h): Substitute HAVE_WINT_T.
110763 2006-12-23  Bruno Haible  <bruno@clisp.org>
110765         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
110767 2006-12-23  Bruno Haible  <bruno@clisp.org>
110769         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
110770         S_ISLNK.
110771         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
110772         mingw.
110774 2006-12-22  Bruno Haible  <bruno@clisp.org>
110776         * lib/copy-file.c: Include acl.h.
110777         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
110778         Close the file descriptors only after being done with copy_acl.
110779         * modules/copy-file (Depends-on): Add acl.
110781 2006-12-22  Bruno Haible  <bruno@clisp.org>
110783         * gnulib-tool (SED): New variable.
110784         Use $SED instead of sed everywhere.
110786 2006-12-22  Bruno Haible  <bruno@clisp.org>
110788         * modules/no-c++: New file.
110789         * m4/no-c++.m4: New file.
110790         * MODULES.html.sh (Support for building libraries and executables):
110791         Add no-c++.
110793 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
110795         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
110796         Include <limits.h>, and use its INT_MAX to rewrite the
110797         j loop so that it does not overflow 'int'.  Problem reported by
110798         Ralf Wildenhues in
110799         <http://lists.gnu.org/r/bug-gnulib/2006-12/msg00084.html>.
110800         Play it safe by shifting left by 1 rather than multiplying by 2,
110801         as GCC is less likely to optimize this away when the value
110802         is signed (when it assumes overflow leads to undefined behavior).
110803         Also, don't assume time_t uses two's complement.
110805 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
110807         * MODULES.html.sh: New module wctype.
110808         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
110809         * lib/fnmatch.c: Don't bother to include <wchar.h> before
110810         <wctype.h>, since the new wctype module should fix this.
110811         * lib/quotearg.c: Include <wctype.h> unconditionally, since
110812         the wctype module should arrange for it.
110813         * lib/regex_internal.h: Likewise.
110814         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
110815         since the wctype module should handle this now.
110816         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
110817         * modules/fnmatch (Depends-on): Add wctype.
110818         * modules/quotearg (Depends-on): Likewise.
110819         * modules/regex (Depends-on): Likewise.
110821 2006-12-19  Bruno Haible  <bruno@clisp.org>
110823         * lib/strdup.h [C++]: Wrap definitions in extern "C".
110824         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
110826 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110828         * modules/savewd (Depends-on): Fix dependency on fcntl.
110830 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110832         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
110833         conforms to C99, rather than relying on the user's environment
110834         setting of STDINT_H.
110836 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
110837         and Eric Blake  <ebb9@byu.net>
110839         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
110840         This is more consistent with the other defines here.
110841         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
110842         Port to z/OS.  Problem reported by Paul Gilmartin.
110843         Change local vars to use gl_ prefix rather than ac_.
110844         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
110845         with other defines.
110846         * modules/double-slash-root: New module.
110847         * modules/dirname (Files): Remove m4/double-slash-root.m4.
110848         (Depends-on): Add double-slash-root.
110849         * MODULES.html.sh (File system functions): Mention new module.
110851 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
110853         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
110854         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
110855         This is for the benefit of gzip, which doesn't do i18n.
110857 2006-12-12  Jim Meyering  <jim@meyering.net>
110859         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
110860         Reported by Andreas Schwab <schwab@suse.de>.
110862 2006-12-12  Bruno Haible  <bruno@clisp.org>
110864         Merge these changes.
110865         2006-09-05  Bruno Haible  <bruno@clisp.org>
110866         * lib/iconvme.c (iconv_string): No need to save and restore errno when
110867         iconv_alloc succeeded.
110868         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
110869         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
110870         test for " && dest " at the end - dest is always != NULL there. Call
110871         iconv with 4xNULL arguments initially, to reset the state. Call iconv
110872         with 2xNULL arguments, also to flush the state storage. Handle the
110873         IRIX iconv behaviour. Realloc the final result, to throw away unused
110874         memory.
110876 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
110878         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
110879         and fchmodat unconditionally, since glibc 2.4 has them.
110880         Problem reported by Arkadiusz Miskiewicz.
110882 2006-12-10  Bruno Haible  <bruno@clisp.org>
110884         * gnulib-tool (func_import): Show the include files only for those
110885         modules that are copied and specified.
110886         Reported by Karl Berry.
110888 2006-12-08  Jim Meyering  <jim@meyering.net>
110890         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
110891         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
110893         * build-aux/announce-gen: Add two new options, both optional:
110894         --bootstrap-tools=TOOL_LIST
110895               a comma-separated list of tools, e.g.,
110896               autoconf,automake,bison,gnulib
110897         --gnulib-snapshot-date=DATE
110898               if gnulib is in the bootstrap tool list,
110899               then report this as the snapshot date.
110900               If not specified, use the current date/time.
110901               If you specify a date here, be sure it's UTC.
110903 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
110905         * tests/test-argp-2.sh: Fix test to match actual output.
110906         (func_compare): Fix sed script to be portable.
110908 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
110910         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
110911         workaround for this case.  It is not autoconfigured now; offhand
110912         it's hard to see how to autoconfigure it.
110914 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
110916         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
110917         a directory that is about to be chowned.  Such a directory's
110918         initial file permissions should permit the owner only and this
110919         should not be changed until after the chown, since the group and
110920         other bits would be incorrect if they granted permission before
110921         the chown.
110923         Fix porting problem for iswctype reported by Georg Schwarz in:
110924         http://lists.gnu.org/r/bug-coreutils/2006-12/msg00017.html
110925         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
110926         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
110927         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
110928         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
110930 2006-12-03  Jim Meyering  <jim@meyering.net>
110932         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
110933         p->fts_statp may not yet be defined.
110934         (fts_read): Instead, set it in the caller, once p->fts_statp is
110935         sure to be defined, and corresponds to a top-level directory.
110936         This bug made du -x fail.  Here's the coreutils test case:
110937         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
110938         Reported by Mike Frysinger.
110940 2006-12-01  Jim Meyering  <jim@meyering.net>
110942         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
110943         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
110944         Reported by Simon Josefsson.
110946 2006-11-30  Jim Meyering  <jim@meyering.net>
110948         * m4/warning.m4: Use the all-permissive copyright notice
110949         recommended by RMS (rather than LGPL).
110950         * m4/vararrays.m4: Likewise.
110951         * m4/flexmember.m4: Likewise.
110953 2006-11-29  Bruno Haible  <bruno@clisp.org>
110955         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
110956         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
110957         using +=.
110958         Reported by Simon Josefsson <simon@josefsson.org>.
110960 2006-11-28  James Youngman  <jay@gnu.org>
110962         * README: Advise users that they might find the bug-gnulib@gnu.org
110963         and autotools-announce@gnu.org mailing lists useful.
110965 2006-11-28  Bruno Haible  <bruno@clisp.org>
110967         * m4/ptrdiff_max.m4: Remove file.
110969 2006-11-21  Bruno Haible  <bruno@clisp.org>
110971         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
110972         _AC_COMPUTE_INT.
110973         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110974         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
110975         _AC_COMPUTE_INT.
110976         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110977         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
110978         _AC_COMPUTE_INT.
110979         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110981 2006-11-28  Jim Meyering  <jim@meyering.net>
110983         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
110984         warning from "gcc -Wshadow" about shadowing the builtin.
110986 2006-11-27  Bruno Haible  <bruno@clisp.org>
110988         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
110989         _AC_COMPUTE_INT.
110990         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
110992 2006-11-27  Bruno Haible  <bruno@clisp.org>
110993             Paul Eggert  <eggert@cs.ucla.edu>
110995         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
110997 2006-11-26  Bruno Haible  <bruno@clisp.org>
110999         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
111000         noinst_LTLIBRARIES.
111002 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
111003             Bruno Haible  <bruno@clisp.org>
111005         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
111006         if compiling with "gcc -ansi".
111008 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
111010         Fix some incompatibilities with gcc -ansi -pedantic.
111011         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
111012         if compiling pedantically with GCC, unless it's C99 or later.
111013         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
111014         it mishandles gcc -ansi -pedantic as well.
111015         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
111016         if gcc -pedantic.
111017         * lib/regexec.c (check_node_accept_bytes): Don't use auto
111018         initializers for struct if -pedantic, unless it's C99 or later.
111020 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
111022         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
111023         Don't close an fd more than once. Identical atimes indicate
111024         success, not failure.
111026 2006-11-22  Robinson Mittmann  <bob@hoplon.com>  (tiny change)
111028         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
111030 2006-11-23  Jim Meyering  <jim@meyering.net>
111032         * build-aux/announce-gen: New file.  From coreutils.
111034 2006-11-22  Jim Meyering  <jim@meyering.net>
111036         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
111037         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
111038         (fts_read): Use a temporary to narrow the overused st_size member
111039         before using it in a switch statement.  Reported by Matthew Woehlke.
111041         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
111042         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
111044 2006-11-20  Bruno Haible  <bruno@clisp.org>
111046         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
111047         changequote instead of pairs of brackets.
111048         Reported by Andreas Schwab <schwab@suse.de>.
111050 2006-11-21  Jim Meyering  <jim@meyering.net>
111052         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
111053         so as to remain compatible with older compilers.
111054         Patch from Michael Deutschmann.
111056 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111058         * MODULES.html.sh (File system functions): Add openat.
111060         * lib/openat.h (rpl_fstatat): New macro, if
111061         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
111062         (fstatat): Define to rpl_fstatat under the same conditions,
111063         unless COMPILING_FSTATAT.
111064         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
111065         seems to have the bug.
111066         * lib/fstatat.c: New file.
111067         * modules/openat (Files): Add it.
111069 2006-11-20  Bruno Haible  <bruno@clisp.org>
111071         * Makefile: New file.
111073 2006-11-20  Jim Meyering  <jim@meyering.net>
111075         The beginnings of syntax-related checks for gnulib.
111076         * lib/Makefile: New file.
111077         * lib/t-idcache: New script.  Ensure that the two halves of
111078         idcache.c stay in sync.
111080         * lib/idcache.c: Adjust comments in user- and group- portions to
111081         be more accurate, and to be consistent with one another.
111083 2006-11-20  Jim Meyering  <jim@meyering.net>
111085         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
111086         continue using the flexible array member (thus, this module performs
111087         half as many malloc calls), with the addition that...
111088         (getgroup, getuser): Consistently record a non-match via an empty
111089         "name" string, and map an empty string match to a NULL return value.
111090         * modules/idcache (Depends-on): Re-add flexmember.
111092         * lib/idcache.c (getuser): Remove all uses of the register keyword.
111093         (getuidbyname, getgroup, getgidbyname): Likewise.
111095         Use cleaner syntax: NULL rather than 0.
111096         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
111098 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
111100         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
111101         It mishandled the case where the group was missing.
111102         Problem reported by Greg Schafer.
111103         * modules/idcache: Likewise.
111105 2006-11-18  Jim Meyering  <jim@meyering.net>
111107         * check-module (%exempt_header): Add exception for some
111108         conditionally-included headers.
111110         * modules/i-ring (Depends-on): Add verify.
111111         (License): Change to LGPL.
111113 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
111115         * modules/getaddrinfo (Depends-on): Remove inttostr; add snprintf.
111116         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
111117         and inttostr.h.  Use snprintf rather than uinttostr, so that
111118         LGPLed code doesn't depend on GPLed.
111120 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
111122         * modules/inline (License): Change from GPL to LGPL.
111124 2006-11-17  Jim Meyering  <jim@meyering.net>
111126         * modules/d-type (License): Switch to LGPL.
111128 2006-11-15  Bruno Haible  <bruno@clisp.org>
111130         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
111132 2006-11-15  Eric Blake  <ebb9@byu.net>
111134         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
111135         the module dependency.
111137 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
111138             Bruno Haible  <bruno@clisp.org>
111140         * gnulib-tool (func_create_testdir): Add license consistency check.
111142 2006-11-15  Eric Blake  <ebb9@byu.net>
111144         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
111145         random "(cached)" in configure output.
111147 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111149         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
111150         test for conforming inttypes.h is both announced and cached.
111152         * MODULES.html.sh (seen_modules, seen_files): New variables.
111153         (func_module): Rewrite to use a few less gnulib-tool and sed
111154         invocations.  Avoid a couple of quadratic algorithms for ...
111155         (missed_modules, missed_files): ... these, with ...
111156         (func_append, func_tmpdir): ... these new functions, from
111157         gnulib-tool.  Analogously, install traps for cleanup.
111159         * tests/test-gc.c (main): Remove unused variables.
111160         * tests/test-read-file.c: Include stdlib.h, for 'free'.
111162 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
111164         * modules/inttostr (License): Change to LGPL.
111166 2006-11-14  Eric Blake  <ebb9@byu.net>
111168         * modules/tempname (License): Change to LGPL.
111170 2006-11-14  Eric Blake  <ebb9@byu.net>
111172         * doc/functions.texi (Function Portability): *printf functions on
111173         Cygwin now understand all POSIX size specifiers.
111175 2006-11-14  Bruno Haible  <bruno@clisp.org>
111177         * modules/c-ctype (License): Change to LGPL.
111179 2006-11-12  Bruno Haible  <bruno@clisp.org>
111181         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
111182         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
111183         for GNOME libraries, for which the include files are installed in
111184         subdirectories of $prefix/include.
111186 2006-11-12  Bruno Haible  <bruno@clisp.org>
111188         * m4/lib-link.m4: Require at least autoconf-2.54.
111189         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
111190         name to underscores for the --with option.
111192 2006-11-13  Bruno Haible  <bruno@clisp.org>
111194         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
111195         the tests directory.
111196         Reported by Ralf Wildenhues.
111198 2006-11-13  Bruno Haible  <bruno@clisp.org>
111200         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
111201         (func_emit_initmacro_end): Undo the override here.
111202         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
111203         Works around the famous automake error in coreutils.
111205 2006-11-13  Eric Blake  <ebb9@byu.net>
111207         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
111208         element, not its node.
111210 2006-11-12  Bruno Haible  <bruno@clisp.org>
111212         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
111213         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
111215 2006-11-12  Bruno Haible  <bruno@clisp.org>
111217         * gnulib-tool: New option --local-symlink.
111218         (func_usage): Document it.
111219         (lsymbolic): New variable.
111220         (func_import, func_create_testdir): If --symlink was not specified,
111221         test whether --local-symlink was specified and the file comes from
111222         the local_gnulib_dir.
111224 2006-11-12  Bruno Haible  <bruno@clisp.org>
111226         * gnulib-tool (func_ln): New function.
111227         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
111229 2006-11-12  Bruno Haible  <bruno@clisp.org>
111231         Finish support for source files in subdirectories.
111232         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
111233         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
111234         AUTOMAKE_OPTIONS.
111235         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
111237 2006-11-12  Bruno Haible  <bruno@clisp.org>
111239         * gnulib-tool (func_get_automake_snippet): Synthesize also an
111240         EXTRA_lib_SOURCES augmentation.
111241         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
111243 2006-11-12  Jim Meyering  <jim@meyering.net>
111245         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
111246         file descriptors.  This also averts a failure on systems with
111247         native openat support when a traversed directory lacks "x" access.
111248         * lib/fts_.h: Include "i-ring.h"
111249         (struct FTS) [fts_fd_ring]: New member.
111250         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
111251         (FCHDIR): Add parentheses.
111252         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
111253         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
111254         When descending, rather than simply closing the previous
111255         fts_cwd_fd value, push that file descriptor onto the ring.
111256         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
111257         (fts_open): Initialize the new fd_ring member.
111258         (fts_close): Clear the ring.
111259         (fts_safe_changedir): When possible, use our new fd_ring to skip
111260         the diropen and fstat and dev/ino comparison that would normally
111261         accompany a virtual `chdir ("..")'.
111263         * modules/fts (Depends-on): Add i-ring.
111264         * modules/i-ring: New module.
111265         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
111266         * m4/i-ring.m4: New file.
111268 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111270         * gnulib-tool (func_create_testdir): Fix replacement of
111271         `build-aux' in configure.ac.  Run autotools in gltests
111272         subdirectory.
111273         (func_create_testdir, func_create_megatestdir, test): There is
111274         no need for '--force' in most autotool invocations in a new
111275         tree.  Actually fail the whole test if any of the tools, or the
111276         configure or make stages fail.
111278         Sync from Automake.
111279         * build-aux/gnupload: Revert last change.  Add pointer to upload
111280         instructions of the GNU Maintenance Instructions.
111281         Suggestion by Karl Berry.
111283 2006-11-10  Jim Meyering  <jim@meyering.net>
111285         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
111287 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111289         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
111290         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
111291         (bind_textdomain_codeset) [! ENABLE_NLS]:
111292         Evaluate all the arguments.  That way, callers get compatible behavior
111293         if the arguments have side effects.  Also, it avoids some GCC
111294         diagnostics in some cases; Joel E. Denny reported problems when Bison
111295         was configured with --enable-gcc-warnigs.
111297 2006-11-10  Jim Meyering  <jim@meyering.net>
111299         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
111300         relevant options in CFLAGS (like -O, -fno-inline) are taken into
111301         account.
111303 2006-11-10  Jim Meyering  <jim@meyering.net>
111305         * modules/inline: New file/module.
111306         * modules/xalloc (Files): Remove m4/inline.m4.
111307         (Depends-on): Add inline, instead.
111308         * modules/oset: Likewise.
111309         * modules/list: Likewise.
111311 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
111313         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
111314         Problem reported by Matthew Woehlke.
111316 2006-11-09  Bruno Haible  <bruno@clisp.org>
111318         * lib/tempname.c (gen_tempname): Remove variant that invokes
111319         __gen_tempname.
111320         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
111321         __gen_tempname.
111323 2006-11-08  Bruno Haible  <bruno@clisp.org>
111325         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
111326         to 'yes' instead of 'cross-compiling'.
111328 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
111330         * lib/quotearg.h (quotearg_free): New decl.
111331         * lib/quotearg.c (quotearg_free): New function.
111332         (slot0, nslots, slotvec0, slotvec):
111333         Now file-scope so that quotearg_free can get at them.
111335 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111337         Sync from Automake.
111338         * build-aux/gnupload: Add missing 'gnu' to example URL.
111339         Report by Karl Berry.
111341 2006-11-08  Bruno Haible  <bruno@clisp.org>
111343         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
111344         Suggested by Paul Eggert.
111346 2006-11-08  Jim Meyering  <jim@meyering.net>
111348         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
111349         It's already included if !_LIBC.
111350         (fts_safe_changedir): Add a comment.
111352 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111354         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
111355         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
111356         Matthew Woehlke.
111358         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
111359         definitions up, to avoid colliding with change below.
111360         (static_inline) [HAVE_INLINE]: New macro.
111361         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
111362         Provide extern decls when !HAVE_INLINE.  Do not define unless
111363         static_inline is defined, either by us or by xmalloc.c.  Use
111364         static_inline rather than static inline.
111365         (XCALLOC): Optimize sizeof(T) = 1 case.
111366         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
111368 2006-11-07  Bruno Haible  <bruno@clisp.org>
111370         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
111371         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
111372         AC_C_INLINE.
111373         * modules/xalloc (Files): Add m4/inline.m4.
111375 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111377         * README: Fix typo.
111378         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
111379         (Miscellanous Notes): ...from this.
111381 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
111383         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
111384         Mention that offsetof should be used instead of sizeof.
111385         From Bruno Haible.
111387 2006-11-07  Bruno Haible  <bruno@clisp.org>
111389         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
111391 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111393         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111394         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
111395         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111396         (gl_tree_add_before, gl_tree_add_after):
111397         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
111398         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
111399         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
111400         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
111401         (gl_linked_add_after, gl_linked_add_at): Likewise.
111402         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
111403         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
111404         (gl_tree_add_before, gl_tree_add_after): Likewise.
111405         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
111406         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
111407         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
111409 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111411         * lib/gl_oset.h: Use C comment style, not C++ comment style.
111413 2006-11-06  Bruno Haible  <bruno@clisp.org>
111415         * m4/inline.m4: New file.
111416         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
111417         * modules/list (Files): Add m4/inline.m4.
111418         * modules/oset (Files): Likewise.
111420 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
111422         * lib/idcache.c: Include <stddef.h>, for offsetof.
111423         (struct userid.name): Change from char * to a flexible array member.
111424         All uses changed.
111425         * modules/idcache (Depends-on): Add flexmember.
111427         * MODULES.html.sh (Core language properties): New module flexmember.
111428         * modules/flexmember, m4/flexmember.m4: New files.
111430         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
111431         inline functions that are identical with the old xnmalloc_inline,
111432         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
111433         that we can avoid some unnecessary integer multiplications and
111434         divisions in the common case where the element size is known at
111435         compile time.
111436         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
111437         needed.
111438         (xnboundedmalloc): Remove.
111439         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
111440         arguments, for consistency with rest of this header.
111441         (xcharalloc): Rewrite using XNMALLOC.
111442         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
111443         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
111444         versions have been moved to lib/xalloc.h and renamed to be the
111445         non-*_inline versions.
111446         (xmalloc, xrealloc): Implement without reference to the xnmalloc
111447         and xnrealloc functions, since those functions are now inline and
111448         now call us.
111449         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
111450         renaming described above.
111451         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
111452         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
111453         captures the dependency in AC_C_INLINE.
111455         New module canonicalize-lgpl, proposed by Charles Wilson in
111456         <http://lists.gnu.org/r/bug-gnulib/2006-11/msg00020.html>
111457         with a few small changes afterwards.
111458         * MODULES.html.sh (File system functions): New module
111459         canonicalize-lgpl.
111460         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
111461         and canonicalize_file_name.
111462         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
111463         * modules/canonicalize-lgpl: New files.
111465 2006-11-05  Bruno Haible  <bruno@clisp.org>
111467         * gnulib-tool (func_import, func_create_testdir): Create directories
111468         also for files in subdirectories of lib/.
111470 2006-11-05  Bruno Haible  <bruno@clisp.org>
111472         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
111473         ANSI C compliant.
111475 2006-11-03  Bruno Haible  <bruno@clisp.org>
111477         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
111478         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
111479         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
111480         (xnboundedmalloc): New inline function.
111481         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
111482         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
111483         xmalloc.
111484         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
111485         xmalloc.
111486         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
111487         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
111488         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
111489         xmalloc.
111490         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111491         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
111492         xmalloc.
111493         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
111494         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111495         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
111496         xmalloc.
111497         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
111498         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
111499         gl_tree_add_after): Use XMALLOC instead of xmalloc.
111500         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
111501         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
111502         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
111503         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
111505 2006-11-03  Bruno Haible  <bruno@clisp.org>
111507         * lib/c-ctype.h [C++]: Define functions without name mangling.
111508         * lib/fwriteerror.h [C++]: Likewise.
111509         * lib/gcd.h [C++]: Likewise.
111510         * lib/linebreak.h [C++]: Likewise.
111512 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
111514         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
111515         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
111516         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
111517         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
111518         Check for functions and headers just once.
111519         Check for declaration of canonicalize_file_name.
111520         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
111522 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111524         * gnulib-tool (func_import): Fix typo in actioncmd.
111526 2006-11-02  Bruno Haible  <bruno@clisp.org>
111528         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
111529         newline sequence in the Makefile.am snippet as a space, like "make"
111530         does.
111531         Reported by Roger Persson <perrog@gmail.com>.
111533 2006-11-01  Bruno Haible  <bruno@clisp.org>
111535         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
111536         already declared in <string.h>.
111537         * lib/strcase.h (strncasecmp): Don't declare it if yes.
111539 2006-11-01  Bruno Haible  <bruno@clisp.org>
111541         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
111542         * lib/strcase.h: Include <string.h>.
111543         (strcasecmp): Define to rpl_strcasecmp here.
111545 2006-11-01  Bruno Haible  <bruno@clisp.org>
111547         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
111549 2006-11-01  Eric Blake  <ebb9@byu.net>
111551         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
111553         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
111555 2006-10-29  Bruno Haible  <bruno@clisp.org>
111557         Make it compile in C++ mode.
111558         * lib/full-write.c (full_rw): Add a cast.
111560 2006-11-01  Bruno Haible  <bruno@clisp.org>
111562         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
111563         be POSIX compliant.
111564         Reported by Roger Persson <perrog@gmail.com>.
111566 2006-11-01  Eric Blake  <ebb9@byu.net>
111568         * lib/getopt_.h: Fix comments.
111570 2006-10-31  Eric Blake  <ebb9@byu.net>
111572         * modules/tmpdir (Depends-on): Add sys_stat.
111573         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
111574         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
111575         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
111576         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
111577         tempname.
111579 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
111581         Avoid some C++ diagnostics reported by Bruno Haible.
111582         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
111583         xmalloc.
111584         (quotearg_alloc): Use xcharalloc rather than xmalloc.
111585         (struct slotvec): Move to top level.
111586         (quotearg_n_options): Rewrite to avoid xmalloc.
111587         * lib/xalloc.h (xcharalloc): New function.
111588         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
111589         [defined __cplusplus]: Add function template that provides result
111590         type propagation.  This part of the change is from Bruno Haible.
111592 2006-10-29  Bruno Haible  <bruno@clisp.org>
111594         Make it compile in C++ mode.
111595         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
111596         * lib/strnlen1.c (strnlen1): Cast memchr result.
111597         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
111598         * lib/clean-temp.c (string_equals, string_hash): Add casts.
111599         (create_temp_dir): Rename local variable 'template'.
111600         (compile_csharp_using_sscli): Add cast.
111601         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
111602         * lib/findprog.c (find_in_path): Likewise.
111603         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
111604         * lib/wait-process.c (register_slave_subprocess): Likewise.
111606 2006-10-22  Bruno Haible  <bruno@clisp.org>
111608         * modules/tsearch: New file.
111609         * lib/tsearch.h: New file.
111610         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
111611         * m4/tsearch.m4: New file.
111612         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
111614 2006-10-29  Eric Blake  <ebb9@byu.net>
111616         * lib/arcfour.c: Assume config.h.
111617         * lib/arctwo.c: Likewise.
111618         * lib/base64.c: Likewise.
111619         * lib/check-version.c: Likewise.
111620         * lib/crc.c: Likewise.
111621         * lib/des.c: Likewise.
111622         * lib/gc-gnulib.c: Likewise.
111623         * lib/gc-libgcrypt.c: Likewise.
111624         * lib/gc-pbkdf2-sha1.c: Likewise.
111625         * lib/getaddrinfo.c: Likewise.
111626         * lib/getdelim.c: Likewise.
111627         * lib/getline.c: Likewise.
111628         * lib/hmac-md5.c: Likewise.
111629         * lib/hmac-sha1.c: Likewise.
111630         * lib/iconvme.c: Likewise.
111631         * lib/md2.c: Likewise.
111632         * lib/md4.c: Likewise.
111633         * lib/memxor.c: Likewise.
111634         * lib/read-file.c: Likewise.
111635         * lib/readline.c: Likewise.
111636         * lib/rijndael-alg-fst.c: Likewise.
111637         * lib/rijndael-api-fst.c: Likewise.
111638         * lib/xgetdomainname.c: Likewise.
111640 2006-10-28  Eric Blake  <ebb9@byu.net>
111642         * lib/xstrndup.c: Assume config.h.
111644 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
111646         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
111647         stat-macros.h is now for our own macros, whereas stat_h is for
111648         macros in the <sys/stat.h> name space.
111649         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
111650         (STAT_MACROS_H): Remove.
111651         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
111652         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
111653         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
111654         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
111655         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
111656         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
111657         Move these macros to ...
111658         * lib/stat_.h: here.  Don't include stat-macros.h.
111659         * lib/canonicalize.c: Don't include stat-macros.h.
111660         * lib/chown.c: Likewise.
111661         * lib/euidaccess.c: Likewise.
111662         * lib/file-type.c: Likewise.
111663         * lib/filemode.c: Likewise.
111664         * lib/glob.c: Likewise.
111665         * lib/isapipe.c: Likewise.
111666         * lib/lchown.c: Likewise.
111667         * lib/lstat.c: Likewise.
111668         * lib/mkdir-p.c: Likewise.
111669         * lib/rmdir.c: Likewise.
111670         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
111671         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
111672         unless mkdir isn't declared, to speed up 'configure'.
111673         Always create sys/stat.h, since it's unlikely any real sys/stat.h
111674         would define all the S_* symbols.
111675         * modules/canonicalize (Depends-on):
111676         Depend on sys_stat, not stat-macros.
111677         * modules/chown: Likewise.
111678         * modules/euidaccess: Likewise.
111679         * modules/filemode: Likewise.
111680         * modules/file-type: Likewise.
111681         * modules/glob: Likewise.
111682         * modules/isapipe: Likewise.
111683         * modules/lchown: Likewise.
111684         * modules/lstat: Likewise.
111685         * modules/mkancesdirs: Likewise.
111686         * modules/rmdir: Likewise.
111687         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
111688         * modules/modechange: Likewise.
111689         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
111690         (configure.ac): Remove gl_STAT_MACROS.
111691         * modules/sys_stat (Depends-on): Remove stat-macros.
111693 2006-10-27  Bruno Haible  <bruno@clisp.org>
111695         * m4/signed.m4: Remove file.
111696         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
111697         invocation.
111698         * modules/vasnprintf (Files): Remove m4/signed.m4.
111700 2006-10-27  Bruno Haible  <bruno@clisp.org>
111702         Update to GNU gettext 0.16.
111703         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
111704         m4/inttypes-h.m4, m4/signed.m4.
111705         * m4/gettext.m4: Update to GNU gettext 0.16.
111706         * m4/intl.m4: New file, from GNU gettext.
111707         * m4/intldir.m4: New file, from GNU gettext.
111708         * config/srclist.txt: Update
111710 2006-10-27  Eric Blake  <ebb9@byu.net>
111712         * MODULES.html.sh: Document tempname.
111713         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
111714         dependencies.
111715         (Files): Move lib/tempname.c...
111716         * modules/tempname: ...to this new module.
111717         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
111718         (gl_PREREQ_TEMPNAME): Move...
111719         * m4/tempname.m4: ...to this new file.
111720         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
111721         * modules/sys_stat (Depends-on): Add stat-macros.
111722         * lib/stat_.h (includes): Pick up stat macros.
111723         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
111724         if stat macros are broken.
111725         * lib/tempname.c (includes): No need to include "stat-macros.h".
111726         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
111727         (direxists, __path_search) [!_LIBC]: Don't compile these in
111728         gnulib; the tmpdir module covers that.
111729         * lib/tempname.h: New file.
111731 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
111733         * COPYING: Explain how gnulib-tool converts licence headers.
111734         Almost all wording by Eric Blake.
111736 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
111738         * lib/mbchar.h (is_basic_table): Make read-only.
111739         * lib/mbchar.c (is_basic_table): Likewise.
111740         Reported by John Darrington.
111742 2006-10-25  Bruno Haible  <bruno@clisp.org>
111744         * lib/progname.h (set_program_name): Undefine before defining.
111746 2006-10-25  Bruno Haible  <bruno@clisp.org>
111748         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
111749         false for non-gcc C++ compilers.
111750         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
111752 2006-10-24  Bruno Haible  <bruno@clisp.org>
111754         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
111755         iconv implementations like Irix iconv.
111757 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111759         * modules/vararrays: New file.
111760         * m4/vararrays.m4: New file, taken from diffutils.
111761         * MODULES.html.sh: New module vararrays.
111763 2006-10-24  Karl Berry  <karl@gnu.org>
111765         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
111766         Don't call GNU Unix.
111768 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
111770         * users.txt: Add Libtool.
111772         Sync from Libtool:
111774         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111776         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
111777         to gnulib's policy of including config.h unconditionally.
111779 2006-10-24  Bruno Haible  <bruno@clisp.org>
111781         * modules/wcwidth (Files): Add m4/wint_t.m4.
111782         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
111783         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
111785 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
111787         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
111788         to pacify GCC with some -W flags enabled.  Problem reported by
111789         Bruno Haible.
111791 2006-10-24  Jim Meyering  <jim@meyering.net>
111793         * MODULES.html.sh: Remove uinttostr.  It's not a module.
111794         Reported by Karl Berry.
111796 2006-10-23  Bruno Haible  <bruno@clisp.org>
111798         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
111800 2006-10-24  Bruno Haible  <bruno@clisp.org>
111802         * lib/gl_list.h: Use C comment style, not C++ comment style.
111804 2006-10-23  Eric Blake  <ebb9@byu.net>
111806         * lib/getaddrinfo.c (includes): Add missing include.
111808 2006-10-23  Bruno Haible  <bruno@clisp.org>
111809             Paul Eggert  <eggert@cs.ucla.edu>
111811         Ability to rename obstack_free.
111812         * lib/obstack.h (__obstack_free): New macro. Declare instead of
111813         obstack_free.
111814         (obstack_free): Invoke the __obstack_free macro.
111815         * lib/obstack.c (obstack_free): Use __obstack_free macro.
111817 2006-10-23  Bruno Haible  <bruno@clisp.org>
111818             Paul Eggert  <eggert@cs.ucla.edu>
111820         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
111821         __argc, __argv from the declaration. (They are defined as macros on
111822         mingw.)
111824 2006-10-22  Bruno Haible  <bruno@clisp.org>
111826         * doc/gnulib-intro.texi: New file.
111827         * doc/gnulib.texi: Include it.
111829 2006-10-21  Bruno Haible  <bruno@clisp.org>
111831         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
111832         "Introduction", "Miscellanous Notes", "Particular Modules".
111834 2006-10-21  Bruno Haible  <bruno@clisp.org>
111836         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
111837         Change mostlyclean-local rule to avoid sh syntax error from bash
111838         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
111840 2006-10-23  Jim Meyering  <jim@meyering.net>
111842         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
111843         in place of snprintf.
111845         * modules/inttostr (Files): Add lib/uinttostr.c.
111846         * lib/uinttostr.c (inttostr): New file/function.
111847         * lib/inttostr.h (uinttostr): Declare.
111848         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
111849         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
111850         Add uinttostr.
111851         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
111853 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111855         * lib/canonicalize.c (ELOOP): Define if not already defined.
111856         Problem reported by Bruno Haible in
111857         <http://lists.gnu.org/r/bug-gnulib/2006-10/msg00282.html>.
111859 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
111861         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
111862         Problem reported by Perry Smith and Ville Laurikari.
111864         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
111865         uses.
111867 2006-10-19  Bruno Haible  <bruno@clisp.org>
111869         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
111870         for mingw.
111872 2006-10-19  Bruno Haible  <bruno@clisp.org>
111874         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
111875         Needed for mingw.
111877 2006-10-19  Bruno Haible  <bruno@clisp.org>
111879         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
111881 2006-10-19  Bruno Haible  <bruno@clisp.org>
111883         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
111884         it.
111886 2006-10-19  Bruno Haible  <bruno@clisp.org>
111888         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
111889         invocation.
111891 2006-10-19  Bruno Haible  <bruno@clisp.org>
111893         * gnulib-tool (func_create_testdir): Don't include ftruncate and
111894         mountlist by default.
111896 2006-10-16  Bruno Haible  <bruno@clisp.org>
111898         * lib/c-strstr.c: Include c-strstr.h.
111900 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
111902         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
111903         in a slash.
111905 2006-10-18  Bruno Haible  <bruno@clisp.org>
111907         * lib/lock.h [C++]: Wrap definitions in extern "C".
111909 2006-10-18  Bruno Haible  <bruno@clisp.org>
111911         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
111912         gl_LIBOBJS list.
111914 2006-10-18  Bruno Haible  <bruno@clisp.org>
111916         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
111918 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
111920         * lib/xstrtol.h: Include gettext.h.
111921         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
111922         Problem reported by Eric Blake.
111923         * modules/xstrtol (Depends-on): Add gettext-h.
111925 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
111927         * lib/strftime.c (advance): New macro.
111928         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
111929         incomplete type, so you can't add 0 to it.  Problem and patch
111930         reported by Eelco Dolstra for dietlibc.
111932 2006-10-18  Jim Meyering  <jim@meyering.net>
111934         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
111935         type for a local, and rename it: s/up/user_proc/.
111937 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
111939         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
111940         READ_UTMP_USER_PROCESS.
111941         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
111943 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
111945         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
111946         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
111948 2006-10-17  Eric Blake  <ebb9@byu.net>
111950         * lib/sigprocmask.c (sigprocmask): Fix typo.
111952         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
111954         * modules/clean-temp (Makefile.am): Don't add to make output...
111955         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
111956         config.h.
111958 2006-10-17  Bruno Haible  <bruno@clisp.org>
111960         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
111961         differently if DEFAULT_TEXT_DOMAIN is set.
111963 2006-10-16  Bruno Haible  <bruno@clisp.org>
111965         * lib/clean-temp.c: Include fwriteerror.h.
111967 2006-10-16  Bruno Haible  <bruno@clisp.org>
111969         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
111971 2006-10-16  Bruno Haible  <bruno@clisp.org>
111973         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
111974         * lib/sigprocmask.h: Include <sys/types.h>.
111975         (sigset_t): Use the system's definition if present.
111977 2006-10-17  Eric Blake  <ebb9@byu.net>
111979         * lib/xvasprintf.c (includes): Assume config.h.
111980         * lib/xasprintf.c (includes): Likewise.
111982 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
111984         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
111985         at least as wide as intmax_t.
111987 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
111989         (Imported from Automake.)
111990         * build-aux/gnupload: Update to version 1.1 of directive file.
111992 2006-10-16  Eric Blake  <ebb9@byu.net>
111994         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
111995         match Automake 1.10a.
111997 2006-10-14  Bruno Haible  <bruno@clisp.org>
111999         * modules/sigprocmask: New file.
112000         * lib/sigprocmask.h: New file.
112001         * lib/sigprocmask.c: New file.
112002         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
112003         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
112004         request sigprocmask.o.
112005         (gl_PREREQ_SIGPROCMASK): New macro.
112006         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
112007         (Depends-on): Add sigprocmask.
112008         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
112009         gt_SIGNALBLOCKING. Test for 'raise' only once.
112010         * lib/fatal-signal.c: Include sigprocmask.h.
112011         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
112012         unblock_fatal_signals): Define always.
112013         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
112014         sigprocmask.
112016 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
112018         Sync from Automake.
112019         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
112020         which incorrectly sets the mode of an existing destination
112021         directory.  In some cases the unpatched install-sh could do the
112022         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
112023         system.  We hope this is rare in practice, but it's clearly worth
112024         fixing.  Problem reported by Alex Unleashed in
112025         <http://lists.gnu.org/r/bug-autoconf/2006-10/msg00012.html>.
112026         Also, don't bother to check for -m bugs unless we're using -m;
112027         suggested by Stepan Kasal.
112029 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
112031         Sync from Automake.
112032         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
112033         `-c' flag, so they appear at the same position as in %FASTDEP%
112034         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
112035         which ignores unknown options only after the first non-option.
112036         Bug report against M4 by Nelson H. F. Beebe.
112038 2006-10-13  Jim Meyering  <jim@meyering.net>
112040         Fix a bug in yesterday's change.
112041         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
112042         p->fts_statp->st_dev would be used uninitialized.
112043         Ensures that we always call fts_stat on the very first entry.
112044         Miklos Szeredi reported that find -xdev stopped working.
112046 2006-10-12  Bruno Haible  <bruno@clisp.org>
112048         * gnulib-tool (func_get_automake_snippet): Append an automatically
112049         computed EXTRA_DIST augmentation.
112050         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
112051         * modules/alloca-opt (Makefile.am): Likewise.
112052         * modules/allocsa (Makefile.am): Likewise.
112053         * modules/arcfour (Makefile.am): Likewise.
112054         * modules/arctwo (Makefile.am): Likewise.
112055         * modules/argmatch (Makefile.am): Likewise.
112056         * modules/argz (Makefile.am): Likewise.
112057         * modules/atexit (Makefile.am): Likewise.
112058         * modules/backupfile (Makefile.am): Likewise.
112059         * modules/byteswap (Makefile.am): Likewise.
112060         * modules/c-strtod (Makefile.am): Likewise.
112061         * modules/c-strtold (Makefile.am): Likewise.
112062         * modules/calloc (Makefile.am): Likewise.
112063         * modules/canon-host (Makefile.am): Likewise.
112064         * modules/canonicalize (Makefile.am): Likewise.
112065         * modules/chdir-long (Makefile.am): Likewise.
112066         * modules/chdir-safer (Makefile.am): Likewise.
112067         * modules/check-version (Makefile.am): Likewise.
112068         * modules/chown (Makefile.am): Likewise.
112069         * modules/cloexec (Makefile.am): Likewise.
112070         * modules/close-stream (Makefile.am): Likewise.
112071         * modules/closeout (Makefile.am): Likewise.
112072         * modules/crc (Makefile.am): Likewise.
112073         * modules/csharpexec (Makefile.am): Likewise.
112074         * modules/cycle-check (Makefile.am): Likewise.
112075         * modules/des (Makefile.am): Likewise.
112076         * modules/dev-ino (Makefile.am): Likewise.
112077         * modules/dirfd (Makefile.am): Likewise.
112078         * modules/dirname (Makefile.am): Likewise.
112079         * modules/dup2 (Makefile.am): Likewise.
112080         * modules/eealloc (Makefile.am): Likewise.
112081         * modules/error (Makefile.am): Likewise.
112082         * modules/euidaccess (Makefile.am): Likewise.
112083         * modules/exclude (Makefile.am): Likewise.
112084         * modules/exitfail (Makefile.am): Likewise.
112085         * modules/fcntl-safer (Makefile.am): Likewise.
112086         * modules/fcntl (Makefile.am): Likewise.
112087         * modules/file-type (Makefile.am): Likewise.
112088         * modules/fileblocks (Makefile.am): Likewise.
112089         * modules/filemode (Makefile.am): Likewise.
112090         * modules/filenamecat (Makefile.am): Likewise.
112091         * modules/fnmatch (Makefile.am): Likewise.
112092         * modules/fopen-safer (Makefile.am): Likewise.
112093         * modules/fpending (Makefile.am): Likewise.
112094         * modules/fprintftime (Makefile.am): Likewise.
112095         * modules/free (Makefile.am): Likewise.
112096         * modules/fsusage (Makefile.am): Likewise.
112097         * modules/ftruncate (Makefile.am): Likewise.
112098         * modules/fts (Makefile.am): Likewise.
112099         * modules/gc-arcfour (Makefile.am): Likewise.
112100         * modules/gc-des (Makefile.am): Likewise.
112101         * modules/gc-hmac-md5 (Makefile.am): Likewise.
112102         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
112103         * modules/gc-md4 (Makefile.am): Likewise.
112104         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112105         * modules/gc-sha1 (Makefile.am): Likewise.
112106         * modules/gc (Makefile.am): Likewise.
112107         * modules/getaddrinfo (Makefile.am): Likewise.
112108         * modules/getcwd (Makefile.am): Likewise.
112109         * modules/getdelim (Makefile.am): Likewise.
112110         * modules/getdomainname (Makefile.am): Likewise.
112111         * modules/getgroups (Makefile.am): Likewise.
112112         * modules/gethostname (Makefile.am): Likewise.
112113         * modules/gethrxtime (Makefile.am): Likewise.
112114         * modules/getline (Makefile.am): Likewise.
112115         * modules/getloadavg (Makefile.am): Likewise.
112116         * modules/getlogin_r (Makefile.am): Likewise.
112117         * modules/getndelim2 (Makefile.am): Likewise.
112118         * modules/getopt (Makefile.am): Likewise.
112119         * modules/getpagesize (Makefile.am): Likewise.
112120         * modules/getpass-gnu (Makefile.am): Likewise.
112121         * modules/getpass (Makefile.am): Likewise.
112122         * modules/getsubopt (Makefile.am): Likewise.
112123         * modules/gettime (Makefile.am): Likewise.
112124         * modules/gettimeofday (Makefile.am): Likewise.
112125         * modules/getugroups (Makefile.am): Likewise.
112126         * modules/getusershell (Makefile.am): Likewise.
112127         * modules/glob (Makefile.am): Likewise.
112128         * modules/group-member (Makefile.am): Likewise.
112129         * modules/hard-locale (Makefile.am): Likewise.
112130         * modules/hash (Makefile.am): Likewise.
112131         * modules/hmac-md5 (Makefile.am): Likewise.
112132         * modules/hmac-sha1 (Makefile.am): Likewise.
112133         * modules/human (Makefile.am): Likewise.
112134         * modules/idcache (Makefile.am): Likewise.
112135         * modules/imaxabs (Makefile.am): Likewise.
112136         * modules/imaxdiv (Makefile.am): Likewise.
112137         * modules/inet_ntop (Makefile.am): Likewise.
112138         * modules/inet_pton (Makefile.am): Likewise.
112139         * modules/intprops (Makefile.am): Likewise.
112140         * modules/inttostr (Makefile.am): Likewise.
112141         * modules/inttypes (Makefile.am): Likewise.
112142         * modules/isapipe (Makefile.am): Likewise.
112143         * modules/javaversion (Makefile.am): Likewise.
112144         * modules/lchmod (Makefile.am): Likewise.
112145         * modules/lchown (Makefile.am): Likewise.
112146         * modules/localcharset (Makefile.am): Likewise.
112147         * modules/long-options (Makefile.am): Likewise.
112148         * modules/lstat (Makefile.am): Likewise.
112149         * modules/malloc (Makefile.am): Likewise.
112150         * modules/mathl (Makefile.am): Likewise.
112151         * modules/mbchar (Makefile.am): Likewise.
112152         * modules/md2 (Makefile.am): Likewise.
112153         * modules/md4 (Makefile.am): Likewise.
112154         * modules/md5 (Makefile.am): Likewise.
112155         * modules/memcasecmp (Makefile.am): Likewise.
112156         * modules/memchr (Makefile.am): Likewise.
112157         * modules/memcmp (Makefile.am): Likewise.
112158         * modules/memcoll (Makefile.am): Likewise.
112159         * modules/memcpy (Makefile.am): Likewise.
112160         * modules/memmem (Makefile.am): Likewise.
112161         * modules/memmove (Makefile.am): Likewise.
112162         * modules/mempcpy (Makefile.am): Likewise.
112163         * modules/memrchr (Makefile.am): Likewise.
112164         * modules/memset (Makefile.am): Likewise.
112165         * modules/memxor (Makefile.am): Likewise.
112166         * modules/mkancesdirs (Makefile.am): Likewise.
112167         * modules/mkdir-p (Makefile.am): Likewise.
112168         * modules/mkdir (Makefile.am): Likewise.
112169         * modules/mkdtemp (Makefile.am): Likewise.
112170         * modules/mkstemp (Makefile.am): Likewise.
112171         * modules/mktime (Makefile.am): Likewise.
112172         * modules/modechange (Makefile.am): Likewise.
112173         * modules/mountlist (Makefile.am): Likewise.
112174         * modules/nanosleep (Makefile.am): Likewise.
112175         * modules/obstack (Makefile.am): Likewise.
112176         * modules/openat (Makefile.am): Likewise.
112177         * modules/pagealign_alloc (Makefile.am): Likewise.
112178         * modules/pathmax (Makefile.am): Likewise.
112179         * modules/physmem (Makefile.am): Likewise.
112180         * modules/poll (Makefile.am): Likewise.
112181         * modules/posixtm (Makefile.am): Likewise.
112182         * modules/posixver (Makefile.am): Likewise.
112183         * modules/putenv (Makefile.am): Likewise.
112184         * modules/quote (Makefile.am): Likewise.
112185         * modules/quotearg (Makefile.am): Likewise.
112186         * modules/raise (Makefile.am): Likewise.
112187         * modules/read-file (Makefile.am): Likewise.
112188         * modules/readline (Makefile.am): Likewise.
112189         * modules/readlink (Makefile.am): Likewise.
112190         * modules/readtokens (Makefile.am): Likewise.
112191         * modules/readutmp (Makefile.am): Likewise.
112192         * modules/realloc (Makefile.am): Likewise.
112193         * modules/regex (Makefile.am): Likewise.
112194         * modules/rename-dest-slash (Makefile.am): Likewise.
112195         * modules/rename (Makefile.am): Likewise.
112196         * modules/rijndael (Makefile.am): Likewise.
112197         * modules/rmdir (Makefile.am): Likewise.
112198         * modules/rpmatch (Makefile.am): Likewise.
112199         * modules/safe-read (Makefile.am): Likewise.
112200         * modules/safe-write (Makefile.am): Likewise.
112201         * modules/same-inode (Makefile.am): Likewise.
112202         * modules/same (Makefile.am): Likewise.
112203         * modules/save-cwd (Makefile.am): Likewise.
112204         * modules/savedir (Makefile.am): Likewise.
112205         * modules/setenv (Makefile.am): Likewise.
112206         * modules/settime (Makefile.am): Likewise.
112207         * modules/sha1 (Makefile.am): Likewise.
112208         * modules/sig2str (Makefile.am): Likewise.
112209         * modules/snprintf (Makefile.am): Likewise.
112210         * modules/stat-macros (Makefile.am): Likewise.
112211         * modules/stat-time (Makefile.am): Likewise.
112212         * modules/stdbool (Makefile.am): Likewise.
112213         * modules/stdint (Makefile.am): Likewise.
112214         * modules/stdlib-safer (Makefile.am): Likewise.
112215         * modules/stpcpy (Makefile.am): Likewise.
112216         * modules/stpncpy (Makefile.am): Likewise.
112217         * modules/strcase (Makefile.am): Likewise.
112218         * modules/strcasestr (Makefile.am): Likewise.
112219         * modules/strchrnul (Makefile.am): Likewise.
112220         * modules/strcspn (Makefile.am): Likewise.
112221         * modules/strdup (Makefile.am): Likewise.
112222         * modules/strerror (Makefile.am): Likewise.
112223         * modules/strftime (Makefile.am): Likewise.
112224         * modules/strndup (Makefile.am): Likewise.
112225         * modules/strnlen (Makefile.am): Likewise.
112226         * modules/strpbrk (Makefile.am): Likewise.
112227         * modules/strsep (Makefile.am): Likewise.
112228         * modules/strstr (Makefile.am): Likewise.
112229         * modules/strtod (Makefile.am): Likewise.
112230         * modules/strtoimax (Makefile.am): Likewise.
112231         * modules/strtok_r (Makefile.am): Likewise.
112232         * modules/strtol (Makefile.am): Likewise.
112233         * modules/strtoll (Makefile.am): Likewise.
112234         * modules/strtoul (Makefile.am): Likewise.
112235         * modules/strtoull (Makefile.am): Likewise.
112236         * modules/strtoumax (Makefile.am): Likewise.
112237         * modules/strverscmp (Makefile.am): Likewise.
112238         * modules/sys_socket (Makefile.am): Likewise.
112239         * modules/sys_stat (Makefile.am): Likewise.
112240         * modules/sysexits (Makefile.am): Likewise.
112241         * modules/time_r (Makefile.am): Likewise.
112242         * modules/timegm (Makefile.am): Likewise.
112243         * modules/timespec (Makefile.am): Likewise.
112244         * modules/tmpfile-safer (Makefile.am): Likewise.
112245         * modules/trim (Makefile.am): Likewise.
112246         * modules/unistd-safer (Makefile.am): Likewise.
112247         * modules/unlinkdir (Makefile.am): Likewise.
112248         * modules/unlocked-io (Makefile.am): Likewise.
112249         * modules/userspec (Makefile.am): Likewise.
112250         * modules/utime (Makefile.am): Likewise.
112251         * modules/utimecmp (Makefile.am): Likewise.
112252         * modules/utimens (Makefile.am): Likewise.
112253         * modules/vasnprintf (Makefile.am): Likewise.
112254         * modules/vasprintf (Makefile.am): Likewise.
112255         * modules/vsnprintf (Makefile.am): Likewise.
112256         * modules/xalloc (Makefile.am): Likewise.
112257         * modules/xgetcwd (Makefile.am): Likewise.
112258         * modules/xnanosleep (Makefile.am): Likewise.
112259         * modules/xreadlink (Makefile.am): Likewise.
112260         * modules/xstrtod (Makefile.am): Likewise.
112261         * modules/xstrtol (Makefile.am): Likewise.
112262         * modules/xstrtold (Makefile.am): Likewise.
112263         * modules/yesno (Makefile.am): Likewise.
112264         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
112266 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112268         * modules/error (Makefile.am): Distribute files through
112269         EXTRA_DIST, not lib_SOURCES.
112271 2006-10-12  Eric Blake  <ebb9@byu.net>
112273         * modules/error (Makefile.am): Distribute files in /lib.
112274         * modules/obstack (Makefile.am): Likewise.
112276 2006-10-12  Bruno Haible  <bruno@clisp.org>
112278         * modules/acl (Makefile.am): Distribute all files in lib/ through
112279         EXTRA_DIST.
112280         * modules/arcfour (Makefile.am): Likewise.
112281         * modules/arctwo (Makefile.am): Likewise.
112282         * modules/argmatch (Makefile.am): Likewise.
112283         * modules/argz (Makefile.am): Likewise.
112284         * modules/atexit (Makefile.am): Likewise.
112285         * modules/backupfile (Makefile.am): Likewise.
112286         * modules/c-strtod (Makefile.am): Likewise.
112287         * modules/c-strtold (Makefile.am): Likewise.
112288         * modules/calloc (Makefile.am): Likewise.
112289         * modules/canon-host (Makefile.am): Likewise.
112290         * modules/canonicalize (Makefile.am): Likewise.
112291         * modules/chdir-long (Makefile.am): Likewise.
112292         * modules/chdir-safer (Makefile.am): Likewise.
112293         * modules/check-version (Makefile.am): Likewise.
112294         * modules/chown (Makefile.am): Likewise.
112295         * modules/cloexec (Makefile.am): Likewise.
112296         * modules/close-stream (Makefile.am): Likewise.
112297         * modules/closeout (Makefile.am): Likewise.
112298         * modules/crc (Makefile.am): Likewise.
112299         * modules/cycle-check (Makefile.am): Likewise.
112300         * modules/des (Makefile.am): Likewise.
112301         * modules/dirfd (Makefile.am): Likewise.
112302         * modules/dirname (Makefile.am): Likewise.
112303         * modules/dup2 (Makefile.am): Likewise.
112304         * modules/euidaccess (Makefile.am): Likewise.
112305         * modules/exclude (Makefile.am): Likewise.
112306         * modules/exitfail (Makefile.am): Likewise.
112307         * modules/fcntl-safer (Makefile.am): Likewise.
112308         * modules/file-type (Makefile.am): Likewise.
112309         * modules/fileblocks (Makefile.am): Likewise.
112310         * modules/filemode (Makefile.am): Likewise.
112311         * modules/filenamecat (Makefile.am): Likewise.
112312         * modules/fnmatch (Makefile.am): Likewise.
112313         * modules/fopen-safer (Makefile.am): Likewise.
112314         * modules/fpending (Makefile.am): Likewise.
112315         * modules/fprintftime (Makefile.am): Likewise.
112316         * modules/free (Makefile.am): Likewise.
112317         * modules/fsusage (Makefile.am): Likewise.
112318         * modules/ftruncate (Makefile.am): Likewise.
112319         * modules/fts (Makefile.am): Likewise.
112320         * modules/gc (Makefile.am): Likewise.
112321         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
112322         * modules/getaddrinfo (Makefile.am): Likewise.
112323         * modules/getcwd (Makefile.am): Likewise.
112324         * modules/getdelim (Makefile.am): Likewise.
112325         * modules/getdomainname (Makefile.am): Likewise.
112326         * modules/getgroups (Makefile.am): Likewise.
112327         * modules/gethostname (Makefile.am): Likewise.
112328         * modules/gethrxtime (Makefile.am): Likewise.
112329         * modules/getline (Makefile.am): Likewise.
112330         * modules/getloadavg (Makefile.am): Likewise.
112331         * modules/getlogin_r (Makefile.am): Likewise.
112332         * modules/getopt (Makefile.am): Likewise.
112333         * modules/getpass (Makefile.am): Likewise.
112334         * modules/getpass-gnu (Makefile.am): Likewise.
112335         * modules/getsubopt (Makefile.am): Likewise.
112336         * modules/gettime (Makefile.am): Likewise.
112337         * modules/gettimeofday (Makefile.am): Likewise.
112338         * modules/getugroups (Makefile.am): Likewise.
112339         * modules/getusershell (Makefile.am): Likewise.
112340         * modules/glob (Makefile.am): Likewise.
112341         * modules/group-member (Makefile.am): Likewise.
112342         * modules/hard-locale (Makefile.am): Likewise.
112343         * modules/hash (Makefile.am): Likewise.
112344         * modules/hmac-md5 (Makefile.am): Likewise.
112345         * modules/hmac-sha1 (Makefile.am): Likewise.
112346         * modules/human (Makefile.am): Likewise.
112347         * modules/idcache (Makefile.am): Likewise.
112348         * modules/imaxabs (Makefile.am): Likewise.
112349         * modules/imaxdiv (Makefile.am): Likewise.
112350         * modules/inet_ntop (Makefile.am): Likewise.
112351         * modules/inet_pton (Makefile.am): Likewise.
112352         * modules/inttostr (Makefile.am): Likewise.
112353         * modules/isapipe (Makefile.am): Likewise.
112354         * modules/lchown (Makefile.am): Likewise.
112355         * modules/long-options (Makefile.am): Likewise.
112356         * modules/lstat (Makefile.am): Likewise.
112357         * modules/malloc (Makefile.am): Likewise.
112358         * modules/mathl (Makefile.am): Likewise.
112359         * modules/mbchar (Makefile.am): Likewise.
112360         * modules/md2 (Makefile.am): Likewise.
112361         * modules/md4 (Makefile.am): Likewise.
112362         * modules/md5 (Makefile.am): Likewise.
112363         * modules/memcasecmp (Makefile.am): Likewise.
112364         * modules/memchr (Makefile.am): Likewise.
112365         * modules/memcmp (Makefile.am): Likewise.
112366         * modules/memcoll (Makefile.am): Likewise.
112367         * modules/memcpy (Makefile.am): Likewise.
112368         * modules/memmem (Makefile.am): Likewise.
112369         * modules/memmove (Makefile.am): Likewise.
112370         * modules/mempcpy (Makefile.am): Likewise.
112371         * modules/memrchr (Makefile.am): Likewise.
112372         * modules/memset (Makefile.am): Likewise.
112373         * modules/memxor (Makefile.am): Likewise.
112374         * modules/mkancesdirs (Makefile.am): Likewise.
112375         * modules/mkdir (Makefile.am): Likewise.
112376         * modules/mkdir-p (Makefile.am): Likewise.
112377         * modules/mkdtemp (Makefile.am): Likewise.
112378         * modules/mkstemp (Makefile.am): Likewise.
112379         * modules/mktime (Makefile.am): Likewise.
112380         * modules/modechange (Makefile.am): Likewise.
112381         * modules/mountlist (Makefile.am): Likewise.
112382         * modules/nanosleep (Makefile.am): Likewise.
112383         * modules/openat (Makefile.am): Likewise.
112384         * modules/pagealign_alloc (Makefile.am): Likewise.
112385         * modules/physmem (Makefile.am): Likewise.
112386         * modules/poll (Makefile.am): Likewise.
112387         * modules/posixtm (Makefile.am): Likewise.
112388         * modules/posixver (Makefile.am): Likewise.
112389         * modules/putenv (Makefile.am): Likewise.
112390         * modules/quote (Makefile.am): Likewise.
112391         * modules/quotearg (Makefile.am): Likewise.
112392         * modules/raise (Makefile.am): Likewise.
112393         * modules/read-file (Makefile.am): Likewise.
112394         * modules/readline (Makefile.am): Likewise.
112395         * modules/readlink (Makefile.am): Likewise.
112396         * modules/readtokens (Makefile.am): Likewise.
112397         * modules/readutmp (Makefile.am): Likewise.
112398         * modules/realloc (Makefile.am): Likewise.
112399         * modules/regex (Makefile.am): Likewise.
112400         * modules/rename (Makefile.am): Likewise.
112401         * modules/rename-dest-slash (Makefile.am): Likewise.
112402         * modules/rijndael (Makefile.am): Likewise.
112403         * modules/rmdir (Makefile.am): Likewise.
112404         * modules/rpmatch (Makefile.am): Likewise.
112405         * modules/safe-read (Makefile.am): Likewise.
112406         * modules/safe-write (Makefile.am): Likewise.
112407         * modules/same (Makefile.am): Likewise.
112408         * modules/save-cwd (Makefile.am): Likewise.
112409         * modules/savedir (Makefile.am): Likewise.
112410         * modules/setenv (Makefile.am): Likewise.
112411         * modules/settime (Makefile.am): Likewise.
112412         * modules/sha1 (Makefile.am): Likewise.
112413         * modules/sig2str (Makefile.am): Likewise.
112414         * modules/snprintf (Makefile.am): Likewise.
112415         * modules/stdlib-safer (Makefile.am): Likewise.
112416         * modules/stpcpy (Makefile.am): Likewise.
112417         * modules/stpncpy (Makefile.am): Likewise.
112418         * modules/strcase (Makefile.am): Likewise.
112419         * modules/strcasestr (Makefile.am): Likewise.
112420         * modules/strchrnul (Makefile.am): Likewise.
112421         * modules/strcspn (Makefile.am): Likewise.
112422         * modules/strdup (Makefile.am): Likewise.
112423         * modules/strerror (Makefile.am): Likewise.
112424         * modules/strftime (Makefile.am): Likewise.
112425         * modules/strndup (Makefile.am): Likewise.
112426         * modules/strnlen (Makefile.am): Likewise.
112427         * modules/strpbrk (Makefile.am): Likewise.
112428         * modules/strsep (Makefile.am): Likewise.
112429         * modules/strstr (Makefile.am): Likewise.
112430         * modules/strtod (Makefile.am): Likewise.
112431         * modules/strtoimax (Makefile.am): Likewise.
112432         * modules/strtok_r (Makefile.am): Likewise.
112433         * modules/strtol (Makefile.am): Likewise.
112434         * modules/strtoll (Makefile.am): Likewise.
112435         * modules/strtoul (Makefile.am): Likewise.
112436         * modules/strtoull (Makefile.am): Likewise.
112437         * modules/strtoumax (Makefile.am): Likewise.
112438         * modules/strverscmp (Makefile.am): Likewise.
112439         * modules/time_r (Makefile.am): Likewise.
112440         * modules/timegm (Makefile.am): Likewise.
112441         * modules/tmpfile-safer (Makefile.am): Likewise.
112442         * modules/unistd-safer (Makefile.am): Likewise.
112443         * modules/unlinkdir (Makefile.am): Likewise.
112444         * modules/userspec (Makefile.am): Likewise.
112445         * modules/utime (Makefile.am): Likewise.
112446         * modules/utimecmp (Makefile.am): Likewise.
112447         * modules/utimens (Makefile.am): Likewise.
112448         * modules/vasnprintf (Makefile.am): Likewise.
112449         * modules/vasprintf (Makefile.am): Likewise.
112450         * modules/vsnprintf (Makefile.am): Likewise.
112451         * modules/xalloc (Makefile.am): Likewise.
112452         * modules/xgetcwd (Makefile.am): Likewise.
112453         * modules/xnanosleep (Makefile.am): Likewise.
112454         * modules/xreadlink (Makefile.am): Likewise.
112455         * modules/xstrtod (Makefile.am): Likewise.
112456         * modules/xstrtol (Makefile.am): Likewise.
112457         * modules/xstrtold (Makefile.am): Likewise.
112458         * modules/yesno (Makefile.am): Likewise.
112460 2006-10-12  Jim Meyering  <jim@meyering.net>
112462         * m4/getloadavg.m4: Revert the change below.
112464         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
112465         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
112466         fail with a symlink, which is what coreutils' ./bootstrap now
112467         creates by default.
112469 2006-10-12  Bruno Haible  <bruno@clisp.org>
112471         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
112472         mingw.
112473         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
112474         MSVC and mingw explicitly.
112476 2006-10-11  Simon Josefsson  <jas@extundo.com>
112477             Bruno Haible  <bruno@clisp.org>
112479         Add support for multiple gnulib-tool invocations in the scope of a
112480         single configure.ac file.
112481         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
112482         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
112483         with the same contents as the _LIBADD variable.
112484         (func_emit_initmacro_start, func_emit_initmacro_end,
112485         func_emit_initmacro_done): New functions.
112486         (func_import, func_create_testdir): Invoke them. Allow the identifiers
112487         gl_LIBOBJS and gl_LTLIBOBJS.
112489 2006-10-11  Bruno Haible  <bruno@clisp.org>
112491         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
112492         (func_create_testdir): Don't create po/Makefile.am, don't invoke
112493         autoreconf. Instead, invoke autopoint explicitly but move back the
112494         *.m4 files from gnulib.
112496 2006-10-11  Bruno Haible  <bruno@clisp.org>
112498         * gnulib-tool (func_usage): Make module names after --create-testdir
112499         optional.
112500         (func_create_testdir): If no module was specified, use nearly all
112501         modules.
112503 2006-10-12  Jim Meyering  <jim@meyering.net>
112505         Big performance improvement for fts-based tools that use FTS_NOSTAT.
112506         Avoid spurious inode-mismatch problems on non-POSIX file systems.
112507         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
112508         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
112509         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
112510         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
112511         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
112512         (fts_set_stat_required): New function.
112513         (fts_open): Defer the calls to fts_stat, if possible or requested.
112514         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
112515         into fts_stat itself.
112516         (fts_read): Perform any required (deferred) fts_stat call.
112517         (fts_build): Likewise, for the directory we're about to open and read.
112518         In the readdir loop, carefully decide whether each entry will require
112519         an eventual call to fts_stat, using dirent.d_type info if available.
112520         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
112521         a command line argument into this function.  Update all callers.
112522         Map a return value of FTS_DOT to FTS_D for a command line argument.
112523         * modules/fts (Depends-on): Add d-type.  Alphabetize.
112524         Thanks to Miklos Szeredi for his tenacity and for the initial
112525         bug report about "find" failing on a FUSE-based file system.
112527         * lib/fts.c (fts_open): Use consistent indentation.
112529 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
112531         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
112532         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
112533         reported by Jim Meyering.  All uses of cache variables renamed
112534         to match Autoconf's.
112535         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
112536         the other one.
112538         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
112539         Fix misspelling in diagnostic.
112541 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112543         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
112544         defined.  Problem reported by Matthew Woehlke.
112546         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
112547         Add support for Tandem NonStop R series.
112548         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
112549         Use new macro.
112551         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
112552         (has_trailing_slash): Omit size arg; all callers changed.
112553         Omit 'inline', since it doesn't help performance and we'd
112554         need to configure it.
112555         Don't count //, ///, etc. as having a trailing slash.
112556         As a side effect, this removes a C99ism reported by Matthew Woehlke.
112557         (rpl_rename_dest_slash): On failure, use rename's errno rather
112558         than (in some cases) an incorrect or junk errno.
112559         Simplify code by removing need to compute length; this does
112560         cause it to make two passes instead of one over the file name,
112561         but it's worth it.
112563         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
112564         change, since Autoconf's version may no longer be appropriate now
112565         that we are using CVS Autoconf's version.  Add support for Tandem.
112567 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
112568             Bruno Haible  <bruno@clisp.org>
112570         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
112571         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
112572         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
112573         gl_AC_TYPE_LONG_LONG.
112575         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
112576         instead of HAVE_LONG_LONG.
112577         * lib/printf-args.c (printf_fetchargs): Likewise.
112578         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
112579         * lib/vasnprintf.c (VASNPRINTF): Likewise.
112580         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
112581         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
112582         gl_AC_TYPE_LONG_LONG.
112584 2006-10-11  Bruno Haible  <bruno@clisp.org>
112586         * m4/longlong.m4: Add comments.
112587         * m4/ulonglong.m4: Likewise.
112589 2006-10-10  Bruno Haible  <bruno@clisp.org>
112591         Make it possible to #define stpcpy, strdup to aliases.
112592         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
112593         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
112595 2006-10-10  Bruno Haible  <bruno@clisp.org>
112597         Make it possible to #define gcd to an alias.
112598         * lib/gcd.c: Include config.h.
112600 2006-10-10  Bruno Haible  <bruno@clisp.org>
112602         Make it possible to #define c_isascii to an alias.
112603         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
112604         defined. Undefine the macros before defining them, to avoid gcc
112605         warnings.
112606         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
112607         define NO_C_CTYPE_MACROS early.
112609 2006-10-10  Bruno Haible  <bruno@clisp.org>
112611         Make it possible to #define set_program_name to an alias.
112612         * lib/progname.c: Don't undefine set_program_name; instead, undefine
112613         ENABLE_RELOCATABLE early.
112615 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
112617         Port to Tandem NSK OSS, which has 64-bit signed int but at most
112618         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
112619         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00062.html
112620         More generally, don't assume that 64-bit signed int is available
112621         if unsigned int is, and vice versa.
112622         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
112623         unsigned symbols, not on their signed counterparts.
112624         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
112625         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
112626         (UINT64_C, UINTMAX_C):
112627         Likewise.
112628         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
112629         unsigned counterparts.
112630         (Have_long_long, Unsigned): New macros.
112631         (Int): Renamed from INT.
112632         (strtoimax): Use the new macros.
112633         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
112634         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
112635         * modules/inttypes (inttypes.h): Substitute
112636         HAVE_UNSIGNED_LONG_LONG_INT.
112637         * modules/stdint (stdint.h): Likewise.
112638         (Files): Add m4/ulonglong.m4.
112640 2006-10-10  Bruno Haible  <bruno@clisp.org>
112642         Fix a gcc -Wshadow warning.
112643         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
112644         to 'bucket'.
112645         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
112646         gl_linked_indexof_from_to): Likewise.
112647         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
112648         Likewise.
112649         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
112650         Likewise.
112651         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
112652         Reported by Eric Blake.
112654 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
112656         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
112657         for NetBSD.  Problem reported by Bruno Haible.
112659 2006-10-09  Jim Meyering  <jim@meyering.net>
112661         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
112662         Patch from Bruno Haible.
112664 2006-10-09  Jim Meyering  <jim@meyering.net>
112666         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
112667         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
112668         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
112670 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
112672         Don't include <config.h> twice; this doesn't work in some cases,
112673         e.g., when config.h has "#define intmax_t long long int" and
112674         we include <config.h>, <inttypes.h>, <config.h> in that order.
112675         Problem reported by Matthew Woehlke in:
112676         http://lists.gnu.org/r/bug-coreutils/2006-10/msg00073.html
112677         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
112678         * lib/fts-cycle.c: Don't include config.h.
112679         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
112680         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
112681         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
112682         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
112683         inttypes.h.
112684         * lib/xstrtoumax.c: Likewise.
112685         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
112686         __strtol and the like, so that this module is more like its siblings.
112687         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
112688         Remove; no longer needed now that we assume gnulib inttypes.h.
112690 2006-10-08  Bruno Haible  <bruno@clisp.org>
112692         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
112693         option.
112695 2006-10-07  Jim Meyering  <jim@meyering.net>
112697         * modules/inttypes (inttypes.h): Revert what seems to have been
112698         an inadvertent part of today's change: use "|", not "/" in the
112699         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
112701 2006-10-07  Bruno Haible  <bruno@clisp.org>
112703         * modules/sublist: New file.
112705 2006-10-07  Bruno Haible  <bruno@clisp.org>
112707         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
112708         * modules/argz (argz.h): Likewise.
112709         * modules/arpa_inet (arpa/inet.h): Likewise.
112710         * modules/byteswap (byteswap.h): Likewise.
112711         * modules/configmake (configmake.h): Likewise.
112712         * modules/fcntl (fcntl.h): Likewise.
112713         * modules/fnmatch (fnmatch.h): Likewise.
112714         * modules/getopt (getopt.h): Likewise.
112715         * modules/glob (glob.h): Likewise.
112716         * modules/inttypes (inttypes.h): Likewise.
112717         * modules/netinet_in (netinet/in.h): Likewise.
112718         * modules/poll (poll.h): Likewise.
112719         * modules/stdbool (stdbool.h): Likewise.
112720         * modules/stdint (stdint.h): Likewise.
112721         * modules/sys_select (sys/select.h): Likewise.
112722         * modules/sys_socket (sys/socket.h): Likewise.
112723         * modules/sys_stat (sys/stat.h): Likewise.
112724         * modules/sysexits (sysexits.h): Likewise.
112725         * modules/unistd (unistd.h): Likewise.
112726         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
112727         Add a "DO NOT EDIT" comment to the generated file.
112728         (func_import): Likewise for gnulib-comp.m4.
112730 2006-10-07  Bruno Haible  <bruno@clisp.org>
112732         * lib/gl_sublist.h: New file.
112733         * lib/gl_sublist.c: New file.
112735 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
112737         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
112738         name (relative to the original working directory) and the file
112739         name component (relative to the temporary working directory).  All
112740         callers changed.
112741         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
112742         * lib/mkdir-p.c (make_dir_parents): Likewise.
112743         * lib/mkdir-p.h (make_dir_parents): Likewise.
112745 2006-10-06  Eric Blake  <ebb9@byu.net>
112747         Define several macros for use by the clean-temp module.
112748         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
112749         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
112750         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
112752         * lib/clean-temp.h (close_stream_temp): New declaration.
112753         * lib/clean-temp.c (includes): Pull in headers according to what
112754         other modules are in use.
112755         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
112757 2006-10-06  Bruno Haible  <bruno@clisp.org>
112759         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
112760         instead of fopen, fwriteerror.
112762 2006-10-06  Bruno Haible  <bruno@clisp.org>
112764         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
112765         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
112766         int.
112767         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
112768         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
112769         Return an error indicator.
112770         Suggested by Eric Blake.
112772 2006-10-06  Bruno Haible  <bruno@clisp.org>
112774         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
112775         Reported by Eric Blake.
112777 2006-10-06  Bruno Haible  <bruno@clisp.org>
112779         * modules/closeout (Description): Mention stderr too.
112781 2006-10-06  Bruno Haible  <bruno@clisp.org>
112782         and Paul Eggert  <eggert@cs.ucla.edu>
112784         * lib/closeout.c (close_stdout): Also close stderr.
112785         * lib/closeout.h: Update comment.
112787 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
112789         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
112790         <http://lists.gnu.org/r/bug-coreutils/2006-10/msg00063.html>.
112791         * lib/dirchownmod.c: Include lchown.h.
112792         * lib/lchown.c: Don't include files that lchown.h now includes.
112793         Don't declare chown, since lchown.h now does that.
112794         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
112795         (lchown): Define to rpl_chown if lchown is declared but
112796         does not exist.  Declare using a prototype if lchown is not
112797         declared.  Add a copyright notice.
112798         * lib/mkstemp.h: Include <unistd.h>.
112799         * lib/openat.c: Include lchown.h.
112801         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
112802         we now test for that separately.
112803         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
112804         rather than O_NOFOLLOW, when testing whether it's possible to
112805         avoid a race condition reliably.
112806         * lib/savewd.c (savewd_chdir): Likewise.
112808         Remove macros that are no longer needed now that stdint.h is
112809         reliable.
112810         * lib/fsusage.c (UINTMAX_MAX): Remove.
112811         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
112812         * lib/utimecmp.c (SIZE_MAX): Remove.
112814         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
112816         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
112817         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
112818         O_NOATIME works.
112820 2006-10-05  Bruno Haible  <bruno@clisp.org>
112822         * lib/gl_list.h (gl_sortedlist_search_from_to,
112823         gl_sortedlist_indexof_from_to): New declarations.
112824         (gl_list_implementation): New fields sortedlist_search_from_to,
112825         sortedlist_indexof_from_to.
112826         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
112827         inline functions.
112828         * lib/gl_list.c (gl_sortedlist_search_from_to,
112829         gl_sortedlist_indexof_from_to): New functions.
112830         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
112831         function.
112832         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
112833         (gl_array_sortedlist_search_from_to): New function.
112834         (gl_array_list_implementation): Update.
112835         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
112836         function.
112837         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
112838         (gl_carray_sortedlist_search_from_to): New function.
112839         (gl_carray_list_implementation): Update.
112840         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
112841         gl_linked_sortedlist_indexof_from_to): New functions.
112842         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112843         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112844         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
112845         gl_tree_sortedlist_indexof_from_to): New functions.
112846         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112847         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112848         Update.
112849         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112850         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
112851         Update.
112853 2006-10-05  Bruno Haible  <bruno@clisp.org>
112855         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
112856         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
112857         (struct gl_list_implementation): Add fields search_from_to,
112858         indexof_from_to. Remove fields search, indexof.
112859         (gl_list_search): Use the search_from_to method.
112860         (gl_list_search_from, gl_list_search_from_to): New functions.
112861         (gl_list_indexof): Use the indexof_from_to method.
112862         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112863         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
112864         (gl_list_search_from, gl_list_search_from_to): New functions.
112865         (gl_list_indexof): Use the indexof_from_to method.
112866         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
112867         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
112868         gl_array_indexof. Add start_index, end_index arguments.
112869         (gl_array_search_from_to): Renamed from gl_array_search. Add
112870         start_index, end_index arguments.
112871         (gl_array_remove, gl_array_list_implementation): Update.
112872         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
112873         gl_carray_indexof. Add start_index, end_index arguments.
112874         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
112875         start_index, end_index arguments.
112876         (gl_carray_remove, gl_carray_list_implementation): Update.
112877         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
112878         gl_linked_search. Add start_index, end_index arguments.
112879         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
112880         start_index, end_index arguments.
112881         (gl_linked_remove): Update.
112882         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
112883         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
112884         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
112885         field to 'size_t'.
112886         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
112887         gl_tree_search. Add start_index, end_index arguments.
112888         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112889         start_index, end_index arguments.
112890         (gl_tree_remove): Update.
112891         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
112892         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
112893         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
112894         function.
112895         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
112896         gl_tree_search. Add start_index, end_index arguments.
112897         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
112898         start_index, end_index arguments.
112899         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
112900         Update.
112901         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
112903 2006-10-05  Bruno Haible  <bruno@clisp.org>
112905         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
112907         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
112908         fwriteerror_temp): New declarations.
112909         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
112910         (descriptors): New variable.
112911         (cleanup): First, close the descriptors.
112912         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
112913         fclose_temp, fwriteerror_temp): New functions.
112915 2006-10-04  Jim Meyering  <jim@meyering.net>
112917         * lib/fts.c (fts_open): Tiny comment change.
112919 2006-10-04  Bruno Haible  <bruno@clisp.org>
112921         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
112922         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
112923         gl_LOCK_BODY.
112924         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
112925         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
112926         gl_LOCK_EARLY_BODY.
112927         (gl_LOCK): Require gl_LOCK_BODY.
112929 2006-10-04  Bruno Haible  <bruno@clisp.org>
112931         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
112932         (gl_oset_search_atleast): New declaration.
112933         (struct gl_oset_implementation): Add field 'search_atleast'.
112934         (gl_oset_search_atleast): New inline function.
112935         * lib/gl_oset.c (gl_oset_search_atleast): New function.
112936         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
112937         (gl_array_oset_implementation): Update.
112938         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
112939         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
112940         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
112942 2006-10-04  Bruno Haible  <bruno@clisp.org>
112944         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
112946 2006-10-03  Bruno Haible  <bruno@clisp.org>
112948         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
112949         from gl_avltreehash_list_implementation.
112951 2006-10-03  Bruno Haible  <bruno@clisp.org>
112953         * lib/gl_oset.c (gl_oset_add): Fix return type.
112955 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
112957         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
112959 2006-10-02  Eric Blake  <ebb9@byu.net>
112961         * modules/strnlen (Depends-on): Add extensions.
112963 2006-10-02  Eric Blake  <ebb9@byu.net>
112965         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
112966         definition in 2.60+.
112968 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
112970         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
112971         checks.
112973 2006-10-02  Bruno Haible  <bruno@clisp.org>
112975         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
112976         to the AUTOMAKE_OPTIONS.
112977         Reported by Jim Meyering.
112979 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
112981         Work around bug in Solaris 10 /proc file system:
112982         /proc/self/fd/NNN/.. isn't the parent directory of
112983         the directory whose file descriptor is NNN.  This needs to
112984         be worked around at run time, not compile time, since a
112985         program might be built on Solaris 8, where things work, and
112986         run on Solaris 10.
112987         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
112988         to use the following interface instead:
112989         (OPENAT_BUFFER_SIZE): New macro.
112990         (openat_proc_name): New function.
112991         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
112992         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
112993         Likewise.
112994         * lib/openat-proc.c: New file.
112995         * modules/openat (Files): Add lib/openat-proc.c.
112996         (Depends-on): Add same-inode, stdbool.
112997         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
112999 2006-09-29  Bruno Haible  <bruno@clisp.org>
113001         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
113002         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
113003         argument. Set stdout_closed before testing for ferror, not after.
113004         (fwriteerror, fwriteerror_no_ebadf): New functions.
113006 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113008         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
113010 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
113012         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
113013         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
113015 2006-09-28  Jim Meyering  <jim@meyering.net>
113017         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
113018         Include <unistd.h>.
113020 2006-09-28  Bruno Haible  <bruno@clisp.org>
113022         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
113023         * modules/linkedhash-list (Depends-on): Likewise.
113024         * modules/rbtreehash-list (Depends-on): Likewise.
113026 2006-09-28  Bruno Haible  <bruno@clisp.org>
113028         * lib/strndup.h: Simplify the redefinition of strndup.
113029         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
113030         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
113032 2006-09-28  Bruno Haible  <bruno@clisp.org>
113034         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
113035         * lib/gl_linkedhash_list.c: Likewise.
113036         * lib/gl_rbtreehash_list.c: Likewise.
113038 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
113040         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
113041         getaddrinfo.
113043         * lib/__fpending.h: Don't include <stdio_ext.h> unless
113044         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
113045         it causes <stdio_ext.h> to cause a compile-time error.
113046         Problem reported by Nelson H. F. Beebe.
113047         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
113048         of HAVE_DECL___PENDING.
113050         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
113051         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
113052         declaration.
113054 2006-09-27  Jim Meyering  <jim@meyering.net>
113056         This file could end up with a definition for a function
113057         named __strndup, rather than rpl_strndup on a system with
113058         incomplete weak_alias support.
113059         * lib/strndup.c (strndup): Rename from __strndup.
113060         Remove #defines that used to map __strndup to strndup.
113061         Don't use K&R prototypes.
113062         Remove LIBC-related code, since this file is not sync'd with glibc.
113063         * lib/strndup.h: Revamp, accordingly.
113064         * m4/strndup.m4: Modernize.
113066 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
113068         * modules/savewd (Depends-on): Add 'raise'.
113069         * lib/savewd.c: Include <signal.h>, for 'raise'.
113071 2006-09-26  Jim Meyering  <jim@meyering.net>
113073         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
113074         when we detect Darwin 8.7.0's acl_get_file bug.
113075         Rearrange to perform the new (below) run-test while $LIBS
113076         contains any acl-related library.  Set USE_ACL at the end.
113077         (gl_ACL_GET_FILE): New function.
113079 2006-09-26  Eric Blake  <ebb9@byu.net>
113081         * lib/verror.c: Include <config.h> unconditionally.
113083 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
113085         * modules/clock-time (Maintainer): Add self.
113086         * modules/getlogin_r (Depends-on): Add extensions.
113088 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113090         * modules/clock-time: New module.
113091         * modules/nanosleep (Depends-on): Add clock-time.
113092         * modules/gethrxtime (Depends-on): Likewise.
113093         * modules/gettime (Depends-on): Likewise.
113094         * modules/settime (Depends-on): Likewise.
113096         * modules/fts-lgpl: Depend on openat.
113097         * modules/mkancesdirs: Depend on savewd.
113098         * modules/mkdir-p: Likewise.
113100 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113102         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
113104         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
113105         `gl_have_arbitrary_file_name_length_limit' to
113106         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
113107         actually works between configure runs.
113109 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113110             Bruno Haible  <bruno@clisp.org>
113112         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
113114 2006-09-25  Jim Meyering  <jim@meyering.net>
113116         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
113117         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
113119 2006-09-25  Eric Blake  <ebb9@byu.net>
113121         * gnulib-tool (func_import, func_create_testdir): Fix typos in
113122         exec's in 2006-09-18 patch when shuffling fds.
113124 2006-09-25  Bruno Haible  <bruno@clisp.org>
113126         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
113127         Reported by Jim Meyering.
113129 2006-09-24  Jim Meyering  <jim@meyering.net>
113131         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
113132         compare a pointer against a literal "0".  That caused failures with
113133         at least HP-UX's hpcc.
113135 2006-09-22  Simon Josefsson  <jas@extundo.com>
113137         * modules/gc-sha1:
113138         * modules/gc-md4:
113139         * modules/gc-hmac-sha1:
113140         * modules/gc-hmac-md5:
113141         * modules/gc-des:
113142         * modules/gc-arcfour: Distribute more files.
113144 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113146         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
113147         (gl_linked_iterator_from_to): Initialize struct completely.
113148         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
113149         (gl_tree_iterator_from_to): Likewise
113150         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
113151         * lib/gl_array_list.c [lint] (gl_array_iterator)
113152         (gl_array_iterator_from_to): Likewise.
113153         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
113154         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
113155         (gl_carray_iterator_from_to): Likewise.
113157         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
113158         * lib/md4.c (md4_process_block): Remove unused variable.
113159         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
113160         parentheses for clarity.
113162 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113164         * modules/bison-i18n (Depends-on): Add gettext.
113166 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113168         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
113169         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
113170         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
113171         also add missing comma that caused broken test.
113172         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
113173         stdlib.h, for `abort'.
113174         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
113175         variables.
113176         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
113177         include unistd.h if present, for `rmdir'.
113178         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
113179         variables.
113180         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
113181         in the process include standard headers for prototypes.
113182         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
113183         gets declared on GNU/Linux.
113184         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
113185         unistd.h, for `rmdir'.
113186         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
113188         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
113189         always true.
113190         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
113192         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
113194 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113196         * gnulib-tool (func_version): Create output all at once.  This
113197         may help avoid triggering unnecessary SIGPIPEs, and at any
113198         rate it doesn't hurt.
113200 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113201             Bruno Haible  <bruno@clisp.org>
113203         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
113204         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
113205         * m4/signed.m4 (bh_C_SIGNED): Likewise.
113207         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
113208         (gl_FUNC_VASPRINTF): Invoke it.
113210 2006-09-22  Bruno Haible  <bruno@clisp.org>
113212         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
113213         getloadavg.c as first argument.
113215 2006-09-22  Bruno Haible  <bruno@clisp.org>
113217         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
113218         at the beginning of the gl_INIT macro.
113219         * modules/getloadavg (configure.ac): Pass $gl_source_base to
113220         gl_GETLOADAVG.
113222 2006-09-22  Bruno Haible  <bruno@clisp.org>
113224         * gnulib-tool (func_create_megatestdir): Don't include the config-h
113225         module.
113226         Suggested by Ralf Wildenhues.
113228 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
113230         Import this patch from libc:
113232         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
113234         * lib/regex_internal.c (re_string_reconstruct): Handle
113235         offset < pstr->valid_raw_len && pstr->offsets_needed case.
113236         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
113237         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
113238         re_string_context_at.
113240         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
113241         now requires it.
113242         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
113243         gl_REGEX now does it for us.
113244         (gl_REGEX): Add test taken from
113245         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
113247         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
113248         Check that large offsets work.  Modernize Autoconf usages.
113249         Prefer "yes" to mean a good thing rather than a bad.
113250         Don't put "#define mkstemp" in config.h, as this might interfere
113251         with standard system headers that "#define mkstemp mkstemp64".
113253         * modules/mkstemp (Depends-on): Add extensions, so that
113254         mkstemp is visible on some platforms.
113255         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
113256         (Include): Change to "mkstemp.h" from <stdlib.h>.
113257         (Files): Add mkstemp.h.
113259         * lib/mkstemp.h: New file, since some standard headers
113260         #define mkstemp.
113261         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
113262         Include "mkstemp.h".
113263         Make the _LIBC code resemble glibc original more,
113264         e.g., use K&R style.
113265         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
113266         (mkstemp): Remove, since mkstemp.h does this for us.
113267         * lib/stdlib--.h: Include mkstemp.h.
113269         Import this patch from libc:
113271         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113273         * lib/tempname.c (__gen_tempname): Change attempts_min
113274         into a macro.  Use preprocessor to decide how to initialize
113275         attempts [Coverity CID 67].
113277 2006-09-20  Bruno Haible  <bruno@clisp.org>
113279         * lib/mkdtemp.c: Import from libc.
113280         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
113281                 * sysdeps/posix/tempname.c (__gen_tempname): Change
113282                 attempts_min into a macro.  Use preprocessor to decide how to
113283                 initialize attempts [Coverity CID 67].
113284         2001-11-27  Paul Eggert  <eggert@twinsun.com>
113285                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
113286                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
113288 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113290         * gnulib-tool (func_exit): New function, to allow to pass the
113291         exit status portably through the trap.  Use everywhere.
113292         (--help, --version): Signal a write error.
113293         (trap): catch SIGPIPE, for write errors.
113294         Exit at the end of the trap, with the correct exit status.
113296 2006-09-19  Karl Berry  <karl@gnu.org>
113298         * doc/gnulib.texi: note about the license texinfo files.
113300 2006-09-19  Eric Blake  <ebb9@byu.net>
113302         * gnulib-tool: Avoid space-tab.
113304 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113306         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
113307         that prevented coreutils 6.1 from building.  Problem reported
113308         by Petter Reinholdtsen.
113310 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
113312         * gnulib-tool (avoidlist): Fix typo that broke options like
113313         --avoid=lock that are used by coreutils bootstrap.
113315 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
113317         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
113318         more systematically.
113320 2006-09-18  Jim Meyering  <jim@meyering.net>
113322         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
113324 2006-09-18  Bruno Haible  <bruno@clisp.org>
113326         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
113328 2006-09-18  Bruno Haible  <bruno@clisp.org>
113330         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
113331         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
113332         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
113333         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
113334         * m4/gettext.m4: Require autoconf >= 2.52.
113335         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
113336         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
113337         of gl_cv_header_inttypes_h.
113339 2006-09-18  Bruno Haible  <bruno@clisp.org>
113341         * lib/javaversion.c: Include configmake.h.
113343 2006-09-18  Bruno Haible  <bruno@clisp.org>
113345         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
113346         avoid that the while loops be executed in a subshell.
113348 2006-09-18  Bruno Haible  <bruno@clisp.org>
113350         * MODULES.html.sh (func_module): Break long lines.
113351         Suggested by Bruce Korb <bkorb@gnu.org>.
113353 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113355         Speed up by a factor of 1.12.
113356         * gnulib-tool (nl): New variable.
113357         (func_import): Rewrite include directive extraction to only read each
113358         directive once.
113360 2006-09-17  Bruno Haible  <bruno@clisp.org>
113362         * modules/javaversion (Makefile.am): Remove DEFS setting.
113363         (Depends-on): Add configmake, for PKGDATADIR definition.
113365 2006-09-17  Bruno Haible  <bruno@clisp.org>
113367         * gnulib-tool (func_create_testdir): Rewrite all files at once.
113369 2006-09-17  Bruno Haible  <bruno@clisp.org>
113371         * gnulib-tool (func_append): New function, stolen from libtool.m4.
113372         (func_modules_transitive_closure, func_modules_add_dummy,
113373         func_modules_to_filelist, func_import, func_create_testdir,
113374         func_create_megatestdir, ...): Use it wherever possible.
113375         Suggested by Ralf Wildenhues.
113377 2006-09-16  Karl Berry  <karl@gnu.org>
113379         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
113380         to avoid sectioning errors.
113381         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
113382         [ifinfo]: blank line after @center-ed titles.
113383         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
113384         Spell FSF address consistently with others.
113385         (These changes approved by rms.)
113387 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113389         Speed up by a factor of 1.61.
113390         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
113391         already checked module names again.
113393 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113395         Speed up by a factor of 1.13.
113396         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
113397         for new_files, and the input to func_add_or_update.
113399 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113401         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
113402         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
113404 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113406         * modules/mkancesdirs (Depends-on): Add fcntl.
113407         * modules/savewd: New file.
113408         * MODULES.html.sh (File system functions): Add savewd.
113410         * modules/configmake (Makefile.am): Add support for the
113411         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
113413 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113415         * m4/savewd.m4: New file.
113417 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
113419         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
113420         (dirchownmod): New arg FD.  All callers changed.
113421         Use FD rather than opening the directory ourself, as opening is
113422         now the caller's responsibility.
113423         * lib/dirchownmod.h: Likewise.
113424         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
113425         hosts that require <sys/types.h> before <sys/stat.h>.  Include
113426         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
113427         (test_dir): Remove.
113428         (mkancesdirs): Return length of prefix of FILE that has already
113429         been made, or -2 if there is a child doing the work.  Redo
113430         algorithm so that it is O(N) rather than O(N**2).  Optimize away
113431         ".", and treat ".." specially since it might stray back into
113432         already-created areas.  Use a subprocess if necessary.  New arg
113433         WD; all users changed.  MAKE_DIR function should now return 1
113434         if it creates a directory that is not readable.  Return -2 if
113435         a child process is spun off.
113436         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
113437         Adjust signature to match code.
113438         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
113439         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
113440         all users changed.
113441         * lib/savewd.c, lib/savewd.h: New files.
113443 2006-09-15  Jim Meyering  <jim@meyering.net>
113445         * modules/rename-dest-slash: New module.
113446         * MODULES.html.sh (posix_compat): Add it here.
113448         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
113450 2006-09-15  Jim Meyering  <jim@meyering.net>
113452         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
113453         file.
113455         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
113457 2006-09-15  Jim Meyering  <jim@meyering.net>
113459         * lib/rename-dest-slash.c (has_trailing_slash): Use
113460         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
113461         (rpl_rename_dest_slash): Perform the cheaper trailing slash
113462         test before testing whether SRC is a directory.
113463         Suggestions from Bruno Haible.
113465         Avoid a warning about an unused variable.
113466         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
113467         into the #ifdef block where it's used.
113469         * lib/rename-dest-slash.c: New file.
113471 2006-09-14  Bruno Haible  <bruno@clisp.org>
113473         * lib/allocsa.c: Include <config.h> unconditionally.
113474         * lib/asnprintf.c: Likewise.
113475         * lib/asprintf.c: Likewise.
113476         * lib/c-strcasecmp.c: Likewise.
113477         * lib/c-strcasestr.c: Likewise.
113478         * lib/c-strncasecmp.c: Likewise.
113479         * lib/c-strstr.c: Likewise.
113480         * lib/classpath.c: Likewise.
113481         * lib/clean-temp.c: Likewise.
113482         * lib/concatpath.c: Likewise.
113483         * lib/copy-file.c: Likewise.
113484         * lib/csharpcomp.c: Likewise.
113485         * lib/csharpexec.c: Likewise.
113486         * lib/execute.c: Likewise.
113487         * lib/fatal-signal.c: Likewise.
113488         * lib/findprog.c: Likewise.
113489         * lib/fwriteerror.c: Likewise.
113490         * lib/gl_array_list.c: Likewise.
113491         * lib/gl_array_oset.c: Likewise.
113492         * lib/gl_avltree_list.c: Likewise.
113493         * lib/gl_avltree_oset.c: Likewise.
113494         * lib/gl_avltreehash_list.c: Likewise.
113495         * lib/gl_carray_list.c: Likewise.
113496         * lib/gl_linked_list.c: Likewise.
113497         * lib/gl_linkedhash_list.c: Likewise.
113498         * lib/gl_list.c: Likewise.
113499         * lib/gl_oset.c: Likewise.
113500         * lib/gl_rbtree_list.c: Likewise.
113501         * lib/gl_rbtree_oset.c: Likewise.
113502         * lib/gl_rbtreehash_list.c: Likewise.
113503         * lib/imaxabs.c: Likewise.
113504         * lib/imaxdiv.c: Likewise.
113505         * lib/javacomp.c: Likewise.
113506         * lib/javaexec.c: Likewise.
113507         * lib/javaversion.c: Likewise.
113508         * lib/linebreak.c: Likewise.
113509         * lib/localcharset.c: Likewise.
113510         * lib/lock.c: Likewise.
113511         * lib/mbchar.c: Likewise.
113512         * lib/mbswidth.c: Likewise.
113513         * lib/mkdtemp.c: Likewise.
113514         * lib/pipe.c: Likewise.
113515         * lib/printf-args.c: Likewise.
113516         * lib/printf-parse.c: Likewise.
113517         * lib/progname.c: Likewise.
113518         * lib/progreloc.c: Likewise.
113519         * lib/readlink.c: Likewise.
113520         * lib/sh-quote.c: Likewise.
113521         * lib/stpcpy.c: Likewise.
113522         * lib/stpncpy.c: Likewise.
113523         * lib/strcasecmp.c: Likewise.
113524         * lib/strcasestr.c: Likewise.
113525         * lib/strcspn.c: Likewise.
113526         * lib/striconv.c: Likewise.
113527         * lib/strncasecmp.c: Likewise.
113528         * lib/strnlen1.c: Likewise.
113529         * lib/strstr.c: Likewise.
113530         * lib/strtok_r.c: Likewise.
113531         * lib/tls.c: Likewise.
113532         * lib/tmpdir.c: Likewise.
113533         * lib/unicodeio.c: Likewise.
113534         * lib/unsetenv.c: Likewise.
113535         * lib/vasnprintf.c: Likewise.
113536         * lib/vasprintf.c: Likewise.
113537         * lib/wait-process.c: Likewise.
113538         * lib/xallocsa.c: Likewise.
113539         * lib/xsetenv.c: Likewise.
113540         * lib/xstriconv.c: Likewise.
113542 2006-09-13  Simon Josefsson  <jas@extundo.com>
113544         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
113545         that internally, suggested by Ralf Wildenhues
113546         <Ralf.Wildenhues@gmx.de>.
113548 2006-09-13  Simon Josefsson  <jas@extundo.com>
113550         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
113551         @LIBOBJS@.
113552         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
113554 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
113556         * lib/_fpending.c: Include <config.h> unconditionally, since we no
113557         longer worry about uses that don't define HAVE_CONFIG_H.
113558         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
113559         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
113560         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
113561         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
113562         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
113563         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
113564         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
113565         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
113566         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
113567         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
113568         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
113569         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
113570         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
113571         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
113572         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
113573         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
113574         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
113575         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
113576         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
113577         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
113578         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
113579         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
113580         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
113581         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
113582         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
113583         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
113584         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
113585         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
113586         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
113587         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
113588         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
113589         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
113590         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
113591         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
113592         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
113593         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
113594         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
113595         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
113596         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
113597         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
113598         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
113599         Likewise.
113601 2006-09-13  Eric Blake  <ebb9@byu.net>
113603         * lib/getopt.c: Fix typo in last commit.
113605 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
113607         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
113608         dgettext.
113610 2006-09-12  Jim Meyering  <jim@meyering.net>
113612         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
113613         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
113614         Reported by Nelson H. F. Beebe.
113616 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
113618         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
113619         program_invocation_name and program_invocation_short_name are
113620         initialized.
113621         * lib/argp-namefrob.h: Move declarations of program_invocation_name
113622         and program_invocation_short_name to argp.h, so they are visible
113623         to user programs.
113624         * lib/argp.h: Likewise
113626 2006-09-10  Bruno Haible  <bruno@clisp.org>
113628         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
113629         m4/inttypes_h.m4, m4/uintmax_t.m4.
113631 2006-09-10  Bruno Haible  <bruno@clisp.org>
113633         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
113634         gl_AC_TYPE_UINTMAX_T.
113636 2006-09-10  Bruno Haible  <bruno@clisp.org>
113638         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
113640 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
113642         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
113643         convention.  Text proposed by Bruno Haible.
113644         (struct argp_option): Document the use of N_() wrappers.
113646         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
113647         '\v', and translate the two parts separately, instead of feeding
113648         the whole string to gettext.  This allows to exclude
113649         '\v' from the strings visible to the translator by writing doc
113650         strings as N_("..") "\v" N_("..").
113652 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
113654         * config/srclist.txt: Undo latest change; the bug was fixed.
113656 2006-09-09  Bruno Haible  <bruno@clisp.org>
113658         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
113659         assignments if building a library without libtool.
113660         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
113661         in func_emit_lib_Makefile_am.
113662         (func_import): When building a static library libfoo.a, arrange to
113663         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
113664         (func_create_testdir): Likewise.
113665         * modules/gc (configure.ac, Makefile.am): If building statically,
113666         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
113667         * modules/iconvme (configure.ac, Makefile.am): Likewise.
113668         * modules/striconv (configure.ac, Makefile.am): Likewise.
113669         Based on a suggestion by Ralf Wildenhues.
113671 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113673         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
113674         Check for unistd.h too, since Autoconf doesn't assume POSIX.
113675         Also:
113677         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113678         Add year_2050_test to catch glibc bug 2821
113679         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113681         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
113682         Prefer #ifdef to #if.
113684         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
113685         Return from 'main' instead of calling 'exit'.
113687 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113689         * lib/mktime.c (guess_time_tm): Fix bug where mktime
113690         returned the maximum time_t value rather than (time_t) -1.
113691         Problem originally reported by William Bardwell
113692         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
113694         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113695         Moved to here ...
113696         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
113697         ... from here.
113699 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
113701         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
113702         2821 is fixed.
113704 2006-09-08  Jim Meyering  <jim@meyering.net>
113706         Don't make generated files read-only.  That would bother too many
113707         people.  However, do retain the ability to work when targets are
113708         read-only: remove the destination and temporary files before writing
113709         them (when generated via sed or echo), or by using the -f option for
113710         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
113711         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113712         * modules/byteswap, modules/configmake, modules/fcntl:
113713         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113714         * modules/localcharset, modules/netinet_in, modules/poll:
113715         * modules/stdbool, modules/stdint, modules/sys_select:
113716         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113718 2006-09-08  Jim Meyering  <jim@meyering.net>
113720         Avoid new build failure on FreeBSD 6.0.
113721         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
113722         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
113723         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
113725 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113727         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
113729 2006-09-07  Jim Meyering  <jim@meyering.net>
113731         Fix global typo in last change: use chmod u-w, not chmod u-x.
113732         Spotted by Paul Eggert and Bruce Korb.
113733         * modules/alloca-opt, modules/argz, modules/arpa_inet:
113734         * modules/byteswap, modules/configmake, modules/fcntl:
113735         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
113736         * modules/localcharset, modules/netinet_in, modules/poll:
113737         * modules/stdbool, modules/stdint, modules/sys_select:
113738         * modules/sys_socket, modules/sys_stat, modules/sysexits:
113740 2006-09-06  Jim Meyering  <jim@meyering.net>
113742         Make generated files be read-only.
113743         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
113744         Ensure that each generated file is now read-only.
113745         * modules/argz: Likewise.
113746         * modules/arpa_inet: Likewise.
113747         * modules/byteswap: Likewise.
113748         * modules/configmake: Likewise.
113749         * modules/fcntl: Likewise.
113750         * modules/fnmatch: Likewise.
113751         * modules/getopt: Likewise.
113752         * modules/glob: Likewise.
113753         * modules/inttypes: Likewise.
113754         * modules/netinet_in: Likewise.
113755         * modules/poll: Likewise.
113756         * modules/stdbool: Likewise.
113757         * modules/stdint: Likewise.
113758         * modules/sys_select: Likewise.
113759         * modules/sys_socket: Likewise.
113760         * modules/sys_stat: Likewise.
113761         * modules/sysexits: Likewise.
113762         * modules/localcharset: Same as above, but continue using temporary
113763         file named "t-$@" (why different?) rather than the "$@-t" used
113764         everywhere else.
113766         * modules/sysexits (Makefile.am): Replace literal occurrences
113767         of "sysexit.h" more readable, and more consistent, "$@".
113769 2006-09-06  Bruno Haible  <bruno@clisp.org>
113771         * modules/striconv: New file.
113772         * modules/xstriconv: New file.
113773         * MODULES.html.sh (Internationalization functions): Add striconv,
113774         xstriconv.
113776 2006-09-06  Bruno Haible  <bruno@clisp.org>
113778         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
113779         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
113780         not using libtool correctly.
113782 2006-09-06  Bruno Haible  <bruno@clisp.org>
113784         * lib/striconv.h: New file.
113785         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
113786         iconvstring.c.
113787         * lib/xstriconv.h: New file.
113788         * lib/xstriconv.c: New file.
113790 2006-09-06  Bruno Haible  <bruno@clisp.org>
113792         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
113793         lib_..._LDFLAGS.
113795 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113797         * lib/argz_.h: Sync from Libtool.
113799         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
113800                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
113802         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
113804 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113806         * modules/trim: New file.
113808 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
113810         * lib/trim.h: New file.
113811         * lib/trim.c: New file.
113813 2006-09-05  Bruno Haible  <bruno@clisp.org>
113815         * MODULES.html.sh (String handling): Add trim.
113817 2006-09-04  Karl Berry  <karl@gnu.org>
113819         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
113820         until next release.
113822 2006-09-03  Bruno Haible  <bruno@clisp.org>
113824         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
113825         correctly.
113827 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113829         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
113830         not gl_GETLOADAVG.  Omit unneeded semicolons.
113831         Problems reported by Ralf Wildenhues in
113832         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113833         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
113834         at the end, which is the usual gnulib style.
113836         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
113837         of doing all the work ourselves.
113838         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
113839         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
113841 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113843         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
113844         Problem reported by Ralf Wildenhues in
113845         <http://lists.gnu.org/r/bug-gnulib/2006-09/msg00000.html>.
113847         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
113848         HAVE_STRUCT_STATFS_F_FSTYPENAME.
113850 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
113852         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
113853         yesterday's patch by changing test -n to test -z.
113855 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113857         * modules/getloadavg (Files): Add m4/getloadavg.m4.
113858         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
113859         the former is now obsolescent.
113861         * modules/chdir-long (Depends-on): Add fcntl.
113863 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113865         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
113866         obsolescent, and programs should use gnulib instead.
113867         * m4/getloadavg.m4: New file, with contents taken from Autoconf
113868         but with prefixes changed.
113870 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
113872         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
113873         or stdbool.h, because they might not exist while configuring.
113875         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
113876         Don't include unistd.h or limits.h; not needed, since chdir-long.h
113877         does that for us.
113878         (O_DIRECTORY): Remove.
113880 2006-08-31  Eric Blake  <ebb9@byu.net>
113882         * gnulib-tool: Don't let emacs change spaces to TAB.
113884 2006-08-31  Bruno Haible  <bruno@clisp.org>
113886         * gnulib-tool: When calling func_import more than once, do it in a
113887         subshell.
113888         Reported by Eric Blake <ebb9@byu.net>.
113890 2006-08-31  Bruno Haible  <bruno@clisp.org>
113892         * gnulib-tool (nl): Remove variable.
113893         (sed_transform_lib_file): Use more robust test for config-h module.
113894         (func_import): Fix typo in 2006-08-25 patch.
113896 2006-08-31  Bruno Haible  <bruno@clisp.org>
113898         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
113899         specified, augment Makefile.am variables instead of assigning them.
113901 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113903         Work around a bug in both the Linux and SunOS 64-bit kernels:
113904         nanosleep mishandles sleeps for longer than 2**31 seconds.
113905         Problem reported by Frank v Waveren in
113906         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113907         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
113908         Check for nanosleep bug.
113909         (LIB_NANOSLEEP): Append clock_gettime library if needed.
113911 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113913         Work around a bug in both the Linux and SunOS 64-bit kernels:
113914         nanosleep mishandles sleeps for longer than 2**31 seconds.
113915         Problem reported by Frank v Waveren in
113916         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00298.html>.
113917         * lib/nanosleep.c (BILLION): New constant.
113918         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
113919         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
113920         implementation.
113922 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113924         * modules/nanosleep (Depends-on): Add gettime.
113926 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
113927         and Simon Josefsson  <jas@extundo.com>
113928         and Oskar Liljeblad  <oskar@osk.mine.nu>
113930         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
113931         * gnulib-tool (func_import): New license type 'unmodifiable license
113932         text'.
113933         * modules/fdl: Use it.  Longer description.
113934         * module/gpl, module/lgpl: New files.
113936 2006-08-30  Jim Meyering  <jim@meyering.net>
113938         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
113939         shadowing the parameter.
113941 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113943         Sync from Libtool:
113945         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
113947         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
113948         sharing with gnulib.  Report by Eric Blake.
113950 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113952         * modules/isapipe: New file.
113953         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
113955 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113957         * modules/configmake (Makefile.am): Add a comment, and omit
113958         the CONFIGMAKE_ prefix from generated macro names.  Suggested
113959         by Bruno Haible.
113961 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113963         * m4/isapipe.m4: New file.
113965 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
113967         * lib/isapipe.c, lib/isapipe.h: New files.
113969 2006-08-29  Jim Meyering  <jim@meyering.net>
113971         * modules/configmake (Makefile.am): Make configmake.h depend on
113972         Makefile.  Otherwise, a stale configmake.h could hang around.
113974 2006-08-29  Eric Blake  <ebb9@byu.net>
113976         * lib/error.c (error_at_line, print_errno_message): Match libc, after
113977         resolution of upstream bug 3044.
113979 2006-08-29  Bruno Haible  <bruno@clisp.org>
113981         * modules/localcharset (Depends-on): Add configmake.
113982         (Makefile.am): Remove setting of LIBDIR through DEFS.
113984 2006-08-29  Bruno Haible  <bruno@clisp.org>
113986         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
113987         defined.
113989 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
113991         * modules/fcntl: New file.
113992         * modules/chdir-safer (Depends-on): Add fcntl.
113993         * modules/fts: Likewise.
113994         * modules/mkdir-p: Likewise.
113996         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
113997         This undoes the most recent change, since we're now addressing the
113998         problem in a different way.
114000         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
114001         into output, since the output might be called Makefile.am even
114002         if $makefile_name is something different.
114003         (func_import): Use $makefile_am rather than
114004         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
114005         empty.
114007         * modules/inttypes (Files): Add m4/inttypes-h.m4.
114009 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114011         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
114012         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
114013         recent change to stdint.m4, since we're now addressing the problem in a
114014         different way.
114016 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114018         * m4/fcntl_h.m4: New file.
114020 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
114022         * lib/fcntl_.h: New file.
114023         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
114024         the fcntl module.
114025         * lib/dirchownmod.c: Likewise.
114026         * lib/fts.c: Likewise.
114028         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
114029         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
114030         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
114031         just before including <inttypes.h>, to avoid circular inclusion.
114033 2006-08-28  Jim Meyering  <jim@meyering.net>
114035         * doc/visibility.texi: Actually read and correct the grammar of the
114036         sentence affected by yesterday's change.
114038 2006-08-28  Eric Blake  <ebb9@byu.net>
114040         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
114041         needs wrapper.
114043 2006-08-28  Eric Blake  <ebb9@byu.net>
114045         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
114047 2006-08-28  Eric Blake  <ebb9@byu.net>
114049         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
114051 2006-08-28  Bruno Haible  <bruno@clisp.org>
114053         * modules/c-strstr: New file, from GNU gettext.
114054         * MODULES.html.sh (String handling): Add c-strstr.
114056 2006-08-28  Bruno Haible  <bruno@clisp.org>
114058         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
114059         macros.
114060         Reported by Eric Blake.
114062 2006-08-28  Bruno Haible  <bruno@clisp.org>
114064         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
114065         (VASNPRINTF): Return a string of length > INT_MAX without failing.
114066         * lib/vasprintf.c: Include errno.h, limits.h.
114067         (EOVERFLOW): New fallback definition.
114068         (vasprintf): Test here whether the string length is > INT_MAX.
114069         * lib/vsnprintf.c: Include errno.h, limits.h.
114070         (EOVERFLOW): New fallback definition.
114071         (vsnprintf): Fix bug when generated string was too long for the buffer.
114072         Test here whether the string length is > INT_MAX.
114074 2006-08-28  Bruno Haible  <bruno@clisp.org>
114076         * lib/inttypes_.h (SCNX*): Remove definitions.
114077         Reported by Eric Blake.
114079 2006-08-28  Bruno Haible  <bruno@clisp.org>
114081         * lib/c-strstr.h: New file, from GNU gettext.
114082         * lib/c-strstr.c: New file, from GNU gettext.
114084 2006-08-28  Bruno Haible  <bruno@clisp.org>
114086         * gnulib-tool: Reorder some statements.
114088 2006-08-28  Bruno Haible  <bruno@clisp.org>
114090         * gnulib-tool: New option --makefile-name.
114091         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
114092         $makefile_name.
114093         (func_import): Write $makefile_name to the cache file, and read it from
114094         there unless explicitly specified. Use $makefile_name as file name
114095         instead of Makefile.am. Adjust the recommendations accordingly.
114097 2006-08-28  Bruno Haible  <bruno@clisp.org>
114099         * gnulib-tool (func_verify_module): Check against misapplying patch.
114101 2006-08-28  Bruno Haible  <bruno@clisp.org>
114103         * gnulib-tool (func_relativize, func_relconcat): New functions.
114104         Give an error if --local-dir is given with --update.
114105         Remove trailing slashes from $local_gnulib_dir.
114106         (func_import): Store the relativized $local_gnulib_dir in
114107         gnulib-cache.m4, and read it from there if not specified explicitly.
114109 2006-08-28  Bruno Haible  <bruno@clisp.org>
114111         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
114112         is the current directory. Respect also $local_gnulib_dir.
114114 2006-08-28  Bruno Haible  <bruno@clisp.org>
114115             Simon Josefsson  <jas@extundo.com>
114117         BeOS portability.
114118         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
114120 2006-08-27  Jim Meyering  <jim@meyering.net>
114122         * doc/visibility.texi: Remove duplicate word: "pointer".
114124 2006-08-26  Bruno Haible  <bruno@clisp.org>
114126         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
114127         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
114128         (Makefile.am): Create inttypes.h from inttypes_.h.
114129         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
114131         * modules/imaxabs: New file.
114133         * modules/imaxdiv: New file.
114135 2006-08-26  Bruno Haible  <bruno@clisp.org>
114137         * m4/inttypes.m4: New file.
114138         * m4/_inttypes_h.m4: Remove file.
114139         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
114140         PRI_MACROS_BROKEN.
114141         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
114143         * m4/imaxabs.m4: New file.
114145         * m4/imaxdiv.m4: New file.
114147 2006-08-26  Bruno Haible  <bruno@clisp.org>
114149         * lib/inttypes_.h: New file.
114150         * lib/inttypes.h: Remove file.
114151         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
114153         * lib/imaxabs.c: New file.
114155         * lib/imaxdiv.c: New file.
114157 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114159         New config-h module, so that "make" output needn't be cluttered
114160         by -DHAVE_CONFIG_H.
114161         * MODULES.html.sh (Support for building libraries and executables):
114162         Add config-h.
114163         * modules/config-h: New file.
114164         * gnulib-tool (nl, sed_transform_lib_file): New vars.
114165         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
114166         the config-h module is used.
114168         New configmake module, so that "make" output needn't be cluttered
114169         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
114170         * MODULES.html.sh (Support for building libraries and executables):
114171         Add configmake.
114172         * modules/configmake: New file.
114174 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
114176         * m4/config-h.m4: New file.
114178 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114180         * config/srclist.txt: Add elisp-comp.
114182 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
114184         * MODULES.html.sh (Support for building libraries and executables):
114185         Add elisp-comp.
114186         * build-aux/elisp-comp: New file.
114187         * modules/elisp-comp: New file.
114189 2006-08-24  Bruno Haible  <bruno@clisp.org>
114191         * gnulib-tool (func_create_testdir): Use non-default values of
114192         sourcebase and m4base.
114194 2006-08-24  Bruno Haible  <bruno@clisp.org>
114196         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
114197         HTML structure.
114199 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
114201         * modules/openat (Depends-on): Add lchown.
114203 2006-08-23  Bruno Haible  <bruno@clisp.org>
114205         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
114206         of gl_LOCK_EARLY instead of gl_LOCK.
114208 2006-08-23  Bruno Haible  <bruno@clisp.org>
114210         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
114211         on OSF/1 to no.
114212         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
114214 2006-08-23  Bruno Haible  <bruno@clisp.org>
114216         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
114217         as unusable.
114219         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
114220         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
114221         (gl_LOCK): New macro.
114223 2006-08-22  Simon Josefsson  <jas@extundo.com>
114225         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
114226         to md5 module.
114228 2006-08-22  Simon Josefsson  <jas@extundo.com>
114230         * MODULES.html.sh: Add "Support for maintaining and release
114231         projects".
114233         * build-aux/gnupload: New file, from coreutils.
114235 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114237         Avoid the need for AC_LIBSOURCES in m4 macros.
114238         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
114239         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
114240         * modules/check-version (EXTRA_DIST): Add check-version.h.
114241         * modules/crc (EXTRA_DIST): Add crc.h.
114242         * modules/des (EXTRA_DIST): Add des.h.
114243         * modules/gc (EXTRA_DIST): Add gc.h.
114244         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
114245         * modules/getline (EXTRA_DIST): Add getline.h.
114246         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
114247         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
114248         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
114249         * modules/md2 (EXTRA_DIST): Add md2.h.
114250         * modules/md4 (EXTRA_DIST): Add md4.h.
114251         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
114252         * modules/read-file (EXTRA_DIST): Add read-file.h.
114253         * modules/readline (EXTRA_DIST): Add readline.h.
114254         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
114255         rijndael-api-fst.h.
114257 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114259         * m4/rijndael.m4 (gl_ARCFOUR):
114260         * m4/arctwo.m4 (gl_ARCTWO):
114261         * m4/check-version.m4 (gl_CHECK_VERSION):
114262         * m4/crc.m4 (gl_CRC):
114263         * m4/des.m4 (gl_DES):
114264         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
114265         * m4/gc.m4 (gl_GC):
114266         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
114267         * m4/getline.m4 (gl_FUNC_GETLINE):
114268         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
114269         * m4/hmac-md5.m4 (gl_HMAC_MD5):
114270         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
114271         * m4/md2.m4 (gl_MD2):
114272         * m4/md4.m4 (gl_MD4):
114273         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
114274         * m4/read-file.m4 (gl_FUNC_READ_FILE):
114275         * m4/readline.m4 (gl_FUNC_READLINE):
114276         * m4/rijndael.m4 (gl_RIJNDAEL):
114277         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114278         to get the necessary .h files and whatnot.
114280 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
114282         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
114283         gnulib rather than the other way around.
114284         * config/srclistvars.sh (COREUTILS): Remove.
114286 2006-08-22  Jim Meyering  <jim@meyering.net>
114288         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
114290         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
114292 2006-08-22  Eric Blake  <ebb9@byu.net>
114294         * modules/regexprops-generic: New file.
114295         * MODULES.html.sh (Support for building documentation): List it.
114297 2006-08-22  Eric Blake  <ebb9@byu.net>
114299         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
114300         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
114301         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
114302         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
114304 2006-08-22  Bruno Haible  <bruno@clisp.org>
114306         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
114307         and lib_LTLIBRARIES like the other lib_* variables.
114309 2006-08-22  Bruno Haible  <bruno@clisp.org>
114311         * build-aux/x-to-1.in: New file, from GNU gettext.
114313 2006-08-22  Bruno Haible  <bruno@clisp.org>
114315         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
114316         <utmpx.h> exists.
114318 2006-08-22  Bruno Haible  <bruno@clisp.org>
114320         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
114321         <utmpx.h> exists.
114323 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114325         BeOS portability.
114326         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
114327         exist.
114328         Problem reported by Bruno Haible.
114330 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114332         Avoid the need for AC_LIBSOURCES in m4 macros.
114333         * modules/acl (EXTRA_DIST): Add acl.h.
114334         * modules/argmatch (Files): Add m4/argmatch.m4.
114335         (configure.ac): Add gl_ARGMATCH.
114336         (EXTRA_DIST): Renamed from lib_SOURCES, for
114337         consistency with the other modules.  Remove argmatch.c.
114338         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
114339         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
114340         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
114341         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
114342         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
114343         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
114344         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
114345         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
114346         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
114347         * modules/closeout (EXTRA_DIST): Add closeout.h.
114348         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
114349         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
114350         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
114351         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
114352         dirname.h; remove basename.c and stripslash.c.
114353         * modules/exclude (EXTRA_DIST): Add exclude.h.
114354         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
114355         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
114356         * modules/file-type (EXTRA_DIST): Add file-type.h.
114357         * modules/filemode (EXTRA_DIST): Add filemode.h.
114358         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
114359         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114360         * modules/fpending (EXTRA_DIST): Add __fpending.h.
114361         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
114362         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
114363         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
114364         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
114365         * modules/getdate (EXTRA_DIST): Add getdate.c.
114366         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
114367         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
114368         * modules/getpass (EXTRA_DIST): Add getpass.h.
114369         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
114370         * modules/group-member (EXTRA_DIST): Add group-member.h.
114371         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
114372         * modules/hash (EXTRA_DIST): Add hash.h.
114373         * modules/human (EXTRA_DIST): Add human.h.
114374         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
114375         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
114376         * modules/lchown (EXTRA_DIST): Add lchown.h.
114377         * modules/long-options (EXTRA_DIST): Add long-options.h.
114378         * modules/lstat (EXTRA_DIST): Add lstat.h.
114379         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
114380         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
114381         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
114382         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
114383         * modules/memxor (EXTRA_DIST): Add memxor.h.
114384         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
114385         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
114386         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
114387         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
114388         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
114389         * modules/physmem (EXTRA_DIST): Add physmem.h.
114390         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
114391         * modules/posixver (EXTRA_DIST): Add posixver.h.
114392         * modules/quote (EXTRA_DIST): Add quote.h.
114393         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
114394         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
114395         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
114396         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
114397         regex_internal.h regexec.c.
114398         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
114399         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
114400         * modules/same (EXTRA_DIST): Add same.h.
114401         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
114402         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
114403         * modules/savedir (EXTRA_DIST): Add savedir.h.
114404         * modules/sha1 (EXTRA_DIST): Add sha1.h.
114405         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
114406         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
114407         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
114408         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
114409         * modules/strdup (EXTRA_DIST): Add strdup.h.
114410         * modules/strftime (EXTRA_DIST): Add strftime.h.
114411         * modules/strndup (EXTRA_DIST): Add strndup.h.
114412         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
114413         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
114414         * modules/time_r (EXTRA_DIST): Add time_r.h.
114415         * modules/timespec (EXTRA_DIST): Add timespec.h.
114416         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
114417         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
114418         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
114419         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
114420         * modules/userspec (EXTRA_DIST): Add userspec.h.
114421         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
114422         * modules/utimens (EXTRA_DIST): Add utimens.h.
114423         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
114424         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
114425         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
114426         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
114427         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
114428         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
114429         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
114430         * modules/yesno (EXTRA_DIST): Add yesno.h.
114432 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
114434         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
114436         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
114437         * m4/dev-ino.m4, same-inode.m4: Remove.
114439         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
114440         * m4/acl.m4 (AC_FUNC_ACL):
114441         * m4/backupfile.m4 (gl_BACKUPFILE):
114442         * m4/c-strtod.m4 (gl_C99_STRTOLD):
114443         * m4/canon-host.m4 (gl_CANON_HOST):
114444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
114445         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
114446         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
114447         * m4/cloexec.m4 (gl_CLOEXEC):
114448         * m4/close-stream.m4 (gl_CLOSE_STREAM):
114449         * m4/closeout.m4 (gl_CLOSEOUT):
114450         * m4/dirfd.m4 (gl_FUNC_DIRFD):
114451         * m4/dirname.m4 (gl_DIRNAME):
114452         * m4/exclude.m4 (gl_EXCLUDE):
114453         * m4/exitfail.m4 (gl_EXITFAIL):
114454         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
114455         * m4/file-type.m4 (gl_FILE_TYPE):
114456         * m4/filemode.m4 (gl_FILEMODE):
114457         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
114458         * m4/fpending.m4 (gl_FUNC_FPENDING):
114459         * m4/fprintftime.m4 (gl_FPRINTFTIME):
114460         * m4/fts.m4 (gl_FUNC_FTS):
114461         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
114462         * m4/getdate.m4 (gl_GETDATE):
114463         * m4/gethrxtime.m4 (gl_GETHRXTIME):
114464         * m4/getpagesize.m4 (gl_GETPAGESIZE):
114465         * m4/getpass.m4 (gl_FUNC_GETPASS):
114466         * m4/gettime.m4 (gl_GETTIME):
114467         * m4/getugroups.m4 (gl_GETUGROUPS):
114468         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
114469         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
114470         * m4/hard-locale.m4 (gl_HARD_LOCALE):
114471         * m4/hash.m4 (gl_HASH):
114472         * m4/idcache.m4 (gl_IDCACHE):
114473         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
114474         * m4/lchown.m4 (gl_FUNC_LCHOWN):
114475         * m4/long-options.m4 (gl_LONG_OPTIONS):
114476         * m4/lstat.m4 (gl_FUNC_LSTAT):
114477         * m4/md5.m4 (gl_MD5):
114478         * m4/memcasecmp.m4 (gl_MEMCASECMP):
114479         * m4/memcoll.m4 (gl_MEMCOLL):
114480         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
114481         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
114482         * m4/memxor.m4 (gl_MEMXOR):
114483         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
114484         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
114485         * m4/modechange.m4 (gl_MODECHANGE):
114486         * m4/mountlist.m4 (gl_MOUNTLIST):
114487         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
114488         * m4/openat.m4 (gl_FUNC_OPENAT):
114489         * m4/pathmax.m4 (gl_PATHMAX):
114490         * m4/physmem.m4 (gl_PHYSMEM):
114491         * m4/posixtm.m4 (gl_POSIXTM):
114492         * m4/posixver.m4 (gl_POSIXVER):
114493         * m4/quote.m4 (gl_QUOTE):
114494         * m4/quotearg.m4 (gl_QUOTEARG):
114495         * m4/readtokens.m4 (gl_READTOKENS):
114496         * m4/readutmp.m4 (gl_READUTMP):
114497         * m4/regex.m4 (gl_REGEX):
114498         * m4/safe-read.m4 (gl_SAFE_READ):
114499         * m4/safe-write.m4 (gl_SAFE_WRITE):
114500         * m4/same.m4 (gl_SAME):
114501         * m4/save-cwd.m4 (gl_SAVE_CWD):
114502         * m4/savedir.m4 (gl_SAVEDIR):
114503         * m4/settime.m4 (gl_SETTIME):
114504         * m4/sha1.m4 (gl_SHA1):
114505         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
114506         * m4/stat-macros.m4 (gl_STAT_MACROS):
114507         * m4/stat-time.m4 (gl_STAT_TIME):
114508         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
114509         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
114510         * m4/strdup.m4 (gl_FUNC_STRDUP):
114511         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
114512         * m4/strndup.m4 (gl_FUNC_STRNDUP):
114513         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
114514         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
114515         * m4/time_r.m4 (gl_TIME_R):
114516         * m4/timespec.m4 (gl_TIMESPEC):
114517         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
114518         * m4/unlinkdir.m4 (gl_UNLINKDIR):
114519         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
114520         * m4/userspec.m4 (gl_USERSPEC):
114521         * m4/utimecmp.m4 (gl_UTIMECMP):
114522         * m4/utimens.m4 (gl_UTIMENS):
114523         * m4/xalloc.m4 (gl_XALLOC):
114524         * m4/xgetcwd.m4 (gl_XGETCWD):
114525         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
114526         * m4/xreadlink.m4 (gl_XREADLINK):
114527         * m4/xstrtod.m4 (gl_XSTRTOD):
114528         * m4/yesno.m4 (gl_YESNO):
114529         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
114530         to get the necessary .h files and whatnot.
114532 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
114533             Bruno Haible  <bruno@clisp.org>
114535         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
114536         /bin/sh understanding of '!' conditional negation.
114538 2006-08-21  Jim Meyering  <jim@meyering.net>
114540         * modules/openat (Depends-on): Really alphabetize.
114542         * modules/acl (Depends-on): Add error and quote.
114544         * check-module (find_included_lib_files): Add at-func.c to the
114545         ok-to-include-more-than-once white list.
114547         * modules/openat (Depends-on): Add lstat.  Alphabetize.
114549 2006-08-21  Bruno Haible  <bruno@clisp.org>
114551         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
114552         Emit a pkgdata_DATA variable only if some snippets add contents to it.
114553         Reported by Martin Lambers <marlam@marlam.de>.
114555 2006-08-21  Bruno Haible  <bruno@clisp.org>
114557         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
114558         specify an installation location, don't emit a noinst_LIBRARIES or
114559         noinst_LTLIBRARIES assignment.
114561 2006-08-21  Bruno Haible  <bruno@clisp.org>
114563         BeOS portability.
114564         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
114565         BeOS has mbrtowc() but no <wctype.h>.
114567 2006-08-21  Bruno Haible  <bruno@clisp.org>
114569         BeOS portability.
114570         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
114571         exist.
114573 2006-08-21  Bruno Haible  <bruno@clisp.org>
114575         BeOS portability.
114576         * lib/mbchar.h: Include <wctype.h> only if it exists.
114578 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114580         Remove files that are no longer needed by their respective modules.
114581         * m4/obstack.m4: Remove.
114582         * m4/strerror_r.m4: Remove.
114583         * m4/uint32_t.m4: Remove.
114584         * m4/uintptr_t.m4: Remove.
114585         * m4/ullong_max.m4: Remove.
114586         * m4/xstrtoimax.m4: Remove.
114587         * m4/xstrtoumax.m4: Remove.
114589         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
114590         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
114591         dependencies now capture this.
114593         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
114594         Do not use AC_LIBSOURCES, since gnulib modules now do this.
114595         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
114596         * m4/human.m4 (gl_HUMAN): Likewise.
114597         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
114598         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
114600         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
114602         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
114603         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
114604         stdint.
114605         * m4/human.m4 (gl_HUMAN): Likewise.
114606         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
114607         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
114608         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114609         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114610         * m4/xstrtol (gl_XSTRTOL): Likewise.
114612         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
114613         AC_TYPE_LONG_LONG_INT.
114614         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
114615         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
114616         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
114617         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
114619         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
114620         on stdbool.
114622         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
114623         (gl_PREREQ_XSTRTOUL): Remove.
114625         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
114627         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
114628         mode.
114630 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114632         Add and change modules to make it easier for coreutils to use
114633         gnulib-tool.
114634         * modules/backupfile (Files): Remove m4/d-ino.m4.
114635         (Depends-on): Add d-ino.
114636         * modules/cycle-check (Depends-on): Add stdint.
114637         (lib_SOURCES): Add cycle-check.h.
114638         * modules/d-ino: New module.
114639         * modules/d-type: New module.
114640         * modules/error (Files): Remove m4/strerror_r.m4.
114641         * modules/filemode (Files): Add m4/st_dm_mode.m4.
114642         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
114643         m4/inttypes_h.m4, m4/uintmax_t.m4.
114644         (Depends-on): Add stdint.
114645         (lib_SOURCES): Add fsusage.h.
114646         * modules/getcwd (Files): Remove d-ino.m4.
114647         (Depends-on): Add d-ino.
114648         * modules/getndelim2 (Depends-on): Add stdint.
114649         * modules/glob (Files): Remove m4/d-type.m4.
114650         (Depends-on): Add d-type.
114651         * modules/host-os: New module.
114652         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
114653         m4/inttypes_h.m4, m4/uintmax_t.m4.
114654         * Depends-on: Add stdint.
114655         (lib_SOURCES): Add human.h.
114656         * modules/inttostr (Files): Remove m4/intmax_t.m4,
114657         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
114658         m4/uintmax_t.m4, m4/ulonglong.m4.
114659         (Depends-on): Add stdint.
114660         (EXTRA_DIST): Add inttostr.h.
114661         * modules/lchmod: New module.
114662         * modules/link-follow: New module.
114663         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
114664         (Depends-on): Add lchmod.
114665         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
114666         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
114667         (Depends-on): Add stdint.
114668         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
114669         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
114670         (Depends-on): Add stdint.
114671         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
114672         * modules/perl: New module.
114673         * modules/regex (Depends-on): Add stdint.
114674         * modules/rmdir-errno: New module.
114675         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114676         m4/intmax_t.m4.
114677         (Depends-on): Add stdint.
114678         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
114679         m4/uintmax_t.m4.
114680         (Depends-on): Add stdint.
114681         * modules/unlink-busy: New module.
114682         * modules/utimecmp (Depends-on): Add stdint.
114683         * modules/uptime: New module.
114684         * modules/winsz-ioctl: New module.
114685         * modules/winsz-termios: New module.
114686         * modules/xnanosleep (Depends-on): Add nanosleep.
114687         * modules/ullong_max: Remove.
114688         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
114689         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
114690         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
114691         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
114692         (Depends-on): Add inttypes.
114693         (lib_SOURCES): Add xstrtol.h.
114694         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
114695         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
114696         * MODULES.html.sh: Move 'assert' into the assert section.
114697         Move 'dummy' into the linking section.
114698         Remove ullong_max.
114699         Add section for compatibility checks for POSIX:2001 functions,
114700         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
114701         winsz-ioctl, and winsz-termios into it.
114702         Add lchmod.
114703         Add top-level Misc section and put host-os, perl, and uptime
114704         into it.
114706 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
114708         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
114709         now assume the stdint module.  Do not include inttypes.h.
114710         * lib/fsusage.h: Likewise.
114711         * lib/getndelim2.c: Likewise.
114712         * lib/human.h: Likewise.
114713         * lib/inttostr.h: Likewise.
114714         * lib/obstack.c: Likewise.
114715         * lib/regex_internal.h: Likewise.
114716         * lib/tempname.c: Likewise.
114717         * lib/utimecmp.c: Likewise.
114718         * lib/xstrtol.h: Likewise.
114720         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
114722         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
114723         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
114724         * lib/xtime.h: Likewise.
114726 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114728         * modules/openat (Files): Add lib/fchmodat.c.
114729         Fixes problem reported by Jay Youngman.
114731 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
114733         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
114734         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
114736 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
114737             Bruno Haible  <bruno@clisp.org>
114739         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
114740         and is a script that invokes bison. Tighten the code. Add comments.
114742 2006-08-18  Jim Meyering  <jim@meyering.net>
114744         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
114745         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
114746         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
114747         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
114749 2006-08-18  Bruno Haible  <bruno@clisp.org>
114751         * modules/bison-i18n: New file.
114752         * MODULES.html.sh (Internationalization functions): Add it.
114754 2006-08-18  Bruno Haible  <bruno@clisp.org>
114756         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
114757         sys/statvfs.h. When getmntinfo was found, check its declaration and
114758         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
114760 2006-08-18  Bruno Haible  <bruno@clisp.org>
114762         * m4/bison-i18n.m4: New file, from bison.
114764 2006-08-18  Bruno Haible  <bruno@clisp.org>
114766         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
114767         (ME_DUMMY): Treat "kernfs" as a dummy.
114768         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
114770 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114772         Update from coreutils.
114774         2006-08-15  Jim Meyering  <jim@meyering.net>
114776         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
114778         2006-01-17  Jim Meyering  <jim@meyering.net>
114780         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
114782         2006-01-11  Jim Meyering  <jim@meyering.net>
114784         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
114785         Check for the lchmod function.
114787 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
114789         Update from coreutils.
114791         * lib/__fpending.h: Add copyright notice.
114792         * lib/fprintftime.h: Likewise.
114793         * lib/savedir.c: Use (C) in copyright notice.
114794         * lib/savedir.h: Likewise.
114796         2006-08-15  Jim Meyering  <jim@meyering.net>
114798         * lib/at-func.c: New file, with the logic of all emulated at-functions.
114799         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
114800         in support of the EXPECTED_ERRNO macro.
114801         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
114802         definitions.  Instead, define the appropriate symbols and include
114803         "at-func.c".
114804         * lib/mkdirat.c (mkdirat): Likewise.
114805         * lib/fchmodat.c (fchmodat): Likewise.
114806         (ENOSYS): Remove definition.
114807         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
114808         it.  Don't include "unistd--.h" -- it wasn't ever used.
114810         2006-01-17  Jim Meyering  <jim@meyering.net>
114812         Rewrite fts.c not to change the current working directory,
114813         by using openat, fstatat, fdopendir, etc..
114815         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
114816         (HAVE_OPENAT_SUPPORT): Define.
114817         [_LIBC] (fchdir): Don't undef or define; no longer used.
114818         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
114819         Now, this `function' always succeeds, and consumes its file descriptor
114820         parameter -- so callers must not close such FDs.  Update callers.
114821         (diropen_fd, opendirat, cwd_advance_fd): New functions.
114822         (diropen): Add parameter, SP.  Adjust all callers.
114823         Implement using diropen_fd, rather than open.
114824         (fts_open): Initialize new member, fts_cwd_fd.
114825         Remove fts_rft-setting code.
114826         (fts_close): Close fts_cwd_fd, if necessary.
114827         (__opendir2): Define in terms of opendir or opendirat,
114828         depending on whether the FST_NOCHDIR flag is set.
114829         (fts_build): Since fts_safe_changedir consumes its FD, and since
114830         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
114831         and close the dup'd file descriptor upon failure.
114832         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
114833         (fts_safe_changedir): Tweak semantics to reflect that this function
114834         now calls cwd_advance_fd and hence consumes its FD argument.
114835         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
114836         [struct FTS] (fts_rft): Remove now-unused member.
114837         [struct FTS] (fts_cycle.state): Improve comment.
114839         * lib/openat.c (openat_needs_fchdir): New function.
114840         * lib/openat.h (openat_needs_fchdir): Declare it.
114842 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
114844         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
114845         Problem and fix reported by Pádraig Brady in
114846         <http://lists.gnu.org/r/bug-coreutils/2006-08/msg00099.html>.
114848 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114850         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
114852 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114854         * lib/memcoll.c (memcoll): Optimize for the common case where the
114855         arguments are bytewise equal.
114857 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
114859         * doc/regexprops-generic.texi: Add a copyright notice.
114861 2006-08-15  Bruno Haible  <bruno@clisp.org>
114863         * modules/tmpdir (License): Change to LGPL.
114865 2006-08-15  Bruno Haible  <bruno@clisp.org>
114867         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
114868         module.
114870 2006-08-14  Simon Josefsson  <jas@extundo.com>
114872         * config/srclist.txt: Add gnupload.
114874 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114876         Change copyright notice from LGPL 2 to GPL 2, since that's the
114877         standard form used in the gnulib repository.
114878         * tests/test-lock.c: Likewise.
114879         * tests/test-stdint.c: Likewise.
114880         * tests/test-tls.c: Likewise.
114882         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
114883         prelude-manager.  User shorter URLs for GNU projects, without '?'.
114884         Add copyright notice.
114886         * check-module: Add copyright notice.  Output a copyright
114887         notice if "--version" is specified.
114888         * modules/COPYING: New file.
114889         * tests/test-getaddrinfo.c: Add copyright notice.
114890         * tests/test-verify.c: Likewise.
114892 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114894         Change copyright notice from LGPL 2 to GPL 2, since that's the
114895         standard form used in the gnulib repository.
114896         * lib/lock.c: LGPL -> GPL.
114897         * lib/lock.h: Likewise.
114898         * lib/strnlen1.c: Likewise.
114899         * lib/strnlen1.h: Likewise.
114900         * lib/tls.c: Likewise.
114901         * lib/tls.h: Likewise.
114902         * lib/tmpdir.c: Likewise.
114904         * lib/TODO: Remove; this belongs only in coreutils.
114906 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114908         Add copyright notices to long-enough files that lack them, since
114909         otherwise the files aren't clearly free.  Use the same notice that
114910         getdate.texi already uses.
114911         * doc/alloca-opt.texi: Add copyright notice.
114912         * doc/alloca.texi: Likewise.
114913         * doc/ctime.texi: Likewise.
114914         * doc/functions.texi: Likewise.
114915         * doc/gcd.texi: Likewise.
114916         * doc/gnulib-tool.texi: Likewise.
114917         * doc/inet_ntoa.texi: Likewise.
114918         * doc/visibility.texi: Likewise.
114920         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
114921         * doc/quote.texi: Add copyright notice.
114923         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
114924         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
114925         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
114926         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
114927         is now obsolete, and give a pointer to the Sun list.
114928         Add copyright notice.
114930 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
114932         * config/srclistvars.sh: Add copyright notice.
114934 2006-08-14  Eric Blake  <ebb9@byu.net>
114936         Import the following change from libc:
114938         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
114940         Upstream bug 2997.
114941         * lib/misc/error.c: Add space between program name and message if file
114942         name is missing.
114944 2006-08-12  Karl Berry  <karl@gnu.org>
114946         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
114947         remove, these originate in gnulib now.
114949 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
114951         * doc/Makefile (standards.info standards.html standards.dvi):
114952         Also depend on make-stds.texi.
114954 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
114956         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
114957         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
114959         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
114960         in wchar_t.  Problem reported by Eric Blake.
114962         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
114963         LEN is smaller than SIZE.  Suggested by Bruno Haible.
114964         Also, help the compiler to keep LEN in a register.
114966 2006-08-11  Eric Blake  <ebb9@byu.net>
114968         * users.txt: Sort.  Add tar.
114970 2006-08-11  Bruno Haible  <bruno@clisp.org>
114972         * users.txt: New file.
114974 2006-08-11  Bruno Haible  <bruno@clisp.org>
114976         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
114977         before <wchar.h>. Needed for OSF/1 and BSD/OS.
114979 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114981         * modules/snprintf (Depends-on): Remove minmax.
114982         (Maintainer): Add self and Bruno.
114984 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
114986         * lib/.cppi-disable: Add snprintf.h, socket_.h.
114987         * lib/snprintf.c: Include <errno.h> and <limits.h>.
114988         (EOVERFLOW): Define if the system does not.
114989         Do not include "minmax.h"; it wasn't used.
114990         (snprintf): Don't assume size_t promotes to an unsigned type.
114991         Fix bug when generated string was too long for the buffer: the
114992         buffer's contents are supposed to be the initial prefix of the
114993         output.  Don't assume vasnprintf returns EOVERFLOW if the size
114994         exceeds INT_MAX; do the check ourselves.
114996         Import the following changes from libc:
114998         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
115000         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
115001         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
115002         set wc to the byte which couldn't be converted.
115003         (re_string_reconstruct): Don't clear valid_raw_len before calling
115004         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
115005         tip_context using re_string_context_at.
115007         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
115009         * lib/posix/regex.h: g++ still cannot handled [restrict].
115011         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
115013         * lib/posix/regex.h: Remove special handling for VMS.
115015 2006-08-10  Jim Meyering  <jim@meyering.net>
115017         * modules/same-inode: New module.
115018         * modules/dev-ino: New module.
115019         * modules/cycle-check: Depend on these modules, rather than simply
115020         including their .h files.
115021         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
115022         required via m4/cycle-check.m4.
115023         * modules/same: Depend on new same-inode module, rather than
115024         including same-inode.h.
115025         * modules/chdir-safer: New file.
115027         * modules/chown (Depends-on): Add stat-macros.
115029 2006-08-10  Jim Meyering  <jim@meyering.net>
115031         * m4/cycle-check.m4: New file.
115032         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
115033         * m4/dev-ino.m4, m4/same-inode.m4: New files.
115035 2006-08-10  Eric Blake  <ebb9@byu.net>
115037         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
115038         in from original proposal.
115040 2006-08-10  Eric Blake  <ebb9@byu.net>
115041         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
115043         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
115044         namespace.
115046 2006-08-10  Bruno Haible  <bruno@clisp.org>
115048         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
115049         as well.
115051 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115053         Sync from coreutils.
115055         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
115057         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
115058         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
115060 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115062         * modules/restrict: Remove; no longer needed now that we assume
115063         Autoconf 2.59 or later.
115064         * MODULES.html.sh: Remove 'restrict'.
115065         * modules/argp (Depends-on): Remove 'restrict'.
115066         * modules/base64 (Depends-on): Likewise.
115067         * modules/gc (Depends-on): Likewise.
115068         * modules/getaddrinfo (Depends-on): Likewise.
115069         * modules/glob (Depends-on): Likewise.
115070         * modules/inet_ntop (Depends-on): Likewise.
115071         * modules/inet_pton (Depends-on): Likewise.
115072         * modules/memxor (Depends-on): Likewise.
115073         * modules/regex (Depends-on): Likewise.
115074         * modules/strtok_r (Depends-on): Likewise.
115075         * modules/time_r (Depends-on): Likewise.
115077 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
115079         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
115080         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
115081         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
115082         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
115083         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
115084         * m4/memxor.m4 (gl_MEMXOR): Likewise.
115085         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
115086         gl_C_RESTRICT replaced by AC_C_RESTRICT.
115088         Merge from coreutils.
115089         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
115090         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
115091         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
115092         * m4/time_r.m4 (gl_TIME_R): Likewise.
115094 2006-08-09  Karl Berry  <karl@gnu.org>
115096         * config/srclist.txt: no more gettext-tools, per Bruno.
115098 2006-08-08  Eric Blake  <ebb9@byu.net>
115100         * modules/verror: New module.
115101         * MODULES.html.sh: Document it.
115103 2006-08-08  Eric Blake  <ebb9@byu.net>
115105         * lib/verror.h, lib/verror.c: New files.
115107 2006-08-08  Eric Blake  <ebb9@byu.net>
115109         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
115110         verror_at_line output complies with GNU Coding Standards even when
115111         file is NULL.
115113 2006-08-07  Bruno Haible  <bruno@clisp.org>
115115         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
115116         versions of AIX.
115117         Reported by Ralf Wildenhues.
115119 2006-08-07  Bruno Haible  <bruno@clisp.org>
115121         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
115122         in an AC_DEFUN. Needed so that the autoconf snippets can use
115123         AC_REQUIRE.
115125 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115127         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115128         Initialize pkgdata_DATA.
115129         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
115130         overriding it.
115132 2006-08-06  Eric Blake  <ebb9@byu.net>
115134         * lib/error.h: Fold in some upstream changes from glibc.
115135         * lib/error.c: Likewise.
115137 2006-08-04  Bruno Haible  <bruno@clisp.org>
115139         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115140         Make the mostlyclean-local rule depend on mostlyclean-generic.
115141         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
115143 2006-07-31  Bruno Haible  <bruno@clisp.org>
115145         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
115146         <stdlib.h>, <string.h>.
115148 2006-07-30  Bruno Haible  <bruno@clisp.org>
115150         * modules/readlink (License): Change to LGPL.
115152 2006-07-30  Bruno Haible  <bruno@clisp.org>
115154         * modules/javaversion (Makefile.am): Distribute javaversion.java and
115155         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
115156         set PKGDATADIR to point to it.
115158 2006-07-30  Bruno Haible  <bruno@clisp.org>
115160         * modules/csharpexec (configure.ac): Comment out macro invocation.
115161         * modules/javaexec (configure.ac): Likewise.
115162         * modules/javacomp-script (configure.ac): Likewise.
115164         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
115166 2006-07-30  Bruno Haible  <bruno@clisp.org>
115168         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
115169         linked-list.
115171 2006-07-30  Bruno Haible  <bruno@clisp.org>
115173         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
115175 2006-07-30  Bruno Haible  <bruno@clisp.org>
115177         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
115178         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
115179         get removed.
115181 2006-07-29  Bruno Haible  <bruno@clisp.org>
115183         Make it possible for gnulib-tool to work with locally modified or
115184         augmented gnulib repositories.
115185         * gnulib-tool (func_usage): Document --local-dir option.
115186         (local_gnulib_dir): New variable.
115187         Handle --local-dir option.
115188         (func_lookup_file): New function.
115189         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
115190         (func_get_description, func_get_filelist, func_get_description,
115191         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
115192         func_get_automake_snippet, func_get_include_directive,
115193         func_get_license, func_get_maintainer): Use func_lookup_file.
115194         (func_import, func_create_testdir): Use func_lookup_file.
115196 2006-07-29  Bruno Haible  <bruno@clisp.org>
115198         * modules/setenv (Depends-on): Add unistd.
115200 2006-07-29  Bruno Haible  <bruno@clisp.org>
115202         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
115204 2006-07-29  Bruno Haible  <bruno@clisp.org>
115206         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
115208 2006-07-29  Bruno Haible  <bruno@clisp.org>
115210         * gnulib-tool (import, update): If there is no Makefile.am, look at
115211         aclocal.m4, instead of bailing out.
115213 2006-07-29  Bruno Haible  <bruno@clisp.org>
115215         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
115216         Categorize the options by when they are useful.
115218 2006-07-29  Bruno Haible  <bruno@clisp.org>
115220         * gnulib-tool (func_usage): Document option --no-libtool.
115221         Handle option --no-libtool.
115222         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
115223         for changed semantics of $libtool variable.
115224         (func_import): Likewise. If libtool is not used, show this through
115225         an option --no-libtool.
115226         (func_create_testdir): Update.
115228 2006-07-29  Bruno Haible  <bruno@clisp.org>
115230         * gnulib-tool (func_import): Extend error message about missing
115231         --doc-base.
115233 2006-07-29  Bruno Haible  <bruno@clisp.org>
115235         * gnulib-tool (func_import): Don't create the $docbase directory if
115236         there is no file to store there.
115238 2006-07-29  Bruno Haible  <bruno@clisp.org>
115240         * gnulib-tool (autoconf_minversion): If a --dir option is given and
115241         relevant, look for configure.ac there, not in the current directory.
115242         Also use a simple search for AC_PREREQ, not "autoconf --trace".
115244 2006-07-29  Bruno Haible  <bruno@clisp.org>
115246         * gnulib-tool (SORT): New variable.
115247         (func_usage): Undocument --assume-autoconf option.
115248         Remove --assume-autoconf option handling.
115249         (autoconf_minversion): Determine from the contents of configure.ac.
115250         (func_import): Remove autoconf_minversion handling.
115251         Suggested by Eric Blake.
115253 2006-07-29  Bruno Haible  <bruno@clisp.org>
115255         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
115257 2006-07-29  Bruno Haible  <bruno@clisp.org>
115259         * config/srclist.txt (*setenv.[ch]): Remove rules.
115261 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115263         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
115265 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115267         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
115268         arpa/inet.h.
115270 2006-07-28  Simon Josefsson  <jas@extundo.com>
115272         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
115273         * modules/inet_pton (Depends-on): Likewise.
115275 2006-07-28  Simon Josefsson  <jas@extundo.com>
115277         * m4/netinet_in_h.m4: New file.
115279 2006-07-28  Simon Josefsson  <jas@extundo.com>
115281         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
115282         #include's.
115284 2006-07-28  Simon Josefsson  <jas@extundo.com>
115286         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
115287         #include's.
115289 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
115291         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
115292         setgid on directories only if they set these bits.
115293         * lib/modechange.h: Remove obsolete comment about masks.
115295 2006-07-28  Eric Blake  <ebb9@byu.net>
115297         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
115298         macro expansion.
115300 2006-07-28  Bruno Haible  <bruno@clisp.org>
115302         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
115304 2006-07-28  Bruno Haible  <bruno@clisp.org>
115306         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
115308 2006-07-28  Bruno Haible  <bruno@clisp.org>
115310         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
115311         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
115312         Define fallbacks.
115313         Avoids link error on FreeBSD 4.x.
115314         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
115316         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
115317         encoding.
115318         * lib/mbswidth.c (iswcntrl): Likewise.
115320 2006-07-27  Bruno Haible  <bruno@clisp.org>
115322         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
115323         test.
115325 2006-07-27  Bruno Haible  <bruno@clisp.org>
115327         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
115328         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
115329         defined.
115331 2006-07-26  Eric Blake  <ebb9@byu.net>
115333         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
115335 2006-07-26  Eric Blake  <ebb9@byu.net>
115337         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
115338         like mingw that lack mkstemp.
115339         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
115340         avoid compilation warning on mingw.
115342 2006-07-26  Bruno Haible  <bruno@clisp.org>
115344         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
115345         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
115346         INT_FAST*_MIN, INTPTR_MIN.
115348 2006-07-25  Bruno Haible  <bruno@clisp.org>
115350         * modules/version-etc (Depends-on): Add stdarg.
115352 2006-07-25  Bruno Haible  <bruno@clisp.org>
115354         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
115355         complex commands.
115357 2006-07-25  Bruno Haible  <bruno@clisp.org>
115359         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
115360         defined in <stdarg.h> or config.h.
115362 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115364         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
115365         (gl_STDIO_SAFER): Remove.
115367 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
115369         * MODULES.html.sh (File stream based Input/Output):
115370         Add fopen-safer, tmpfile-safer; remove stdio-safer.
115371         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
115372         * modules/fopen-safer, modules/tmpfile-safer: New files.
115373         * modules/stdio-safer: Remove.
115375 2006-07-24  Bruno Haible  <bruno@clisp.org>
115377         * modules/tmpdir: New file.
115378         * MODULES.html.sh (File system functions): Add it.
115380 2006-07-24  Bruno Haible  <bruno@clisp.org>
115382         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
115383         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
115385 2006-07-24  Bruno Haible  <bruno@clisp.org>
115387         * modules/clean-temp: New file.
115389 2006-07-24  Bruno Haible  <bruno@clisp.org>
115391         * m4/tmpdir.m4: New file, from GNU gettext.
115393 2006-07-24  Bruno Haible  <bruno@clisp.org>
115395         * lib/tmpdir.h: New file, from GNU gettext.
115396         * lib/tmpdir.c: New file, from GNU gettext.
115398 2006-07-24  Bruno Haible  <bruno@clisp.org>
115400         * lib/clean-temp.h: New file, from GNU gettext.
115401         * lib/clean-temp.c: New file, from GNU gettext.
115403 2006-07-23  Eric Blake  <ebb9@byu.net>
115405         * modules/stdio-safer (Files): Add tmpfile-safer.c.
115406         (Depends-on): Add binary-io.
115408 2006-07-23  Eric Blake  <ebb9@byu.net>
115410         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
115412 2006-07-23  Eric Blake  <ebb9@byu.net>
115414         * lib/tmpfile-safer.c: New file.
115415         * lib/stdio-safer.h (fopen_safer): Add prototype.
115416         * lib/stdio--.h (tmpfile): Make safer.
115418 2006-07-23  Bruno Haible  <bruno@clisp.org>
115420         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
115421         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
115422         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
115423         gl_linked_remove_at): Use it.
115425 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
115426         and Simon Josefsson <jas@extundo.com>
115428         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
115430         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
115432 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115434         * modules/close-stream: New file.
115435         * modules/closeout (Description): Make it clear that it exits
115436         with a diagnostic on error.
115437         (Depends-on): Add close-stream.  Remove fpending, stdbool.
115438         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
115440 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115442         * m4/close-stream.m4: New file.
115444 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
115446         * lib/close-stream.c, lib/close-stream.h: New files.
115448 2006-07-22  Bruno Haible  <bruno@clisp.org>
115450         Merge from GNU gettext 0.15.
115452         2006-05-01  Bruno Haible  <bruno@clisp.org>
115454                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
115456         2006-07-22  Bruno Haible  <bruno@clisp.org>
115458                 * modules/javaversion: New file.
115459                 * MODULES.html.sh (Java): Add javaversion.
115461         2006-03-12  Bruno Haible  <bruno@clisp.org>
115463                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
115465         2005-12-04  Bruno Haible  <bruno@clisp.org>
115467                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
115468                 (untested).
115470         2006-06-21  Bruno Haible  <bruno@clisp.org>
115472                 Avoid warnings from recent versions of mcs.
115473                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
115474                 -o, -L, -r any more. Use options documented since mcs-1.0
115475                 instead. Similarly for -g.
115477         2005-12-04  Bruno Haible  <bruno@clisp.org>
115479                 * build-aux/csharpcomp.sh.in: Suffix for resources is
115480                 .resources, not .resource.
115482         2005-07-09  Bruno Haible  <bruno@clisp.org>
115484                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
115485                 add a .dll suffix.
115486                 Reported by Mark Junker <mjscod@gmx.de>.
115488         2006-07-22  Bruno Haible  <bruno@clisp.org>
115490                 * modules/gettext: Upgrade to gettext-0.15.
115491                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
115492                 m4/visibility.m4.
115493                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
115495 2006-07-22  Bruno Haible  <bruno@clisp.org>
115497         Merge from GNU gettext 0.15.
115499         2006-03-25  Bruno Haible  <bruno@clisp.org>
115501                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
115503         2006-07-21  Bruno Haible  <bruno@clisp.org>
115505                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
115506                 "1.1".
115508         2006-05-09  Bruno Haible  <bruno@clisp.org>
115510                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
115511                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
115512                 for the conftestver execution.
115514         2006-05-01  Bruno Haible  <bruno@clisp.org>
115516                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
115517                 optional target-version argument. Verify that the compiler
115518                 groks source of the specified source-version, or add -source
115519                 option as necessary. Verify that the compiler produces
115520                 bytecode in the specified target-version, or add -target and
115521                 -source options as necessary. Make the result of the test
115522                 available as variable CONF_JAVAC. Also log error output in
115523                 config.log.
115525         2006-03-11  Bruno Haible  <bruno@clisp.org>
115527                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
115529         2006-05-09  Bruno Haible  <bruno@clisp.org>
115531                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
115532                 CLASSPATH_SEPARATOR to a semicolon.
115534         2006-03-12  Bruno Haible  <bruno@clisp.org>
115536                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
115537                 available as variable CONF_JAVA, for subsequent autoconf
115538                 tests. Also log error output in config.log.
115540         2006-07-19  Bruno Haible  <bruno@clisp.org>
115542                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
115543                 that getline works on glibc2 systems. Needed to avoid trouble
115544                 in relocatable.c.
115545                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
115547         2005-12-04  Bruno Haible  <bruno@clisp.org>
115549                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
115550                 launcher (untested).
115552         2005-12-04  Bruno Haible  <bruno@clisp.org>
115554                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
115556         2006-07-22  Bruno Haible  <bruno@clisp.org>
115558                 * gettext.m4: Update from GNU gettext-0.15.
115559                 * nls.m4: Likewise.
115560                 * po.m4: Likewise.
115561                 * inttypes-pri.m4: Likewise.
115562                 * inttypes-h.m4: Renamed from inttypes.m4.
115563                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
115565 2006-07-22  Bruno Haible  <bruno@clisp.org>
115567         Merge from GNU gettext 0.15.
115569         2005-07-05  Bruno Haible  <bruno@clisp.org>
115571                 * printf-args.c (printf_fetchargs): Work around broken
115572                 definition of wint_t on mingw.
115574         2005-02-12  Bruno Haible  <bruno@clisp.org>
115576                 * xallocsa.h: Add extern "C" for C++.
115578         2006-05-17  Bruno Haible  <bruno@clisp.org>
115580                 Cygwin portability.
115581                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
115583         2006-04-30  Bruno Haible  <bruno@clisp.org>
115585                 * progreloc.c: Include <mach-o/dyld.h> if available.
115586                 (find_executable): Use _NSGetExecutablePath when possible.
115588         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
115590                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
115591                 function.
115593         2005-12-29  Bruno Haible  <bruno@clisp.org>
115595                 * progreloc.c (set_program_name_and_installdir): Fix
115596                 compilation error.
115598         2005-12-04  Bruno Haible  <bruno@clisp.org>
115600                 Cygwin portability.
115601                 * progreloc.c: Include <windows.h> also on Cygwin.
115602                 (find_executable): Add support for Cygwin.
115603                 (set_program_name_and_installdir): Handle also platforms with
115604                 nonempty EXEEXT.
115606         2006-07-11  Bruno Haible  <bruno@clisp.org>
115608                 * javacomp.c: Fix a comment.
115609                 Reported by Jim Meyering.
115611         2006-04-30  Bruno Haible  <bruno@clisp.org>
115613                 * javacomp.h (compile_java_class): Add source_version,
115614                 target_version arguments.
115615                 * javacomp.c: Rewritten to choose only a compiler that
115616                 respects the specified source_version and target_version.
115618         2006-06-27  Bruno Haible  <bruno@clisp.org>
115620                 Assume correct S_ISDIR macro.
115621                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
115623         2006-07-22  Bruno Haible  <bruno@clisp.org>
115625                 * javaversion.h: New file, from GNU gettext.
115626                 * javaversion.c: New file, from GNU gettext.
115627                 * javaversion.java: New file, from GNU gettext.
115628                 * javaversion.class: New file, from GNU gettext.
115630         2006-05-17  Bruno Haible  <bruno@clisp.org>
115632                 Cygwin portability.
115633                 * javaexec.c (execute_java_class): Test for jview program
115634                 also on Cygwin.
115636         2006-04-09  Bruno Haible  <bruno@clisp.org>
115638                 * fatal-signal.c: Don't include string.h.
115639                 (at_fatal_signal): Use a copying loop instead of memcpy.
115641         2005-12-04  Bruno Haible  <bruno@clisp.org>
115643                 * csharpexec.c: Add support for 'clix' launcher (untested).
115644                 (execute_csharp_using_sscli): New function.
115645                 (execute_csharp_program): Call it.
115647         2006-06-21  Bruno Haible  <bruno@clisp.org>
115649                 Avoid warnings from recent versions of mcs.
115650                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
115651                 -o, -L, -r any more. Use options documented since mcs-1.0
115652                 instead. Similarly for -g.
115654         2005-07-09  Bruno Haible  <bruno@clisp.org>
115656                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
115657                 add a .dll suffix.
115658                 Reported by Mark Junker <mjscod@gmx.de>.
115660         2006-06-17  Bruno Haible  <bruno@clisp.org>
115662                 * config.charset: Update for NetBSD 3.0.
115664         2006-05-17  Bruno Haible  <bruno@clisp.org>
115666                 Cygwin portability.
115667                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
115669         2006-05-16  Bruno Haible  <bruno@clisp.org>
115671                 * localcharset.c [CYGWIN]: Include <windows.h>.
115672                 (get_charset_aliases): For Cygwin, return the same CPxxx
115673                 aliases list as under WIN32.
115674                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
115675                 the environment variables. Fall back to GetACP().
115677         2006-04-05  Bruno Haible  <bruno@clisp.org>
115679                 * config.charset: Update Juan Manuel Guerrero's address.
115681         2005-02-12  Bruno Haible  <bruno@clisp.org>
115683                 * allocsa.h: Add extern "C" for C++.
115685         2005-02-10  Bruno Haible  <bruno@clisp.org>
115687                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
115688                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
115690         2006-07-22  Bruno Haible  <bruno@clisp.org>
115692                 * gettext.h: Update to GNU gettext-0.15.
115694 2006-07-22  Bruno Haible  <bruno@clisp.org>
115696         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
115697         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
115698         lib-prefix.m4, longdouble.m4, ssize_t.m4.
115700 2006-07-21  Eric Blake  <ebb9@byu.net>
115702         * modules/stdlib-safer: New file.
115703         * MODULES.html.sh (File stream based Input/Output): Add
115704         stdlib-safer.
115706 2006-07-21  Eric Blake  <ebb9@byu.net>
115708         * lib/stdlib-safer.h: New file from coreutils, required by
115709         stdlib--.h.
115711 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
115713         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
115715 2006-07-20  Bruno Haible  <bruno@clisp.org>
115717         * gnulib-tool: Recognize new option --assume-autoconf.
115718         (autoconf_minversion): New variable.
115719         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
115721 2006-07-20  Bruno Haible  <bruno@clisp.org>
115723         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
115725 2006-07-19  Derek R. Price  <derek@ximbiot.com>
115727         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
115728         Reindent and repaginate.
115730 2006-07-19  Derek Price  <derek@ximbiot.com>
115732         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
115733         Correct grammar.
115735 2006-07-17  Bruno Haible  <bruno@clisp.org>
115737         * modules/list: New file.
115738         * modules/array-list: New file.
115739         * modules/carray-list, modules/carray-list-tests: New files.
115740         * modules/linked-list, modules/linked-list-tests: New files.
115741         * modules/avltree-list, modules/avltree-list-tests: New files.
115742         * modules/rbtree-list, modules/rbtree-list-tests: New files.
115743         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
115744         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
115745         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
115746         * modules/oset: New file.
115747         * modules/array-oset: New file.
115748         * modules/avltree-oset, modules/avltree-oset-tests: New files.
115749         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
115750         * tests/test-carray_list.c: New file.
115751         * tests/test-linked_list.c: New file.
115752         * tests/test-avltree_list.c: New file.
115753         * tests/test-rbtree_list.c: New file.
115754         * tests/test-linkedhash_list.c: New file.
115755         * tests/test-avltreehash_list.c: New file.
115756         * tests/test-rbtreehash_list.c: New file.
115757         * tests/test-avltree_oset.c: New file.
115758         * tests/test-rbtree_oset.c: New file.
115759         * MODULES.html.sh (Container data structures): New section.
115761 2006-07-17  Bruno Haible  <bruno@clisp.org>
115763         * m4/gl_list.m4: New file.
115765 2006-07-17  Bruno Haible  <bruno@clisp.org>
115767         * lib/gl_list.h: New file.
115768         * lib/gl_list.c: New file.
115769         * lib/gl_array_list.h: New file.
115770         * lib/gl_array_list.c: New file.
115771         * lib/gl_carray_list.h: New file.
115772         * lib/gl_carray_list.c: New file.
115773         * lib/gl_linked_list.h: New file.
115774         * lib/gl_linked_list.c: New file.
115775         * lib/gl_anylinked_list1.h: New file.
115776         * lib/gl_anylinked_list2.h: New file.
115777         * lib/gl_avltree_list.h: New file.
115778         * lib/gl_avltree_list.c: New file.
115779         * lib/gl_anyavltree_list1.h: New file.
115780         * lib/gl_anyavltree_list2.h: New file.
115781         * lib/gl_rbtree_list.h: New file.
115782         * lib/gl_rbtree_list.c: New file.
115783         * lib/gl_anyrbtree_list1.h: New file.
115784         * lib/gl_anyrbtree_list2.h: New file.
115785         * lib/gl_anytree_list1.h: New file.
115786         * lib/gl_anytree_list2.h: New file.
115787         * lib/gl_linkedhash_list.h: New file.
115788         * lib/gl_linkedhash_list.c: New file.
115789         * lib/gl_anyhash_list1.h: New file.
115790         * lib/gl_anyhash_list2.h: New file.
115791         * lib/gl_avltreehash_list.h: New file.
115792         * lib/gl_avltreehash_list.c: New file.
115793         * lib/gl_rbtreehash_list.h: New file.
115794         * lib/gl_rbtreehash_list.c: New file.
115795         * lib/gl_anytreehash_list1.h: New file.
115796         * lib/gl_anytreehash_list2.h: New file.
115798         * lib/gl_oset.h: New file.
115799         * lib/gl_oset.c: New file.
115800         * lib/gl_array_oset.h: New file.
115801         * lib/gl_array_oset.c: New file.
115802         * lib/gl_avltree_oset.h: New file.
115803         * lib/gl_avltree_oset.c: New file.
115804         * lib/gl_rbtree_oset.h: New file.
115805         * lib/gl_rbtree_oset.c: New file.
115806         * lib/gl_anytree_oset.h: New file.
115808 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115810         * m4/mkancesdirs.m4: New file.
115811         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
115812         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
115813         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
115814         it.
115816 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115818         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
115819         * lib/mkancesdirs.h: New files.
115820         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
115821         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
115822         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
115823         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
115824         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
115825         callers changed.  Revamp internals significantly, by not
115826         attempting to create directories that are temporarily more
115827         permissive than the final results.  Do not attempt to use
115828         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
115829         This removes some race conditions, fixes some bugs, and simplifies
115830         things.  Use new dirchownmod function to do owner and mode changes.
115831         * lib/mkdir-p.h: Likewise.
115832         * lib/modechange.c (octal_to_mode): New function.
115833         (struct mode_change): New member mentioned.
115834         (make_node_op_equals): New arg mentioned.  All callers changed.
115835         (mode_compile): Keep track of which mode bits the user has explicitly
115836         mentioned.
115837         (mode_adjust): New arg DIR, so that we implement the X op correctly.
115838         New arg PMODE_BITS, to keep track of which mode bits the user
115839         mentioned; it treats S_ISUID and S_ISGID speciall.
115840         All callers changed.
115841         * lib/modechange.h: Likewise.
115843 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
115845         * MODULES.html.sh: Add mkancestors.
115846         * modules/mkancesdirs: New module.
115847         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
115848         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
115849         The chdir-safer and afs files are now orphans; I'll remove them
115850         unless someone speaks up.
115851         Add lib/dirchownmod.c, lib/dirchownmod.h.
115852         (Depends-on): Remove alloca, chown, save-cwd, dirname.
115853         Add lchown, mkancesdirs.
115854         (Maintainer): Add self.
115856 2006-07-15  Karl Berry  <karl@gnu.org>
115858         * gnulib-tool: help message wording/arrangement.
115860 2006-07-14  Simon Josefsson  <jas@extundo.com>
115862         * doc/gnulib.texi (Libtool and Windows): New section.
115864 2006-07-12  Simon Josefsson  <jas@extundo.com>
115866         * modules/gendocs (License): Fix license, approved by Karl.
115868 2006-07-12  Eric Blake  <ebb9@byu.net>
115870         * MODULES.html.sh: Add gendocs.
115872 2006-07-11  Eric Blake  <ebb9@byu.net>
115874         * modules/fdl: New module, to install doc/fdl.texi.
115875         * MODULES.html.sh: Add new section for documentation modules.
115876         * gnulib-tool: Avoid space-tab.
115877         (--doc-base): New option, to manage files from doc.
115879 2006-07-11  Eric Blake  <ebb9@byu.net>
115881         * m4/absolute-header.m4: Fix comments to match recent change.
115883 2006-07-11  Eric Blake  <ebb9@byu.net>
115885         * gnulib-tool: List --doc-base before --tests-base.
115887 2006-07-11  Derek R. Price  <derek@ximbiot.com>
115889         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
115891 2006-07-11  Bruno Haible  <bruno@clisp.org>
115893         * README: Mention where to put documentation.
115895 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115897         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
115899 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115901         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
115902         to stdint.m4.
115904 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
115906         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
115907         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
115908         "no/such/file/stdint.h" when there is no such file, so that
115909         the resulting C code can be parsed by dodgy compilers.
115910         Problems reported by Bob Proulx.
115912 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115914         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
115915         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115916         macros into the GNU _D_EXACT_NAMLEN.
115917         * lib/savedir.c:  Likewise.
115918         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
115920 2006-07-10  Derek R. Price  <derek@ximbiot.com>
115921         and Paul Eggert  <eggert@cs.ucla.edu>
115923         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
115924         * m4/savedir.m4:
115925         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
115926         macros into the GNU _D_EXACT_NAMLEN.
115928 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115930         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
115931         around the absolute name, to work around a problem with the HP-UX
115932         11.23 native C compiler, reported by Bob Proulx.
115934 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115936         * doc/maintain.texi, make-stds.texi: Sync from
115937         <http://savannah.gnu.org/projects/gnustandards>.
115939 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
115941         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
115943 2006-07-09  Jim Meyering  <jim@meyering.net>
115945         * m4/glob.m4: Remove a doubled word in a comment.
115947 2006-07-09  Jim Meyering  <jim@meyering.net>
115949         * lib/argp-pv.c: Remove a doubled word in a comment.
115950         * lib/check-version.c (check_version): Likewise.
115951         * lib/javacomp.c (compile_java_class): Likewise.
115953 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
115955         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
115956         for the benefit of people using Autoconf 2.60.  If you want to
115957         support older Autoconf versions you can copy m4/onceonly_2_57.m4
115958         (or m4/onceonly.m4, if pre-2.57) manually.
115960 2006-07-08  Jim Meyering  <jim@meyering.net>
115962         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
115963         comment.
115964         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
115965         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
115966         comment.
115968 2006-07-08  Jim Meyering  <jim@meyering.net>
115970         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
115972 2006-07-07  Simon Josefsson  <jas@extundo.com>
115974         * tests/test-crc.c: Change expected crc value, the test vector
115975         were probably computed using the old broken crc.c?
115977 2006-07-06  Simon Josefsson  <jas@extundo.com>
115979         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
115980         now the canonical place for the M4 file).
115982         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
115983         from the sys_socket dependency now.
115985         * modules/inet_pton (Files): Ditto.
115987         * modules/inet_ntop (Files): Ditto.
115989 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
115991         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
115992         not gl_PREREQ_GETUSERSHELL.
115994 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
115996         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
115997         with only one argument, for Autoconf 2.60.
115998         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
115999         expand to nothing, so add a shell command to avoid syntax error.
116000         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
116002 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116004         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
116006 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116008         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
116009         no longer needed.  Check for isblank decl.
116010         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
116011         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
116012         of existence.
116014 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116016         * lib/getloadavg.c: Use __VMS, not VMS.
116017         * lib/getopt.c: Likewise.
116018         * lib/getpagesize.h: Likewise.
116019         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
116020         and probably does not work.
116022 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
116024         * lib/.cppi-disable: Add wcwidth.
116025         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
116026         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
116027         (ISGRAPH): Remove.  All uses changed to isgraph.
116028         (FOLD) [!defined _LIBC]: Remove special case.
116029         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
116030         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
116031         HAVE_ISBLANK.
116032         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
116033         case.
116035 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116037         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
116038         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
116039         brackets.  Other minor changes to suppress some compiler
116040         warnings.
116042 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116043         and Paul Eggert  <eggert@cs.ucla.edu>
116045         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
116046         of invoking obsolescent AC_HEADER_DIRENT macro.
116047         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
116048         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
116049         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
116050         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
116051         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
116052         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
116053         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
116054         * m4/readdir.m4: Remove; no longer needed.
116056 2006-07-06  Derek R. Price  <derek@ximbiot.com>
116057         and Paul Eggert  <eggert@cs.ucla.edu>
116059         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
116060         Don't worry about this obsolete case any more.
116061         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
116062         directories.
116063         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
116064         worry about this obsolete case any more.
116065         * lib/fts.c: Likewise.
116066         * lib/getcwd.c: Likewise.
116067         * lib/glob.h: Likewise.
116068         * lib/savedir.c: Likewise.
116070 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116072         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
116073         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
116074         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
116075         needed.
116076         All uses removed.
116077         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116078         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116079         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
116080         needed.
116081         * m4/getdate.m4 (gl_GETDATE): Likewise.
116082         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116083         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116084         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116085         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116086         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
116087         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116088         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
116089         needed.
116091 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
116093         * lib/memcasecmp.c: Include <limits.h>.
116094         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
116095         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
116096         Don't assume isdigit succeeds only on '0' through '9'.
116098 2006-07-05  Eric Blake  <ebb9@byu.net>
116100         * modules/getaddrinfo (Depends-on): Add snprintf.
116102 2006-07-05  Eric Blake  <ebb9@byu.net>
116104         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
116105         to avoid 'header present but could not be compiled' on cygwin.
116107 2006-07-05  Eric Blake  <ebb9@byu.net>
116109         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
116110         missing from netdb.h.
116111         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
116113 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116115         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
116116         no longer needed.
116117         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
116118         * m4/getdate.m4 (gl_GETDATE): Likewise.
116119         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
116120         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
116121         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
116122         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
116123         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
116125 2006-07-05  Derek R. Price  <derek@ximbiot.com>
116127         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
116128         All uses of is_space replaced by isspace.
116129         * lib/exit.h: Don't talk about STDC_HEADERS.
116130         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
116131         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
116132         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
116133         replaced by isprint etc.
116134         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
116135         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116136         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
116137         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
116138         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
116139         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
116141 2006-07-05  Bruno Haible  <bruno@clisp.org>
116143         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
116144         the function exists, before testing against AIX.
116145         Reported by Martin Lambers <marlam@marlam.de>.
116147 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116149         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
116150         From Mark D. Baushke.
116152 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
116154         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
116155         to the absolute name, not just one, to bypass Sun C 5.8's
116156         "warning: #include of /usr/include/... may be non-portable".
116158 2006-07-04  Eric Blake  <ebb9@byu.net>
116160         * modules/dirname-tests: New test module.
116161         * tests/test-dirname.c: New file, replacing dirname.c
116162         TEST_DIRNAME section that was recently deleted.
116164 2006-07-04  Bruno Haible  <bruno@clisp.org>
116166         Assume ANSI C header files and <ctype.h> functions.
116167         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
116168         (mbsnwidth): Use isprint, iscntrl instead.
116170 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116172         Merge from coreutils.
116173         * MODULES.html.sh: Add xstrtold.
116174         * modules/xstrtold: New file.
116175         * modules/cycle-check (Files): Add lib/same-inode.h.
116176         * modules/dirname (Files): Add m4/double-slash-root.m4.
116177         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
116178         * modules/mkdir-p (Files): Add lib/same-inode.h.
116179         * modules/same (Files): Add lib/same-inode.h.
116181 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116183         * m4/absolute-header.m4: Renamed from full-header-path.m4.
116184         This is to keep the terminology clean; POSIX talks about
116185         "absolute pathnames", not "full pathnames", but the GNU
116186         Coding Standards say to use "path" for something else;
116187         so use "absolute" to keep both sides happy.
116188         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
116189         Set gl_absolute_header, not gl_full_header_path.
116190         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
116191         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
116192         All uses changed.
116194         Merge from coreutils.
116196         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116198         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
116199         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
116200         want to require the building of c-strtod.o.
116201         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
116202         needs -lm directly.
116203         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
116205         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116207         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
116208         --as-needed option if available.  Problem reported by Albert Chin in
116209         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00114.html>.
116210         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
116211         cc merely issues a bunch of annoying warnings for --as-needed
116212         (this problem was reported by Bob Proulx).  Also, try linking with
116213         -lm to detect a bug in binutils 2.16 (this problem was reported
116214         by Ralf Wildenhues).
116216         2006-06-18  Jim Meyering  <jim@meyering.net>
116218         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
116219         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
116220         macro.
116221         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
116222         also check for glibc-2.4's abort-inducing bug.
116224         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
116225         Low-probability clean-up should be to use rmdir to get rid of
116226         the just-created directory, not unlink.
116228         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
116229         configure fail, and request a bug report to inform us about it.
116230         Add a comment that, barring reports to the contrary, in 2007 we'll
116231         assume ftruncate is universally available.
116233         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116235         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
116237         2006-03-12  Jim Meyering  <jim@meyering.net>
116239         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
116240         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
116241         * m4/same.m4 (gl_SAME): Likewise.
116242         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
116244         2006-03-11  Eric Blake  <ebb9@byu.net>
116246         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
116247         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
116248         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
116249         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
116251 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
116253         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
116254         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
116255         reported by Mark D. Baushke, one in
116256         <http://lists.gnu.org/r/bug-gnulib/2006-07/msg00015.html>.
116258         Merge from coreutils.
116260         * lib/.cppi-disable: Add stdint_.h.
116261         * lib/.cvsignore: Add stdint.h.
116263         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
116265         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
116266         both double and long double versions.
116267         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
116268         * lib/xstrtold.c: New file.
116269         * lib/xstrtod.h (xstrtold): New decl.
116271         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
116273         * lib/filemode.c (setst): Remove.
116274         (strmode): Rewrite to avoid setst.  This makes the code shorter,
116275         (arguably) clearer, and the generated code is a bit smaller on my
116276         Debian GNU/Linux stable x86 host.
116278         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
116280         * lib/filemode.c: Include "filemode.h" first, to test the interface.
116281         Assume that filemode.h includes sys/types.h and sys/stat.h.
116282         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
116283         (ftypelet): Reorder to put common cases first, for efficiency.
116284         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
116285         to do 'M'.
116286         (strmode): Renamed from mode_string, and now stores 12 bytes instead
116287         of 10, for compatibility with FreeBSD.  All callers changed.
116288         (filemodestring): Now stores 12 bytes instead of 10, and sets file
116289         types that can't be deduced solely from st_mode.  First arg is now a
116290         const pointer.
116291         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
116292         (strmode): Renamed from mode_string.
116293         (filemodestring): New decl.
116294         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
116295         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
116296         needed.
116297         (S_ISPORT, S_ISWHT): New macros, if not already defined.
116299         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
116301         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
116302         fsusage.h now does that.  Include fsusage.h first, to test interface.
116303         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
116304         at most one method (the old code could have generated decls that
116305         didn't conform to C89, not that this was ever exercised).
116306         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
116308         2006-03-19  Jim Meyering  <jim@meyering.net>
116310         Work even in a chroot where d_ino values for entries in "/"
116311         don't match the stat.st_ino values for the same names.
116312         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
116313         number, iterate through all entries again, using lstat instead.
116314         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
116315         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
116317         * lib/getcwd.c (__getcwd): Clarify a comment.
116318         Use memcpy in place of a call to strcpy.
116320         2006-03-12  Jim Meyering  <jim@meyering.net>
116322         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
116323         matches that of the current directory (which we're about to chdir ".."
116324         out of), then save the dev-ino of the parent, instead.
116326         * lib/same-inode.h (SAME_INODE): New file/macro.
116327         * lib/chdir-safer.c (SAME_INODE): Remove definition.
116328         Include "same-inode.h", instead.
116329         * lib/same.c: Likewise.
116330         * lib/cycle-check.h: Include "same-inode.h".
116331         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
116332         * lib/cycle-check.c (SAME_INODE): Remove definition.
116333         * lib/root-dev-ino.h: Include "same-inode.h".
116335         2006-03-11  Eric Blake  <ebb9@byu.net>
116337         * lib/same.c (same_name): s/base_name/last_component/
116338         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
116339         * lib/filenamecat.c (file_name_concat): Likewise.
116341         2006-03-11  Eric Blake  <ebb9@byu.net>,
116342                     Paul Eggert  <eggert@cs.ucla.edu>
116344         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
116345         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
116346         drive prefix.
116347         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
116348         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
116349         (last_component): New method.
116350         * lib/dirname.c (dir_len): Determine when drive letters need a
116351         subsequent slash.  Preserve // when it is special.
116352         (dir_name): Don't append dot when drive letter is absolute.
116353         [TEST_DIRNAME]: Move into a full-blown gnulib test.
116354         * lib/basename.c (base_name): New semantics - malloc the result.
116355         Preserve // when it is special.  Preserve relative files that look
116356         like drive letters.
116357         (base_len): Preserve // when it is special.
116358         (last_component): New method, similar to old base_name semantics.
116359         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
116360         base_name.  Strip redundant slashes from ///.
116362 2006-07-03  Jim Meyering  <jim@meyering.net>
116364         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
116365         macro is used before the first cycle_check call.
116367 2006-07-03  Eric Blake  <ebb9@byu.net>
116369         * modules/dirname (Depends-on): Add xstrndup.
116371 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116373         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
116374         test cases, so that config.log is a bit easier to follow.
116376 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
116378         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
116379         both are 64 bits, since this seems to be the tradition, and this
116380         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
116381         we ever run into a host that prefers long long to long in this
116382         case, we'll need another configure-time test.  Problem reported by
116383         Jim Meyering.
116385 2006-07-02  Eric Blake  <ebb9@byu.net>
116387         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
116389 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116391         * modules/inttypes (Depends-on): No longer depends on stdint.
116392         * modules/stdint (Description): Say more about assumptions.
116393         Say that the fast types might differ.  Say macros are used.
116394         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
116395         (Makefile.am): Revise list of substituted symbols to match
116396         new stdint.m4.
116397         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
116398         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
116399         * tests/test-stdint.c (verify_same_types)
116400         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
116401         the code conforms to C99/C89.
116402         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
116403         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
116405 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116407         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
116408         but fix a bug, by requiring at least 64 bits.
116409         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
116410         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
116411         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
116412         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
116414         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
116415         changes.  Make 2.59 a prerequisite.  Check and substitute for
116416         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
116417         inttypes.h.  Do not use special include files; just use the
116418         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
116419         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
116420         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
116421         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
116422         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
116423         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
116424         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
116425         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
116426         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
116427         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
116428         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
116429         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
116430         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
116431         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
116432         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
116433         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
116434         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
116435         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
116436         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
116437         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
116438         WINT_MAX.  Check for C99 conformance more strictly, by detecting
116439         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
116440         not check for things that C99 does not require, e.g., int8_t.  If
116441         a test isn't needed unless <stdint.h> isn't working, and is
116442         unlikely to be needed for any other reason, then don't do it
116443         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
116444         size_t, since we assume C89 freestanding at least.  Do not check
116445         for sig_atomic_t, wchar_t, or wint_t, since the code now does
116446         the right thing even if the types are not defined.  Instead use:
116447         (gl_STDINT_TYPE_PROPERTIES): New macro.
116448         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
116449         testing whether <sys/types.h> clashes, as Autoconf does this for
116450         us now.  All uses removed.
116451         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
116452         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
116453         (gl_CHECK_TYPE_SAME):
116454         Remove; no longer needed.
116455         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
116456         exists, since we'll return 0 anyway in that case.
116457         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
116459 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
116461         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
116462         possible collision with system files.
116463         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
116464         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
116465         WCHAR_MIN and WCHAR_MAX in this case.
116466         (<stddef.h>): Do not include; no longer needed.
116467         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
116468         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
116469         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
116470         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
116471         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
116472         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
116473         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
116474         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
116475         !defined(__c99))]: Include in this case too, since it's harmless
116476         now.
116477         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
116478         dangerous to do so.
116479         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
116480         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
116481         (_STDINT_MIN, _STDINT_MAX): New macros.
116482         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
116483         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
116484         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
116485         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
116486         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
116487         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
116488         macros, not typedefs; this simplifies things quite a bit.
116489         Use long int for all types narrower than int64_t.
116490         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
116491         Define in terms of long long int or int64_t or long int,
116492         not int64_t or int32_t.  This saves some compile-time testing.
116493         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
116494         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
116495         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
116496         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
116497         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
116498         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
116499         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
116500         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
116501         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
116502         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
116503         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116504         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116505         undef any previous version and define our own version, for
116506         simplicity and consistency with the new macros for types.
116507         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
116508         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
116509         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
116510         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
116511         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
116512         @WINT_T_SUFFIX@ to keep things simple here.
116513         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
116514         Simplify by assuming typical 8/16/32/64 host, since we're
116515         already doing that elsewhere anyway.
116516         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
116517         and assume long long int is 64 bits if available.  This
116518         speeds up 'configure'.
116520 2006-07-01  Eric Blake  <ebb9@byu.net>
116522         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
116523         Reported by Andreas Buening.
116525 2006-07-01  Eric Blake  <ebb9@byu.net>
116527         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
116529 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
116531         * lib/getaddrinfo.c: fixed typo
116533 2006-06-29  Jim Meyering  <jim@meyering.net>
116535         * modules/strftime (Maintainer): Add my name, since with the
116536         FPRINTFTIME changes strftime.c has forked from glibc.
116538 2006-06-29  Eric Blake  <ebb9@byu.net>
116540         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
116542 2006-06-29  Eric Blake  <ebb9@byu.net>
116544         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
116546 2006-06-29  Eric Blake  <ebb9@byu.net>
116548         * lib/stat_.h: New file.
116550 2006-06-29  Eric Blake  <ebb9@byu.net>
116552         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
116553         unused static function.
116555 2006-06-29  Eric Blake  <ebb9@byu.net>
116557         * doc/functions.texi (Function Portability): Document missing lstat
116558         on mingw.
116560 2006-06-29  Eric Blake  <ebb9@byu.net>
116562         * MODULES.html.sh: Add sys_stat.
116563         * modules/sys_stat: New module.
116564         * modules/mkstemp (Depends-on): Add sys_stat.
116566 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116568         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
116570 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116572         * m4/c-bs-a.m4: Removed.
116574 2006-06-29  Derek R. Price  <derek@ximbiot.com>
116576         * lib/strftime.c: Assume strftime() exists.
116578 2006-06-29  Derek Price  <derek@ximbiot.com>
116580         * modules/c-bs-a: Removed - \a is C89.
116581         * MODULES.html.sh: Remove c-bs-a.
116583 2006-06-29  Bruno Haible  <bruno@clisp.org>
116585         * modules/wcwidth (License): Change to LGPL.
116587 2006-06-28  Simon Josefsson  <jas@extundo.com>
116589         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
116590         on _WIN32.
116592         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
116593         getnameinfo.
116595 2006-06-28  Simon Josefsson  <jas@extundo.com>
116597         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
116599 2006-06-28  Simon Josefsson  <jas@extundo.com>
116601         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
116602         functions there.  It will succeed on Windows XP, but on Windows
116603         2000 and (presumably) earlier, it will fail, and use the internal
116604         re-implementation.
116605         (use_win32_p): New function.
116606         (getaddrinfo): Use strtoul on servname, to support numeric ports.
116607         Support AI_NUMERICSERV to disable getservbyname.
116608         (getnameinfo): New function, only supports
116609         NI_NUMERICHOST|NI_NUMERICSERV for now.
116611         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
116612         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
116613         getnameinfo.
116615 2006-06-28  Eric Blake  <ebb9@byu.net>
116617         * modules/wcwidth: New file.
116618         * modules/mbchar (Depends-on): Add wcwidth.
116619         * modules/mbswidth (Depends-on): Add wcwidth.
116620         * MODULES.html.sh: Add wcwidth.
116622 2006-06-28  Eric Blake  <ebb9@byu.net>
116624         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
116625         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
116627 2006-06-28  Eric Blake  <ebb9@byu.net>
116629         * lib/xvasprintf.h: Fix comments.
116631 2006-06-28  Eric Blake  <ebb9@byu.net>
116633         * lib/mbchar.h (wcwidth): Include wcwidth.h.
116634         * lib/mbswidth.c (wcwidth): Move from here...
116635         * lib/wcwidth.h: ...to this new file.
116637 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116639         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
116641         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
116642         it's obsolete.
116643         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
116645 2006-06-28  Derek R. Price  <derek@ximbiot.com>
116647         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
116648         Autoconf 2.60 says this stuff was obsolete.
116650 2006-06-28  Bruno Haible  <bruno@clisp.org>
116652         * modules/wcwidth (Files): Add m4/wchar_t.m4.
116654 2006-06-28  Bruno Haible  <bruno@clisp.org>
116656         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
116657         gt_TYPE_WCHAR_T.
116659 2006-06-28  Bruno Haible  <bruno@clisp.org>
116661         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
116662         declaration for wcwidth.
116663         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctype.h>.
116665 2006-06-28  Bruno Haible  <bruno@clisp.org>
116667         * lib/mkdtemp.c [MINGW]: Include <io.h>.
116668         (mkdir): Define using _mkdir.
116670 2006-06-28  Bruno Haible  <bruno@clisp.org>
116672         * lib/getaddrinfo.h: Fix POSIX URL.
116673         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
116674         _WIN32.
116675         (use_win32_p): Make static.
116676         (getaddrinfo): Reject service name if it is empty or does not consist
116677         solely of decimal digits, or if its value is > 65535.
116678         (getnameinfo): Remove useless casts.
116680 2006-06-27  Simon Josefsson  <jas@extundo.com>
116682         * modules/sys_select: New file, suggested by Bruno Haible, Paul
116683         Eggert and Martin Lambers.
116685 2006-06-27  Simon Josefsson  <jas@extundo.com>
116687         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
116688         Eggert and Martin Lambers.
116690 2006-06-27  Bruno Haible  <bruno@clisp.org>
116692         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
116693         result to 0, not to empty.
116694         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
116696 2006-06-27  Bruno Haible  <bruno@clisp.org>
116698         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
116700 2006-06-26  Simon Josefsson  <jas@extundo.com>
116702         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
116703         present.
116705 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
116707         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
116708         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
116709         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00181.html>.
116711 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
116713         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
116715 2006-06-26  Bruno Haible  <bruno@clisp.org>
116717         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
116719 2006-06-26  Bruno Haible  <bruno@clisp.org>
116721         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
116723 2006-06-26  Bruno Haible  <bruno@clisp.org>
116725         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
116726         SGI C compiler in pre-C99 mode.
116727         Suggested by Mark D. Baushke and Larry Jones.
116729 2006-06-26  Bruno Haible  <bruno@clisp.org>
116731         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
116732         WCHAR_MAX.
116733         Reported by Mark D. Baushke and Larry Jones.
116735 2006-06-26  Bruno Haible  <bruno@clisp.org>
116737         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
116738         in pre-C99 mode.
116739         Suggested by Mark D. Baushke and Larry Jones.
116741 2006-06-23  Simon Josefsson  <jas@extundo.com>
116742             Bruno Haible  <bruno@clisp.org>
116744         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
116745         Emit mostlyclean-local rule.
116746         (func_emit_tests_Makefile_am): Likewise.
116747         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
116749 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
116751         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
116753 2006-06-23  Bruno Haible  <bruno@clisp.org>
116755         * tests/test-stdint.c: Update to match ISO C 99 Technical
116756         Corrigendum 1.
116758 2006-06-23  Bruno Haible  <bruno@clisp.org>
116760         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
116762 2006-06-23  Bruno Haible  <bruno@clisp.org>
116764         * lib/stdint_.h: Treat IRIX like OpenBSD.
116766 2006-06-23  Bruno Haible  <bruno@clisp.org>
116768         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
116769         ISO C 99 Technical Corrigendum 1.
116771 2006-06-22  Simon Josefsson  <jas@extundo.com>
116773         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
116774         MinGW.
116776 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
116778         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
116779         needed.  Some compiler complained about some of them.  Problem reported
116780         by Larry Jones in
116781         <http://lists.gnu.org/r/bug-gnulib/2006-06/msg00172.html>.
116783 2006-06-21  Simon Josefsson  <jas@extundo.com>
116785         * tests/test-getaddrinfo.c: New file.
116787         * modules/getaddrinfo-tests: New file.
116789         * MODULES.html.sh: Add inet_pton.
116791         * modules/inet_pton: New file.
116793 2006-06-21  Simon Josefsson  <jas@extundo.com>
116795         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
116796         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
116797         of using the (limited) gnulib implementation on Windows XP.
116799         * m4/inet_pton.m4: New file.
116801 2006-06-21  Simon Josefsson  <jas@extundo.com>
116803         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
116804         variable.
116806         * lib/socket_.h: Don't define WINVER.
116808         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
116809         slightly modified to work in gnulib.
116811 2006-06-21  Simon Josefsson  <jas@extundo.com>
116813         * doc/gnulib.texi (Windows sockets): Add.
116815 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
116817         * lib/read-file.c (fread_file): Start with buffer allocation of
116818         0 bytes rather than 1 byte; this simplifies the code.
116819         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
116820         code to free buffer and save/restore errno.
116821         (internal_read_file): Remove unused local.
116823 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
116825         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
116826         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
116827         Problem reported by Denis Excoffier in
116828         <http://lists.gnu.org/r/bug-tar/2006-06/msg00023.html>.
116830 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
116832         * modules/sys_socket, modules/socklen: Include sys/types since
116833         FreeBSD 4.x's sys/socket.h needs it.
116835 2006-06-19  Simon Josefsson  <jas@extundo.com>
116837         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
116839 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
116841         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
116843 2006-06-19  Bruno Haible  <bruno@clisp.org>
116845         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
116846         and FULL_PATH_INTTYPES_H in angle brackets.
116847         Reported by Mark D. Baushke <mdb@gnu.org>.
116849 2006-06-17  Eric Blake  <ebb9@byu.net>
116851         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
116852         errno.
116854 2006-06-17  Bruno Haible  <bruno@clisp.org>
116856         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
116857         <sys/inttypes.h>.
116859 2006-06-17  Bruno Haible  <bruno@clisp.org>
116861         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
116862         whether errno is declared. Assume <errno.h> declares errno.
116864 2006-06-17  Bruno Haible  <bruno@clisp.org>
116866         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
116868 2006-06-17  Bruno Haible  <bruno@clisp.org>
116870         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
116871         problem on Solaris 2.5.1.
116873 2006-06-16  Eric Blake  <ebb9@byu.net>
116875         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
116876         * lib/unicodeio.c [!defined errno]: Likewise.
116877         * lib/strtol.c [!defined errno]: Likewise.
116878         * lib/strtod.c [!defined errno]: Likewise.
116880 2006-06-15  Eric Blake  <ebb9@byu.net>
116882         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
116884 2006-06-15  Eric Blake  <ebb9@byu.net>
116886         * config/srclist.txt (ssize_t.m4): Lose sync.
116888 2006-06-15  Bruno Haible  <bruno@clisp.org>
116890         * modules/stdint (Files): Include m4/full-header-path.m4,
116891         m4/size_max.m4, m4/wchar_t.m4.
116892         (Makefile.am): Many more substitutions.
116893         * modules/stdint-tests: New file.
116894         * tests/test-stdint.c: New file.
116896 2006-06-15  Bruno Haible  <bruno@clisp.org>
116898         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
116899         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
116900         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
116901         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
116902         gl_CHECK_TYPE_SAME): New macros.
116904 2006-06-15  Bruno Haible  <bruno@clisp.org>
116906         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
116908 2006-06-15  Bruno Haible  <bruno@clisp.org>
116910         * lib/stdint_.h: Rewritten to be fully auto-configured.
116911         Fixes bug on HP-UX/IA64.
116913 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
116915         * lib/getdate.y (__attribute__): Don't define if already defined.
116916         Problem reported by Larry Jones.
116917         * lib/utimens.c (__attribute__): Likewise.
116919 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
116921         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
116922         reported by Andreas Schwab.
116924 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116925             Bruno Haible  <bruno@clisp.org>
116927         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
116928         check for the declaration of strnlen and a run test that exposes the
116929         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
116930         rpl_strndup.
116932 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116933             Bruno Haible  <bruno@clisp.org>
116935         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
116937 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
116939         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
116940         compile test, for Tru64 4.0D.
116942 2006-05-28  Karl Berry  <karl@gnu.org>
116944         * config/srclist.txt (printf-args.c): lose sync.
116946 2006-05-26  Martin Lambers  <marlam@marlam.de>
116948         * lib/getpass.c: Updates the test for the native W32 API, and adds
116949         missing includes, thus fixing compilation warnings.
116951 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
116953         * lib/exclude.c (exclude_fnmatch): New function.
116954         (excluded_file_name): Call exclude_fnmatch.
116955         * lib/exclude.h (excluded_file_name): New prototype
116957 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
116959         * lib/tempname.c (small_open, large_open): New macros.
116960         (__open, __open64) [!_LIBC]: Remove.
116961         (__gen_tempname): Use small_open and large_open instead of __open
116962         and __open64.  This fixes a portability bug on HP-UX 11.11i
116963         reported by Simon Wing-Tang in
116964         <http://lists.gnu.org/r/bug-coreutils/2006-05/msg00114.html>.
116966 2006-05-24  Bruno Haible  <bruno@clisp.org>
116968         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
116969         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
116970         Reported by Thorsten Maerz <torte@netztorte.de> via
116971         Aaron Stone <aaron@serendipity.cx>.
116973 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116975         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
116976         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
116977         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
116978         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
116979         not really conditional on the cache.
116980         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
116982 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
116984         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
116985         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
116986         (my_usleep): Don't mishandle maximum value.
116988 2006-05-19  Jim Meyering  <jim@meyering.net>
116990         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
116992 2006-05-17  Bruno Haible  <bruno@clisp.org>
116994         Cygwin portability.
116995         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
116997 2006-05-17  Bruno Haible  <bruno@clisp.org>
116999         * lib/stdint_.h: Fix recognition of Cygwin.
117001 2006-05-15  Bruno Haible  <bruno@clisp.org>
117003         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
117004         on libtool patch by Ralf Wildenhues.
117006 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
117008         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
117009         test for C99 conformance; (bool) 0.5 is an integer constant
117010         expression, but (bool) -0.5 is not.  Problem reported by Fedor
117011         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
117013 2006-05-11  Simon Josefsson  <jas@extundo.com>
117015         * m4/xvasprintf.m4: Fix obvious typo.
117017 2006-05-11  Jim Meyering  <jim@meyering.net>
117019         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
117020         James Lemley.
117022 2006-05-10  Simon Josefsson  <jas@extundo.com>
117024         * lib/md4.c: Typo fix, update copyright years.
117025         (K1, K2): Don't use L because it turn computations into 64-bit on
117026         64-bit platforms.
117028 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
117030         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
117031         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
117032         unwanted sign propagation, e.g., on hosts with 64-bit int.
117033         There still are some problems with reeelly weird theoretical hosts
117034         (e.g., 33-bit int) but it's not worth worrying about now.
117035         * lib/sha1.c (rol): Likewise.
117036         (K1, K2, K3, K4): Remove unnecessary L suffix.
117038 2006-05-10  Bruno Haible  <bruno@clisp.org>
117040         * lib/des.c: Cast to avoid warnings.
117042 2006-05-09  Bruno Haible  <bruno@clisp.org>
117044         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
117045         (Depends-on): Depend also on xsize, stdarg.
117046         (configure.ac): Add gl_XVASPRINTF.
117048 2006-05-09  Bruno Haible  <bruno@clisp.org>
117050         * m4/xvasprintf.m4: New file.
117052 2006-05-09  Bruno Haible  <bruno@clisp.org>
117054         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
117055         (EOVERFLOW): Define fallback value.
117056         (xstrcat): New function.
117057         (xvasprintf): Recognize the special case of a string concatenation.
117059 2006-05-08  Eric Blake  <ebb9@byu.net>
117061         * gnulib-tool (func_version): Base copyright year on CVS date.
117062         (func_emit_copyright_notice): New function.
117063         (func_emit_lib_Makefile_am): Use it.
117064         (func_emit_tests_Makefile_am): Likewise.
117065         (func_import): Likewise.
117067 2006-05-08  Bruno Haible  <bruno@clisp.org>
117069         * modules/stdarg: New file.
117070         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
117072 2006-05-08  Bruno Haible  <bruno@clisp.org>
117074         * m4/stdarg.m4: New file, from GNU gettext.
117076 2006-05-08  Bruno Haible  <bruno@clisp.org>
117078         * config/srclist.txt (build-aux/config.rpath): different from latest
117079         release.
117081 2006-05-08  Bruno Haible  <bruno@clisp.org>
117083         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
117085 2006-05-05  Jim Meyering  <jim@meyering.net>
117087         * m4/warning.m4: New file, derived from bison's file by the same name.
117089 2006-05-03  Bruno Haible  <bruno@clisp.org>
117091         * lib/stdint_.h: Shorter URL.
117092         * lib/inttypes.h: Likewise.
117094 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117096         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
117098 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117100         * lib/verify.h: Document the internals better.  Most of this change
117101         was written by Bruno Haible.
117103 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
117105         * doc/verify.texi: New file, partly based on a proposal by
117106         Bruno Haible.
117108 2006-05-02  Bruno Haible  <bruno@clisp.org>
117110         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
117111         test from here...
117112         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
117114 2006-04-29  Bruno Haible  <bruno@clisp.org>
117116         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
117117         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
117119 2006-04-29  Bruno Haible  <bruno@clisp.org>
117121         * gnulib-tool: Make --update option actually work.
117123 2006-04-29  Bruno Haible  <bruno@clisp.org>
117125         * doc/gcd.texi: New file.
117126         * doc/gnulib.texi: Include it.
117128 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
117130         * lib/getdate.y (get_date): When adding relative date, start with the
117131         initial time, not with the result of the first mktime call.
117133 2006-04-25  Bruno Haible  <bruno@clisp.org>
117135         * gnulib-tool (func_import): Output the include directives in three
117136         blocks, sorted separately.
117137         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117139 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117141         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
117142         to define main with arguments, for C++.  Reported by Eric Blake.
117143         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
117144         Prefer 'int main ()' to 'int main (void)', for C++.
117145         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
117146         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
117147         for 'main', for C99 and C++.
117149 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
117151         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
117152         Don't assume that exit status -1 is valid.
117153         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117154         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
117155         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
117156         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
117157         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
117158         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
117159         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
117160         functions can be used without declaring them, or that you can
117161         exit with status -1.
117162         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
117164 2006-04-24  Karl Berry  <karl@gnu.org>
117166         * config/srclist.txt (longdouble.m4): sync lost.
117168 2006-04-24  Eric Blake  <ebb9@byu.net>
117170         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
117172 2006-04-24  Bruno Haible  <bruno@clisp.org>
117174         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
117175         poll() implementation in AIX.
117176         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117178 2006-04-24  Bruno Haible  <bruno@clisp.org>
117180         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
117181         assigned exactly once.
117183 2006-04-23  Claudio Fontana  <claudio@gnu.org>
117184             Bruno Haible  <bruno@clisp.org>
117186         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
117187         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
117188         for AM_CPPFLAGS.
117190 2006-04-23  Bruno Haible  <bruno@clisp.org>
117192         * modules/copy-file: Depend on unistd.
117193         * modules/execute: Likewise.
117194         * modules/fatal-signal: Likewise.
117195         * modules/findprog: Likewise.
117196         * modules/mkdtemp : Likewise.
117197         * modules/pipe: Likewise.
117198         * modules/wait-process: Likewise.
117200 2006-04-23  Bruno Haible  <bruno@clisp.org>
117202         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
117203         condition was already detected.
117204         Reported by Ben Pfaff <blp@cs.stanford.edu>.
117206 2006-04-23  Bruno Haible  <bruno@clisp.org>
117208         * lib/copy-file.c: Include <unistd.h> unconditionally.
117209         * lib/execute.c: Likewise.
117210         * lib/fatal-signal.c: Likewise.
117211         * lib/findprog.c: Likewise.
117212         * lib/mkdtemp.c: Likewise.
117213         * lib/pipe.h: Likewise.
117214         * lib/pipe.c: Likewise.
117215         * lib/wait-process.h: Likewise.
117217 2006-04-23  Bruno Haible  <bruno@clisp.org>
117219         * gnulib-tool (func_usage): Fix --import description. Document
117220         --update.
117221         (func_import): Create temporary file in a temporary directory, if
117222         --dry-run is specified. Silence errors from 'grep' when there are no
117223         m4 files in $m4dir.
117224         (func_create_testdir): Silence errors from 'grep' when there are no
117225         m4 files in $m4dir.
117226         Reported by Karl Berry <karl@freefriends.org>.
117228 2006-04-20  Bruno Haible  <bruno@clisp.org>
117230         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
117231         one argument, so that the code will be portable to Autoconf 2.60.
117232         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
117233         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
117234         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
117236 2006-04-19  Derek Price  <derek@ximbiot.com>
117237             Eric Blake  <ebb9@byu.net>
117239         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
117240         rather than "/full/path.h".  Update comment to match.  Shorten &
117241         generalize m4_translit call via AS_TR_CPP.
117243 2006-04-19  Derek Price  <derek@ximbiot.com>
117244             Eric Blake  <ebb9@byu.net>
117246         * lib/inttypes.h: Correct grammar in comment.
117248 2006-04-18  Derek Price  <derek@ximbiot.com>
117249             Paul Eggert  <eggert@cs.ucla.edu>
117251         * modules/inttypes: New file.
117252         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
117254 2006-04-18  Derek Price  <derek@ximbiot.com>
117255             Paul Eggert  <eggert@cs.ucla.edu>
117257         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
117258         New files.
117260 2006-04-18  Derek Price  <derek@ximbiot.com>
117261             Paul Eggert  <eggert@cs.ucla.edu>
117263         * lib/inttypes.h: New file.
117264         * lib/strtoimax.c: Assume <inttypes.h>.
117266 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
117268         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
117269         isn't mounted.  Problem reported by Kir Kolyshkin.
117271 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
117273         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
117274         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
117275         Derek R. Price.
117276         * lib/regex.h (RE_DUP_MAX): Update comment to match current
117277         implementation.
117279 2006-04-12  Eric Blake  <ebb9@byu.net>
117281         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
117282         is now done automatically by the corresponding Autoconf macro.
117284 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
117286         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
117287         time_r.h.
117289 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117291         Merge regex changes from libc, removing some of our
117292         POSIX-conformance changes that were rejected and redoing them in a
117293         less-intrusive way.
117295         * lib/regcomp.c (re_compile_internal, init_dfa):
117296         Length arg is now size_t, not Idx.  All uses changed.
117297         (peek_token): Forward decl now says internal_function.
117298         (__re_error_msgid, __re_error_msgid_idx):
117299         Now static rather than extern with attribute_hidden.
117300         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
117301         For some reason libc prefers K&R style defns for external functions.
117302         (regerror) [!defined _LIBC]: Likewise.
117303         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
117304         (seek_collating_symbol_entry, lookup_collation_sequence_value):
117305         (build_range_exp, build_collating_symbol):
117306         Use K&R-style defn.
117307         (re_compile_fastmap): Use '\0' to memset, not 0.
117308         (utf8_sb_map): Make the calculations more obvious.
117309         (init_dfa, parse_bracket_exp, build_charclass_op):
117310         Call calloc and cast result, as glibc does.
117311         (init_word_char, fetch_token, peek_token, peek_token_bracket):
117312         (build_range_exp, build_collating_symbol):
117313         Now internal functions.
117315         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
117317         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
117318         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
117319         Don't depend on VMS; depend on __VMS instead, for POSIX
117320         namespace cleanness.
117321         (regoff_t): Define to ssize_t, not long int.
117323         Remove the REG_ macros named below.  Instead, make the old names
117324         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
117325         __USE_GNU_REGEX.
117326         (REG_BACKSLASH_ESCAPE_IN_LISTS):
117327         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
117328         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
117329         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
117330         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
117331         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
117332         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
117333         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
117334         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
117335         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
117336         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
117337         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
117338         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
117339         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
117340         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
117341         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
117342         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
117343         (REG_NREGS):
117344         Remove.  All uses replaced by the old RE_* names.
117345         (RE_BACKSLASH_ESCAPE_IN_LISTS):
117346         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
117347         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
117348         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
117349         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
117350         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
117351         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
117352         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
117353         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
117354         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
117355         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
117356         Don't bother having these macros be independent of each others'
117357         values, since they no longer exist in the POSIX name space.
117359         Rename the following member names back to their old names,
117360         unless !__USE_GNU_REGEX.  All uses changed back.
117361         (buffer): Renamed from re_buffer.
117362         (allocated): Renamed from re_allocated.
117363         (used): Renamed from re_used.
117364         (syntax): Renamed from re_syntax.
117365         (fastmap): Renamed from re_fastmap.
117366         (translate): Renamed from re_translate.
117367         (can_be_null): Renamed from re_can_be_null.
117368         (regs_allocated): Renamed from re_regs_allocated.
117369         (fastmap_accurate): Renamed from re_fastmap_accurate.
117370         (no_sub): Renamed from re_no_sub.
117371         (not_bol): Renamed from re_not_bol.
117372         (not_eol): Renamed from re_not_eol.
117373         (newline_anchor): Renamed from re_newline_anchor.
117374         (num_regs): Renamed from rm_num_regs.
117375         (start): Renamed from rm_start.
117376         (end): Renamed from rm_end.
117378         (free_state): Move up a bit.
117380         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
117381         #define to be empty.
117382         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
117383         when that is what is intended.
117384         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
117385         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
117386         (MAX): New macro.
117387         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
117388         All uses changed back to re_malloc, etc.  It's now the caller's
117389         responsibility to check for overflow; all callers changed.
117390         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
117391         (re_x2nrealloc): Remove.
117392         (free_state): Remove decl.
117394         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
117395         (re_set_registers, re_exec):
117396         Use K&R-style defn.
117398         2006-01-31  Roland McGrath  <roland@redhat.com>
117400         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
117401         Reported by Mike Frysinger <vapier@gentoo.org>.
117403         2006-01-15  Andreas Jaeger  <aj@suse.de>
117405         [BZ #1950]
117406         * lib/regex_internal.c (re_string_reconstruct): Adjust for
117407         build_wcs_upper_buffer change.
117408         (build_wcs_upper_buffer): Change return type.
117410         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
117412         * lib/regex_internal.h: Include <stdint.h> if available.
117414         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
117416         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
117418         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
117420         * lib/regcomp.c: Adjust for changed secondary hash function.
117422         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
117424         * lib/regex.h: Pretty printing.
117425         Clean up namespace a bit.
117427         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
117429         * lib/regexec.c (update_cur_sifted_state, check_arrival,
117430         check_arrival_add_next_nodes): Avoid using uninitialized variable.
117432         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
117433                     Ulrich Drepper  <drepper@redhat.com>
117435         [BZ #1302]
117436         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
117437         changed.
117438         (bitset_word_t): Renamed from bitset_word.  All uses changed.
117440         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
117442         [BZ #281]
117443         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
117444         * lib/regcomp.c: Remove unnecessary uses of
117445         unsigned RE_TRANSLATE_TYPE.
117446         * lib/regex_internal.h: Likewise.
117447         * lib/regex_internal.c: Likewise.
117448         * lib/regexec.c: Likewise.
117449         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
117451         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
117453         * lib/regexec.c (find_recover_state): Remove unnecessary
117454         initialization.
117455         (transit_state_bkref): Make DFA a const pointer.
117456         (get_subexp): Likewise.
117457         (check_arrival): Likewise.
117458         (update_cur_sifted_state): Likewise.
117459         (re_search_internal): Likewise.
117460         (prune_impossible_nodes): Likewise.
117461         (acquire_init_state_context): Likewise.
117462         (proceed_next_node): Likewise.
117463         (set_regs): Likewise.
117464         (free_fail_stack_return): Likewise.
117465         (check_arrival_expand_ecl): Mark DFA parameter as const.
117466         (check_arrival_expand_ecl_sub): Likewise.
117467         (check_subexp_limits): Likewise.
117468         (sub_epsilon_src_nodes):  Likewise.
117469         (add_epsilon_src_nodes):  Likewise.
117470         (merge_state_array): Likewise.
117471         (update_regs): Likewise.
117472         (build_trtable): Likewise.
117473         (sift_states_backward): Mark MCTX parameter as const.
117474         (build_sifted_states): Likewise.
117475         (update_cur_sifted_state): Likewise.
117476         (sift_states_mkref): Likewise.
117477         (check_arrival_expand_ecl): Mark eclosure as const.
117478         (check_dst_limits_calc_pos_1): Likewise.
117479         * lib/regex_internal.h (re_match_context_t): Make dfa a const
117480         pointer.
117482         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
117484         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
117485         (transit_state_sb): Likewise.
117486         (transit_state_mb): Likewise.
117487         (sift_states_iter_mb): Likewise.
117488         (check_arrival_add_next_nodes): Likewise.
117489         (check_node_accept_bytes): Change first parameter to pointer-to-const.
117490         [_LIBC] (re_search_2_stub): Use mempcpy.
117492         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
117493         mbrtowc for very simple UTF-8 case.
117495         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
117496         a pointer-to-const.
117497         (re_acquire_state_context): Likewise.
117498         * lib/regex_internal.h: Adjust prototypes.
117500         * lib/regex.c: Prevent using C++ compilers.
117502         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
117503         (re_acquire_state_context): Likewise.
117505 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117507         * modules/regex (Depends-on): Add ssize_t.
117509 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117511         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
117512         translation table.
117514 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
117516         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
117518 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
117519             Bruno Haible  <bruno@clisp.org>
117521         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
117522         <sys/types.h> and <inttypes.h>.
117524 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117526         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
117527         `__error_t_defined', so argp.h will not typedef the former.
117529 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
117531         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
117532         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
117533         glibc names.  Even if glibc is changed to conform to POSIX, the
117534         traditional names will be available anyway, since regex depends on
117535         the extensions module.  Also, fix a longstanding typo in the
117536         implementation of Spencer ERE test #75 from grep 2.3.  Problems
117537         reported by Emanuele Giaquinta.  Also, change sense of cached
117538         variable, so that the message makes sense.
117540 2006-03-24  Simon Josefsson  <jas@extundo.com>
117542         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
117543         including some doc fixes.
117544         (base64_encode_alloc): Fix +1 bug on allocation failures.
117546 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117548         * lib/base64.c (base64_encode): Do not read past end of array with
117549         unsanitized input on systems with CHAR_BIT > 8.
117551 2006-03-24  Eric Blake  <ebb9@byu.net>
117553         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
117555 2006-03-22  Karl Berry  <karl@gnu.org>
117557         * config/srclist.txt (*setenv.[ch]): get from coreutils.
117558         * config/srclistvars.sh (COREUTILS): new var.
117560 2006-03-17  Jim Meyering  <jim@meyering.net>
117562         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
117563         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
117565 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117567         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
117568         no longer needs it.  Instead, check that regoff_t is as least
117569         as wide as ptrdiff_t.
117571         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
117572         so that our regex.h stays compatible with the installed regex.
117573         This is helpful for installers who configure --without-included-regex.
117574         Problem reported by Emanuele Giaquinta.
117576 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
117578         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
117579         Typedef to long int, not to off_, as POSIX will likely change
117580         in that direction.
117582 2006-03-15  Eric Blake  <ebb9@byu.net>
117584         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
117586 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117588         * lib/argp-help.c (validate_uparams): Fix typo
117589         * lib/argp-parse.c (argp_default_options): Consistently begin help
117590         messages with a lowercase letter.
117592 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
117594         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
117595         overrun buffers and shouldn't be used (much as gets shouldn't be
117596         used).
117597         * lib/time_r.c (asctime_r, ctime_r): Likewise.
117599 2006-03-08  Simon Josefsson  <jas@extundo.com>
117601         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
117602         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117604 2006-03-08  Simon Josefsson  <jas@extundo.com>
117606         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
117607         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117609 2006-03-08  Simon Josefsson  <jas@extundo.com>
117611         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
117612         signal that configure disabled the device.
117614 2006-03-08  Simon Josefsson  <jas@extundo.com>
117616         * build-aux/maint.mk: Fix refresh-po, to handle no translated
117617         languages.
117619 2006-03-07  Simon Josefsson  <jas@extundo.com>
117621         * modules/getopt (Depends-on): Add unistd.
117623         * modules/unistd: New file.
117625 2006-03-07  Simon Josefsson  <jas@extundo.com>
117627         * modules/gc-random: New file.
117629 2006-03-07  Simon Josefsson  <jas@extundo.com>
117631         * m4/unistd_h.m4: New file.
117633 2006-03-07  Simon Josefsson  <jas@extundo.com>
117635         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
117636         test to be side-effect free by storing the result in the cache
117637         variable gl_cv_lib_readline, and moving the assignment of
117638         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
117639         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
117641 2006-03-07  Simon Josefsson  <jas@extundo.com>
117643         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
117644         error on missing devices (the functions will return an error).
117646         * m4/gc.m4: Move random stuff to gc-random.m4
117648 2006-03-07  Simon Josefsson  <jas@extundo.com>
117650         * lib/unistd_.h: New file.
117652 2006-03-07  Simon Josefsson  <jas@extundo.com>
117654         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
117656 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117658         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
117659         Problem reported by Juan Manuel Guerrero.
117661 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117663         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
117664         the unistd module.
117665         * lib/getlogin_r.c: Likewise.
117666         * lib/getlogin_r.h: Likewise.
117667         * lib/glob.c: Likewise.
117668         * lib/pagealign_alloc.c: Likewise.
117669         * lib/unistd_.h: Remove; no longer needed.
117671 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
117673         * MODULES.html.sh (Support for systems lacking POSIX:2001):
117674         Add unistd.
117675         * modules/c-stack (Depends-on): Add unistd.
117676         * modules/getlogin_r: Likewise.
117677         * modules/glob: Likewise.
117678         * modules/pagealign_alloc: Likewise.
117679         * modules/unistd (Files): Remove lib/unistd_.h.
117680         (EXTRA_DIST): Remove.
117681         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
117682         need unistd_.h.
117683         (MOSTLYCLEANFILES): Remove unistd.h-t.
117685 2006-03-03  Simon Josefsson  <jas@extundo.com>
117687         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
117689 2006-03-03  Simon Josefsson  <jas@extundo.com>
117691         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
117692         libidn and bison.
117694 2006-03-03  Simon Josefsson  <jas@extundo.com>
117696         * build-aux/maint.mk: Add indent target.
117698 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
117700         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
117701         our replacement poll.h in any case, to avoid a differing
117702         declaration from a system header.  Seen on AIX.
117704 2006-03-01  Simon Josefsson  <jas@extundo.com>
117706         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
117707         <kasal@ucw.cz>.
117709 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117711         * modules/gettime (Depends-on): Add extensions module.
117712         * modules/nanosleep (Depends-on): Likewise.
117713         * modules/settime (Depends-on): Likewise.
117715 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
117717         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
117718         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
117719         pedantically.
117720         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
117721         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
117723         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
117724         not "==".  Reported by Ralf Wildenhues.
117726 2006-03-01  Karl Berry  <karl@gnu.org>
117728         * doc/Copyright/request-*: new files, synced from gnuorg.
117730 2006-03-01  Karl Berry  <karl@gnu.org>
117732         * config/srclist.txt (Copyright/*): new entries.
117734 2006-02-28  Simon Josefsson  <jas@extundo.com>
117736         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
117738 2006-02-27  Simon Josefsson  <jas@extundo.com>
117740         * lib/base64.h: Indent #define's.  From Jim Meyering
117741         <jim@meyering.net>.
117743 2006-02-27  Jim Meyering  <jim@meyering.net>
117745         Revert the change of 2006-02-24, so these files can continue
117746         to be sync'd from gettext.
117747         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
117748         of `config.h'.
117750 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
117752         * modules/intprops: New file.
117753         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
117754         Add intprops.
117755         * modules/getloadavg (Files): Remove lib/intprops.h.
117756         (Depends-on): Add intprops.
117757         * modules/human: Likewise.
117758         * modules/inttostr: Likewise.
117759         * modules/openat: Likewise.
117760         * modules/sig2str: Likewise.
117761         * modules/userspec: Likewise.
117762         * modules/utimecmp: Likewise.
117763         * modules/xnanosleep: Likewise.
117764         * modules/xstrtol: Likewise.
117766 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
117768         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
117769         * modules/lock-tests (TESTS): Use $(EXEEXT).
117770         * modules/tls-tests: Likewise.
117771         * modules/argp-tests: Likewise.
117772         (check_PROGRAMS): New var, replacing...
117773         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
117775 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117777         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
117778         `config.h'.
117780 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
117782         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
117784 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
117786         Sync from coreutils.
117787         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
117788         gl_CHDIR_SAFER.
117790 2006-02-22  Jim Meyering  <jim@meyering.net>
117792         Sync from coreutils.
117793         * m4/chdir-safer.m4: New file.
117795 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
117797         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
117798         AT_FDCWD exceeds INT_MAX.
117799         * lib/openat.h (AT_FDCWD): Likewise.
117801 2006-02-17  Eric Blake  <address@hidden>
117803         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
117805 2006-02-16  Simon Josefsson  <jas@extundo.com>
117807         * modules/getaddrinfo (Depends-on): Add sys_socket.
117809 2006-02-15  Simon Josefsson  <jas@extundo.com>
117811         * build-aux/maint.mk: Add dsyntax-check rule.
117813 2006-02-15  Eric Blake  <ebb9@byu.net>
117815         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
117816         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
117817         'present but cannot compile' warnings on cygwin.
117818         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
117819         use ws2tcpip.h if sys/socket.h works.
117820         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
117821         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
117823 2006-02-14  Simon Josefsson  <jas@extundo.com>
117825         * modules/maintainer-makefile (Files): Rename.
117827         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
117828         and (the local) Makefile.cfg to maint-cfg.mk.
117830         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
117831         to the latter.
117833         * modules/maintainer-makefile: New module.
117835         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
117836         severaly stripped to make it possible to build it up from scratch
117837         with reliable tests.
117839         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
117840         fixes to permit overriding the default actions when configure and
117841         makefile are not available.
117843 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
117845         Sync from coreutils.
117846         * modules/lstat (Depends-on): Don't depend on xalloc.
117847         (License): Change from GPL to LGPL, since this is now simply a
117848         replacement for a libc function.
117850 2006-02-14  Jim Meyering  <jim@meyering.net>
117852         Sync from coreutils.
117854         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
117855         failure on deficient systems, and simplify gnulib lgpl dependencies.
117856         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
117857         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
117859         * lib/xalloc-die.c: Remove unused definition of N_.
117861 2006-02-14  Jim Meyering  <jim@meyering.net>
117863         Sync from coreutils.
117864         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
117865         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
117866         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
117867         double-quote uses of that variable, to accommodate the rare case in
117868         which getmntent is available in none of the libraries checked.  This
117869         happens at least on FreeBSD 5.0.
117871 2006-02-13  Simon Josefsson  <jas@extundo.com>
117873         * gnulib-tool (Usage): Fix --import, from
117874         karl@freefriends.org (Karl Berry).
117876 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
117878         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
117880 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
117882         * lib/argp-namefrob.h: Restore changes accidentally lost during the
117883         "autoupdate" on 2005-12-12.
117885 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117887         * modules/closeout (Depends-on): Remove atexit.
117889 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
117891         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
117892         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
117894 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
117896         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
117897         __EXTENSIONS__ if this causes compilation to fail.  Problem
117898         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
117899         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
117901 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
117903         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
117904         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
117905         <http://lists.gnu.org/r/bug-gnulib/2006-01/msg00074.html>.
117906         All uses changed.
117908 2006-01-26  Simon Josefsson  <jas@extundo.com>
117910         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
117911         prototype is visible on mingw32.
117913         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
117914         for mingw32.
117916         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
117917         mingw32).
117919 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
117921         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
117922         attempt to open for write; this always fails, at least on POSIX
117923         hosts.  This reinstates the 2006-01-09 change, which was
117924         inadvertently removed.
117926 2006-01-26  Bruno Haible  <bruno@clisp.org>
117928         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
117929         Reported by Paul Eggert.
117931 2006-01-26  Bruno Haible  <bruno@clisp.org>
117932             Paul Eggert  <eggert@cs.ucla.edu>
117934         * lib/stdbool_.h (_Bool)
117935         [(! (defined __cplusplus || defined __BEOS__)
117936           && !defined __GNUC__
117937           && !(defined __HP_cc || defined __xlc__
117938                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
117939                || defined __sgi))]:
117940         #define to signed char in these cases too; this simplifies
117941         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
117942         etc., separately) and makes it more conservative.
117944 2006-01-25  Simon Josefsson  <jas@extundo.com>
117946         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
117947         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
117948         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
117950 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
117952         * lib/argp-namefrob.h: Bugfix. Remove stray #
117954 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
117956         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
117957         so that we test the test.
117958         Check for yet another HP-UX cc bug involving *bool |= bool.
117960 2006-01-25  Karl Berry  <karl@gnu.org>
117962         * config/srclist.txt (vasnprintf.c): sync lost.
117964 2006-01-25  Jim Meyering  <jim@meyering.net>
117966         Sync from the stable (b5) branch of coreutils:
117968         * lib/fts.c (fts_children): Don't let close() clobber errno from
117969         failed fchdir().
117971         * lib/fts.c (fts_stat): When following a symlink-to-directory,
117972         don't necessarily interpret stat-fails+lstat-succeeds as indicating
117973         a dangling symlink.  That can also happen at least for ELOOP.
117974         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
117975         FYI, this bug predates the inclusion of fts.c in coreutils.
117977         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
117978         in their own block, so pre-c99 compilers don't object.
117980         Avoid the double-free (first in fts_read, second in fts_close) that
117981         would occur when an `active' directory is made inaccessible (e.g.,
117982         via chmod a-x) during a traversal.
117983         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
117984         before returning.  Reproduce this failure by
117985         mkdir -p a/b; cd a; chmod a-x . b
117986         Reported by Stavros Passas.
117988 2006-01-25  Jim Meyering  <jim@meyering.net>
117990         * lib/fileblocks.c: Remove more useless parentheses.
117991         * lib/readutmp.h: Likewise.
117993 2006-01-25  Bruno Haible  <bruno@clisp.org>
117995         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
117996         warnings.
117997         Reported by Paul Eggert.
117999 2006-01-25  Bruno Haible  <bruno@clisp.org>
118001         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
118002         rid of a trap command. For Solaris sh.
118003         Reported by Mark D. Baushke <mdb@gnu.org>.
118005 2006-01-24  Simon Josefsson  <jas@extundo.com>
118007         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
118008         Bruno.
118010 2006-01-24  Karl Berry  <karl@gnu.org>
118012         * config/srclist.txt (argp-namefrob.h): sync lost.
118014 2006-01-24  Jim Meyering  <jim@meyering.net>
118016         * modules/openat (Files): Add lib/intprops.h.
118017         From Mark D. Baushke.
118019 2006-01-24  Jim Meyering  <jim@meyering.net>
118021         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
118022         Reported by Mark D. Baushke.
118024 2006-01-24  Jim Meyering  <jim@meyering.net>
118026         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
118028 2006-01-24  Bruno Haible  <bruno@clisp.org>
118030         * modules/strnlen (Maintainer): Change from glibc to all.
118032 2006-01-24  Bruno Haible  <bruno@clisp.org>
118034         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
118035         Patch by Paul Eggert.
118037 2006-01-24  Bruno Haible  <bruno@clisp.org>
118039         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
118040         already has it.
118041         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
118042         2005-11-26.
118044         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
118045         'signed char' to avoid problems with the built-in _Bool type.
118046         Reported by Paul Eggert on 2005-11-26.
118048 2006-01-24  Bruno Haible  <bruno@clisp.org>
118050         * gnulib-tool (func_import): Avoid constructing complicated sed
118051         expressions inside backquote.
118052         Report and solution by Mark D. Baushke <mdb@gnu.org>.
118054 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
118056         These changes imported from libc.
118057         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
118058         test and two separate function calls.
118059         * lib/strndup.c (__strndup): Add libc_hidden_def.
118061 2006-01-23  Simon Josefsson  <jas@extundo.com>
118063         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
118064         Remove the test_*_SOURCES variable: automake infers it by default.
118065         * modules/tls-tests: Likewise.
118067 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118069         Work around porting bugs reported by Dieter in
118070         <http://lists.gnu.org/r/bug-bison/2006-01/msg00049.html>.
118071         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
118072         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
118073         Include "getopt.h" first, to check interface.
118074         (getenv): Declare only if defined HAVE_DECL_GETENV &&
118075         !HAVE_DECL_GETENV.
118076         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
118077         (__strndup): Revert to K&R-style function dfns, the glibc style.
118078         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
118079         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
118080         Include strnlen.h first, to get prototype properly.
118081         (strnlen): Renamed from __strnlen.
118082         Remove weak alias.
118084 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118086         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
118088 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
118090         * config/srclist.txt: Adjust to reflect glibc reorganization.
118091         This affects only comments.
118093 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
118095          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
118096          Reported by Bruce Korb <bkorb@gnu.org>.
118098 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
118100         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
118101         to pacify gcc -Wswitch-default.
118103 2006-01-22  Bruno Haible  <bruno@clisp.org>
118105         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
118106         temporary buffer for sprintf, take into account the precision also
118107         for 'd', 'i', 'u', 'o', 'x', 'X'.
118109 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118111         * modules/argp-tests: New module
118112         * tests/test-argp.c: New file
118113         * tests/test-argp-2.sh: New file
118115 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
118117         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
118118         (__argp_base_name): Removed
118119         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
118120         typo.
118121         (__argp_base_name): Provide macro definition or extern declaration
118122         depending on the configuration
118124 2006-01-20  Simon Josefsson  <jas@extundo.com>
118126         * modules/inet_ntop (Depends-on): Depend on sys_socket.
118128 2006-01-20  Simon Josefsson  <jas@extundo.com>
118130         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
118132 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
118134         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
118135         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
118136         Suggested by Bruno Haible.
118138 2006-01-20  Karl Berry  <karl@gnu.org>
118140         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
118141         until changes propagate, I guess.
118143 2006-01-19  Simon Josefsson  <jas@extundo.com>
118145         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
118147 2006-01-19  Simon Josefsson  <jas@extundo.com>
118149         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
118151 2006-01-19  Simon Josefsson  <jas@extundo.com>
118153         * gnulib-tool: Set check_PROGRAMS.
118155         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118156         modules/des-tests, modules/gc-arcfour-tests,
118157         modules/gc-arctwo-tests, modules/gc-des-tests,
118158         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118159         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118160         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118161         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118162         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118163         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
118164         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
118165         test_*_SOURCES.
118167 2006-01-18  Simon Josefsson  <jas@extundo.com>
118169         * modules/socklen (Depends-on): Depend on sys_socket.
118171 2006-01-18  Simon Josefsson  <jas@extundo.com>
118173         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
118174         modules/des-tests, modules/gc-arcfour-tests,
118175         modules/gc-arctwo-tests, modules/gc-des-tests,
118176         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
118177         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
118178         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
118179         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
118180         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
118181         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
118182         $(EXEEXT) to automake TESTS variable, for mingw32.
118184 2006-01-17  Simon Josefsson  <jas@extundo.com>
118186         * modules/socklen (Include): Need sys/socket.h.
118188 2006-01-17  Bruno Haible  <bruno@clisp.org>
118190         * modules/ssize_t (Include): Add <sys/types.h>.
118192 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
118194         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
118195         it's not portable and it doesn't work with cross-compiles.
118196         Problem reported by Bruno Haible.  Fix missing-$ typo in
118197         'test "gl_cv_ignore_unused_libraries" ...' that prevented
118198         -zignore from being used with Sun's C compiler.
118200 2006-01-12  Simon Josefsson  <jas@extundo.com>
118202         * lib/base64.c: Fix warning, reported by Bruno Haible
118203         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
118205 2006-01-12  Bruno Haible  <bruno@clisp.org>
118207         * modules/ldd: New file.
118208         * build-aux/ldd.sh.in: New file.
118209         * MODULES.html.sh (Support for building libraries and executables): Add
118210         ldd.
118212 2006-01-12  Bruno Haible  <bruno@clisp.org>
118214         * m4/ldd.m4: New file.
118216 2006-01-12  Bruno Haible  <bruno@clisp.org>
118218         * gnulib-tool (func_import, func_create_testdir): Don't go into an
118219         endless loop while replacing $auxdir with build-aux.
118221 2006-01-11  Simon Josefsson  <jas@extundo.com>
118223         * lib/stdint_.h (SIZE_MAX): Add missing (.
118225 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
118227         Sync from coreutils.
118228         * lib/md5.c: Fix commentary typos.
118229         (alignof, UNALIGNED_P): No need for a GCC-specific version.
118230         * lib/md5.h (__attribute__): Remove; unused.
118231         * lib/sha1.c: Fix commentary to match md5 better.
118232         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
118233         so that we don't need to worry about alignment.  All uses changed.
118234         This merges the 2005-10-28 md5 change into sha1.
118236 2006-01-11  Jim Meyering  <jim@meyering.net>
118238         Sync from coreutils.
118239         * lib/md5.c (OP): Fix spacing.
118241 2006-01-11  Bruno Haible  <bruno@clisp.org>
118243         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118244         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
118245         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
118247 2006-01-11  Bruno Haible  <bruno@clisp.org>
118249         Ensure automatic ordering between gl_LOCK and gl_ARGP.
118250         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
118251         the "early" section as well.
118253 2006-01-11  Bruno Haible  <bruno@clisp.org>
118255         Avoid "ar: no archive members specified" error on MacOS X.
118256         * gnulib-tool (func_modules_add_dummy): New function.
118257         (func_import, func_create_testdir): Invoke it.
118259 2006-01-11  Bruno Haible  <bruno@clisp.org>
118261         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
118262         with $auxdir in AC_CONFIG_FILES statements.
118264 2006-01-11  Bruno Haible  <bruno@clisp.org>
118266         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
118267         Initialize also noinst_HEADERS to empty.
118269 2006-01-11  Bruno Haible  <bruno@clisp.org>
118271         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
118272         variables.
118273         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
118274         autoreconf.
118276 2006-01-11  Bruno Haible  <bruno@clisp.org>
118278         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
118279         overridable by the user.
118280         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118282 2006-01-10  Simon Josefsson  <jas@extundo.com>
118284         * modules/sys_socket: New file.
118286 2006-01-10  Simon Josefsson  <jas@extundo.com>
118288         * m4/sys_socket_h.m4: New file.
118290 2006-01-10  Simon Josefsson  <jas@extundo.com>
118292         * lib/socket_.h: New file.
118294 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118296         * modules/readutmp (Maintainer): Add myself.
118298 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118300         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
118301         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
118302         People who are still concerned with buggy memcmp implementations
118303         can invoke gl_FUNC_MEMCMP themselves.
118305 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
118307         * lib/regex_internal.h (BITSET_WORD_BITS):
118308         Work around a bug in 64-bit PGC (before version 6.1-2), where the
118309         preprocessor mishandles large unsigned values as if they were signed.
118310         Problem reported by Claudio Fontana in
118311         <http://lists.gnu.org/r/bug-gnulib/2005-12/msg00061.html>.
118313 2006-01-10  Jim Meyering  <jim@meyering.net>
118315         Avoid the double-free (first in fts_read, second in fts_close) that
118316         would occur when an `active' directory is made inaccessible (e.g.,
118317         via chmod a-x) during a traversal.
118318         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
118319         before returning.  Reproduce this failure by
118320         mkdir -p a/b; cd a; chmod a-x . b
118321         Reported by Stavros Passas.
118323         Sync from coreutils.
118324         * lib/sha1.c: Tweak grammar in a comment.
118326 2006-01-10  Jim Meyering  <jim@meyering.net>
118328         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
118329         Patch by Joerg Sonnenberger.
118331 2006-01-10  Bruno Haible  <bruno@clisp.org>
118333         * modules/readutmp: Depend on module free.
118334         * modules/strtok_r: Depend on module restrict.
118336 2006-01-10  Bruno Haible  <bruno@clisp.org>
118338         * modules/gettext (configure.ac): Add an invocation of
118339         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
118341 2006-01-10  Bruno Haible  <bruno@clisp.org>
118343         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
118344         Reported by Werner Lemberg <wl@gnu.org>.
118346 2006-01-10  Bruno Haible  <bruno@clisp.org>
118348         * lib/localcharset.c: Update from GNU gettext.
118350 2006-01-10  Bruno Haible  <bruno@clisp.org>
118352         * lib/argp.h (__const): Remove macro. Use const instead.
118353         * lib/argp-fmtstream.h (__const): Likewise.
118354         * lib/glob_.h (__const): Remove macro.
118355         * lib/glob-libc.h: Use const instead of __const.
118357 2006-01-10  Bruno Haible  <bruno@clisp.org>
118359         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
118360         variable.
118361         Needed to avoid an automake error regarding the 'gettext' module.
118363 2006-01-09  Simon Josefsson  <jas@extundo.com>
118365         * modules/inet_ntop (Depends-on): Add restrict.
118367 2006-01-09  Simon Josefsson  <jas@extundo.com>
118369         * modules/gc-rijndael-tests (License): Put under LGPL.
118371         * modules/gc-des-tests (License): Likewise.
118373         * modules/gc-arcfour-tests (License): Likewise.
118375         * modules/gc-arctwo-tests (License): Likewise.
118377         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
118379         * modules/gc-hmac-sha1-tests (Files): Likewise.
118381         * modules/gc-hmac-md5-tests (License): Likewise.
118383         * modules/gc-sha1-tests (License): Likewise.
118385         * modules/gc-md5-tests (License): Likewise.
118387         * modules/gc-md4-tests (License): Likewise.
118389         * modules/gc-md2-tests (License): Likewise.
118391         * modules/gc-tests (License): Likewise.
118393         * modules/des-tests (License): Likewise.
118395         * modules/md4-tests (License): Likewise.
118397         * modules/md2-tests (License): Likewise.
118399 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118401         Sync from coreutils:
118403         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
118404         * modules/lib-ignore: New file.
118405         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
118406         chdir-safer.m4, lchmod.m4.
118407         * modules/openat: Add mkdirat.c, openat-priv.h.
118409 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118411         Sync from coreutils.
118412         * m4/lib-ignore.m4: New file.
118413         * m4/lchmod.m4: New file.
118415 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118417         Sync from coreutils.
118418         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
118419         for write access: POSIX says that must fail.
118420         * lib/fts.c (diropen): Likewise.
118421         * lib/save-cwd.c (save_cwd): Likewise.
118422         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
118423         well, for minor improvements on hosts that lack O_DIRECTORY.
118424         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
118425         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
118426         Fall back on chown if open failed with EACCES.
118428         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
118429         Report an error at compile-time if only a 1-second nominal clock
118430         resolution is found.
118432         * lib/lchmod.h: New file.
118433         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
118434         (make_dir_parents): Use lchown rather than chown, and
118435         lchmod rather than chmod.
118437         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
118438         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
118439         "proc" reported by n0dalus.
118441         * lib/mountlist.c: Include <limits.h>.
118442         (dev_from_mount_options)
118443         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
118444         New function.  It no longer assumes "dev=" has the System V meaning
118445         on Linux (since it doesn't).  It also parses "dev=" more carefully.
118446         (read_file_system_list)
118447         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
118448         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
118449         dev= in that case.
118451         * lib/posixtm.h (PDS_PRE_2000): New macro.
118452         * lib/posixtm.c (year): Arg is now syntax_bits rather than
118453         allow_century.  All usages changed.  Reject dates outside the range
118454         1969-1999 if PDS_PRE_2000 is used.
118456 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
118458         Sync from coreutils.
118459         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
118460         (Time of day items): Mention the possibility of leap seconds.
118461         Problem reported by Dr. David Alan Gilbert.
118463 2006-01-09  Jim Meyering  <jim@meyering.net>
118465         Sync from coreutils.
118467         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
118469         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
118471         * lib/modechange.c (mode_compile): Reject an invalid mode string
118472         that starts with an octal digit.  From Andreas Gruenbacher.
118474         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
118475         and dup to open_safer and dup_safer, respectively.
118476         (openat_permissive): Fix typo in comment.
118478         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
118479         "gettext.h"; either no longer needed or are guaranteed by openat.h.
118480         (_): Remove; no longer needed.
118481         (openat): Renamed from rpl_openat; no need for rpl_openat
118482         since openat.h renames openat for us.
118483         Replace most of the body with a call to openat_permissive,
118484         to avoid duplicate code.
118485         Port to (probably hypothetical) environments were mode_t is
118486         wider than int.
118487         (openat_permissive): Require mode arg, so that we can check
118488         types better.  Put it just after flags.  Change cwd failure
118489         indicator from pointer-to-bool to pointer-to-errno-value.
118490         All callers changed.
118491         Invoke openat_save_fail and/or openat_restore_fail if
118492         cwd_errno is null, so that openat can call us.
118493         (openat_permissive, fdopendir, fstatat, unlinkat):
118494         Simplify errno handling to avoid some duplicate code,
118495         as it's OK to set errno on success.
118496         * lib/openat.h: Revamp code so that function macros depend on
118497         __OPENAT_PREFIX only, not also on AT_FDCWD.
118498         (openat_ro): Remove.  Caller changed to use openat_permissive.
118499         (openat_permissive): Now a macro, if not a function.
118500         (openat_restore_fail, openat_save_fail): Now always functions,
118501         since mkdirat needs them even if __OPENAT_PREFIX is defined.
118503         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
118504         and openat.c.
118505         * lib/mkdirat.c: Include openat-priv.h.
118506         Remove definitions of macros defined therein.
118507         * lib/openat.c: Likewise.
118509         * lib/mkdirat.c (mkdirat): New file and function.
118510         * lib/openat.h (mkdirat): Declare.
118512         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
118514         * lib/openat.h (openat_permissive): Declare.
118515         (openat_ro): Define.
118517         * lib/openat.c (EXPECTED_ERRNO): New macro.
118518         (openat_permissive): New function -- used in remove.c rewrite.
118519         (all functions): Set errno just before returning, only if there
118520         was an actual failure.
118521         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
118523         Emulate openat-family functions using Linux's procfs, if possible.
118524         Idea and some code based on Ulrich Drepper's glibc changes.
118526         * lib/openat.c: (BUILD_PROC_NAME): New macro.
118527         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
118528         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
118529         before falling back on save_cwd and restore_cwd.
118530         (fdopendir, fstatat, unlinkat): Likewise.
118532         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
118533         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
118535         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
118536         as second argument to va_arg.  Otherwise, some versions of gcc
118537         warn that `if this code is reached, the program will abort'.
118539 2006-01-09  Jim Meyering  <jim@meyering.net>
118541         Sync from coreutils.
118542         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
118543         Require openat-priv.h.
118545 2006-01-09  Bruno Haible  <bruno@clisp.org>
118547         * modules/strnlen (Include): Use strnlen.h.
118549 2006-01-09  Bruno Haible  <bruno@clisp.org>
118551         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
118553 2006-01-09  Bruno Haible  <bruno@clisp.org>
118555         * lib/sysexit_.h (EX_OK): New macro.
118556         Suggested by Martin Lambers <marlam@marlam.de>.
118558 2006-01-09  Bruno Haible  <bruno@clisp.org>
118560         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
118561         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
118563 2006-01-09  Bruno Haible  <bruno@clisp.org>
118565         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
118566         numbers.
118568 2006-01-09  Bruno Haible  <bruno@clisp.org>
118570         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
118571         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
118572         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
118573         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
118575 2006-01-09  Bruno Haible  <bruno@clisp.org>
118577         * build-aux/javacomp.sh.in: New file, moved from lib/.
118578         * modules/javacomp-script (Files): Update.
118579         (configure.ac): Add AC_CONFIG_FILES invocation.
118580         (EXTRA_DIST): Remove variable.
118582         * build-aux/javaexec.sh.in: New file, moved from lib/.
118583         * modules/javaexec (Files): Update.
118584         (configure.ac): Add AC_CONFIG_FILES invocation.
118585         (EXTRA_DIST): Remove javaexec.sh.in.
118587         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
118588         * modules/csharpcomp-script (Files): Update.
118589         (configure.ac): Add AC_CONFIG_FILES invocation.
118590         (EXTRA_DIST): Remove variable.
118592         * build-aux/csharpexec.sh.in: New file, moved from lib/.
118593         * modules/csharpexec (Files): Update.
118594         (configure.ac): Add AC_CONFIG_FILES invocation.
118595         (EXTRA_DIST): Remove csharpexec.sh.in.
118597 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118599         Sync from coreutils.
118601         Add POSIX ACL support
118602         * lib/acl.h (copy_acl, set_acl): Add declarations.
118603         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
118604         systems other than Linux.
118605         (chmod_or_fchmod): New function: use fchmod when possible,
118606         and chmod otherwise.
118607         (file_has_acl): Add a POSIX ACL implementation, with a
118608         Linux-specific subcase.
118609         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
118610         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
118611         acls are unsupported.
118612         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
118613         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
118614         are unsupported.
118616 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
118618         Sync from coreutils.
118619         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
118621 2006-01-07  Bruno Haible  <bruno@clisp.org>
118623         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
118624         gl_EARLY.
118626 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118628         * lib/strftime.c (tzname): Don't declare if it is already #defined.
118629         Problem reported for Mingw by Mark Junker.
118631 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
118633         * README: Gnulib normally doesn't generate a tarball.
118635 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
118637         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
118638         long int, not int, for nanosecond counts, so that people who are
118639         used to POSIX struct timespec won't be surprised.  Reported by Jim
118640         Meyering.
118642 2005-12-28  Bruno Haible  <bruno@clisp.org>
118644         * build-aux/config.rpath: Update from GNU gettext.
118646 2005-12-16  Jim Meyering  <jim@meyering.net>
118648         * modules/fprintftime: New module.
118649         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
118651 2005-12-16  Jim Meyering  <jim@meyering.net>
118653         * m4/fprintftime.m4: New file.
118655 2005-12-16  Jim Meyering  <jim@meyering.net>
118657         * lib/fprintftime.c, lib/fprintftime.h: New files.
118659 2005-12-15  Simon Josefsson  <jas@extundo.com>
118661         * modules/socklen (configure.ac): Fix M4 macro name, to align with
118662         new m4/socklen.m4.
118664 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118666         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
118667         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
118669 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
118671         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
118672         * lib/argp-help.c (fill_in_uparams): Check if the constructed
118673         struct uparams is valid. Fall back to the default values if it is
118674         not.
118676 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118678         * modules/argp (Files): Add argp-pin.c
118679         (Depends-on): dirname
118680         (lib_SOURCES): Add argp-pin.c
118682 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118684         * m4/argp.m4:  Check if program_invocation_name and
118685         program_invocation_short_name are declared and define appropriate
118686         macros if they are not.
118688 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
118690         * lib/argp-help.c (__argp_base_name): New function
118691         (__argp_short_program_name): Rewrite using __argp_base_name
118692         * lib/argp-namefrob.h: Define program_invocation_name and
118693         program_invocation_short_name if requested
118694         (__argp_base_name): Add prototype
118695         * lib/argp-parse.c (argp_def): Use gettext wrappers
118696         (argp_default_parser): Use __argp_base_name
118697         * lib/argp-pin.c: New file. Defines program_invocation_name and
118698         program_invocation_short_name on systems that lack them.
118700 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118702         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
118703         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118704         porting problem reported by Georg Schwarz in
118705         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118707 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
118709         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
118710         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
118711         porting problem reported by Georg Schwarz in
118712         <http://lists.gnu.org/r/bug-coreutils/2005-12/msg00083.html>.
118714 2005-12-05  Bruno Haible  <bruno@clisp.org>
118716         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
118717         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
118718         Reported by Mark Junker <mjscod@gmx.de>.
118720 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
118722         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
118723         Use implementation from Albert Chin, with some
118724         comments/corrections by Stepan Kasal and myself.
118726 2005-12-02  Bruno Haible  <bruno@clisp.org>
118728         * gnulib-tool (func_import): Accept GPLed build tool modules when
118729         --lgpl is given.
118730         * modules/csharpcomp-script: New file.
118731         * modules/csharpcomp: Depend on it.
118732         * modules/javacomp-script: New file.
118733         * modules/javacomp: Depend on it.
118734         Suggested by Simon Josefsson.
118736 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
118738         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
118739         statement, to work around an HP-UX 10.20 compiler bug reported by
118740         Peter O'Gorman.
118742 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118744         * modules/savedir (Depends-on): Add openat.
118746 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
118748         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
118749         (uintmax_t) [defined uintmax_t]: Do not declare.
118750         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
118751         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
118752         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
118753         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
118754         sake of portability to weird hosts that C allows (though we don't
118755         know of any practical examples).
118757         * lib/savedir.h (fdsavedir): New decl.
118758         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
118759         contains most of the former guts of savedir.
118760         (savedir): Use savedirstream.
118761         Include "openat.h".
118763 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
118765         * modules/obstack (Files): Add m4/ulonglong.m4.
118766         Problem reported by Davide Angelocola.
118768 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
118770         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
118771         coreutils no longer futzes with rounding modes.
118773 2005-11-14  Jim Meyering  <jim@meyering.net>
118775         * lib/mkstemp-safer.c: Include <config.h>, required for possible
118776         replacement of mkstemp.
118778 2005-11-10  Simon Josefsson  <jas@extundo.com>
118780         * lib/readline.c: Remove EOL.
118782 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118784         * modules/gethrxtime (Depends-on): Add gettime.
118786 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118788         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
118789         or gettimeofday; no longer needed.
118791 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
118793         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
118794         time business.
118795         (gethrxtime) [! (HAVE_NANOUPTIME
118796         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
118797         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
118798         our own approximation.
118800 2005-11-08  Eric Blake  <ebb9@byu.net>
118802         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118804 2005-11-08  Eric Blake  <ebb9@byu.net>
118806         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
118808 2005-11-04  Bruno Haible  <bruno@clisp.org>
118810         * gnulib-tool: Implement --update mode.
118812 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118814         Fix porting problem reported by Theodoros V. Kalamatianos.
118815         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
118816         Don't assume that futimes failing means we must fail.
118818 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
118820         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
118821         variables to suggest the intended function of the PATH_MAX check.
118823 2005-10-30  Kean Johnston  <jkj@sco.com>
118825         Trivial changes to support SCO systems.
118826         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
118827         as PATH_MAX.
118828         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
118829         where __ptr is null when no I/O is pending.
118831 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
118833         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
118834         leave errno alone.  Problem reported by Dmitry V. Levin.
118836 2005-10-28  Simon Josefsson  <jas@extundo.com>
118838         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
118839         Test more.
118841         * tests/test-gc-md2.c, tests/test-md2.c: New files.
118843         * modules/md2, modules/md2-tests: New files.
118845 2005-10-28  Simon Josefsson  <jas@extundo.com>
118847         * m4/inet_ntop.m4: More tests.
118849         * m4/gc-md2.m4, md2.m4: New file.
118851 2005-10-28  Simon Josefsson  <jas@extundo.com>
118853         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
118854         "restrict" keywords, as per POSIX.  Protect the function
118855         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
118856         Don't use K&R prototypes.  Check the sprintf return values.
118857         Re-define EAFNOSUPPORT if not present.  Indent.
118859         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
118860         suggested by Bruno Haible <bruno@clisp.org>.
118862         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
118864         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
118866         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
118867         libgcrypt).
118869         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
118871         * lib/md2.h, lib/md2.c: New files.
118873 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
118875         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
118876         errno alone.  Problem reported by Frederic Jolliton.
118878 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
118880         * modules/verify (License): Change from GPL to LGPL.  This is a
118881         tiny module and there are apparently near-equivalents that are
118882         under the BSD license.
118884 2005-10-24  Simon Josefsson  <jas@extundo.com>
118886         * modules/sha1: Relicense to LGPL.
118888 2005-10-24  Simon Josefsson  <jas@extundo.com>
118890         * lib/md4.h: Shrink buffer size, now that we changed the type.
118892 2005-10-23  Simon Josefsson  <jas@extundo.com>
118894         * gnulib-tool (func_import): Fix --tests-base.
118896 2005-10-22  Simon Josefsson  <jas@extundo.com>
118898         * modules/arcfour (Depends-on): Need stdint.
118900 2005-10-22  Simon Josefsson  <jas@extundo.com>
118902         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
118903         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
118905 2005-10-22  Simon Josefsson  <jas@extundo.com>
118907         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
118908         suggested by Bruno Haible <bruno@clisp.org>.
118910 2005-10-22  Simon Josefsson  <jas@extundo.com>
118912         * lib/crc.h: Include stddef.h, for size_t.
118914 2005-10-22  Simon Josefsson  <jas@extundo.com>
118916         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
118917         arcfour_context struct (simplify test vector testing in GNU
118918         Shishi).
118920 2005-10-21  Simon Josefsson  <jas@extundo.com>
118922         * modules/des, modules/des-tests: New files.
118924         * modules/gc-des, modules/gc-des-tests: New files.
118926         * tests/test-des.c, tests/test-gc-des.c: New file.
118928 2005-10-21  Simon Josefsson  <jas@extundo.com>
118930         * modules/arctwo, modules/arctwo-tests: New files.
118932         * tests/test-arctwo.c: New file.
118934         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
118936         * tests/test-gc-arctwo.c: New file.
118938 2005-10-21  Simon Josefsson  <jas@extundo.com>
118940         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
118941         Bruno Haible <bruno@clisp.org>.
118943         * m4/gc-des.m4: New file.
118945 2005-10-21  Simon Josefsson  <jas@extundo.com>
118947         * m4/arctwo.m4: New file.
118949         * m4/gc-arctwo.m4: New file.
118951 2005-10-21  Simon Josefsson  <jas@extundo.com>
118953         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
118954         block.
118956 2005-10-21  Simon Josefsson  <jas@extundo.com>
118958         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
118959         <bruno@clisp.org>.
118961         * lib/hmac-sha1.c (hmac_sha1): Likewise.
118963         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
118964         Bruno Haible <bruno@clisp.org>.
118966         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
118967         <bruno@clisp.org>.
118969 2005-10-21  Simon Josefsson  <jas@extundo.com>
118971         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
118973 2005-10-21  Simon Josefsson  <jas@extundo.com>
118975         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
118977 2005-10-21  Simon Josefsson  <jas@extundo.com>
118979         * lib/des.h, lib/des.c: New files.
118981         * lib/gc-gnulib.c: Support DES.c
118983 2005-10-21  Simon Josefsson  <jas@extundo.com>
118985         * lib/arctwo.h, lib/arctwo.c: New files.
118987         * lib/gc-gnulib.c: Support ARCTWO.
118989 2005-10-21  Simon Josefsson  <jas@extundo.com>
118991         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
118992         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
118994 2005-10-21  Simon Josefsson  <jas@extundo.com>
118996         * gnulib-tool (func_import, func_create_testdir): Define automake
118997         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
118998         Makefile.am snippet),
118999         suggested by Bruno Haible <bruno@clisp.org>.
119001         * modules/gc (Makefile.am): Use it.
119003 2005-10-21  Bruno Haible  <bruno@clisp.org>
119005         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
119006         patch.
119008 2005-10-19  Simon Josefsson  <jas@extundo.com>
119010         * tests/test-gc-rijndael.c: New file.
119012         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
119014 2005-10-19  Simon Josefsson  <jas@extundo.com>
119016         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
119017         interface too.
119019 2005-10-19  Simon Josefsson  <jas@extundo.com>
119021         * tests/test-gc-arcfour.c: New file.
119023         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
119025 2005-10-19  Simon Josefsson  <jas@extundo.com>
119027         * modules/gc-md4, modules/gc-md4-tests: New file.
119029         * tests/test-gc-md4.c: New file.
119031 2005-10-19  Simon Josefsson  <jas@extundo.com>
119033         * m4/gc-md4.m4: New file.
119035 2005-10-19  Simon Josefsson  <jas@extundo.com>
119037         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
119038         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
119039         <kasal@ucw.cz>.
119041 2005-10-19  Simon Josefsson  <jas@extundo.com>
119043         * m4/gc-arcfour.m4: New file.
119045         * m4/gc-rijndael.m4: New file.
119047 2005-10-19  Simon Josefsson  <jas@extundo.com>
119049         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
119051 2005-10-19  Simon Josefsson  <jas@extundo.com>
119053         * lib/gc-gnulib.c: Support ARCFOUR.
119055 2005-10-19  Simon Josefsson  <jas@extundo.com>
119057         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
119058         support.
119060         * lib/gc.h: Add ECB enum type.
119062         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
119064 2005-10-18  Simon Josefsson  <jas@extundo.com>
119066         * tests/test-md5.c: New file.
119068         * modules/md5-tests: New file.
119070 2005-10-18  Simon Josefsson  <jas@extundo.com>
119072         * tests/test-md4.c: New file.
119074         * modules/md4, modules/md4-tests: New files.
119076 2005-10-18  Simon Josefsson  <jas@extundo.com>
119078         * m4/md4.m4: New file.
119080 2005-10-18  Simon Josefsson  <jas@extundo.com>
119082         * lib/md4.h, lib/md4.c: New files, based on md5.?.
119084 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
119086         * gnulib-tool (func_create_testdir): Omit the second check whether
119087         BUILT_SOURCES in nonempty.
119089 2005-10-17  Simon Josefsson  <jas@extundo.com>
119091         * tests/test-rijndael.c: New file.
119093 2005-10-17  Simon Josefsson  <jas@extundo.com>
119095         * modules/sha1: Depend on stdint instead of md5.
119097         * modules/md5: Depend on stdint, remove uint32_t.
119099 2005-10-17  Simon Josefsson  <jas@extundo.com>
119101         * modules/gc-sha1-tests: New file.
119103         * tests/test-gc-sha1.c: New file.
119105 2005-10-17  Simon Josefsson  <jas@extundo.com>
119107         * m4/md5.m4: Remove call to uint32_t.m4.
119109 2005-10-17  Simon Josefsson  <jas@extundo.com>
119111         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
119113         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
119114         md5.h.
119116         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
119118         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
119120 2005-10-17  Simon Josefsson  <jas@extundo.com>
119122         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
119124 2005-10-17  Simon Josefsson  <jas@extundo.com>
119126         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
119128 2005-10-17  Simon Josefsson  <jas@extundo.com>
119130         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
119132         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
119134 2005-10-17  Bruno Haible  <bruno@clisp.org>
119136         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
119137         that it can also be used in a test.
119139 2005-10-16  Bruno Haible  <bruno@clisp.org>
119141         * gnulib-tool (func_emit_tests_Makefile_am): Also define
119142         TESTS_ENVIRONMENT, so that individual tests can augment it.
119144         * gnulib-tool (func_create_testdir): Use an intermediate target for
119145         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
119146         macros, like $(ALLOCA_H), which cannot be passed through the command
119147         line.
119149 2005-10-15  Simon Josefsson  <jas@extundo.com>
119151         * modules/rijndael-tests: New file.
119153         * modules/rijndael: New file.
119155 2005-10-15  Simon Josefsson  <jas@extundo.com>
119157         * m4/rijndael.m4: New file.
119159 2005-10-15  Simon Josefsson  <jas@extundo.com>
119161         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
119163         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
119165 2005-10-14  Simon Josefsson  <jas@extundo.com>
119167         * tests/test-arcfour.c: New file.
119169         * modules/arcfour, modules/arcfour-tests: New files.
119171 2005-10-14  Simon Josefsson  <jas@extundo.com>
119173         * m4/arcfour.m4: New file.
119175 2005-10-14  Simon Josefsson  <jas@extundo.com>
119177         * lib/arcfour.h, lib/arcfour.c: New files.
119179 2005-10-14  Roland McGrath  <roland@redhat.com>
119181         Import from libc.  [BZ #1331]
119182         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
119183         macro argument.
119184         Reported by Matej Vela <vela@debian.org>.
119186 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119188         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
119189         include <wchar.h>; no longer needed.
119191 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
119193         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
119195 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
119196         and  Ulrich Drepper  <drepper@redhat.com>
119198         Import from libc.
119199         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
119200         instead of inline stream orientation test and two separate
119201         function calls.  Pay no attention to USE_IN_LIBIO.
119203 2005-10-13  Simon Josefsson  <jas@extundo.com>
119205         * modules/gc-hmac-md5-tests: New file.
119207         * tests/test-gc-hmac-sha1.c: New file.
119209         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
119211         * modules/gc-hmac-md5-tests: New file.
119213         * tests/test-gc-md5.c: New file.
119215         * modules/gc-md5-tests: New file.
119217 2005-10-13  Simon Josefsson  <jas@extundo.com>
119219         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
119220         Move memory allocation outside of loop.
119222 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
119224         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
119225         intermediate directory is in a read-only file system.  Problem
119226         reported by Eric Blake.
119228 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
119230         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
119232 2005-10-12  Simon Josefsson  <jas@extundo.com>
119234         * tests/test-hmac-sha1.c: New file.
119236         * modules/hmac-sha1-tests: New file.
119238         * modules/hmac-sha1: New file.
119240 2005-10-12  Simon Josefsson  <jas@extundo.com>
119242         * modules/gc-sha1: New file.
119244 2005-10-12  Simon Josefsson  <jas@extundo.com>
119246         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
119248         * tests/test-gc-pbkdf2-sha1.c: New file.
119250 2005-10-12  Simon Josefsson  <jas@extundo.com>
119252         * modules/gc-md5, modules/gc-hmac-md5: New files.
119254         * modules/gc (Files): Remove md5, memxor and hmac files.
119256 2005-10-12  Simon Josefsson  <jas@extundo.com>
119258         * m4/gc-pbkdf2-sha1.m4: New file.
119260         * m4/gc-hmac-sha1.m4: New file.
119262         * m4/gc-sha1: New file.
119264         * m4/hmac-sha1.m4: New file.
119266 2005-10-12  Simon Josefsson  <jas@extundo.com>
119268         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
119270         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
119272 2005-10-12  Simon Josefsson  <jas@extundo.com>
119274         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
119275         suggested by Bruno Haible <bruno@clisp.org>.
119277 2005-10-12  Simon Josefsson  <jas@extundo.com>
119279         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
119281 2005-10-12  Simon Josefsson  <jas@extundo.com>
119283         * lib/gc-pbkdf2-sha1.c: New file.
119285         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
119287 2005-10-12  Simon Josefsson  <jas@extundo.com>
119289         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
119291         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
119293 2005-10-12  Simon Josefsson  <jas@extundo.com>
119295         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
119296         GC_USE_HMAC_MD5, respectively.
119298         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
119299         (gc_md5): Fix typo.
119301         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
119303         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
119305         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
119307 2005-10-12  Bruno Haible  <bruno@clisp.org>
119309         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
119310         Reported by Stepan Kasal <kasal@ucw.cz>.
119312 2005-10-11  Simon Josefsson  <jas@extundo.com>
119314         * tests/test-crc.c: New file.
119316         * modules/crc, modules/crc-tests: New files.
119318 2005-10-11  Simon Josefsson  <jas@extundo.com>
119320         * m4/crc.m4: New file.
119322 2005-10-11  Simon Josefsson  <jas@extundo.com>
119324         * lib/gc.h: Add gc_hash and gc_hash_buffer.
119326         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
119328         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
119330 2005-10-11  Simon Josefsson  <jas@extundo.com>
119332         * lib/crc.h, lib/crc.c: New files.
119334         * lib/gc.h (gc_hash_buffer): Add doc.
119336 2005-10-11  Bruno Haible  <bruno@clisp.org>
119338         * modules/c-strcasestr: New file.
119339         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
119341 2005-10-11  Bruno Haible  <bruno@clisp.org>
119343         * modules/c-strcase: New file.
119344         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
119346 2005-10-11  Bruno Haible  <bruno@clisp.org>
119348         * lib/strcasecmp.c: Include limits.h.
119349         (strcasecmp): Avoid integer overflow on exotic platforms.
119350         * lib/strncasecmp.c: Include limits.h.
119351         (strncasecmp): Avoid integer overflow on exotic platforms.
119352         Reported by Paul Eggert.
119354 2005-10-11  Bruno Haible  <bruno@clisp.org>
119356         * lib/c-strcasestr.h: New file, from GNU gettext.
119357         * lib/c-strcasestr.c: New file, from GNU gettext.
119359 2005-10-11  Bruno Haible  <bruno@clisp.org>
119361         * lib/c-strcase.h: New file, from GNU gettext.
119362         * lib/c-strcasecmp.c: New file, from GNU gettext.
119363         * lib/c-strncasecmp.c: New file, from GNU gettext.
119365 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
119367         * modules/mempcpy (License): GPL -> LGPL.
119368         * modules/strchrnul (License): Likewise.
119369         * modules/sysexits (License): Likewise.
119371 2005-10-08  Simon Josefsson  <jas@extundo.com>
119373         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
119375 2005-10-07  Simon Josefsson  <jas@extundo.com>
119377         * m4/memxor.m4: Remove gl_C_RESTRICT call.
119379 2005-10-06  Simon Josefsson  <jas@extundo.com>
119381         * tests/test-hmac-md5.c: New file.
119383         * modules/hmac-md5-tests: New file.
119385         * modules/hmac-md5: New file.
119387 2005-10-06  Simon Josefsson  <jas@extundo.com>
119389         * m4/hmac-md5.m4: New file.
119391         * m4/memxor.m4: Require gl_C_RESTRICT.
119393 2005-10-06  Simon Josefsson  <jas@extundo.com>
119395         * lib/memxor.c (memxor): Avoid casts and warnings.
119397 2005-10-06  Simon Josefsson  <jas@extundo.com>
119399         * lib/hmac-md5.c: New file.
119401         * lib/hmac.h: New file.
119403 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
119405         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
119406         promotes to int, not unsigned int, to catch the AIX 5.3
119407         compiler bug.
119409 2005-10-05  Simon Josefsson  <jas@extundo.com>
119411         * modules/memxor: New file.
119413         * modules/iconv (Files): Move config.rpath to havelib, it is used
119414         there.
119416         * modules/havelib (Files): Add config.rpath.
119418 2005-10-05  Simon Josefsson  <jas@extundo.com>
119420         * m4/memxor.m4: New file.
119422 2005-10-05  Simon Josefsson  <jas@extundo.com>
119424         * lib/memxor.c (memxor): Fix compiler error.
119426         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
119427         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
119429         * lib/memxor.h, lib/memxor.c: New files.
119431         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
119432         we assume all systems have it, suggested by Jim Meyering
119433         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
119434         any systems lack sys/socket.h; mingw32 is known to lack it, but we
119435         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
119436         same reasons.
119438 2005-10-05  Simon Josefsson  <jas@extundo.com>
119440         * config/srclist.txt: Add glibc bug 1423 for md5.h.
119442 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
119444         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
119445         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
119446         needed, since the source code now assumes these .h files.
119448 2005-10-05  Derek Price  <derek@ximbiot.com>
119450         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
119452 2005-10-05  Bruno Haible  <bruno@clisp.org>
119454         * modules/stdint (License): Change to LGPL.
119456 2005-10-04  Simon Josefsson  <jas@extundo.com>
119458         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
119459         D. Baushke" <mdb@gnu.org>.
119461 2005-10-04  Bruno Haible  <bruno@clisp.org>
119463         * lib/verify.h (verify_true): Provide alternative definition for C++.
119465 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
119467         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
119468         (SSIZE_MAX): New macro, if not already defined.
119469         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
119470         than 2 GiB.
119472 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119474         Sync from coreutils.
119475         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
119476         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
119477         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
119478         ULLONG_MAX doesn't work with 2.7.2.1.
119480 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119482         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
119483         From Ben Pfaff.
119485         * modules/exclude (Depends-on): Depend on verify.
119486         * modules/strtoimax (Depends-on): Likewise.
119487         * modules/utimecmp (Depends-on): Likewise.
119489 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
119491         * lib/exclude.c: Include verify.h.
119492         (verify): Remove.  All callers changed to use verify.h's version.
119493         * lib/strtoimax.c: Likewise.
119494         * lib/utimecmp.c: Likewis.e
119496         Sync from coreutils.
119497         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
119498         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
119499         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
119500         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
119501         bother returning ENOSYS if settimeofday or stime fails; just let
119502         them return whatever errno they want to return.
119503         * lib/utimens.c: Include unistd.h, for dup2.
119504         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
119505         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
119507 2005-10-02  Jim Meyering  <jim@meyering.net>
119509         Sync from coreutils.
119510         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
119511         from glibc-2.2.5 that fails for read-only files.
119513 2005-10-02  Jim Meyering  <jim@meyering.net>
119515         Sync from coreutils.
119516         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
119517         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
119518         `#if HAVE_CONFIG_H'.
119519         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
119520         Remove AT_FDCWD test.
119521         Do not consume the fd unless successful.
119522         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
119523         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
119524         block, so that we don't even try to compile it if settimeofday is
119525         available.  This works around a compilation failure on OSF1 V5.1,
119526         due to stime requiring a `long int*' while tv_sec is `int'.
119528 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
119530         Sync from coreutils.
119531         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
119532         against `yes', rather than just testing for nonempty.
119534 2005-10-01  Simon Josefsson  <jas@extundo.com>
119536         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
119537         and Darwin.
119539         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
119540         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
119541         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
119542         freeaddrinfo and gai_strerror are declared by the POSIX headers.
119543         Check if struct addrinfo is declared.
119545 2005-10-01  Simon Josefsson  <jas@extundo.com>
119547         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
119548         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
119549         AI_* and EAI_* definitions.  Protect function declarations.
119551 2005-10-01  Jim Meyering  <jim@meyering.net>
119553         Sync from coreutils.
119555         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
119556         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
119557         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
119558         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119559         in the inet and nsl libraries.  Required on Solaris 5.7.
119561 2005-10-01  Jim Meyering  <jim@meyering.net>
119563         Sync from coreutils.
119564         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
119565         in the inet and nsl libraries.  Required on Solaris 5.7.
119567 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
119569         * lib/getdelim.c (getdelim): Remove unused variables.
119571 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
119573         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
119574         so that the code works even with ancient cpp.  Portability problem
119575         with GCC 2.7.2.1 reported by Thomas M.Ott.
119577 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
119579         * modules/regex (Depends-on): Add strcase.
119581         * modules/gethostname (Licence): Change from GPL to LGPL, since
119582         gethostname.c is a trivial implementation of a standard library
119583         function.
119584         * modules/poll (License): Change from GPL to LGPL, since it's
119585         derived from LGPL code.
119587 2005-09-27  Jim Meyering  <jim@meyering.net>
119589         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
119590         HAVE_CONFIG_H.
119592         * lib/intprops.h (signed_type_or_expr__): Define.
119593         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
119594         for unsigned types.
119596 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
119598         * lib/verify.h (verify_expr): Remove, replacing with:
119599         (verify_true): New macro that returns true instead of void.
119600         (verify_type__): Remove.
119601         (verify): Use verify_true rather than verify_type__.
119603 2005-09-26  Bruno Haible  <bruno@clisp.org>
119605         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
119606         is necessary.
119607         (lib_SOURCES): Remove mbchar.c.
119608         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
119609         (Files): Add m4/mbrtowc.m4.
119610         * modules/mbiter: Likewise.
119611         * modules/mbuiter: Likewise.
119613 2005-09-26  Bruno Haible  <bruno@clisp.org>
119615         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
119616         compile mbchar.c if they are not both present.
119617         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
119618         * m4/mbiter.m4 (gl_MBITER): Likewise.
119619         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
119620         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
119621         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
119623 2005-09-25  Jim Meyering  <jim@meyering.net>
119625         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
119626         also uses socklen_t.
119628 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
119630         * lib/utimens.c (ENOSYS): Define if not already defined.
119631         (futimens): Support having a null PATH if the file descriptor
119632         is nonnegative.
119634         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
119635         Remove.
119636         (__attribute): Define to empty unless GCC 3.1 or later.
119637         This works around a core dump on OpenBSD 3.4, which has GCC
119638         2.95.3, which dumps core when given __attribute__(()).  It also
119639         simplifies other tests, since we really don't want to bother with
119640         worrying about which ancient version of GCC supported what.
119641         Original problem reported by Yoann Vandoorselaere, with part of
119642         the fix suggested by Derek Price.
119644 2005-09-24  Jim Meyering  <jim@meyering.net>
119646         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
119647         so we can once again use a positive bitfield width of 1 -- now we
119648         don't have to explain why we were using a bitfield width of 2.
119650 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119652         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
119653         and similarly for the other external symbols.  Problem reported
119654         by James Gallager.
119656         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
119657         bug reported by Jim Meyering.
119659         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
119660         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
119661         not needed, since socklen is a prerequisite module.
119663 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
119665         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
119666         Problem reported by Eric Blake.
119667         (getaddrinfo): Initialize se so that it's not garbage.
119668         Redo internal storage allocation so that it doesn't make unportable
119669         assumptions about alignment.
119670         Fix a memory leak.
119672         * lib/utimens.c (futimens): Use futimesat if available.
119673         Prefer it to futimes since it doesn't have the futimes bug.
119675         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
119676         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
119677         Instead, declare a function that returns a pointer to an array,
119678         and use verify_type__ to declare the size of the array.
119679         Problem and germ of a solution reported by Bruno Haible.
119680         (verify_type__): Use 2, not 1, for bitfield size, to avoid
119681         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
119683 2005-09-23  Jim Meyering  <jim@meyering.net>
119685         Sync from coreutils.
119686         Correct build failure (socklen_t not defined) on at least
119687         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
119688         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
119690 2005-09-23  Jim Meyering  <jim@meyering.net>
119692         * modules/getaddrinfo (Depends-on): Add socklen.
119694 2005-09-23  Bruno Haible  <bruno@clisp.org>
119696         * tests/test-verify.c: New file.
119698 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119700         Sync from coreutils.
119702         * modules/argmatch (Depends-on): Add verify.
119703         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
119704         unistd-safer.
119705         * modules/save-cwd (Depends-on): Likewise.
119707         * modules/openat (Files): Add lib/openat-die.c.
119708         (Depends-on): Remove error, exitfail.
119709         Add dirname.
119711         * modules/verify: New file.
119712         * MODULES.html.sh (Diagnostics <assert.h>): New section,
119713         with "verify" module.
119715 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119717         Sync from coreutils.
119719         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
119720         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
119721         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
119722         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
119723         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
119724         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
119725         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
119726         Don't bother checking for string.h, stdlib.h, unistd.h.
119727         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
119728         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
119729         module's job.
119730         * m4/jm-macros.m4 (gl_MACROS): Likewise.
119731         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
119733         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
119734         (gl_GETDATE): Use it.
119736         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
119738 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119740         Sync from coreutils.
119742         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
119743         stat-time.h.
119744         * lib/argmatch.h: Include verify.h
119745         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
119746         (ARGMATCH_ASSERT): Remove; unused.
119747         * lib/canonicalize.c: Assume STDC_HEADERS.
119748         * lib/exclude.c: Include "strcase.h".
119749         * lib/regex_internal.h [!defined _LIBC]: Likewise.
119750         * lib/getusershell.c: Include stdio--.h rather than stdio.h
119751         and stdio-safer.h.
119752         (getusershell): Call fopen, not fopen_safer.
119753         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
119754         Do not include unistd-safer.h.
119755         (save_cwd): Don't call fd_safer; no longer needed
119756         now that we include fcntl--.h.
119758         * lib/getdate.y (relative_time): New type.
119759         (RELATIVE_TIME_0): New constant.
119760         (parser_control): Use relative_time instead of doing it ourselves.
119761         (%union): Add new relative_time rel member.
119762         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
119763         Now typeless.
119764         (relunit, relunit_snumber): Now of type rel.
119765         (zone, rel, relunit, get_date): Adjust to above changes.
119767         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
119768         Do not include unistd-safer.h.
119769         (getloadavg): Don't call fd_safer; no longer needed
119770         now that we include fcntl--.h.
119772         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
119773         (make_dir_parents): Treat ENOSYS like EEXIST.
119775         Improve quality of diagnostics on restore_cwd failure.
119776         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
119777         (make_dir_parents): Last arg is now int * (for errno), not bool *.
119778         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
119779         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
119780         each time through the loop.  Do not diagnose restore_cwd failure;
119781         that is the caller's job (and perhaps the caller does not care).
119783         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
119784         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
119785         If the file already exists but is not a directory, don't bother
119786         to try to make its parents.
119787         Close potential file descriptor leak if we can't chdir("/") (!).
119788         Don't always return true if chdir($PWD) fails; return true only
119789         if the requested action was done successfully (except for the
119790         chdir($PWD)).
119791         Don't log final directory unless we actually made it.
119792         Refactor to avoid duplicate code to fix up permissions.
119793         Don't attempt to fix up parent permissions if chdir($PWD) fails.
119795         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
119796         to make it a bit faster and (I hope) clearer.
119797         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
119798         Fix bug in formats like %2N.
119800         * lib/verify.h: New file.
119802 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
119804         Sync from coreutils.
119805         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
119807 2005-09-22  Jim Meyering  <jim@meyering.net>
119809         Sync from coreutils.
119811         * m4/lstat.m4 (gl_FUNC_LSTAT):
119812         Use AC_LIBSOURCES to require lstat.c and lstat.h.
119813         Remove obsolete comment.
119814         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
119815         * m4/xstrtod.m4: Likewise.
119817         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
119819 2005-09-22  Jim Meyering  <jim@meyering.net>
119821         Sync from coreutils.
119823         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
119825         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
119826         the .tm_year member, since otherwise gcc-4.0 would now warn about
119827         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
119829         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
119830         order to avoid an unsuppressible warning from gcc on 64-bit systems.
119832         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
119833         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
119834         when run in a time zone for which daylight savings time is in effect
119835         for the starting date.
119837         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
119838         stop us from restricting permissions of just-created absolute-named
119839         directories.
119840         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
119841         to restore initial working directory.
119842         * lib/mkdir-p.c (make_dir_parents): New parameter:
119843         different_working_dir, to tell caller if/when we change the working
119844         directory and are unable to return to the initial one.
119845         * lib/mkdir-p.h (make_dir_parents): Update prototype.
119846         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
119847         `return false'.  This fixes a bug introduced on 2004-07-30.
119849         * lib/openat.c (fdopendir): Be sure to close the supplied
119850         file descriptor before returning.  This makes our replacement
119851         implementation a little closer to Solaris's, where fdopendir
119852         ties the file descriptor to the returned DIR* pointer.
119853         * lib/openat.c (unlinkat): New function.
119854         * lib/openat.h (unlinkat): Add prototype.
119855         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
119856         (openat_restore_fail): Rename from openat_restore_die.
119857         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
119859         Provide an alternative to exiting immediately upon save_cwd or
119860         restore_cwd failure.  Now, an application can arrange e.g.,
119861         to perform a longjump in that case.
119862         * lib/openat.c: Include dirname.h.
119863         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
119864         (rpl_openat, fdopendir, fstatat): Call openat_save_die
119865         and openat_restore_die rather than calling error directly.
119866         Don't include "error.h" or "exitfail.h"; they're no longer needed.
119868         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
119869         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
119870         define.
119872         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
119873         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
119874                             int utc, int nanoseconds);
119875         Background:
119876         date should not have to allocate a megabyte of virtual memory to
119877         handle a format argument like +%1048575T.  When implemented with
119878         strftime, it must allocate such a buffer, use strftime to fill it
119879         in, print it, then free it.
119880         With fprintftime, it simply prints everything and exits.
119881         With no need for memory allocation, that's one fewer way to fail.
119882         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
119883         optional field width, not before, so we accept %9:z, not %:9z.
119884         (my_strftime): Be sure to use L_('x') for literals.
119886         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
119887         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
119888         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
119889         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
119890         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
119891         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
119892         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
119893         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
119894         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
119895         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
119896         * lib/xgethostname.c, lib/xreadlink.c:
119897         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
119899         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
119900         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
119901         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
119902         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
119903         and don't include <sys/file.h>).
119905 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
119907         Sync from coreutils.
119909         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
119910         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
119911         [!LDAV_DONE]: Avoid unused variable warning.
119913 2005-09-21  Bruno Haible  <bruno@clisp.org>
119915         * lib/unicodeio.h (unicode_to_mb): New declaration.
119917 2005-09-20  Derek Price  <derek@ximbiot.com>
119919         * lib/getaddrinfo.c: Don't include <netdb.h> included from
119920         getaddrinfo.h.
119922 2005-09-20  Bruno Haible  <bruno@clisp.org>
119924         * gnulib-tool: Remove trailing slashes from the values specified for
119925         --source-base, --m4-base, --tests-base, --aux-dir.
119926         Suggested by Simon Josefsson <jas@extundo.com>.
119928 2005-09-20  Bruno Haible  <bruno@clisp.org>
119930         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
119931         func_modules_to_filelist, func_import, func_create_testdir): Make all
119932         sorting results locale-independent, so that gnulib-cache.m4 doesn't
119933         change when gnulib-tool is invoked in a different locale.
119935 2005-09-19  Simon Josefsson  <jas@extundo.com>
119937         * m4/socklen.m4: Fix typo.
119939 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
119941         Use a consistent style for including <config.h>.
119942         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
119943         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
119944         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
119945         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
119946         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
119947         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
119948         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
119949         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
119950         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
119951         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
119952         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
119953         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
119954         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
119955         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
119956         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
119957         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
119958         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
119959         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
119960         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
119961         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
119962         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
119963         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
119964         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
119965         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
119966         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
119967         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
119968         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
119969         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
119970         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
119971         lib/xstrtoumax.c, lib/yesno.c:
119972         Standardize inclusion of config.h.
119973         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
119974         lib/inttostr.h:  Removed inclusion of config.h from header files.
119975         * lib/inttostr.c:  Adjusted in-tree users.
119976         * lib/timespec.h: Remove superfluous warning to include config.h.
119977         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
119978         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
119979         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
119980         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
119981         config.h with HAVE_CONFIG_H.
119983 2005-09-19  Jim Meyering  <jim@meyering.net>
119985         * modules/pathmax (License): Change to LGPL.
119987 2005-09-19  Derek Price  <derek@ximbiot.com>
119989         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
119991 2005-09-19  Bruno Haible  <bruno@clisp.org>
119993         * gnulib-tool (import): Provide default for --tests-base.
119995 2005-09-19  Bruno Haible  <bruno@clisp.org>
119997         * doc/quote.texi: New file, extracted from gnulib.texi.
119998         * doc/ctime.texi: New file, extracted from gnulib.texi.
119999         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
120000         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
120001         * doc/gnulib.texi: Include them.
120003 2005-09-18  Bruno Haible  <bruno@clisp.org>
120005         Portability fix.
120006         * gnulib-tool (func_readlink): New function.
120007         (func_ln_if_changed): Use it.
120009 2005-09-18  Bruno Haible  <bruno@clisp.org>
120011         * gnulib-tool: Support --with-tests also with --import.
120012         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
120013         (func_import): Use variables $testsbase and $inctests. Emit a
120014         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
120015         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
120016         SUBDIRS += $testsdir.
120017         (func_create_testdir): Update.
120019 2005-09-18  Bruno Haible  <bruno@clisp.org>
120021         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
120022         instead of $dry_run.
120023         (func_cp_if_changed, func_mv_if_changed): Remove functions.
120024         (func_ln_if_changed): Don't handle dry-run here.
120025         (func_import): In dry-run mode, detect more precisely which actions
120026         would be performed, and don't use "...ing" verbs.
120028 2005-09-18  Bruno Haible  <bruno@clisp.org>
120030         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
120031         (func_import): Use join on two temporary files instead of three nested
120032         loops, in order to determine which files are new or old.
120034 2005-09-18  Bruno Haible  <bruno@clisp.org>
120036         * gnulib-tool (func_import): Comment out code that spits out the
120037         new files with --dry-run.
120039 2005-09-18  Bruno Haible  <bruno@clisp.org>
120041         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
120043 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120045         * lib/stat-time.h: New file.
120046         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
120047         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
120048         in a different way.
120049         (timespec_cmp): New function.
120050         * lib/utimecmp.c: Include stat-time.h.
120051         (SYSCALL_RESOLUTION): Depend on whether various struct stat
120052         members exist, not on the obsolescent ST_MTIM_NSEC.
120053         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
120055 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120057         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
120059 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
120061         * MODULES.html.sh (File system functions): Add stat-time.
120062         * modules/stat-time: New file.
120063         * modules/timespec (Files): Remove m4/st_mtim.m4; this
120064         is now done in a different way, by the stat-time module.
120065         * modules/utimecmp (Depends-on): Add stat-time.
120067 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
120069         * m4/st_mtim.m4: Remove.  Superseded by...
120070         * m4/stat-time.m4: New file.
120071         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
120072         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
120074 2005-09-15  Derek Price  <derek@ximbiot.com>
120076         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
120078 2005-09-15  Derek Price  <derek@ximbiot.com>
120080         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
120081         * lib/regex_internal.c: Ditto, using this...
120082         (__GNUC_PREREQ): ...new macro.
120083         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
120084         using...
120085         (__GNUC_PREREQ): ...this new macro.
120087         * lib/strstr.h: Include string.h. Define strstr as a macro here.
120089 2005-09-15  Derek Price  <derek@ximbiot.com>
120090             Paul Eggert  <eggert@cs.ucla.edu>
120092         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
120093         changes, consolidating in...
120094         * lib/regex_internal.h: ...this file.
120096 2005-09-13  Jim Meyering  <jim@meyering.net>
120098         * lib/canon-host.c: Filter through gnu indent and reword comments
120099         slightly.
120100         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
120102 2005-09-13  Derek Price  <derek@ximbiot.com>
120104         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
120105         failure.
120106         Reported by Jim Meyering  <jim@meyering.net>.
120108 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
120110         * lib/base64.c: Typo.
120111         (base64_encode): Put b64str in initialized data section.
120113 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
120115         Merge glibc and coreutils changes into gnulib, plus a few
120116         extra fixes.
120117         * lib/md5.c: Use #error rather than a string.
120118         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
120119         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
120120         (__attribute__): Define to empty for non recent-GCC.
120121         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
120122         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
120123         Renamed from their non-__ counterparts, with new macros replacing
120124         them if not _LIBC.  Add __THROW attribute.
120125         (rol): Remove.
120126         (struct md5_ctx): Align buffer if using GCC.
120127         * lib/sha1.h (struct sha1_ctx): Likewise.
120128         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
120129         The old name was backwards.
120130         (NOTSWAP): Remove; not used.
120131         (rol): New macro, moved here from md5.h.
120132         (sha1_process_block): Remove a FIXME that doesn't make sense.
120134 2005-09-12  Derek Price  <derek@ximbiot.com>
120136         Return usable errors from canon-host.
120137         * lib/canon-host.h: New file.
120138         * lib/canon-host.c (canon_host): Wrap...
120139         (canon_host_r): ...this new function, which now relies exclusively on
120140         getaddrinfo.
120141         (ch_strerror): New function.
120142         (last_cherror): New global.
120143         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
120144         interface.
120145         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
120146         void *.
120147         (freeaddrinfo): Free ai->ai_canonname when set.
120149 2005-09-12  Derek Price  <derek@ximbiot.com>
120151         Make canon-host require getaddrinfo.
120152         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
120153         AC_LIBSOURCE canon-host.h.  Call...
120154         (gl_PREREQ_CANON_HOST): ...this new function, which requires
120155         gl_GETADDRINFO.
120156         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
120158 2005-09-12  Derek Price  <derek@ximbiot.com>
120160         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
120161         LGPL.
120162         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
120164 2005-09-12  Derek Price  <derek@ximbiot.com>
120166         * lib/gai_strerror.c: Include config.h when available.  Include
120167         getaddrinfo.h before other headers to test interface.
120168         Reported by Larry Jones <lawrence.jones@ugs.com>.
120170 2005-09-12  Derek Price  <derek@ximbiot.com>
120171             Paul Eggert  <eggert@cs.ucla.edu>
120173         * modules/glob (Files): Add glob-libc.h.
120175 2005-09-12  Derek Price  <derek@ximbiot.com>
120176             Paul Eggert  <eggert@cs.ucla.edu>
120178         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
120179         glob_.h, glob-libc.h.
120180         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
120182 2005-09-12  Derek Price  <derek@ximbiot.com>
120183             Paul Eggert  <eggert@cs.ucla.edu>
120185         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
120186         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
120187         protecting things that should be done only in gnulib contexts.
120188         * lib/glob_.h: New file, containing only the glob things needed for
120189         gnulib.
120190         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
120191         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
120192         (glob, globfree, glob_pattern_p): Now defined simply in terms of
120193         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
120194         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
120195         and to respect the namespace rules better.
120197 2005-09-08  Simon Josefsson  <jas@extundo.com>
120199         * modules/socklen: New file.
120201 2005-09-08  Simon Josefsson  <jas@extundo.com>
120203         * m4/socklen.m4: New file.
120205 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120207         * modules/utimens (Files): Add m4/utimbuf.m4, since
120208         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
120209         Reported by Sergey Poznyakoff.
120211 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120213         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
120214         definitions, since that's the preferred style in glibc.
120215         Fix a minor spacing issue, and update copyright notice to match
120216         glibc's.
120218 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
120220         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
120222 2005-09-06  Simon Josefsson  <jas@extundo.com>
120224         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
120225         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
120227 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120229         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
120230         warning.
120232 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
120234         * config/srclist.txt: Add glibc bug 1302.
120236 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
120238         Change bitset word type from unsigned int to unsigned long int,
120239         as this has better performance on typical 64-bit hosts.
120240         Port bitset code to hosts with unusual word sizes.
120241         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
120242         (build_collating_symbol):
120243         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
120244         argument is a bitset.  This is merely a style issue, but it makes
120245         it clearer that an entire array is expected.
120246         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
120247         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
120248         Port to the case where bitset_word is not the same as unsigned int.
120249         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120250         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
120251         Likewise.
120252         * lib/regexec.c (check_dst_limits_calc_pos_1,
120253         check_subexp_matching_top):
120254         (build_trtable, group_nodes_into_DFAstates):
120255         Likewise.
120256         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
120257         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
120258         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
120259         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
120260         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
120261         * lib/regcomp.c (optimize_subexps, lower_subexp):
120262         Work even if bitset_word has holes in its bitwise representation.
120263         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
120264         * lib/regexec.c (check_dst_limits_calc_pos_1,
120265         check_subexp_matching_top):
120266         Likewise.
120267         * lib/regex_internal.c (re_string_reconstruct):
120268         Don't assume UCHAR_MAX == 255.
120269         * lib/regex_internal.h (bitset_set_all): Likewise.
120270         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
120271         All uses changed.
120272         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
120273         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
120274         All uses changed.
120275         (BITSET_WORD_MAX): New macro.
120276         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
120277         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
120278         (bitset_empty, bitset_copy):
120279         Prefer sizeof (bitset) to multiplying it out ourselves.
120280         (bitset_not_merge): Remove; unused.
120281         (bitset_contain): Return bool, not unsigned int with one bit on.
120282         All callers changed.
120283         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
120284         alignment than re_node_set; do this by defining a new internal
120285         type struct dests_alloc and using it to allocate memory.
120287 2005-09-05  Bruno Haible  <bruno@clisp.org>
120289         * gnulib-tool (func_import): Fix comparison in handling of symbolic
120290         links.
120292 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
120294         * modules/size_max (Makefile.am): Add size_max.h
120296 2005-09-04  Derek Price  <derek@ximbiot.com>
120298         * gnulib-tool (func_import): Fix reversed $symbolic logic.
120300 2005-09-03  Simon Josefsson  <jas@extundo.com>
120302         * gnulib-tool: Fix typo.
120304 2005-09-03  Simon Josefsson  <jas@extundo.com>
120306         * config/srclist.txt: Add glibc bug 1293.
120308 2005-09-03  Derek Price  <derek@ximbiot.com>
120310         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
120311         From Larry Jones <lawrence.jones@ugs.com>.
120313 2005-09-02  Simon Josefsson  <jas@extundo.com>
120315         * modules/socklen: New file.
120317 2005-09-02  Simon Josefsson  <jas@extundo.com>
120319         * modules/havelib: New module.
120321         * modules/gettext, modules/iconv, modules/lock, modules/readline:
120322         Use havelib.
120324 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120326         Check for arithmetic overflow when calculating sizes, to prevent
120327         some buffer-overflow issues.  These patches are conservative, in the
120328         sense that when I couldn't determine whether an overflow was possible,
120329         I inserted a run-time check.
120330         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
120331         macros.
120332         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
120333         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
120334         (re_xnrealloc, re_x2nrealloc): New inline functions.
120335         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
120336         parse_bracket_exp):
120337         (build_equiv_class, build_charclass): Check for arithmetic overflow
120338         in size expression calculations.
120339         * lib/regex_internal.c (re_string_realloc_buffers):
120340         (build_wcs_upper_buffer, re_node_set_add_intersect):
120341         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
120342         (re_dfa_add_node, register_state): Likewise.
120343         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
120344         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
120345         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
120346         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
120348 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
120350         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
120351         m4/ulonglong.m4.  Problem reported by Martin Lambers.
120353 2005-09-02  Bruno Haible  <bruno@clisp.org>
120355         Support for lib vs. lib64 distinction on biarch platforms.
120356         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
120357         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
120358         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
120360 2005-09-02  Bruno Haible  <bruno@clisp.org>
120362         * gnulib-tool (import): In the other first-use case, provide defaults
120363         as well.
120365 2005-09-02  Bruno Haible  <bruno@clisp.org>
120367         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
120368         patches not yet found in the latest gettext release.
120370 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120372         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
120373         to avoid a collision with bits/local_lim.h in glibc.
120374         All uses changed.  Problem reported by Dmitry V. Levin in
120375         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
120377         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
120378         bugs in int versus size_t comparisons.
120379         (re_string_context_at): Fix bug where the code assumed that
120380         Idx is signed.
120382         Use bool where appropriate.
120383         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
120384         All callers changed.
120385         (calc_eclosure_iter): Likewise, for ROOT arg.
120386         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
120387         (build_charclass_op): Likewise, for NON_MATCH arg.
120388         * lib/regex_internal.c (re_string_allocate, re_string_construct):
120389         (re_string_construct_common): Likewise, for ICASE arg.
120390         * lib/regexec.c (re_search_2_stub, re_search_stub):
120391         Likewise, for RET_LEN arg.
120392         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
120393         (set_regs): Likewise, for FL_BACKTRACK arg.
120394         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
120395         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
120396         (calc_eclosure_iter, parse_bracket_exp):
120397         Use bool for internal variables that are booleans.
120398         * lib/regexec.c (re_search_internal, check_matching,
120399         proceed_next_node):
120400         (set_regs, build_sifted_states, sift_states_bkref):
120401         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
120402         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
120403         (find_collation_sequence_value):
120404         Likewise.
120405         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
120406         (re_node_set_compare):
120407         Return bool, not int. All callers changed.
120408         * lib/regexec.c (check_halt_node_context, check_dst_limits):
120409         (build_trtable, check_node_accept): Likewise.
120410         * lib/regex_internal.h: Include stdbool.h.
120412         Fix bugs uncovered when converting to bool.
120413         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
120414         failure instead of charging ahead blindly.
120415         * lib/regex_internal.c (register_state): Likewise.
120416         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
120417         for freeing internal storage.
120418         (group_nodes_into_DFA_states): Use unsigned int, not int, for
120419         bitset pieces used as boolean, to avoid undefined behavior
120420         on hosts that do int overflow checking.
120422 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
120424         * config/srclist.txt: Add glibc bugs 1285-1287.
120426 2005-09-01  Jim Meyering  <jim@meyering.net>
120428         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
120429         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
120430         Require gl_STAT_MACROS, too.
120432 2005-09-01  Bruno Haible  <bruno@clisp.org>
120434         * gnulib-tool (import): In the first-use case, provide defaults.
120436 2005-09-01  Bruno Haible  <bruno@clisp.org>
120438         * gnulib-tool (func_import): Remove the .tmp files.
120440 2005-09-01  Bruno Haible  <bruno@clisp.org>
120442         * gnulib-tool (func_import): Fix handling of symbolic links.
120444 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120446         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
120447         old glibc regex code mishandles strings longer than 2**31 bytes.
120448         This patch fixes this when the regex code is used in gnulib
120449         (i.e., outside glibc).
120451         This patch should not affect the use of the regex code inside
120452         glibc.  No doubt this problem also needs to be handled for glibc
120453         as well, but the result will be an incompatible change to the
120454         glibc ABI, and the old ABI will have to be supported too.  That
120455         can be the subject for another patch.
120457         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
120458         governing whether the rest of this patch is active.  By default,
120459         the macro is disabled and the patch has no effect.
120460         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
120461         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
120462         (struct re_pattern_buffer, re_search, re_search_2, re_match):
120463         (re_match_2, re_set_registers): Use the new types.
120464         * lib/regex_internal.h (Idx, re_hashval_t): New types.
120465         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
120466         New macros.
120467         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
120468         (re_string_context_at, bin_tree_t, re_dfastate_t):
120469         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
120470         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
120471         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
120472         (re_string_char_size_at, re_string_wchar_at):
120473         (re_string_elem_size_at):
120474         Use the new types and macros to port to 64-bit hosts.
120475         Use unsigned types for internal values, so that the code
120476         mostly works even for arrays larger than SSIZE_MAX.
120477         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
120478         (search_duplicated_node, calc_eclosure_iter, fetch_number):
120479         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
120480         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
120481         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
120482         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
120483         (calc_inveclosure, parse_dup_op, build_range_exp):
120484         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
120485         (fetch_number, create_token_tree, mark_opt_subexp):
120486         Likewise.
120487         * lib/regex_internal.c (re_string_construct_common,
120488         create_ci_newstate):
120489         (create_cd_newstate, re_string_allocate, re_string_construct):
120490         (re_string_realloc_buffers, build_wcs_upper_buffer):
120491         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
120492         (re_string_reconstruct, re_string_peek_byte_case):
120493         (re_string_fetch_byte_case, re_string_context_at):
120494         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
120495         (re_node_set_init_copy, re_node_set_add_intersect):
120496         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120497         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120498         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
120499         (re_acquire_state, re_acquire_state_context, register_state):
120500         Likewise.
120501         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
120502         search_cur_bkref_entry):
120503         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
120504         (re_search_internal, re_search_2_stub, re_search_stub)
120505         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
120506         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
120507         (update_cur_sifted_state, check_dst_limits):
120508         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120509         (check_subexp_limits, sift_states_bkref, merge_state_array):
120510         (check_subexp_matching_top, get_subexp, get_subexp_sub):
120511         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
120512         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
120513         (expand_bkref_cache, check_node_accept_bytes):
120514         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
120515         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
120516         (acquire_init_state_context, check_halt_node_context):
120517         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
120518         (sift_states_backward, clean_state_log_if_needed):
120519         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
120520         (find_recover_state, transit_state_sb, transit_state_mb):
120521         (transit_state_bkref, build_trtable, match_ctx_clean):
120522         Likewise.
120523         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
120524         to work around an assumption that REG_MISSING is negative.
120526         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
120527         (seek_collating_symbol_entry) [defined _LIBC]:
120528         (lookup_collation_sequence_value) [defined _LIBC]:
120529         (build_range_exp, build_collating_symbol) [defined _LIBC]:
120530         Use prototypes rather than old-style function definitions.
120531         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
120532         (transit_state_sb) [0]:
120533         (find_collation_sequence_value) [defined _LIBC]: Likewise.
120535         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
120536         rm_eo.
120538         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
120539         (optimize_subexps, lower_subexp):
120540         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
120541         since the signed shift might overflow.  Use 1u<<31 instead.
120542         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
120543         Likewise.
120544         * lib/regexec.c (check_dst_limits_calc_pos_1,
120545         check_subexp_matching_top): Likewise.
120547         * lib/regcomp.c (optimize_subexps, lower_subexp):
120548         Use CHAR_BIT rather than 8, for clarity.
120549         * lib/regexec.c (check_dst_limits_calc_pos_1):
120550         (check_subexp_matching_top): Likewise.
120551         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
120552         have to worry about portability issues when shifting it left.
120553         Remove no-longer-needed test for table_size > 0.
120554         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
120555         in a word, as the resulting behavior is undefined.
120556         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
120557         in one case, a <= should have been an <, and in another case the
120558         whole test was missing.
120559         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
120560         the standard name CHAR_BIT.
120561         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
120562         this is not true on one's complement and signed-magnitude hosts.
120564         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
120565         next_last_offset.
120566         (struct re_dfa_t): Remove unused member states_alloc.
120567         * lib/regcomp.c (init_dfa): Don't initialize unused members.
120569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120571         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
120572         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
120573         and large-file glibc and in 32-bit large-file Solaris.
120575 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120577         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
120578         lengths fit in regoff_t; this isn't true if regoff_t is the same
120579         width as size_t.
120580         * lib/regex.c (re_search_internal): 5th arg is LAST_START
120581         (= START + RANGE) instead of RANGE.  This avoids overflow
120582         problems when regoff_t is the same width as size_t.
120583         All callers changed.
120584         (re_search_2_stub): Check for overflow when adding the
120585         sizes of the two strings.
120586         (re_search_stub): Check for overflow when adding START
120587         to RANGE; if it occurs, substitute the extreme value.
120589 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
120591         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
120593 2005-08-31  Jim Meyering  <jim@meyering.net>
120595         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
120596         a pointer-to-const.
120597         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
120598         (register_state): Likewise.
120599         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
120600         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
120601         (group_nodes_into_DFAstates): Likewise.
120603 2005-08-31  Jim Meyering  <jim@meyering.net>
120605         * check-module: Add a FIXME comment.
120607 2005-08-31  Eric Blake  <ebb9@byu.net>
120609         * modules/unistd-safer (Files): Add unistd--.h.
120610         * modules/stdio-safer (Files): Add stdio--.h.
120612 2005-08-31  Derek Price  <derek@ximbiot.com>
120614         * lib/getdelim.c (getdelim): Return EOF on EOF.
120615         Reported by Larry Jones <lawrence.jones@ugs.com>.
120617 2005-08-31  Bruno Haible  <bruno@clisp.org>
120619         Avoid unnecessary diffs in the generated lib/Makefile.am.
120620         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
120621         the generated files.
120622         (func_import): Don't set cmd.
120624 2005-08-31  Bruno Haible  <bruno@clisp.org>
120626         * lib/strstr.c: Include <stddef.h>, for NULL.
120627         * lib/strcasestr.c: Likewise.
120628         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
120630 2005-08-31  Bruno Haible  <bruno@clisp.org>
120632         * gnulib-tool: New option --macro-prefix.
120633         (func_import): Use macro_prefix.
120634         (import): Handle option --macro-prefix.
120636 2005-08-31  Bruno Haible  <bruno@clisp.org>
120638         * gnulib-tool (import): Rename most ac_* variables to cached_*.
120639         Also use new variables cached_lgpl, cached_libtool.
120641 2005-08-31  Bruno Haible  <bruno@clisp.org>
120643         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
120644         always instantiating them.
120646 2005-08-31  Bruno Haible  <bruno@clisp.org>
120648         * gnulib-tool (func_import): Read the previous cached settings
120649         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
120650         earlier added by gnulib but are now dropped. Warn when a gnulib file
120651         overwrites a non-gnulib file.
120653 2005-08-31  Bruno Haible  <bruno@clisp.org>
120655         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
120656         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
120657         projects that don't keep autogenerated files in CVS. Put into
120658         actioncmd only the specified modules, not the transitive closure.
120660 2005-08-31  Bruno Haible  <bruno@clisp.org>
120662         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
120663         Create directories that shall be filled.
120664         (import): Don't look for gl_* macros in configure.ac. Recurse across
120665         all directories containing a gnulib-cache.m4 files, if meaningful.
120667 2005-08-31  Bruno Haible  <bruno@clisp.org>
120669         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
120670         (import): Set seen_libtool when we see gl_LIBTOOL.
120672 2005-08-31  Bruno Haible  <bruno@clisp.org>
120674         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
120675         declaration macro definitions from generated gnulib.m4.
120677 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
120679         * lib/iconvme.h: Add prototype for iconv_alloc.
120681 2005-08-29  Simon Josefsson  <jas@extundo.com>
120683         * lib/iconvme.c: Fix errno.
120685 2005-08-29  Bruno Haible  <bruno@clisp.org>
120687         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
120688         that it works when the directory contains spaces.
120690 2005-08-29  Bruno Haible  <bruno@clisp.org>
120692         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
120694 2005-08-29  Bruno Haible  <bruno@clisp.org>
120696         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
120697         Emit more advice.
120699 2005-08-29  Bruno Haible  <bruno@clisp.org>
120700         and Stepan Kasal  <kasal@ucw.cz>
120702         * check-module: If more parameters are given, check each of them
120703         separately; add more exceptions, as noted by Jim Meyering.
120704         (check_module): New procedure.
120705         (%exempt_header): Now contains all exceptions.
120707 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
120709         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
120711 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
120713         * lib/iconvme.c: Split iconv_string into iconv_alloc.
120715 2005-08-28  Bruno Haible  <bruno@clisp.org>
120717         * m4/gnulib-tool.m4: New file.
120719 2005-08-27  Jim Meyering  <jim@meyering.net>
120721         * modules/unistd-safer (Files): Add pipe-safer.c.
120722         * modules/fcntl-safer (Files): Add creat-safer.c.
120724 2005-08-27  Jim Meyering  <jim@meyering.net>
120726         * m4/stdlib-safer.m4: New file.  From coreutils.
120727         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
120728         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
120729         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
120730         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
120731         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
120733 2005-08-27  Jim Meyering  <jim@meyering.net>
120735         * lib/fopen-safer.c: Merge minor changes from coreutils.
120736         * lib/dup-safer.c: Likewise.
120737         * lib/fd-safer.c: Likewise.
120739         Merge from coreutils.
120740         * lib/stdio--.h: New file.
120741         * lib/stdlib--.h: New file.
120742         * lib/mkstemp-safer.c: New file.
120744         GNU tar needs these.
120745         * lib/pipe-safer.c: New file.
120746         * lib/creat-safer.c: New file.
120747         * lib/fcntl--.h (creat): Define to creat_safer.
120748         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
120749         * lib/unistd--.h (pipe): Define to pipe_safer.
120750         * lib/unistd-safer.h: Declare pipe_safer.
120752 2005-08-26  Simon Josefsson  <jas@extundo.com>
120754         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
120755         Haible <bruno@clisp.org>.
120757 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
120759         * lib/regex_internal.h: Remove all references to
120760         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
120761         or better.
120762         (bitset_not, bitset_merge, bitset_not_merge):
120763         (bitset_mask, re_string_allocate, re_string_construct):
120764         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
120765         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
120766         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
120767         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
120768         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
120769         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
120770         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
120771         (re_acquire_state_context):
120772         Remove unnecessary forward decls.
120773         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
120774         Put __attribute at function definition,
120775         now that the function decl has been removed.
120776         * lib/regex_internal.c (re_string_peek_byte_case):
120777         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
120778         Likewise.
120780 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
120782         * m4/regex.m4: Add AC_PREREQ(2.50).
120783         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
120785 2005-08-25  Simon Josefsson  <jas@extundo.com>
120787         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
120788         __fsetlocking.
120790 2005-08-25  Simon Josefsson  <jas@extundo.com>
120792         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
120793         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
120794         GLIBC specific code.
120796 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120798         Make regex safe for g++.  This fixes one real bug (an "err"
120799         that should have been "*err").  g++ problem reported by
120800         Sam Steingold.
120801         * lib/regex_internal.h (re_calloc): New macro, consistent with
120802         re_malloc etc.  All callers of calloc changed to use re_calloc.
120803         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
120804         not int.  All callers changed.
120805         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
120806         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
120807         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
120808         (find_recover_state): Change "err" to "*err"; this fixes what
120809         appears to be a real bug.
120810         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
120811         versus int.
120813 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120815         * modules/regex (Depends-on): Add malloc, since the code
120816         assumes that !malloc(0) means failure.
120818 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120820         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
120822         alloca modernization/simplification for regex.
120823         * lib/regex.c: Remove portability cruft for alloca.  This no longer
120824         needs to be at the start of the file, and can be moved into
120825         regex_internal.h and simplified.
120826         * lib/regex_internal.h: Include <alloca.h>.
120827         (__libc_use_alloca) [!defined _LIBC]: New macro.
120828         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
120829         now works outside glibc.
120831 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
120833         * config/srclist.txt: Add glibc bugs 1241, 1245.
120835 2005-08-25  Jim Meyering  <jim@meyering.net>
120837         * lib/open-safer.c: Include <config.h>.
120838         Otherwise, we'd lose LARGEFILE support in any file using
120839         e.g. "fcntl--.h"
120841 2005-08-25  Bruno Haible  <bruno@clisp.org>
120843         * m4/minmax.m4: Require autoconf 2.52.
120844         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
120845         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
120846         alternatives of translit over the alphabet.
120847         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
120849 2005-08-24  Simon Josefsson  <jas@extundo.com>
120851         * tests/test-getpass.c: New file.
120853 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120855         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
120856         for GNU regex features.
120858 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
120860         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
120861         * lib/regex.h (regerror): Likewise.
120863         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
120864         requires this.  (The code never needed it.)
120866         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
120867         All uses of recently-renamed identifiers changed to use the new,
120868         POSIX-compliant names.  The code will build and run just fine
120869         without these changes, but it's better to eat our own dog food
120870         and use the standard-conforming names.
120872         * lib/regex.h: Fix a multitude of POSIX name space violations.
120873         These changes have an effect only for programs that define
120874         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
120875         do not change anything for programs compiled in the normal way.
120876         Also, there is no effect on the ABI.
120878         (_REGEX_SOURCE): New macro.
120879         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
120880         defined and _GNU_SOURCE is not; this fixes a name space violation.
120882         Rename the following macros to obey POSIX requirements.
120883         The old names are still visible as macros if _REGEX_SOURCE is defined.
120884         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
120885         RE_BACKSLASH_ESCAPE_IN_LISTS.
120886         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
120887         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
120888         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
120889         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
120890         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
120891         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
120892         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
120893         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
120894         (REG_INTERVALS): renamed from RE_INTERVALS.
120895         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
120896         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
120897         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
120898         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
120899         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
120900         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
120901         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
120902         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
120903         RE_UNMATCHED_RIGHT_PAREN_ORD.
120904         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
120905         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
120906         (REG_DEBUG): renamed from RE_DEBUG.
120907         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
120908         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
120909         unusual, since we can't clash with the POSIX REG_ICASE.
120910         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
120911         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
120912         (REG_NO_SUB): renamed from RE_NO_SUB.
120913         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
120914         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
120915         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
120916         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
120917         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
120918         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
120919         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
120920         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
120921         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
120922         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
120923         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
120924         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
120925         RE_SYNTAX_POSIX_MINIMAL_BASIC.
120926         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
120927         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
120928         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
120929         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
120930         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
120931         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
120932         (REG_FIXED): Renamed from REGS_FIXED.
120933         (REG_NREGS): Renamed from RE_NREGS.
120935         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
120936         of other REG_* macros, since POSIX says the user is allowed to
120937         #undef these macros selectively.
120939         (reg_errcode_t): Update comment stating what other tables need
120940         to be consistent.
120942         Rename the following enum values to obey POSIX requirements.
120943         The old names are still visible as macros.
120944         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
120945         is not defined, since GNU is supposed to be a superset of POSIX as
120946         much as possible, and since we want reg_errcode_t to be a signed
120947         type for implementation consistency.
120948         (_REG_NOERROR): Renamed from REG_NOERROR.
120949         (_REG_NOMATCH): Renamed from REG_NOMATCH.
120950         (_REG_BADPAT): Renamed from REG_BADPAT.
120951         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
120952         (_REG_ECTYPE): Renamed from REG_ECTYPE.
120953         (_REG_EESCAPE): Renamed from REG_EESCAPE.
120954         (_REG_ESUBREG): Renamed from REG_ESUBREG.
120955         (_REG_EBRACK): Renamed from REG_EBRACK.
120956         (_REG_EPAREN): Renamed from REG_EPAREN.
120957         (_REG_EBRACE): Renamed from REG_EBRACE.
120958         (_REG_BADBR): Renamed from REG_BADBR.
120959         (_REG_ERANGE): Renamed from REG_ERANGE.
120960         (_REG_ESPACE): Renamed from REG_ESPACE.
120961         (_REG_BADRPT): Renamed from REG_BADRPT.
120962         (_REG_EEND): Renamed from REG_EEND.
120963         (_REG_ESIZE): Renamed from REG_ESIZE.
120964         (_REG_ERPAREN): Renamed from REG_ERPAREN.
120965         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
120966         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
120967         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
120968         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
120970         (_REG_RE_NAME, _REG_RM_NAME): New macros.
120971         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
120972         changed.  But support the old name if the new one is not defined
120973         and if _REGEX_SOURCE.
120975         Change the following member names in struct re_pattern_buffer.
120976         The old names are still supported if !_REGEX_SOURCE.
120977         The new names are always supported, regardless of _REGEX_SOURCE.
120978         (re_buffer): Renamed from buffer.
120979         (re_allocated): Renamed from allocated.
120980         (re_used): Renamed from used.
120981         (re_syntax): Renamed from syntax.
120982         (re_fastmap): Renamed from fastmap.
120983         (re_translate): Renamed from translate.
120984         (re_can_be_null): Renamed from can_be_null.
120985         (re_regs_allocated): Renamed from regs_allocated.
120986         (re_fastmap_accurate): Renamed from fastmap_accurate.
120987         (re_no_sub): Renamed from no_sub.
120988         (re_not_bol): Renamed from not_bol.
120989         (re_not_eol): Renamed from not_eol.
120990         (re_newline_anchor): Renamed from newline_anchor.
120992         Change the following member names in struct re_registers.
120993         The old names are still supported if !_REGEX_SOURCE.
120994         The new names are always supported, regardless of _REGEX_SOURCE.
120995         (rm_num_regs): Renamed from num_regs.
120996         (rm_start): Renamed from start.
120997         (rm_end): Renamed from end.
120999         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
121000         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
121001         Prepend __ to parameter names.
121003         Undo yesterday's changes.
121005 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
121007         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
121008         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
121009         lib/regex.c.
121011 2005-08-24  Jim Meyering  <jim@meyering.net>
121013         Sync from coreutils.
121014         * m4/fcntl-safer.m4: New file.
121016         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
121017         and object files for this module.
121019 2005-08-24  Jim Meyering  <jim@meyering.net>
121021         Sync from coreutils.
121022         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
121024 2005-08-24  Jim Meyering  <jim@meyering.net>
121026         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
121027         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
121029 2005-08-24  Jim Meyering  <jim@meyering.net>
121031         * modules/fcntl-safer: New module.
121032         * modules/fts (Depends-on): Add fcntl-safer.
121033         * MODULES.html.sh (File descriptor based Input/Output):
121034         Add fcntl-safer.
121036 2005-08-24  Bruno Haible  <bruno@clisp.org>
121038         Support for unit test modules.
121039         * modules/README: Mention tests modules.
121040         * modules/TEMPLATE-TESTS: New file.
121041         * gnulib-tool: New options --extract-tests-module, --with-tests and
121042         --tests-base (unused for the moment).
121043         (testsbase, inctests): New variables.
121044         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
121045         (func_verify_module): Exclude TEMPLATE-TESTS.
121046         (func_verify_nontests_module, func_verify_tests_module): New functions.
121047         (func_get_dependencies): Add implicit dependency for tests modules.
121048         (func_get_tests_module): New function.
121049         (func_modules_transitive_closure): When --with-tests was specified,
121050         include the unit tests as well, unless explicitly avoided.
121051         (func_emit_lib_Makefile_am): Ignore the tests modules here.
121052         (func_emit_tests_Makefile_am): New function.
121053         (func_create_testdir): When --with-tests was specified, emit a
121054         tests/ directory.
121055         * MODULES.html.sh (Future developments): Update.
121057 2005-08-24  Bruno Haible  <bruno@clisp.org>
121059         * modules/tls-tests: New file.
121060         * tests/test-tls.c: New file, from GNU gettext.
121062 2005-08-24  Bruno Haible  <bruno@clisp.org>
121064         * modules/lock-tests: New file.
121065         * tests/test-lock.c: New file, from GNU gettext.
121067 2005-08-24  Bruno Haible  <bruno@clisp.org>
121069         * lib/lock.h: Add multiple inclusion guard.
121070         * lib/tls.h: Add multiple inclusion guard.
121072 2005-08-24  Bruno Haible  <bruno@clisp.org>
121074         * gnulib-tool: Add support for the --aux-dir option to
121075         --create-testdir, --create-megatestdir, --test, --megatest.
121076         (func_create_testdir, func_create_megatestdir): Optionally emit a
121077         AC_CONFIG_AUX_DIR directive.
121078         (create-testdir, create-megatestdir, test, megatest): Provide a
121079         default value for $auxdir.
121081 2005-08-24  Bruno Haible  <bruno@clisp.org>
121083         * gnulib-tool (import): Use compound statement instead of subshell
121084         where possible.
121086 2005-08-24  Bruno Haible  <bruno@clisp.org>
121088         * gnulib-tool (import): Change --aux-dir default to "build-aux".
121090 2005-08-24  Bruno Haible  <bruno@clisp.org>
121092         * gnulib-tool (func_version): Update.
121094 2005-08-24  Bruno Haible  <bruno@clisp.org>
121096         * gnulib-tool (func_import, func_create_testdir,
121097         func_create_megatestdir): Quote all autoconf macro arguments.
121099 2005-08-24  Bruno Haible  <bruno@clisp.org>
121101         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
121102         option --force, because --force causes the aclocal.m4 of each
121103         subdirectory to be newer than the corresponding config.h.in.
121105 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121107         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
121108         All contents moved to gl_REGEX.
121109         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
121110         assume that it does.
121112 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121114         * lib/regex.h (REG_NOSYS)
121115         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
121116         Define, since POSIX requires it as of 2001.
121117         (_REG_ENOSYS)
121118         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
121119         New private symbol, used to keep the enum signed in all cases.
121120         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
121121         Youngman in
121122         <http://lists.gnu.org/r/bug-gnulib/2005-07/msg00132.html>.
121124         * lib/regex_internal.c (re_string_skip_chars, register_state):
121125         (calc_state_hash):
121126         Remove forward decls; no longer needed now that we use prototypes.
121127         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
121128         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
121129         (clean_state_log_if_needed): Likewise.
121131 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
121133         * config/srclist.txt: Add glibc bugs 1231-1233.
121135 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121137         Fix problems reported by Sam Steingold in
121138         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00007.html>.
121139         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
121140         assumed that reg_errcode_t is a signed type, which is not
121141         necessarily true if _XOPEN_SOURCE is not defined.
121142         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
121143         since some compilers warn about it otherwise.
121145 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121147         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
121148         (init_word_char, create_initial_state, duplicate_node_closure):
121149         (fetch_token, peek_token_bracket, build_range_exp):
121150         (build_collating_symbol): Remove forward decls; no longer needed
121151         now that we use prototypes.
121153         * lib/regcomp.c:
121154         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
121155         (re_compile_fastmap_iter, regcomp, regerror, regfree):
121156         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
121157         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
121158         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
121159         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
121160         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
121161         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
121162         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
121163         (build_range_exp, build_collating_symbol, parse_bracket_exp):
121164         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
121165         (build_charclass, build_charclass_op, fetch_number, create_tree):
121166         (create_token_tree, mark_opt_subexp, duplicate_tree):
121167         Use prototypes rather than old-style definitions.
121169         * lib/regex_internal.c:
121170         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
121171         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
121172         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
121173         (re_string_reconstruct, re_string_peek_byte_case):
121174         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
121175         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
121176         (re_node_set_init_copy, re_node_set_add_intersect):
121177         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
121178         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
121179         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
121180         (re_acquire_state, re_acquire_state_context, register_state):
121181         (create_ci_newstate, create_cd_newstate, free_state):
121182         Likewise.
121183         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
121184         re_search_2):
121185         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
121186         (re_search_internal, prune_impossible_nodes):
121187         (acquire_init_state_context, check_matching, static):
121188         (check_halt_node_context, check_halt_state_context, proceed_next_node):
121189         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
121190         (update_regs, sift_states_backward, build_sifted_states):
121191         (clean_state_log_if_needed, merge_state_array):
121192         (update_cur_sifted_state, add_epsilon_src_nodes):
121193         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
121194         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
121195         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
121196         (find_recover_state, check_subexp_matching_top, transit_state_mb):
121197         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
121198         (check_arrival, check_arrival_add_next_nodes):
121199         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
121200         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
121201         (check_node_accept_bytes, check_node_accept, extend_buffers):
121202         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
121203         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
121204         (sift_ctx_init):
121205         Likewise.
121207         * lib/regex_internal.h:
121208         (re_string_allocate, re_string_construct, re_string_reconstruct):
121209         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
121210         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
121211         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
121212         (re_string_context_at, re_string_peek_byte_case):
121213         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
121214         is defined, since we now use prototypes always.
121216         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
121217         C89 or better.  All uses removed.
121219 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
121221         * config/srclist.txt: Add glibc bugs 1220-1227.
121223 2005-08-20  Jim Meyering  <jim@meyering.net>
121225         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
121226         of unused local, dfa.
121228 2005-08-20  Bruno Haible  <bruno@clisp.org>
121230         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
121232 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121234         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
121235         (re_node_set_insert_last, re_dfa_add_node):
121236         Rename local variables to avoid GCC shadowing warnings.
121238 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121240         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
121241         [defined lint]: Suppress bogus uninitialized-variable warnings.
121243         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
121244         and let the caller return REG_ESPACE if out of space.  This
121245         removes an uninitialied-variable warning with GCC 4.0.1, and also
121246         avoids taking the address of a local variable.  All callers
121247         changed.
121249 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
121251         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
121252         $LIBCSRC/posix/regexec.c.
121253         Add glibc bug 1217 for regcomp.c.
121255 2005-08-19  Jim Meyering  <jim@meyering.net>
121257         * lib/regexec.c (proceed_next_node): Redo local variables to
121258         avoid GCC shadowing warnings.
121260 2005-08-18  Bruno Haible  <bruno@clisp.org>
121262         * lib/strstr.c (strstr): Fix return value in multibyte case.
121263         * lib/strcasestr.c (strcasestr): Likewise.
121265 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
121267         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
121269 2005-08-17  Jim Meyering  <jim@meyering.net>
121271         Make the %s format (seconds since the epoch) work for a negative
121272         number and when used with a zero-padded field width, e.g. %015s.
121274         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
121275         label so that it precedes the code to set `digits'.  Otherwise,
121276         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
121277         print `00-22'.  Now, it prints `-0022', as it should.
121279 2005-08-17  Bruno Haible  <bruno@clisp.org>
121281         * modules/strstr (Files): Add m4/mbrtowc.m4.
121282         (Depends-on): Add mbuiter.
121284 2005-08-17  Bruno Haible  <bruno@clisp.org>
121286         * modules/strcasestr: New file.
121287         * MODULES.html.sh (String handling, based on ANSI C 89): Add
121288         strcasestr.
121290 2005-08-17  Bruno Haible  <bruno@clisp.org>
121292         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
121294 2005-08-17  Bruno Haible  <bruno@clisp.org>
121296         * modules/mbuiter: New file.
121297         * MODULES.html.sh (Extended multibyte and wide character utilities):
121298         Add mbuiter.
121300 2005-08-17  Bruno Haible  <bruno@clisp.org>
121302         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
121303         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
121305 2005-08-17  Bruno Haible  <bruno@clisp.org>
121307         * m4/strcasestr.m4: New file.
121309 2005-08-17  Bruno Haible  <bruno@clisp.org>
121311         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
121312         * lib/strstr.c: Completely rewritten, with multibyte locale support.
121314 2005-08-17  Bruno Haible  <bruno@clisp.org>
121316         * lib/strcasestr.h: New file.
121317         * lib/strcasestr.c: New file.
121319 2005-08-17  Bruno Haible  <bruno@clisp.org>
121321         * lib/strcasecmp.c: Use mbuiter.h.
121323 2005-08-17  Bruno Haible  <bruno@clisp.org>
121325         * lib/mbuiter.h: New file.
121327 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
121329         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
121330         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
121331         and gl_GETOPT are both invoked via different paths (as happens
121332         with GNU tar CVS because it uses both argp and getopt), the former
121333         wins.
121335 2005-08-16  Bruno Haible  <bruno@clisp.org>
121337         * modules/tls: New file.
121338         * MODULES.html.sh (Multithreading): Add tls.
121340 2005-08-16  Bruno Haible  <bruno@clisp.org>
121342         * modules/strnlen1: New file.
121343         * MODULES.html.sh (String handling): Add strnlen1.
121345 2005-08-16  Bruno Haible  <bruno@clisp.org>
121347         * modules/strcase (Files): Add m4/mbrtowc.m4.
121348         (Depends-on): Add strnlen1, mbchar.
121350 2005-08-16  Bruno Haible  <bruno@clisp.org>
121352         * modules/mbiter: New file.
121353         * MODULES.html.sh (Extended multibyte and wide character utilities):
121354         Add mbiter.
121356 2005-08-16  Bruno Haible  <bruno@clisp.org>
121358         * modules/mbfile: New file.
121359         * MODULES.html.sh (Extended multibyte and wide character utilities):
121360         Add mbfile.
121362 2005-08-16  Bruno Haible  <bruno@clisp.org>
121364         * modules/mbchar: New file.
121365         * MODULES.html.sh (Extended multibyte and wide character utilities):
121366         New section.
121368 2005-08-16  Bruno Haible  <bruno@clisp.org>
121370         * m4/tls.m4: New file, from GNU gettext.
121372 2005-08-16  Bruno Haible  <bruno@clisp.org>
121374         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
121375         always.
121376         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
121378 2005-08-16  Bruno Haible  <bruno@clisp.org>
121380         * m4/mbiter.m4: New file.
121382 2005-08-16  Bruno Haible  <bruno@clisp.org>
121384         * m4/mbfile.m4: New file.
121386 2005-08-16  Bruno Haible  <bruno@clisp.org>
121388         * m4/mbchar.m4: New file.
121390 2005-08-16  Bruno Haible  <bruno@clisp.org>
121392         * lib/tls.h: New file, from GNU gettext.
121393         * lib/tls.c: New file, from GNU gettext.
121395 2005-08-16  Bruno Haible  <bruno@clisp.org>
121397         * lib/strnlen1.h: New file.
121398         * lib/strnlen1.c: New file.
121400 2005-08-16  Bruno Haible  <bruno@clisp.org>
121402         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
121403         (mbi_init): Update.
121404         (mbi_avail, mbi_advance): Let the iteration end before the terminating
121405         NUL byte, not after it.
121407 2005-08-16  Bruno Haible  <bruno@clisp.org>
121409         * lib/strcase.h (strcasecmp): Add note in comments.
121410         * lib/strncasecmp.c: Use code from strcasecmp.c.
121411         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
121412         (strcasecmp): Work correctly in multibyte locales.
121414 2005-08-16  Bruno Haible  <bruno@clisp.org>
121416         * lib/mbiter.h: New file.
121418 2005-08-16  Bruno Haible  <bruno@clisp.org>
121420         * lib/mbfile.h: New file.
121422 2005-08-16  Bruno Haible  <bruno@clisp.org>
121424         * lib/mbchar.h: New file.
121425         * lib/mbchar.c: New file.
121427 2005-08-16  Bruno Haible  <bruno@clisp.org>
121429         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
121430         the valid ones. Makes the comparison operations transitive:
121431         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
121432         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
121434 2005-08-15  Simon Josefsson  <jas@extundo.com>
121436         * modules/ssize_t (License): Change to 'unlimited'.
121438         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
121440 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
121442         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
121443         Add comments for each pending glibc patch.
121445 2005-08-15  Bruno Haible  <bruno@clisp.org>
121447         * lib/regex.h (__restrict_arr): Don't define to __restrict if
121448         __cplusplus is defined.
121450 2005-08-14  Jim Meyering  <jim@meyering.net>
121452         Sync from coreutils.
121454         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
121455         Use the hash-table-based cycle-detection code not just when
121456         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
121457         Reported by James Youngman in
121458         <http://lists.gnu.org/r/bug-gnulib/2005-08/msg00011.html>.
121459         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
121460         FTS_TIGHT_CYCLE_CHECK.
121461         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
121462         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
121463         once again.
121464         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
121465         * lib/fts.c (fd_safer): Remove decl.
121466         Include fcntl--.h rather than unistd-safer.h
121467         (fts_safe_changedir): Don't call fd_safer; no longer needed
121468         now that we include fcntl--.h.
121470 2005-08-12  Simon Josefsson  <jas@extundo.com>
121472         * modules/getndelim2: Use ssize_t module.
121473         * modules/getnline: Likewise.
121474         * modules/safe-read: Likewise.
121475         * modules/xreadlink: Likewise.
121477         * modules/ssize_t: New file.
121479 2005-08-12  Simon Josefsson  <jas@extundo.com>
121481         * m4/readline.m4: Look for termcap, curses or ncurses if required.
121483 2005-08-12  Simon Josefsson  <jas@extundo.com>
121485         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
121486         ssize_t.
121488 2005-08-12  Simon Josefsson  <jas@extundo.com>
121490         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
121491         readline, getdelim and check_version.
121492         (Support for systems lacking ISO C 99: Sizes of integer types):
121493         Add size_max.
121495 2005-08-12  Bruno Haible  <bruno@clisp.org>
121497         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
121499 2005-08-11  Simon Josefsson  <jas@extundo.com>
121501         * modules/readline: New file.
121503         * modules/strnlen (Files): Add strnlen.h.
121505 2005-08-11  Simon Josefsson  <jas@extundo.com>
121507         * m4/readline.m4: New file.
121509 2005-08-11  Simon Josefsson  <jas@extundo.com>
121511         * lib/readline.h, readline.c: New file.
121513 2005-08-11  Simon Josefsson  <jas@extundo.com>
121515         * doc/gnulib.texi (Initial import, Finishing touches): Mention
121516         gl_AVOID.
121518 2005-08-11  Bruno Haible  <bruno@clisp.org>
121520         * lib/strnlen.h (strnlen): Change parameter name to match comment.
121522 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
121524         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
121526 2005-08-10  Simon Josefsson  <jas@extundo.com>
121528         * tests/test-iconvme.c: New file.
121530 2005-08-10  Simon Josefsson  <jas@extundo.com>
121532         * m4/strnlen.m4: New file.
121534         * m4/strndup.m4: Don't check for strnlen declaration, done in
121535         strnlen.m4.
121537 2005-08-10  Simon Josefsson  <jas@extundo.com>
121539         * lib/strndup.c: Use strnlen.h.
121541         * lib/strnlen.h: New file.
121543 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
121545         * README: Typos.
121547 2005-08-02  Simon Josefsson  <jas@extundo.com>
121549         * modules/readline: New file.
121551 2005-08-02  Simon Josefsson  <jas@extundo.com>
121553         * modules/getdelim: New file.
121555         * modules/getline: Rewrite, don't use getndelim2.
121557 2005-08-02  Simon Josefsson  <jas@extundo.com>
121559         * m4/getline.m4: Separate out getdelim stuff into separate module.
121561         * m4/getdelim.m4: New file.
121563 2005-08-02  Simon Josefsson  <jas@extundo.com>
121565         * lib/getline.h, getline.c: Rewrite.
121567         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
121569 2005-07-31  Bruno Haible  <bruno@clisp.org>
121571         * lib/lock.h (gl_lock_initializer): New macro.
121572         (gl_lock_define_initialized): Use it.
121573         (gl_rwlock_initializer): New macro.
121574         (gl_rwlock_define_initialized): Use it.
121575         (gl_recursive_lock_initializer): New macro.
121576         (gl_recursive_lock_define_initialized): Use it.
121578 2005-07-30  Karl Berry  <karl@gnu.org>
121580         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
121581         Report from Ben Pfaff, regarding getopt.
121583 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
121585         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
121586         normal way.
121587         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
121588         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
121589         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
121590         (gl_GETOPT): Use the new macros.  Most of the implementation
121591         is moved to the new macros.  This is for programs like Emacs
121592         that don't want all the functionality of gl_GETOPT.
121594 2005-07-26  Bruno Haible  <bruno@clisp.org>
121596         * m4/lock.m4: Update from GNU gettext.
121598 2005-07-26  Bruno Haible  <bruno@clisp.org>
121600         * lib/lock.h: Update from GNU gettext.
121601         * lib/lock.c: Update from GNU gettext.
121603 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
121605         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
121606         obsolescent AC_TRY_RUN.  Include the default includes files, for
121607         'exit'.
121609 2005-07-24  Bruno Haible  <bruno@clisp.org>
121611         * modules/visibility: New file.
121612         * MODULES.html.sh (Misc): Add visibility.
121614 2005-07-24  Bruno Haible  <bruno@clisp.org>
121616         * m4/visibility.m4: New file.
121618 2005-07-24  Bruno Haible  <bruno@clisp.org>
121620         * doc/visibility.texi: New file.
121622 2005-07-22  Bruno Haible  <bruno@clisp.org>
121624         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
121625         $(ALLOCA_H), redundant through BUILT_SOURCES.
121626         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
121627         redundant through BUILT_SOURCES.
121628         * modules/byteswap (Makefile.am): Remove explicit dependency on
121629         $(BYTESWAP_H), redundant through BUILT_SOURCES.
121630         * modules/fnmatch (Makefile.am): Remove explicit dependency on
121631         $(FNMATCH_H), redundant through BUILT_SOURCES.
121632         * modules/getopt (Makefile.am): Remove explicit dependency on
121633         $(GETOPT_H), redundant through BUILT_SOURCES.
121634         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
121635         redundant through BUILT_SOURCES.
121636         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
121637         redundant through BUILT_SOURCES.
121638         * modules/stdbool (Makefile.am): Remove explicit dependency on
121639         $(STDBOOL_H), redundant through BUILT_SOURCES.
121640         * modules/stdint (Makefile.am): Remove explicit dependency on
121641         $(STDINT_H), redundant through BUILT_SOURCES.
121642         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
121643         Remove explicit dependency on $(SYSEXITS_H).
121644         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
121646 2005-07-18  Simon Josefsson  <jas@extundo.com>
121648         * lib/check-version.c (check_version): Accept identical versions too.
121650 2005-07-18  Bruno Haible  <bruno@clisp.org>
121652         * modules/lock: New file.
121653         * MODULES.html.sh (Multithreading): New section.
121655 2005-07-18  Bruno Haible  <bruno@clisp.org>
121657         * m4/lock.m4: New file, from GNU gettext.
121659 2005-07-18  Bruno Haible  <bruno@clisp.org>
121661         * lib/lock.h: New file, from GNU gettext.
121662         * lib/lock.c: New file, from GNU gettext.
121664 2005-07-18  Bruno Haible  <bruno@clisp.org>
121666         * lib/lock.h (gl_once_t): New type.
121667         (gl_once_define, gl_once): New macros.
121668         * lib/lock.c (fresh_once): New variable.
121669         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
121670         functions.
121672 2005-07-16  Simon Josefsson  <jas@extundo.com>
121674         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
121675         workaround, suggested by Bruno.
121677 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121679         * modules/xalloc (Depends-on): Add xalloc-die.
121680         * modules/xvasprintf (Depends-on): Add xalloc-die.
121682 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
121684         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
121685         with a minor change.
121687 2005-07-15  Bruno Haible  <bruno@clisp.org>
121689         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
121690         When using lib/poll.c, define poll as rpl_poll.
121692 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
121694         * modules/argp (Depends-on): Remove unlocked-io.
121696 2005-07-14  Derek Price  <derek@ximbiot.com>
121698         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
121699         for glob symlink bug.
121701 2005-07-14  Bruno Haible  <bruno@clisp.org>
121703         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
121704         Instead, test for *_unlocked function declarations directly.
121706 2005-07-11  Simon Josefsson  <jas@extundo.com>
121708         * modules/size_max: New file.
121710         * modules/xsize: Depend on size_max module for size_max.m4.
121712 2005-07-11  Simon Josefsson  <jas@extundo.com>
121714         * lib/size_max.h: New file.
121716 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
121718         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
121719         copyright symbol and the year.
121720         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
121721         (version_etc_va): Use parameterized copyright notice.
121722         Reword to conform to the current GNU coding standards.
121724 2005-07-11  Karl Berry  <karl@gnu.org>
121726         * doc/gnulib.texi (Quoting): new node.
121727         (Initial import): more info, from Patrice.
121729 2005-07-11  Bruno Haible  <bruno@clisp.org>
121731         * gnulib-tool (func_usage): Document option --avoid.
121732         (Command line options): Handle --avoid.
121733         (func_acceptable): New function.
121734         (func_modules_transitive_closure): Use it.
121736 2005-07-11  Bruno Haible  <bruno@clisp.org>
121738         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
121739         Reported by Jim Meyering.
121741 2005-07-10  Bruno Haible  <bruno@clisp.org>
121743         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
121744         Needed when size_t is smaller than 'unsigned int'.
121745         Reported by Paul Eggert.
121747 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121749         * modules/argp (Depends-on): Add unlocked-io
121751 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
121753         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
121754         block of defines.
121756 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
121758         * config/srclist.txt: Comment out regcomp.c, since we have a porting
121759         fix now.
121761 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
121762         and Paul Eggert  <eggert@cs.ucla.edu>
121764         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
121765         in wint_t, not wchar_t.  Remove now-unnecessary cast.
121767 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121769         * modules/regex (Files): Add lib/regex_internal.c,
121770         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
121771         (Depends-on): Add extensions.
121772         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
121774 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121776         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
121777         pathconf.
121778         * m4/same.m4 (gl_SAME): Likewise.
121779         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
121781         * m4/regex.m4: Adjust to new libc regex implementation.
121782         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
121783         all the .c and .h parts of (the new) regex.
121784         Quote the m4 stuff better.
121785         Check for RE_ICASE bug of old gnulib.
121786         Check for REG_STARTEND of recent libc.
121787         Rename local variables from jm_* to gl_*.
121788         Quote operand of "test -f".
121789         Say "recent enough" version of libc, not "version 2".
121790         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
121791         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
121792         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
121793         Remove check for btowc, isascii.
121794         Require AM_LANGINFO_CODESET.
121796 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121798         * lib/regex.c, regex.h: Sync from libc.
121799         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
121800         * lib/regexec.c:
121801         New files, synced from libc, except that regex_internal.h
121802         currently has a small porting fix.
121804 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
121806         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
121807         regex_internal.c, regexec.c.
121808         Add regex_internal.h too, but as a comment, since the libc version
121809         is currently broken in gnulib mode.
121811 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
121813         Support programs like Emacs that use gnulib but not gettext.
121814         * MODULES.html.sh (Internationalization functions): Add gettext-h.
121815         * modules/gettext-h: New file.
121816         * modules/gettext (Files): Remove lib/gettext.h.
121817         (Depends-on): Add gettext-h.
121818         (Makefile.am): Remove lib_SOURCES.
121819         * modules/argmatch, modules/c-stack, modules/closeout:
121820         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
121821         * modules/execute, modules/file-type, modules/getaddrinfo:
121822         * modules/getopt, modules/human, modules/javacomp:
121823         * modules/javaexec, modules/mkdir-p, modules/obstack:
121824         * modules/openat, modules/pagealign_alloc, modules/pipe:
121825         * modules/quotearg, modules/regex, modules/rpmatch:
121826         * modules/unicodeio, modules/userspec, modules/version-etc:
121827         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
121828         * modules/xsetenv:
121829         Depend on gettext-h, not gettext.
121831 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
121833         * gnulib-tool (func_import): Add support for 'public domain' license.
121834         * modules/alloca, modules/atexit, modules/memmove:
121835         Now public domain, not GPL.
121836         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
121837         * modules/realloc, modules/strerror, modules/strtod:
121838         Now LGPL, not GPL.
121840 2005-07-05  Bruno Haible  <bruno@clisp.org>
121842         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
121843         autoconf CVS. Needed for mingw.
121845 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121847         Remove the dependency of the strftime module on the tzset module.
121848         * modules/strftime (Depends-on): Remove dependency on tzset.
121850 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121852         Remove the dependency of the strftime module on the tzset module.
121853         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
121854         gl_FUNC_TZSET_CLOBBER.
121856 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
121858         Remove the dependency of the strftime module on the tzset module.
121859         * lib/strftime.c (my_strftime)
121860         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
121861         Copy the input structure, to work around some of the bug with
121862         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
121863         Solaris releases, you should also use the tzset module, but we won't
121864         require it as a dependency any more since we don't want LGPLed code
121865         to depend on GPLed code.
121867 2005-07-02  Jim Meyering  <jim@meyering.net>
121869         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
121870         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
121871         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
121872         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
121874 2005-07-02  Jim Meyering  <jim@meyering.net>
121876         * lib/backupfile.c (backup_args): Change a `0' to NULL.
121878 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
121880         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
121881         declares only 'struct timespec;' (!).
121883 2005-07-01  Jim Meyering  <jim@meyering.net>
121885         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
121886         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
121887         * lib/save-cwd.c, tempname.c:
121888         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
121889         and don't include <sys/file.h>).
121891 2005-06-29  Jim Meyering  <jim@meyering.net>
121893         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
121894         type name.  Use the variable name instead.
121895         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
121896         Likewise.
121898 2005-06-28  Simon Josefsson  <jas@extundo.com>
121900         * modules/check-version (Files): Add check-version.m4.
121902 2005-06-28  Simon Josefsson  <jas@extundo.com>
121904         * m4/check-version.m4: New file, suggested by Jim Meyering
121905         <jim@meyering.net>.
121907 2005-06-28  Simon Josefsson  <jas@extundo.com>
121909         * lib/check-version.h, lib/check-version.c: New files.
121911 2005-06-28  Simon Josefsson  <jas@extundo.com>
121913         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
121914         collision with global variable.  Better indentation.  Don't
121915         increment buffer pointer beyond buffer end.  Based on comments
121916         from Paul Eggert <eggert@cs.ucla.edu>.
121918         * lib/base64.h: Indent.
121920 2005-06-28  Simon Josefsson  <jas@extundo.com>
121922         * doc/gnulib.texi (Library version handling): New section.
121924 2005-06-28  Jim Meyering  <jim@meyering.net>
121926         * check-module (find_included_lib_files): Hard-code another
121927         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
121928         but modules/fts-lgpl (correctly) does not list those files.
121930         * modules/canonicalize (Files): Add lib/pathmax.h.
121932 2005-06-25  Simon Josefsson  <jas@extundo.com>
121934         * modules/check-version: New file.
121936 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
121938         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
121939         initializer of struct addrinfo, as an indication that we don't
121940         care how many members the structure has.
121942 2005-06-24  Derek Price  <derek@ximbiot.com>
121943         and Bruno Haible  <bruno@clisp.org>
121945         Remove stat module & update lstat.
121946         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
121947         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
121948         * m4/stat.m4: Remove this file.
121950 2005-06-24  Derek Price  <derek@ximbiot.com>
121951         and Bruno Haible  <bruno@clisp.org>
121953         Remove stat module & update lstat.
121954         * lib/stat.c: Remove this file...
121955         (slash_aware_lstat): ...moving this content and its support...
121956         * lib/lstat.c (rpl_lstat): ...into here.
121957         * lib/lstat.h: New file.
121959 2005-06-24  Derek Price  <derek@ximbiot.com>
121960         and Bruno Haible  <bruno@clisp.org>
121962         Remove stat module & update lstat.
121963         * config/srclist.txt (libc sources): Remove stat.
121965 2005-06-24  Derek Price  <derek@ximbiot.com>
121966         and Bruno Haible  <bruno@clisp.org>
121968         Remove stat module & update lstat.
121969         * MODULES.html.sh (stat): Remove.
121970         * MODULES.html: Regenerated.
121971         * modules/lstat (Description): Correct function name.
121972         (Files): Add "lstat.h".
121973         (Depends-on): Remove stat, add xalloc, stat-macros.
121974         * modules/stat: Remove this file.
121975         (Include): Add "lstat.h", remove <sys/stat.h>.
121977 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
121979         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
121980         (ranged_convert): Don't save conversion in a temporary struct.
121981         This causes a warning with GCC 4.0.0, and anyway in the typical
121982         case it's not worth the extra 100 bytes or so of code.
121983         (ranged_convert, __mktime_internal): When calling a function via a
121984         pointer P, use P () rather than (*P) (), as we now assume C89 or
121985         better.
121987 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
121989         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
121990         "who -r" failed to give output.  Problem reported by Tim Waugh.
121992         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
121993         (xcalloc): Use it to avoid needless tests.
121994         Problem reported by Jim Meyering.
121996 2005-06-20  Derek Price  <derek@ximbiot.com>
121998         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
121999         unnecessary for Autoconfs > 2.59c.
122001 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122003         * lib/argp.h (__option_is_short): Check upper limit of
122004         __key. Isprint() requires its argument to have the value
122005         of an unsigned char or EOF.
122007 2005-06-16  Jim Meyering  <jim@meyering.net>
122009         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
122010         when either N or S is zero.
122012 2005-06-16  Derek Price  <derek@ximbiot.com>
122014         * m4/bison.m4: Declare YACC & YFLAGS precious.
122016 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
122018         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
122019         multibyte string or pattern, fall back on unibyte matching.
122020         Problem reported by James Youngman.
122022 2005-06-08  Bruno Haible  <bruno@clisp.org>
122024         * modules/csharpcomp: New file.
122025         * MODULES.html.sh (C#): Add csharpcomp.
122027 2005-06-08  Bruno Haible  <bruno@clisp.org>
122029         * m4/csharpcomp.m4: New file, from GNU gettext.
122031 2005-06-08  Bruno Haible  <bruno@clisp.org>
122033         * lib/csharpcomp.h: New file, from GNU gettext.
122034         * lib/csharpcomp.c: New file, from GNU gettext.
122035         * lib/csharpcomp.sh.in: New file, from GNU gettext.
122037 2005-06-08  Bruno Haible  <bruno@clisp.org>
122039         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
122040         warning on mingw.
122042 2005-06-07  Derek Price  <derek@ximbiot.com>
122044         Sync from CVS.
122045         * lib/glob_.h: Indent nested #ifdef.
122047 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122049         Sync from coreutils.
122050         Use "file name" when talking about file names, instead of "filename"
122051         or "path", as per the GNU coding standards.
122052         * lib/mkdir-p.c: Renamed from makepath.c.
122053         (make_dir_parents): Renamed from make_path.  All callers changed.
122054         * lib/mkdir-p.h: Likewise.  All includers changed.
122055         * lib/filenamecat.c: Renamed from path-concat.c.
122056         (file_name_concat): Renamed from path_concat.  All callers changed.
122057         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
122058         * lib/filenamecat.h: Likewise.  All includers changed.
122059         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
122060         in comments or local variable names.
122061         * lib/basename.c: Likewise.
122062         * lib/canonicalize.c, canonicalize.h: Likewise.
122063         * lib/dirname.c, dirname.h: Likewise.
122064         * lib/euidaccess.c: Likewise.
122065         * lib/exclude.c: Likewise
122066         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
122067         * lib/fsusage.c, fsuage.h: Likewise.
122068         * lib/fts.c, fts_.h: Likewise.
122069         * lib/getcwd.c: Likewise.
122070         * lib/getloadavg.c: Likewise.
122071         * lib/mkstemp.c: Likewise.
122072         * lib/mountlist.c, mountlist.h: Likewise.
122073         * lib/openat.c, openat.h: Likewise.
122074         * lib/readlink-stub.c: Likewise.
122075         * lib/readutmp.c, readutmp.h: Likewise.
122076         * lib/rename.c: Likewise.
122077         * lib/rmdir.c: Likewise.
122078         * lib/same.c: Likewise.
122079         * lib/savedir.c: Likewise.
122080         * lib/stripslash.c: Likewise.
122081         * lib/tempname.c: Likewise.
122082         * lib/xreadlink.c: Likewise.
122083         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
122084         All uses changed.
122085         * lib/exclude.h: Likewise.
122087         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
122088         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122089         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
122090         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122091         * lib/pathmax.h: Include <limits.h> unconditionally, since other
122092         files have been getting away with it for years (MORE/BSD 4.3
122093         is extinct now).
122094         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
122095         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
122097         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
122098         Define to 256, not 255, as per modern POSIX.
122100 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122102         Sync from coreutils.
122103         Use "file name" when talking about file names, instead of "filename"
122104         or "path", as per the GNU coding standards.
122105         * MODULES.html.sh: mkdir-p renamed from makepath.
122106         filenamecat renamed from path-concat.
122107         * modules/filenamecat: Renamed from modules/path-concat.
122108         (Files): filenamecat.h and filenamecat.c renamed from
122109         path-concat.h and path-concat.c.
122110         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
122111         (Include): filenamecat.h, not path-concat.h.
122112         * modules/mkdir-p: Renamed from modules/makepath.
122113         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
122114         makepath.c.
122115         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
122116         (Include): mkdir-p.h, not makepath.h.
122118 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
122120         Sync from coreutils.
122121         * m4/mkdir-p.m4: Renamed from makepath.m4.
122122         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
122123         Rename files from makepath.c to mkdir-p.c, and from
122124         makepath.h to mkdir-p.h.
122125         * m4/filenamecat.m4: Renamed from path-concat.m4.
122126         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
122127         Rename files from path-concat.c to filenamecat.c,
122128         and from path-concat.h to filenamecat.h.
122129         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
122130         "file name" in local variables or comments.
122131         * m4/rename.m4: Likewise.
122133 2005-06-01  Bruno Haible  <bruno@clisp.org>
122135         * modules/csharpexec: New file.
122136         * MODULES.html.sh (C#): New section.
122138 2005-06-01  Bruno Haible  <bruno@clisp.org>
122140         * m4/csharp.m4: New file, from GNU gettext.
122141         * m4/csharpexec.m4: New file, from GNU gettext.
122143 2005-06-01  Bruno Haible  <bruno@clisp.org>
122145         * lib/csharpexec.h: New file, from GNU gettext.
122146         * lib/csharpexec.c: New file, from GNU gettext.
122147         * lib/csharpexec.sh.in: New file, from GNU gettext.
122149 2005-05-31  Derek Price  <derek@ximbiot.com>
122150             Paul Eggert  <eggert@cs.ucla.edu>
122152         Sync from cvs.
122153         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122155 2005-05-31  Derek Price  <derek@ximbiot.com>
122156             Paul Eggert  <eggert@cs.ucla.edu>
122158         Sync from cvs.
122159         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
122161 2005-05-29  Derek Price  <derek@ximbiot.com>
122163         * config/srclist.txt (glob_.h, glob.c): Add these files.
122165 2005-05-29  Derek Price  <derek@ximbiot.com>
122167         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
122168         * modules/glob: New file.
122169         * modules/getlogin_r: Add link to POSIX spec in description.
122171 2005-05-29  Derek Price  <derek@ximbiot.com>
122172             Paul Eggert  <eggert@cs.ucla.edu>
122174         * m4/glob.m4: New file.
122176 2005-05-29  Derek Price  <derek@ximbiot.com>
122177             Paul Eggert  <eggert@cs.ucla.edu>
122179         * lib/glob_.h, lib/glob.c: New files.
122181 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122183         * modules/fts (Files): Remove m4/inttypes-pri.m4.
122184         * modules/fts-lgpl (Depends-on): Remove gettext.
122186 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122188         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
122189         and don't require gt_INTTYPES_PRI.
122191 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
122193         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
122195         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
122196         the configuration hassle isn't worth it.
122197         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
122198         (LONGEST_MODIFIER, PRIuMAX): Remove.
122200 2005-05-27  Bruno Haible  <bruno@clisp.org>
122202         * lib/getlogin_r.h: Remove second include of <stddef.h>.
122204 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
122206         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
122207         _POSIX_PTHREAD_SEMANTICS for Solaris.
122209 2005-05-25  Derek Price  <derek@ximbiot.com>
122211         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
122213 2005-05-25  Derek Price  <derek@ximbiot.com>
122214             Paul Eggert  <eggert@cs.ucla.edu>
122216         * modules/getlogin_r, m4/getlogin_r.m4: New files.
122217         * lib/getlogin_r.c, getlogin_r.h: New files.
122219 2005-05-25  Bruno Haible  <bruno@clisp.org>
122220             Derek Price  <derek@ximbiot.com>
122222         * lib/getlogin_r.h: Simplify API documentation.
122224 2005-05-23  Derek Price  <derek@ximbiot.com>
122226         * modules/minmax (Files): Add m4/minmax.m4.
122227         (configure.ac): Add gl_MINMAX.
122229 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
122231         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
122232         so that unistd-safer.h (GPL'ed code) need not be included.
122234 2005-05-22  Bruno Haible  <bruno@clisp.org>
122236         * m4/minmax.m4: New file.
122237         Based on a patch by Derek Price <derek@ximbiot.com>.
122239 2005-05-22  Bruno Haible  <bruno@clisp.org>
122241         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
122242         (INT64_MIN): Fix definition.
122243         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
122245         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
122246         NEED_SIGNED_INT_TYPES.
122248         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
122249         HAVE_SYSTEM_INTTYPES.
122251 2005-05-22  Bruno Haible  <bruno@clisp.org>
122253         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
122254         Also include <sys/param.h> if it defines MIN, MAX.
122255         Based on a patch by Derek Price <derek@ximbiot.com>.
122257 2005-05-21  Jim Meyering  <jim@meyering.net>
122259         * modules/fts (Files): Add m4/inttypes-pri.m4.
122260         (Depends-on): Add lstat and remove gettext.  Alphabetize.
122262 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122264         New fts module.
122265         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
122266         (setup_dir, free_dir): New functions.
122267         (enter_dir, leave_dir): Define trivial
122268         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
122269         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
122270         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
122271         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
122272         Move to fts-cycle.c.
122273         (fts_open): Use setup_dir.
122274         (fts_close): Use free_dir.
122275         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
122276         This adds a label and some gotos, but the alternatives were messier.
122277         Check for memory allocation failure when entering a dir.
122278         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
122279         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
122280         (FTS): New member fts_cycle, that is a union that contains the
122281         old active_dir_ht and cycle_state.  All uses changed to mention
122282         fts_cycle.ht and fts_cycle.state.
122283         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
122284         fts.c, with the following changes:
122285         (setup_dir, free_dir): New functions.
122286         (enter_dir): Now returns bool.  Return true if successful, false
122287         if memory exhausted.  All callers changed.
122288         Do not bother partly cleaning up on
122289         memory allocation failure; that is free_dir's job.
122290         However, free ad if hash_insert fails, to avoid memory leak.
122291         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
122292         fts->fts_options to see which union member to use.
122294 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122296         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
122297         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
122299 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
122301         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
122303 2005-05-20  Jim Meyering  <jim@meyering.net>
122305         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
122306         Now a macro, to pacify GCC.
122308 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122310         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
122311         of -1.
122313 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
122315         * lib/chown.c (rpl_chown): Return -1 on failure.
122317 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122319         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
122320         Don't check for stddef.h.
122321         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
122322         don't use its results.
122323         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
122324         since we include them unconditionally.  Don't require
122325         AM_STDBOOL_H, since stdbool is a prerequisite.
122326         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
122327         since we assume C89 or better.
122328         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
122329         as we don't use their results.
122330         Don't check for fchdir, memmove, memset, strrchr, as we use
122331         them unconditionally.
122332         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
122333         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
122335 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
122337         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
122338         Include <stddef.h> unconditionally, since we assume C89 now.
122339         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
122340         * lib/fts.c: Include fts_.h first, to check interface.
122341         Do not include intprops.h; no longer needed.
122342         Include cycle-check.h and hash.h, since fts_.h no longer does.
122343         Remove unnecessary casts of closedir to void.
122344         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
122345         decide whether to decrement nlinks.
122346         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
122347         (FTS): Use struct hash_table * instead of Hash_table, so that
122348         we no longer need to include hash.h here.
122350 2005-05-18  Jim Meyering  <jim@meyering.net>
122352         * modules/dirfd (License): Change to LGPL.  Most of the code
122353         is already in the public domain.
122355 2005-05-18  Jim Meyering  <jim@meyering.net>
122357         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
122358         Reported by Yoann Vandoorselaere.
122360 2005-05-17  Jim Meyering  <jim@meyering.net>
122362         * m4/fts.m4: New file, from coreutils.
122364 2005-05-17  Jim Meyering  <jim@meyering.net>
122366         * lib/fts.c, lib/fts_.h: New files, from coreutils.
122368 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122370         Sync from coreutils.
122371         * m4/unlinkdir.m4: New file.
122373 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122375         Sync from coreutils.
122376         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
122377         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
122378         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
122379         White space changes only.
122380         * lib/makepath.c (make_path): Port to hosts where leading "//" is
122381         special.
122382         * lib/yesno.c: Include getline.h, not ctype.h.
122383         (yesno): Don't remove leading white space; POSIX doesn't allow it.
122384         Use getline to remove arbitrary restriction on response length.
122386 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
122388         * config/srclist-update: Spell out "Street" in FSF postal
122389         mail address; this is the style the FSF seems to prefer.
122391         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
122392         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
122393         this updates FSF postal mail address.
122395         Sync from coreutils.
122396         * modules/unlinkdir: New file.
122397         * modules/yesno (Depends-on): Add getline.
122398         * MODULES.html.sh (File system functions): Add unlinkdir.
122400 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122402         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
122403         lib/strsep.h:
122404         Change the initial comment to refer to GPL, not LGPL.
122405         gnulib-tool will change it to LGPL as needed.
122407         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
122408         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
122409         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
122410         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
122411         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
122412         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
122413         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
122414         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
122415         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
122416         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
122417         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
122418         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
122419         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
122420         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
122421         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
122422         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
122423         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
122424         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
122425         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
122426         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
122427         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
122428         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
122429         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
122430         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
122431         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
122432         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
122433         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
122434         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
122435         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
122436         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
122437         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
122438         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
122439         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
122440         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
122441         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
122442         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
122443         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
122444         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
122445         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
122446         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
122447         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
122448         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
122449         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
122450         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
122451         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
122452         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
122453         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
122454         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
122455         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
122456         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
122457         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
122458         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
122459         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
122460         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
122461         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
122462         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
122463         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
122464         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
122465         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
122466         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
122467         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
122468         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
122469         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
122470         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
122471         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
122472         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
122473         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
122474         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
122475         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
122476         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
122477         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
122478         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
122479         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
122480         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
122481         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
122482         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
122483         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
122484         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
122485         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
122486         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
122487         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
122488         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
122489         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
122490         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
122491         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
122492         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
122493         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
122494         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
122495         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
122496         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
122497         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
122498         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
122499         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
122500         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
122501         lib/yesno.c, lib/yesno.h:
122502         Update FSF postal mail address.
122504 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
122506         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
122507         tests/test-memmem.c, tests/test-stpncpy.c:
122508         Update FSF postal mail address.
122510 2005-05-13  Bruno Haible  <bruno@clisp.org>
122512         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
122513         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
122514         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
122515         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
122516         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
122517         Add support for 64-bit integers in the MSVC compiler.
122519 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
122521         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
122523 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
122525         * gnulib-tool (func_import): Sort and uniquify recommended includes.
122527 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
122529         * doc/getdate.texi (General date syntax): Don't say that date
122530         date --iso-8601=ns generates acceptable dates; it doesn't yet.
122531         Problem reported by Nic Ferrier.
122533 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122535         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
122536         specified in ai_socktype. Fix invalid ai_protocol
122537         check. ai_protocol is usually set to 0 or depending on
122538         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
122539         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
122540         ai_socktype / ai_protocol in the returned addrinfo structure.
122542 2005-05-10  Simon Josefsson  <jas@extundo.com>
122544         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
122545         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
122547 2005-05-10  Karl Berry  <karl@gnu.org>
122549         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
122550         (from http://www.gnu.org/licenses).
122551         * doc/COPYING.LIB: also rename to COPYING.LESSER.
122552         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
122553         fdl.texi suffices.
122555 2005-05-10  Karl Berry  <karl@gnu.org>
122557         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
122558         (COPYING.DOC): remove.
122560         * config/srclist-update: new FSF address.
122562 2005-05-10  Derek Price  <derek@ximbiot.com>
122564         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
122565         possible.
122567 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122568             Bruno Haible  <bruno@clisp.org>
122570         * modules/inet_ntop: New file.
122571         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
122572         inet_ntop.
122574 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122575             Bruno Haible  <bruno@clisp.org>
122577         * m4/inet_ntop.m4: New file.
122579 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
122580             Bruno Haible  <bruno@clisp.org>
122582         * lib/inet_ntop.h: New file.
122583         * lib/inet_ntop.c: New file, from glibc with modifications.
122585 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
122587         * modules/time_r (License): Change to LGPL.
122588         * modules/extensions (License): Change to LGPL.  Actually,
122589         the license is more permissive than that, but currently gnulib-tool
122590         doesn't know how to handle more-permissive licenses.
122592         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
122593         Problem reported by Dave Love.
122595 2005-05-08  Jim Meyering  <jim@meyering.net>
122597         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
122598         blank.
122600 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
122602         * modules/argmatch (Depends-on): Add stdbool.
122603         * modules/backupfile (Depends-on): Likewise.
122604         * modules/chdir-long (Depends-on): Likewise.
122605         * modules/closeout (Depends-on): Likewise.
122606         * modules/cycle-check (Depends-on): Likewise.
122607         * modules/dirname (Depends-on): Likewise.
122608         * modules/fnmatch (Depends-on): Likewise.
122609         * modules/fsusage (Depends-on): Likewise.
122610         * modules/fwriteerror (Depends-on): Likewise.
122611         * modules/getcwd (Depends-on): Likewise.
122612         * modules/getloadavg (Depends-on): Likewise.
122613         * modules/hard-locale (Depends-on): Likewise.
122614         * modules/makepath (Depends-on): Likewise.
122615         * modules/mountlist (Depends-on): Likewise.
122616         * modules/nanosleep (Depends-on): Likewise.
122617         * modules/posixtm (Depends-on): Likewise.
122618         * modules/quotearg (Depends-on): Likewise.
122619         * modules/readtokens (Depends-on): Likewise.
122620         * modules/readtokens0 (Depends-on): Likewise.
122621         * modules/readutmp (Depends-on): Likewise.
122622         * modules/save-cwd (Depends-on): Likewise.
122623         * modules/strftime (Depends-on): Likewise.
122624         * modules/userspec (Depends-on): Likewise.
122625         * modules/utimecmp (Depends-on): Likewise.
122626         * modules/xgetcwd (Depends-on): Likewise.
122627         * modules/xnanosleep (Depends-on): Likewise.
122628         * modules/xstrtod (Depends-on): Likewise.
122629         * modules/yesno (Depends-on): Likewise.
122631 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
122633         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
122634         needless checks.
122636 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122638         Merge from coreutils.  Among other things,
122639         add bulletproofing for cases where stdin, stdout, or stderr are closed.
122640         * lib/fd-safer.c: New file.
122641         * lib/fcntl-safer.h, open-safer.c: Remove.
122642         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
122643         * lib/dup-safer.c: Include unistd-safer.h first.
122644         Don't include errno.h.
122645         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
122646         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
122647         * lib/file-type.c: Rely on file-type.h change.
122648         * lib/getloadavg.c: Include unistd-safer.h.
122649         (getloadavg): Use safer open.
122650         * lib/getusershell.c: Include "stdio-safer.h".
122651         (getusershell): Use safer fopen.
122652         * lib/long-options.c (long_options): Use NULL rather than 0.
122653         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
122654         'free'.
122655         * lib/modechange.c: Likewise.
122656         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
122657         (MODE_DONE): New constant.
122658         (struct mode_change): Remove 'next' member.
122659         (make_node_op_equals): New function; like the old one of the
122660         same name, except it allocates an array.
122661         (mode_compile, mode_create_from_ref): Use it.
122662         (mode_compile): Allocate result as an array, not a linked list.
122663         Parse octal string ourself, so that we catch mistakes like "+0".
122664         (mode_adjust): Arg is an array, not a linked list.
122665         * lib/modechange.c: Include stat-macros.h, xalloc.h.
122666         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
122667         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
122668         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
122669         Remove.  This is now stat-macros.h's job.
122670         (talloc): Remove.  All callers replaced by xalloc, so that
122671         our invokers don't have to worry about reporting memory failures.
122672         (make_node_op_equals): Remove.
122673         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122674         New constants.
122675         (struct mode_change): Moved here from modechange.h.
122676         (mode_append_entry): Remove.
122677         (mode_compile): Remove MASKED_OPS arg, since it encouraged
122678         apps to have incorrect behavior.  Use simpler algorithm for head
122679         and tail.  Don't futz with umask; that's now the job of mode_adjust.
122680         Detect more invalid usages rather than having somewhat-random behavior.
122681         Don't insert an "a=" action, as that leads to incorrect behavior.
122682         (mode_compile, mode_create_from_ref): Return NULL on error instead
122683         of an enum, since now there's only one way to have an error.  All
122684         callers changed.
122685         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
122686         at the correct time.  Simplify calculation of "+u" and its ilk.
122687         Don't mishandle "+X".
122688         (mode_free): Remove "register" and localize decls.
122689         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
122690         (struct mode_change): Move to modechange.c; callers don't
122691         need to see this stuff.
122692         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
122693         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
122694         (mode_change, mode_adjust): Reflect the new signatures noted above.
122695         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
122696         that might redefine system include files.
122697         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
122698         (my_usleep): Use NULL rather than (void *) 0.
122699         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
122700         Use siginterrupt to specify that system calls should be interrupted.
122701         (rpl_nanosleep): Move initialization of suspended closer to call of
122702         my_usleep.
122703         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
122704         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
122705         (desirable_utmp_entry): New function.
122706         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
122707         using x2nrealloc, to simplify logic.
122708         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
122709         size calculation.  Do not assume utmp file is a regular file.
122710         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
122711         (READ_UTMP_CHECK_PIDS): New constant.
122712         * lib/save-cwd.c: Include unistd-safer.h.
122713         (save_cwd): Use fd_safer.
122714         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
122715         [!_LIBC] Include "stat-macros.h" instead.
122716         * lib/unistd-safer.h (fd_safer): New decl.
122718 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122720         * modules/getloadavg (Depends-on): Add unistd-safer.
122721         * modules/getusershell (Depends-on): Add stdio-safer.
122722         * modules/lstat (Depends-on): Remove xalloc.
122723         * modules/mkstemp (Depends-on): Add stat-macros.
122724         * modules/modechange (Depends-on): Remove xstrtol.
122725         Add stat-macros, xalloc.
122726         * modules/save-cwd (Depends-on): Add unistd-safer.
122727         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
122728         * modules/unistd-safer (Files): Add lib/fd-safer.c
122729         (Makefile.am): Remove lib_SOURCES.
122731         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
122732         Remove fcntl-safer; unistd-safer supersedes it.
122734 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122736         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
122737         AC_HEADER_STAT.
122738         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
122739         (gl_PREREQ_CHOWN): Remove.
122740         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
122741         it.  Don't require AC_HEADER_STAT.
122742         (gl_PREREQ_LSTAT): Remove.
122743         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
122744         Don't require AC_HEADER_STAT.
122745         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
122746         (gl_PREREQ_RMDIR): Remove.
122747         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
122748         mention stat-macros.h or AC_HEADER_STAT, since we'll make
122749         the stat-macros module a prerequisite.
122750         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
122751         * m4/filemode.m4 (gl_FILEMODE): Likewise.
122752         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
122753         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
122754         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
122755         variable names.
122756         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
122757         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
122758         variable prefixes.
122759         * m4/fcntl-safer.m4: Remove.
122760         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
122761         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
122762         Invoke gl_PREREQ_FD_SAFER.
122763         (gl_PREREQ_FD_SAFER): New macro.
122764         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
122765         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
122766         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
122767         Remove duplicate call to AC_LIBOBJ(readutmp).
122768         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
122770         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
122771         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
122773 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
122775         * MODULES.html.sh (Misc): Add byteswap.
122777 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122779         * modules/getcwd (Depends-on): Add extensions.
122780         * modules/openat (Depends-on): Likewise.
122782 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122784         * modules/byteswap: New file.
122786 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122788         * m4/byteswap.m4: New file.
122790 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
122792         * lib/byteswap_.h: New file.
122794 2005-04-25  Karl Berry  <karl@gnu.org>
122796         * m4/gettext.m4: Update from GNU gettext 0.14.4.
122798 2005-04-25  Albert Chin  <china@thewrittenword.com>
122800         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
122801         Toolkit C bug.
122803 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
122805         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
122806         (func_ln_if_changed): Remove forcibly for no error message
122807         in case file does not exist.
122809 2005-04-19  Simon Josefsson  <jas@extundo.com>
122811         * gnulib-tool (Options): Make --symlink mean --symbolic.
122813 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
122815         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
122817 2005-04-16  Simon Josefsson  <jas@extundo.com>
122819         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
122821 2005-04-15  Simon Josefsson  <jas@extundo.com>
122823         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
122825 2005-04-15  Simon Josefsson  <jas@extundo.com>
122827         * gnulib-tool: Rename --symlink to --symbolic.
122829 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
122831         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
122832         symbolic links to files instead of copying/moving.  Add --aux-dir,
122833         specifying directory relative --dir where auxiliary build tools
122834         are placed.
122836 2005-04-14  Bruno Haible  <bruno@clisp.org>
122838         * modules/allocsa (License): Change to LGPL.
122839         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
122841 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
122843         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
122844         that "UTC +1 second" continues to work.  Problem reported
122845         by Dmitry V. Levin.
122846         (relunit_snumber): New rule.
122847         (relunit): Use it.
122849 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
122851         * lib/getdate.y (universal_time_zone_table): New constant.
122852         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
122853         universal_time_zone_table.
122854         (lookup_zone): Prefer universal_time_zone_table to
122855         local_time_zone_table, so that "GMT" time stamps are allowed in
122856         London during the summer.  Problem reported by Ian Abbott.
122858 2005-04-12  Jim Meyering  <jim@meyering.net>
122860         * lib/human.c (humblock): Set *options even when returning due to
122861         xstrtoumax conversion failure.  Thanks to a used-uninitialized
122862         warning from gcc-4.
122864 2005-04-09  Jim Meyering  <jim@meyering.net>
122866         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
122867         -Wuninitialized: initialize tm0.tm_year.
122869 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
122871         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
122872         count, since there's no maximum.  All uses changed.
122873         Add member dsts_seen.
122874         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
122875         not being INT_MAX.
122876         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
122877         Use pc_rels_seen to decide whether a date is absolute.
122879         * lib/getdate.y (number): Don't overwrite year.
122880         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
122881         check.
122883 2005-04-02  Simon Josefsson  <jas@extundo.com>
122885         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
122886         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
122888 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
122890         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
122891         where no absolute path name can be longer than PATH_MAX.
122893 2005-03-27  Jim Meyering  <jim@meyering.net>
122895         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
122897 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
122899         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
122900         "one's complement" -> "ones' complement" in comment, as per Knuth.
122901         "value of type" -> "type or expression" in comment.
122902         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
122904 2005-03-26  Jim Meyering  <jim@meyering.net>
122906         Comment nits.
122907         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
122908         Correct typos: s/or/of/.
122910 2005-03-26  Jim Meyering  <jim@meyering.net>
122912         * modules/check-include-files: Move to ../ and rename to...
122913         * check-module: ...this.
122915 2005-03-25  Jim Meyering  <jim@meyering.net>
122917         * modules/xvasprintf (Files): Add xalloc.h.
122919 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
122921         * modules/gettext (Files): config/config.rpath ->
122922         build-aux/config.rpath
122923         * modules/iconv (Files): Likewise.
122924         Problem reported by Oskar Liljeblad.
122926 2005-03-23  Jim Meyering  <jim@meyering.net>
122928         * modules/check-include-files: New script to check for
122929         missing dependencies, multiple includes, etc.
122931         * modules/c-strtold (Depends-on): Add xalloc.
122932         * modules/c-strtod (Depends-on): Add xalloc.
122933         * modules/hash (Depends-on): Add xalloc.
122934         (Files): Remove lib/xalloc.h.
122936         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
122937         * modules/userspec (Files): Add lib/inttostr.h.
122939 2005-03-23  Jim Meyering  <jim@meyering.net>
122941         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
122943 2005-03-22  Jim Meyering  <jim@meyering.net>
122945         * modules/stat-macros: New module.
122946         * modules/canonicalize, modules/euidaccess, modules/file-type,
122947         * modules/filemode, modules/lchown, modules/makepath,
122948         * modules/rmdir, modules/stat: Depend on new stat-macros module
122949         rather than listing lib/stat-macros.h manually.
122950         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
122952 2005-03-22  Jim Meyering  <jim@meyering.net>
122954         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
122956 2005-03-22  Bruno Haible  <bruno@clisp.org>
122958         * config/srclist.txt: Replace target directory 'config' with
122959         'build-aux'.
122960         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
122961         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
122962         ../build-aux/.
122964 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
122966         * modules/chdir-long (Depends-on): Add mempcpy.
122968         * modules/acl, modules/backupfile, modules/c-strtod,
122969         modules/c-strtold, modules/canon-host, modules/canonicalize,
122970         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
122971         modules/exclude, modules/exitfail, modules/file-type,
122972         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
122973         modules/getdate, modules/getline, modules/getpagesize,
122974         modules/getpass, modules/getugroups, modules/group-member,
122975         modules/hard-locale, modules/hash, modules/human, modules/idcache,
122976         modules/inttostr, modules/long-options, modules/makepath,
122977         modules/md5, modules/memcasecmp, modules/memcoll,
122978         modules/modechange, modules/mountlist, modules/path-concat,
122979         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
122980         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
122981         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
122982         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
122983         modules/strftime, modules/strndup, modules/strverscmp,
122984         modules/timespec, modules/unlocked-io, modules/userspec,
122985         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
122986         modules/yesno:
122987         Remove lib_SOURCES line from Makefile.am section, as this is now
122988         done automatically by the corresponding Autoconf macro.
122990 2005-03-21  Jim Meyering  <jim@meyering.net>
122992         Changes imported from coreutils.
122994         * lib/cycle-check.c: Don't include xalloc.h.
122996         * lib/path-concat.c: Don't include assert.h.
122997         (path_concat): Remove assertion that would have triggered
122998         for ABASE starting with more than one slash.
122999         Reported by Andreas Schwab.
123001         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
123002         properly when ABASE is an absolute file name.
123003         Correct the description of this function.
123004         Include <assert.h>.
123005         Add an assertion and a test driver.
123006         This fixes a bug introduced on 2004-07-02.
123007         Andreas Schwab reported the resulting failure of cp --parents:
123008         http://lists.gnu.org/r/bug-coreutils/2005-01/msg00130.html
123010 2005-03-21  Jim Meyering  <jim@meyering.net>
123012         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
123013         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
123015 2005-03-21  Jim Meyering  <jim@meyering.net>
123016         and  Paul Eggert  <eggert@cs.ucla.edu>
123018         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
123019         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
123020         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
123021         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
123022         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
123023         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
123024         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
123025         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
123026         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
123027         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
123028         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
123029         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
123030         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
123031         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
123032         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
123033         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
123034         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
123035         for these modules.
123037 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
123039         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
123040         (which shouldn't happen), generate nothing instead of returning 0
123041         immediately, so that nstrftime (NULL, ...) doesn't return 0.
123043 2005-03-16  Bruno Haible  <bruno@clisp.org>
123045         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
123046         HAVE_LONGLONG_64BIT.
123048 2005-03-16  Bruno Haible  <bruno@clisp.org>
123050         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
123051         HAVE_LONGLONG_64BIT.
123053 2005-03-16  Bruno Haible  <bruno@clisp.org>
123055         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
123056         HAVE_LONGLONG_64BIT.
123058 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123060         * lib/strftime.c (my_strftime): Prepend space to format so that we can
123061         reliably distinguish strftime failure from empty output on POSIX
123062         hosts.
123064 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
123066         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
123067         (iconv_string): Don't guess a size-zero buffer, as that might cause
123068         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
123069         result would be 'too large', where 'too large' is (heuristically)
123070         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
123071         overflow concerns.  This will prevent some unwanted malloc failures
123072         when the inputs are very large.
123074 2005-03-15  Karl Berry  <karl@gnu.org>
123076         * config/srclist.txt (config.rpath): from gettext.
123077         * config/config.rpath: update.
123079 2005-03-15  Bruno Haible  <bruno@clisp.org>
123081         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
123082         to 'negate'.
123084         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
123085         variable.
123087         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
123088         results.
123090 2005-03-14  Simon Josefsson  <jas@extundo.com>
123092         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
123093         <fx@gnu.org>.
123095 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
123097         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
123098         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
123099         intprops.h.
123100         * lib/strtol.c: Likewise.
123102 2005-03-14  Jim Meyering  <jim@meyering.net>
123104         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
123105         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
123106         to be nonzero so that we (and caller) can detect the difference
123107         between a valid zero-length expansion and an error return, even
123108         when the underlying strftime fails before writing anything into
123109         that location.
123111 2005-03-14  Bruno Haible  <bruno@clisp.org>
123113         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
123114         Update from GNU gettext 0.14.3.
123116 2005-03-10  Jim Meyering  <jim@meyering.net>
123118         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
123120 2005-03-10  Jim Meyering  <jim@meyering.net>
123122         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
123123         so that this module works on systems without fchdir.
123125 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
123127         Factor int-properties macros into a single file, except for
123128         glibc-related files.
123129         * lib/intprops.h: New file.
123130         * lib/getloadavg.c: Include it instead of limits.h.
123131         (INT_STRLEN_BOUND): Remove.
123132         * lib/human.c: Include intprops.h.
123133         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
123134         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
123135         302/1000.
123136         * lib/inttostr.h: Include intprops.h instead of limits.h.
123137         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
123138         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
123139         for consistency with intprops.h.
123140         (time_t_is_integer, twos_complement_arithmetic): Use them.
123141         * lib/sig2str.h: Include <signal.h>, intprops.h.
123142         (INT_STRLEN_BOUND): Remove.
123143         * lib/strftime.c (TYPE_SIGNED): Remove.
123144         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
123145         * lib/strtol.c: Adjust comments to match intprops.h.
123146         * lib/userspec.c: Include intprops.h.
123147         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
123148         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
123149         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
123150         instead of rolling our own expressions.
123151         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
123153         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
123154         instead of int.
123155         (my_strftime): Do not mishandle years close to INT_MAX, by doing
123156         the right thing even if adding 1900 would overflow.  Similarly
123157         for tm_mon + 1 and tm_yday + 1.
123158         Make %Y always equivalent to %C%y, and similarly for %G and %g.
123159         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
123160         (DO_SIGNED_NUMBER): New macro.
123161         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
123163 2005-03-07  Bruno Haible  <bruno@clisp.org>
123165         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
123167 2005-03-07  Bruno Haible  <bruno@clisp.org>
123169         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
123171 2005-03-04  Derek R. Price  <derek@ximbiot.com>
123173         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
123174         (func_import): Only replace files via --import when they have actually
123175         changed.
123177 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123179         * m4/mmap-anon.m4: New file.
123180         * m4/pagealign_alloc.m4: New file.
123182 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123183             Bruno Haible  <bruno@clisp.org>
123185         * modules/pagealign_alloc: New file.
123186         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
123188 2005-03-03  Derek R. Price  <derek@ximbiot.com>
123189             Bruno Haible  <bruno@clisp.org>
123191         * lib/pagealign_alloc.h: New file.
123192         * lib/pagealign_alloc.c: New file.
123194 2005-03-03  Bruno Haible  <bruno@clisp.org>
123196         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
123197         Use an all-permissive copyright notice, recommended by RMS.
123199 2005-03-02  Bruno Haible  <bruno@clisp.org>
123201         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
123202         of AIX, the replacement has to be done only after <string.h> is
123203         included, therefore not in config.h. stpncpy.h does the replacement,
123204         and stpncpy.c uses it.
123206 2005-03-02  Bruno Haible  <bruno@clisp.org>
123208         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
123209         stpncpy.c uses it.
123211 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123213         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
123214         The workaround isn't strictly needed for POSIX conformance, and
123215         it's too much of a pain to configure and maintain.  We'll ask
123216         people to fix their kernels instead.
123217         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
123218         (NANOSLEEP_BUG_WORKAROUND): Remove.
123219         (xnanosleep): Remove the workaround.
123221 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123223         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
123224         Reported by Derek Price.
123225         (Include): Add "timespec.h".
123227         * modules/xnanosleep (Depends-on): Remove gethrxtime.
123229 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
123231         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
123232         to detect nanosleep bug.
123234 2005-03-01  Bruno Haible  <bruno@clisp.org>
123236         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
123238 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
123240         * modules/gethrxtime: New file.
123241         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
123242         (Depends-on): Add gethrxtime.
123243         (configure.ac): Add gl_XNANOSLEEP.
123244         (Makefile.am): Remove lib_SOURCES line.
123246 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123248         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
123249         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
123251 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
123253         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
123254         * lib/timespec.h (gettime): Return void, since it always
123255         succeeds now.  All uses changed.
123256         * lib/gettime.c (gettime): Likewise.
123257         [HAVE_NANOTIME]: Prefer nanotime.
123258         Assume gettimeofday succeeds, as POSIX requires.
123259         Assime time () succeeds, since other code already does.
123260         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
123261         (timespec_subtract): Remove.
123262         (NANOSLEEP_BUG_WORKAROUND): New constant.
123263         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
123264         things considerably.  Use it only on GNU/Linux hosts, since the
123265         workaround shouldn't be needed elsewhere.
123267 2005-02-24  Bruno Haible  <bruno@clisp.org>
123269         * modules/gettext (Files): Add m4/glibc2.m4.
123271 2005-02-24  Bruno Haible  <bruno@clisp.org>
123273         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
123274         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
123275         * m4/progtest.m4:
123276         Update from GNU gettext 0.14.2.
123277         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
123279 2005-02-24  Bruno Haible  <bruno@clisp.org>
123281         * lib/localcharset.c: Update from GNU gettext 0.14.2.
123282         * lib/config.charset: Update from GNU gettext 0.14.2.
123284 2005-02-24  Bruno Haible  <bruno@clisp.org>
123286         * lib/gettext.h: Update from GNU gettext 0.14.2.
123288 2005-02-23  Simon Josefsson  <jas@extundo.com>
123290         * m4/iconvme.m4: New file.
123292 2005-02-23  Jim Meyering  <jim@meyering.net>
123294         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
123295         change.
123296         Thanks to Bruno Haible for catching it.
123298 2005-02-22  Simon Josefsson  <jas@extundo.com>
123300         * modules/iconvme: New file.
123302         * MODULES.html.sh: Add iconvme.
123304 2005-02-22  Simon Josefsson  <jas@extundo.com>
123306         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
123308 2005-02-22  Simon Josefsson  <jas@extundo.com>
123310         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
123312 2005-02-22  Jim Meyering  <jim@meyering.net>
123314         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
123315         s/ifndef/ifdef/.
123317 2005-02-20  Neil Conway  <neilc@samurai.com>
123319         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
123320         returned by OSX/Darwin if the specified buffer is not large
123321         enough for the hostname.
123323 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123325         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
123326         pass it to _help, otherwise the latter coredumps trying to
123327         dereference state.root_argp.
123329 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123331         * modules/chdir-long (Depends-on): Add memrchr.
123332         * modules/memrchr (Files): Add lib/memrchr.h.
123333         (Include): "memrchr.h".
123335 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123337         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
123339 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
123341         * lib/memrchr.h: New file.
123342         * lib/chdir-long.c: Include it.
123343         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
123344         Don't bother including stddef.h.
123346 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
123348         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
123349         inclusion.
123350         Include <sys/types.h>, for dev_t.
123351         (ME_DUMMY, ME_REMOTE): Move from here....
123352         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
123353         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
123354         Dmitry V. Levin.
123355         Include mountlist.h first, to test the interface.
123357 2005-01-29  Bruno Haible  <bruno@clisp.org>
123359         * lib/progname.c (program_name): Initialize.
123360         Needed when linking statically on MacOS X.
123362 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123364         Sync from coreutils.
123365         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
123366         (Depends-on): Add c-strtod.
123367         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
123369 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
123371         Sync from coreutils.
123372         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
123374         Remove files that are specific to coreutils.
123375         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
123377 2005-01-28  Bruno Haible  <bruno@clisp.org>
123379         * modules/javacomp: New file.
123380         * MODULES.html.sh (Java): Add javacomp.
123382 2005-01-28  Bruno Haible  <bruno@clisp.org>
123384         * m4/javacomp.m4: New file, from GNU gettext.
123386 2005-01-28  Bruno Haible  <bruno@clisp.org>
123388         * lib/javacomp.sh.in: New file, from GNU gettext.
123389         * lib/javacomp.h: New file, from GNU gettext.
123390         * lib/javacomp.c: New file, from GNU gettext.
123392 2005-01-26  Simon Josefsson  <jas@extundo.com>
123394         * lib/gai_strerror.c: Use GPL in header.
123396 2005-01-26  Bruno Haible  <bruno@clisp.org>
123398         * modules/javaexec: New file.
123399         * MODULES.html.sh (Java): Add javaexec.
123401 2005-01-26  Bruno Haible  <bruno@clisp.org>
123403         * m4/javaexec.m4: New file, from GNU gettext.
123405 2005-01-26  Bruno Haible  <bruno@clisp.org>
123407         * lib/javaexec.sh.in: New file, from GNU gettext.
123408         * lib/javaexec.h: New file, from GNU gettext.
123409         * lib/javaexec.c: New file, from GNU gettext.
123411 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123413         * modules/lchown (Depends-on): Remove lchown.h
123415 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123417         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
123418         must be defined if the header file was not found, in order
123419         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
123421 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123423         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
123424         initializers for struct pentry_state.
123425         (__argp_error): Check return value of __asprintf
123426         (__argp_failure): Translate error message
123428         * lib/argp-parse.c: Removed braces around the expansion of N_()
123430 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
123432         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
123433         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
123434         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
123435         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
123436         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
123437         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
123438         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
123439         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
123440         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
123441         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
123442         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
123443         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
123444         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
123445         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
123446         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
123447         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
123448         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
123449         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
123450         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
123451         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
123452         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
123453         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
123454         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
123455         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
123456         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
123457         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
123458         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
123459         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
123460         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
123461         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
123462         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
123463         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
123464         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
123465         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
123466         xstrtol.m4, xstrtoumax.m4, yesno.m4:
123467         Use an all-permissive copyright notice, recommended by RMS.
123469 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
123471         * modules/chdir-long (Depends-on): Remove mempcpy.
123473 2005-01-21  Jim Meyering  <jim@meyering.net>
123475         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
123476         same value as for Solaris 9.
123478         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
123479         component length.  This included changing the parameter to be
123480         of type `char *' rather than `char const *'.
123481         * lib/chdir-long.h (chdir_long): Update prototype.
123483         * lib/openat.c (fdopendir, fstatat): New functions.
123484         * lib/openat.h: Include headers required for use of DIR and struct
123485         stat.
123486         [AT_SYMLINK_NOFOLLOW]: Define.
123487         (fdopendir, fstatat): Add prototypes.
123489 2005-01-21  Bruno Haible  <bruno@clisp.org>
123491         * modules/classpath: New file.
123492         * MODULES.html.sh (Java): Add classpath.
123494 2005-01-21  Bruno Haible  <bruno@clisp.org>
123496         * lib/classpath.h: New file, from GNU gettext.
123497         * lib/classpath.c: New file, from GNU gettext.
123499 2005-01-20  Simon Josefsson  <jas@extundo.com>
123501         * modules/version-etc-fsf: New file.
123503 2005-01-20  Simon Josefsson  <jas@extundo.com>
123505         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
123506         * lib/version-etc.c: Remove version_etc_copyright.
123507         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
123508         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
123510 2005-01-20  Simon Josefsson  <jas@extundo.com>
123512         * lib/base64.h (isbase64): Add.
123514         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
123515         using a unsigned prototype, don't inline.
123516         (base64_decode): Use it.
123518 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123520         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
123521         it.
123523 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123525         * lib/save-cwd.c (save_cwd): Remove code to support the case
123526         where fchdir is missing or flaky.
123528 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
123530         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
123532 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
123534         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
123535         AC_LIBSOURCES now does this.
123536         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
123537         with new ullong_max module.
123539 2005-01-19  Bruno Haible  <bruno@clisp.org>
123541         * modules/sh-quote: New file.
123542         * MODULES.html.sh (Executing programs): Add sh-quote.
123544 2005-01-19  Bruno Haible  <bruno@clisp.org>
123546         * lib/sh-quote.h: New file, from GNU gettext.
123547         * lib/sh-quote.c: New file, from GNU gettext.
123549 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123551         Merge from coreutils.
123552         * m4/ullong_max.m4: New file.
123553         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
123554         (gl_MACROS): Assume localeconv exists.
123556 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123558         Merge changes from coreutils, as described below in several
123559         changelogs dated today.
123561         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
123562         (O_DIRECTORY): Remove; not needed here, since "." must be
123563         a directory.  All uses removed.
123564         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
123565         universal on Suns, and we also need to test for IRIX.
123566         Revamp code to use 'if' rather than '#if'.
123567         Avoid unnecessary comparison of cwd->desc to 0.
123569         * lib/utimens.c (futimens): Robustify the previous patch, by checking
123570         for known valid error numbers rather than observed invalid ones.
123572 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
123574         * modules/ullong_max: New file.
123576         * modules/chdir-long, modules/openat: New files.
123577         * modules/save-cwd (Depends-on): Depend on chdir-long.
123578         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
123580 2005-01-18  Jim Meyering  <jim@meyering.net>
123582         Merge from coreutils.
123583         * m4/chdir-long.m4, m4/openat.m4: New files.
123584         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
123585         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
123586         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
123587         is sane and DOES follow symlinks.  Besides, testing 20 different
123588         systems found no broken chown implementations.
123589         Prompted by a change in rsync's copy of this macro.
123590         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
123592         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
123594         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
123595         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
123596         NULL-means-set-to-current-time semantics.
123597         Remove temporary file immediately, rather than waiting
123598         for configure's at-exit trap code to do it.
123600 2005-01-18  Jim Meyering  <jim@meyering.net>
123602         * lib/version-etc.c (version_etc_copyright): Update copyright date.
123604         * lib/utimens.c (futimens): Account for the fact that futimes
123605         can also fail with errno == ENOSYS or errno == ENOENT.
123606         Patch from Dmitry V. Levin.
123608         Change the name of the robust chdir function from chdir to chdir_long.
123609         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
123610         (restore_cwd): Use chdir_long, not chdir.
123611         * lib/chdir-long.c: Renamed from chdir.c.
123612         * lib/chdir-long.h: Renamed from chdir.h.
123613         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
123614         Hurd.
123616 2005-01-18  Bruno Haible  <bruno@clisp.org>
123618         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
123619         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
123620         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
123621         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
123622         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
123623         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
123624         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
123625         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
123626         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
123627         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
123628         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
123629         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
123630         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
123631         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
123632         Use an all-permissive copyright notice, recommended by RMS.
123634 2005-01-18  Bob Proulx  <bob@proulx.com>
123636         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
123637         simplify offsetof() macro construct to avoid compile failure with
123638         native HP-UX 11.0 ANSI C compiler.
123640 2005-01-17  Bruno Haible  <bruno@clisp.org>
123642         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
123643         redundant because stpncpy.m4 takes care of it.
123645 2005-01-17  Bruno Haible  <bruno@clisp.org>
123647         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
123649 2005-01-17  Bruno Haible  <bruno@clisp.org>
123651         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
123652         used.
123654 2005-01-17  Bruno Haible  <bruno@clisp.org>
123656         * lib/fwriteerror.h (fwriteerror): Change specification to include
123657         fclose.
123658         * lib/fwriteerror.c: Include <stdbool.h>.
123659         (fwriteerror): At the end, close the file stream. Record whether
123660         stdout was already closed.
123662 2005-01-17  Bruno Haible  <bruno@clisp.org>
123664         * lib/execute.c (environ): Declare if needed.
123665         * lib/pipe.c (environ): Likewise.
123666         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
123668 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123670         * modules/argp: Depend on vsnprintf
123672 2005-01-10  Jim Meyering  <jim@meyering.net>
123674         * modules/closeout (Depends-on): Add atexit.
123676 2005-01-06  Bruno Haible  <bruno@clisp.org>
123678         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
123680 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
123682         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
123683         definitions to be after all include files, to avoid collisions.
123684         Problem reported by Bob Proulx.
123686 2005-01-04  Jim Meyering  <jim@meyering.net>
123688         Changes imported from coreutils.
123689         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
123690         as the mkstemp template, use a temporary directory and an
123691         8.3-friendly template to avoid trouble on systems like DJGPP.
123692         Reported by Juan M. Guerrero via Stepan Kasal.
123693         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
123694         close. Remove the temporary directory right away, rather than waiting
123695         for configure's at-exit trap code to do it.
123696         Suggestion from Stepan Kasal.
123698 2005-01-01  Simon Josefsson  <jas@extundo.com>
123700         * gnulib-tool: Print #include directives when --import'ing.
123702 2004-12-28  Simon Josefsson  <jas@extundo.com>
123704         * tests/test-base64.c: Include required header files.  Remove
123705         unused variables.
123707 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123709         * modules/error (Depends-on): Remove gettext.
123711 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
123713         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
123714         not needed.  This removes a dependency on the gettext module.
123715         [defined _LIBC]: Do not include <libintl.h>; not needed.
123717 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123719         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
123720         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
123722 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
123724         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
123725         HAVE_DECL_STRTOLD.
123727 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123729         * modules/getdate (Depends-on): Remove alloca-opt.
123731 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123733         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
123735 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
123737         * lib/argp-parse.c: Include <stddef.h>.
123738         (alignof, alignto): New macros.
123739         (parser_init): Don't assume that void * is aligned sufficiently
123740         for struct option.
123742         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
123743         need to extend the stack.
123744         (YYINITDEPTH): New macro, so that the initial stack isn't overly
123745         large.
123747 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
123749         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
123751 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123753         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
123754         (2004-10-24) change.  Apparently this was a false alarm.
123756         * modules/getdate: Depend on alloca-opt, not alloca.
123758 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
123760         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
123761         Remove now-obsolete comment about AIX.
123762         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
123763         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
123764         (YYMAXDEPTH): New macro.
123766 2004-12-18  Simon Josefsson  <jas@extundo.com>
123768         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
123770 2004-12-18  Bruno Haible  <bruno@clisp.org>
123772         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
123774 2004-12-18  Bruno Haible  <bruno@clisp.org>
123776         * lib/fatal-signal.c (fatal_signals): Make non-const.
123777         (init_fatal_signals): New function.
123778         (uninstall_handlers, install_handlers): Ignore signals that were set to
123779         SIG_IGN.
123780         (at_fatal_signal): Call init_fatal_signals.
123781         (init_fatal_signal_set): Likewise. Ignore signals that were set to
123782         SIG_IGN.
123783         Reported by Paul Eggert.
123785 2004-12-18  Bruno Haible  <bruno@clisp.org>
123787         * doc/alloca.texi: New file.
123788         * doc/alloca-opt.texi: New file.
123790 2004-12-17  Jim Meyering  <jim@meyering.net>
123792         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
123793         Otherwise, install-sh could exit with improper exit status when
123794         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
123796 2004-12-16  Simon Josefsson  <jas@extundo.com>
123798         * tests/test-base64.c: Add license.
123800 2004-12-15  Stepan Kasal  <address@hidden>
123802         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
123804 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
123806         * modules/getcwd (Files): Add m4/d-ino.m4.
123807         Suggested by Mark D. Baushke.
123809 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123811         * lib/getdate.y (textint): New member "negative".
123812         (time_zone_hhmm): New function.
123813         Expect 14 shift-reduce conflicts, not 13.
123814         (o_colon_minutes): New rule.
123815         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
123816         (yylex): Set the "negative" member of signed numbers.
123818 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
123820         * doc/getdate.texi (Time of day items, Time zone items):
123821         Describe new formats +00:00, UTC+00:00.
123823 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
123825         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
123826         spurious "-l"s.  Problem reported by Stepan Kasal.
123828 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
123830         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
123831         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
123833 2004-12-04  Simon Josefsson  <jas@extundo.com>
123835         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
123836         Vandoorselaere <yoann@prelude-ids.org>.
123838 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123840         Changes imported from coreutils.
123841         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
123842         exist.
123843         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
123845 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123847         Changes imported from coreutils.
123848         * lib/hard-locale.c: Assume <locale.h> exists.
123849         Include "strdup.h".
123850         (GLIBC_VERSION): New macro.
123851         (hard_locale): Assume setlocale exists.
123852         Rewrite to avoid #ifdef.
123853         Use strdup rather than malloc + strcpy.
123854         * lib/human.c: Assume <locale.h> exists.
123855         (human_readable): Assume localeconv exists.
123857 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
123859         * modules/hard-locale (Depends-on): Add strdup.
123861 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
123863         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
123864         convert T2, not T.  (Imported from libc.)
123866 2004-11-30  Simon Josefsson  <jas@extundo.com>
123868         * modules/restrict (License): Change to LGPL.
123870 2004-11-30  Simon Josefsson  <jas@extundo.com>
123872         * m4/restrict.m4: Add copyright and copying conditions.
123874 2004-11-30  Simon Josefsson  <jas@extundo.com>
123876         * m4/base64.m4: New file.
123878 2004-11-30  Simon Josefsson  <jas@extundo.com>
123880         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
123881         base64.
123883         * tests/test-base64.c: New file.
123885         * modules/base64: New file.
123887 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123889         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
123890         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
123892         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
123894 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
123896         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
123897         (__getcwd.c): Don't restore errno; glibc doesn't.
123898         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
123899         first, falling back to our code only if its results look suspicious.
123900         Ensure that the resulting buffer is only as large as necessary.
123902         * lib/readutmp.c: Include readutmp.h first.
123903         Include <errno.h>, since readutmp.h no longer does that.
123904         * lib/readutmp.h: Don't include <errno.h>,
123905         <sys/param.h>, <time.h>; not needed to establish interface.
123906         (errno): Remove decl.
123907         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
123908         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
123909         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
123911 2004-11-28  Simon Josefsson  <jas@extundo.com>
123913         * lib/base64.h, base64.c: New file.
123915 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
123917         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
123919 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
123921         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
123922         (Depends-on): Remove pathmax, same.  Add mempcpy.
123923         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
123924         (Makefile.am): Append getcwd.h to lib_SOURCES.
123925         (Include): Add getcwd.h.
123926         (Maintainer): Change from Jim Meyering to "all, glibc",
123927         since getdate now uses intended-for-glibc code.
123928         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
123929         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
123931 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123933         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
123934         HP's ANSI C compiler.
123935         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
123936         Declaring int functions causes warnings on some modern systems and
123937         shouldn't be needed to compile on ancient ones.
123938         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
123939         defined.
123941         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
123942         with the following changes.
123943         (__set_errno): Parenthesize properly.
123944         Include <stdbool.h>.
123945         (MIN, MAX, MATCHING_INO): New macros.
123946         (__getcwd): Define with prototype, not K&R form.
123947         Use heuristics to allocate default buffer on stack if possible.
123948         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
123949         behavior, and to avoid the PATH_MAX limit when computing
123950         ../../../../...
123951         Use MATCHING_INO to compare inode number to file.
123952         Check for arithmetic overflow in size calculations.
123953         Fix bug in reallocation of dot array that caused getcwd to fail
123954         on directories nested deeper than 75.
123955         Be more careful about saving errno on error.
123956         Do not use realloc; use only free+malloc, as this is a bit
123957         more flexible and avoids a needless copy operation.
123958         Do not inspect st_dev and st_ino for symbolic links; POSIX
123959         doesn't specify the latter.
123960         Check for closedir errors.
123961         Avoid needless casts.
123962         Use "#ifdef weak_alias" around weak_alias, to be like other
123963         glibc code.
123964         The following changes to getcwd.c have effect only when used in
123965         gnulib; they have no effect inside glibc proper.
123966         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
123967         as alloca isn't used.
123968         (alloca, __alloca): Likewise.
123969         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
123970         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
123971         unconditionally, as gnulib assumes C89 or better.
123972         Do not include <sys/param.h>.
123973         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
123974         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
123975         better.
123976         (NULL) [!defined NULL]: Remove; we assume C89 or better.
123977         Include <dirent.h> in a way that is compatible with modern Autoconf.
123978         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
123979         New macros, if not already defined.
123980         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
123981         Use "_LIBC", not "defined _LIBC", for consistency.
123982         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
123983         a mempcpy module.
123984         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
123985         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
123986         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
123987         credit only to Jim Meyering and adjust the copyright dates.
123988         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
123989         <stdlib.h>, <unistd.h>, "pathmax.h".
123990         Instead, include "xgetcwd.h" (first) and "getcwd.h".
123991         (INITIAL_BUFFER_SIZE): Remove.
123992         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
123994 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
123996         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
123997         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
123998         Use the _ONCE methods, for efficiency.
123999         Check for fcntl.h.  In test program, include <errno.h>
124000         and <fcntl.h> if available.  Remove old K&R cruft from
124001         test program.  Check for common errors in GNU/Linux,
124002         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
124003         don't do AC_LIBOBJ, as that's getcwd.m4's job.
124004         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
124005         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
124006         name accordingly.
124007         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
124008         accommodate new getcwd.c.
124009         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
124010         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
124011         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
124012         that's all we need now.
124014 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124016         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
124017         argp-parse.c depends on getopt internals, that means we should
124018         always use our getopt, to be on the safe side.
124019         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
124020         order not to spoil the result of an eventual previous invocation
124021         of gl_GETOPT_SUBSTITUTE.
124023 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124025         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
124026         redefinition warnings. To avoid them, include the defines
124027         in `#if !defined __need_getopt ... #endif'. The only place
124028         where __getopt_argv_const is used is in definitions
124029         of getopt_long and getopt_long_only below, which are as well
124030         protected by `#ifndef __need_getopt'.
124031         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
124032         __need_getopt after including <stdio.h> and <unistd.h> These
124033         headers might have defined it.
124035 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124037         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
124039 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
124041         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
124042         (futimens): New function, which uses futimes if available.
124043         (futimens, utimens): Support timespec==NULL, with same semantics
124044         as utime and utimens.
124045         * lib/utimens.h (futimens): New decl.
124047 2004-11-23  Jim Meyering  <jim@meyering.net>
124049         * lib/getopt_.h: Remove trailing blanks.
124051 2004-11-23  Jim Meyering  <jim@meyering.net>
124053         * lib/__fpending.c: Add comment.
124055 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
124057         * modules/canonicalize (Depends-on): Add xreadlink.
124058         Problem reported by James Youngman.
124060 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
124062         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
124063         New macros.
124064         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
124065         optopt): Use them instead of invoking ## directly; otherwise, the
124066         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
124068 2004-11-19  Bruno Haible  <bruno@clisp.org>
124070         * lib/strtok_r.c: Move comments from here...
124071         * lib/strtok_r.h: ... to here.
124073 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124075         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
124076         implementations that mishandle size_t overflow.
124078 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
124080         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
124081         might fail.  Problem reported by Yoann Vandoorselaere.
124082         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
124083         implementations that mishandle size_t overflow.
124085 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124087         * modules/canon-host (Depends-on): Add strdup.
124089 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124091         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
124093 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124095         * lib/canon-host.c: Include "strdup.h".
124096         (canon_host): Use getaddrinfo if available, so that IPv6 works.
124097         Use strdup instead of malloc/strcpy to duplicate strings.
124099         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
124100         (human_space_before_unit): New constant.
124101         * lib/human.c (human_readable): Support it.
124103         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
124104         (xgetcwd): Set errno correctly when failing.
124105         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
124106         the failure is actually due to a PATH_MAX problem.
124108         Further getopt changes to make it more likely that glibc will
124109         buy the changes back.
124110         * lib/getopt.c (POSIXLY_CORRECT): New constant.
124111         (getopt): Use it, so to preserve glibc semantic
124112         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
124113         when compiling for libc.
124114         * lib/getopt_.h (__getopt_argv_const): Bring it back.
124115         (getopt_long, getopt_long_only): Use it.
124117         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124118         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
124119         (getopt): Argv is now char * const *, as per standard.
124120         (_getopt_internal_r, _getopt_internal): Argv is now char **,
124121         not char *__getopt_argv_const *.
124122         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124123         _getopt_long_only_r): Likewise.
124124         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
124125         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124126         _getopt_long_r, _getopt_long_only_r): Likewise.
124127         * lib/getopt_.h (__getopt_argv_const): Remove.
124128         (getopt): Argv is now char * const *, as per standard.
124130         * lib/getdate.y (tORDINAL): New token.
124131         (day, relunit): Allow it for relative times.
124132         (relative_time_table): Use tORDINAL for ordinals.
124134 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
124136         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
124137         Document that "second" isn't allowed as an ordinal number.
124139 2004-11-16  Jim Meyering  <jim@meyering.net>
124141         * modules/closeout (Depends-on): Add fpending.
124143 2004-11-15  Jim Meyering  <jim@meyering.net>
124145         * lib/closeout.c: Include "__fpending.h" once again.
124146         Include <stdbool.h>.
124147         (close_stdout): Don't fail just because stdout was closed initially,
124148         since some programs don't write to stdout in the normal course of
124149         operation (other than --version and --help), and we don't want this
124150         function to make e.g. `touch file >&-' fail.
124151         But do fail if it was closed and someone has tried to write to it.
124152         E.g., `printf foo >&-' must fail.
124154 2004-11-13  Jim Meyering  <jim@meyering.net>
124156         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
124158 2004-11-12  Simon Josefsson  <jas@extundo.com>
124160         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
124161         small doc fix is still pending.
124163 2004-11-11  Simon Josefsson  <jas@extundo.com>
124165         * modules/strtok_r: New file.
124167         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124168         strtok_r.
124170 2004-11-11  Simon Josefsson  <jas@extundo.com>
124172         * m4/strtok_r.m4: New file.
124174         * m4/getopt.m4: Replace opterr.
124176 2004-11-11  Simon Josefsson  <jas@extundo.com>
124178         * lib/strtok_r.h, strtok_r.c: New file.
124180 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124182         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
124183         of replacing opterr, getopt, etc.  This should handle the
124184         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
124186 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
124188         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
124189         we can stop lying to compilers about the constness of argv when we
124190         are compiled outside glibc.
124191         (getopt, getopt_long, getopt_long_only): Use it.
124192         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
124193         _getopt_internal, getopt): Likewise.
124194         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
124195         _getopt_long_only_r): Likewise.
124196         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
124197         _getopt_long_r, _getopt_long_only_r): Likewise.
124199         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
124200         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
124201         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
124202         the other external symbols.
124203         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
124204         declaration, since the above renaming now works around collisions.
124206 2004-11-11  Jim Meyering  <jim@meyering.net>
124208         * lib/linebreak.c: Remove trailing blanks.
124209         * lib/alloca_.h: Likewise.
124210         * lib/acosl.c: Likewise.
124211         * lib/euidaccess.c: Likewise.
124212         * lib/allocsa.h: Likewise.
124214 2004-11-10  Simon Josefsson  <jas@extundo.com>
124216         * m4/getaddrinfo.m4: New file.
124218 2004-11-10  Simon Josefsson  <jas@extundo.com>
124220         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
124222 2004-11-10  Simon Josefsson  <jas@extundo.com>
124224         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
124225         getaddrinfo.
124227         * modules/getaddrinfo: New file.
124229 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124231         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
124233 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
124235         * lib/mktime.c (SHR): New macro, which is a portable
124236         substitute for >> that should work even on Crays.
124237         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
124238         Problem reported by Mark D. Baushke in
124239         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00071.html>.
124240         * lib/getdate.y (SHR): Likewise.
124241         (tm_diff): Use it.
124242         * lib/strftime.c (SHR): Likewise.
124243         (tm_diff): Use it.
124244         * lib/quotearg.c (struct quoting_options): Use unsigned int for
124245         quote_these_too, so that right shifts are well defined.  All uses
124246         changed.
124248 2004-11-10  Jim Meyering  <jim@meyering.net>
124250         Ensure that no close failure goes unreported.
124251         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
124252         return early when it seems there's nothing to flush.
124253         Don't include __fpending.h.
124255 2004-11-10  Jim Meyering  <jim@meyering.net>
124257         * modules/closeout (Depends-on): Remove fpending.
124259 2004-11-10  Jim Meyering  <jim@meyering.net>
124261         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
124263 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124265         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
124266         gl_FUNC_STRFTIME.
124267         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
124268         and AC_REQUIRE when possible, to avoid duplicate checks.
124269         Check for <wchar.h>.
124271 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
124273         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
124275 2004-11-09  Bruno Haible  <bruno@clisp.org>
124277         * m4/sockpfaf.m4: New file.
124279 2004-11-05  Bruno Haible  <bruno@clisp.org>
124281         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
124282         Reported by Mark D. Baushke <mdb@cvshome.org>.
124284 2004-11-04  Bruno Haible  <bruno@clisp.org>
124286         2004-09-11  Bruno Haible  <bruno@clisp.org>
124287                 * allocsa.valgrind: New file.
124288         2004-02-06  Bruno Haible  <bruno@clisp.org>
124289                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
124290                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
124291                 Reported by Christopher Seip <chris.seip@hp.com>.
124293 2004-11-04  Bruno Haible  <bruno@clisp.org>
124295         * modules/allocsa (Files): Add lib/allocsa.valgrind.
124296         (Makefile.am): Distribute it.
124298 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
124300         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
124301         with errno == ERANGE if the buffer is too small.
124302         Problem reported by Mark D. Baushke.
124304 2004-11-03  Albert Chin  <china@thewrittenword.com>
124305             Paul Eggert  <eggert@cs.ucla.edu>
124307         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
124308         equivalent, substitute $ac_type for equivalent type rather than
124309         blindly using uint32_t *always* which won't work if uint32_t is not
124310         available.  Define _UINT32_T to work around typedef of uint32_t if
124311         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
124312         2.5.1.
124314 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124316         * m4/jm-macros.m4: Sync from coreutils.
124317         (gl_MACROS): Check for mbrlen, for pathchk.
124318         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
124320 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124322         * lib/xreadlink.c (MAXSIZE): New macro.
124323         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
124324         size does not exceed MAXSIZE.  Avoid cast.
124325         As suggested by Mark D. Baushke in
124326         <http://lists.gnu.org/r/bug-gnulib/2004-11/msg00009.html>,
124327         if readlink fails with buffer size just under MAXSIZE, try again
124328         with MAXSIZE.
124330 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
124332         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
124334 2004-11-02  Derek R. Price  <derek@ximbiot.com>
124335         and  Paul Eggert  <eggert@cs.ucla.edu>
124337         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
124338         (get_date): Overparenthesize to avoid GCC warning.
124340 2004-11-02  Bruno Haible  <bruno@clisp.org>
124342         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
124343         returns void.
124345 2004-11-02  Bruno Haible  <bruno@clisp.org>
124347         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
124348         function returns void.
124350 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124352         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
124353         fflush_unlocked, flockfile, funlockfile, funlockfile,
124354         fputs_unlocked, putc_unlocked.
124356 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
124358         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124359         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
124360         already declared.
124362 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124364         * modules/getdate (Files): Add doc/getdate.texi.
124365         (Depends-on): Add setenv, xalloc.
124367 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124369         * lib/getdate.y: Add support for TZ="foo" within a date string.
124370         Fix some bugs near time_t boundaries.  Reject dates with
124371         out-of-range components, e.g., "Sept 31".
124372         Include <stdlib.h>, "setenv.h", "xalloc.h".
124373         (ISDIGIT_LOCALE): Remove; unused.
124374         Note that the TZ and time functions used here are not reentrant.
124375         (mktime_ok, get_tz): New functions.
124376         (TZBUFSIZE): New constant.
124377         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
124378         This requires that we sometimes generate our own TZ="XXX..." setting.
124380 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
124382         * doc/getdate.texi: New file, from coreutils with modifications for
124383         the new TZ parsing.
124385 2004-10-27  Derek R. Price  <derek@ximbiot.com>
124387         * lib/mktime.c (not_equal_tm): Remove redundant check.
124389 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124391         * modules/regex (lib_SOURCES): Add regex.c.
124392         Reported by James Youngman in
124393         <http://lists.gnu.org/r/bug-gnulib/2004-10/msg00199.html>.
124395 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
124397         * lib/getdate.y: Use Bison 1.875 features, and some minor
124398         code cleanups.  This change does not affect semantics.
124399         Don't include <stdlib.h>; no longer needed.
124400         Don't include unlocked-io.h; only the "#if TEST" code uses
124401         stdio, and performance isn't crucial there.
124402         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
124403         Bison 1.875 features as described below.
124404         All uses of "PC." replaced by "pc->".
124405         (YYSTYPE): Add a forward declaration.
124406         (yylex, yyerror): Use full prototypes in forward decls.
124407         Use "%pure-parser" rather than obsolescent "%pure_parser".
124408         Use %parse-param and %lex-param instead of obsolescent
124409         YYPARSE_PARAM and YYLEX_PARAM.
124410         (meridian_table, month_and_day_table, time_units_table,
124411         relative_time_table, time_zone_table, military_table,
124412         lookup_zone, lookup_word, get_date):
124413         Use NULL instead of 0 where appropriate.
124414         (to_hour): Avoid abort (), to avoid a dependency on
124415         stdlib.h.
124416         (yyerror, yylex): Now accepts parser_control * arg.
124417         (main) [TEST]: Use '\0' rather than 0 for char.
124419 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124421         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
124423 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
124425         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
124426         It's now the caller's responsibility to handle the case where
124427         !HAVE_GETPAGESIZE && !defined getpagesize.
124429         * lib/mktime.c (leapyear): Arg is long int, not int.
124431 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
124433         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
124435 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
124437         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
124438         missing.  Problem reported by James Youngman.
124440 2004-10-16  Simon Josefsson  <jas@extundo.com>
124442         * gnulib-tool: Fix comments.  Fix parse problem.
124443         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
124445 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
124447         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
124448         implementation of getopt_long.  Problem reported by Alexander Taler in:
124449         http://lists.gnu.org/r/bug-gnulib/2004-10/msg00103.html
124451 2004-10-15  Bruno Haible  <bruno@clisp.org>
124453         * gnulib-tool: Untabify. Initialize supplied_libname.
124454         (func_usage): More homogenous output.
124455         (func_modules_transitive_closure, func_modules_to_filelist,
124456         func_emit_lib_Makefile_am): New functions.
124457         (func_import): New function, extracted from big case statement. Use
124458         func_get_license, func_modules_transitive_closure,
124459         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
124460         opt_lgpl. Don't use test -a, as it's not portable.
124461         (func_create_testdir): Use func_modules_transitive_closure,
124462         func_modules_to_filelist, func_emit_lib_Makefile_am.
124464 2004-10-15  Bruno Haible  <bruno@clisp.org>
124466         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
124468 2004-10-15  Bruno Haible  <bruno@clisp.org>
124470         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
124471         the portions belonging to each module.
124472         Suggested by Derek Robert Price <derek@ximbiot.com>.
124474 2004-10-12  Simon Josefsson  <jas@extundo.com>
124476         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
124477         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
124478         to real functions.
124480 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124482         * modules/vsnprintf: New file.
124484 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124486         * m4/vsnprintf.m4: New file.
124488 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124490         * lib/vsnprintf.h: New file.
124491         * lib/vsnprintf.c: New file.
124493 2004-10-11  Bruno Haible  <bruno@clisp.org>
124495         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
124496         vsnprintf.
124498 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
124500         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
124502 2004-10-07  Bruno Haible  <bruno@clisp.org>
124504         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
124505         fits into the provided buffer.
124507 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
124509         * lib/diacrit.c, diacrit.h: Add GPL notice.
124511         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
124512         notice.
124513         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
124514         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
124515         This avoids a potential constant-folding bug.
124517 2004-10-05  Bruno Haible  <bruno@clisp.org>
124519         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
124520         for the declaration of strsep.
124522 2004-10-05  Bruno Haible  <bruno@clisp.org>
124524         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
124526 2004-10-04  Simon Josefsson  <jas@extundo.com>
124528         * modules/memmem: New file.
124529         * tests/test-memmem.c: New file.
124530         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
124532 2004-10-04  Simon Josefsson  <jas@extundo.com>
124534         * m4/memmem.m4: New file.
124536 2004-10-04  Simon Josefsson  <jas@extundo.com>
124538         * lib/memmem.h: New file.
124539         * lib/memmem.c: New file, taken from glibc.
124541 2004-10-04  Simon Josefsson  <jas@extundo.com>
124543         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
124544         '#ifdef USE_UNLOCKED_IO'.
124546 2004-10-04  Simon Josefsson  <jas@extundo.com>
124548         * config/srclist.txt: Add memmem from glibc.
124550 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124552         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
124554         * modules/argmatch, modules/argp, modules/closeout, modules/error,
124555         modules/exclude, modules/getdate, modules/getline,
124556         modules/getndelim2, modules/getpass, modules/getpass-gnu,
124557         modules/getusershell, modules/linebuffer, modules/md5,
124558         modules/mountlist, modules/posixtm, modules/readtokens,
124559         modules/readutmp, modules/regex, modules/sha1,
124560         modules/version-etc, modules/yesno:
124561         Remove dependency on unlocked-io.
124563 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124565         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
124567         * m4/unlocked-io.m4: Add copyright notice.
124568         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
124570 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124572         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
124573         * lib/xmalloc.c (xmemdup): Likewise.
124574         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
124575         XFREE): Remove these long-obsolescent macros.
124576         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
124577         * lib/xstrdup.c: Remove.
124579         * lib/regex.c (re_comp): Cast gettext return value to char *,
124580         Problem reported by Martin Neitzel via Mark D. Baushke.
124582 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
124584         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
124585         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
124586         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
124587         regex.c, sha1.c, version-etc.c, yesno.c:
124588         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
124589         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
124590         the includer's responsibility.
124592         Sync from coreutils.
124594         * lib/modechange.c (mode_compile): Don't decrement a pointer that
124595         points to the start of a string, as the C Standard says the
124596         resulting behavior is undefined.
124598         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
124599         simple -> simple_backups, numbered_existing ->
124600         numbered_existing_backups, numbered -> numbered_backups
124601         to avoid shadowing problems.  All uses changed.
124602         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
124603         * lib/backupfile.c (check_extension, numbered_backup):
124604         Rename locals to avoid shadowing 'basename'.
124605         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
124606         once.
124608         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
124609         * lib/.cvsignore: Add getopt.h.
124611 2004-10-04  Bruno Haible  <bruno@clisp.org>
124613         * modules/README: New file.
124614         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
124615         not a module.
124617 2004-10-02  Jim Meyering  <jim@meyering.net>
124619         * lib/dirfd.h, getpagesize.h: Add copyright notice.
124621 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124623         * modules/strsep: New file.
124625 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124627         * m4/strsep.m4: New file.
124629 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
124631         * lib/strsep.h: New file.
124632         * lib/strsep.c: New file.
124634 2004-10-01  Simon Josefsson  <jas@extundo.com>
124636         * lib/snprintf.c (snprintf): Handle size==0.
124638 2004-10-01  Simon Josefsson  <jas@extundo.com>
124639             Bruno Haible  <bruno@clisp.org>
124641         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
124642         (snprintf): Declare 'args'.
124644 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
124646         * lib/snprintf.c: Remove comments as to why each header is needed.
124648 2004-10-01  Bruno Haible  <bruno@clisp.org>
124650         * MODULES.html.sh: Add strsep.
124652 2004-09-30  Simon Josefsson  <jas@extundo.com>
124654         * modules/snprintf: New file.
124656 2004-09-30  Simon Josefsson  <jas@extundo.com>
124658         * m4/snprintf.m4: New file.
124660 2004-09-30  Simon Josefsson  <jas@extundo.com>
124662         * lib/snprintf.h, lib/snprintf.c: New files.
124664 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
124666         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
124667         (hol_entry_help): Never translate an empty string.
124668         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
124669         * lib/argp.h (OPTION_NO_TRANS): New option.
124671 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124673         * modules/argp (Maintainer): Replace Simon Josefsson
124674         by Sergey Poznyakoff.
124676 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124678         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
124679         changes merged back into glibc.
124681 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
124683         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
124685 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
124687         * lib/xvasprintf.c: Include xalloc.h.
124688         (xvasprintf): Use xalloc_die, not xmalloc_die.
124690 2004-09-29  Bruno Haible  <bruno@clisp.org>
124692         * modules/alloca-opt: New file, derived from modules/alloca.
124693         * modules/allocsa: Depend on alloca-opt instead of alloca.
124694         * modules/setenv: Likewise.
124695         * modules/vasnprintf: Likewise.
124696         * MODULES.html.sh: Add alloca-opt.
124698 2004-09-28  Simon Josefsson  <jas@extundo.com>
124700         * gnulib-tool: New parameter --lgpl, to asseert that modules are
124701         LGPL, and to replace license template from GPL to LGPL.
124703 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124705         * modules/dummy: Change license to LGPL.
124707 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
124709         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
124711 2004-09-24  Simon Josefsson  <jas@extundo.com>
124713         * modules/minmax (License): Change from GPL to LGPL.
124715 2004-09-23  Simon Josefsson  <jas@extundo.com>
124717         * gnulib-tool (--import): Typo.
124719 2004-09-23  Simon Josefsson  <jas@extundo.com>
124721         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
124723 2004-09-22  Bruno Haible  <bruno@clisp.org>
124725         * modules/*: Add 'License' field.
124726         * gnulib-tool: Accept --extract-license option.
124727         (func_get_license): New function.
124729 2004-09-21  Bruno Haible  <bruno@clisp.org>
124731         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
124732         Reported by Simon Josefsson.
124734 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124736         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
124737         gl_AC_TYPE_LONG_LONG.
124739 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
124741         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
124743 2004-09-18  Simon Josefsson  <jas@extundo.com>
124744         and  Paul Eggert  <eggert@cs.ucla.edu>
124746         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
124747         calls with autoreconf.  Define GL_LIB.
124749 2004-09-14  Karl Berry  <karl@gnu.org>
124751         * config/srclist.txt: unsync setenv.c, sigh.
124753 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124755         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
124756         Problem reported by Bruno Haible in:
124757         http://lists.gnu.org/r/bug-tar/2004-09/msg00023.html
124759 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
124761         * config/srclist.txt: Comment out argp-pvh.c.
124763 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
124765         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
124766         in case some system header has #define'd it.  Problem reported by
124767         Soeren D. Schulze in
124768         <http://lists.gnu.org/r/bug-gnulib/2004-09/msg00017.html>.
124770 2004-09-09  Karl Berry  <karl@gnu.org>
124772         * regex.[ch]: delete from the root.  These were supposed to be
124773                 synced with emacs cvs, but this has not happened for about
124774                 a year, and anyway nothing else uses emacs regex.[ch].
124775                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
124776                 lib/regex[.ch] is untouched.
124778 2004-09-09  Bruno Haible  <bruno@clisp.org>
124780         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
124782 2004-09-09  Bruno Haible  <bruno@clisp.org>
124784         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
124785         modifications.
124786         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
124788 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124790         * modules/xvasprintf: New file.
124791         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
124793 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
124795         * lib/xvasprintf.h: New file.
124796         * lib/xvasprintf.c: New file.
124797         * lib/xasprintf.c: New file.
124799 2004-09-08  Bruno Haible  <bruno@clisp.org>
124801         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
124803 2004-09-08  Bruno Haible  <bruno@clisp.org>
124805         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
124806         length is > INT_MAX.
124807         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
124808         more.
124810 2004-09-08  Bruno Haible  <bruno@clisp.org>
124812         * lib/stdint_.h: New file, taken from GNU clisp.
124814 2004-09-08  Bruno Haible  <bruno@clisp.org>
124815             Oskar Liljeblad  <oskar@osk.mine.nu>
124817         * modules/stdint: New file.
124818         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
124820 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124822         Import from coreutils.
124823         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
124824         strings on unbounded length.  alloca's performance benefits aren't
124825         that important here.
124826         (V_STRDUP): Remove.
124827         (parse_with_separator): New function, with most of the internals
124828         of the old parse_user_spec.  Allow user to omit both user and group,
124829         for compatibility with FreeBSD.
124830         Clone only the user name, not the entire spec.
124831         Do not set *uid, *gid unless entirely successful.
124832         Avoid memory leak in some failing cases.
124833         Fix regression for USER.GROUP reported by Dmitry V. Levin in
124834         <http://lists.gnu.org/r/bug-coreutils/2004-08/msg00102.html>
124835         (parse_user_spec): Rewrite to use parse_with_separator.
124837 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124839         * modules/userspec: Don't depend on alloca.
124841 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
124843         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
124845 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
124847         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
124848         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
124849         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
124851 2004-08-16  Simon Josefsson  <jas@extundo.com>
124853         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
124854         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
124855         Add --dry-run for --import.
124856         Let user provided command line parameters override configure.ac
124857         settings.
124859 2004-08-12  Simon Josefsson  <jas@extundo.com>
124861         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
124862         as discussed with Paul Eggert in threads rooted at
124863         <http://lists.gnu.org/r/bug-gnulib/2004-06/msg00039.html>
124864         and
124865         <http://lists.gnu.org/r/bug-gnulib/2004-07/msg00001.html>.
124866         Before, the test was empty, and relied on ELIDE_CODE in source
124867         code.)
124868         (gl_PREREQ_GETOPT): New macro.
124869         (gl_GETOPT): Use them.
124871 2004-08-12  Simon Josefsson  <jas@extundo.com>
124873         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
124874         * lib/getopt_.h: Renamed from getopt.h.
124876 2004-08-12  Simon Josefsson  <jas@extundo.com>
124878         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
124879         Change default library name from libfoo to libgnu.
124880         Now, if you have a configure.ac that says:
124881                 gl_SOURCE_BASE(gl)
124882                 gl_M4_BASE(gl/m4)
124883                 gl_MODULES(error getopt etcetera)
124884                 gl_INIT
124885         you can import all you need by running:
124886                 ../gnulib/gnulib-tool --import
124888         * modules/getopt (Files): Rename getopt.h to getopt_.h.
124889         (Makefile.am): Rewrite, use logic from argz.
124890         (Include): Use <getopt.h> instead of "getopt.h".
124892 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124894         * modules/argp (Files): Add m4/unlocked-io.m4.
124895         (Depends-on): Add extensions.
124897 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124899         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
124900         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
124901         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
124902         Check for program_invocation_name, program_invocation_short_name,
124903         flockfile, funlockfile, features.h, _getopt_long_only_r.
124905 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124907         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
124908         its complicated substitute.
124909         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
124910         and program_invocation_name.
124911         (__argp_basename) [!_LIBC]: Remove; the only use was
124912         replaced by its body.
124913         (__argp_short_program_name): Change condition from
124914         !defined __argp_short_program_name to
124915         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
124916         to match argp-namefrob.h.
124917         (__argp_failure): Don't assume strerror_r returns char *.
124918         * lib/argp-parse.c (N_): Define unconditionally.
124919         (argp_default_options): Fill out initializers with 0 to avoid
124920         gcc warnings.
124922 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
124924         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
124925         getopt1.c.
124927 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124929         Merge from coreutils.
124931         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
124933         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
124934         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
124936 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124938         Merge from coreutils.
124940         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
124941         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
124942         for Reliant Unix 5.43.
124944         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
124945         (union fooround): Use uintmax_t, not long int.
124946         The rest is a merge from libc:
124947         [defined _LIBC]: Include <shlib-compat.h>.
124948         (_obstack) [defined _LIBC]: Remove after 2.3.4.
124950         * lib/settime.c (settime): Recode to avoid warning with
124951         Sun Forte C 6U2.
124953         * lib/strverscmp.c: Convert to UTF-8.
124955 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
124957         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
124958         m4/uintmax_t.m4.
124960 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124962         * modules/xalloc-die: New file.
124963         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
124965         * modules/md5 (Files): Add m4/uint32_t.m4.
124966         * modules/sha1: Renamed from modules/sha.
124967         (Files):
124968         Rename lib/sha.h to lib/sha1.h.
124969         Rename lib/sha.c to lib/sha1.c.
124970         Rename m4/sha.m4 to m4/sha1.m4.
124971         (lib_SOURCES): Likewise.
124972         (configure.ac): Rename gl_SHA to gl_SHA1.
124973         (Include): sha.h -> sha1.h.
124975 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124977         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
124978         * m4/sha1.m4: Renamed from sha.m4.
124979         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
124981 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
124983         * lib/obstack.h (obstack_empty_p):
124984         Don't assume that chunk->contents is suitably aligned.
124985         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
124986         Likewise. Problem reported by Benno in
124987         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
124989         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
124990         readable.  This could be improved further but it'd take some work.
124992 2004-08-08  Simon Josefsson  <jas@extundo.com>
124994         * modules/xgethostname (Depends-on): Remove exit and error (not
124995         used).
124997         * modules/getpass-gnu: Add getpass.h.
124998         (Depends-on): Add stdbool.
124999         * modules/getpass: Add getpass.h.
125001 2004-08-08  Simon Josefsson  <jas@extundo.com>
125003         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
125004         Check getpass declaration.
125006 2004-08-08  Simon Josefsson  <jas@extundo.com>
125008         * lib/xgethostname.c: Don't include error.h (not used).
125010         * lib/getpass.h: Add.
125011         * lib/getpass.c: Include getpass.h first.
125013 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
125015         * lib/xalloc-die.c: New file.
125016         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
125017         All uses removed.
125018         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
125019         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
125020         xalloc-die.c.
125021         (_, N_, xalloc_die): Move to xalloc-die.c.
125022         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
125023         so that we needn't mess with xalloc_msg_memory_exhausted.
125025         * lib/sha1.h: Renamed from sha.h.
125026         (SHA1_H): Renamed from _SHA_H.
125027         (sha1_ctx): Renamed from sha_ctx.
125028         (sha1_init_ctx): Renamed from sha_init_ctx.
125029         (sha1_process_block): Renamed from sha_process_block.
125030         (sha1_process_bytes): Renamed from sha_process_bytes.
125031         (sha1_finish_ctx): Renamed from sha_finish_ctx.
125032         (sha1_read_ctx): Renamed from sha_read_ctx.
125033         (sha1_stream): Renamed from sha_stream.
125034         (sha1_buffer): Renamed from sha_buffer.
125035         * lib/sha1.c: Likewise; renamed from sha.c.
125036         Do not include <sys/types.h>.
125037         Include <stddef.h> rather than <stdlib.h>.
125039 2004-08-08  Bruno Haible  <bruno@clisp.org>
125041         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
125042         FILESYSTEM_PREFIX_LEN.
125043         * lib/progreloc.c: Likewise.
125044         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
125046 2004-08-06  Simon Josefsson  <jas@extundo.com>
125048         * modules/progname (Depends-on): Don't depend on stdbool.
125050 2004-08-06  Simon Josefsson  <jas@extundo.com>
125052         * modules/getsubopt: New file.
125053         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
125054         getsubopt.
125056 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125058         More merge from coreutils.
125060         * m4/utimens.m4, m4/utimecmp.m4: New files.
125061         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
125062         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
125063         prereq.m4, sha.m4: Import changes from coreutils.
125065 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125067         More merge from coreutils.
125068         * modules/raise, modules/readtokens0, modules/utimens:
125069         * modules/utimecmp, module/xnanosleep: New files.
125070         * modules/strftime: Add lib/strftime.h.
125071         Change include from <time.h> to "strftime.h".
125072         * modules/yesno: Add lib/yesno.h.
125073         * modules/backupfile: Remove lib/addext.c.
125074         * modules/euidaccess: Add stat-macros.h.
125075         * modules/canonicalize, modules/euidaccess,
125076         modules/filemode, modules/lchown, modules/makepath,
125077         modules/rmdir, modules/stat: Likewise.
125079 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
125081         Merge from tar.
125082         * lib/argp-help.c (make_hol, hol_append): Don't assume that
125083         SIZE_MAX is a valid preprocessor constant.
125084         (__argp_basename): Change from "#ifndef _LIBC"
125085         to "#ifndef __argp_short_program_name", so that
125086         we don't compile these functions for tar.
125088         More merges from coreutils.
125089         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
125090         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
125091         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
125092         * lib/addext.c: Remove; no longer needed.
125093         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
125094         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
125095         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
125096         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
125097         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
125098         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
125099         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
125100         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
125101         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
125102         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
125103         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
125104         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
125105         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
125106         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
125107         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
125108         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
125109         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
125110         Import changes from coreutils.
125112 2004-08-05  Simon Josefsson  <jas@extundo.com>
125114         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
125116 2004-08-05  Simon Josefsson  <jas@extundo.com>
125118         * m4/getsubopt.m4: New file.
125120 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125122         Merge from coreutils.
125124         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
125125         * m4/getcwd-path-max.m4: New files.
125127         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
125128         FILESYSTEM_PREFIX_LEN ->
125129         FILE_SYSTEM_PREFIX_LEN.
125130         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
125131         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
125132         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
125133         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
125135         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
125136         prerequisite modules now handle the DOS stuff.
125137         Don't check for unistd.h.
125139 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125141         Merge from coreutils.
125143         * lib/.gdb-history: Remove; this doesn't belong here.
125145         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
125146         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
125147         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
125148         * lib/getcwd.c: New files.
125150         * lib/dirname.h: Include <stdbool.h>.
125151         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
125152         for consistency with POSIX terminology.  All uses changed.
125153         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
125154         (strip_trailing_slashes): Use bool for booleans.
125155         * lib/stripslash.c (strip_trailing_slashes): Likewise.
125157         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
125158         sometimes returns a positive errno value even when it succeeds.
125159         (print_errno_message) [!LIBC]: Fall back on strerror if
125160         __strerror_r fails.
125162         * lib/path-concat.c (mempcpy): Don't define if a system header defines
125163         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
125164         (longest_relative_suffix): New function.
125165         (path_concat): Use it.  Assume first argument is not NULL.
125166         Port to DOS.  Omit redundant separators.
125167         Report an error instead of returning NULL.
125168         Use mempcpy instead of memcpy.
125169         (xpath_concat): Remove: not declared or used.
125171         * lib/same.h: Include <stdbool.h>
125172         (same_name): Return bool, not int.
125173         * lib/same.c (same_name): Likewise.
125174         (errno): Don't declare; we assume C89 or better now.
125176         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
125177         if not already defined.
125179         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
125180         * lib/dup-safer.c (errno): Likewise.
125182 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
125184         Merge from coreutils.
125185         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
125186         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
125187         * modules/path-concat: Don't depend on strdup.
125189 2004-08-03  Simon Josefsson  <jas@extundo.com>
125191         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
125192         * lib/progname.h: Don't include stdbool.h.
125194 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125196         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
125197         * MODULES.html.sh (func_all_modules): Remove fatal.
125199 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125201         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
125203 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
125205         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
125206         working.
125208 2004-08-02  Simon Josefsson  <jas@extundo.com>
125210         * lib/getsubopt.h: New file, with comments from Bruno Haible.
125211         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
125212         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
125214 2004-08-01  Simon Josefsson  <jas@extundo.com>
125216         * lib/xgetdomainname.c: Include stdlib.h, for free().
125218 2004-07-19  Bruno Haible  <bruno@clisp.org>
125220         * MODULES.html.sh (func_all_modules): Add dummy.
125222 2004-07-16  Simon Josefsson  <jas@extundo.com>
125224         * modules/dummy: New file.
125226 2004-07-16  Simon Josefsson  <jas@extundo.com>
125228         * lib/dummy.c: New file.
125230 2004-07-16  Bruno Haible  <bruno@clisp.org>
125232         * lib/backupfile.h: Add extern "C" for C++.
125233         * lib/closeout.h: Likewise.
125234         * lib/copy-file.h: Likewise.
125235         * lib/findprog.h: Likewise.
125236         * lib/full-write.h: Likewise.
125237         * lib/pathname.h: Likewise.
125238         * lib/progname.h: Likewise.
125239         * lib/stpcpy.h: Likewise.
125240         * lib/stpncpy.h: Likewise.
125241         * lib/strcase.h: Likewise.
125242         * lib/strstr.h: Likewise.
125243         * lib/xalloc.h: Likewise.
125245         * lib/mbswidth.h: Add extern "C" for C++.
125246         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
125248 2004-07-13  Robert Millan  <robertmh@gnu.org>
125250         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
125252 2004-07-09  Simon Josefsson  <jas@extundo.com>
125254         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
125255         failed without this.)
125257 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125259         * modules/chown (Files): Add lib/fchown-stub.c, since
125260         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
125262 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
125264         * lib/fchown-stub.c: New file.
125266 2004-06-24  Jim Meyering  <jim@meyering.net>
125268         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
125270 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125272         * modules/argz: Omit "#include".
125274         * MODULES.html.sh (func_all_modules): Add calloc, to match
125275         2004-06-01 addition of calloc module.
125277 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125279         * m4/argz.m4: New file, which is autoupdated from libtool.
125281 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125283         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
125284         libtool.
125286 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
125288         * config/srclist-update: Don't insist on "USA." before the
125289         close-comment, as libtool omits the period and puts the */ on a
125290         separate line.
125291         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
125292         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
125294 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
125296         * modules/argz: New file.
125297         * MODULES.html.sh (func_all_modules): Add argz.
125299 2004-06-12  Jim Meyering  <jim@meyering.net>
125300         and  Paul Eggert  <eggert@cs.ucla.edu>
125302         * modules/hash (Files): Add lib/xalloc.h.
125303         * modules/pipe (Depends-on): Add wait-process.
125304         * modules/stat (Depends-on): Add xalloc.
125305         * modules/userspec (Files): Add lib/userspec.h.
125306         * modules/xstrto
125308         Upgrade from gettext-0.13.
125309         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
125310         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
125311         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
125313 2004-06-10  Jim Meyering  <jim@meyering.net>
125315         * lib/calloc.c: New file.
125317 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
125319         * lib/getdate.y (yylex): Allow space between sign and number.
125320         Problem reported by Dan Jacobson.
125322 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125324         Merge from coreutils CVS.
125326         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
125327         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
125328         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
125329         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
125330         xstrtol.m4: Fix copyright date and/or serial number.
125332         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
125333         See if we need an fchown replacement.
125334         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
125335         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
125336         and use the replacement function if we detect either defect.
125338         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
125339         gl_UTIMECMP.
125341 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
125342         and  Jim Meyering  <jim@meyering.net>
125344         Merge from coreutils CVS.
125346         * lib/stat-macros.h: New file, with contents from file-type.h
125347         and coreutils' system.h.
125348         * lib/file-type.c: Include "stat-macros.h".
125349         * lib/file-type.h (file_type): Move all macro definitions to new file,
125350         stat-macros.h.
125352         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
125353         Wrap old code with this conditional.
125354         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
125355         function that does not dereference symlinks.
125356         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
125358         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
125359         dependency problems.
125360         (xreadlink): Accept new arg SIZE, for efficiency.
125361         All decls and uses changed.
125362         * lib/xreadlink.h: Include <stddef.h>, for size_t.
125364         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
125365         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
125367         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
125368         sysexits.h.
125370 2004-06-01  Jim Meyering  <jim@meyering.net>
125372         * m4/calloc.m4: New file.
125374 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
125376         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
125377         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
125378         Also, fix a typo in a diagnostic.
125380 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125382         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
125383         or AC_FUNC_REALLOC.
125385 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
125387         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
125388         macros to be defined.
125389         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
125390         the allocator returns NULL because the requested size is zero.
125392 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
125394         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
125395         var.  Add comment explaining why libc still defines it.  This
125396         merges the following patch from glibc:
125397         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
125399 2004-05-20  Andreas Schwab  <schwab@suse.de>
125401         * m4/free.m4: Replace free if it not known to work, not the other
125402         way round.
125404 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
125406         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
125407         present in glibc since revision 1.1 of this file.
125408         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
125409         obstack_alignment_mask, obstack_alloc, obstack_base,
125410         obstack_blank, obstack_blank_fast, obstack_chunk_size,
125411         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
125412         obstack_grow0, obstack_init, obstack_int_grow,
125413         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
125414         obstack_next_free, obstack_object_size, obstack_ptr_grow,
125415         obstack_ptr_grow_fast, obstack_room): Remove declarations of
125416         nonexistent functions.
125418 2004-05-18  Karl Berry  <karl@gnu.org>
125420         * config/srclist.txt: break link for vasnprintf.c.
125422 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125424         Port obstack to the AS/400, where pointers are 16 bytes wide and
125425         you cannot cast an integer to a valid pointer.  This patch is
125426         currently waiting to be integrated into glibc; see
125427         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
125429         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
125430         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
125431         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
125432         (struct obstack): temp member is now a union of a pointer and
125433         an integer, instead of an integer.  All integer uses changed.
125434         This does not affect the physical layout of struct obstack,
125435         except on hosts (like the AS/400) where the size or alignment of
125436         void * is greater than that of ptrdiff_t.
125437         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
125438         __STDC__)]: Store temporary in pointer member of union, not
125439         integer member.
125440         * lib/obstack.c: Include <stddef.h>, for offsetof.
125441         (struct fooalign): Remove; it doesn't need a name.
125442         (union fooround): Change double to long double, and add void *.
125443         (DEFAULT_ALIGNMENT): Use offsetof to compute.
125444         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
125445         not a macro.  Hence the values are always int; so remove all
125446         casts-to-int in uses.
125448 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
125450         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
125451         we can get this patch merged into glibc.
125453 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125454             Paul Eggert  <eggert@cs.ucla.edu>
125456         * m4/argp: Depend on alloca.
125458 2004-05-17  Derek R. Price  <derek@ximbiot.com>
125459             Paul Eggert  <eggert@cs.ucla.edu>
125461         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
125462         freecoding.
125464 2004-05-17  Bruno Haible  <bruno@clisp.org>
125466         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
125467         precision that consists of a '.' followed by an empty digit string.
125468         Patch by Tor Lillqvist <tml@iki.fi>.
125470 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125472         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
125473         for backward compatibility with older code.  We need our own
125474         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
125475         it under some other name, and our alloca.h will define it.
125477 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
125478             Derek Price  <derek@ximbiot.com>
125480         * lib/alloca.c: Include <alloca.h>, to get our interface.
125481         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
125482         include <alloca.h> first.  Use C89 prototype for alloca; this
125483         requires including <stddef.h> for size_t.  Use extern "C" if C++.
125484         Use #elif for simplicity, since we can assume C89 now.
125485         Don't try to source the system alloca.h since it will not be found
125486         and to prevent recursively including its replacement.
125487         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
125488         * lib/regex.c: Likewise.
125490 2004-05-16  Derek Price  <derek@ximbiot.com>
125491             Paul Eggert  <eggert@cs.ucla.edu>
125493         getline cleanup.  This changes the getndelim2 API: both order of
125494         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
125495         no delimiter).
125497         * lib/getline.c: Don't include stddef.h or stdio.h, since our
125498         interface does that.
125499         (getline): Always use getdelim, so that we don't have two
125500         copies of this code.
125501         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
125502         if available.
125503         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
125504         (GETNDELIM2_MAXIMUM): New macro.
125505         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
125506         instead of the old practice of delim2==0.  All callers changed.
125507         Return -1 on overflow, instead of returning junk.
125508         Do not set *linesize unless allocation succeeds.
125509         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
125510         that we include sys/types.h.
125511         * lib/getnline.h: Likewise.
125512         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
125513         (getndelim2): Reorder arguments.
125514         * lib/getnline.c (getnline, getndelim):
125515         Don't discard the NMAX argument.
125516         (getnline): Invoke getndelim, to avoid code duplication.
125517         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
125518         of (size_t) -1 by callers of the getnline family.
125520 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125522         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
125523         Check for gettimeofday.
125524         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
125525         Check for settimeofday, stime.
125527 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
125529         * lib/nanosleep.c (suspended): Change its type from int to
125530         sig_atomic_t volatile.
125531         (first_call): Make it private to rpl_nanosleep, and have it
125532         be zero initially as that's a bit faster.
125533         (my_usleep): Round up fractional times instead of truncating them,
125534         as this is the usual meaning for 'sleep'.
125536         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
125537         doesn't work.
125538         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
125539         (ENOSYS): Define if not defined.
125540         (settime): Fall back on stime if it exists and settimeofday fails.
125541         But don't bother with fallbacks if a method fails with errno == EPERM.
125543 2004-05-11  Jim Meyering  <jim@meyering.net>
125545         Prior to this change, the save_cwd caller required read access to the
125546         current directory on most systems (ones with the fchdir function).
125548         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
125549         fails, try write-only, and finally, resort to using xgetcwd.
125551 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
125553         * lib/obstack.c, obstack.h: Import changes from libc.
125555 2004-04-28  Bruno Haible  <bruno@clisp.org>
125557         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
125558         also implicitly appends .exe to executables.
125559         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
125560         accepts Windows pathnames.
125561         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125562         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125563         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
125564         Treat Cygwin like Windows, since it now accepts Windows pathnames.
125565         Reported by Derek Robert Price <derek@ximbiot.com>.
125567 2004-04-21  Karl Berry  <karl@gnu.org>
125569         * config/srclist.txt (localcharset.c): break sync.
125571 2004-04-20  Paul Eggert  <eggert@twinsun.com>
125573         * m4/host-os.m4: Add a copyright notice.
125575 2004-04-20  Jim Meyering  <jim@meyering.net>
125577         Change UTILS_ to gl_ in AC_DEFINE'd names.
125578         Change utils_- and jm_-prefixed variables, too.
125579         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
125580         UTILS_FUNC_MKDIR_TRAILING_SLASH.
125581         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
125583         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
125584         Don't emit trailing blanks.
125585         Also rename jm_-prefixed variables to have gl_ prefix.
125587         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
125588         Also rename jm_-prefixed variables to have gl_ prefix.
125590         * m4/jm-macros.m4: Reflect the renamings.
125591         * m4/prereq.m4: Likewise.
125593 2004-04-20  Jim Meyering  <jim@meyering.net>
125595         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
125596         memory.
125598 2004-04-20  Jim Meyering  <jim@meyering.net>
125599             Bruno Haible  <bruno@clisp.org>
125601         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
125602         memory when realloc fails.
125604 2004-04-19  Jim Meyering  <jim@meyering.net>
125606         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
125607         now that readutmp.c may call `free (0)'.
125609 2004-04-19  Bruno Haible  <bruno@clisp.org>
125611         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
125612         * m4/inttypes_h.m4: Likewise.
125613         * m4/stdint_h.m4: Likewise.
125614         * m4/intmax_t.m4: Likewise.
125615         * m4/uintmax_t.m4: Likewise.
125617 2004-04-18  Jim Meyering  <jim@meyering.net>
125619         * m4/prereq.m4: Don't forbid jm_ prefix.
125621         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
125622         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
125623         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
125624         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
125625         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
125626         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
125627         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
125628         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
125629         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
125630         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
125631         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
125632         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
125633         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
125634         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
125635         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
125636         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
125637         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
125638         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
125639         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
125641 2004-04-18  Jim Meyering  <jim@meyering.net>
125643         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
125644         failure, don't leak memory and do call END_UTMP_ENT.
125646 2004-04-16  Jim Meyering  <jim@meyering.net>
125648         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
125649         coreutils' stat program.
125650         (gl_PREREQ): Don't require jm_PREREQ_STAT.
125652 2004-04-11  Paul Eggert  <eggert@twinsun.com>
125654         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
125655         C89.
125656         (CHAR_BIT): Remove, since we assume C89.
125657         Include <stdint.h> if available, as per current Autoconf CVS advice.
125659 2004-03-31  Jim Meyering  <jim@meyering.net>
125661         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
125662         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
125663         * m4/xalloc.m4: Likewise.
125665 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125667         Merge from coreutils.
125669         * m4/inttostr.m4: New file.
125670         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
125671         Require AM_STDBOOL_H and gl_TIMESPEC instead.
125672         Require gl_CLOCK_TIME.
125673         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
125675 2004-03-30  Paul Eggert  <eggert@twinsun.com>
125677         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
125678         not bool, to be more consistent with Unix conventions.
125679         Suggested by Bruno Haible.
125681         Merge from coreutils.
125683         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
125684         * lib/umaxtostr.c: New files.
125686         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
125687         the usual <time.h> dance.
125688         (get_date): Change signature to support fractional time stamps.
125689         All callers changed.
125690         * lib/getdate.y: Include "getdate.h" first, as we can now
125691         assume C89 and don't need to worry about 'const'.
125692         Similarly, include "unlocked-io.h" near start, not in middle.
125693         Include <limits.h>.
125694         (textint.value): Use long int rather than int.
125695         (textint.digits): Use size_t rather than int.
125696         (BILLION, LOG10_BILLION): New constants.
125697         (parser_control): New member rel_ns.  Members day_ordinal,
125698         time_zone, month, day, hour, minutes, rel_year, rel_month,
125699         rel_day, rel_hour, rel_minutes, rel_seconds
125700         are now long int, not int.  Member seconds is now struct timespec,
125701         not int.  New member timespec_seen.  Members dates_seen, days_seen,
125702         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
125703         not int.
125704         (%union.intval): Now long int, not int.
125705         New member timespec.
125706         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
125707         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
125708         (spec): Now is a timespec or an item list.
125709         (timespec, items): New nonterminals.
125710         (time, rel, relunit, number, get_date):
125711         Add support for fractional seconds.
125712         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
125713         (gmtime, localtime, mktime): Remove decls; not needed with C89.
125714         (to_hour): First arg is now long int, not int.
125715         (to_year): Returns long int, not int.
125716         Don't treat year -70 like 70.
125717         (tm_diff): Returns long int, not int.
125718         (lookup_word): Use bool instead of int when appropriate.
125719         (yylex): Use size_t for count, not int.
125720         Detect overflow when parsing large integer constants.
125721         Add support for fractions.
125722         (get_date): Make pointers 'const' if possible.
125723         Use more-portable code to detect integer overflow.
125724         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
125725         Don't use ctime; it's not reliable if the year has >4 digits.
125727         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
125728         This is for compatibility with BSD.
125730         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
125731         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
125732         From coreutils' system.h.
125734         * lib/userspec.c: Don't include "posixver.h".
125735         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
125736         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
125737         compatible extension.  Simplify code by removing a boolean int
125738         that was always nonzero if a string was nonnull.
125740 2004-03-30  Jim Meyering  <jim@meyering.net>
125742         Merge from coreutils.
125744         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
125745         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
125746         on some systems one must include <grp.h> before it.
125747         Reported by Christian Krackowizer.
125749 2004-03-30  Jim Meyering  <jim@meyering.net>
125751         Merge from coreutils.
125753         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
125755         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
125756         an empty input stream.
125758         * lib/readtokens.c: Include <stdbool.h>.
125759         (readtoken): Use `size_t' rather than int/long.
125760         All callers adjusted.
125761         Use `bool' rather than `int' where appropriate.
125762         Use memset rather than an explicit loop.
125763         Use x2nrealloc rather than xrealloc.
125764         Allow the use of `\0' as a delimiter.
125765         (readtokens): Likewise.
125766         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
125768 2004-03-30  Jim Meyering  <jim@meyering.net>
125770         * m4/realloc.m4: Remove file, since now it does no more than
125771         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
125772         the `configure.ac' section of module/realloc.
125773         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
125775 2004-03-30  Bruno Haible  <bruno@clisp.org>
125777         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
125778         nonnull.
125780 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125782         Merge changes to getloadavg.c from coreutils and Emacs.
125784         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
125785         Define to an expression, not to the empty string.
125786         Include cloexec.h and xalloc.h.
125787         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
125788         Use set_cloexec_flag rather than rolling our own.
125789         * lib/cloexec.c, lib/cloexec.h: New files.
125791 2004-03-29  Paul Eggert  <eggert@twinsun.com>
125793         * m4/cloexec.m4: New file.
125795 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125797         * lib/getopt.h: Sync with libc CVS.
125799 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125800             Bruno Haible  <bruno@clisp.org>
125802         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
125803         mbswidth.
125805 2004-03-18  Paul Eggert  <eggert@twinsun.com>
125806             Bruno Haible  <bruno@clisp.org>
125808         * lib/mbswidth.h: Include <wchar.h> only if
125809         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
125810         <wchar.h>.
125811         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
125813 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125815         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
125816         Sync with libc CVS.
125817         * lib/getopt_int.h: New file, also synced from libc.
125819 2004-03-09  Paul Eggert  <eggert@twinsun.com>
125821         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
125822         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
125823         Bring back getopt.c, getopt.h, getopt1.c.
125825 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125827         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
125828         All uses changed.  Check for sa_sigaction member; this fixes
125829         a bug first reported by Jason Andrade in
125830         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125832 2004-03-07  Paul Eggert  <eggert@twinsun.com>
125834         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
125835         '#if' expressions.  Unlike the code it replaces, it does not
125836         depend on (defined _SC_PAGESIZE).  However, it does depend on
125837         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
125838         first reported by Jason Andrade in
125839         <http://mail.gnu.org/r/bug-textutils/2003-03/msg00027.html>.
125841 2004-02-25  Simon Josefsson  <jas@extundo.com>
125843         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
125845 2004-02-25  Simon Josefsson  <jas@extundo.com>
125847         * lib/strdup.h: New file.
125848         * lib/strdup.c: Include it.
125849         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
125850         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
125852 2004-02-23  Karl Berry  <karl@gnu.org>
125854         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
125855         (from fencepost.gnu.org:/gd/gnuorg).
125857 2004-02-23  Karl Berry  <karl@gnu.org>
125859         * config/srclistvars.sh (GNUORG) [karl]: redefine.
125860         * config/srclist.txt: add maintain/standards documents.
125862 2004-02-18  Bruno Haible  <bruno@clisp.org>
125864         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
125865         Reported by Derek Robert Price <derek@ximbiot.com>.
125867 2004-02-16  Karl Berry  <karl@gnu.org>
125869         * config/mkinstalldirs, install-sh: update from automake.
125871 2004-02-06  Karl Berry  <karl@gnu.org>
125873         * m4/po.m4: update from gettext 0.14.1.
125875 2004-02-06  Karl Berry  <karl@gnu.org>
125877         * lib/config.charset: update from gettext 0.14.1.
125879 2004-02-05  Paul Eggert  <eggert@twinsun.com>
125881         Add comments and code, prompted by suggestions from Bruno Haible
125882         for sh-quote.
125883         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
125884         describing the enum quoting_style values.
125885         * lib/quotearg.c (quotearg_alloc): New function.
125886         (quotearg_buffer_restyled): Treat lone { and } as special.
125887         Treat = as special.  Work around bug with older shells
125888         that "see" a '\' that is really the 2nd byte of a multibyte char.
125889         Quote empty string with shell_quoting_style.
125891 2004-02-03  Bruno Haible  <bruno@clisp.org>
125893         * m4/pipe.m4: New file, from GNU gettext.
125895 2004-02-03  Bruno Haible  <bruno@clisp.org>
125897         * lib/pipe.h: New file, from GNU gettext.
125898         * lib/pipe.c: New file, from GNU gettext.
125900 2004-01-27  Bruno Haible  <bruno@clisp.org>
125902         * m4/execute.m4: New file, from GNU gettext.
125904 2004-01-27  Bruno Haible  <bruno@clisp.org>
125906         * lib/execute.h: New file, from GNU gettext.
125907         * lib/execute.c: New file, from GNU gettext.
125908         * lib/w32spawn.h: New file, from GNU gettext.
125910 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125912         Merge from diffutils.
125914         * lib/file-type.c (file_type): Add typed memory objects.
125915         * lib/file-type.h (S_TYPEISTMO): New macro.
125917         * lib/c-stack.h (c_stack_action): Remove argv argument.
125918         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
125919         (die): Don't calculate message unless segv_action returns.
125920         (get_stack_location, min_address_from_argv, max_address_from_argv,
125921         volatile stack_base, volatile_stack_size): Remove.
125922         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
125923         that every segmentation violation is a stack overflow.  (Ouch!)
125924         See Debian bug 136249 (still outstanding) for more info about why
125925         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
125927 2004-01-24  Paul Eggert  <eggert@twinsun.com>
125929         Exit-status fix from coreutils.
125931         Use exit_failure consistently in place of EXIT_FAILURE,
125932         so that program exit statuses are consistent on failure.
125934         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
125935         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
125936         * lib/argmatch.h: Comment fix to match the above.
125937         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
125938         Now a macro referring to exit_failure, instead of a separate
125939         variable.  Include "exitfail.h" to get it.
125940         * lib/xstrtol.h: Include "exitfail.h".
125941         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
125943         * lib/long-options.c (parse_long_options): Use prototype
125944         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
125945         for clarity.
125947 2004-01-21  Jim Meyering  <jim@meyering.net>
125949         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
125950         so as not to conflict with a different-sized __mktime_internal
125951         function in GNU libc.
125952         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
125953         Problem building statically-linked `ls' reported by Michael Brunnbauer.
125955 2004-01-20  Karl Berry  <karl@gnu.org>
125957         * config/config.guess: update from config.
125959         * config/srclistvars.sh: GNUWWWLICENSES for karl.
125961 2004-01-20  Bruno Haible  <bruno@clisp.org>
125963         Safer stack allocation.
125964         * lib/setenv.c: Include allocsa.h.
125965         (alloca): Remove fallback definition.
125966         (freea): Remove macro.
125967         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
125968         instead of freea.
125970 2004-01-20  Bruno Haible  <bruno@clisp.org>
125972         * m4/eealloc.m4: New file, from GNU gettext.
125974 2004-01-20  Bruno Haible  <bruno@clisp.org>
125976         * m4/allocsa.m4: New file, from GNU gettext.
125978 2004-01-20  Bruno Haible  <bruno@clisp.org>
125980         * lib/xallocsa.h: New file, from GNU gettext.
125981         * lib/xallocsa.c: New file, from GNU gettext.
125983 2004-01-20  Bruno Haible  <bruno@clisp.org>
125985         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
125987 2004-01-20  Bruno Haible  <bruno@clisp.org>
125989         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
125990         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
125991         specially.
125993 2004-01-20  Bruno Haible  <bruno@clisp.org>
125995         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
125996         patch.
125998 2004-01-20  Bruno Haible  <bruno@clisp.org>
126000         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
126002 2004-01-20  Bruno Haible  <bruno@clisp.org>
126004         * lib/eealloc.h: New file.
126006 2004-01-20  Bruno Haible  <bruno@clisp.org>
126008         * lib/binary-io.h: Avoid warnings on Cygwin.
126010 2004-01-20  Bruno Haible  <bruno@clisp.org>
126012         * lib/allocsa.h: New file, from GNU gettext.
126013         * lib/allocsa.c: New file, from GNU gettext.
126015 2004-01-18  Karl Berry  <karl@gnu.org>
126017         * doc/gpl.texi, doc/lgpl.texi: new files.
126019 2004-01-18  Karl Berry  <karl@gnu.org>
126021         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
126022         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
126024 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126026         Merge from coreutils.
126028         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
126029         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
126030         (gl_DEFAULT_POSIX2_VERSION): Move
126031         the documentation from 'configure' into 'config.hin',
126032         so that 'configure --help' isn't burdened by it and
126033         we don't have to worry about its formatting there.
126034         Reword the documentation so that it's more succinct
126035         and can be run together into a single paragraph.
126036         * m4/same.m4 (gl_SAME): Check for pathconf.
126038 2004-01-15  Paul Eggert  <eggert@twinsun.com>
126040         Merge from coreutils.
126042         * lib/posixver.c: Include posixver.h.
126044         * lib/same.c: Include <stdbool.h>, <limits.h>.
126045         (_POSIX_NAME_MAX): Define if not defined.
126046         (MIN): New macro.
126047         (same_name): If file names are silently truncated, report
126048         that the file names are the same if they are the same after
126049         the silent truncation.
126051         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
126052         conversion function.
126053         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
126054         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
126055         longer needed.
126057 2004-01-15  Jim Meyering  <jim@meyering.net>
126059         Merge from coreutils.
126061         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
126062         if no library is required.
126063         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
126064         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
126065         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
126066         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
126067         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
126068         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
126069         value, $ac_cv_search_crypt, if it's "none required".
126070         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
126071         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
126072         not gl_FUNC_GETLOADAVG.
126073         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
126074         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
126076 2004-01-15  Jim Meyering  <jim@meyering.net>
126078         Merge from coreutils.
126080         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
126081         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
126082         http://mail.gnu.org/r/bug-coreutils/2003-11/msg00144.html
126084         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
126085         optional configure-time default.
126087         * lib/version-etc.c (version_etc_copyright): Update copyright date.
126089         * lib/xreadlink.c (xreadlink): Correct outdated comment.
126091 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
126093         Merge from coreutils.
126095         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
126096         value, $ac_cv_search_nanosleep, if it's "none required".
126098 2004-01-14  Paul Eggert  <eggert@twinsun.com>
126100         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
126101         with like-named macro in fnmatch.c.
126102         (EXT): Use an internal constant instead.
126104         Merge fnmatch patches from glibc.
126105         * lib/fnmatch.c (mbsinit): Remove define.
126106         Add libc_hidden_ver (__fnmatch, fnmatch).
126107         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
126108         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
126110 2004-01-14  Karl Berry  <karl@gnu.org>
126112         * config/install-sh: update from automake.
126114 2004-01-13  Karl Berry  <karl@gnu.org>
126116         * config/install-sh: update from automake.
126118 2004-01-09  Karl Berry  <karl@gnu.org>
126120         * config/install-sh: update from automake.
126122 2004-01-05  Karl Berry  <karl@gnu.org>
126124         * config/config.{sub,guess}: update from config.
126126 2003-12-31  Karl Berry  <karl@gnu.org>
126128         * config/depcomp: update from automake.
126130 2003-12-14  Karl Berry  <karl@gnu.org>
126132         * lib/config.charset: update from gettext-runtime.
126134 2003-12-03  Paul Eggert  <eggert@twinsun.com>
126136         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
126137         Bug reported by Alfred M. Szmidt.
126139 2003-12-03  Bruno Haible  <bruno@clisp.org>
126141         * m4/gettext.m4: Upgrade from gettext-0.13.
126142         * m4/po.m4: Upgrade from gettext-0.13.
126143         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
126144         * m4/intmax.m4: New file, from gettext-0.13.
126145         * m4/printf-posix.m4: New file, from gettext-0.13.
126147 2003-11-29  Karl Berry  <karl@gnu.org>
126149         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
126151 2003-11-25  Paul Eggert  <eggert@twinsun.com>
126152             Bruno Haible  <bruno@clisp.org>
126154         * lib/printf-parse.h: Don't include sys/types.h.
126155         (ARG_NONE): New macro.
126156         (char_directive): Change type of *arg_index fields to size_t.
126157         * lib/printf-parse.c: Don't include sys/types.h.
126158         (SSIZE_MAX): Remove macro.
126159         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
126160         Remove unnecessary overflow check.
126161         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
126162         fields.
126164 2003-11-25  Bruno Haible  <bruno@clisp.org>
126166         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
126168 2003-11-25  Bruno Haible  <bruno@clisp.org>
126170         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
126171         gt_TYPE_SSIZE_T.
126173 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126175         * modules/alloca: Remove dependency on xalloc.
126177 2003-11-24  Paul Eggert  <eggert@twinsun.com>
126179         * lib/alloca.c: Remove dependency on xalloc module.
126180         (xalloc_die): Remove.
126181         (memory_full) [!defined emacs]: New macro.
126182         [!defined emacs]: Don't include xalloc.h.
126183         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
126184         address arithmetic overflows.  Change datatypes a bit to avoid
126185         unnecessary casts.
126187 2003-11-22  Jim Meyering  <jim@meyering.net>
126189         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
126190         s/size/size_t/.
126192 2003-11-21  Karl Berry  <karl@gnu.org>
126194         * config/config.{sub,guess}: update from config.
126196 2003-11-18  Karl Berry  <karl@gnu.org>
126198         * config/config.{sub,guess}: update from config.
126200         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
126202 2003-11-17  Paul Eggert  <eggert@twinsun.com>
126204         * README: Mention that S+T cannot overflow if S is the size of
126205         an existing object and T is sufficiently small.
126207 2003-11-17  Jim Meyering  <jim@meyering.net>
126209         On systems without utime and without a utimes function capable of
126210         dealing with a NULL struct utimbuf* argument, this utime replacement
126211         could -- in unusual circumstances -- leak a file descriptor.
126212         * lib/utime.c: Include <unistd.h> and <errno.h>.
126213         (utime_null): Be sure to close `fd' and to preserve errno.
126214         Reported by Geoff Collyer via Arnold Robbins.
126216 2003-11-17  Bruno Haible  <bruno@clisp.org>
126218         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
126219         (Depends-on): Add xsize.
126221 2003-11-17  Bruno Haible  <bruno@clisp.org>
126223         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
126225 2003-11-17  Bruno Haible  <bruno@clisp.org>
126227         * lib/vasnprintf.c (alloca): Remove fallback definition.
126228         (freea): Remove definition.
126229         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
126230         Reported by Paul Eggert.
126232 2003-11-16  Paul Eggert  <eggert@twinsun.com>
126233             Bruno Haible  <bruno@clisp.org>
126235         Protect against address arithmetic overflow.
126236         * lib/printf-args.h: Include stddef.h.
126237         (arguments): Change type of field 'count' to size_t.
126238         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
126239         'unsigned int' where appropriate.
126240         * lib/printf-parse.h: Include sys/types.h.
126241         (char_directive): Change type of *arg_index fields to ssize_t.
126242         (char_directives): Change type of fields 'count', max_*_length to
126243         size_t.
126244         * lib/printf-parse.c: Include sys/types.h and xsize.h.
126245         (SSIZE_MAX): Define fallback value.
126246         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
126247         instead of 'int' where appropriate. Check a_allocated, d_allocated
126248         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
126249         * lib/vasnprintf.c: Include xsize.h.
126250         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
126251         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
126252         overflow. Avoid wraparound when converting a width or precision from
126253         decimal to binary.
126255 2003-11-16  Bruno Haible  <bruno@clisp.org>
126257         Update from GNU gettext.
126258         * lib/printf-parse.c: Generalize to it can be compiled for wide
126259         strings.
126260         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
126261         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
126262         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
126263         SNPRINTF): New macros.
126264         Don't include <alloca.h> if the file is used inside libintl.
126265         (local_wcslen): New function, for Solaris 2.5.1.
126266         (VASNPRINTF): Use it instead of wcslen.
126268 2003-11-16  Bruno Haible  <bruno@clisp.org>
126270         * lib/xsize.h (xmax): New function.
126271         (xsum, xsum3, xsum4): Declare as "pure" functions.
126273 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126275         * modules/xalloc (Files): Undo latest change, since xalloc.h
126276         no longer needs SIZE_MAX or PTRDIFF_MAX.
126278 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126280         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
126281         gl_PTRDIFF_MAX.
126283 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126285         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
126286         "return", to pacify some unknown compiler.  Problem reported
126287         by Joerg Schilling.
126289 2003-11-12  Paul Eggert  <eggert@twinsun.com>
126291         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
126292         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
126293         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
126294         heuristic is just as accurate as far as we know, and it removes a
126295         dependency on size_max.m4 and ptrdiff_max.m4.
126297 2003-11-11  Bruno Haible  <bruno@clisp.org>
126299         * modules/xsize (Files): Add m4/size_max.m4.
126300         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
126302 2003-11-11  Bruno Haible  <bruno@clisp.org>
126304         * m4/size_max.m4: New file.
126305         * m4/ptrdiff_max.m4: New file.
126306         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
126307         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
126308         (gl_XALLOC): Invoke it.
126310 2003-11-11  Bruno Haible  <bruno@clisp.org>
126312         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
126313         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
126314         defined.
126316 2003-11-10  Paul Eggert  <eggert@twinsun.com>
126318         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
126319         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
126320         rejected some allocations of exactly SIZE_MAX - 2 bytes.
126321         From Bruno Haible.
126322         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
126323         not (size_t) -1, since it's defined here.
126325 2003-11-09  Karl Berry  <karl@gnu.org>
126327         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
126329 2003-11-06  Paul Eggert  <eggert@twinsun.com>
126331         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
126332         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
126333         Reject sizes of exactly SIZE_MAX bytes.
126334         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
126335         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
126337 2003-11-05  Bruno Haible  <bruno@clisp.org>
126339         * lib/xsize.h: Include limits.h, to avoid a possible collision with
126340         SIZE_MAX defined in <limits.h> on Solaris.
126342 2003-11-04  Jim Meyering  <jim@meyering.net>
126344         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
126345         variable names, rather than @VAR@.
126346         * modules/poll: Likewise.
126348 2003-11-04  Bruno Haible  <bruno@clisp.org>
126350         * modules/xsize: New file.
126351         * modules/linebreak: Depend on xsize.
126352         * MODULES.html.sh (func_all_modules): Add xsize.
126354 2003-11-04  Bruno Haible  <bruno@clisp.org>
126356         * m4/xsize.m4: New file.
126358 2003-11-04  Bruno Haible  <bruno@clisp.org>
126360         * lib/xsize.h: New file.
126361         * lib/linebreak.c: Include xsize.h.
126362         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
126363         argument for overflow.
126364         Suggested by Paul Eggert.
126366 2003-11-03  Karl Berry  <karl@gnu.org>
126368         * config/config.{guess,sub}: update from config.
126370 2003-11-03  Jim Meyering  <jim@meyering.net>
126372         * modules/userspec (lib_SOURCES): Add userspec.h.
126373         (Include): Add "userspec.h".
126374         Improve description.
126376 2003-11-03  Jim Meyering  <jim@meyering.net>
126378         * lib/userspec.c: Include "userspec.h".
126379         * lib/userspec.h: New file.
126381 2003-11-03  Bruno Haible  <bruno@clisp.org>
126383         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
126385 2003-11-03  Bruno Haible  <bruno@clisp.org>
126387         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
126388         available, to avoid (extremely rare) race condition.
126389         Suggested by Paul Eggert.
126391 2003-11-02  Karl Berry  <karl@gnu.org>
126393         * config/srclist.txt (vasprintf.c): sync broken, sigh.
126395 2003-10-31  Paul Eggert  <eggert@twinsun.com>
126397         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
126398         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
126399         (read_filesystem_list): Set and use me_type_malloced.
126400         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
126401         whatever the type happens to be), for brevity and consistency.
126402         Check for size calculation overflow on Alphas running OSF/1.
126404 2003-10-31  Jim Meyering  <jim@meyering.net>
126406         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
126408         * lib/linebuffer.c: Include <string.h> for declaration of memset.
126410 2003-10-30  Paul Eggert  <eggert@twinsun.com>
126411             Bruno Haible  <bruno@clisp.org>
126413         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
126414         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
126416 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
126418         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
126419         netbsd*-gnu*.  Suggested by Robert Millan.
126421 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126423         * modules/group-member: Depend on stdbool.
126425 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126427         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
126429 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126431         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
126432         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
126433         after the 'gnu' in these cases.  This fixes some bugs in the
126434         previous change, and is based on suggestions by Robert Millan.
126436 2003-10-29  Paul Eggert  <eggert@twinsun.com>
126438         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
126439         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
126440         no longer needed.
126441         * lib/quotearg.c (quotearg_n_options): Use it.
126442         * lib/group-member.c: Include <stdbool.h>.
126443         (free_group_info): Arg is now const *; don't free arg.
126444         (get_group_info): Now returns bool and accepts struct group_info *,
126445         rather than returning a malloc'ed struct group_info *.
126446         All uses changed.  Check for overflow in internal size calculation.
126448         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
126449         rather than xmalloc/xrealloc.
126450         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
126451         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
126452         conformance bug: the old code used a pointer after freeing the
126453         storage that it addressed.
126454         * lib/hash.c (hash_initialize): Simplify the code by using
126455         xalloc_oversized rather than doing it by hand.
126456         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
126457         the buffer preserved.  Use free and xmalloc instead.
126458         * lib/quotearg.c (quotearg_n_options): Likewise.
126459         Use a simpler test for size overflow.  Don't use xalloc_oversized
126460         because unsigned int might be wider than size_t (!); this suggests
126461         that we should switch from unsigned int to size_t for slot numbers.
126463 2003-10-28  Paul Eggert  <eggert@twinsun.com>
126465         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
126466         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
126467         NetBSD kernels.  Requested by Richard Stallman.
126469 2003-10-27  Paul Eggert  <eggert@twinsun.com>
126471         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
126472         to allocate the returned structure.  Do not allocate a subarray,
126473         as x2nrealloc will do that.
126474         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
126475         instead of xnrealloc.
126476         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
126478 2003-10-27  Bruno Haible  <bruno@clisp.org>
126480         * lib/stdbool_.h: Better support for BeOS.
126482 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126484         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
126485         now uses inline.
126487 2003-10-26  Paul Eggert  <eggert@twinsun.com>
126489         * lib/xalloc.h (xalloc_oversized): New static inline function, for
126490         callers that want to do their own size-overflow checking.  Include
126491         <stdbool.h>, since xalloc_oversized returns bool.
126492         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
126493         to use xalloc_oversized.
126495         Add two functions x2realloc, x2nrealloc, for programs that grow
126496         arrays dynamically by doubling their sizes.
126497         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
126498         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
126499         New functions.
126501         Port to C99 semantics for 'inline' of external functions.
126502         Bug reported by Bruno Haible.
126503         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
126504         with the old contents of xnmalloc.
126505         (xnmalloc, xmalloc): Use it.
126506         (xnrealloc_inline): New static inline function,
126507         with the old contents of xnrealloc.
126508         (xnrealloc, xrealloc): Use it.
126510         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
126511         that.
126513 2003-10-26  Karl Berry  <karl@gnu.org>
126515         * config/srclist.txt (COPYING.DOC): no longer available from
126516         /gd/gnuorg; don't know where the ultimate source is.
126518 2003-10-25  Paul Eggert  <eggert@twinsun.com>
126520         Fix several address-calculation bugs in the hash modules,
126521         plus some minor code cleanup.
126523         * lib/hash.h: Include <stdbool.h>, for bool.
126524         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
126525         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
126526         hash_get_n_entries, hash_get_max_bucket_length,
126527         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
126528         hash_rehash): Use size_t rather than unsigned.
126529         * lib/hash.c (struct hash_table, hash_get_n_buckets,
126530         hash_get_n_buckets_used, hash_get_n_entries,
126531         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
126532         hash_get_entries, hash_do_for_each, hash_string, is_prime,
126533         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
126534         Likewise.
126535         (SIZE_MAX): Define if not defined.
126536         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
126537         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
126538         hash_print):
126539         Use const * when possible.
126540         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
126541         (check_tuning): Fix bug: if tuning parameters were very close to
126542         0 or 1, rounding errors could have caused subscript violations.
126543         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
126544         (hash_initialize): Add 'fail:' label
126545         to free table and return NULL, and use it to simplify code.
126546         Use calloc rather than clearing the storage ourself.
126547         (hash_initialize, hash_rehash): Check for arithmetic overflow in
126548         buffer size calculations.
126549         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
126550         Include <stddef.h>, for size_t.
126551         * lib/hash-pjw.c (hash_pjw): Likewise.
126552         Switch to method described by Bruno Haible.
126553         Include <limits.h>, for CHAR_BIT.
126554         (SIZE_BITS): New macro.
126556 2003-10-23  Paul Eggert  <eggert@twinsun.com>
126558         * m4/getline.m4 (AM_FUNC_GETLINE):
126559         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
126560         hosts.  Problem reported by Derek Robert Price in
126561         <http://mail.gnu.org/r/bug-gnulib/2003-10/msg00092.html>.
126562         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
126563         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
126565 2003-10-21  Paul Eggert  <eggert@twinsun.com>
126567         * lib/getndelim2.c (getndelim2): When size calculation overflows,
126568         ceiling the allocation at NMAX bytes rather than silently
126569         discarding input bytes before NMAX is reached.  This makes
126570         a difference only if NMAX exceeds SIZE_MAX / 2.
126572         * lib/obstack.c: Merge from glibc.
126573         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
126574         Add libc_hidden_def (_obstack_newchunk).
126575         (_obstack_free) [! defined _LIBC]: Remove.
126576         [defined _LIBC]: Make a strong alias from obstack_free, rather than
126577         a clone of the function body.
126578         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
126579         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
126581         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
126582         glibc.
126583         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
126584         arg to memcpy.
126586         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
126587         (obstack_ptr_grow_fast, obstack_int_grow_fast):
126588         Don't use lvalue casts, as GCC plans to remove support for them
126589         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
126590         was also present in the non-GCC version, indicating that this
126591         code had always been buggy and had never been widely used.
126592         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
126593         Use the fast variant of each macro, rather than copying the
126594         definiens of the fast variant; that way, we'll be more likely to
126595         catch future bugs in the fast variants.
126597 2003-10-20  Bruno Haible  <bruno@clisp.org>
126599         * modules/wait-process: New file.
126600         * MODULES.html.sh (func_all_modules): Add wait-process.
126602 2003-10-20  Bruno Haible  <bruno@clisp.org>
126604         * m4/wait-process.m4: New file.
126606 2003-10-20  Bruno Haible  <bruno@clisp.org>
126608         * lib/wait-process.h: New file, from GNU gettext.
126609         * lib/wait-process.c: New file, from GNU gettext.
126611 2003-10-19  Jim Meyering  <jim@meyering.net>
126613         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
126614         HPUX 10.20.
126616 2003-10-18  Karl Berry  <karl@gnu.org>
126618         * config/config.guess: update from config.
126620 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126622         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
126623         (getgroups): First arg is int, not size_t.
126624         Don't let 'free' mangle errno.
126626 2003-10-16  Paul Eggert  <eggert@twinsun.com>
126628         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
126630 2003-10-16  Karl Berry  <karl@gnu.org>
126632         * config/config.{guess,sub}: update from config.
126634 2003-10-16  Jim Meyering  <jim@meyering.net>
126636         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
126637         memcpy.
126639 2003-10-15  Paul Eggert  <eggert@twinsun.com>
126641         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
126642         (SIZE_MAX): Remove.
126643         (new_exclude, add_exclude_file): Initial size no longer needs to
126644         be a power of 2.
126645         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
126646         our own address arithmetic overflow checking.
126648         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
126649         (fnmatch): Do not alloca more than 2000 wide characters;
126650         instead, use malloc for large buffers.
126651         Check for address arithmetic overflow, and return -1
126652         with errno set to ENOMEM in that case.
126653         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
126654         (NEW_PATTERN): Do not alloca more than 8000 bytes;
126655         instead, return -1.  Check for address arithmetic overflow.
126657 2003-10-14  Paul Eggert  <eggert@twinsun.com>
126659         Handle invalid suffixes and overflow independently, so that
126660         callers can treat them independently as needed.  Fix some bugs in
126661         suffix handling, e.g., "100k@" was not diagnosed as an invalid
126662         suffix for a human-readable blocksize.  The major caller-visible
126663         change is the addition of a new
126664         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
126665         that both overflow and suffix chars were found.
126667         * lib/human.c (humblock): Don't check separately for invalid suffix
126668         char; that is xstrtoumax's job (now that its bug is fixed).
126669         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
126670         INTMAX_MAX]: New macros.
126671         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
126672         TYPE_MAXIMUM): New macros.
126673         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
126674         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
126675         if overflow occurs, as it's what __strtol does and it's more useful
126676         in practice.
126677         (__xstrtol): If __strtol reports some error other than ERANGE,
126678         reflect it to the caller as LONGINT_INVALID.  If it reports
126679         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
126680         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
126681         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
126682         value.
126683         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
126684         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
126685         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
126686         [defined UINTMAX_MAX]: New macros.
126688 2003-10-14  Bruno Haible  <bruno@clisp.org>
126690         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
126692 2003-10-14  Bruno Haible  <bruno@clisp.org>
126694         * m4/sig_atomic_t: New file, from GNU gettext.
126695         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
126697 2003-10-14  Bruno Haible  <bruno@clisp.org>
126699         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
126700         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
126701         Also use volatile where needed.
126703 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126705         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
126706         Change maintainer from Bruno Haible to 'all'.
126708 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126710         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
126712 2003-10-12  Paul Eggert  <eggert@twinsun.com>
126714         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
126715         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
126716         and define in terms of the other primitives.
126717         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
126718         (SIZE_MAX): Define if not already defined.
126719         (array_size_overflow): New function.
126720         (xalloc_die): Abort instead of exiting if 'error' returns.
126721         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
126722         (xmalloc, xrealloc): Use them.
126723         (xcalloc): Check for address arithmetic overflow.
126724         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
126725         a bit faster than strcpy.
126727 2003-10-10  Simon Josefsson  <jas@extundo.com>
126729         * modules/argp (Depends-on): Add restrict and strcase.
126731 2003-10-10  Simon Josefsson  <jas@extundo.com>
126733         * m4/argp.m4: Add AC_C_INLINE.
126735 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126737         Merge getpass from libc, plus a few fixes.
126739         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
126740         Include <stdbool.h>.
126741         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
126742         __fsetlocking to empty.
126743         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
126744         do include <bits/libc-lock.h>.
126745         Do not include <fcntl.h>; not needed.
126746         [_LIBC]: Include <wchar.h>.
126747         (NOTCANCEL_MODE): New macro.
126748         (flockfile, funlockfile) [_LIBC]: New macros.
126749         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
126750         [!_LIBC]: New macros.
126751         (call_fclose): New function.
126752         (getpass): Use it.  Save tty stream separately; this simplifies the
126753         code and makes it more reliable if stdin happens to equal stdout.
126754         Invoke __fsetlocking on tty.
126755         Handle thread cancellation if needed.
126756         Namespace cleanup (use __tcgetattr, __getline).
126757         Use bool for Booleans.
126758         [USE_IN_LIBIO]: Handle wide streams.
126759         [!_LIBC]: Unconditionally do the fseek, since we don't know what
126760         stream might go where.
126762         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
126763         doesn't have to include <stdio.h> before us.
126764         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
126765         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
126766         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
126767         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
126768         if not declared, so that we can use getpass.c code from libc without
126769         rewriting it.
126770         (flockfile, ftrylockfile, funlockfile): New macros.
126772 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126774         * modules/getpass: Depend on stdbool.
126776 2003-10-08  Paul Eggert  <eggert@twinsun.com>
126778         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
126780 2003-10-07  Karl Berry  <karl@gnu.org>
126782         * config/config.{guess,sub}: update from config.
126784 2003-10-06  Jim Meyering  <jim@meyering.net>
126785             Bruno Haible  <bruno@clisp.org>
126787         This lets translators provide better translations for the
126788         "Written by ..." part of --version output.
126789         * lib/version-etc.h: Include stdarg.h.
126790         (version_etc_copyright): Declare as readonly.
126791         (version_etc): Make this function variadic with a NULL-terminated list
126792         of author name strings.
126793         (version_etc_va): New declaration.
126794         * lib/version-etc.c: Include stdarg.h, stdlib.h.
126795         (version_etc_copyright): Declare as readonly.
126796         (version_etc_va): New function. Provide a different translatable string
126797         for each possible number of authors < 10. Abbreviate when there are 10
126798         authors or more.
126799         (version_etc): Make this function variadic. Call version_etc_va.
126800         Suggestion from Gary V. Vaughan.
126802         * lib/long-options.h (parse_long_options): Change prototype: the
126803         authors string is moved to the end and becomes variadic.
126804         * lib/long-options.c: Include stdarg.h.
126805         (parse_long_options): Make this function variadic, too.
126806         Call version_etc_va, not version_etc.
126808 2003-10-06  Bruno Haible  <bruno@clisp.org>
126810         * modules/version-etc-2: Remove file.
126811         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
126813 2003-10-06  Bruno Haible  <bruno@clisp.org>
126815         * modules/fatal-signal: New file.
126816         * MODULES.html.sh (func_all_modules): Add fatal-signal.
126818 2003-10-06  Bruno Haible  <bruno@clisp.org>
126820         * m4/fatal-signal.m4: New file.
126821         * m4/signalblocking.m4: New file, from GNU gettext.
126823 2003-10-06  Bruno Haible  <bruno@clisp.org>
126825         * lib/version-etc-2.h: Remove file.
126826         * lib/version-etc-2.c: Remove file.
126828 2003-10-06  Bruno Haible  <bruno@clisp.org>
126830         * lib/fatal-signal.h: New file, from GNU gettext.
126831         * lib/fatal-signal.c: New file, from GNU gettext.
126833 2003-10-05  Paul Eggert  <eggert@twinsun.com>
126835         * README: Rework advice for preventing empty .o files.
126836         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
126837         not <sys/types.h>.
126839 2003-10-04  Karl Berry  <karl@gnu.org>
126841         * lib/argp*: update from libc.
126843 2003-10-04  Karl Berry  <karl@gnu.org>
126845         * config/config.{guess,sub}: update from config.
126847 2003-10-02  Bruno Haible  <bruno@clisp.org>
126849         * modules/lchown (Include): Add lchown.h.
126850         * modules/time_r (Include): Use "..." syntax.
126851         * modules/xgetdomainname (Include): Add xgetdomainname.h.
126853 2003-10-01  Simon Josefsson  <jas@extundo.com>
126855         * MODULES.html.sh (func_all_modules): Move gethostname from section
126856         'based on' to section 'lacking' POSIX:2001.
126858 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
126860         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
126861         to output mode on the same stream.
126863 2003-09-29  Paul Eggert  <eggert@twinsun.com>
126865         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
126866         Fix arg typo in previous patch.
126868 2003-09-28  Jim Meyering  <jim@meyering.net>
126870         * lib/error.c: Correct cpp indentation.
126872 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126874         * modules/free: New file.
126876 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126878         * m4/free.m4: New file.
126880 2003-09-27  Paul Eggert  <eggert@twinsun.com>
126882         * lib/minmax.h (MIN, MAX)
126883         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
126884         Omit the special code that used __typeof__, since we worry that
126885         it could be more trouble than it's worth.  See:
126886         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00090.html
126887         http://mail.gnu.org/r/bug-gnulib/2003-01/msg00095.html
126889         * lib/free.c: New file.
126891 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
126893         Trivial fixes to Makefile.am parts of module listings.
126894         * modules/strstr: Append strstr.h to lib_SOURCES.
126895         * modules/strcase: Likewise, for strcase.h.
126897 2003-09-27  Karl Berry  <karl@gnu.org>
126899         * config/mkinstalldirs: update from automake.
126901 2003-09-26  Paul Eggert  <eggert@twinsun.com>
126903         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
126904         (error_tail): Do not loop, reallocating temporary buffer, since
126905         the output cannot contain more wide characters than the input
126906         contains bytes, the size must be big enough already.  This avoids
126907         one potential size overflow calculation.  Check for size overflow
126908         when calculating temporary buffer size.  Free temporary buffer
126909         when done, if it was allocated with malloc; this plugs a memory
126910         leak.  Remove casts from void * to pointers, that are no longer
126911         needed now that we're assuming C89 or better.
126913         Merge error changes from glibc.
126915         * lib/error.c, error.h: Update copyright notice header to match glibc.
126916         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
126917         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
126918         Disable cancellation while printing error.
126919         * lib/error.h: Prepend __ to parameter names.
126921 2003-09-26  Jim Meyering  <jim@meyering.net>
126923         * lib/error.c (error_tail): Move some declarations
126924         into inner scope where the local variables are used.
126926 2003-09-26  Bruno Haible  <bruno@clisp.org>
126928         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
126929         stpncpy().
126930         Don't define stpncpy through config.h; it's now done through stpncpy.h.
126932 2003-09-26  Bruno Haible  <bruno@clisp.org>
126934         * lib/stpncpy.h (gnu_stpncpy): New declaration.
126935         (stpncpy): Define as alias for gnu_stpncpy.
126936         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
126938 2003-09-25  Simon Josefsson  <jas@extundo.com>
126940         * lib/xgetdomainname.h: New file.
126941         * lib/xgetdomainname.c: New file.
126943 2003-09-25  Simon Josefsson  <jas@extundo.com>
126944             Bruno Haible  <bruno@clisp.org>
126946         * modules/getdomainname: New file.
126947         * modules/xgetdomainname: New file.
126948         * MODULES.html.sh (func_all_modules): Add getdomainname,
126949         xgetdomainname.
126951 2003-09-25  Simon Josefsson  <jas@extundo.com>
126952             Bruno Haible  <bruno@clisp.org>
126954         * m4/getdomainname.m4: New file.
126956 2003-09-25  Simon Josefsson  <jas@extundo.com>
126957             Bruno Haible  <bruno@clisp.org>
126959         * lib/getdomainname.h: New file.
126960         * lib/getdomainname.c: New file.
126962 2003-09-25  Karl Berry  <karl@gnu.org>
126964         * lib/argp-fmtstream.c, argp-help.c: update from libc.
126966 2003-09-25  Karl Berry  <karl@gnu.org>
126968         * config/install-sh: update from automake.
126970 2003-09-25  Bruno Haible  <bruno@clisp.org>
126972         * modules/version-etc-2: New file, from modules/version-etc with
126973         modifications.
126974         * MODULES.html.sh (func_all_modules): Add version-etc-2.
126976 2003-09-25  Bruno Haible  <bruno@clisp.org>
126978         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
126979         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
126981 2003-09-24  Simon Josefsson  <jas@extundo.com>
126983         * modules/xgethostname: Add xgethostname.h.
126985 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126987         * lib/linebuffer.c (freebuffer): Don't free the argument, just
126988         the buffer associated with the argument.  Bug reported by
126989         Simon Josefsson.
126991 2003-09-24  Paul Eggert  <eggert@twinsun.com>
126993         * README: Document assumptions that 'int' is at least 32 bits
126994         wide, that integer arithmetic is 2's complement without overflow,
126995         that there are no holes in integer values, that adding sizes of
126996         two nonoverlapping objects can't overflow, and that all-bits-zero
126997         yields scalar zero.  Fix spelling and capitalization typos.
126999 2003-09-19  Karl Berry  <karl@gnu.org>
127001         * lib/argp.h: update from libc.
127003 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127005         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
127006         to avoid spurious warnings like "AC_RUN_IFELSE was called before
127007         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
127009 2003-09-17  Paul Eggert  <eggert@twinsun.com>
127011         * gnulib-tool: Use "test -h", not "test -L", for portability
127012         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
127013         (tags_regexp): Remove, since \| doesn't conform to POSIX.
127014         (sed_extract_prog): Issue s commands one-by-one, rather than
127015         using \| in one s command.
127017 2003-09-16  Paul Eggert  <eggert@twinsun.com>
127019         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
127020         input error, instead of returning NULL the next time we are called
127021         (and therefore losing track of errno).
127023 2003-09-16  Bruno Haible  <bruno@clisp.org>
127025         * gnulib-tool (func_create_testdir): Warn about duplicated
127026         dependencies.
127028 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127030         * modules/argmatch, modules/fatal, modules/obstack,
127031         modules/xalloc, modules/xgethostname: Sort dependencies by
127032         importance, not alphabetically.
127034 2003-09-15  Paul Eggert  <eggert@twinsun.com>
127036         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
127037         fails, so that the caller gets the proper errno.
127039         * lib/readutmp.c (read_utmp): Likewise.
127040         Check for fstat error.  Close stream and free storage
127041         when failing.
127043 2003-09-14  Karl Berry  <karl@gnu.org>
127045         * config/srclist.txt (strdup.c): disable for c89 changes.
127047 2003-09-14  Jim Meyering  <jim@meyering.net>
127049         * lib/getloadavg.c: Correct cpp indentation.
127050         * lib/strdup.c: Likewise.
127051         * lib/vasnprintf.c: Likewise.
127053 2003-09-14  Bruno Haible  <bruno@clisp.org>
127055         * modules/fwriteerror: New file.
127056         * MODULES.html.sh (func_all_modules): Add fwriteerror.
127058 2003-09-14  Bruno Haible  <bruno@clisp.org>
127060         * lib/fwriteerror.h: New file.
127061         * lib/fwriteerror.c: New file.
127063 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127065         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
127066         modules/xgethostname, modules/xalloc: Depend on exit.
127068 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127070         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
127072         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
127073         and AC_MINIX, too, so that their extensions are available.
127075         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
127076         This macro has been superseded by gl_BACKUPFILE.
127078         More patches to assume C89 or better.
127080         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
127082         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
127083         unconditionally.
127084         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
127085         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
127086         Include <string.h>, <stdlib.h> unconditionally.
127087         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
127088         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
127089         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
127090         headers or for string.h.
127091         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
127092         or strtoul.
127094         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
127095         headers.
127096         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
127097         * m4/userspec.m4 (gl_USERSPEC): Likewise.
127098         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
127099         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
127100         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
127101         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
127102         memcpy, memset.
127103         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
127104         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
127105         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
127106         strtol.
127107         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
127108         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
127109         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
127110         strtoul.
127112 2003-09-12  Paul Eggert  <eggert@twinsun.com>
127114         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
127115         * lib/obstack.c [!defined _LIBC]: Likewise.
127116         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
127117         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
127118         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
127120         More changes to assume C89 or better.
127122         * lib/error.c (error_tail): Assume vprintf.
127124         * lib/argmatch.c (getenv): Remove decl.
127125         * lib/progreloc.c (get_full_program_name): Define via prototype.
127126         * lib/setenv.c (clearenv): Likewise.
127127         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
127128         needed.
127129         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
127130         (malloc, memcpy): Remove decls.
127131         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
127132         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
127133         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127134         (memcpy): Remove macro.
127135         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
127136         (__P): Remove.  All uses removed.
127137         (PTR): Remove.  All uses changed to void *.
127138         (CHAR_BIT, NULL): Remove.
127139         (spaces, zeros, memset_space, memset_zero)
127140         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
127141         Remove.
127142         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
127143         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
127144         Define with prototype.
127145         Remove now-unnecessary prototype decl.
127146         (extra_args_spec): Assume ANSI C.  All uses changed.
127147         (extra_args_spec_iso): Remove.
127148         (my_strftime, emacs_strftimeu): Define via prototype.
127149         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
127150         unconditionally.
127151         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
127152         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
127153         (strtoul, strtol): Remove decls.
127154         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
127155         LONG_MAX): Remove.
127156         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
127157         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
127158         (LOCALE_PARAM_PROTO): New macro.
127159         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
127160         (INTERNAL (strtol), strtol): Define with a prototype.
127161         (PARAMS): Remove.  All uses removed.
127162         * lib/tempname.c: Include <string.h> unconditionally.
127163         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
127164         * lib/xgethostname.c (main): Define with a prototype.
127165         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
127166         Include <stdlib.h> unconditionally.
127167         (calloc, malloc, realloc, free): Remove decls.
127168         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
127169         Include <stdlib.h> unconditionally.  Sort include file names.
127170         (strtod): Remove.
127171         (xstrtod): Define with a prototype.
127172         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
127173         (strtol, strtoul): Remove decls.
127175 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127177         More patches to assume C89 or better.
127178         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
127179         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
127180         string.h, memchr, STDC_HEADERS.
127182 2003-09-11  Paul Eggert  <eggert@twinsun.com>
127184         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
127185         Include <stdlib.h>, <string.h> unconditionally.
127186         Remove now-unnecessary cast to char *.
127187         * lib/strnlen.c: Include <string.h> unconditionally.
127188         * lib/yesno.c (yesno): Define with a prototype.
127190 2003-09-11  Bruno Haible  <bruno@clisp.org>
127192         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
127194 2003-09-10  Jim Meyering  <jim@meyering.net>
127196         * lib/error.c: Correct indentation of cpp directives.
127198 2003-09-10  Bruno Haible  <bruno@clisp.org>
127200         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
127201         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
127202         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
127203         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
127204         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
127205         <stdlib.h> and <string.h> checks.
127206         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
127207         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
127209 2003-09-10  Bruno Haible  <bruno@clisp.org>
127211         * lib/strcspn.c: Include <string.h> unconditionally.
127212         * lib/strpbrk.c: Include <string.h> unconditionally.
127213         * lib/strstr.c: Include <string.h> unconditionally.
127214         * lib/unicodeio.c: Include <string.h> unconditionally.
127215         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
127216         * lib/unsetenv.c: Likewise.
127217         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
127218         * lib/yesno.c: Include <stdlib.h> unconditionally.
127219         (rpmatch): Add prototype.
127221 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127223         More patches to assume C89 or better.
127224         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
127225         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
127226         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
127227         or for string.h.
127228         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
127229         stdlib.h.
127230         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
127231         C headers.
127232         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
127233         string.h.
127234         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
127235         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
127236         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
127237         or for string.h.
127238         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
127239         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
127240         C headers.
127241         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
127242         memcpy.
127243         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
127244         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
127245         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
127246         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
127247         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
127248         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
127249         string.h, free.
127250         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
127251         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
127252         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
127253         C headers, or for string.h.
127254         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
127255         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
127256         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
127257         headers, memory.h, stdlib.h, string.h, strings.h.
127258         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
127259         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
127260         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
127261         strchr.
127262         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
127263         headers, memory.h, string.h.
127264         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
127265         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
127266         free.
127267         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
127268         headers.
127269         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
127270         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
127271         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
127272         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
127273         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
127275 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127277         More K&R removal.
127279         * lib/acosl.c (main): Use a prototype.
127280         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
127281         tanl.c: Likewise.
127283         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
127285         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
127286         (getopt, etopt_long, getopt_long_only, _getopt_internal)
127287         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
127288         with a prototype.
127289         * lib/getopt.c (const): Remove macro.
127290         Include <string.h> unconditionally.
127291         (my_index): Remove; all uses changed to strchr.
127292         (strlen): Remove decl.
127293         (exchange): Remove forward decl; no longer needed.
127294         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
127295         Define with prototype.
127296         * lib/getopt1.c (const): Remove macro.
127297         (getopt_long, getopt_long_only, main): Define with prototype.
127299         * lib/getugroups.c: Include <string.h> unconditionally.
127301         * lib/getusershell.c: Include <stdlib.h> unconditionally.
127302         (getusershell, setusershell, endusershell, readname, main):
127303         Define with prototypes.
127305         * lib/group-member.c: Include group-member.h first.
127306         Include <stdlib.h> unconditionally.
127308         * lib/hard-locale.c: Include hard-locale.h first.
127309         Include <stdlib.h>, <string.h> unconditionally.
127311         * lib/hash.c (free, malloc): Remove decls.
127312         Include <stdlib.h> unconditionally.
127314         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
127315         (getenv): Do not declare.
127317         * lib/idcache.c: Include <string.h> unconditionally.
127319         * lib/long-options.c: Include long-options.h first, to test interface.
127320         Include <stdlib.h> unconditionally.
127322         * lib/makepath.c: Include makepath.h first, to test interface.
127323         Include <stdlib.h> and <string.h> unconditionally.
127325         * lib/linebuffer.c: Include <stdlib.h>.
127326         (free): Remove decl.
127328         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
127329         stddef.h. rpl_malloc returns void *, not char *.
127330         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
127331         prototype.
127333         * lib/md5.h: Include <limits.h> unconditionally.
127334         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
127335         (__P): Remove; all uses removed.
127336         * lib/md5.c: Include "md5.h" first.
127337         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
127338         md5_buffer, md5_process_bytes, md5_process_block):
127339         Define with prototypes.
127340         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
127341         * lib/sha.c: Include "sha.h" first.
127342         Include <stdlib.h>, <string.h> unconditionally.
127344         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
127345         * lib/memcmp.c (__ptr_t): Likewise.
127346         * lib/memrchr.c (__ptr_t): Likewise.
127347         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
127348         Include <string.h> unconditionally.
127349         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
127350         * lib/memchr.c: Include <stdlib.h> unconditionally.
127351         * lib/memchr.c (LONG_MAX): Remove.
127352         * lib/memrchr.c (LONG_MAX): Likewise.
127353         * lib/memchr.c (__memchr): Define via a prototype.
127354         * lib/memrchr.c (__memrchr): Likewise.
127355         * lib/memcmp.c (__P): Remove, and remove all uses.
127356         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
127357         Remove forward decls; no longer needed.
127358         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
127359         Use types required by C89 in prototype.
127361         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
127362         * lib/savedir.c: Likewise.
127363         * lib/mkdir.c (free): Remove decl.
127364         * lib/rmdir.c (rmdir): Define with a prototype.
127365         * lib/savedir.c: Include savedir.h first, to test interface.
127367         * lib/mktime.c (STDC_HEADERS): Remove.
127368         Include <stdlib.h>, <string.h> unconditionally.
127370         * lib/modechange.c: Include <stdlib.h> unconditionally.
127371         (malloc): Remove decl.
127373         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
127374         (free): Remove decl.
127376         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
127377         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
127378         (This type really should be intptr_t, but that's a C99ism.)
127379         (_obstack_memcpy): Remove: all uses changed to memcpy.
127380         Include <string.h> unconditionally.
127381         (struct obstack): Assume __STDC__ for types of members
127382         chunkfun, freefun, extra_arg.
127383         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
127384         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
127385         obstack_begin, obstack_specify_allocation,
127386         obstack_specify_allocation_with_arg, obstack_chunkfun,
127387         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
127388         Remove unprototyped decls and the macros that use them.
127389         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
127390         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
127391         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
127392         (defined __STDC__ && __STDC__)]:
127393         Remove nonprototyped code.
127394         Include <stdlib.h> unconditionally.
127395         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
127396         _obstack_allocated_p, _obstack_free, obstack_free,
127397         _obstack_memory_used, print_and_abort):
127398         Define using prototypes.
127399         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
127400         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
127401         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
127402         obstack_next_free, obstack_object_size, obstack_room) [0]:
127403         Remove unused, unprototyped code.
127405         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
127407         * lib/physmem.c (physmem_total, physmem_available, main): Define
127408         with prototypes.
127410         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
127411         (main): Define with a prototype.
127413         * lib/posixver.c (getenv): Remove decl.
127415         * lib/putenv.c (malloc): Returns void *, not char *.
127416         Include <string.h> unconditionally.
127417         (strchr, memcpy, NULL): Do not define.
127419         * lib/readtokens.c: Include readtokens.h first, to test interface.
127420         Include <stdlib.h>, <string.h> unconditionally.
127421         (init_tokenbuffer): Define with a prototype.
127423         * lib/regex.c (PARAMS): Remove.  All uses removed.
127424         All uses of _RE_ARGS removed, too.
127425         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
127426         unconditionally.
127427         (bzero): Assume memset exists.
127428         (memcmp, memcpy, NULL): Remove.
127429         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
127430         char, or assignments to local vars of type signed char.
127431         (init_syntax_once, PREFIX(extract_number_and_incr),
127432         PREFIX(print_partial_compiled_pattern),
127433         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
127434         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
127435         PREFIX(regex_grow_registers), PREFIX(regex_compile),
127436         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
127437         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
127438         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
127439         wcs_compile_range, byte_compile_range, truncate_wchar,
127440         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
127441         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
127442         count_mbs_length, wcs_re_match_2_internal,
127443         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
127444         PREFIX(alt_match_null_string_p),
127445         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
127446         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
127447         regfree, PREFIX(extract_number)): Define with prototype.  Remove
127448         now-unnecessary declaration, if any.
127449         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
127450         regcomp, regexec):
127451         Remove now-unnecessary casts among pointer types.
127452         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
127454         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
127455         (free): Remove decl.
127457         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
127459         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
127460         (free): Remove decl.
127462         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
127463         * lib/xgetcwd.c: Likewise.
127465         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
127466         (free): Remove decl.
127468         * lib/strchrnul.c (strchrnul): Define with a prototype.
127469         Fix bug: c_in was not converted to char before searching.
127471         The following changes are not K&R related:
127473         * lib/group-member.h: Include <sys/types.h>, so that this file is
127474         self-contained.
127475         * lib/makepath.h: Likewise.
127477         * lib/getusershell.c (readname, default_index, line_size, readname):
127478         Use size_t, not int, for sizes.
127479         (readname): If the size overflows, report an error instead of
127480         looping forever.
127482 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127484         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
127485         libc.
127487 2003-09-09  Paul Eggert  <eggert@twinsun.com>
127489         * README: New section: portability guidelines.
127491 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127493         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
127494         C89 spec.
127496 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
127498         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
127500 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127502         Assume C89 or better; remove K&R cruft.
127503         A few of these changes were first proposed by Derek Robert Price
127504         in <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00105.html>.
127506         * lib/addext.c: Include <string.h> unconditionally.
127507         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
127508         Don't declare getenv or malloc.
127510         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
127511         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
127512         (NULL): Remove.
127513         (find_stack_direction, alloca): Use prototypes.
127515         * lib/atexit.c (atexit): Define using a prototype.
127517         * lib/basename.c, dirname.c, stripslash.c:
127518         Include <string.h> unconditionally.
127520         * lib/bcopy.c: Include <stddef.h>.
127521         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
127523         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
127525         * lib/error.h (error, error_at_line, error_print_progname)
127526         [! (defined (__STDC__) && __STDC__)]: Remove decls.
127527         * lib/error.c: Include error.h first, to check interface.
127528         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127529         (VA_START): Remove; all uses changeed to va_start.
127530         (exit, strerror): Remove decls.
127531         (error_print_progname): Prototype uncondionally.
127532         Don't include <errno.h>; no longer needed.
127533         (private_strerror): Remove.
127534         (error_tail): Always define.
127535         (error, error_at_line): Assume C89 or better; always use prototypes.
127536         * lib/fatal.c: Include "fatal.h" first, to test interface.
127537         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
127538         (VA_START): Remove; all uses changed to va_start.
127539         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
127540         this case.
127541         (exit): Remove decl.
127542         (fatal): Prototype unconditionally.  Assume va_start works.
127543         Abort at end, to pacify gcc.
127545         * lib/euidaccess.c (main): Define with a prototype.
127547         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
127549         * lib/exitfail.c: Include <stdlib.h> unconditionally.
127551         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
127552         prototypes.
127553         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
127554         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
127555         (getenv): Remove decl.
127556         (fnmatch): Define using a prototype.
127557         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
127558         (FCT): Define using a prototype.
127560         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
127562         * lib/gethostname.c: Include <stddef.h>.
127563         (gethostname): Define with prototype.  Length is size_t, not int.
127565 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127567         Assume C89 or better; remove K&R cruft.
127568         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
127569         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
127570         string.h, getenv, malloc.
127571         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
127572         headers.
127573         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
127574         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
127575         do not check for strerror.
127576         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
127577         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
127578         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
127579         do not check for doprnt or vprintf.
127580         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
127581         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
127583 2003-09-08  Paul Eggert  <eggert@twinsun.com>
127585         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
127586         getversion.c should have been removed then, but was accidentally
127587         preserved.
127589         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
127590         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
127592 2003-09-08  Karl Berry  <karl@gnu.org>
127594         * config/config.sub, config.guess, srclistvars.sh: update from savannah
127595                 config, forget about prep.
127597         * config/depcomp, missing: update from automake.
127599 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127601         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
127602         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127604 2003-09-07  Paul Eggert  <eggert@twinsun.com>
127606         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
127607         copy_tm_result.  Bug reported by Simon Josefsson in
127608         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00028.html>.
127610 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127612         * m4/time_r.m4: New file.
127613         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
127614         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
127615         is. Check for timegm declaration.
127616         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
127617         Do not check for gmtime_r.
127618         Replace mktime if __mktime_internal does not exist and if mktime
127619         hasn't been replaced already.
127621 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127623         * lib/time_r.c, lib/time_r.h: New files.
127625         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
127626         __localtime_r.
127627         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
127628         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
127630         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
127631         __gmtime_r.
127632         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
127633         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
127634         Include <time_r.h>.
127636         * lib/timegm.c: Switch to glibc implementation, with the following
127637         changes:
127638         [defined HAVE_CONFIG_H]: Include <config.h>.
127639         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
127640         (__mktime_internal) [!defined _LIBC]: New decl.
127641         (__gmtime_r) [!defined _LIBC]: New macro and function.
127642         (timegm): Use a prototype, since gnulib assumes C89.
127643         Do not bother declaring tmp to be const, as it's not really usefu.
127644         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
127645         (timegm): Declare only if HAVE_DECL_TIMEGM.
127647 2003-09-06  Paul Eggert  <eggert@twinsun.com>
127649         * MODULES.html.sh (func_all_modules): Add time_r.
127650         * modules/time_r: New file.
127651         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
127652         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
127654 2003-09-03  Paul Eggert  <eggert@twinsun.com>
127656         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
127657         Bug reported by Lute Kamstra in
127658         <http://mail.gnu.org/r/bug-gnulib/2003-09/msg00003.html>.
127660         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
127661         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
127662         course with correspondingly smaller numbers for tomorrow and
127663         yesterday.  From Tadayoshi Funaba.  Originally installed into
127664         sh-utils on 1999-08-07, but the patch got lost (I guess during the
127665         coreutils merge?).
127667 2003-08-31  Simon Josefsson  <jas@extundo.com>
127669         * modules/timegm: New file.
127670         * MODULES.html.sh (func_all_modules): Add timegm.
127672 2003-08-31  Simon Josefsson  <jas@extundo.com>
127674         * m4/timegm.m4: New file.
127676 2003-08-31  Simon Josefsson  <jas@extundo.com>
127678         * lib/timegm.h: New file.
127679         * lib/timegm.c: New file.  Based on
127680         wget-1.8.2/src/http.c:mktime_from_utc.
127682 2003-08-31  Karl Berry  <karl@gnu.org>
127684         * lib/argp.h: update from libc.
127686 2003-08-28  Bruno Haible  <bruno@clisp.org>
127688         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
127689         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
127690         followed by '#define fnmatch fnmatch_posix' gives an error.
127692 2003-08-28  Bruno Haible  <bruno@clisp.org>
127694         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
127695         warning on QNX, which defines O_BINARY to 000000.
127697 2003-08-27  Jim Meyering  <jim@meyering.net>
127699         * m4/mkstemp.m4: Require that the system mkstemp be able to create
127700         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
127701         would fail after 32.  Reported by Danny Levinson.  Details here:
127702         http://mail.gnu.org/r/bug-coreutils/2003-08/msg00124.html
127704 2003-08-24  Bruno Haible  <bruno@clisp.org>
127706         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
127707         MSVC7 <stdio.h> is included later.
127709 2003-08-22  Simon Josefsson  <jas@extundo.com>
127711         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
127713 2003-08-20  Karl Berry  <karl@gnu.org>
127715         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
127717 2003-08-20  Bruno Haible  <bruno@clisp.org>
127719         * modules/progname: New file.
127720         * MODULES.html.sh (func_all_modules): Add progname.
127722 2003-08-20  Bruno Haible  <bruno@clisp.org>
127724         * lib/progname.h: New file, from GNU gettext.
127725         * lib/progname.c: New file, from GNU gettext.
127726         * lib/progreloc.c: New file, from GNU gettext.
127728 2003-08-19  Jim Meyering  <jim@meyering.net>
127730         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
127731         http://mail.gnu.org/r/bug-gnulib/2003-08/msg00155.html
127733 2003-08-19  Bruno Haible  <bruno@clisp.org>
127735         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
127736         more.
127738 2003-08-19  Bruno Haible  <bruno@clisp.org>
127740         * lib/xstrdup.c: Assume <string.h> exists.
127742 2003-08-18  Paul Eggert  <eggert@twinsun.com>
127744         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
127745         in makefile rules.
127747 2003-08-18  Jim Meyering  <jim@meyering.net>
127749         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
127750         * m4/lib-ld.m4: Likewise.
127752 2003-08-18  Jim Meyering  <jim@meyering.net>
127754         * lib/setenv.h: Indent nested cpp directive.
127755         * lib/vasnprintf.c: Remove trailing blanks.
127757 2003-08-17  Simon Josefsson  <jas@extundo.com>
127759         * modules/xstrndup: New file.
127760         * MODULES.html.sh (func_all_modules): Add xstrndup.
127762 2003-08-17  Simon Josefsson  <jas@extundo.com>
127764         * modules/argp: Fix autoconf macro name. Add more dependencies.
127766 2003-08-17  Simon Josefsson  <jas@extundo.com>
127768         * m4/xstrndup.m4: New file.
127770 2003-08-17  Simon Josefsson  <jas@extundo.com>
127772         * m4/argp.m4: New file.
127774 2003-08-17  Simon Josefsson  <jas@extundo.com>
127775             Bruno Haible  <bruno@clisp.org>
127777         * lib/xstrndup.h: New file.
127778         * lib/xstrndup.c: New file.
127780 2003-08-17  Bruno Haible  <bruno@clisp.org>
127782         * modules/strndup (Files, Include): Add lib/strndup.h.
127784 2003-08-17  Bruno Haible  <bruno@clisp.org>
127786         * modules/euidaccess (Files): Add lib/euidaccess.h.
127788 2003-08-17  Bruno Haible  <bruno@clisp.org>
127790         * lib/strndup.h: New file.
127792 2003-08-17  Bruno Haible  <bruno@clisp.org>
127794         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
127795         like AC_GNU_SOURCE.
127796         * modules/extensions (configure.ac): Comment out the invocation of
127797         gl_USE_SYSTEM_EXTENSIONS.
127799 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127801         Merges from coreutils, etc.
127802         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
127803         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
127804         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
127805         fixing a typo.
127806         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
127807         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
127809 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127811         Document merge from coreutils.
127812         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
127813         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
127814         * modules/utime: Add m4/utimes-null.m4.
127816 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127818         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
127819         space, undoing this 2003-08-12 change:
127820         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127822 2003-08-16  Paul Eggert  <eggert@twinsun.com>
127824         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
127825         strtoul.c from libc, undoing this 2003-08-12 change:
127826         <http://mail.gnu.org/r/bug-gnulib/2003-08/msg00080.html>
127828 2003-08-16  Jim Meyering  <jim@meyering.net>
127830         Merges from coreutils.
127831         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
127832         prefix.  Adjust cache variables similarly.  Create 500 rather than
127833         just 300 files, to exercise bug on Darwin6.5, too.
127834         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
127835         $missing_dir.
127836         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
127837         AM_SYS_POSIX_TERMIOS.
127838         Reported by mkc@mathdogs.com.
127839         Also change use of $am_cv_sys_posix_termios
127840         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
127841         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
127842         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
127843         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
127844         in /proc/mounts until it finds one with matching device number.  This
127845         is unnecessary when the FILE argument *is* a mount point.  No stat call
127846         is necessary in that case.  So, disable the statvfs-testing code on
127847         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
127848         as RedHat bug# 84846.
127849         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127850         to 1MB, so as not to render systems with no stack size limit (e.g.,
127851         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127852         Include <unistd.h>.  On some systems,
127853         it is required for the definition of _SC_PAGESIZE.
127855 2003-08-16  Jim Meyering  <jim@meyering.net>
127857         Merge from coreutils.
127858         * lib/xstrtoimax.c: #else #if -> #elif.
127859         * lib/xstrtoumax.c: Likewise.
127861 2003-08-16  Jim Meyering  <jim@meyering.net>
127863         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
127864         * m4/utimes.m4: Removed.
127865         * m4/utimes-null.m4: Renamed from utimes.m4.
127867         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
127868         to 1MB, so as not to render systems with no stack size limit (e.g.,
127869         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
127870         Include <unistd.h>.  On some systems,
127871         it is required for the definition of _SC_PAGESIZE.
127873 2003-08-16  Jim Meyering  <jim@meyering.net>
127874         and Paul Eggert  <eggert@cs.ucla.edu>
127876         Merges from coreutils, etc.
127878         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
127879         using the latest version from cvs.  This avoids problems with #line
127880         directives using a vendor (Sun) compiler.
127881         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
127882         Don't set GETGROUPS_LIB here; now it's
127883         done via getgroups.m4's wrapper function.
127884         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
127885         rather than just in sh-util/configure.in, so that the
127886         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
127887         same.
127888         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
127889         AC_FUNC_GETLOADAVG where to find getloadavg.c.
127890         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
127891         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
127892         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
127893         Remove code that is now done by the newly-required macros.
127894         Append $(EXEEXT) to DF_PROG.
127895         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
127896         Do not invoke or require the following here,
127897         since prereq.m4 or some gnulib .m4 now does this for us:
127898         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
127899         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
127900         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
127901         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
127902         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
127903         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
127904         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
127905         AC_FUNC_OBSTACK.
127906         Do not replace the following functions, as this is now the job
127907         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
127908         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
127909         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
127910         atexit getpass, strdup, getpagesize.
127911         Replace 'raise'.
127912         Do not check for the following functions, as this is now the job
127913         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
127914         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
127915         setregid.
127916         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
127917         Check for sys/sysctl.h.
127918         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
127919         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
127920         of checking for ssize_t ourselves.
127922         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
127923         Require every macro that gnulib/modules/* suggests for us.
127924         (jm_PREREQ_ADDEXT): New macro.
127925         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
127926         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
127928         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
127929         (gl_PHYSMEM): Use it.
127930         Also check for `table' function.
127931         Check for new headers and functions.
127932         Add check for sys/sysmp.h.
127933         With suggestions from Kaveh Ghazi.
127934         Ignore headers that are present but cannot be compiled.  This
127935         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
127936         C 5.4.
127938 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127940         Document merge from coreutils.
127941         * modules/userspec: Depend on posixver.
127942         * modules/strftime: Depend on tzset.
127944 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127946         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
127947         rather than tab, after '#' in shell-script copyright notices.
127948         Suggested by Bruno Haible.
127950 2003-08-15  Paul Eggert  <eggert@twinsun.com>
127952         * config/srclist-update: Use three spaces, rather than tab, after '#'
127953         in shell-script copyright notices.  Suggested by Bruno Haible.
127954         Remove unnecessary parenthesization in regular expression.
127956 2003-08-15  Jim Meyering  <jim@meyering.net>
127958         Merge from coreutils.
127959         * lib/xgethostname.c: Include <stdlib.h>.
127960         (xghostname): Don't exit for anything other than memory-related
127961         failure; just return NULL.
127962         * lib/userspec.c: Include "posixver.h".
127963         (parse_user_spec): Accept `.' as a separator only
127964         in pre-POSIX-200112 mode.
127965         * lib/strtoimax.c: Use #elif rather than #else #if.
127966         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
127967         Remove function, now that we can rely on a working tzset function.
127968         [!_LIBC]: Ensure that the required autoconf test has been run.
127969         [!defined _NL_CURRENT && HAVE_STRFTIME]:
127970         Use underlying_strftime for %r.
127971         * lib/sha.c: Merge in some clean-up and optimization changes from
127972         glibc.
127973         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
127974         Ensure that it is a multiple of 64.
127975         Rearrange loop exit tests so as to avoid performing an
127976         additional fread after encountering an error or EOF.
127977         * lib/realloc.c: Update copyright date.
127979 2003-08-15  Jim Meyering  <jim@meyering.net>
127980         and Paul Eggert  <eggert@twinsun.com>
127982         Merge from coreutils.
127983         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
127984         member but strut utmpx does not.  Needed for AIX 4.3.3.
127985         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
127987 2003-08-15  Jim Meyering  <jim@meyering.net>
127988         and Paul Eggert  <eggert@cs.ucla.edu>
127990         Merges from coreutils, etc.
127991         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
127992         Require gl_FUNC_TZSET_CLOBBER.
127993         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
127994         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
127995         members.
127997 2003-08-14  Paul Eggert  <eggert@twinsun.com>
127999         Help the merge from coreutils.
128000         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
128001         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
128002         * m4/tzset.m4: Use it too.
128004 2003-08-14  Paul Eggert  <eggert@twinsun.com>
128006         * modules/tzset: New file.
128008 2003-08-14  Jim Meyering  <jim@meyering.net>
128010         Merges from coreutils.
128011         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
128012         variable names, rather than @FNMATCH_H@.
128013         * modules/alloca: Likewise for $(ALLOCA_H).
128015         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
128016         the three copies of the literal target, `fnmatch.h'.
128017         * modules/alloca (alloca.h): Likewise.
128019 2003-08-14  Jim Meyering  <jim@meyering.net>
128021         Merge from coreutils.
128022         * m4/tzset.m4: New file.
128023         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
128024         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
128025         otherwise, AIX 5.1 systems would end up using the latter.
128026         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
128027         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
128028         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
128029         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
128031 2003-08-14  Jim Meyering  <jim@meyering.net>
128033         Merge from coreutils.
128034         * lib/obstack.h: Whitespace changes.
128035         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
128036         and xcalloc return values.
128037         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
128038         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
128039         hang on OSF/1 5.1 for DIR on both local and remote file systems.
128040         Reported by (and fix confirmed by) Nelson H. F. Beebe.
128041         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
128042         error from mntctl.
128043         Use mntctl's return value to drive the entry-processing loop, since
128044         we can't rely on the value of the vmt_length member in the last
128045         entry.  On some systems doing so could result in exhausting
128046         virtual memory.  Based in part on a patch from Mike Jetzer.
128048 2003-08-14  Jim Meyering  <jim@meyering.net>
128049         and Paul Eggert  <eggert@twinsun.com>
128051         Merges from coreutils, plus other fixes.
128052         * lib/physmem.c: Merge in portability changes from gcc/libiberty
128053         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
128054         for credits and details.  Thanks to Kaveh Ghazi for helping
128055         to keep these files in sync.
128056         (ARRAY_SIZE): Define it.
128057         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
128058         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
128059         (memcasecmp): Don't assume size_t fits in unsigned int.
128060         Remove casts and duplicate code.
128061         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
128062         (memcpy): Remove definition.
128063         Merge in some clean-up and optimization changes from glibc.
128064         [BLOCKSIZE]: Move definition to top of file.
128065         Ensure that it is a multiple of 64.
128066         Rearrange loop exit tests so as to avoid performing an
128067         additional fread after encountering an error or EOF.
128068         * lib/md5.h (md5_uintptr): Define.
128069         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
128070         return to the initial working directory.  Preserve errno
128071         for caller.
128072         * lib/idcache.c: Include "xalloc.h".
128073         (xmalloc, xrealloc): Remove decls.
128074         (getuser): Remove casts no longer required in C89.
128075         * lib/human.c: Include stdio.h, for sprintf.
128076         * lib/group-member.c: Include "xalloc.h".
128077         (xmalloc, xrealloc): Remove decls.
128078         (get_group_info): Remove casts no longer required in C89.
128079         * lib/getusershell.c (readname): Remove casts no longer required in
128080         C89.
128081         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
128082         * lib/getline.c: Whitespace fix, from coreutils.
128084 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128086         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
128087         Check for isascii.
128089         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128090         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128091         Undo previous (whitespace-only) change.
128093 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128095         * lib/exclude.c: Include <ctype.h>
128096         (IN_CTYPE_DOMAIN): New macro.
128097         (is_space): New fn.
128098         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
128099         and empty lines.
128101         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128102         Undo previous (whitespace-only) change.
128104 2003-08-13  Paul Eggert  <eggert@twinsun.com>
128106         * config/srclist-update: Change update back to the old behavior,
128107         leaving whitespace alone.  Use one 'sed' command rather than a
128108         pipeline.
128109         (fixlicense): Now a variable, not a function.
128110         (remove_trailing_blanks): Remove.
128111         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
128112         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128113         Undo previous (whitespace-only) change.
128115 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128117         Merge from coreutils.
128118         * modules/euidaccess: Add lib_SOURCES, include for new
128119         file euidaccess.h
128121 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128123         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
128124         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
128125         Normalize leading white space and remove trailing white space.
128127         Merge from coreutils
128128         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
128130         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
128131         0.12.1.  These files are now being upgraded automatically by
128132         ../config/srclist-update.
128134 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128136         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
128137         Normalize leading white space and remove trailing white space.
128138         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
128139         notice, as per ../config/srclist-update.
128141         Merge from coreutils.
128142         * lib/euidaccess.h: New file.
128143         * lib/euidaccess.c: Include it.
128144         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
128145         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
128146         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
128148 2003-08-12  Paul Eggert  <eggert@twinsun.com>
128150         * config/srclist-update: Add copyright notice.
128151         (remove_id_lines, remove_trailing_blanks): New constants.
128152         (fixfile): Use them to normalize spacing a bit in copied files.
128153         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
128154         Normalize leading white space and remove trailing white space.
128156         * config/texinfo.tex: Sync with texinfo.
128158         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
128159         strtoul.c from libc, to merge coreutils whitespace changes.
128161         * config/srclist.txt: Get the following m4 files from gettext:
128162         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
128163         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
128164         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
128165         wint_t.m4.
128167 2003-08-12  Karl Berry  <karl@gnu.org>
128169         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
128170         been made.
128172 2003-08-11  Paul Eggert  <eggert@twinsun.com>
128174         * modules/gnu-source, m4/gnu-source.m4:
128175         Remove; we're assuming Autoconf 2.54 or later now.
128176         Suggested by Bruno Haible.
128177         * MODULES.html.sh (func_all_modules): Remove gnu-source.
128179 2003-08-11  Bruno Haible  <bruno@clisp.org>
128181         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
128183 2003-08-11  Bruno Haible  <bruno@clisp.org>
128185         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
128186         (vasnprintf): Use it instead of wcslen.
128188 2003-08-11  Bruno Haible  <bruno@clisp.org>
128190         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
128191         value to ensure that _Bool promotes to int. Use #define for _Bool when
128192         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
128194 2003-08-10  Karl Berry  <karl@gnu.org>
128196         * lib/regex.h: update from libc (whitespace fix).
128198 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128200         Merge some files from coreutils.  These changes were
128201         originally made by Jim Meyering.
128202         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
128203         many older Unixes require this.
128204         * lib/alloca.c (alloca): Remove cast to argument of free;
128205         no longer needed in C89.
128206         * lib/alloca_.h, regex.h: Fix white space to match
128207         what GNU indent does.
128209 2003-08-09  Paul Eggert  <eggert@twinsun.com>
128211         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
128212         apparently Emacs's Unicode mode got confused before my 2003-08-05
128213         checkin.
128215 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128217         * m4/extensions.m4: New file.
128218         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
128219         Require gl_USE_SYSTEM_EXTENSIONS.
128220         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
128221         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
128223 2003-08-08  Paul Eggert  <eggert@twinsun.com>
128225         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
128226         * modules/extensions, modules/gnu-source: New files.
128227         * modules/timespec, modules/unlocked-io: Depend on extensions.
128229 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128231         * modules/restrict: New file.
128232         * MODULES.html.sh (func_all_modules): Add restrict.
128233         * modules/regex: Depend on restrict.
128235 2003-08-07  Paul Eggert  <eggert@twinsun.com>
128237         * m4/restrict.m4: New file.
128238         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
128240 2003-08-07  Bruno Haible  <bruno@clisp.org>
128242         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
128243         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
128245 2003-08-07  Bruno Haible  <bruno@clisp.org>
128247         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
128248         makes the module 'getndelim2' compatible with the module 'getline'.
128250 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128252         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
128253         byte with "\201" to avoid glitches when editing that source file
128254         with multi-gnome-terminal.
128256 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128258         * lib/bumpalloc.h: Remove.
128260 2003-08-05  Paul Eggert  <eggert@twinsun.com>
128262         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
128263         * modules/bumpalloc: Remove.
128265 2003-08-04  Paul Eggert  <eggert@twinsun.com>
128267         * lib/getloadavg.c: Change copyright notice and spacing to conform to
128268         GNU coding style.
128270         Merge from coreutils.
128271         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
128272         1. From glibc.
128273         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
128274         from Karl Berry, implemented by Jim Meyering.
128275         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
128276         from Dmitry V. Levin.
128277         Remove anachronistic cast of xrealloc.
128278         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
128279         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
128280         type. Otherwise, it wouldn't compile with at least /bin/cc on
128281         ymp-cray-unicos9.0.2.X.
128282         Combine two mostly-identical uses of alloca into one.
128283         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
128285 2003-08-04  Dave Love  <d.love@dl.ac.uk>
128287         [From Emacs.]
128289         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
128290         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
128291         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
128292         obsolete NLIST_NAME_UNION.
128293         [__GNU__]: Undef BSD and FSCALE.
128294         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
128296 2003-08-03  Paul Eggert  <eggert@twinsun.com>
128298         * lib/stdbool_.h (_Bool): Make it signed char, instead of
128299         an enum type, so that it's guaranteed to promote to int.  See:
128300         <http://mail.gnu.org/r/bug-gnulib/2003-07/msg00124.html>
128302 2003-08-03  Karl Berry  <karl@gnu.org>
128304         * config/depcomp: update from automake.
128306 2003-07-31  Paul Eggert  <eggert@twinsun.com>
128308         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
128309         (strerror): Don't assume that a printable int fits in 14 bytes.
128311 2003-07-31  Bruno Haible  <bruno@clisp.org>
128313         * modules/getpass-gnu: New file.
128314         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
128316 2003-07-31  Bruno Haible  <bruno@clisp.org>
128318         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
128320 2003-07-24  Karl Berry  <karl@gnu.org>
128322         * config/missing: update from automake.
128324 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
128325             Bruno Haible  <bruno@clisp.org>
128327         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
128328         * lib/getline.c (getline, getdelim): Likewise.
128329         Remove _GNU_SOURCE define; now it's defined in config.h through
128330         m4/getline.m4.
128332 2003-07-23  Karl Berry  <karl@gnu.org>
128334         * config/config.sub: update from prep.
128336 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128338         * modules/xalloc (Depends-on): Add exitfail.
128339         * modules/xmemcoll: Likewise.
128341 2003-07-22  Paul Eggert  <eggert@twinsun.com>
128343         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
128344         over-parenthesization in macros.
128346         Sync with coreutils.
128348         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
128349         required by C99.
128351         Use `exit_failure' for xalloc and xmemcoll instead of their own
128352         private exit-failure variables.
128353         * lib/xalloc.h (xalloc_exit_failure): Remove.
128354         * lib/xmalloc.c: Likewise.  Include exitfail.h.
128355         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
128356         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
128357         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
128358         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
128360 2003-07-20  Jim Meyering  <jim@meyering.net>
128362         * modules/closeout (Depends-on): Add exitfail.
128363         Suggestion from Bruno Haible.
128365 2003-07-19  Karl Berry  <karl@gnu.org>
128367         * config/config.sub: update from prep.
128369 2003-07-18  Paul Eggert  <eggert@twinsun.com>
128371         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
128372         Remove.
128373         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
128374         to test that it can stand by itself.  Include "exitfail.h".
128375         Clients should set exit_failure instead.
128376         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
128378 2003-07-18  Bruno Haible  <bruno@clisp.org>
128380         * modules/getndelim2: New file.
128381         * modules/getline: Share files with module getndelim2.
128382         * modules/getnline: Depend on getndelim2 instead of sharing files with
128383         it. Add getnline.c to lib_SOURCES.
128384         * MODULES.html.sh (func_all_modules): Add getndelim2.
128386 2003-07-18  Bruno Haible  <bruno@clisp.org>
128388         * m4/getndelim2.m4: New file.
128389         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
128390         invoke gl_PREREQ_GETNDELIM2.
128391         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
128392         gl_PREREQ_GETNDELIM2.
128393         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
128394         gl_GETNDELIM2.
128396 2003-07-18  Bruno Haible  <bruno@clisp.org>
128398         * lib/getndelim2.h: New file.
128399         * lib/getndelim2.c: Make into a module of its own. Include config.h,
128400         getndelim2.h.
128401         (getndelim2): Make non-static. Change return type to ssize_t.
128402         * lib/getline.h: Change argument names.
128403         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
128404         * lib/getnline.c: Include getndelim2.h.
128406 2003-07-18  Andreas Schwab  <schwab@suse.de>
128408         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
128410 2003-07-17  Karl Berry  <karl@gnu.org>
128412         * config/config.sub: update from prep.
128414 2003-07-17  Bruno Haible  <bruno@clisp.org>
128416         * modules/getnline: New file.
128417         * modules/getline: Add lib/getndelim2.c to source file list.
128418         * MODULES.html.sh (func_all_modules): Add getnline.
128420 2003-07-17  Bruno Haible  <bruno@clisp.org>
128422         * m4/getnline.m4: New file.
128424 2003-07-17  Bruno Haible  <bruno@clisp.org>
128426         * m4/Makefile.am.in: Remove file.
128427         * m4/Makefile.am: Remove file.
128428         * m4/Makefile.in: Remove file.
128430 2003-07-17  Bruno Haible  <bruno@clisp.org>
128432         * lib/getnline.h: New file.
128433         * lib/getnline.c: New file.
128434         * lib/getndelim2.c: New file, extracted from getline.c.
128435         (getndelim2): Renamed from getdelim2, with added nmax argument.
128436         * lib/getline.c: Include getndelim2.c.
128437         (getdelim2): Moved out to getndelim2.c.
128438         (getline, getdelim): Update.
128440 2003-07-17  Bruno Haible  <bruno@clisp.org>
128442         * lib/Makefile.am: Remove file.
128443         * lib/Makefile.in: Remove file.
128445 2003-07-17  Bruno Haible  <bruno@clisp.org>
128447         * configure.in: Remove file.
128448         * Makefile.in: Remove file.
128450 2003-07-17  Bruno Haible  <bruno@clisp.org>
128452         * MODULES.html.sh: Put the </BODY> right before </HTML>.
128454 2003-07-16  Karl Berry  <karl@gnu.org>
128456         * config/srclist-update: was running fixlicense twice, which caused
128457                 texinfo.tex to be nullified for some reason.  Simplify,
128458                 $gplsrc is no longer needed as far as I can see?
128460 2003-07-16  Jim Meyering  <jim@meyering.net>
128462         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
128464 2003-07-15  Paul Eggert  <eggert@twinsun.com>
128466         * config/srclist.txt: Get the following files from gettext-runtime/intl
128467         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
128468         ref-del.sin.  From Bruno Haible.
128469         * config/srclist-update (fixfile): Change grep pattern again, since the
128470         previous fix didn't work (there was another trailing $).  Use
128471         '[$]' to escape the $s.
128473 2003-07-15  Karl Berry  <karl@gnu.org>
128475         * lib/vasnprintf.c: update from gettext.
128477 2003-07-15  Karl Berry  <karl@gnu.org>
128479         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
128480         gets expanded when surrounded by '$'.
128482 2003-07-15  Jim Meyering  <jim@meyering.net>
128484         * modules/save-cwd: Don't depend on error.  From Derek Price.
128486 2003-07-15  Jim Meyering  <jim@meyering.net>
128488         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
128490 2003-07-14  Simon Josefsson  <jas@extundo.com>
128492         * modules/mempcpy: New file.
128493         * MODULES.html.sh (func_all_modules): Add mempcpy.
128495 2003-07-14  Simon Josefsson  <jas@extundo.com>
128497         * m4/mempcpy.m4: New file.
128499 2003-07-14  Simon Josefsson  <jas@extundo.com>
128501         * lib/mempcpy.h: New file.
128502         * lib/mempcpy.c: New file.
128504 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128506         * modules/getdate, modules/posixtm: Depend on mktime.
128508 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128510         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
128511         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
128512         unicodeio.c, unicodeio.h, unlocked-io.h:
128513         Switch from LGPL to GPL.
128515 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128517         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
128518         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
128519         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
128520         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
128521         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
128522         updated automatically by ../config/srclist-update.  This changes
128523         their license from LPGL to GPL.
128525 2003-07-14  Paul Eggert  <eggert@twinsun.com>
128527         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
128528         assumed to refer to the root of the most recent stable gettext version.
128529         * config/srclistvars.sh: Add defaults for eggert.
128530         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
128531         Match "This program" as well as "The program".  This is needed
128532         for gettext.
128534 2003-07-14  Jim Meyering  <jim@meyering.net>
128536         Don't emit diagnostics.  Let callers do that.
128537         * lib/save-cwd.c: Don't include "error.h".
128538         (save_cwd): Don't call error.  Ensure that errno is valid
128539         when returning nonzero.
128541         * lib/save-cwd.h (restore_cwd): Update prototype.
128542         * lib/save-cwd.c (restore_cwd): Remove two parameters.
128543         Simplify.  Don't call error upon failure.  Let callers do that.
128544         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
128545         when auditing is enabled.  But don't bother updating the #if.
128547 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
128549         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
128550         it breaks C++ compilation.
128551         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
128553 2003-07-10  Simon Josefsson  <jas@extundo.com>
128555         * modules/strchrnul (Makefile.am): Add strchrnul.h.
128557 2003-07-10  Jim Meyering  <jim@meyering.net>
128559         * m4/clock_time.m4: Remove trailing blank.
128560         * m4/intmax_t.m4: Likewise.
128562 2003-07-10  Jim Meyering  <jim@meyering.net>
128564         * lib/vasnprintf.c: Remove trailing blanks.
128565         Make cpp indentation consistent.
128567 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128569         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
128570         posixver.c, strftime.c, strnlen.c, strverscmp.c:
128571         Switch from LGPL to GPL.
128573 2003-07-09  Paul Eggert  <eggert@twinsun.com>
128575         * config/srclist.txt: Sort sublists.  Add
128576         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
128577         that differ from gnulib for one reason or another; we'd like this list
128578         to be smaller but for now let's document what we have.
128580 2003-07-08  Paul Eggert  <eggert@twinsun.com>
128582         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
128583         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
128584         and sweeter "eval x=$x".
128585         * config/srclist.txt: Get lib/argp* from glibc.
128587 2003-07-07  Paul Eggert  <eggert@twinsun.com>
128589         * lib/mktime.c: Fix some boundary cases and remove need for floating
128590         point.
128592         Issue a compile-time diagnostic if time_t is floating point, or if
128593         two's complement arithmetic is not in effect, or if arithmetic
128594         right shift does not propagate the sign.  These assumptions were
128595         all in the original code but they weren't checked.
128597         (TIME_T_MIDPOINT, verify): New macros.
128598         (__isleap): Remove; it has integer overflow problems.
128599         (leapyear): New function, without those problems.
128600         (ydhms_tm_diff): Remove; splitting into two parts.
128601         (ydhms_diff): New function, containing the arithmetic part of
128602         the old ydhms_tm_diff function.  Issue a compile-time
128603         diagnostic if we are not using C99 integer division.
128604         Avoid casts when possible.
128605         (guess_time_tm): New function, containing the checking part of
128606         the old ydhms_tm_diff function.  Return the new value, rather than
128607         the difference between it and the old.  Accept a new argument T
128608         so that *T specifies the old value.  Check for overflow in the result.
128610         (__mktime_internal): Use a time_t offset, not a long int offset.
128611         This undoes the 2003-06-04 change, which is no longer needed now
128612         that we have better overflow checking.
128613         (localtime_offset): Likewise.
128615         (__mktime_internal): Avoid harmful overflow on hosts where time_t
128616         and long are 64-bit but int is only 32-bit.
128617         (ydhms_diff): Use long int to store year1 and yday1.
128618         Issue a compile-time diagnostic if long int is not wide enough.
128620         (__mktime_internal): Use long int to store adjusted year and yday.
128621         Use plain C rather than preprocessor commands, if that doesn't
128622         affect efficiency.
128623         Check for overflow (and try to repair) after each probe
128624         rather than checking only at the very end.  This avoids some bugs
128625         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
128626         does not equal GMT offset at maximum time).
128627         Use integer to check for overflow rather than floating point; this
128628         is more portable to non-IEEE hosts, and is a tad faster.
128629         When we detect that we are oscillating between two values,
128630         don't check whether tm_isdst has the requested value, since
128631         we already know the answer.  When tm_isdst has the wrong value,
128632         use a different heuristic to find the right one, based on the
128633         extreme values actually observed in practice in tz2003a,
128634         rather than the (overly optimistic) "previous 3 calendar quarters".
128636         (not_equal_tm, print_tm, check_result): Use "const T" rather than
128637         "T const" to accommodate glibc style.
128638         (check_result): Use less-confusing report format.  "long" -> "long int.
128639         (main): Likewise.
128640         Don't loop if the iteration overflows time_t.
128641         Allow a negative step in the iteration.
128643 2003-07-06  Karl Berry  <karl@gnu.org>
128645         * config/depcomp: update from automake.
128646         * config/config.sub: update from prep.
128648 2003-07-03  Karl Berry  <karl@gnu.org>
128650         * config/config.guess: update from prep.
128652 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128654         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
128655         xreadlink.c now includes it unconditionally.
128657 2003-07-01  Paul Eggert  <eggert@twinsun.com>
128659         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
128660         having it depend on HAVE_SYS_TYPES_H.
128662 2003-07-01  Bruno Haible  <bruno@clisp.org>
128664         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
128665         <sys/types.h> should be sufficient.
128666         Reported by Paul Eggert.
128668 2003-06-26  Karl Berry  <karl@gnu.org>
128670         * config/depcomp: update from automake.
128672 2003-06-26  Bruno Haible  <bruno@clisp.org>
128674         * modules/human: Depend on module stdbool.
128676 2003-06-25  Bruno Haible  <bruno@clisp.org>
128678         * modules/readlink: New file.
128679         * modules/xreadlink: Depend on it.
128680         * MODULES.html.sh (func_all_modules): Add readlink.
128682 2003-06-25  Bruno Haible  <bruno@clisp.org>
128684         * m4/readlink.m4: New file.
128686 2003-06-25  Bruno Haible  <bruno@clisp.org>
128688         * lib/readlink.c: New file.
128690 2003-06-22  Karl Berry  <karl@gnu.org>
128692         * config/srclist.txt: update mkinstalldirs from automake.
128693         * config/mkinstalldirs: update.
128695 2003-06-22  Bruno Haible  <bruno@clisp.org>
128697         Portability to mingw32.
128698         * m4/ssize_t.m4: New file, from GNU gettext.
128699         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
128700         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
128702 2003-06-22  Bruno Haible  <bruno@clisp.org>
128704         * modules/safe-read: Add m4/ssize_t.m4.
128705         * modules/xreadlink: Add m4/ssize_t.m4.
128707 2003-06-20  Bruno Haible  <bruno@clisp.org>
128709         Assume C89, so PARAMS isn't needed.
128710         * lib/unicodeio.h (PARAMS): Remove.
128711         * lib/unicodeio.c: Don't use PARAMS.
128713 2003-06-18  Karl Berry  <karl@gnu.org>
128715         * config/config.{guess,sub}: update from prep.
128717 2003-06-18  Jim Meyering  <jim@meyering.net>
128719         Merge changes from coreutils.
128720         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
128721         Remove explicit declarations of xmalloc and realloc.
128722         Include xalloc.h.
128723         (read_utmp): Remove anachronistic cast of xmalloc.
128725 2003-06-17  Paul Eggert  <eggert@twinsun.com>
128727         Assume C89, so PARAMS isn't needed.
128728         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
128729         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
128730         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
128731         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
128732         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
128733         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
128734         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
128735         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
128736         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
128737         lib/xstrtod.h, lib/xstrtol.h: Likewise.
128738         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
128739         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
128740         no longer needed. Anyway, config.h should always be included before any
128741         other file.
128743 2003-06-11  Simon Josefsson  <jas@extundo.com>
128745         * modules/sysexits: New file.
128746         * MODULES.html.sh (func_all_modules): Add sysexits.
128748 2003-06-11  Simon Josefsson  <jas@extundo.com>
128750         * lib/sysexit_.h: New file.
128752 2003-06-11  Derek Price  <derek@ximbiot.com>
128754         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
128755         necessary.
128757 2003-06-11  Bruno Haible  <bruno@clisp.org>
128759         * m4/sysexits.m4: New file.
128761 2003-06-10  Simon Josefsson  <jas@extundo.com>
128763         * lib/argp.h: New file, from glibc.
128764         * lib/argp-ba.c: New file, from glibc.
128765         * lib/argp-eexst.c: New file, from glibc.
128766         * lib/argp-fmtstream.c: New file, from glibc.
128767         * lib/argp-fmtstream.h: New file, from glibc.
128768         * lib/argp-fs-xinl.c: New file, from glibc.
128769         * lib/argp-help.c: New file, from glibc.
128770         * lib/argp-namefrob.h: New file, from glibc.
128771         * lib/argp-parse.c: New file, from glibc.
128772         * lib/argp-pv.c: New file, from glibc.
128773         * lib/argp-pvh.c: New file, from glibc.
128774         * lib/argp-xinl.c: New file, from glibc.
128776 2003-06-10  Simon Josefsson  <jas@extundo.com>
128778         * modules/strchrnul: New file.
128780 2003-06-10  Simon Josefsson  <jas@extundo.com>
128782         * modules/argp: New file.
128784 2003-06-10  Simon Josefsson  <jas@extundo.com>
128786         * m4/strchrnul.m4: New file.
128788 2003-06-10  Simon Josefsson  <jas@extundo.com>
128790         * lib/strchrnul.h: New file.
128791         * lib/strchrnul.c: New file.
128793 2003-06-10  Bruno Haible  <bruno@clisp.org>
128795         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
128797 2003-06-07  Karl Berry  <karl@gnu.org>
128799         * config/config.{guess,sub}: update from prep.
128801 2003-06-07  Jim Meyering  <jim@meyering.net>
128803         * modules/strtod: Use $(...) notation, not @...@ for
128804         AC_REPLACE'd variables.
128805         * modules/localcharset: Likewise.
128807 2003-06-07  Jim Meyering  <jim@meyering.net>
128809         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
128810         in place of my name in the copyright comment.
128811         Remove definition and uses of __P.
128813         From coreutils.
128814         * lib/stat.c: Don't declare xmalloc explicitly.
128815         Instead, include "xalloc.h".
128816         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
128817         xrealloc, and xcalloc return values.
128818         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
128819         Improve comment.
128820         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
128822 2003-06-07  Bruno Haible  <bruno@clisp.org>
128824         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
128825         avoid AC_CONFIG_LINKS.
128826         * modules/fnmatch (Makefile.am): Use explicit creation rule for
128827         fnmatch.h, to avoid AC_CONFIG_LINKS.
128828         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
128830 2003-06-07  Bruno Haible  <bruno@clisp.org>
128832         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
128833         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
128834         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128835         directory.
128836         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
128837         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
128838         directory.
128840 2003-06-06  Jim Meyering  <jim@meyering.net>
128842         Merge from coreutils.
128843         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
128844         Consolidate declarations and initializations of *_base* locals.
128846         Merge from coreutils.
128847         This avoids a core dump on systems without GNU putenv,
128848         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
128849         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
128850         (unsetenv): New static function, from GNU libc.
128851         (rpl_putenv): Use it.
128853         * lib/modechange.c: Remove trailing blanks.
128855         Merge from coreutils.
128856         * lib/fsusage.c: Remove declaration of statfs.
128857         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
128859         * lib/posixtm.c: Include <stdbool.h> unconditionally.
128861 2003-06-06  Jim Meyering  <jim@meyering.net>
128863         * lib/stdbool_.h: Renamed from stdbool.h.in.
128865 2003-06-06  Jim Meyering  <jim@meyering.net>
128866             Bruno Haible  <bruno@clisp.org>
128868         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
128869         Adjust Makefile.am snippet not to redirect directly to target.
128870         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
128872 2003-06-05  Paul Eggert  <eggert@twinsun.com>
128874         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
128875         mismatch, look in future quarters as well as past.  This fixes a
128876         bug when processing fall-backwards gaps immediately after a long
128877         period of daylight-saving time.
128879         * lib/mktime.c: Assume freestanding C89 or better.
128880         (HAVE_LIMITS_H): Remove.  Assume it's 1.
128881         (__P): Remove; not used.
128882         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
128883         (mktime, not_equal_tm, print_tm, check_result,
128884         main): Use prototypes.  Use const * where appropriate.
128885         (main): Fix typo in testing code that uncovered by above changes.
128886         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
128888 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128890         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
128891         locale.h, localeconv.  This merges changes from coreutils.
128893         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
128894         It can be removed after the next Autoconf is released.
128895         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
128896         needed.
128898 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128900         * lib/mktime.c: Fix Debian bug 177940
128901         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
128902         (localtime_offset): Now long int, not time_t, because we want it
128903         to be guaranteed to be signed.  All uses changed.
128904         (__mktime_internal): If overflow would occur when adding offset,
128905         don't add it.
128907         Merge 'human' changes from coreutils.  Rewrite to support
128908         locale-specific notations like thousands separators.
128909         * lib/human.c: Simplify authorship notice.
128910         Include human.h immediately after config.h.
128911         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
128912         <limits.h>: Do not include, since human.h does.
128913         (SIZE_MAX, UINTMAX_MAX): New macros.
128914         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
128915         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
128916         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
128917         (power_letter): Renamed from suffixes.
128918         (generate_suffix_backwards): Remove.
128919         (adjust_value): Now takes int style (because of human.h changes)
128920         and long double value (for greater precision on some platforms).
128921         (group_number): New function.
128922         (human_readable): Use it.  Use integer options, not enum.
128923         Put the options before the sizes in the arg list.
128924         Support all the new options.
128925         The old human_readable function has been removed;
128926         use inttostr.h instead.
128927         (human_readable, default_block_size, humblock):
128928         Use uintmax_t, not int, for block sizes.
128929         (human_readable_inexact, block_size_types): Remove.
128930         (block_size_opts): New constant.
128931         (human_options): Renamed from human_block_size, with new signature
128932         that allows block sizes up to UINTMAX_MAX.  All callers changed.
128933         * lib/human.h: Add copyright and authorship notice.
128934         Include <limits.h> and <stdbool.h> unconditionally.
128935         (PARAMS): Remove.  All uses removed.
128936         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
128937         (enum human_inexact_style): Remove tag; now a nameless enum.
128938         (human_floor, human_ceiling, human_round_to_even): Now have
128939         values 2, 0, 1 rather than -1, 1, 0.
128940         (human_group_digits, human_suppress_point_zero, human_autoscale,
128941         human_base_1024, human_SI, human_B): New constants.
128942         (human_readable_inexact, human_block_size): Remove.
128943         (human_readable): Size args are now uintmax_t, not int.
128944         (human_options): New decl.
128946         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
128947         unnecessary now that we assume C89 or better.  This change
128948         imported from coreutils.
128950         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
128951         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
128952         in the 2003-05-30 sync from glibc.
128954         .h files should stand alone, but we shouldn't include <sys/types.h>
128955         if we can get away with just <stddef.h>.
128957         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
128958         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
128959         rather than <sys/types.h>, as we merely need size_t.
128960         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
128961         to get size_t.
128962         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
128963         Include <stdio.h>, to get FILE.
128964         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
128965         memcasecmp.h has included <stddef.h> and all we need is size_t.
128966         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
128967         our interface, instead of including <sys/types.h>
128969 2003-06-04  Paul Eggert  <eggert@twinsun.com>
128971         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
128972         now, as glibc mktime is buggy on non-glibc systems.
128974 2003-06-03  Karl Berry  <karl@gnu.org>
128976         * config/config.sub: update from prep.
128978 2003-06-02  Paul Eggert  <eggert@twinsun.com>
128980         [from coreutils]
128981         Fix some minor time-related bugs with POSIX time arguments.
128982         Some valid time stamps were being rejected (notably -1, and
128983         time stamps before 1900 on 64-bit hosts).  And some invalid
128984         time stamps were being accepted, e.g. September 31.
128986         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
128987         that we can return (time_t) -1 successfully.
128988         * lib/posixtm.c: Likewise.
128989         [HAVE_STDBOOL_H]: Include <stdbool.h>.
128990         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
128991         (t): Remove static var.
128992         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
128993         of static var.  All uses changed.
128994         (year): Do not reject years before 1900; they can occur with
128995         64-bit time_t.
128996         (posix_time_parse): Do not check for out-of-range components;
128997         that is now the caller's responsibility, since our checks were
128998         only approximations.
128999         (posixtime): Use mktime to check for out-of-range components,
129000         since it knows them exactly.
129001         If mktime returns (time_t) -1, check whether an error actually occurred
129002         by invoking localtime on -1.
129003         (main) [TEST_POSIXTIME]: Check for input data errors, and report
129004         posixtime failures better.
129005         Improve the test data (in comments only).
129007 2003-06-02  Karl Berry  <karl@gnu.org>
129009         * config/mkinstalldirs (version): new variable.
129010         (--version): new option.
129011         (usage): improve message.
129013 2003-05-30  Karl Berry  <karl@gnu.org>
129015         * lib/mktime.c: update from libc.
129017 2003-05-30  Bruno Haible  <bruno@clisp.org>
129019         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
129020         * config/config.rpath: Upgrade to gettext-0.12.1.
129022 2003-05-30  Bruno Haible  <bruno@clisp.org>
129024         * m4/gettext.m4: Upgrade to gettext-0.12.1.
129025         * m4/nls.m4: New file, from gettext-0.12.1.
129026         * m4/po.m4: New file, from gettext-0.12.1.
129027         * m4/progtest.m4: Upgrade to gettext-0.12.1.
129029 2003-05-30  Bruno Haible  <bruno@clisp.org>
129031         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
129032         * lib/localcharset.h: Likewise.
129033         * lib/localcharset.c: Likewise.
129035 2003-05-29  Karl Berry  <karl@gnu.org>
129037         * config/config.rpath: update from gettext.
129039 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129041         Assume the headers required for C89 freestanding compilers.
129042         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
129043         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
129044         * m4/human.m4 (gl_HUMAN): Likewise.
129045         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
129046         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
129047         * m4/userspec.m4 (gl_USERSPEC): Likewise.
129048         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
129049         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
129050         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
129052 2003-05-28  Paul Eggert  <eggert@twinsun.com>
129054         Assume the headers required for C89 freestanding compilers.
129055         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
129056         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
129057         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
129058         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
129059         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
129060         define, since <limits.h> is guaranteed to do that.
129061         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
129062         * lib/exclude.c: Include <stdbool.h> unconditionally.
129063         * lib/tempname.c: Include <stddef.h> unconditionally.
129064         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
129065         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
129066         <stddef.h> does that.
129067         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
129068         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
129069         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
129070         needed.
129071         * lib/xstrtol.c: Likewise.
129072         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
129073         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
129075         * lib/addext.c (addext): Use assignment rather than cast, to avoid
129076         warnings on some platforms.
129078         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
129079         arbitrarily.
129081 2003-05-26  Jim Meyering  <jim@meyering.net>
129083         Merge in a change from coreutils:
129084         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
129085         that is guaranteed to be `no'.  Use `no_such_member' to indicate
129086         that condition, rather than `-1' which is slightly misleading.
129087         Change the name of the cache variable to have the gl_ prefix.
129088         Prompted by a patch from Richard Dawe for DJGPP.
129090 2003-05-24  Karl Berry  <karl@gnu.org>
129092         * config/config.guess: update from prep.
129094 2003-05-22  Karl Berry  <karl@gnu.org>
129096         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
129098 2003-05-20  Karl Berry  <karl@gnu.org>
129100         * config/config.guess: update from prep.
129102 2003-05-18  Karl Berry  <karl@gnu.org>
129104         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
129105         might actually be set by the user.
129107         * config/depcomp, install-sh, mdate-sh: update from automake.
129109 2003-05-17  Bruno Haible  <bruno@clisp.org>
129111         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
129112         invalid expansion for AC_EGREP_CPP.
129113         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
129114         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
129115         Suggested by Akim Demaille <akim@epita.fr> in
129116         http://mail.gnu.org/r/bug-autoconf/2003-05/threads.html
129118 2003-05-12  Jim Meyering  <jim@meyering.net>
129120         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
129121         the space-padded-by-default conversion specifiers, %e, %k, %l.
129123 2003-05-12  Bruno Haible  <bruno@clisp.org>
129125         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
129126         the string is longer than 4 KB.
129128 2003-05-11  Karl Berry  <karl@gnu.org>
129130         * config/config.{guess,sub}: update from prep.
129132 2003-05-09  Bruno Haible  <bruno@clisp.org>
129134         * modules/error: Add m4/strerror_r.m4 to file list.
129136 2003-05-03  Bruno Haible  <bruno@clisp.org>
129138         Upgrade to Unicode-4.0.
129139         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
129140         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
129141         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
129142         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
129143         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
129144         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
129145         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
129146         Change width of U+E0100..U+E01EF from 1 to 0.
129148 2003-04-25  Jim Meyering  <jim@meyering.net>
129150         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
129151         of type size_t, not int.
129153 2003-04-25  Bruno Haible  <bruno@clisp.org>
129155         * lib/copy-file.c: Include <stddef.h>, for size_t.
129157 2003-04-21  Paul Eggert  <eggert@twinsun.com>
129159         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
129160         code which expansion is under static control.  Patch imported from
129161         Akim Demaille's patch to Bison; see
129162         <http://mail.gnu.org/r/bison-patches/2003-03/msg00057.html>.
129164 2003-04-14  Bruno Haible  <bruno@clisp.org>
129166         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
129168 2003-04-11  Jim Meyering  <jim@meyering.net>
129170         Merge changes from Coreutils.
129172         2003-03-22  Jim Meyering  <jim@meyering.net>
129174         * lib/strftime.c (widen): Cast alloca return value to proper type.
129176         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
129178         From GNU libc.
129179         * lib/strftime.c (my_strftime): Handle very large width
129180         specifications for numeric values correctly.  Improve checks for
129181         overflow.
129183         2003-01-19  Jim Meyering  <jim@meyering.net>
129185         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
129186         definitions.
129187         (nl_get_alt_digit) [! defined my_strftime]: Define.
129188         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
129189         _nl_get_alt_digit and _nl_get_walt_digit.
129191         * lib/strftime.c (my_strftime): Merge in locale-related changes from
129192         libc. These changes have no effect outside of _LIBC.
129194 2003-04-10  Bruno Haible  <bruno@clisp.org>
129196         * modules/findprog: New file.
129197         * MODULES.html.sh (func_all_modules): Add it.
129199 2003-04-10  Bruno Haible  <bruno@clisp.org>
129201         * m4/findprog.m4: New file.
129202         * m4/eaccess.m4: New file.
129204 2003-04-10  Bruno Haible  <bruno@clisp.org>
129206         * lib/findprog.h: New file, from GNU gettext.
129207         * lib/findprog.c: New file, from GNU gettext.
129209 2003-04-05  Jim Meyering  <jim@meyering.net>
129211         Merge changes from Coreutils.
129213         * lib/exclude.h (PARAMS): Remove definition and uses.
129214         * lib/exclude.c: Remove uses of `PARAMS'.
129216         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
129217         Add test-cases for DOS filenames. Declare program_name.
129218         (main): Set up program_name.  Patch by Rich Dawe.
129220         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
129221         error from mntctl.
129222         Use mntctl's return value to drive the entry-processing loop, since
129223         we can't rely on the value of the vmt_length member in the last
129224         entry.  On some systems doing so could result in exhausting
129225         virtual memory.  Based in part on a patch from Mike Jetzer.
129227 2003-04-04  Bruno Haible  <bruno@clisp.org>
129229         * modules/linebreak: New file.
129230         * MODULES.html.sh (func_all_modules): Add it.
129232 2003-04-04  Bruno Haible  <bruno@clisp.org>
129234         * m4/linebreak.m4: New file.
129236 2003-04-04  Bruno Haible  <bruno@clisp.org>
129238         * lib/linebreak.h: New file, from GNU gettext.
129239         * lib/linebreak.c: New file, from GNU gettext with slight
129240         modifications.
129241         * lib/lbrkprop.h: New file, from GNU gettext.
129243 2003-04-03  Bruno Haible  <bruno@clisp.org>
129245         * modules/utf8-ucs4: New file.
129246         * modules/utf16-ucs4: New file.
129247         * modules/ucs4-utf8: New file.
129248         * modules/ucs4-utf16: New file.
129249         * MODULES.html.sh (func_all_modules): Add them.
129251 2003-04-03  Bruno Haible  <bruno@clisp.org>
129253         * m4/utf-ucs4.m4: New file.
129254         * m4/ucs4-utf.m4: New file.
129256 2003-04-03  Bruno Haible  <bruno@clisp.org>
129258         * lib/utf8-ucs4.h: New file, from GNU gettext.
129259         * lib/utf16-ucs4.h: New file, from GNU gettext.
129260         * lib/ucs4-utf8.h: New file, from GNU gettext.
129261         * lib/ucs4-utf16.h: New file, from GNU gettext.
129263 2003-04-02  Bruno Haible  <bruno@clisp.org>
129265         * modules/binary-io: New file.
129266         * MODULES.html.sh (func_all_modules): Add it.
129268 2003-04-02  Bruno Haible  <bruno@clisp.org>
129270         * lib/binary-io.h: New file, from GNU gettext.
129272 2003-04-01  Bruno Haible  <bruno@clisp.org>
129274         * modules/pathname: New file.
129275         * MODULES.html.sh (func_all_modules): Add it.
129277 2003-04-01  Bruno Haible  <bruno@clisp.org>
129279         * lib/pathname.h: New file, from GNU gettext.
129280         * lib/concatpath.c: New file, from GNU gettext.
129282 2003-03-30  Bruno Haible  <bruno@clisp.org>
129284         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
129286 2003-03-30  Bruno Haible  <bruno@clisp.org>
129288         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
129289         function chown() doesn't exist.
129291 2003-03-28  Bruno Haible  <bruno@clisp.org>
129293         * modules/copy-file: New file.
129294         * MODULES.html.sh (func_all_modules): Add it.
129296 2003-03-28  Bruno Haible  <bruno@clisp.org>
129298         * m4/copy-file.m4: New file.
129300 2003-03-28  Bruno Haible  <bruno@clisp.org>
129302         * lib/copy-file.h: New file, from GNU gettext.
129303         * lib/copy-file.c: New file, from GNU gettext.
129305 2003-03-18  Jim Meyering  <jim@meyering.net>
129307         * lib/quote.c (quote_n): Fix typo in comment.
129309 2003-03-18  Bruno Haible  <bruno@clisp.org>
129311         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
129312         checking.
129313         * m4/onceonly_2_57.m4: Likewise.
129315 2003-03-17  Bruno Haible  <bruno@clisp.org>
129317         * m4/onceonly.m4: Require autoconf 2.54 or newer.
129318         (m4_quote): Remove macro.
129319         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
129321 2003-03-14  Jim Meyering  <jim@meyering.net>
129323         Merge changes from Coreutils.
129324         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
129325         to be const, in order to avoid warnings.
129326         (obstack_room): Likewise.
129327         (obstack_empty_p): Likewise.
129329 2003-03-14  Bruno Haible  <bruno@clisp.org>
129331         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
129332         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
129334 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129336         Merge changes from Bison.
129337         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
129338         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
129339         when compiling Bison 1.875's `bitset bset = obstack_alloc
129340         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
129341         * lib/hash.c: Include <stdbool.h> unconditionally.
129343 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129345         * m4/onceonly.m4 (m4_quote): New macro.
129346         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
129347         Quote AC_FOREACH variable-expansions properly.
129349 2003-03-13  Paul Eggert  <eggert@twinsun.com>
129351         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
129353 2003-03-09  Paul Eggert  <eggert@twinsun.com>
129355         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
129356         Reported by Bruce Becker; see:
129357         http://mail.gnu.org/r/bug-bison/2003-03/msg00017.html
129359 2003-03-03  Paul Eggert  <eggert@twinsun.com>
129360             Bruno Haible  <bruno@clisp.org>
129362         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
129363         Reported by John Hughes, see
129364         http://mail.gnu.org/r/bug-bison/2003-02/msg00030.html
129366 2003-02-20  Bruno Haible  <bruno@clisp.org>
129368         * MODULES.html.sh (func_all_modules): Add poll.
129370 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129372         * modules/poll: New file.
129374 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129376         * lib/poll_.h: New file.
129377         * lib/poll.c: New file.
129379 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
129381         * m4/poll.m4: New file.
129383 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129385         * modules/mathl: New file.
129387 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129389         * lib/mathl.h: New file.
129390         * lib/acosl.c: New file.
129391         * lib/asinl.c: New file.
129392         * lib/atanl.c: New file.
129393         * lib/ceill.c: New file.
129394         * lib/cosl.c: New file.
129395         * lib/expl.c: New file.
129396         * lib/floorl.c: New file.
129397         * lib/frexpl.c: New file.
129398         * lib/ldexpl.c: New file.
129399         * lib/logl.c: New file.
129400         * lib/sincosl.c: New file.
129401         * lib/sinl.c: New file.
129402         * lib/sqrtl.c: New file.
129403         * lib/tanl.c: New file.
129404         * lib/trigl.c: New file.
129405         * lib/trigl.h: New file.
129407 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
129409         * m4/mathl.m4: New file.
129411 2003-02-18  Bruno Haible  <bruno@clisp.org>
129413         * MODULES.html.sh (func_all_modules): Add mathl.
129415 2003-02-17  Bruno Haible  <bruno@clisp.org>
129417         * modules/mkdtemp: New module.
129418         * MODULES.html.sh (func_all_modules): Add it.
129420 2003-02-17  Bruno Haible  <bruno@clisp.org>
129422         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
129424 2003-02-17  Bruno Haible  <bruno@clisp.org>
129426         * lib/mkdtemp.h: New file, from GNU gettext.
129427         * lib/mkdtemp.c: New file, from GNU gettext.
129429 2003-02-02  Jim Meyering  <jim@meyering.net>
129431         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
129432         e.g. glibc-2.2.93.
129434 2003-01-31  Bruno Haible  <bruno@clisp.org>
129436         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
129437         'rpl_rename'.
129438         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
129439         'rpl_strnlen'.
129440         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
129441         'rpl_strtod'.
129442         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
129443         'rpl_utime'.
129445 2003-01-31  Bruno Haible  <bruno@clisp.org>
129447         * lib/rename.c: #undef rename before defining rpl_rename.
129448         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
129450 2003-01-30  Bruno Haible  <bruno@clisp.org>
129452         * modules/vasnprintf, modules/vasprintf: New modules.
129453         * MODULES.html.sh (func_all_modules): Add them.
129455 2003-01-30  Bruno Haible  <bruno@clisp.org>
129457         * m4/signed.m4: New file, from GNU gettext.
129458         * m4/longdouble.m4: New file, from GNU gettext.
129459         * m4/wchar_t.m4: New file, from GNU gettext.
129460         * m4/wint_t.m4: New file, from GNU gettext.
129461         * m4/vasnprintf.m4: New file.
129462         * m4/vasprintf.m4: New file.
129464 2003-01-30  Bruno Haible  <bruno@clisp.org>
129466         * lib/printf-args.h: New file, from GNU gettext.
129467         * lib/printf-args.c: New file, from GNU gettext.
129468         * lib/printf-parse.h: New file, from GNU gettext.
129469         * lib/printf-parse.c: New file, from GNU gettext.
129470         * lib/vasnprintf.h: New file, from GNU gettext.
129471         * lib/vasnprintf.c: New file, from GNU gettext.
129472         * lib/asnprintf.c: New file, from GNU gettext.
129473         * lib/vasprintf.h: New file, from GNU gettext with modifications.
129474         * lib/vasprintf.c: New file, from GNU gettext.
129475         * lib/asprintf.c: New file, from GNU gettext.
129477 2003-01-29  Bruno Haible  <bruno@clisp.org>
129479         * modules/stpncpy: New module.
129480         * MODULES.html.sh (func_all_modules): Add it.
129482 2003-01-29  Bruno Haible  <bruno@clisp.org>
129484         * m4/stpncpy.m4: New file.
129486 2003-01-29  Bruno Haible  <bruno@clisp.org>
129488         * lib/stpncpy.h: New file, from GNU gettext with modifications.
129489         * lib/stpncpy.c: New file, from GNU gettext with modifications.
129491 2003-01-28  Bruno Haible  <bruno@clisp.org>
129493         * modules/c-ctype: New module.
129494         * MODULES.html.sh (func_all_modules): Add it.
129496 2003-01-28  Bruno Haible  <bruno@clisp.org>
129498         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
129499         Paul Eggert.
129500         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
129501         Paul Eggert.
129503 2003-01-27  Bruno Haible  <bruno@clisp.org>
129505         * modules/xsetenv: New module.
129506         * MODULES.html.sh (func_all_modules): Add it.
129508 2003-01-27  Bruno Haible  <bruno@clisp.org>
129510         * lib/xsetenv.h: New file, from GNU gettext.
129511         * lib/xsetenv.c: New file, from GNU gettext.
129513 2003-01-23  Jim Meyering  <jim@meyering.net>
129515         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
129516         from working on systems without dirfd (at least Irix and OSF1/Tru64).
129518 2003-01-23  Bruno Haible  <bruno@clisp.org>
129520         * modules/minmax: New module.
129521         * MODULES.html.sh (func_all_modules): Add it.
129523 2003-01-23  Bruno Haible  <bruno@clisp.org>
129525         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
129526         Eggert.
129528 2003-01-22  Bruno Haible  <bruno@clisp.org>
129530         * modules/exit: New module.
129531         * MODULES.html.sh (func_all_modules): Add it.
129533 2003-01-22  Bruno Haible  <bruno@clisp.org>
129535         * lib/exit.h: New file, from GNU gettext.
129537 2003-01-19  Bruno Haible  <bruno@clisp.org>
129539         * gnulib-tool: Recognize option --extract-maintainer.
129540         (func_get_maintainer): New function.
129541         * modules/*: Add Maintainer entry.
129543 2003-01-16  Jim Meyering  <jim@meyering.net>
129545         * m4/regex.m4: The `regex' struct is both input and output.
129546         Initialize it before each use.  Patch by Tim Waugh.
129548 2003-01-16  Bruno Haible  <bruno@clisp.org>
129550         * MODULES.html.sh: Add a table of contents. Add the module name as
129551         leftmost column. Add hyperlinks.
129553 2003-01-15  Bruno Haible  <bruno@clisp.org>
129555         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
129557 2003-01-15  Bruno Haible  <bruno@clisp.org>
129559         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
129560         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
129561         suffix.
129563 2003-01-15  Bruno Haible  <bruno@clisp.org>
129565         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
129567 2003-01-15  Bruno Haible  <bruno@clisp.org>
129569         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
129570         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
129572 2003-01-14  Jim Meyering  <jim@meyering.net>
129574         * lib/same.c (same_name): Tweak a comment.
129576 2003-01-14  Bruno Haible  <bruno@clisp.org>
129578         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
129579         when a string comparison is sufficient.
129581 2003-01-14  Bruno Haible  <bruno@clisp.org>
129583         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
129584         'unsigned int'.
129586 2003-01-14  Bruno Haible  <bruno@clisp.org>
129588         * lib/hash-pjw.c: Add comment about low quality of this function.
129590 2003-01-13  Bruno Haible  <bruno@clisp.org>
129592         * modules/stpcpy: Distribute lib/stpcpy.h.
129593         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
129595 2003-01-13  Bruno Haible  <bruno@clisp.org>
129597         * modules/*: Add a description.
129598         * modules/strpbrk: Fix Makefile.am snippet.
129599         * modules/strtoimax: Fix dependencies.
129600         * modules/strtoumax: Likewise.
129602 2003-01-13  Bruno Haible  <bruno@clisp.org>
129604         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
129605         * modules/alloca (Makefile.am): All object files depend on alloca.h.
129606         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
129608 2003-01-13  Bruno Haible  <bruno@clisp.org>
129610         * gnulib-tool (func_create_testdir): Store config/* files in the main
129611         directory.
129612         * config.rpath: Move to ...
129613         * config/config.rpath: ... here.
129614         * modules/gettext: Contains config/config.rpath, not config.rpath.
129615         * modules/iconv: Likewise.
129617 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129619         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129620         to avoid collisions with libcurses and libreadline.
129622         * m4/getstr.m4: Remove.
129623         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
129625 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129627         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129628         to avoid collisions with libcurses and libreadline.
129630         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
129631         * lib/getstr.h, getstr.c: Remove.
129632         * lib/getline.c: Include "getline.h", to check interface.
129633         Move body of old getstr.c here: this defines MIN_CHUNK and
129634         declares getdelim2, which is renamed from getstr.
129635         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
129637         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
129638         All uses changed.
129639         * lib/linebuffer.h: Likewise.
129640         (readline): Remove backward-compatibility macro.
129642 2003-01-12  Paul Eggert  <eggert@twinsun.com>
129644         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
129645         to avoid collisions with libcurses and libreadline.
129646         * getstr: Remove.
129647         * MODULES.html.sh: Remove getstr.
129648         * modules/getline: Depend on unlocked-io, not getstr.
129650 2003-01-12  Jim Meyering  <jim@meyering.net>
129652         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
129654 2003-01-10  Bruno Haible  <bruno@clisp.org>
129656         * modules/alloca: Change Makefile.am requirements. Simplify Include
129657         requirements. Add lib/alloca_.h to file list.
129659 2003-01-10  Bruno Haible  <bruno@clisp.org>
129661         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
129663 2003-01-10  Bruno Haible  <bruno@clisp.org>
129665         * lib/alloca_.h: New file.
129666         * lib/getdate.y: Unconditionally include alloca.h.
129667         * lib/makepath.c: Likewise.
129668         * lib/setenv.c: Likewise.
129669         * lib/userspec.c: Likewise.
129671 2003-01-09  Karl Berry  <karl@gnu.org>
129673         * MODULES.html.sh: include `dirname $0` in PATH, to find
129674         gnulib-tool.
129676 2003-01-09  Bruno Haible  <bruno@clisp.org>
129678         * modules/stdbool: Change configure.ac, Makefile.am requirements.
129679         Simplify Include requirements. Add lib/stdbool.h.in to file list.
129681 2003-01-09  Bruno Haible  <bruno@clisp.org>
129683         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
129685 2003-01-09  Bruno Haible  <bruno@clisp.org>
129687         * lib/stdbool.h.in: New file.
129689 2003-01-09  Bruno Haible  <bruno@clisp.org>
129691         * gnulib-tool (func_all_modules): Ignore files ending in ~.
129692         * MODULES.html.sh: Likewise.
129694 2003-01-08  Jim Meyering  <jim@meyering.net>
129696         * lib/full-write.c: Undefine and define-away `const' after inclusion
129697         of errno.h, not before.  Suggestion from Bruno Haible.
129699 2003-01-08  Bruno Haible  <bruno@clisp.org>
129701         * modules/full-read: Depend on full-write.
129703 2003-01-08  Bruno Haible  <bruno@clisp.org>
129705         * lib/safe-read.c: Include specification header first, to ensure its
129706         selfcontainedness.
129707         * lib/full-write.c: Likewise.
129709 2003-01-07  Jim Meyering  <jim@meyering.net>
129711         * lib/full-write.c: Rework so that it may serve to define full_read,
129712         too.
129713         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
129715 2003-01-07  Bruno Haible  <bruno@clisp.org>
129717         * lib/strtoimax.c: Include <stdint.h> as an alternative to
129718         <inttypes.h>.
129719         * lib/xstrtol.h: Likewise.
129720         * lib/xstrtoimax.c: Likewise.
129721         * lib/xstrtoumax.c: Likewise.
129722         * lib/human.h: Likewise.
129724         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
129725         on systems that have <inttypes.h> but not <stdint.h>.
129727 2003-01-07  Bruno Haible  <bruno@clisp.org>
129729         * MODULES.html.sh: Add copyright notice.
129730         (missed_files): Omit CVS directory entries.
129731         (func_module): Make it work with sed-3.02.
129732         * MODULES.txt: Remove file.
129734 2003-01-06  Jim Meyering  <jim@meyering.net>
129736         * lib/version-etc.c: Update year in translatable copyright string.
129738 2003-01-03  Karl Berry  <karl@gnu.org>
129740         * config/config.{guess,sub}: update from prep.
129742 2003-01-02  Karl Berry  <karl@gnu.org>
129744         * doc/COPYING.DOC: belatedly updated to 1.2.
129746 2003-01-01  Karl Berry  <karl@gnu.org>
129748         * gnulib-tool (func_verify_module): report module name $module in
129749         error message, not $1.
129750         * gnulib-tool (create-testdir): don't complain if destdir couldn't
129751         be created, only if it doesn't exist.
129752         * gnulib-tool (last_checkin_date): don't expand the $Date here.
129754 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129756         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
129758 2002-12-31  Paul Eggert  <eggert@twinsun.com>
129760         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
129761         memcmp if strcoll doesn't work.
129763 2002-12-31  Bruno Haible  <bruno@clisp.org>
129765         * lib/utime.c (utime_null): No need to call ftruncate if the file was
129766         nonempty.
129768 2002-12-31  Bruno Haible  <bruno@clisp.org>
129770         * lib/memcoll.c (STRCOLL): New macro.
129771         (memcoll): Use it.
129773 2002-12-31  Bruno Haible  <bruno@clisp.org>
129775         * lib/localcharset.h: New file.
129776         * lib/localcharset.c: Include it.
129777         * lib/unicodeio.c: Likewise.
129779 2002-12-31  Bruno Haible  <bruno@clisp.org>
129781         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
129782         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
129784 2002-12-31  Bruno Haible  <bruno@clisp.org>
129786         * lib/getline.h: Include <stddef.h>, for size_t.
129788         * lib/unicodeio.h: Include <stddef.h>, for size_t.
129789         * lib/unicodeio.c: Don't include <stddef.h>.
129791 2002-12-31  Bruno Haible  <bruno@clisp.org>
129793         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
129794         HAVE_TM_ZONE.
129796 2002-12-24  Karl Berry  <karl@gnu.org>
129798         * config/config.guess: update from prep.
129800 2002-12-24  Bruno Haible  <bruno@clisp.org>
129802         General infrasructure.
129803         * m4/README: Rewritten.
129804         * m4/onceonly.m4: New file.
129805         * m4/onceonly_2_57.m4: New file.
129807         Module atexit.
129808         * m4/atexit.m4: New file.
129810         Module strtod.
129811         * m4/strtod.m4: New file.
129813         Module strtol.
129814         * m4/strtol.m4: New file.
129816         Module strtoul.
129817         * m4/strtoul.m4: New file.
129819         Module memchr.
129820         * m4/memchr.m4: New file.
129822         Module memcmp.
129823         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
129824         (jm_FUNC_MEMCMP): Invoke it.
129826         Module memcpy.
129827         * m4/memcpy.m4: New file.
129829         Module memmove.
129830         * m4/memmove.m4: New file.
129832         Module memset.
129833         * m4/memset.m4: New file.
129835         Module strcspn.
129836         * m4/strcspn.m4: New file.
129838         Module strpbrk.
129839         * m4/strpbrk.m4: New file.
129841         Module strstr.
129842         * m4/strstr.m4: New file.
129844         Module strerror.
129845         * m4/strerror.m4: New file.
129847         Module mktime.
129848         * m4/mktime.m4: Renamed from jm-mktime.m4.
129849         (gl_PREREQ_MKTIME): New macro.
129850         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
129852         Module malloc.
129853         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
129854         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
129855         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
129857         Module realloc.
129858         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
129859         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
129860         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
129862         Module strftime.
129863         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
129864         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
129865         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
129866         gl_TM_GMTOFF.
129867         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
129869         Module xalloc.
129870         * m4/xalloc.m4: New file.
129872         Module alloca.
129873         * m4/alloca.m4: New file.
129875         Module putenv.
129876         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
129877         (jm_FUNC_PUTENV): Invoke it.
129879         Module setenv.
129880         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
129881         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
129882         when invoked twice.
129883         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
129884         gt_FUNC_SETENV.
129886         Module memrchr.
129887         * m4/memrchr.m4: New file.
129889         Module stpcpy.
129890         * m4/stpcpy.m4: New file.
129892         Module strcase.
129893         * m4/strcase.m4: New file.
129895         Module strdup.
129896         * m4/strdup.m4: New file.
129898         Module strnlen.
129899         * m4/strnlen.m4: New file.
129901         Module strndup.
129902         * m4/strndup.m4: New file.
129904         Module xstrtod.
129905         * m4/xstrtod.m4: New file.
129907         Module xstrtol.
129908         * m4/xstrtol.m4: New file.
129910         Module getdate.
129911         * m4/getdate.m4: New file.
129913         Module unlocked-io.
129914         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
129915         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
129916         * m4/jm-glibc-io.m4n: Remove file.
129918         Module long-options.
129919         * m4/long-options.m4: New file.
129921         Module md5.
129922         * m4/md5.m4: New file.
129924         Module sha.
129925         * m4/sha.m4: New file.
129927         Module getstr.
129928         * m4/getstr.m4: New file.
129930         Module getline.
129931         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
129932         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
129933         <sys/types.h>, for size_t. Use the function name gnu_getline, not
129934         simply getline. Infoke gl_PREREQ_GETLINE.
129936         Module obstack.
129937         * m4/obstack.m4: New file.
129939         Module hash.
129940         * m4/hash.m4: New file.
129942         Module readtokens.
129943         * m4/readtokens.m4: New file.
129945         Module strverscmp.
129946         * m4/strverscmp.m4: New file.
129948         Module stdbool.
129949         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
129950         OSF/1.
129952         Module strtoll.
129953         * m4/strtoll.m4: New file.
129955         Module strtoull.
129956         * m4/strtoull.m4: New file.
129958         Module strtoimax.
129959         * m4/strtoimax.m4: New file.
129961         Module strtoumax.
129962         * m4/strtoumax.m4: New file.
129964         Module xstrtoimax.
129965         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
129966         jm_AC_PREREQ_XSTRTOIMAX.
129967         Moved the strtol prerequisites to strtol.m4.
129968         Moved the strtoll prerequisites to strtoll.m4.
129969         Moved the strtoimax prerequisites to strtoimax.m4.
129971         Module xstrtoumax.
129972         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
129973         jm_AC_PREREQ_XSTRTOUMAX.
129974         Moved the strtoul prerequisites to strtoul.m4.
129975         Moved the strtoull prerequisites to strtoull.m4.
129976         Moved the strtoumax prerequisites to strtoumax.m4.
129978         Module chown.
129979         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
129980         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
129982         Module dup2.
129983         * m4/dup2.m4: New file.
129985         Module ftruncate.
129986         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
129987         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
129989         Module getgroups.
129990         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
129991         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
129993         Module gettimeofday.
129994         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
129995         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
129996         gl_PREREQ_GETTIMEOFDAY.
129998         Module mkdir.
129999         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
130000         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
130002         Module mkstemp.
130003         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
130004         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
130005         jm_AC_TYPE_UINTMAX_T.
130006         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
130008         Module stat.
130009         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
130010         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
130012         Module lstat.
130013         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
130014         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
130016         Module timespec.
130017         * m4/timespec.m4 (gl_TIMESPEC): New macro.
130018         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
130019         * m4/st_mtim.m4: Indentation.
130021         Module nanosleep.
130022         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
130023         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
130024         gl_PREREQ_NANOSLEEP.
130026         Module regex.
130027         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
130028         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
130029         (gl_REGEX): New macro.
130031         Module rename.
130032         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
130033         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
130035         Module rmdir.
130036         * m4/rmdir.m4: New file.
130038         Module utime.
130039         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
130040         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
130041         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
130043         Module dirname.
130044         * m4/dirname.m4: New file.
130046         Module getopt.
130047         * m4/getopt.m4: New file.
130049         Module unistd-safer.
130050         * m4/unistd-safer.m4: New file.
130052         Module fnmatch.
130053         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
130054         declaration.
130055         (gl_PREREQ_FNMATCH_EXTRA): New macro.
130056         (gl_FUNC_FNMATCH_POSIX): New macro.
130057         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
130058         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
130059         simply fnmatch.
130061         Module exclude.
130062         * m4/exclude.m4: New file.
130064         Module human.
130065         * m4/human.m4: New file.
130067         Module acl.
130068         * m4/acl.m4: Nop.
130070         Module backupfile.
130071         * m4/backupfile.m4: New file.
130072         * m4/d-ino.m4: Indentation.
130074         Module fsusage.
130075         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
130076         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
130077         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
130079         Module dirfd.
130080         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
130081         requirements.
130083         Module euidaccess.
130084         * m4/euidaccess.m4: New file.
130086         Module file-type.
130087         * m4/file-type.m4: New file.
130089         Module fileblocks.
130090         * m4/fileblocks.m4: New file.
130092         Module filemode.
130093         * m4/filemode.m4: New file.
130095         Module isdir.
130096         * m4/isdir.m4: New file.
130098         Module lchown.
130099         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
130100         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
130102         Module makepath.
130103         * m4/makepath.m4: New file.
130105         Module modechange.
130106         * m4/modechange.m4: New file.
130108         Module mountlist.
130109         * m4/mountlist.m4: New file.
130110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
130111         Indentation.
130113         Module path-concat.
130114         * m4/path-concat.m4: New file.
130116         Module pathmax.
130117         * m4/pathmax.m4: New file.
130119         Module same.
130120         * m4/same.m4: New file.
130122         Module save-cwd.
130123         * m4/save-cwd.m4: New file.
130125         Module savedir.
130126         * m4/savedir.m4: New file.
130128         Module xgetcwd.
130129         * m4/xgetcwd.m4: New file.
130130         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
130132         Module xreadlink.
130133         * m4/xreadlink.m4: New file.
130135         Module safe-read.
130136         * m4/safe-read.m4: New file.
130138         Module safe-write.
130139         * m4/safe-write.m4: New file.
130141         Module closeout.
130142         * m4/closeout.m4: New file.
130144         Module stdio-safer.
130145         * m4/stdio-safer.m4: New file.
130147         Module getpass.
130148         * m4/getpass.m4: New file.
130150         Module getugroups.
130151         * m4/getugroups.m4: New file.
130153         Module group-member.
130154         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
130155         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
130157         Module idcache.
130158         * m4/idcache.m4: New file.
130160         Module userspec.
130161         * m4/userspec.m4: New file.
130163         Module gettime.
130164         * m4/clock_time.m4: New file.
130165         * m4/gettime.m4: New file.
130167         Module settime.
130168         * m4/settime.m4: New file.
130170         Module posixtm.
130171         * m4/posixtm.m4: New file.
130173         Module gethostname.
130174         * m4/gethostname.m4: New file.
130176         Module canon-host.
130177         * m4/canon-host.m4: New file.
130179         Module gettext.
130180         * m4/codeset.m4: New file, from gettext-0.11.5.
130181         * m4/gettext.m4: New file, from gettext-0.11.5.
130182         * m4/glibc21.m4: New file, from gettext-0.11.5.
130183         * m4/iconv.m4: New file, from gettext-0.11.5.
130184         * m4/intdiv0.m4: New file, from gettext-0.11.5.
130185         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
130186         * m4/inttypes.m4: New file, from gettext-0.11.5.
130187         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
130188         * m4/isc-posix.m4: New file, from gettext-0.11.5.
130189         * m4/lcmessage.m4: New file, from gettext-0.11.5.
130190         * m4/lib-ld.m4: New file, from gettext-0.11.5.
130191         * m4/lib-link.m4: New file, from gettext-0.11.5.
130192         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
130193         * m4/progtest.m4: New file, from gettext-0.11.5.
130194         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
130195         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
130196         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
130198         Module localcharset.
130199         * m4/localcharset.m4: New file.
130201         Module hard-locale.
130202         * m4/hard-locale.m4: New file.
130204         Module mbswidth.
130205         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
130206         onceonly macros.
130207         * m4/mbrtowc.m4: Add comment.
130209         Module memcasecmp.
130210         * m4/memcasecmp.m4: New file.
130212         Module memcoll.
130213         * m4/memcoll.m4: New file.
130215         Module unicodeio.
130216         * m4/unicodeio.m4: New file.
130218         Module rpmatch.
130219         * m4/rpmatch.m4: New file.
130221         Module yesno.
130222         * m4/yesno.m4: New file.
130224         Module exitfail.
130225         * m4/exitfail.m4: New file.
130227         Module c-stack.
130228         * m4/c-stack.m4 (gl_C_STACK): New macro.
130229         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
130231         Module error.
130232         * m4/error.m4 (gl_ERROR): New macro.
130233         (jm_PREREQ_ERROR): Use onceonly macros.
130235         Module fatal.
130236         * m4/fatal.m4: New file.
130238         Module getloadavg.
130239         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
130240         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
130242         Module getpagesize.
130243         * m4/getpagesize.m4: New file.
130245         Module getusershell.
130246         * m4/getusershell.m4: New file.
130248         Module physmem.
130249         * m4/physmem.m4: New file.
130251         Module posixver.
130252         * m4/posixver.m4: New file.
130254         Module quotearg.
130255         * m4/quotearg.m4: New file.
130257         Module quote.
130258         * m4/quote.m4: New file.
130260         Module readutmp.
130261         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
130263         Module sig2str.
130264         * m4/sig2str.m4: New file.
130266         Other.
130267         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
130268         ulonglong.m4.
130269         * m4/intmax_t.m4: New file.
130270         * m4/d-type.m4: Indentation.
130271         * m4/jm-macros.m4: Update.
130272         * m4/prereq.m4 (jm_PREREQ): Update.
130273         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
130274         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
130275         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
130276         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
130277         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
130278         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
130279         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
130280         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
130281         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
130282         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
130283         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
130284         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
130285         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
130286         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
130287         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
130288         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
130289         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
130290         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
130291         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
130293 2002-12-24  Bruno Haible  <bruno@clisp.org>
130295         * MODULES.txt: Update according to m4/ changes.
130297         Module gettext.
130298         * config.rpath: New file, from gettext-0.11.5.
130300         * modules/*: New module descriptions.
130301         * gnulib-tool: New file.
130302         * MODULES.html.sh: New file.
130304 2002-12-21  Karl Berry  <karl@gnu.org>
130306         * doc/fdl.texi: update to version 1.2.
130308 2002-12-19  Karl Berry  <karl@gnu.org>
130310         * config/config.guess: update from prep.
130312 2002-12-18  Bruno Haible  <bruno@clisp.org>
130314         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
130315         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
130317 2002-12-17  Bruno Haible  <bruno@clisp.org>
130319         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
130320         stdlib.h, string.h.
130322 2002-12-17  Bruno Haible  <bruno@clisp.org>
130324         * lib/canon-host.c (strdup): Remove unused declaration.
130326         * lib/fsusage.c: Include full_read.h.
130327         (get_fs_usage): Use full_read instead of safe_read.
130329         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
130331 2002-12-12  Karl Berry  <karl@gnu.org>
130333         * config/config.guess: update from prep.
130335 2002-12-11  Bruno Haible  <bruno@clisp.org>
130337         * m4/setenv.m4: New file, from gettext-0.11.5.
130339 2002-12-11  Bruno Haible  <bruno@clisp.org>
130341         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
130342         not unsetenv().
130343         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
130344         modifications:
130346         2002-12-11  Bruno Haible  <bruno@clisp.org>
130348                 * setenv.c (alloca): Fall back to malloc.
130349                 (freea): New macro.
130350                 (setenv): Use freea() to free memory allocated with alloca().
130352         2002-11-13  Bruno Haible  <bruno@clisp.org>
130354                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
130355                 function declarations.
130356                 * unsetenv.c (unsetenv): Likewise.
130358         2002-03-04  Bruno Haible  <bruno@clisp.org>
130360                 Portability to AIX 4.3.3.
130361                 * unsetenv.c: New file, extracted from setenv.c.
130362                 * setenv.c: Move the unsetenv() function to unsetenv.c.
130364         2001-12-20  Bruno Haible  <bruno@clisp.org>
130366                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
130367                 use malloc instead. For SunOS 4.
130369         2001-12-11  Bruno Haible  <bruno@clisp.org>
130371                 * setenv.c: Declare alloca.
130372                 (compar_fn_t): New typedef.
130373                 (KNOWN_VALUE, STORE_VALUE): Use it.
130375         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
130376         setenv.h.
130378 2002-12-10  Paul Eggert  <eggert@twinsun.com>
130380         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
130381         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
130382         Choose values that are less likely to collide with system fnmatch
130383         options.
130384         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
130385         defined (e.g., a pure POSIX system).
130386         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
130387         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
130389 2002-12-06  Paul Eggert  <eggert@twinsun.com>
130391         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
130392         a pain in practice to deal with generated m4 files.  This change
130393         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
130395         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
130396         and jm-glibc-io.m4, as they are no longer a special case.
130397         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
130398         kludge and the auto-generation stuff.  Check only whether the
130399         functions are declared, not whether they exist, since older hosts
130400         that don't declare the functions can't use the optimization anyway.
130402 2002-12-06  Jim Meyering  <jim@meyering.net>
130404         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
130406         Merge in changes from libc's misc/error.c, in preparation
130407         for the merge of gnulib's changes back into libc.
130409         * lib/error.c (_): Define only if not already defined.
130410         Move definition to follow all #include directives.
130411         Include unlocked-io.h only if !_LIBC.
130412         [_LIBC]: Include <libio/libioP.h>.
130413         [USE_IN_LIBIO]: Include <libio/iolibio.h>
130414         (fflush): Tweak definition to use INTUSE.
130415         (putc): Define.
130417 2002-12-05  Paul Eggert  <eggert@twinsun.com>
130419         * lib/alloca.c [defined emacs]: Include "lisp.h".
130420         (xalloc_die) [defined emacs]: New macro.
130421         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
130422         [! defined emacs]: Include <xalloc.h>.
130423         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
130424         (pointer): Typedef to POINTER_TYPE *.
130425         (malloc): Remove decl; we now always use xmalloc.
130426         (alloca): Use old-style definition, since Emacs needs this.
130427         Check for arithmetic overflow when computing combined size.
130429 2002-12-04  Paul Eggert  <eggert@twinsun.com>
130431         Do not generate unlocked-io.h automatically, since it's easier to
130432         maintain it by hand.
130434         * lib/unlocked-io.h: New file, from GNU diffutils,
130435         but with proper copyright notice and attribution.
130436         * lib/gen-uio: Remove.
130437         * lib/Makefile.am: Add copyright notice.
130438         (libfetish_a_SOURCES): Add unlocked-io.h.
130439         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
130440         (DISTCLEANFILES, io_functions): Remove macros.
130441         (EXTRA_DIST): Remove gen_uio.
130442         (unlocked-io.h): Remove rule.
130444 2002-12-04  Jim Meyering  <jim@meyering.net>
130446         Reflect the fact that stat.c and lstat.c are no longer generated.
130447         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
130448         (DISTCLEANFILES): Likewise.
130449         (EXTRA_DIST): Likewise.
130450         (all_local): Don't depend on stat.c or lstat.c.
130451         (stat.c, lstat.c): Remove rules.
130452         (EXTRA_DIST): Remove xstat.in.
130454         * lib/xstat.in: Remove file.  Contents moved into stat.c.
130455         * lib/stat.c: New file.  Contents mostly from xstat.in.
130456         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
130457         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
130459         * lib/safe-read.c: Rework so that it may serve to define safe_write,
130460         too.
130461         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
130463 2002-12-03  Jim Meyering  <jim@meyering.net>
130465         * lib/safe-read.c, safe-write.c: Change variable names and comments,
130466         but not semantics, to minimize the differences between these two files.
130467         (safe_read): Change comment to mention SAFE_READ_ERROR.
130469         * lib/safe-read.c (IS_EINTR): Define.
130470         (safe_read): Use IS_EINTR in place of in-function cpp directives.
130472 2002-12-02  Jim Meyering  <jim@meyering.net>
130474         * lib/safe-read.c (EINTR): Define.
130475         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
130476         (INT_MAX): Provide fallback.
130477         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
130479         * lib/safe-read.h (SAFE_READ_ERROR): Define.
130481 2002-12-02  Bruno Haible  <bruno@clisp.org>
130483         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
130484         Define, taken from safe-read.c.
130485         (INT_MAX): Provide fallback.
130486         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
130487         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
130489         * lib/safe-read.c (EINTR): Remove definition.
130490         (safe_read): Don't use EINTR if it is absent.
130492 2002-12-01  Jim Meyering  <jim@meyering.net>
130494         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
130495         zero.
130496         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
130498 2002-11-27  Paul Eggert  <eggert@twinsun.com>
130500         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
130501         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
130502         with `if (! (value < limit)) abort ();', for readability.
130504 2002-11-26  Karl Berry  <karl@gnu.org>
130506         * lib/strdup.c: copy from libc again, with jim's ok.
130507         * lib/.cppi-disable: re-add strdup.c
130509 2002-11-25  Karl Berry  <karl@gnu.org>
130511         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
130512         instead of "strtol.c".
130514 2002-11-25  Karl Berry  <karl@gnu.org>
130516         * config/install-sh: update from automake for variable quoting, $0 in
130517         error msgs, etc.
130519         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
130520         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
130521         entry.
130523 2002-11-25  Jim Meyering  <jim@meyering.net>
130525         * lib/mktime.c: Sync from libc, now that it has the latest fix.
130527 2002-11-24  Karl Berry  <karl@gnu.org>
130529         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
130530         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
130532 2002-11-24  Jim Meyering  <jim@meyering.net>
130534         Update from coreutils:
130536         * lib/mktime.c: Merge in changes from libc.
130538         Avoid a link-time failure on some Linux systems.
130539         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
130540         (otherwise).
130541         (__mon_yday): Declare with the STATIC attribute.
130542         (__mktime_internal): Likewise.
130543         Based on a report from Greg Schafer.
130545 2002-11-23  Jim Meyering  <jim@meyering.net>
130547         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
130548         Use `unsigned', not `int', as type of index.
130550         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
130552         * lib/fsusage.c: Remove unneeded parentheses around operands of
130553         `defined'.
130555 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130557         * lib/quotearg.h: Allow multiple inclusion by surrounding with
130558         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
130559         so that we can be included first.
130560         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
130561         * lib/quotearg.c: Include quotearg.h immediately after config.h.
130562         No need to include stddef.h or sys/types.h any more.
130563         Surround local include files with "", not "<>".
130564         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
130565         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
130566         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
130567         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
130568         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
130569         (ISPRINT): Remove; no longer needed now that we assume C89.
130571         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
130572         Preserve errno.
130574         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
130575         quotearg_char): Use SIZE_MAX rather than
130576         (size_t) -1 when we are talking about "infinity".
130578         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
130580 2002-11-22  Paul Eggert  <eggert@twinsun.com>
130582         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
130583         hint that one should use `if (! x) abort ();' rather than `assert
130584         (x);', and anyway it's one less thing to worry about configuring.
130585         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
130586         hash_rehash, hash_insert): Use abort rather than assert.
130588 2002-11-22  Bruno Haible  <bruno@clisp.org>
130590         * lib/safe-read.h: Assume C89. Add comments.
130591         (safe_read): Change return type to size_t.
130592         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
130593         byte counts > SSIZE_MAX correctly.
130594         * lib/safe-write.h: New file.
130595         * lib/safe-write.c: New file.
130596         * lib/full-read.h: New file.
130597         * lib/full-read.c: New file.
130598         * lib/full-write.h: Assume C89. Add comments.
130599         * lib/full-write.c: Include safe-write.h.
130600         (full_write): Rewritten to use safe_write.
130601         Suggested by Jim Meyering and Paul Eggert.
130603 2002-11-21  Jim Meyering  <jim@meyering.net>
130605         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
130607         Merge in changes from the coreutils.
130609         2002-09-25  Paul Eggert  <eggert@twinsun.com>
130610         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
130611         <stdint.h>.
130612         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
130613         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
130614         int.  Work more efficiently if X is the same width as uintmax_t.
130615         Do not compare X to -1, to avoid bogus compiler warning.
130616         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
130617         Don't assume that f_frsize and f_bsize are the same type.
130619         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
130620         warning on FreeBSD.
130622         * lib/makepath.c (make_path): Restore umask *before* creating the final
130623         component.
130624         (make_path): Minor reformatting.
130626         * lib/xmalloc.c: Adjust to work with new autoconf macros,
130627         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
130628         HAVE_MALLOC/HAVE_REALLOC.
130630         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
130631         dummy ones.  At least on GNU/Linux systems, `auto' means something
130632         else.
130633         From Michael Stone.
130635 2002-11-21  Bruno Haible  <bruno@clisp.org>
130637         Remove case insensitive option matching.
130638         * lib/argmatch.h (argcasematch): Remove declaration.
130639         (ARGCASEMATCH): Remove macro.
130640         (__xargmatch_internal): Remove case_sensitive argument.
130641         (XARGMATCH): Update.
130642         (XARGCASEMATCH): Remove macro.
130643         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
130644         case_sensitive argument.
130645         (argcasematch): Remove function.
130646         (__xargmatch_internal): Remove case_sensitive argument.
130647         (main): Use XARGMATCH instead of XARGCASEMATCH.
130649         * lib/xmalloc.c: Change compile-time error message. Add comment about
130650         required autoconf version.
130652 2002-11-20  Paul Eggert  <eggert@twinsun.com>
130654         Merge argmatch cleanups from Bison.  Assume C89.
130656         * lib/argmatch.c: Include config.h here, not in argmatch.h.
130657         Include stdlib.h, for EXIT_FAILURE.
130658         Always include <string.h>, since we assume C89.
130659         (EXIT_FAILURE): Remove pre-C89 bug workaround.
130660         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
130661         Include <stddef.h> instead, since it's all we need for size_t.
130662         (PARAMS): Remove.  All uses removed.
130663         (ARRAY_CARDINALITY): Do not bother to #undef.
130664         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
130665         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130666         Remove unnecessary parentheses.
130667         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
130668         Insert necessary parentheses.
130669         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
130670         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
130672 2002-11-19  Bruno Haible  <bruno@clisp.org>
130674         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
130675         * lib/mbswidth.h: Include <stddef.h>, for size_t.
130677         * lib/mbswidth.h (PARAMS): Remove macro.
130678         (mbswidth, mbsnwidth): Use ANSI C function declarations.
130679         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
130681         * lib/gcd.h (PARAMS): Remove macro.
130682         (gcd): Use ANSI C function declarations.
130683         * lib/gcd.c (gcd): Likewise.
130685 2002-11-15  Bruno Haible  <bruno@clisp.org>
130687         * lib/strcspn.c: Include <stddef.h>.
130688         (strcspn): Use ANSI C function declaration. Change return type to
130689         size_t. Use NULL.
130690         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
130691         (strpbrk): Use NULL.
130692         * lib/strpbrk.h (PARAMS): Remove macro.
130693         (strpbrk): Use ANSI C function declaration.
130694         * lib/strstr.c: Don't include <sys/types.h>.
130695         * lib/strstr.h (PARAMS): Remove macro.
130696         (strstr): Use ANSI C function declarations.
130698 2002-11-14  Karl Berry  <karl@gnu.org>
130700         * config/mkinstalldirs: `do' on separate line, instead of
130701         `for var; do'.
130703 2002-11-06  Bruno Haible  <bruno@clisp.org>
130705         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
130706         * lib/gcd.c (gcd): Likewise.
130708 2002-11-05  Bruno Haible  <bruno@clisp.org>
130710         * lib/gcd.h: New file, from gettext-0.11.5.
130711         * lib/gcd.c: New file, from gettext-0.11.5.
130713 2002-11-05  Bruno Haible  <bruno@clisp.org>
130715         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130716         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130717         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130718         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
130720         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
130721         <libintl.h>.
130722         * lib/makepath.c: Include gettext.h instead of <locale.h> and
130723         <libintl.h>.
130725         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
130726         * lib/human.c: Include gettext.h instead of <libintl.h>.
130727         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
130728         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
130729         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
130730         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
130731         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
130732         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
130733         (textdomain): Remove definition.
130734         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
130736         * lib/long-options.c: Remove include of <libintl.h> and definition of
130737         _.
130738         * lib/same.c: Remove include of <libintl.h> and definition of _.
130740 2002-11-04  Owen Taylor  <otaylor@redhat.com>
130742         * lib/config.charset: A few additions for Solaris.
130744 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130746         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
130747         * lib/localcharset.c (locale_charset): Declare as extern "C".
130749 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
130751         * lib/config.charset: msdos in uk_UA uses CP1125.
130753 2002-11-04  Bruno Haible  <bruno@clisp.org>
130755         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
130756         * lib/strcase.h: New file, from GNU gettext-0.11.5.
130757         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
130758         * lib/strstr.h: New file, from GNU gettext-0.11.5.
130759         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
130761 2002-11-04  Bruno Haible  <bruno@clisp.org>
130763         * lib/localcharset.c (locale_charset): Don't return an empty string.
130765 2002-11-04  Bruno Haible  <bruno@clisp.org>
130767         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
130768         aliases.
130770 2002-11-04  Bruno Haible  <bruno@clisp.org>
130772         * lib/config.charset: Update for newest glibc. Add canonical names
130773         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
130775 2002-11-04  Bruno Haible  <bruno@clisp.org>
130777         * lib/config.charset: Add support for NetBSD.
130779 2002-11-04  Bruno Haible  <bruno@clisp.org>
130781         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
130783 2002-11-01  Bruno Haible  <bruno@clisp.org>
130785         * configure.in: Add AC_CONFIG_AUX_DIR call.
130786         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
130787         test/Makefile.
130788         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
130790 2002-09-28  Karl Berry  <karl@gnu.org>
130792         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
130793         installed automake until the next release, since changes have been
130794         made.
130796 2002-09-25  Karl Berry  <karl@gnu.org>
130798         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
130799         * lib/getopt*: copy from libc/posix.
130800         * lib/gettext.h: copy from gettext.
130801         * lib/.cppi-disable: add strdup.c, gettext.h.
130803 2002-09-25  Karl Berry  <karl@gnu.org>
130805         * config/srclist.txt: enable gettext.h check.
130806         * config/config.{guess,sub}: update from prep.
130807         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
130808                 from automake 1.6.3.
130809         See srclist*.
130811 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
130813         * regex.c (PATFETCH): Remove the translating fetch.
130814         (PATFETCH_RAW): Rename to PATFETCH.
130815         (set_image_of_range): New fun.
130816         (SET_RANGE_TABLE_WORK_AREA): Use it.
130817         (regex_compile): Don't translate the pattern chars so eagerly.
130818         Only do it when inserting an `exactn' bytecode or when handling
130819         a char-range.
130820         (mutually_exclusive_p): Avoid empty statement.
130822 2002-07-06  Jim Meyering  <meyering@lucent.com>
130824         * m4/README: Don't mention Makefile.am.in.
130825         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
130827 2002-07-01  Jim Meyering  <meyering@lucent.com>
130829         * lib/c-stack.c: Include sys/time.h.
130830         From Volker Borchert.
130832 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130834         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
130836 2002-06-26  Paul Eggert  <eggert@twinsun.com>
130838         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
130839         New macro.  Use it uniformly instead of
130840         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
130841         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
130842         reported by Vin Shelton.
130844 2002-06-22  Paul Eggert  <eggert@twinsun.com>
130846         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
130847         Do not assume SA_SIGINFO behavior.
130848         Bug reported by Jim Meyering on NetBSD 1.5.2.
130850 2002-06-22  Jim Meyering  <meyering@lucent.com>
130852         * m4/c-stack.m4: New file, from diffutils-2.8.2.
130853         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
130855         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
130856         now that configure.ac uses AC_GNU_SOURCE.
130857         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
130858         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
130860         Update to latest tools.  Suggestions from Paul Eggert.
130861         * m4/stdbool.m4: New file, from diffutils-2.8.2.
130862         * m4/gnu-source.m4: Update from diffutils-2.8.2.
130863         * m4/fnmatch.m4: Likewise.
130864         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
130865         to AC_HEADER_STDBOOL
130867 2002-06-22  Jim Meyering  <meyering@lucent.com>
130869         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
130870         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
130872 2002-06-22  Jim Meyering  <meyering@lucent.com>
130874         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
130876         * lib/exitfail.c, exitfail.h: Likewise.
130877         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
130879         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
130880         of fnmatch.h.
130881         (EXTRA_DIST): Add fnmatch_loop.c.
130882         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
130884         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
130885         * lib/fnmatch.c: Update from diffutils-2.8.2.
130886         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
130887         * lib/fnmatch.h: Remove file.
130889 2002-06-21  Jim Meyering  <meyering@lucent.com>
130891         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
130892         * m4/mbrtowc.m4: Likewise.
130894         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
130895         * m4/mbswidth.m4: Reflect name change:
130896         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
130897         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
130899         * m4/lib-link.m4: Update from gettext-0.11.2.
130900         * m4/gettext.m4: Likewise.
130902         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
130903         From Alfred M. Szmidt.
130905 2002-06-18  Paul Eggert  <eggert@twinsun.com>
130907         * lib/file-type.h: Report an error if neither S_ISREG nor
130908         S_IFREG is defined, instead of using a test specific to glibc
130909         2.2.  This should be safe, since POSIX requires S_ISREG and
130910         Unix Version 7 had S_IFREG.  We don't need to check for
130911         <sys/types.h> since we don't use any symbols that it defines.
130913 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
130915         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
130916         $@-t, so that each temporary file name is unique and valid in the first
130917         8 characters, for operation under DOS.
130919 2002-06-15  Paul Eggert  <eggert@twinsun.com>
130921         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
130923 2002-06-15  Jim Meyering  <meyering@lucent.com>
130925         Work even with DJGPP 2.03, which lacks support for symlinks.
130926         From Richard Dawe.
130927         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
130928         is defined.
130929         * lib/lchown.c (S_ISLNK): Likewise.
130931 2002-06-15  Jim Meyering  <meyering@lucent.com>
130933         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
130934         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
130935         have been included before this file.
130937 2002-06-14  Jim Meyering  <meyering@lucent.com>
130939         * lib/file-type.h: Use the version from diffutils-2.8.2.
130940         * lib/file-type.c: Likewise.
130942 2002-06-07  Jim Meyering  <meyering@lucent.com>
130944         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
130945         They're needed at least for NetBSD 1.5.2.
130946         ($statxfs_includes): Include those same headers.
130947         ($statxfs_includes): Include sys/vfs.h if available.
130948         ($statxfs_includes): Likewise for sys/statvfs.h.
130949         Check for the following members in both structs statfs and statvfs:
130950         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
130952 2002-06-01  Jim Meyering  <meyering@lucent.com>
130954         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
130955         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
130957 2002-05-28  Jim Meyering  <meyering@lucent.com>
130959         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
130960         Reported by Volker Borchert.
130962 2002-05-27  Jim Meyering  <meyering@lucent.com>
130964         Fix a problem seen only on nonconforming systems whereby ls.c's
130965         use of localtime, and then of gettimeofday would cause trouble:
130966         the localtime call used to initialize rpl_gettimeofday's save
130967         mechanism would clobber ls's current local time information so
130968         that in any long listing the first file would always be listed
130969         with date 1970-01-01.  Analysis by Volker Borchert.
130971         * lib/gettimeofday.c (localtime): Undefine.
130972         (rpl_localtime): New function.
130974 2002-05-27  Jim Meyering  <meyering@lucent.com>
130976         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
130977         localtime.
130979         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
130980         use the replacement function; it wouldn't resolve at link time.
130981         Reported by Volker Borchert.
130983 2002-05-22  Jim Meyering  <meyering@lucent.com>
130985         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
130986         file-type.h.
130987         * lib/file-type.h: New file.
130988         * lib/file-type.c (file_type): New file/function.  Extracted from
130989         diffutils.
130991 2002-04-30  Jim Meyering  <meyering@lucent.com>
130993         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
130995 2002-04-29  Paul Eggert  <eggert@twinsun.com>
130997         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
130999 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131001         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
131002         Do not check for alloca.h (no longer used) or stdbool.h (was never
131003         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
131005 2002-04-29  Paul Eggert  <eggert@twinsun.com>
131007         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
131009 2002-04-29  Jim Meyering  <meyering@lucent.com>
131011         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
131012         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
131013         Use AC_FUNC_STRNLEN here instead.
131015         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
131016         With autoconf-2.53a, it's part of AC_PROG_CC.
131018 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131020         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
131021         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
131023 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131025         * lib/sig2str.h, lib/sig2str.c: New files.
131026         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
131028 2002-04-28  Paul Eggert  <eggert@twinsun.com>
131030         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
131031         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
131032         of 127, since 64 is the largest conceivable number for ancient
131033         nonstandard hosts.
131034         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
131036 2002-04-28  Jim Meyering  <meyering@lucent.com>
131038         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
131040 2002-04-24  Jim Meyering  <meyering@lucent.com>
131042         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
131043         (jm_PREREQ): Use it.
131045         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
131046         mach/mach.h fcntl.h.
131047         Check for this function: setlocale.
131049 2002-04-24  Jim Meyering  <meyering@lucent.com>
131051         * lib/gettext.h: New file, from Gettext.
131052         * lib/Makefile.am (INCLUDES): Remove -I../intl.
131053         (libfetish_a_SOURCES): Add gettext.h.
131055 2002-04-16  Jim Meyering  <meyering@lucent.com>
131057         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
131058         ut_pid, ut_id, ut_exit.
131060 2002-04-16  Jim Meyering  <meyering@lucent.com>
131062         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
131063         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
131064         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
131066 2002-04-12  Jim Meyering  <meyering@lucent.com>
131068         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
131069         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
131070         existence of the getmntinfo function.  Needed for Darwin 5.3.
131072         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
131073         This is necessary at least on Darwin 5.3.
131075         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
131076         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
131077         strnlen.o in the library, and that makes some versions of ranlib
131078         object.
131080 2002-04-12  Jim Meyering  <meyering@lucent.com>
131082         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
131084 2002-04-09  Jim Meyering  <meyering@lucent.com>
131086         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
131087         to be more precise.  Rather than saying we're checking whether the
131088         function `works', say what we're testing.
131089         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
131090         Reported by Bruno Haible.
131092 2002-03-10  Jim Meyering  <meyering@lucent.com>
131094         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
131095         Suggestion from Santiago Vila.
131097 2002-03-08  Jim Meyering  <meyering@lucent.com>
131099         * lib/rename.c: Mention that this wrapper is needed also on
131100         mips-dec-ultrix4.4 systems.
131102 2002-03-02  Jim Meyering  <meyering@lucent.com>
131104         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
131105         not HAVE_CLOCK_SETTIME.
131107 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131109         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
131110         Check for clock_settime.
131112 2002-02-27  Paul Eggert  <eggert@twinsun.com>
131114         * lib/nanosleep.h: Rename to....
131115         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
131117         * lib/gettime.c: New file.
131118         * lib/settime.c: New file.
131119         * lib/stime.c: Remove.
131121         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
131122         timespec.h.  Remove nanosleep.h.
131124 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131126         * m4/acl.m4: New file.
131127         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
131128         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
131130 2002-02-25  Paul Eggert  <eggert@twinsun.com>
131132         * lib/acl.c, lib/acl.h: New files.
131133         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
131135 2002-02-24  Jim Meyering  <meyering@lucent.com>
131137         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
131138         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
131139         cause trouble.  Reported by Nelson Beebe.
131141 2002-02-23  Paul Eggert  <eggert@twinsun.com>
131143         * lib/path-concat.c (xpath_concat): Reorder code to pacify
131144         compilers that don't know that xalloc_die never returns.
131146 2002-02-20  Jim Meyering  <meyering@lucent.com>
131148         * lib/getdate.c: Regenerate using bison-1.33.
131150 2002-02-17  Jim Meyering  <meyering@lucent.com>
131152         * config/config.guess (main): Don't use `head -1'; it's no longer
131153         portable. Use `sed 1q' instead.
131155 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
131157         * m4/codeset.m4: Upgrade to gettext-0.11.
131158         * m4/gettext.m4: Upgrade to gettext-0.11.
131159         * m4/glibc21.m4: Upgrade to gettext-0.11.
131160         * m4/iconv.m4: Upgrade to gettext-0.11.
131161         * m4/isc-posix.m4: Upgrade to gettext-0.11.
131162         * m4/lcmessage.m4: Upgrade to gettext-0.11.
131163         * m4/lib-ld.m4: New file, from gettext-0.11.
131164         * m4/lib-link.m4: New file, from gettext-0.11.
131165         * m4/lib-prefix.m4: New file, from gettext-0.11.
131166         * m4/progtest.m4: Upgrade to gettext-0.11.
131168 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131170         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
131171         (jm_PREREQ): Use it.
131173 2002-02-15  Paul Eggert  <eggert@twinsun.com>
131175         * lib/posixver.c, lib/posixver.h: New files.
131176         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131178 2002-02-02  Paul Eggert  <eggert@twinsun.com>
131179             Bruno Haible  <bruno@clisp.org>
131181         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
131182         (fwrite_success_callback): New declaration.
131183         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
131184         print_unicode_char. Call failure callback instead of error.
131185         (fwrite_success_callback): New function.
131186         (exit_failure_callback): New function.
131187         (fallback_failure_callback): New function.
131188         (print_unicode_char): Call unicode_to_mb.
131190 2002-01-26  Jim Meyering  <meyering@lucent.com>
131192         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
131193         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
131195 2002-01-26  Jim Meyering  <meyering@lucent.com>
131197         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
131199 2002-01-22  Paul Eggert  <eggert@twinsun.com>
131201         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
131203 2002-01-22  Jim Meyering  <meyering@lucent.com>
131205         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
131206         Otherwise, some versions of automake would omit the rule that makes
131207         Makefile from Makefile.in.
131209 2002-01-21  Paul Eggert  <eggert@twinsun.com>
131211         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
131212         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
131213         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
131214         (memcoll): Set errno to zero if there is no error.
131216         * lib/quotearg.c (quotearg_buffer_restyled):
131217         Fix bug with quoting buffers containing NUL when backslashing escapes.
131218         This bug was exposed by the other changes in this patch.
131219         (quotearg_n_options): New arg ARGSIZE.
131220         All callers changed.
131221         (quoting_options_from_style): New function.
131222         (quotearg_n_style): Use it.
131223         (quotearg_n_style_mem): New function.
131225         * lib/quotearg.h (quotearg_n_style_mem): New function.
131227 2002-01-19  Jim Meyering  <meyering@lucent.com>
131229         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
131230         Remove useless quotes: DF_PROG="df".
131231         * m4/strnlen.m4: New file.
131233 2002-01-16  Paul Eggert  <eggert@twinsun.com>
131235         * lib/backupfile.c (ISDIGIT): Comment fix.
131236         * lib/getdate.y (ISDIGIT): Likewise.
131237         * lib/posixtm.c (ISDIGIT, year): Likewise.
131238         * lib/strverscmp.c (ISDIGIT): Likewise.
131239         * lib/userspec.c (ISDIGIT): Likewise.
131241 2002-01-16  Jim Meyering  <meyering@lucent.com>
131243         * lib/getdate.y: Add three semicolons, each just before a closing
131244         brace. Bison (as of version 1.31) no longer papers over that mistake.
131246 2002-01-05  Jim Meyering  <meyering@lucent.com>
131248         * lib/version-etc.c (version_etc_copyright): Update copyright year.
131250 2001-12-19  Paul Eggert  <eggert@twinsun.com>
131252         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
131253         not silently exit merely because the output buffer happens to
131254         have nothing pending.
131256 2001-12-18  Paul Eggert  <eggert@twinsun.com>
131258         See the big note in ../ChangeLog.
131259         * lib/human.c (suffixes): Prefer K to k for 1024.
131260         (generate_suffix_backwards): New function.
131261         (human_readable_inexact): Use it.
131262         * lib/xstrtol.c (__xstrtol): If there is no number but there
131263         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
131264         Accept 'K' as well as 'k'.
131266 2001-12-15  Jim Meyering  <meyering@lucent.com>
131268         * lib/regex.h (__restrict_arr): Update from libc.
131270         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
131271         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
131272         (STREQ): Define.
131274 2001-12-14  Jim Meyering  <meyering@lucent.com>
131276         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
131277         Suggestion from Bruno Haible.
131279 2001-12-10  Jim Meyering  <meyering@lucent.com>
131281         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
131282         xrealloc, Instead, include "xalloc.h".
131283         (initbuffer): Don't cast xmalloc return value to char*.
131284         (readline): Reword comment.
131285         Don't cast xrealloc return value to char*
131286         Return NULL, not 0.
131288 2001-12-09  Jim Meyering  <meyering@lucent.com>
131290         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
131291         about `signed and unsigned type in conditional expression'.
131292         * lib/posixtm.c (posix_time_parse): Likewise.
131294         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
131296         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
131297         to avoid a pedantic warning.
131299         * lib/getstr.c: Don't include assert.h.
131300         (getstr): Remove warning-evoking assertions.
131301         Return -1 if offset parameter is out of bounds.
131302         Change the type of a local from int to size_t.
131304         * lib/strftime.c (my_strftime_localtime_r): Include this function
131305         definition in the `#if ! HAVE_TM_GMTOFF' block.
131307         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
131308         Include xalloc.h instead.
131310 2001-12-02  Jim Meyering  <meyering@lucent.com>
131312         * lib/tempname.c: Don't declare getenv, thus reverting the change of
131313         2001-11-18.  It's no longer necessary, now that stdlib.h is always
131314         included.
131316         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
131317         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
131319 2001-11-30  Akim Demaille  <akim@epita.fr>
131321         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
131322         before being defined.
131324 2001-11-27  Paul Eggert  <eggert@twinsun.com>
131326         * lib/quotearg.h (quotearg_n, quotearg_n_style):
131327         First arg is int, not unsigned.
131328         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
131329         (SIZE_MAX, UINT_MAX): New macros.
131330         (quotearg_n_options): Abort if N is negative.
131331         Avoid overflow check on hosts where size_t is 64 bits and int
131332         is 32 bits, as overflow is impossible there.
131333         Fix off-by-one typo that caused unnecessary reallocation.
131335 2001-11-27  Jim Meyering  <meyering@lucent.com>
131337         * lib/tempname.c: Merge with version from libc.
131338         * lib/regex.c: Likewise.
131340         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
131341         systems for which STDC_HEADERS is 0, it was not included, resulting in
131342         a warning about an integer-to-pointer conversion problem with getenv.
131343         Reported by Volker Borchert.
131345 2001-11-26  Jim Meyering  <meyering@lucent.com>
131347         * lib/gtod.h: Remove file.
131348         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
131349         * lib/gettimeofday.c: Don't include gtod.h.
131350         (GTOD_init): Remove function.
131351         (rpl_gettimeofday): Do its job here instead, rather than aborting.
131352         Suggestion from Volker Borchert.
131354 2001-11-23  Jim Meyering  <meyering@lucent.com>
131356         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
131357         it.
131358         * lib/hash.c (struct hash_table): Define it here instead.
131360 2001-11-22  Jim Meyering  <meyering@lucent.com>
131362         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
131364 2001-11-20  Jim Meyering  <meyering@lucent.com>
131366         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
131367         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
131369 2001-11-19  Jim Meyering  <meyering@lucent.com>
131371         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
131372         directory.  Use "conftestXXXXXX" as the template.
131373         Suggestion from Paul Eggert.
131375         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
131376         immediately, so the test doesn't mistakenly hit the max-open-files
131377         limit.
131379 2001-11-18  Paul Eggert  <eggert@twinsun.com>
131381         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
131382         (TEMPORARIES): New macro.
131383         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
131384         removes an artificial limitation (e.g. HP-UX 10.20, where
131385         TMP_MAX is 17576).
131387 2001-11-18  Jim Meyering  <meyering@lucent.com>
131389         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
131391 2001-11-18  Jim Meyering  <meyering@lucent.com>
131393         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
131394         on SunOS 4.
131396         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
131397         files will be created before anything else.
131399 2001-11-17  Paul Eggert  <eggert@twinsun.com>
131401         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
131402         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
131404 2001-11-17  Jim Meyering  <meyering@lucent.com>
131406         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
131407         Prompted by a report from Bob Proulx.
131409         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
131410         Instead, require UTILS_FUNC_MKSTEMP.
131412 2001-11-17  Jim Meyering  <meyering@lucent.com>
131414         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
131415         Now, that's done as part of AC_FUNC_STRTOD.
131417 2001-11-17  Jim Meyering  <meyering@lucent.com>
131419         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
131420         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
131421         rather than group writable.  Patch by Juan F. Codagnone.
131423         * lib/readtokens.c: Remove explicit declarations of xmalloc and
131424         xrealloc, Instead, include "xalloc.h".
131426         * lib/mountlist.c: Include unlocked-io.h after all system headers.
131427         Remove explicit declarations of xmalloc, xrealloc,
131428         and xstrdup.  Instead, include "xalloc.h".
131430         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
131431         unlocked-io.h.
131432         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
131433         Likewise.
131434         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
131436         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
131437         Reported by Padraig Brady.
131439         * lib/mkstemp.c: #undef mkstemp.
131440         Include config.h.
131441         (rpl_mkstemp): Rename from mkstemp.
131442         Protoize.
131444 2001-11-16  Jim Meyering  <meyering@lucent.com>
131446         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
131447         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
131448         determine the amount of total physical memory, use pstat_getstatic.
131449         HPUX-11 doesn't define _SC_PHYS_PAGES.
131450         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
131451         If sysconf couldn't be used to determine the amount of available
131452         physical memory, use both pstat_getstatic and pstat_getdynamic.
131453         Based on a patch from Bob Proulx.
131455 2001-11-10  Jim Meyering  <meyering@lucent.com>
131457         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
131458         (jm_PREREQ): Use it.
131460 2001-11-09  Jim Meyering  <meyering@lucent.com>
131462         * m4/jm-macros.m4: Require autoconf-2.52f.
131463         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
131464         Use these AC_-prefixed names, not the AM_-prefixed ones.
131466         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
131468 2001-11-05  Jim Meyering  <meyering@lucent.com>
131470         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
131472 2001-11-04  Jim Meyering  <meyering@lucent.com>
131474         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
131475         $DEFS.
131477 2001-11-03  Jim Meyering  <meyering@lucent.com>
131479         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
131480         of AC_DEFUN.
131482         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
131483         know the name of the variable in the macro definition.
131485 2001-11-03  Jim Meyering  <meyering@lucent.com>
131487         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
131488         in argmatch_to_argument call.
131490         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
131491         argument.
131493         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
131494         e.g., a fault due to an attempt to free a NULL pointer.
131496 2001-11-01  Jim Meyering  <meyering@lucent.com>
131498         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
131499         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
131501 2001-11-01  Jim Meyering  <meyering@lucent.com>
131503         * lib/dirfd.c, lib/dirfd.h: New files.
131504         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
131506         * lib/hash.c (hash_print) [TESTING]: Clean up.
131508 2001-10-22  Paul Eggert  <eggert@twinsun.com>
131510         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
131511         to avoid a warning if -Wall.
131513 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
131515         * README: New file
131516         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
131517         (per RMS's instructions, this is now the canonical source)
131518         * lgpl/, gpl/: New directories.
131520 2001-10-21  Paul Eggert  <eggert@twinsun.com>
131522         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
131524 2001-10-21  Jim Meyering  <meyering@lucent.com>
131526         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
131527         this code would end up calling gettext even in packages built
131528         with --disable-nls.
131529         * lib/getopt.c (_): Likewise.
131530         * lib/regex.c (_): Likewise.
131532 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131534         * m4/error.m4 (jm_PREREQ_ERROR):
131535         Do not invoke AC_CHECK_FUNCS with strerror_r, as
131536         AC_FUNC_STRERROR_R does that.
131537         Check for strerror declaration.
131539         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
131540         are supposed to have them these days.
131541         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
131542         Merge changes from latest Autoconf CVS.
131543         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
131544         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
131545         POSIX decided to standardize on the int flavor of strerror_r.
131547 2001-10-20  Paul Eggert  <eggert@twinsun.com>
131549         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
131550         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
131551         Use strerror_r that is only a macro, even if it is not a function.
131552         (strerror): Check for HAVE_DECL_STRERROR before declaring.
131553         (private_strerror): Use prototypes, not old-style function definition.
131554         (print_errno_message): New function.
131555         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
131556         char*-flavored one.
131557         (error_tail, error, error_at_line): Use it.
131559 2001-10-11  Jim Meyering  <meyering@lucent.com>
131561         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
131562         and quote_n (1, ... to avoid clobbering a buffer.
131564 2001-10-05  Jim Meyering  <meyering@lucent.com>
131566         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
131567         hash-pjw.h.
131568         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
131569         * lib/hash-pjw.h: New file.
131571 2001-09-30  Jim Meyering  <meyering@lucent.com>
131573         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
131574         `struct fsstat' has the `f_fstypename' member.
131575         Use that to define FS_TYPE, which is now used to make
131576         the getfsstat link test tighter.
131578 2001-09-30  Jim Meyering  <meyering@lucent.com>
131580         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
131581         Include <sys/ucred.h>, for Apple Darwin.
131582         Include sys/mount.h and sys/fs_types.h only if available.
131583         (FS_TYPE): Define.
131584         (read_filesystem_list): Use FS_TYPE.
131586 2001-09-29  Paul Eggert  <eggert@twinsun.com>
131588         * lib/exclude.c (excluded_filename): 0 -> false, since it's
131589         a boolean context.
131591 2001-09-29  Jim Meyering  <meyering@lucent.com>
131593         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131594         [one-argument getmntent function]): Include stdio.h before mntent.h.
131595         SunOS 4.1.x needs it for the declaration of `FILE'.
131596         Patch by Volker Borchert.
131598         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
131599         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
131600         sys/fs_types.h, and make the link-test for getfsstat guard #include
131601         directives with appropriate #if HAVE_*_H tests so that we can
131602         detect getfsstat on Apple Darwin1.3.7 systems.
131603         Reported by Nelson Beebe.
131604         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
131606 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131608         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131609         #defines strtoimax.  Also treat the other strto* functions
131610         like strtoimax.
131612         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131613         Check for strtoul and strtoumax,
131614         as those declarations are made even in the signed case.
131615         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
131616         Likewise, for strtol and strtoimax.
131618 2001-09-28  Paul Eggert  <eggert@twinsun.com>
131620         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
131621         #defines strtoimax.  Also treat the other strto* functions
131622         like strtoimax.
131624         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
131625         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
131626         (strtoimax, strtoumax): Do not declare if already defined as a macro.
131628 2001-09-26  Jim Meyering  <meyering@lucent.com>
131630         Most macros in unlocked-io.h had the wrong number of arguments.
131631         * lib/gen-uio: New script.
131632         (USE_UNLOCKED_IO): Define to 1 if not already defined.
131633         * lib/unlocked-io.hin: Remove file.
131634         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
131635         rather than trying to embed it here.
131636         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
131637         Reported by Padraig Brady.
131639 2001-09-25  Volker Borchert  <bt@teknon.de>
131641         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
131642         `result'.
131644 2001-09-24  Jim Meyering  <meyering@lucent.com>
131646         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
131648 2001-09-23  Jim Meyering  <meyering@lucent.com>
131650         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
131651         instead of the mere test for existence of mntent.h.  The latter
131652         would get a false-positive on AIX 3.4 systems.
131653         In the outer getmntent if-block, don't die if neither of the getmntent
131654         tests succeeds.  Instead, just fall through and continue with the
131655         remaining tests.
131657 2001-09-23  Jim Meyering  <meyering@lucent.com>
131659         * lib/mountlist.c: Remove useless parentheses in #if directives.
131660         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
131661         the deprecated MOUNTED symbol is no longer defined in mntent.h.
131663 2001-09-22  Jim Meyering  <meyering@lucent.com>
131665         * m4/gettext.m4: New file.  From gettext.
131666         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
131667         * m4/progtest.m4: Likewise
131668         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
131669         * m4/glibc21.m4: Likewise.
131671         * m4/libintl.m4: Remove.  No longer used.
131673 2001-09-22  Jim Meyering  <meyering@lucent.com>
131675         * lib/localcharset.c: Update from latest gettext.
131676         * lib/config.charset: Likewise.
131678 2001-09-20  Jim Meyering  <meyering@lucent.com>
131680         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
131681         strtoimax.
131682         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
131683         strtoumax.
131685 2001-09-20  Jim Meyering  <meyering@lucent.com>
131687         * lib/xstrtol.c (strtoimax): Guard declaration with
131688         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
131689         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
131690         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
131691         (strtoumax): Likewise, for completeness (it wasn't necessary).
131693 2001-09-17  Paul Eggert  <eggert@twinsun.com>
131695         * lib/strtoimax.c (HAVE_LONG_LONG):
131696         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
131697         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
131698         to work around bug in IBM C compiler.
131700 2001-09-17  Jim Meyering  <meyering@lucent.com>
131702         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
131703         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
131704         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
131705         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
131706         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
131707         whenever the right hand side need not be expanded by the shell.
131709 2001-09-16  Paul Eggert  <eggert@twinsun.com>
131711         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
131712         library.  It's not correct, as some older glibcs are buggy.
131713         fnmatch wasn't fixed until glibc 2.2.
131715         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
131716         special shell magic here.
131718 2001-09-16  Jim Meyering  <meyering@lucent.com>
131720         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
131721         * m4/jm-macros.m4: Require it.
131723 2001-09-16  Jim Meyering  <meyering@lucent.com>
131725         * lib/mkdir.c: New file.
131727 2001-09-15  Jim Meyering  <meyering@lucent.com>
131729         * m4/jm-macros.m4: Check for help2man.
131731 2001-09-11  Jim Meyering  <meyering@lucent.com>
131733         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
131734         The body, by Paul Eggert, was moved here from configure.in.
131735         * m4/jm-macros.m4: Require UTILS_HOST_OS.
131737 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131739         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
131740         (jm_PREREQ): Use it.
131742 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131744         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
131745         Use ssize_t, not int, to store result of readlink.
131746         Check for ssize_t overflow as well as size_t overflow,
131747         as POSIX says the result of readlink is implementation-defined
131748         when ssize_t overflows.
131749         Remove unnecessary cast to char*.
131750         Use free+malloc instead of realloc, as the storage doesn't need
131751         to be preserved and it's clearer and can be more efficient that way.
131752         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
131753         * lib/xreadlink.h (xreadlink): Update prototype.
131755 2001-09-04  Paul Eggert  <eggert@twinsun.com>
131757         * lib/xgetcwd.c: Revert some of the previous change; intead,
131758         fix the HAVE_GETCWD_NULL code to behave more like the
131759         !HAVE_GETCWD_NULL code used to.
131761         Include "xalloc.h".
131762         (xgetcwd): Do not return NULL when memory is exhausted; instead,
131763         invoke xalloc_die.
131765 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131767         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
131768         sys/param.h, as pathmax.h includes them.
131770 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131772         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
131773         (jm_PREREQ_XGETCWD): New macro.
131775         * m4/getcwd.m4: New file.
131777 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131779         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
131780         like the HAVE_GETCWD_NULL code.
131781         Include pathmax.h if not HAVE_GETCWD.
131782         Do not include xalloc.h.
131783         (INITIAL_BUFFER_SIZE): New symbol.
131784         Do not use xmalloc / xrealloc, since the caller is responsible for
131785         handling errors.  Preserve errno around `free' during failure.
131786         Do not overrun buffer when using getwd.
131788 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131790         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
131791         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
131792         getcwd (NULL, 0).
131794 2001-09-03  Paul Eggert  <eggert@twinsun.com>
131796         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
131797         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
131798         spotted by Jim Meyering.
131800 2001-09-03  Jim Meyering  <meyering@lucent.com>
131802         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
131803         failure.
131805 2001-09-02  Jim Meyering  <meyering@lucent.com>
131807         * lib/error.c: Update from GNU libc.
131809 2001-09-01  Jim Meyering  <meyering@lucent.com>
131811         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
131812         Used by df.
131814 2001-09-01  Jim Meyering  <meyering@lucent.com>
131816         * lib/xreadlink.c: New file.
131817         * lib/xreadlink.h: New file.
131818         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
131819         xreadlink.h.
131821         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
131822         doesn't conflict with sparc Solaris 7's definition in
131823         /usr/include/sys/int_types.h.
131825         * lib/exclude.c: Use `""', not `<>' to #include non-system header
131826         files.
131827         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
131828         and strncasecmp as r-values.  Unixware didn't have declarations.
131830 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131832         * lib/xstrtol.h: Add copyright notice.
131833         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
131834         LONGINT_INVALID_SUFFIX_CHAR.
131836 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131838         * lib/xstrtol.c (strtoimax): New decl.
131840 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131842         * lib/xgetcwd.c: Don't include pathmax.h.
131843         Include stdlib.h and unistd.h if available.
131844         Include xalloc.h.
131845         (xmalloc, xstrdup, free): Remove decls.
131846         (xgetcwd): Don't assume sizes fit in unsigned.
131847         Check for overflow when computing sizes.
131848         Simplify reallocation code.
131850 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131852         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
131853         a directory's st_size can have an arbitrary value, so the old
131854         usage could waste an arbitrary amount of memory.  All uses
131855         changed.
131856         * lib/savedir.h: Update prototype.
131858 2001-08-31  Paul Eggert  <eggert@twinsun.com>
131860         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
131862         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
131863         old strtoimax.c.
131865         Also, make the following further changes to make this file's
131866         configuration more similar to that of strtol.c:
131867         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
131868         (strtoumax, uintmax_t, strtoull, strtol): Remove.
131869         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
131870         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
131871         changed to signed values.
131873         And make the following changes as well:
131874         Fix copyright notice, as 1999 was missing.
131875         (verify): New macro.
131876         (strtoimax): Check sizes at compile-time, not run-time.
131877         Prefer strtol to strtoll if both work.
131878         (main): Remove; it was not that useful and was a pain to maintain.
131880         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
131882 2001-08-31  Jim Meyering  <meyering@lucent.com>
131884         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
131885         Use an initial, malloc'd, buffer of length 128 rather than
131886         a statically allocated one of length 1024.
131888 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131890         Simplify code, partly by assuming autoconf 2.52 semantics.
131892         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
131894         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
131895         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
131896         All uses removed.
131897         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
131898         Move AC_REQUIRE to next-to-top level, to avoid confusion.
131899         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
131900         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
131901         jm_AC_HEADER_INTTYPES_H.
131902         * m4/jm-macros.m4 (jm_MACROS): Likewise.
131904         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
131906         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
131907         Quote first arg of AC_DEFUN.
131908         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
131909         since they are needed to parse the include file even if we need
131910         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
131911         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
131912         but with opposite signedness.
131914 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131916         Merge 'exclude' changes from tar 1.13.22.
131917         This fixes one or two unlikely storage allocation overflow bugs,
131918         but doesn't change user-visible behavior otherwise.
131920 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131922         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
131923         (jm_PREREQ_EXCLUDE): New macro.
131925 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131927         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
131928         tm to be declared.
131930 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131932         * lib/hash.c: Remove '2001' from copyright notice.
131934 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131936         * lib/full-write.h: New file.
131937         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
131938         * lib/full-write.c: Correct credits, as cccp.c no longer
131939         exists and anyway it was so heavily changed from the old cccp
131940         code as to be unrecognizable.  Include full-write.h.
131941         (full_write): Return size_t, with short writes meaning failure.
131942         All callers changed.  This fixes a bug with large buffers
131943         on 64-bit hosts.
131944         * lib/utime.c: Include full-write.h.
131946 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131948         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
131949         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
131950         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
131951         Include if available.
131952         (<xalloc.h>): Include
131953         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
131954         (verify): New macro.  Use it to verify that EXCLUDE macros do not
131955         collide with FNM macros.
131956         (struct patopts): New struct.
131957         (struct exclude): Use it, as exclude patterns now come with options.
131958         (new_exclude): Support above changes.
131959         (new_exclude, add_exclude_file):
131960         Initial size must now be a power of two to simplify overflow checking.
131961         (free_exclude, fnmatch_no_wildcards): New function.
131962         (excluded_filename): No longer requires options arg, as the options
131963         are determined by add_exclude.  Now returns bool, not int.
131964         (excluded_filename, add_exclude):
131965         Add support for the fancy new exclusion options.
131966         (add_exclude, add_exclude_file): Now takes int options arg.
131967         Check for arithmetic overflow when computing sizes.
131968         (add_exclude_file): xrealloc might modify errno, so don't
131969         realloc until after errno might be used.
131971         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
131972         New macros.
131973         (free_exclude): New decl.
131974         (add_exclude, add_exclude_file): Now takes int options arg.
131975         (excluded_filename): No longer requires options arg, as the options
131976         are determined by add_exclude.  Now returns bool, not int.
131978 2001-08-30  Paul Eggert  <eggert@twinsun.com>
131980         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
131982 2001-08-27  Jim Meyering  <meyering@lucent.com>
131984         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
131986         * lib/version-etc.c (N_): Remove definition.
131987         Revert most of last change.
131988         Instead, simply don't mark the `Copyright...' string for translation.
131989         Based on advice from Paul Eggert.
131991         * lib/strtoxmax.c: Tweak comment.
131993 2001-08-26  Jim Meyering  <meyering@lucent.com>
131995         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
131997         * m4/xstrtoimax.m4: New file.
131998         * m4/xstrtoumax.m4: Add comments explaining why we
131999         AC_REPLACE_FUNCS(strtol).
132001 2001-08-26  Jim Meyering  <meyering@lucent.com>
132003         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
132004         of copyright with `%s' so translators don't get an untranslated
132005         message in 2002.
132006         (COPYRIGHT_YEAR): Define.
132007         (version_etc): Use fprintf rather than fputs.
132008         Suggestion from Ulrich Drepper.
132010         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
132012         * lib/strtoll.c: New file, from GNU libc.
132013         * lib/xstrtoimax.c: New file.
132015         * lib/xstrtol.h: Add xstrtoimax.
132016         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
132017         * lib/strtoimax.c: New file.  Likewise, but first define
132018         STRTOUXMAX_SIGNED.
132020         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
132021         ...
132022         * lib/strtoxmax.c: ... then renamed to this.
132024 2001-08-18  Paul Eggert  <eggert@twinsun.com>
132026         * m4/inttypes.m4: Add AC_PREREQ(2.13).
132027         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
132028         (jm_AC_TYPE_INTMAX_T): New macro.
132029         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
132031         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
132033         * m4/longlong.m4: Renamed from ulonglong.m4.
132034         * m4/inttypes.m4: Renamed from inttypes_h.m4.
132035         * m4/uintmax_t.m4: Removed.
132037 2001-08-13  Paul Eggert  <eggert@twinsun.com>
132039         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
132040         Port to Solaris 8, where 'sed' requires a space after the 'r'
132041         command, and where sh dislikes "$/".  Clean up the spacing a bit.
132042         Redirect output to $tmp just once.
132044 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
132046         * lib/addext.c (<errno.h>): Include.
132047         (errno): Declare if not defined.
132048         (addext): Work correctly when pathconf returns -1 and leaves
132049         errno alone because there is no limit.  Also, work even if
132050         pathconf returns a value greater than SIZE_MAX.
132052 2001-08-12  Jim Meyering  <meyering@lucent.com>
132054         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
132055         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
132056         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
132057         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
132058         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
132059         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
132060         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
132061         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
132062         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
132063         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
132064         utime.m4, utimes.m4, xstrtoumax.m4:
132065         Quote the first argument in each use of AC_DEFUN.
132067 2001-08-12  Jim Meyering  <meyering@lucent.com>
132069         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
132070         Simply `return getcwd (NULL, 0);'.
132071         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
132072         Use 1300 as initial value for length, not PATH_MAX.
132074         * lib/pathmax.h: Clean up cpp syntax.
132076 2001-08-12  Jim Meyering  <meyering@lucent.com>
132078         * lib/gettimeofday.c: New file.
132079         * lib/gtod.h: New file.
132080         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
132082 2001-08-05  Jim Meyering  <meyering@lucent.com>
132084         * m4/jm-macros.m4: Require autoconf-2.52.
132086 2001-08-04  Jim Meyering  <meyering@lucent.com>
132088         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
132089         stmt, to get in sync with glibc.
132091 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132093         The following changes are from gettext 0.10.39 as maintained by
132094         Bruno Haible.
132096         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
132097         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
132098         with inverted sense.  All uses changed.
132100         * lib/mbswidth.c: Don't include <limits.h>.
132101         Include <stdlib.h> and <string.h> unconditionally.
132102         (iswcntrl, mbsinit, ISCNTRL): New macros.
132103         (mbsnwidth): Use K&R style function declarations.
132104         Don't bother checking for MB_LEN_MAX == 1, since the compiler
132105         can optimize it when MB_CUR_MAX == 1.
132106         The width of control characters is zero, not 1.
132108 2001-08-03  Paul Eggert  <eggert@twinsun.com>
132110         The following changes are from gettext 0.10.39 as maintained by
132111         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
132113         * m4/codeset.m4: Upgrade to serial AM1.
132114         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
132115         all uses changed.  Quote first arg of AC_DEFUN.
132116         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
132118         * m4/iconv.m4: Upgrade to serial AM2.
132119         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
132120         Add --with-libconv-prefix.
132121         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
132122         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
132123         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
132124         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
132125         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
132127         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
132128         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
132129         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
132130         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
132131         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
132132         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
132133         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
132134         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
132135         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
132137         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
132138         string.h any more.
132140         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
132141         not the default value.
132143         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
132144         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
132145         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
132146         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
132147         Also check for iswcntrl, used for wcwidth fallback.
132148         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
132149         to Autoconf 2.13.
132151 2001-08-03  Jim Meyering  <meyering@lucent.com>
132153         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
132154         as it was in the original.  Reported by Paul Eggert.
132156 2001-07-16  Jim Meyering  <meyering@lucent.com>
132158         * m4/gettimeofday.m4: New file.
132159         Prompted by a report from Bernhard Baehr.
132161 2001-07-15  Jim Meyering  <meyering@lucent.com>
132163         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
132164         stuff. Now it's in ../Makefile.cfg.
132166 2001-07-15  Jim Meyering  <meyering@lucent.com>
132168         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
132169         (BUILT_SOURCES): Add unlocked-io.h.
132170         (io_functions): Define.
132171         (unlocked-io.h): New rule.
132172         (DISTCLEANFILES): Add unlocked-io.h.
132173         (all-local): Depend on unlocked-io.h, to ensure it is created.
132175         * lib/unlocked-io.hin: New file
132177         * lib/regex.c: Update from glibc.
132179 2001-07-05  Jim Meyering  <meyering@lucent.com>
132181         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
132182         recommendation.
132183         (libfetish_a_SOURCES): Put all .h files here instead.
132184         Remove a thus-exposed (better checks in automake) duplicate and
132185         two unnecessary .h files.
132187 2001-07-04  Jim Meyering  <meyering@lucent.com>
132189         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
132190         that generates jm-glibc-io.m4 so that it doesn't trigger any make
132191         distcheck failure.
132193 2001-07-02  Jim Meyering  <meyering@lucent.com>
132195         The following changes were prompted by suggestions from Bruno Haible.
132197         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
132198         is now generated.
132199         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
132200         definition of EXTRA_DIST.
132201         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
132202         ensure that the generated file is created/updated whenever the list
132203         of $(unlocked_functions) is changed.
132204         (jm-glibc-io.m4): New rule.
132205         (unlocked-io.h): New rule -- currently unused.
132207 2001-06-24  Jim Meyering  <meyering@lucent.com>
132209         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
132210         unmatched right bracket, rather than kludging it with an extra,
132211         falsely-matching quote in a comment.  Patch by Akim Demaille.
132213 2001-06-11  Jim Meyering  <meyering@lucent.com>
132215         * lib/regex.c: Update from GNU libc.
132217 2001-05-27  Jim Meyering  <meyering@lucent.com>
132219         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
132220         Check for ut_type in struct utmp.
132222 2001-05-27  Jim Meyering  <meyering@lucent.com>
132224         * lib/readutmp.h (UT_TYPE): Define.
132226 2001-05-24  Jim Meyering  <meyering@lucent.com>
132228         * lib/argmatch.c: Include "quote.h".
132229         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
132230         quote function.  Reported by Göran Uddeborg.
132232 2001-05-22  Jim Meyering  <meyering@lucent.com>
132234         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
132235         now that we use the package-supplied version unconditionally.
132236         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
132238 2001-05-21  Jim Meyering  <meyering@lucent.com>
132240         * m4/regex.m4: Change a couple backticks to single quotes to avoid
132241         shell syntax errors.
132243 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132245         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
132247 2001-05-20  Paul Eggert  <eggert@twinsun.com>
132249         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
132250         Don't bother to check library strftime, since
132251         we'll be using our own my_strftime function anyway.
132252         Define my_strftime instead of strftime.
132254 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
132256         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
132257         which is not yet declared.
132259 2001-05-15  Jim Meyering  <meyering@lucent.com>
132261         * m4/regex.m4: Use proper quoting so brackets appear in the test
132262         program.
132263         Reported by, and with help from, Bruno Haible.
132265 2001-05-13  Jim Meyering  <meyering@lucent.com>
132267         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
132268         undefined.
132270 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132272         dirname code cleanup.  base_name now behaves more compatibly
132273         with POSIX basename when given file names that have trailing
132274         slashes, and similarly for dir_name.  Add new primitives
132275         base_len and dir_len.  Put the directory-name-related decls
132276         into dirname.h.
132278         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
132279         * lib/backupfile.c (base_name): Likewise.
132280         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
132281         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
132282         * lib/makepath.c (strip_trailing_slashes): Likewise.
132283         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
132284         ISSLASH): Likewise.
132285         * lib/rename.c (strip_trailing_slashes): Likewise.
132286         * lib/same.c (base_name): Likewise.
132287         * lib/stripslash.c (ISSLASH): Likewise.
132289         * lib/addext.c: Include <dirname.h> after size_t is defined.
132290         * lib/backupfile.c: Likewise.
132292         * lib/addext.c (addext): Use base_len to trim redundant
132293         trailing slashes instead of doing it ourselves.
132294         But do not trim the last slash if it is not redundant.
132296         * lib/backupfile.c (find_backup_file_name,
132297         max_backup_version): Use base_len instead of rolling it ourselves.
132298         Handle the case of "" and (on DOS) "C:" correctly.
132300         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
132301         needed. Include <string.h>, <dirname.h>.
132302         (base_name): Allow file names ending in slashes, other than names
132303         that are all slashes.  In this case, return the basename followed
132304         by the slashes.  This is more general, and can be used in places
132305         where the original base_name purposely had an assertion failure.
132306         (base_len): New function.
132308         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
132309         Do not include <assert.h>; no longer needed.
132310         Include xalloc.h.
132311         (memrchr): Remove decl.
132312         (dir_name_r): Remove.
132313         (dir_len): Renamed from dirlen.  All callers changed.
132314         Rewrite in terms of base_name, for simplicity and consistency.
132315         (dir_name): Never return NULL.  All callers changed.
132316         Do not include <stdlib.h> in test program; no longer needed.
132317         return 0; is fine for test program.
132319         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
132320         New macros.
132321         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
132323         * lib/path-concat.c (path_concat): Use base_len to compute
132324         base length, not strlen; this means we cannot rely on memcpy
132325         to null-terminate.
132327         * lib/same.c (STREQ): Remove.
132328         (same_name): Handle the case where the basename ends in trailing '/'.
132330         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
132331         a slash was stripped.  Do not strip the last slash after a
132332         file system prefix.
132334 2001-05-11  Paul Eggert  <eggert@twinsun.com>
132336         * lib/Makefile.am (libfetish_a_SOURCES):
132337         Add strftime.c, since we now compile it on all hosts.
132339         * lib/strftime.c (my_strftime):
132340         Define to nstrftime if emacs, but only if my_strftime is not defined.
132341         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
132342         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
132343         Add one more extra argument: a nanoseconds value.
132344         All uses changed.
132345         (ns): New macro.
132346         (my_strftime function): Add %N format.
132347         (emacs_strftimeu): Renamed from emacs_strftime,
132348         with extra ut argument.
132350 2001-05-09  Paul Eggert  <eggert@twinsun.com>
132352         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
132354 2001-04-21  Jim Meyering  <meyering@lucent.com>
132356         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
132357         doesn't interfere.
132359 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
132361         * m4/ftruncate.m4: Check for chsize.
132362         Link with ftruncate.o unconditionally if ftruncate is missing.
132363         This was required when cross-compiling to i586-mingw32msvc.
132365 2001-04-08  Jim Meyering  <meyering@lucent.com>
132367         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
132368         recomputed; that's necessary when the offset spans a DST transition.
132369         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
132371 2001-04-02  Jim Meyering  <meyering@lucent.com>
132373         * lib/regex.h, regex.c: Update from GNU libc.
132375 2001-03-24  Jim Meyering  <meyering@lucent.com>
132377         * m4/jm-macros.m4: Require autoconf-2.49d.
132379 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
132381         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
132383 2001-03-19  Paul Eggert  <eggert@twinsun.com>
132385         * lib/version-etc.c (version_etc_copyright): Update to 2001.
132387 2001-03-17  Jim Meyering  <meyering@lucent.com>
132389         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
132390         now that the version in autoconf is equivalent.
132391         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
132393         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
132394         Suggestion from Akim Demaille.
132396         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
132397         (jm_PREREQ_TEMPNAME): New function.
132399 2001-03-16  Paul Eggert  <eggert@twinsun.com>
132401         * lib/tempname.c (uint64_t): Define to uintmax_t if
132402         not defined, and if UINT64_MAX is not defined.
132403         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
132404         Reported by John David Anglin.
132406 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
132408         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
132409         resolve alias if codeset is empty.
132410         * lib/config.charset (BeOS): Use wildcard syntax.
132412 2001-03-13  Jim Meyering  <meyering@lucent.com>
132414         * lib/path-concat.c (path_concat)
132415         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
132416         concatenating e.g., `C:' and `foo'.
132417         From Bruno Haible.
132419 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132421         * lib/localcharset.c (locale_charset): Don't use
132422         setlocale(LC_CTYPE,NULL). Don't return NULL.
132423         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
132425 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
132427         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
132428         support for DOS/DJGPP.
132430 2001-03-01  Paul Eggert  <eggert@twinsun.com>
132432         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
132433         lacks mkstemp.  Compile our own tempname.c if we compile our own
132434         mkstemp.c, as mkstemp relies on tempname.
132436 2001-03-01  Jim Meyering  <meyering@lucent.com>
132438         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
132439         AH_VERBATIM really does output its argument verbatim.
132441 2001-02-28  Paul Eggert  <eggert@twinsun.com>
132443         * lib/Makefile.am (libfetish_a_SOURCES):
132444         Add dup-safer.c, fopen-safer.c.
132445         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
132447         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
132448         * lib/unistd-safer.h: New files.
132450 2001-02-25  Paul Eggert  <eggert@twinsun.com>
132452         The mkstemp replacement is taken from glibc 2.2.2, with some
132453         portability fixes for use outside glibc, as follows:
132455         * lib/tempname.c (struct_stat64): New macro.
132456         (direxists, __gen_tempname): Use it.
132457         This avoids a portability problem with Solaris 8.
132459         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
132460         (<stddef.h>, <stdint.h>, <string.h>):
132461         Include only if STDC_HEADERS || _LIBC.
132462         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
132463         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
132464         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
132465         (__set_errno): Define this macro if <errno.h> doesn't.
132466         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
132467         Define these macros if <stdio.h> doesn't.
132468         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
132469         Define these macros if <sys/stat.h>
132470         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
132471         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
132472         __xstat64): Define if not _LIBC.
132473         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
132474         (__gen_tempname): Invoke gettimeofday only if
132475         HAVE_GETTIMEOFDAY || _LIBC;
132476         otherwise, fall back on plain "time".
132477         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
132479         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
132481         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
132483 2001-02-18  Paul Eggert  <eggert@twinsun.com>
132485         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
132487 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132489         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
132490         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
132491         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
132492         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
132494 2001-02-17  Paul Eggert  <eggert@twinsun.com>
132496         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
132497         Remove workaround macros for hosts that have mbrtowc but not
132498         mbstate_t, as we now insist on proper declarations for both
132499         before using mbrtowc.
132501 2001-02-17  Jim Meyering  <meyering@lucent.com>
132503         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
132504         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
132505         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
132506         UnixWare 7.1.1.
132508         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
132509         rather than AC_CACHE_VAL.
132511 2001-02-17  Jim Meyering  <meyering@lucent.com>
132513         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
132514         around included file name.
132516         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
132518         * lib/strftime.c: Update from GNU libc (the only changes were to
132519         comments).
132521 2001-02-17  Jim Meyering  <meyering@lucent.com>
132523         * lib/regex.c: Update from libc.
132525 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
132527         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
132528         clash.
132530 2001-02-16  Paul Eggert  <eggert@twinsun.com>
132532         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
132533         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
132534         Reported by Mark Hounschell via Paul Eggert.
132536 2001-02-07  Jim Meyering  <meyering@lucent.com>
132538         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
132540 2001-02-05  Jim Meyering  <meyering@lucent.com>
132542         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
132543         it includes the patch required for `large file' support with at least
132544         HP-UX's 10.20 /bin/cc.
132546 2001-02-03  Jim Meyering  <meyering@lucent.com>
132548         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
132549         AS_IF, now that it works once again (mysteriously).
132550         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132552 2001-01-30  Jim Meyering  <meyering@lucent.com>
132554         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
132555         * m4/chown.m4: Rename conftestchown to conftest.chown.
132556         * m4/rename.m4: s/conftestdir/conftest.d1/ and
132557         s/conftestdir2/conftest.d2/.
132558         * m4/utimes.m4: s/conftestdata/conftest.data/
132559         Inspired by Pavel Roskin's change in autoconf.
132561 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
132563         * lib/config.charset: Update for FreeBSD 4.2.
132565 2001-01-27  Jim Meyering  <meyering@lucent.com>
132567         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
132568         a use of AS_IF.
132569         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
132571 2001-01-26  Jim Meyering  <meyering@lucent.com>
132573         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
132574         quotearg.c includes it.
132576 2001-01-26  Jim Meyering  <meyering@lucent.com>
132578         * lib/quotearg.c: Include stddef.h.
132579         * lib/quote.c: Include stddef.h.
132580         Reported by Axel Kittenberger.
132582         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
132583         line in double quotes so that it evokes a better diagnostic.
132584         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
132585         Reported by Axel Kittenberger.
132587 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
132589         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
132590         as if it was a `charset'.
132592 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132594         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
132595         has const.
132597 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
132599         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
132600         to avoid a warning.  Add back 'const' to inptr.
132602 2001-01-20  Jim Meyering  <meyering@lucent.com>
132604         Be sure that headers are checked before used in code compiled
132605         for the type checks.
132606         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
132607         In place of that, invoke jm_CHECK_ALL_TYPES.
132608         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
132609         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
132610         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
132611         The check for ssize_t was mistakenly run before the test for unistd.h.
132613         The configure-time check for stdbool.h was missing.
132614         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
132615         (jm_PREREQ_HASH): New function.
132617 2001-01-17  Jim Meyering  <meyering@lucent.com>
132619         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
132620         for autoconf-2.49c.
132621         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
132623 2001-01-16  Jim Meyering  <meyering@lucent.com>
132625         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
132626         From Bruno Haible.
132628 2001-01-14  Jim Meyering  <meyering@lucent.com>
132630         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
132631         foo and bar.  Create conftestdir/ in the script, not in the C code.
132632         Remove directories in the script, not in the C code.
132633         Remove conftestdir{,2} before trying to create the directory.
132634         Make the entire configure script fail if the mkdir fails.
132636 2001-01-14  Jim Meyering  <meyering@lucent.com>
132638         * lib/rename.c: New file.  From Volker Borchert.
132639         Include stdlib.h, string.h or strings.h, and xalloc.h.
132640         Use strip_trailing_slashes rather than open-coding it.
132642 2001-01-03  Paul Eggert  <eggert@twinsun.com>
132644         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
132646 2001-01-03  Jim Meyering  <meyering@lucent.com>
132648         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
132649         of local `inptr' to avoid warning with some system declarations of
132650         iconv.
132652 2001-01-02  Volker Borchert  <bt@teknon.de>
132654         * m4/rename.m4: New file.
132655         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
132657 2001-01-01  Jim Meyering  <meyering@lucent.com>
132659         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
132660         even on systems with utmpx.h.  It's necessary for the declaration of
132661         utmp's ut_user member.  Reported by Andreas Jaeger.
132663         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
132664         available. They are required for the declarations of getgrgid and
132665         getpwuid resp.
132666         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
132667         Reported by Andreas Jaeger.
132669 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
132671         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
132672         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
132673         so `make install' also works in VPATH builds.
132675 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
132677         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
132678         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
132679         can be used in subdirectories.
132681 2000-12-29  Paul Eggert  <eggert@twinsun.com>
132683         * lib/modechange.c: Do not assume that mode_t uses the
132684         traditional octal encoding.  E.g. "chmod 1 FOO" should set
132685         the other-execute bit of FOO even if S_IXOTH != 1.
132687         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
132688         WOTH, XOTH, ALLM): New macros.
132689         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
132690          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
132691         Use them.
132692         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
132693         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
132694         (mode_compile):
132695         No need to use uintmax_t; unsigned long is long enough.
132696         Don't bother to get suffix since we don't use it.
132698 2000-12-26  Jim Meyering  <meyering@lucent.com>
132700         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
132701         better with autoheader.
132703 2000-12-24  Jim Meyering  <meyering@lucent.com>
132705         * lib/hash.c (is_prime): Return explicit boolean values.
132706         (hash_get_first): Return NULL to appease Irix5.6's 89.
132707         Reported by Nelson Beebe.
132709 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
132711         * lib/localcharset.c (locale_charset): Add support for Win32.
132713 2000-12-18  Paul Eggert  <eggert@twinsun.com>
132715         * lib/physmem.h, lib/physmem.c: New files.
132717         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
132718         (noinst_HEADERS): Add physmem.h.
132720         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
132721         't' for compatibility with Solaris 8 sort.
132723 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
132725         * lib/config.charset: Add support for BeOS.
132727 2000-12-17  Jim Meyering  <meyering@lucent.com>
132729         * m4/dos.m4 (jm_AC_DOS): New file and macro.
132730         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
132732 2000-12-16  Jim Meyering  <meyering@lucent.com>
132734         This bug had a serious impact on chown: `chown N:M FILE' (for integer
132735         N and M) would have treated it like `chown N:N FILE'.
132737         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
132739 2000-12-16  Jim Meyering  <meyering@lucent.com>
132741         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
132742         SHELLS_FILE to a file name that's useful on djgpp systems.
132743         Include stdlib.h.
132744         (ADDITIONAL_DEFAULT_SHELLS): Define.
132745         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
132746         Based mostly on a patch from Prashant TR.
132748 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
132750         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
132751         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
132752         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
132754 2000-12-08  Andreas Schwab  <schwab@suse.de>
132756         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
132757         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
132759 2000-12-07  Jim Meyering  <meyering@lucent.com>
132761         * lib/stripslash.c (ISSLASH): Define.
132762         (strip_trailing_slashes): Use ISSLASH rather than comparing against
132763         `/'.
132764         From Prashant TR.
132766         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
132767         (dir_name_r): Declare this function as static.
132768         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
132769         manifest itself on a name containing a mix of slashes and
132770         backslashes.
132771         Make this function work with names starting with a DOS-style
132772         drive letter and colon prefix.
132773         (dir_name): Append `.' if necessary.
132774         Based mostly on patches from Prashant TR and Eli Zaretskii.
132776         * lib/dirname.h (dir_name_r): Remove prototype.
132778 2000-12-06  Paul Eggert  <eggert@twinsun.com>
132780         * m4/off_t-format.m4: Remove this file.
132781         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
132783 2000-12-06  Jim Meyering  <meyering@lucent.com>
132785         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
132786         replacement strtoull, we may well need the replacement strtoul, too.
132787         Check for declarations of strtoul and strtoull.
132788         Check for strtol.  Mainly as a cue to cause automake to include
132789         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
132790         Check for limits.h -- strtol.c needs it.
132792 2000-12-05  Jim Meyering  <meyering@lucent.com>
132794         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
132796 2000-12-04  Jim Meyering  <meyering@lucent.com>
132798         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
132799         Also include memory.h, stdlib.h, unistd.h if appropriate.
132800         Reported by Andreas Jaeger (conflicting declaration of malloc).
132802 2000-12-02  Jim Meyering  <meyering@lucent.com>
132804         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
132805         * m4/jm-macros.m4 (jm_MACROS): require it.
132807 2000-12-02  Jim Meyering  <meyering@lucent.com>
132809         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
132811 2000-12-01  Paul Eggert  <eggert@twinsun.com>
132813         * lib/memrchr.c: Include <config.h> before any system include file.
132815 2000-11-30  Jim Meyering  <meyering@lucent.com>
132817         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
132819 2000-11-30  Jim Meyering  <meyering@lucent.com>
132821         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
132823 2000-11-29  Paul Eggert  <eggert@twinsun.com>
132825         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
132827 2000-11-26  Jim Meyering  <meyering@lucent.com>
132829         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
132831 2000-11-22  Paul Eggert  <eggert@twinsun.com>
132833         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
132834         size of (size_t) -1; it's not portable.
132836 2000-11-17  Jim Meyering  <meyering@lucent.com>
132838         * lib/strstr.c: Update from GNU libc.
132840 2000-11-17  Akim Demaille  <akim@epita.fr>
132842         * lib/obstack.h: Formatting changes.
132843         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
132844         prevent type checking.
132845         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
132846         cast the value to (void *): assigning a `foo *' to a `void *'
132847         variable is valid.
132848         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
132850 2000-11-16  Jim Meyering  <meyering@lucent.com>
132852         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
132854 2000-11-11  Jim Meyering  <meyering@lucent.com>
132856         * lib/error.c: Add a couple #includes, merging from GNU libc version.
132858 2000-11-10  Jim Meyering  <meyering@lucent.com>
132860         * lib/obstack.h: Update from GNU libc.
132861         * lib/obstack.c: Likewise.
132863 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
132865         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
132867 2000-11-06  Paul Eggert  <eggert@twinsun.com>
132869         * lib/getusershell.c (setusershell): Use rewind rather than
132870         fseek/fseeko, to avoid configuration hassles with fseeko.
132871         Don't bother opening SHELLS_FILE if shellstream is NULL;
132872         it's not necessary.
132874 2000-11-05  Jim Meyering  <meyering@lucent.com>
132876         * lib/makepath.h (make_dir): Declare.
132877         * lib/makepath.c (make_dir): Remove `static' attribute.
132878         Tweak a comment.
132880 2000-11-04  Jim Meyering  <meyering@lucent.com>
132882         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
132884 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
132886         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
132887         last one in a bucket, advance to the next bucket.
132889 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
132891         * lib/fnmatch.c: Do not comment out all the code if we are using
132892         the GNU C library, because in some cases we are replacing buggy
132893         code in the GNU C library itself.
132895 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
132897         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
132898         (regex_compile): Catch bogus \(\1\).
132900 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132902         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
132903         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
132904         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
132906 2000-10-30  Paul Eggert  <eggert@twinsun.com>
132908         * lib/error.h, getline.h, modechange.h:
132909         Remove "2000" from Copyright line, as the file hasn't been
132910         changed this year other than in the copyright notice.
132912         * lib/xalloc.h: Add "2000" to Copyright line, as this file
132913         was changed this year.
132915 2000-10-29  Jim Meyering  <meyering@lucent.com>
132917         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
132918         renaming.
132919         * m4/ls-mntd-fs.m4: Likewise
132921 2000-10-29  Jim Meyering  <meyering@lucent.com>
132923         * lib/xstat.in: Fix grammar in comment.
132925 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
132927         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
132928         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
132929         doesn't define __restrict_arr.
132931 2000-10-28  Jim Meyering  <meyering@lucent.com>
132933         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
132934         (jm_PREREQ_MEMCHR): New function.
132936 2000-10-28  Jim Meyering  <meyering@lucent.com>
132938         * lib/memchr.c: Update from libc.
132939         Adjust for portability:
132940         [HAVE_STDLIB_H]: Include stdlib.h.
132941         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
132942         Undef __memchr, too.
132943         [!weak_alias]: Define __memchr to memchr.
132945         * lib/regex.c: Update from libc.
132946         * lib/regex.h: Likewise.
132947         * lib/getopt1.c: Likewise.
132948         * lib/memcmp.c: Likewise.
132950         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
132951         Avoid using fseek, when possible -- it's broken by design.
132952         Patch by Ulrich Drepper.
132954 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
132956         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
132957         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
132958         Giving in to popular pressure to shut up the compiler with casts.
132960 2000-10-26  Jim Meyering  <meyering@lucent.com>
132962         * lib/strftime.c: Update from libc.
132964 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
132966         * regex.c: More `unsigned char' -> `re_char' changes.
132967         Also change several `int' into `re_wchar_t'.
132968         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
132969         (PUSH_FAILURE_POINTER): Don't cast any more.
132970         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
132971         We want GCC to complain, since this piece of code makes
132972         re_match non-reentrant, which *should* be fixed.
132973         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
132974         (EXTEND_BUFFER): Use RETALLOC.
132975         (SET_LIST_BIT): Don't cast.
132976         (re_wchar_t): New type.
132977         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
132978         that those two functions will always properly return.
132979         (IMMEDIATE_QUIT_CHECK): Cast to void.
132980         (analyse_first): Use recursion rather than an explicit stack.
132981         (re_compile_fastmap): Can't fail anymore.
132982         (re_search_2): Don't check re_compile_fastmap for failure.
132983         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
132984         Now also sets the new value (passed in a new argument).
132985         (re_match_2_internal): Use it.
132986         Also, use a new var `reg' of type size_t when looping through regs
132987         rather than reuse the inappropriate `mcnt'.
132989 2000-10-25  Jim Meyering  <meyering@lucent.com>
132991         * lib/obstack.c: Update from libc.
132993 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
132995         * regex.c (regex_compile): Change the way of handling a range from
132996         a char less than 256 to a char not less than 256.
132998 2000-10-24  Andrew Innes  <andrewi@gnu.org>
133000         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
133001         NT-Emacs only.
133002         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
133003         so that re_search functions only quit when callers expect them to.
133005 2000-10-23  Jim Meyering  <meyering@lucent.com>
133007         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
133008         wrong.  That set_locale call must not have any side effects.
133009         From Paul Eggert.
133011 2000-10-22  Jim Meyering  <meyering@lucent.com>
133013         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
133014         [CYCLIC]: Remove now-unused definition.
133016         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
133017         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
133018         Suggestion from Ulrich Drepper.
133020 2000-10-21  Jim Meyering  <meyering@lucent.com>
133022         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
133023         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
133024         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
133026 2000-10-21  Jim Meyering  <meyering@lucent.com>
133028         * lib/dirname.c (memrchr): Declare if necessary.
133029         (dir_name): Remove the restriction that there be no
133030         trailing slashes.  Now, this code skips past them, effectively
133031         ignoring them.
133032         [TEST_DIRNAME] (main): New unit tests.
133034         * lib/memrchr.c: New file from GNU libc.
133035         Undef __memrchr, too.
133036         [!weak_alias]: Define __memrchr to memrchr.
133037         Guard weak_alias use with `#ifdef weak_alias'.
133039 2000-10-21  Jim Meyering  <meyering@lucent.com>
133041         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
133042         (dir_name): Use dir_name_r.
133043         * lib/dirname.h (dir_name_r): Declare it.
133045 2000-10-17  Jim Meyering  <meyering@lucent.com>
133047         * lib/quote.h (PARAMS): Define and use.
133048         Reported by Akim Demaille.
133050         * lib/getopt.c: Update from libc.
133052 2000-10-16  Jim Meyering  <meyering@lucent.com>
133054         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
133055         setlocale.
133056         From Jan Fedak.
133058 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
133060         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
133062 2000-09-25  Jim Meyering  <meyering@lucent.com>
133064         * lib/md5.h (rol): Define (from GnuPG).
133066         * lib/sha.c: Give credit (GnuPG) where due.
133067         (M): Use rol rather than open-coding it.
133068         Add a FIXME comment.
133070 2000-09-21  Jim Meyering  <meyering@lucent.com>
133072         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
133073         Reported by Michael Stone.
133075 2000-09-20  Jim Meyering  <meyering@lucent.com>
133077         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
133078         (noinst_HEADERS): Add sha.h.
133079         Based on code from Scott G. Miller and from GnuPG.
133081 2000-09-18  Jim Meyering  <meyering@lucent.com>
133083         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
133084         LIBS. Otherwise, everyone ends up linking with -lelf for some
133085         configurations.
133086         Reported by Mike Stone.
133088 2000-09-15  Jim Meyering  <meyering@lucent.com>
133090         * lib/regex.c: Update from libc.
133092 2000-09-10  Jim Meyering  <meyering@lucent.com>
133094         * lib/getopt.c (_getopt_internal): Update from glibc.
133096 2000-09-09  Jim Meyering  <meyering@lucent.com>
133098         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
133099         think it should be used as a general replacement for isascii.
133100         * lib/fnmatch.c: Likewise.
133101         * lib/mbswidth.c: Likewise
133102         * lib/regex.c: Likewise.
133104         Don't use atoi.
133105         * lib/userspec.c: Include sys/param.h and limits.h.
133106         Include xstrtol.h.
133107         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
133108         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
133109         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
133110         UID, GID.  Check range.
133112 2000-09-06  Jim Meyering  <meyering@lucent.com>
133114         * lib/getopt.c (_getopt_internal): Update from glibc.
133116 2000-08-30  Jim Meyering  <meyering@lucent.com>
133118         * lib/strftime.c: Merge in changes from GNU libc.
133120 2000-08-26  Jim Meyering  <meyering@lucent.com>
133122         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
133123         * m4/fpending.m4: New file.
133125 2000-08-26  Jim Meyering  <meyering@lucent.com>
133127         * lib/closeout.c: Include "__fpending.h".
133128         (close_stdout_status): Return right away if there's nothing to flush.
133130         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
133131         * lib/__fpending.c: New file.
133132         * lib/__fpending.h: New file.
133134 2000-08-20  Jim Meyering  <meyering@lucent.com>
133136         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
133137         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
133138         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
133140 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
133142         Improve fileutils installation on systems where running
133143         programs (like install) can't be unlinked.
133144         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
133145         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
133147 2000-08-07  Paul Eggert  <eggert@twinsun.com>
133149         Standardize on "memory exhausted" instead of "Memory exhausted"
133150         or "virtual memory exhausted".
133151         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
133152         "virtual memory exhausted".
133153         * lib/same.c (same_name): Invoke xalloc_die instead of printing
133154         our own message.
133155         * lib/userspec.c (parse_user_spec): Likewise.
133156         * lib/bumpalloc.h: comment fix
133157         * lib/same.c, userspec.c: Include xalloc.h.
133159         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
133160         not char *const and pointing to a constant array.
133161         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
133162         (xrealloc): Comment fix.
133164         * lib/userspec.c (parse_user_spec):
133165         Don't translate a message until just before returning,
133166         to avoid unnecessary translation.
133168 2000-08-07  Jim Meyering  <meyering@lucent.com>
133170         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
133171         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
133172         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
133173         getgroups.c, gethostname.c, getopt.h, group-member.c,
133174         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
133175         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
133176         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
133177         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
133178         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
133179         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
133180         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
133181         yesno.c: Back out Copyright date changes for each file with no change
133182         this year.  This eases coordination with other programs using the same
133183         source code modules.  From Paul Eggert.
133185 2000-08-06  Paul Eggert  <eggert@twinsun.com>
133187         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
133188         not char, for compatibility with glibc 2.1.3 strftime.c.
133190 2000-08-03  Greg McGary  <greg@mcgary.org>
133192         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
133193         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
133194         (EXTEND_BUFFER): Use them.
133196 2000-08-01  Jim Meyering  <meyering@lucent.com>
133198         * lib/dirname.c (ISSLASH): Define.
133199         (BACKSLASH_IS_PATH_SEPARATOR): Define.
133200         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
133201         both `\' and `/' may be use as path separators.
133202         Based on a patch from Prashant TR.
133204 2000-07-31  Paul Eggert  <eggert@twinsun.com>
133206         * lib/quotearg.c (quotearg_n_options): Don't make the initial
133207         slot vector a constant, since it might get modified.
133209 2000-07-31  Jim Meyering  <meyering@lucent.com>
133211         * lib/xmalloc.c: Use `virtual memory exhausted', not
133212         `Memory exhausted'.
133213         * lib/obstack.c (print_and_abort): Likewise.
133215 2000-07-30  Paul Eggert  <eggert@twinsun.com>
133217         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
133218         buffer, so that the caller can always quote one small
133219         component of a "memory exhausted" message in slot 0.
133220         From a suggestion by Jim Meyering.
133222 2000-07-30  Jim Meyering  <meyering@lucent.com>
133224         * lib/makepath.c (make_path): Quote the other instance, too.
133226         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
133227         (STATIC_BUF_SIZE): Define.
133228         (quotearg_n_options): Use only statically allocated storage when
133229         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
133230         than STATIC_BUF_SIZE.
133232 2000-07-29  Jim Meyering  <meyering@lucent.com>
133234         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
133235         * lib/dirname.c (dir_name): Likewise.
133237         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
133238         `/'.
133240         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
133241         (dir_name): Assert that there are no trailing slashes.
133243 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
133245         * lib/mbswidth.h (mbswidth): Add a flags argument.
133246         (mbswidth): New declaration.
133247         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
133248         * lib/mbswidth.c (mbswidth): Add a flags argument.
133249         (mbsnwidth): New function.
133251 2000-07-24  Jim Meyering  <meyering@lucent.com>
133253         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
133255 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133257         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
133259 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133261         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
133262         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
133263         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
133264         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
133265         invoke multibyte primitives.
133267 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133269         * lib/quotearg.c:
133270         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
133271         so that mbstate_t is always defined.
133273         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
133274         be 1 in at least one GCC installation, and this configuration
133275         error is likely to be common.  Ignoring MB_LEN_MAX hurts
133276         performance on hosts that have mbrtowc but have only unibyte
133277         locales, but I assume these hosts are rare.
133279 2000-07-23  Paul Eggert  <eggert@twinsun.com>
133281         * lib/mbswidth.c (_XOPEN_SOURCE):
133282         Don't define; this causes problems on Solaris 7.
133283         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
133285 2000-07-23  Jim Meyering  <meyering@lucent.com>
133287         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
133288         too: getgrgid, getpwuid, getuid.
133290 2000-07-23  Jim Meyering  <meyering@lucent.com>
133292         * lib/basename.c (base_name): Add an assertion.
133294 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
133296         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
133297         shadow its mbsinit function.
133299 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133301         * lib/mbswidth.h: New file.
133302         * lib/mbswidth.c: New file.
133303         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
133304         (noinst_HEADERS): Add mbswidth.h.
133306 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
133308         * lib/config.charset: Add support for FreeBSD. Improve support for
133309         HP-UX and IRIX 6.
133311 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
133313         * m4/mbswidth.m4: New file.
133314         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
133316 2000-07-15  Jim Meyering  <meyering@lucent.com>
133318         * lib/makepath.c: Include quote.h.
133319         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
133320         corresponding argument in a `quote (...)' call.
133321         Give better diagnostics.
133323         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
133324         (noinst_HEADERS): Add quote.h.
133326         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
133327         from tar's src/misc.c.
133328         * lib/quote.h: New file.  Prototypes for same.
133330 2000-07-14  Paul Eggert  <eggert@twinsun.com>
133332         From a suggestion by Bruno Haible.
133333         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
133334         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
133335         to decide whether to define the BeOS workaround macro;
133336         this adjusts to the change to AC_MBSTATE_T.
133338 2000-07-14  Jim Meyering  <meyering@lucent.com>
133340         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
133341         jm_AC_TYPE_UINTMAX_T.
133343 2000-07-13  Paul Eggert  <eggert@twinsun.com>
133345         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
133347         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
133348         quotearg_buffer_restyled): Add support for
133349         clocale_quoting_style.  Undo previous change to
133350         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
133351         and "{RIGHT QUOTATION MARK}" msgids.
133353 2000-07-10  Paul Eggert  <eggert@twinsun.com>
133355         From a suggestion by Bruno Haible.
133356         * m4/mbstate_t.m4 (AC_MBSTATE_T):
133357         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
133358         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
133359         and mbstate_t, to a single-part test that simply defines mbstate_t.
133360         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
133361         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
133363 2000-07-10  Jim Meyering  <meyering@lucent.com>
133365         * m4/strerror_r.m4: Mirror the correction made in autoconf.
133367         * m4/gnu-source.m4: Output to confdefs.h directly.
133368         Suggestion from Akim Demaille.
133370 2000-07-09  Paul Eggert  <eggert@twinsun.com>
133372         The old behavior of quoting `like this' doesn't look good with
133373         newer, ISO-style fonts.  See:
133374         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
133376         Instead, quote "like this" by default.  Let the translator
133377         tailor the locale-specific quoting behavior by providing
133378         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
133380         * lib/quotearg.c (N_): New macro.
133381         (gettext_default): New function.
133382         (quotearg_buffer_restyled): Use
133383         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
133384         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
133386 2000-07-09  Jim Meyering  <meyering@lucent.com>
133388         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
133389         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
133391         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
133392         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
133394 2000-07-09  Jim Meyering  <meyering@lucent.com>
133396         * lib/Most files: Update copyright dates to include 2000.
133398 2000-07-08  Jim Meyering  <meyering@lucent.com>
133400         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
133401         if not defined.
133402         (xgethostname): Remove now-unnecessary #ifdef.
133403         Move declaration of `err' into loop where it's used.
133405 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133406         and Bruno Haible  <haible@clisp.cons.org>
133408         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
133409         only if the test for an object-type mbstate_t fails.  This
133410         prevents us from mistakenly reporting that mbstate_t is a
133411         system object type after we "#define mbstate_t int" to work
133412         around its lack.
133414 2000-07-05  Paul Eggert  <eggert@twinsun.com>
133415         and Bruno Haible  <haible@clisp.cons.org>
133417         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
133419 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133421         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
133422         to strerror_r.
133423         Include <ctype.h> for use of isalpha.
133425 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133427         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
133428         by allocating a larger buffer. Test the gethostname return value for
133429         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
133430         returns an error and ENAMETOOLONG isn't defined.
133432 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
133434         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
133435         dimension.
133437 2000-07-04  Jim Meyering  <meyering@lucent.com>
133439         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
133440         of the deprecated AC_CHECKING.
133442 2000-07-04  Jim Meyering  <meyering@lucent.com>
133444         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
133445         Reported by Bruno Haible.
133447 2000-07-04  Jim Meyering  <meyering@lucent.com>
133449         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
133450         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
133451         lacks mbrtowc.
133453 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133455         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
133456         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
133458 2000-07-03  Paul Eggert  <eggert@twinsun.com>
133459         and Bruno Haible  <haible@clisp.cons.org>
133461         * lib/quotearg.c (mbrtowc):
133462         Assign to *pwc, and return 1 only if result is nonzero.
133463         (iswprint): Use ISPRINT when substituting our own mbrtowc.
133465 2000-07-03  Jim Meyering  <meyering@lucent.com>
133467         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
133469 2000-07-03  Jim Meyering  <meyering@lucent.com>
133471         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
133472         This is necessary to get a definition of e.g., UTMP_FILE on
133473         HP-UX 10.20.
133474         From Bob Proulx.
133476 2000-07-02  Jim Meyering  <meyering@lucent.com>
133478         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
133480         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
133481         AC_LIBOBJ(function_name).
133482         * m4/chown.m4: Likewise.
133483         * m4/fnmatch.m4: Likewise.
133484         * m4/ftruncate.m4: Likewise.
133485         * m4/getgroups.m4: Likewise.
133486         * m4/getline.m4: Likewise.
133487         * m4/group-member.m4: Likewise.
133488         * m4/jm-macros.m4: Likewise.
133489         * m4/lstat.m4: Likewise.
133490         * m4/malloc.m4: Likewise.
133491         * m4/memcmp.m4: Likewise.
133492         * m4/nanosleep.m4: Likewise.
133493         * m4/putenv.m4: Likewise.
133494         * m4/realloc.m4: Likewise.
133495         * m4/regex.m4: Likewise.
133496         * m4/stat.m4: Likewise.
133497         * m4/strftime.m4: Likewise.
133499 2000-07-02  Jim Meyering  <meyering@lucent.com>
133501         * lib/quotearg.c (mbstate_t): Don't define here.
133503 2000-07-02  Jim Meyering  <meyering@lucent.com>
133505         * lib/nanosleep.c (SIGCONT): Define if not already defined.
133507 2000-07-01  Jim Meyering  <meyering@lucent.com>
133509         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
133511 2000-07-01  Jim Meyering  <meyering@lucent.com>
133513         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
133514         problem.
133516 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133518         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
133519         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
133521 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
133523         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
133524         per change in ../m4/ls-mntd-fs.m4.
133525         (read_filesystem_list): Ignore symbolic links.
133527 2000-06-29  Jim Meyering  <meyering@lucent.com>
133529         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
133530         for declaration of strcmp.
133532         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
133534         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
133535         Avoid warning by casting result to `char *' to remove `const'.
133537 2000-06-28  Jim Meyering  <meyering@lucent.com>
133539         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
133540         included by quotearg.c, for which we perform this test.  From
133541         Bruno Haible.
133543 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133545         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
133546         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
133547         <utmpx.h> exists, put readutmp.o into LIBOBJS.
133549 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
133551         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
133553 2000-06-26  Paul Eggert  <eggert@twinsun.com>
133555         savedir now sets errno on failure and invokes xmalloc to get memory.
133556         Fix a couple of other minor bugs while we're at it.
133558         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
133559         (NAMLEN): Remove macro.
133560         (malloc, realloc): Remove decls.
133561         (stpcpy): Likewise.
133562         ("xalloc.h"): Include.
133563         (NAME_SIZE_DEFAULT): New macro.
133564         (savedir): Use xmalloc / xrealloc to allocate memory.
133565         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
133566         Skip "" directory entries.
133567         Use strlen to calculate directory entry length, since the old method
133568         is rarely used these days and isn't worth supporting.
133569         Don't use a pointer after freeing it.
133570         Check for integer overflow when calculating allocation size.
133571         Use memcpy to copy entries, instead of stpcpy.
133572         Set errno properly when returning NULL.
133573         Check for readdir error.
133575 2000-06-26  Jim Meyering  <meyering@lucent.com>
133577         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
133579 2000-06-25  Jim Meyering  <meyering@lucent.com>
133581         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
133582         Linux header bug when _XOPEN_SOURCE is defined to 500.
133584 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133586         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
133587         deficiency.
133589 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
133591         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
133592         Include xalloc.h.
133593         Don't include <stdlib.h>.  Don't declare malloc, realloc.
133595 2000-06-24  Jim Meyering  <meyering@lucent.com>
133597         * m4/strerror_r.m4: Revive this file -- to try out an experimental
133598         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
133599         for which strerror does return char*, but which lacks a conveniently
133600         accessible declaration of the function.  If the compile-test says
133601         strerror_r doesn't work, then resort to a `run'-test that works on
133602         BeOS and segfaults on DEC Unix.
133604 2000-06-24  Jim Meyering  <meyering@lucent.com>
133606         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
133608 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133610         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
133611         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
133613 2000-06-23  Paul Eggert  <eggert@twinsun.com>
133615         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
133616         (mbrtowc, mbstate_t): Define substitutes if
133617         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
133618         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
133619         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
133621 2000-06-23  Jim Meyering  <meyering@lucent.com>
133623         * m4/afs.m4: Add missing AC_MSG_RESULT.
133624         Reported by Bruno Haible.
133626         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
133627         Suggestion from Bruno Haible.
133629 2000-06-23  Jim Meyering  <meyering@lucent.com>
133631         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
133633 2000-06-21  Jim Meyering  <meyering@lucent.com>
133635         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
133637 2000-06-21  Jim Meyering  <meyering@lucent.com>
133639         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
133640         (noinst_HEADERS): Add getstr.h.
133642         * lib/getline.c (getstr): Move into a separate file.
133643         * lib/getstr.c (getstr): New file, extracted from getline.c, with
133644         the following changes: new parameter, delim2; both delim[12]
133645         parameters have type `int', not `char'.  The latter would lose
133646         with 8-bit delimiters.
133647         * lib/getstr.h: New file.
133649 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133651         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
133652         than 1024, return a memory chunk of least possible size, instead
133653         of size PATH_MAX + 2. In the loop, increment the size proportionally.
133654         Use free/xmalloc instead of xrealloc to avoid copying for very long
133655         paths.
133657 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133659         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
133660         the empty string.
133662 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
133664         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
133665         address, not strdup.  Include <stdlib.h> and don't declare free().
133667 2000-06-19  Jim Meyering  <meyering@lucent.com>
133669         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
133671 2000-06-18  Jim Meyering  <meyering@lucent.com>
133673         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
133675         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
133676         `checking whether...' message to be consistent with that of the
133677         lstat test.
133679 2000-06-18  Jim Meyering  <meyering@lucent.com>
133681         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
133682         Besides, these days every porting target provides a mkdir function.
133684         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
133685         needed. (this snippet comes from src/system.h).
133687 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
133689         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
133691 2000-06-15  Paul Eggert  <eggert@twinsun.com>
133693         * lib/human.c (adjust_value): New function.
133694         (human_readable_inexact): Apply rounding style even when
133695         printing approximate values.
133697 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133699         * lib/human.c (human_readable_inexact): Allow an input block
133700         size that is not a multiple of the output block size, and vice versa.
133701         Reported by Piergiorgio Sartor.
133703 2000-06-14  Paul Eggert  <eggert@twinsun.com>
133705         * lib/getdate.y (get_date): Apply relative times after time
133706         zone indicator, not before.  Reported by Todd A. Jacobs.
133708 2000-06-13  Jim Meyering  <meyering@lucent.com>
133710         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
133712         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
133714 2000-06-12  Paul Eggert  <eggert@twinsun.com>
133716         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
133718 2000-06-12  Jim Meyering  <meyering@lucent.com>
133720         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
133721         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
133722         optional argument.
133723         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
133724         the optional argument, `lib'.
133726 2000-06-08  Jim Meyering  <meyering@lucent.com>
133728         * m4/largefile.m4: Remove file (now that it's part of autoconf).
133730 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133732         Rewrite largefile configuration so that we don't need to run
133733         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
133734         AC_CANONICAL_HOST in configure.in -- jmm]
133736         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
133737         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
133738         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
133739         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
133740         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
133741         All uses changed.
133742         Instead of inspecting the output of getconf, try to compile the
133743         test program without and with the macro definition.
133744         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
133745         for getconf.  Instead, check for the needed flags by compiling
133746         test programs.
133748 2000-06-04  Paul Eggert  <eggert@twinsun.com>
133750         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
133752 2000-06-04  Jim Meyering  <meyering@lucent.com>
133754         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
133755         SunOS 4.1.4 for which gid_t is an unsigned type.
133757 2000-06-03  Jim Meyering  <meyering@lucent.com>
133759         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
133760         now that autoconf requires that.
133762         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
133763         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
133764         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
133766 2000-06-03  Jim Meyering  <meyering@lucent.com>
133768         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
133770 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133772         * m4/glibc21.m4: New file.
133773         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
133775 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
133777         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
133778         newer, don't install charset.alias.
133779         * lib/config.charset: Change the Linux/glibc rules so they become empty
133780         on glibc-2.1 or newer.
133782 2000-06-02  Jim Meyering  <meyering@lucent.com>
133784         * lib/mountlist.c: Back out last change.  Instead, do this...
133785         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
133786         me_dummy member using the same `ignore'-testing code.
133787         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
133788         fs_type strings.
133789         From Mark D. Roth.
133791 2000-05-29  Jim Meyering  <meyering@lucent.com>
133793         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
133794         mounts with the `ignore' attribute.  Based on a patch from
133795         Mark D. Roth.
133797 2000-05-28  Jim Meyering  <meyering@lucent.com>
133799         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
133800         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133801         * m4/stat.m4: Likewise.
133802         * m4/lstat.m4: Likewise.
133803         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
133805         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
133806         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
133808 2000-05-26  Jim Meyering  <meyering@lucent.com>
133810         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
133812 2000-05-24  Jim Meyering  <meyering@lucent.com>
133814         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
133815         autoconf requires that.
133816         * m4/lib-check.m4: Likewise.
133817         * m4/jm-macros.m4: Likewise.
133818         * m4/strftime.m4: Likewise.
133820         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
133821         AC_CHECK_DECLS, now that autoconf requires that.
133823 2000-05-22  Jim Meyering  <meyering@lucent.com>
133825         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
133826         * m4/lstat.m4: Likewise.
133828 2000-05-22  Jim Meyering  <meyering@lucent.com>
133830         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
133832 2000-05-20  Jim Meyering  <meyering@lucent.com>
133834         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
133835         (jm_PREREQ): Use it.
133837 2000-05-18  Jim Meyering  <meyering@lucent.com>
133839         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
133840         back, too, since it may have been modified by allocate_entry.
133841         (hash_delete): Rewrite to use neither the assignment operator
133842         nor the comma operator in an if-expression.
133844 2000-05-15  Paul Eggert  <eggert@twinsun.com>
133846         * lib/closeout.c:
133847         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
133848         Remove; no longer needed.
133849         "quotearg.h": Add include.
133850         (file_name): Do not bother to explicitly initialize to NULL; it's less
133851         efficient on some hosts.
133852         (close_stdout_status): Remove test as to whether stdout was already
133853         closed; it breaks for the case "echo x | sort >&-".
133854         Quote file name colons.
133855         Do not assume that _("write error") lacks format strings.
133857 2000-05-15  Jim Meyering  <meyering@lucent.com>
133859         * lib/version-etc.c (version_etc_copyright): Update the copyright
133860         string used in all --version output.
133862 2000-05-14  Jim Meyering  <meyering@lucent.com>
133864         * lib/closeout.c (close_stdout_set_file_name): New function.
133865         (close_stdout_status): Use new file-scoped global.
133866         Return right away if fstat says the stdout file descriptor is invalid.
133867         * lib/closeout.h (close_stdout_set_file_name): Declare.
133869 2000-05-10  Jim Meyering  <meyering@lucent.com>
133871         * lib/closeout.c [default_exit_status]: New file-scoped variable.
133872         (close_stdout_set_status): New function.
133873         * lib/closeout.h (close_stdout_set_status): Declare.
133875 2000-05-09  Jim Meyering  <meyering@lucent.com>
133877         * m4/gettext.m4: Rename this...
133878         * m4/libintl.m4: ...to this.
133880 2000-05-08  Jim Meyering  <meyering@lucent.com>
133882         * lib/long-options.c: Don't include closeout.h.
133883         (parse_long_options): Don't call close_stdout for --version.
133885 2000-05-06  Paul Eggert  <eggert@twinsun.com>
133887         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
133888         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
133889         2.1.3 bug.  This avoids a clash when files like regex.c define
133890         _GNU_SOURCE.
133892 2000-05-06  Jim Meyering  <meyering@lucent.com>
133894         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
133895         (AC_REPLACE_FUNCS): Add strnlen.
133897         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
133898         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
133900         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
133901         AC_SEARCH_LIBS call for nanosleep.
133902         (LIB_NANOSLEEP): Set and AC_SUBST.
133904 2000-05-06  Jim Meyering  <meyering@lucent.com>
133906         * lib/strnlen.c: Undefine __strnlen and strnlen.
133907         [!weak_alias]: Define __strnlen to strnlen.
133909         * lib/atexit.c: New file, from libiberty.
133911 2000-05-06  Jim Meyering  <meyering@lucent.com>
133913         * lib/closeout.c (close_stdout_status): Also check for errors on the
133914         stderr stream.
133916 2000-05-05  Jim Meyering  <meyering@lucent.com>
133918         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
133919         AC_SEARCH_LIBS call for clock_gettime.
133920         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
133922         * m4/search-libs.m4: Update from autoconf.
133924         su doesn't work on Solaris 2.6.
133925         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
133926         <shadow.h>.  Reported by Dragos Harabor.
133928 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
133930         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
133931         memcpy instead of xmalloc, xrealloc, path_concat.
133932         (locale_charset): Treat empty environment variables as absent.
133933         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
133935 2000-05-04  Jim Meyering  <meyering@lucent.com>
133937         * lib/getopt.c: Update from glibc.
133938         * lib/obstack.c: Likewise.
133939         * lib/obstack.h: Likewise.
133940         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
133941         file
133943         * lib/regex.h: Likewise.
133944         * lib/strndup.c: Likewise.
133945         * lib/strnlen.c: New file, from glibc.
133947 2000-05-03  Jim Meyering  <meyering@lucent.com>
133949         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
133951 2000-05-02  Paul Eggert  <eggert@twinsun.com>
133953         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
133954         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
133955         compile-time test, rather than inspecting host and OS, to
133956         decide whether to define _LARGEFILE_SOURCE.
133958 2000-05-01  Jim Meyering  <meyering@lucent.com>
133960         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
133962         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
133963         Based on a patch from Bruno Haible.
133965 2000-05-01  Jim Meyering  <meyering@lucent.com>
133967         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
133969 2000-04-29  Jim Meyering  <meyering@lucent.com>
133971         * lib/path-concat.c: Declare strdup only if it's not defined.
133972         * lib/canon-host.c: Likewise.
133974 2000-04-28  Jim Meyering  <meyering@lucent.com>
133976         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
133977         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
133978         is included first, then limits.h is included by locale.h by libintl.h.
133979         From John David Anglin.
133981 2000-04-25  Jim Meyering  <meyering@lucent.com>
133983         * lib/makepath.c (S_IRWXUGO): Define.
133984         (make_path): Always perform explicit chmod if MODE specifies any
133985         of the `special' permission bits.  Prompted by a bug report against
133986         install from Mate Wierdl and Joost van Baal.
133988 2000-04-18  Jim Meyering  <meyering@lucent.com>
133990         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
133991         (jm_PREREQ): Use it.
133993 2000-04-18  Jim Meyering  <meyering@lucent.com>
133995         * lib/README: New file.
133997         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
133998         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
134000 2000-04-17  Jim Meyering  <meyering@lucent.com>
134002         Get it right :-)
134003         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
134004         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
134005         Suggestion from Akim Demaille.
134007 2000-04-17  Jim Meyering  <meyering@lucent.com>
134009         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
134010         the definition of it to rpl_strftime also defined-away the system's
134011         declaration.
134013 2000-04-15  Jim Meyering  <meyering@lucent.com>
134015         Use `C' to denote so-called `contiguous' files, the same way
134016         that tar does.
134017         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
134018         (ftypelet): Use S_ISCTG.
134019         From Michael Deutschmann.
134021 2000-04-14  Jim Meyering  <meyering@lucent.com>
134023         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
134024         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
134025         clobbered.
134027 2000-04-14  Jim Meyering  <meyering@lucent.com>
134029         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
134031 2000-04-13  Jim Meyering  <meyering@lucent.com>
134033         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
134034         AH_VERBATIM to insert required #ifndef into config.h.in.
134035         Suggestion from Akim Demaille.
134037 2000-04-12  Jim Meyering  <meyering@lucent.com>
134039         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
134040         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
134041         Christian Krackowizer.
134043         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
134044         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
134045         (AC_SYS_LARGEFILE): Require.
134046         (AM_C_PROTOTYPES): Require.
134048 2000-04-08  Jim Meyering  <meyering@lucent.com>
134050         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
134051         names don't conflict.  Reported by Eli Zaretskii.
134053 2000-04-07  Jim Meyering  <meyering@lucent.com>
134055         * lib/putenv.c: Move inclusion of errno.h so it follows that of
134056         sys/types.h, to work around system header problems on AIX 3.2.5.
134057         From Bruno Haible.
134059 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
134061         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
134062         bug.  Deal with the different error behavior of Irix iconv.
134064 2000-04-05  Paul Eggert  <eggert@twinsun.com>
134066         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
134067         IRIX if the installer said otherwise.
134069 2000-04-05  Jim Meyering  <meyering@lucent.com>
134071         Portability tweaks required for ultrix4.3.
134072         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
134073         (jm_CHECK_DECLS): Add getutent to the list of functions.
134074         (_jm_DECL_HEADERS): Add utmpx.h.
134075         From John David Anglin.
134077         * m4/strftime.m4: Back out the 2000-04-02 change.
134078         Instead of that change, simply undefine putenv in the test program.
134080 2000-04-05  Jim Meyering  <meyering@lucent.com>
134082         Portability tweaks required for ultrix4.3.
134083         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
134084         getutent.
134085         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
134086         * lib/canon-host.c: Declare strdup.
134087         * lib/path-concat.c: Likewise.
134088         From John David Anglin.
134090 2000-04-04  Jim Meyering  <meyering@lucent.com>
134092         Be more DOS 8.3-friendly.
134093         * lib/ref-add.sin: Renamed from ref-add.sed.in.
134094         * lib/ref-del.sin: Renamed from ref-del.sed.in.
134095         * lib/Makefile.am: Reflect renaming.
134096         Reported by Eli Zaretskii.
134098         Use a temporary file name that won't clash with `charset.alias'
134099         in the DOS 8.3 name space.
134100         * lib/Makefile.am (charset_tmp): Define.
134101         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
134102         (uninstall-local): Likewise.
134103         Reported by Eli Zaretskii.
134105 2000-04-03  Jim Meyering  <meyering@lucent.com>
134107         * m4/gettext.m4: Fix typo in comment.
134109         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
134110         textutils/configure.in).  Suggestion from Paul Eggert.
134111         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
134113 2000-04-02  Paul Eggert  <eggert@twinsun.com>
134115         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
134116         variable in the shell rather than using putenv, which isn't
134117         portable.  This avoids the configure-time inter-test dependency
134118         on the potentially-renamed putenv function.
134120 2000-03-30  Paul Eggert  <eggert@twinsun.com>
134122         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
134123         before checking struct stat.st_blksize, so that
134124         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
134126 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134128         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
134129         since strftime.c uses HAVE_STRFTIME to decide whether to use
134130         the underlying strftime.
134132 2000-03-29  Paul Eggert  <eggert@twinsun.com>
134134         * lib/time/strftime.c (my_strftime): Make sure we call the system
134135         strftime, not ourselves, when invoking the underlying strftime.
134137 2000-03-24  Jim Meyering  <meyering@lucent.com>
134139         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
134140         (charset_alias): Define.
134141         (install-exec-local): Factor out common code.
134142         (uninstall-local): Split lines longer than 80.
134143         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
134144         (SUFFIXES): Define.
134145         (.sed.in.sed): New rule.  Don't redirect directly to $@.
134146         (CLEANFILES): Add ref-add.sed and ref-del.sed.
134148 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
134150         * lib/config.charset: Output a line containing "Packages using this
134151         file".
134152         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
134153         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
134154         ref-del.sed): New rules.
134156 2000-03-17  Jim Meyering  <meyering@lucent.com>
134158         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
134159         Otherwise, include <strings.h>
134161 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
134163         * lib/unicodeio.c (utf8_wctomb): New function.
134164         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
134165         format instead of in UCS-4 with platform dependent endianness.
134167 2000-03-10  Jim Meyering  <meyering@lucent.com>
134169         * m4/lib-check.m4: Look for getspnam in -lgen, too.
134170         From Marco Franzen.
134172 2000-03-07  Paul Eggert  <eggert@twinsun.com>
134174         * lib/savedir.c (savedir): Work even if directory size is
134175         negative; this can happen with some screwy NFS configurations.
134177 2000-03-06  Jim Meyering  <meyering@lucent.com>
134179         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
134180         if it's NULL (because we ran out of memory).  From Bruno Haible.
134182 2000-03-05  Jim Meyering  <meyering@lucent.com>
134184         * lib/localcharset.c ("path-concat.h"): Include.
134185         (get_charset_aliases): Use path_concat instead of ANSI string
134186         concatenation.
134188         * lib/unicodeio.h (PARAMS): Define.
134189         Use it to guard prototype.
134191 2000-03-04  Jim Meyering  <meyering@lucent.com>
134193         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
134194         for lib/localcharset.c.
134196 2000-03-04  Jim Meyering  <meyering@lucent.com>
134198         * lib/Makefile.am (install-exec-local): Create $(libdir) before
134199         installing into it.
134200         (uninstall-local): Uncomment this rule so `make distcheck' works
134201         once again.
134203         * lib/unicodeio.c (<errno.h>): Include it.
134204         (errno): Declare if not defined.
134206         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
134208         * lib/config.charset: New version, incorporating remarks from a linux
134209         i18n mailing list.  From Bruno Haible.
134211 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
134213         * m4/codeset.m4: New file.
134214         * m4/iconv.m4: New file.
134215         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
134217 2000-03-03  Jim Meyering  <meyering@lucent.com>
134219         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
134221 2000-03-02  Jim Meyering  <meyering@lucent.com>
134223         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
134224         the messages come out on separate lines.
134226         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
134227         rather than jm_CHECK_DECLARATIONS.
134228         * m4/decl.m4: Remove now-unused file.
134230         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
134231         geteuid.
134233 2000-03-02  Jim Meyering  <meyering@lucent.com>
134235         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
134237 2000-03-01  Jim Meyering  <meyering@lucent.com>
134239         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
134240         * lib/unicodeio.c: Likewise.
134242 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
134244         * lib/config.charset: New file.
134245         * lib/localcharset.c: New file.
134246         * lib/unicodeio.h, lib/unicodeio.c: New files.
134247         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
134248         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
134249         (noinst_HEADERS): Add unicodeio.h.
134250         (all-local, install-exec-local, charset.alias): New targets.
134252 2000-02-28  Paul Eggert  <eggert@twinsun.com>
134254         * lib/quotearg.c (ALERT_CHAR): New macro.
134255         (quotearg_buffer_restyled): Use it.
134257 2000-02-27  Jim Meyering  <meyering@lucent.com>
134259         * m4/check-decl.m4: Add getenv to the list.
134261 2000-02-27  Jim Meyering  <meyering@lucent.com>
134263         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
134264         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
134266         * lib/backupfile.c: Guard inclusion of stdlib.h with
134267         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
134268         Declare malloc if needed.
134270         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
134271         `#ifndef HAVE_DECL..'
134272         now that autoconf always defines the HAVE_DECL_ symbols.
134273         * lib/human.c: Likewise.
134274         * lib/same.c: Likewise.
134275         * lib/strtoumax.c: Likewise.
134277         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
134278         declaration check was not run.
134279         * lib/hash.c: Likewise.
134280         * lib/human.c: Likewise.
134281         * lib/same.c: Likewise.
134282         * lib/strtoumax.c: Likewise.
134284         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
134285         `.', then first look up the entire `.'-containing string as a login
134286         name.
134288 2000-02-23  Jim Meyering  <meyering@lucent.com>
134290         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
134291         in place of my hack.
134293 2000-02-18  Paul Eggert  <eggert@twinsun.com>
134295         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
134296         (textint): New typedef.
134297         (parser_control): Member year changed from int to textint.
134298         All uses changed.
134299         (YYSTYPE): Removed; replaced by %union with int and textint members.
134300         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
134301         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
134302         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
134303         (tSNUMBER, tUNUMBER): Now of type <textintval>.
134304         (date, number, to_year): Use width of number in digits, not its value,
134305         to determine whether it's a 2-digit year, or a 2-digit time.
134306         (yylex): Store number of digits of numeric tokens.
134307         Reported by John Kendall.
134309         (parser_control): Changed from struct parser_control to typedef (for
134310         consistency).  All uses changed.
134312         (tID): Removed; not used.
134313         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
134315 2000-02-14  Paul Eggert  <eggert@twinsun.com>
134317         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
134318         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
134320 2000-02-12  Jim Meyering  <meyering@lucent.com>
134322         * lib/userspec.c (ISDIGIT): Define it.
134323         (isdigit): Remove definition.
134324         (is_number): Use ISDIGIT, not isdigit.
134325         <libintl.h>: Include.
134326         (_ and N_): Define.
134327         (parse_user_spec): Mark translatable strings.
134329 2000-02-10  Jim Meyering  <meyering@lucent.com>
134331         With these changes, nanosleep.[ch] are finally enough like the other
134332         lib/* replacement files to compile on a few more losing systems.
134334         * lib/nanosleep.h: Don't include config.h.
134335         Remove prototype from declaration of nanosleep.
134336         (PARAMS): Remove now-unneeded definition.
134337         * lib/nanosleep.c: #undef nanosleep.
134338         (rpl_nanosleep): Rename from nanosleep.
134340 2000-02-10  Jim Meyering  <meyering@lucent.com>
134342         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
134343         gnu_nanosleep to rpl_nanosleep.
134345 2000-02-09  Jim Meyering  <meyering@lucent.com>
134347         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
134348         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
134350 2000-02-08  Akim Demaille  <akim@epita.fr>
134352         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
134353         `[' and `]' and remove uses of `changequote'.
134354         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
134355         (AC_SYS_LARGEFILE): Likewise.
134356         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
134357         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
134358         of changequote.
134359         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
134360         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
134361         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
134362         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
134364 2000-02-05  Jim Meyering  <meyering@lucent.com>
134366         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
134367         Remove explicit use of AC_HEADER_TIME.  It is required by
134368         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
134369         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
134370         in autoconf whereby the expansion of the latter ended up preceding
134371         the expansion of its prerequisite, AC_HEADER_TIME.
134372         Reported by Volker Borchert.
134374 2000-02-03  Jim Meyering  <meyering@lucent.com>
134376         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
134378 2000-02-03  Jim Meyering  <meyering@lucent.com>
134380         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
134381         rather than with `#if HAVE_UTMPNAME'.
134383 2000-02-02  Jim Meyering  <meyering@lucent.com>
134385         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
134386         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
134387         Reported by Eli Zaretskii.
134389 2000-02-01  Jim Meyering  <meyering@lucent.com>
134391         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
134393 2000-01-31  Jim Meyering  <meyering@lucent.com>
134395         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
134396         functions.  Add the time.h and sys/time.h headers along with the
134397         AC_REQUIRE'ment of AC_HEADER_TIME.
134399 2000-01-31  Jim Meyering  <meyering@lucent.com>
134401         * lib/nanosleep.h (nanosleep): Guard declaration with
134402         `#if ! HAVE_DECL_NANOSLEEP'.
134403         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
134404         the declaration in that vendor's sys/timers.h.
134405         Reported by Christian Krackowizer.
134407         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
134408         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
134409         (ISPRINT): Likewise.
134410         Reported by Tom Tromey.
134412 2000-01-30  Jim Meyering  <meyering@lucent.com>
134414         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
134416         * m4/prereq.m4 (utmp_includes): Define.
134417         Check for ut_user and ut_name members in both struct utmpx
134418         and struct utmp.
134420 2000-01-30  Jim Meyering  <meyering@lucent.com>
134422         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
134423         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
134424         header files where only utmpx.ut_user is declared.
134426         * lib/readutmp.h (UT_USER): Define.
134428 2000-01-29  Jim Meyering  <meyering@lucent.com>
134430         * m4/lib-check.m4: New file containing library-related checks from
134431         fileutils and sh-utils (textutils had none).
134433 2000-01-28  Jim Meyering  <meyering@lucent.com>
134435         * m4/perl.m4: Change format of warning message to look more like that
134436         from the missing script.  Suggestion from François Pinard.
134438 2000-01-25  Jim Meyering  <meyering@lucent.com>
134440         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
134441         well as time.h in the compile check.
134442         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
134443         Fix typo in cross-compiling case: s/yes/no/.
134445 2000-01-23  Jim Meyering  <meyering@lucent.com>
134447         * m4/jm-macros.m4: Move df-related tests here from
134448         fileutils/configure.in
134450         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
134451         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
134453         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
134454         s/space/ac_fsusage_space/.
134455         (jm_FILE_SYSTEM_USAGE): Take two parameters.
134457         * m4/ftruncate.m4: New file (derived from part of
134458         fileutils/configure.in).
134459         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
134460         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
134462         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
134463         AC_SUBST these here, rather than just in sh-util/configure.in, so
134464         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
134465         all the same.
134466         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
134467         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
134468         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
134469         (AC_SUBST(POW_LIBM)): Likewise.
134470         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
134472 2000-01-23  Jim Meyering  <meyering@lucent.com>
134474         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
134475         obstack.c.
134477 2000-01-22  Jim Meyering  <meyering@lucent.com>
134479         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
134481         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
134483         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
134484         configure.in
134485         (AC_CHECK_HEADERS): Likewise for sh-utils.
134486         (AC_CHECK_HEADERS): Likewise for textutils.
134487         Merge the three lists of headers.
134489         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
134490         from fileutils' configure.in.
134492         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
134493         code. Moved tests into their own function (_jm_DECL_HEADERS) in
134494         check-decl.m4.
134496         * m4/check-decl.m4: Use #if rather than #ifdef.
134497         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
134498         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
134499         (_jm_DECL_HEADERS): Define new function.
134500         (jm_CHECK_DECLARATIONS): Require it.
134502 2000-01-22  Jim Meyering  <meyering@lucent.com>
134504         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
134505         [! HAVE_DECL_STRTOULL]: Declare strtoull.
134506         Required for some AIX systems.  Reported by Christian Krackowizer.
134507         [TESTING] (main): New function.
134509         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
134510         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
134511         letters.
134513         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
134514         iswprint.
134516         * lib/strverscmp.c (ISDIGIT): Define.
134517         (strverscmp): Use ISDIGIT, not isdigit.
134519 2000-01-19  Jim Meyering  <meyering@lucent.com>
134521         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
134522         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
134523         defines `struct timespec' in <sys/time.h>
134525         * m4/c-bs-a.m4: Remove uses of changequote altogether.
134526         Thanks to Akim for explaining.
134528 2000-01-17  Paul Eggert  <eggert@twinsun.com>
134530         * lib/nanosleep.c (nanosleep):
134531         Don't use SA_INTERRUPT to decide whether to call sigaction, as
134532         POSIX.1 doesn't require SA_INTERRUPT and some systems
134533         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
134534         it's been part of POSIX.1 since day 1 (in 1988).
134536 2000-01-17  Jim Meyering  <meyering@lucent.com>
134538         * lib/interlock: Remove unused file.  Reported by François Pinard.
134540 2000-01-16  Paul Eggert  <eggert@twinsun.com>
134542         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
134543         alert, backslash, formfeed, and vertical tab unnecessarily in
134544         shell quoting style.
134546 2000-01-16  Jim Meyering  <meyering@lucent.com>
134548         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
134549         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
134550         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
134551         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
134553 2000-01-16  Jim Meyering  <meyering@lucent.com>
134555         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
134556         because the latter didn't work.
134558 2000-01-15  Jim Meyering  <meyering@lucent.com>
134560         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
134561         (AC_REPLACE_FUNCS): Add memcpy and memset.
134562         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
134563         Add strpbrk.
134564         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
134566 2000-01-12  Jim Meyering  <meyering@lucent.com>
134568         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
134569         (jm_PREREQ): Use it.
134570         (jm_PREREQ_READUTMP): New macro.
134571         (jm_PREREQ): Use it.
134573 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134575         Quote multibyte characters correctly.
134576         * m4/c-bs-a.m4: New file.
134577         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
134578         (jm_PREREQ): Use it.
134580 2000-01-11  Paul Eggert  <eggert@twinsun.com>
134582         * m4/uintmax_t.m4: Port to autoconf 2.13.
134584 2000-01-08  Jim Meyering  <meyering@ascend.com>
134586         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
134587         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
134589 2000-01-04  Jim Meyering  <meyering@ascend.com>
134591         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
134592         jm_STRUCT_DIRENT_D_TYPE.
134593         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
134594         jm_STRUCT_DIRENT_D_INO.
134595         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
134596         jm_STRUCT_UTIMBUF.
134597         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
134598         renamings.
134599         * m4/utime.m4: Likewise.
134601         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
134602         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
134604 2000-01-03  Paul Eggert  <eggert@twinsun.com>
134606         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
134607         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
134609 2000-01-02  Jim Meyering  <meyering@ascend.com>
134611         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
134612         remember if this is necessary.
134614 1999-12-26  Jim Meyering  <meyering@ascend.com>
134616         * m4/jm-macros.m4: Use it here.
134617         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
134619 1999-12-23  Jim Meyering  <meyering@ascend.com>
134621         * m4/jm-macros.m4: Check for clock_gettime (moved from
134622         fileutils/configure.in)
134623         Check for gettimeofday.
134625 1999-12-20  Jim Meyering  <meyering@ascend.com>
134627         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
134628         autoconf-2.14a-1999-12-20.
134630 1999-12-19  Jim Meyering  <meyering@ascend.com>
134632         * m4/lstat-slash.m4: New file.
134633         * m4/jm-macros.m4: Use the new macro:
134634         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
134636 1999-12-07  Jim Meyering  <meyering@ascend.com>
134638         * m4/perl.m4: Require that File::Compare be available, too.
134639         Too many systems seem to lack it.
134641         * m4/strftime.m4: Add checks for most of the cpp macros tested in
134642         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
134644 1999-11-18  Paul Eggert  <eggert@twinsun.com>
134646         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
134647         problem with the QNX 4.25 shell, which doesn't propagate exit
134648         status of failed commands inside shell assignments.
134650 1999-11-17  Jim Meyering  <meyering@ascend.com>
134652         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
134654 1999-11-07  Jim Meyering  <meyering@ascend.com>
134656         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
134658 1999-11-06  Jim Meyering  <meyering@ascend.com>
134660         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
134661         * m4/jm-macros.m4 (jm_MACROS): Use it here.
134663 1999-11-05  Jim Meyering  <meyering@ascend.com>
134665         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
134666         configure.in of textutils, fileutils, and sh-utils into this one
134667         (shared between those packages) file.
134668         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
134669         AC_STRUCT_ST_BLKSIZE.
134671 1999-11-03  Jim Meyering  <meyering@ascend.com>
134673         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
134674         of AC_CHECK_TYPE checks includes unistd.h.
134675         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
134676         Suggestion from Akim Demaille.
134678 1999-10-30  Jim Meyering  <meyering@ascend.com>
134680         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
134681         m4-quoted string.
134682         * m4/ls-mntd-fs.m4: Likewise.
134683         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
134684         * m4/jm-winsz1.m4: Likewise.
134686         * m4/const.m4: Remove file, since the fix made it into the experimental
134687         version of autoconf.
134688         * m4/mktime.m4: Likewise.
134690         * m4/check-type.m4: Remove file, now that the latest version of
134691         AC_CHECK_TYPE takes a third arg to specify additional #includes.
134693         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
134694         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
134695         AC_CHECK_TYPE.
134697 1999-10-04  Jim Meyering  <meyering@ascend.com>
134699         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
134701 1999-09-22  Paul Eggert  <eggert@twinsun.com>
134703         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
134704         2.95.1 bug with HP-UX 10.20.
134706 1999-09-17  Jim Meyering  <meyering@ascend.com>
134708         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
134709         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
134710         due to missing strdup (against sh-utils-2.0).
134712 1999-08-29  Jim Meyering  <meyering@ascend.com>
134714         * m4/jm-macros.m4: Require jm_BISON.
134715         * m4/bison.m4: New file.
134717 1999-08-17  Paul Eggert  <eggert@twinsun.com>
134719         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
134720         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
134722 1999-08-05  Jim Meyering  <meyering@ascend.com>
134724         * m4/getline.m4: Rename test file from conftestdata to conftest.data
134725         to avoid conflicts with `conftest' on 8+3 filesystems.
134726         Suggestion from Eli Zaretskii.
134728 1999-08-04  Jim Meyering  <meyering@ascend.com>
134730         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
134731         fileutils and sh-utils (textutils's getline test was inadequate).
134732         (AM_FUNC_GETLINE): Run this test.
134733         (AC_CHECK_FUNCS): Check for getdelim.
134734         Reported by Bob Proulx.
134736 1999-08-02  Jim Meyering  <meyering@ascend.com>
134738         * m4/jm-macros.m4: Add a comment.
134740 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134742         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
134743         <inttypes.h> defines strtoumax as a macro (and not as a
134744         function).
134746 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134748         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
134749         that we can shift, multiply and divide unsigned long long
134750         values; Ultrix cc can't do it.
134752 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134754         * m4/mktime.m4: New file, which is a preview of what should appear
134755         in the next public autoconf release.
134757 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134759         * m4/lfs.m4: Remove this file.
134760         * m4/largefile.m4: New file.  It contains the old contents of
134761         lfs.m4, except that all names with prefix AC_LFS have been
134762         changed to use the prefix AC_SYS_LARGEFILE instead, to be
134763         compatible with future autoconf versions.  Also, some minor m4
134764         quoting problems have been fixed.
134766 1999-08-01  Paul Eggert  <eggert@twinsun.com>
134768         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
134769         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
134770         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
134771         and simplify the shell code.
134773 1999-08-01  Jim Meyering  <meyering@ascend.com>
134775         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
134776         m4.
134778 1999-07-20  Jim Meyering  <meyering@ascend.com>
134780         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
134782 1999-07-15  Jim Meyering  <meyering@ascend.com>
134784         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
134786 1999-05-22  Jim Meyering  <meyering@ascend.com>
134788         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
134790 1999-05-20  Jim Meyering  <meyering@ascend.com>
134792         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
134793         Add a colon after each `then' in case $4 is empty.
134795 1999-05-16  Jim Meyering  <meyering@ascend.com>
134797         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
134799 1999-05-10  Jim Meyering  <meyering@ascend.com>
134801         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
134803         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
134804         AC_FUNC_MKTIME.
134806 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
134808         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
134810 1999-05-04  Paul Eggert  <eggert@twinsun.com>
134812         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
134813         not CPPFLAGS, so that linking works correctly in IRIX.
134815 1999-04-30  Paul Eggert  <eggert@twinsun.com>
134817         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
134819 1999-04-20  Paul Eggert  <eggert@twinsun.com>
134821         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
134822         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
134823         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
134824         jm_AC_TYPE_UNSIGNED_LONG_LONG.
134825         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
134827         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
134829 1999-04-20  Jim Meyering  <meyering@ascend.com>
134831         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
134832         AC_REPLACE xstroull if necessary.  From Paul Eggert.
134833         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
134835 1999-04-18  Jim Meyering  <meyering@ascend.com>
134837         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
134838         * m4/jm-macros.m4: Use it.
134840 1999-04-06  Jim Meyering  <meyering@ascend.com>
134842         * m4/strftime.m4: Remove test for %f.
134844 1999-03-29  Jim Meyering  <meyering@ascend.com>
134846         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
134847         superset of the AC_TYPE_* checks in the textutils, fileutils,
134848         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
134849         AC_TYPE_PID_T.
134851 1999-03-28  Jim Meyering  <meyering@ascend.com>
134853         * m4/jm-macros.m4: Define GNU_PACKAGE here.
134854         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
134855         replaced e.g., in the *.sh files of the sh-utils.
134857 1999-03-20  Jim Meyering  <meyering@ascend.com>
134859         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
134860         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
134861         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
134863 1999-03-19  Jim Meyering  <meyering@ascend.com>
134865         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
134867 1999-03-12  Jim Meyering  <meyering@ascend.com>
134869         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
134871 1999-03-07  Jim Meyering  <meyering@ascend.com>
134873         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
134874         declared.
134876 1999-02-17  Jim Meyering  <meyering@ascend.com>
134878         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
134879         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
134881 1999-02-07  Jim Meyering  <meyering@ascend.com>
134883         * m4/group-member.m4: New file -- extracted from sh-utils'
134884         configure.in.
134886         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
134887         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
134889 1999-02-06  Jim Meyering  <meyering@ascend.com>
134891         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
134892         * m4/fnmatch.m4: Likewise.
134893         * m4/getgroups.m4: Likewise.
134894         * m4/lstat.m4: Likewise.
134895         * m4/malloc.m4: Likewise.
134896         * m4/putenv.m4: Likewise.
134897         * m4/realloc.m4: Likewise.
134898         * m4/regex.m4: Likewise.
134899         * m4/stat.m4: Likewise.
134900         * m4/strftime.m4: Likewise.
134901         Suggestion from Alain Magloire.
134903         * m4/chown.m4: Use `.$ac_objext', not `.o'.
134904         * m4/fnmatch.m4: Likewise.
134905         * m4/getgroups.m4: Likewise.
134906         * m4/getline.m4: Likewise.
134907         * m4/lstat.m4: Likewise.
134908         * m4/malloc.m4: Likewise.
134909         * m4/memcmp.m4: Likewise.
134910         * m4/putenv.m4: Likewise.
134911         * m4/realloc.m4: Likewise.
134912         * m4/regex.m4: Likewise.
134913         * m4/stat.m4: Likewise.
134914         * m4/strftime.m4: Likewise.
134915         Suggestion from Alain Magloire.
134917         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
134918         an argument.
134920         * m4/regex.m4: Add a run-time Test for proper operation of
134921         re_compile_pattern.
134923 1999-01-31  Jim Meyering  <meyering@ascend.com>
134925         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
134927 1999-01-30  Jim Meyering  <meyering@ascend.com>
134929         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
134931         * m4/jm-mktime.m4: Make this a wrapper around the official
134932         AM_FUNC_MKTIME rather than my private copy, now that the official one
134933         is up to date.
134934         * m4/mktime.m4: Remove file.
134936         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
134937         * m4/uptime.m4: Likewise.
134938         * m4/uintmax_t.m4: Likewise.
134940 1999-01-28  Jim Meyering  <meyering@ascend.com>
134942         * m4/jm-macros.m4: Use jm_AFS.
134943         * m4/afs.m4: New file (from fileutils' configure.in).
134945         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
134946         * m4/chown.m4: Likewise.
134947         * m4/d-ino.m4: Likewise.
134948         * m4/d-type.m4: Likewise.
134949         * m4/fnmatch.m4: Likewise.
134950         * m4/getgroups.m4: Likewise.
134951         * m4/gettext.m4: Likewise.
134952         * m4/jm-mktime.m4: Likewise.
134953         * m4/jm-winsz2.m4: Likewise.
134954         * m4/lcmessage.m4: Likewise.
134955         * m4/ls-mntd-fs.m4: Likewise.
134956         * m4/malloc.m4: Likewise.
134957         * m4/memcmp.m4: Likewise.
134958         * m4/putenv.m4: Likewise.
134959         * m4/realloc.m4: Likewise.
134960         * m4/st_mtim.m4: Likewise.
134961         * m4/strftime.m4: Likewise.
134963 1999-01-16  Jim Meyering  <meyering@ascend.com>
134965         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
134966         (ARGMATCH_DIE_DECL): Define.
134968 1999-01-12  Jim Meyering  <meyering@ascend.com>
134970         * m4/Makefile.am.in: Rewrite to avoid using fmt.
134971         Reported by Lars Hecking.
134973 1999-01-10  Jim Meyering  <meyering@ascend.com>
134975         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
134976         gross kludge.
134977         * m4/inttypes_h.m4: Likewise.
134978         * m4/lstat.m4: Likewise.
134979         * m4/malloc.m4: Likewise.
134980         * m4/readdir.m4: Likewise.
134981         * m4/realloc.m4: Likewise.
134982         * m4/st_dm_mode.m4: Likewise.
134983         * m4/stat.m4: Likewise.
134984         * m4/utimbuf.m4: Likewise.
134985         * m4/utimes.m4: Likewise.
134987         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
134988         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
134989         comments in config.h.in are meaningful.
134991         * m4/jm-macros.m4: Require autoconf-2.13 here.
134993         * m4/regex.m4: By default, don't use the included regex.c on systems
134994         with glibc 2.  Suggestion from Uli Drepper.
134996 1999-01-02  Jim Meyering  <meyering@ascend.com>
134998         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
135000 1998-12-18  Jim Meyering  <meyering@ascend.com>
135002         * m4/Makefile.am.in (Makefile.am): Simplify rule.
135003         Based on a suggestion from Lars Hecking.
135005 1998-11-16  Paul Eggert  <eggert@twinsun.com>
135007         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
135009 1998-11-16  Jim Meyering  <meyering@ascend.com>
135011         * m4/lfs.m4: Double-quote the `uname...` expression.
135013 1998-11-14  Jim Meyering  <meyering@ascend.com>
135015         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
135016         * m4/stat.m4: Likewise.
135018 1998-11-03  Jim Meyering  <meyering@ascend.com>
135020         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
135021         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
135023 1998-10-18  Jim Meyering  <meyering@ascend.com>
135025         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
135027 1998-10-17  Jim Meyering  <meyering@ascend.com>
135029         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
135030         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
135031         calls for those previously hard-coded headers.  Instead, take a new
135032         parameter.
135033         (jm_CHECK_DECLARATIONS): Reflect interface change.
135034         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
135035         (jm_CHECK_DECL_LOCALTIME_R): New macro.
135037         * m4/mktime.m4: Test for spring-forward gap before long-running test.
135039 1998-10-14  Jim Meyering  <meyering@ascend.com>
135041         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
135042         instead of "TZ=America/Vancouver".  From Paul Eggert.
135044 1998-10-11  Jim Meyering  <meyering@ascend.com>
135046         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
135047         This adds a test for a recently added compatibility fix for mktime.c.
135048         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
135050 1998-09-27  Jim Meyering  <meyering@ascend.com>
135052         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
135054         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
135055         ../configure.in, including a change from Gordon Matzigkeit to allow
135056         cross-compiling for the Hurd.
135058         * m4/glibc.m4: New file/macro to test for the GNU C Library
135059         versions 1 and 2.  From Gordon Matzigkeit.
135060         Indent.
135062 1998-09-21  Jim Meyering  <meyering@ascend.com>
135064         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
135066 1998-08-18  Paul Eggert  <eggert@twinsun.com>
135068         Port nanosecond-resolution times to UnixWare 2.1.2 and
135069         pedantic Solaris 2.6.
135071         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
135072         AC_STRUCT_ST_MTIM.
135073         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
135074         Generate name of ns member, instead of just 1 or undef.
135075         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
135077 1998-08-15  Jim Meyering  <meyering@ascend.com>
135079         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
135080         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
135081         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
135082         instead of jm_TYPE_SSIZE_T.
135084 1998-08-12  Jim Meyering  <meyering@ascend.com>
135086         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
135088 1998-08-02  Jim Meyering  <meyering@ascend.com>
135090         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
135091         in acconfig.h manually.
135093 1998-07-31  Paul Eggert  <eggert@twinsun.com>
135095         * m4/st_mtim.m4: New file.
135097 1998-07-28  Jim Meyering  <meyering@ascend.com>
135099         * m4/utimes.m4: Undef stat.
135101 1998-07-25  Jim Meyering  <meyering@ascend.com>
135103         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
135104         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
135106 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
135108         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
135109         uid and gid actually remain unchanged.
135111 1998-07-07  Jim Meyering  <meyering@ascend.com>
135113         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
135115 1998-07-04  Jim Meyering  <meyering@ascend.com>
135117         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
135118         to prove that this macro can be used in packages without regex.c.
135120 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
135122         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
135123         is to be used.
135125 1998-07-03  Jim Meyering  <meyering@ascend.com>
135127         * m4/gettext.m4: Add -lintl if it's found to be necessary.
135129         * m4/gettext.m4: New file -- from gettext-0.10.35.
135130         * m4/lcmessage.m4: Likewise.
135131         * m4/progtest.m4: Likewise.
135133         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
135134         * m4/jm-macros.m4: Require the new macro.
135136 1998-06-29  Jim Meyering  <meyering@ascend.com>
135138         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
135139         for the definition of NGROUPS (used in a system header included
135140         by sys/mount.h).
135142 1998-06-28  Jim Meyering  <meyering@ascend.com>
135144         * m4/ls-mntd-fs.m4: New file.
135145         * m4/fstypename.m4: New file.
135147         * m4/jm-macros.m4: Require the new macro.
135148         * m4/jm-glibc-io.m4: New file.
135150 1998-05-19  Jim Meyering  <meyering@ascend.com>
135152         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
135153         * m4/lchown.m4: New file.
135155         * m4/Makefile.am.in: New file.
135156         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
135158 1998-05-14  Jim Meyering  <meyering@ascend.com>
135160         * m4/Makefile.am (EXTRA_DIST): Add them.
135161         * m4/jm-macros.m4: New file.
135162         * m4/utimbuf.m4: New file.
135164 1998-05-12  Jim Meyering  <meyering@ascend.com>
135166         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
135168 1998-05-11  Jim Meyering  <meyering@ascend.com>
135170         * m4/isc-posix.m4: New file.
135172 1998-05-10  Jim Meyering  <meyering@ascend.com>
135174         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
135176 1998-05-09  Jim Meyering  <meyering@ascend.com>
135178         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
135179         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
135180         with automake.
135182         * m4/ssize_t.m4: New file.
135183         * m4/mktime.m4: Remove file -- the new automake has this now.
135185 1998-04-26  Jim Meyering  <meyering@ascend.com>
135187         * m4/assert.m4: New file.
135188         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
135190 1998-04-05  Jim Meyering  <meyering@ascend.com>
135192         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
135193         (jm_PREREQ): Use it here.
135195 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
135197         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
135198         in acconfig.h.
135200 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
135202         * m4/prereq.m4: New file.
135203         * m4/error.m4: New file.
135204         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
135206 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
135208         * m4/getline.m4: Don't set am_cv_func_working_getline before the
135209         cache-check for the same variable -- that defeated the purpose of
135210         the test; the test program was never run.  This was a problem only
135211         on systems with losing getline functions -- HP-UX 10.20 is one.
135212         Reported by Bjorn Helgaas.
135214 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
135216         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
135218 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
135220         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
135222         * m4/const.m4: New file.  Use an initializer in this declaration
135223         typedef int charset[2]; const charset x;
135224         Reported by Bob Glickstein.
135226 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
135228         * m4/chown.m4: Fix reversed types on -1 args to chown.
135229         From Kaveh Ghazi.
135231 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
135233         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
135234         Add lseek and memchr.
135236         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
135237         T.E.Dickey <dickey@clark.net> said that some older preprocessors
135238         have a 20-character limit on names.
135240 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
135242         * m4/inttypes_h.m4: New file.
135243         * m4/uintmax_t.m4: New file.
135244         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
135247         -----
135249         Local Variables:
135250         coding: utf-8
135251         End:
135253         Copyright (C) 1997-2021 Free Software Foundation, Inc.
135255         Copying and distribution of this file, with or without
135256         modification, are permitted provided the copyright notice
135257         and this notice are preserved.